gdb: remove struct cached_reg typedef
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * regcache.h (struct cached_reg): Remove typedef.
4
5 2020-11-24 Joel Brobecker <brobecker@adacore.com>
6
7 * README: Fix the URL of the MPFR library.
8
9 2020-11-24 Joel Brobecker <brobecker@adacore.com>
10
11 * README: Document the --with-libgmp-prefix configure option.
12
13 2020-11-24 Joel Brobecker <brobecker@adacore.com>
14
15 * NEWS: Add entry documenting support for DWARF-based fixed
16 point types.
17
18 2020-11-24 Joel Brobecker <brobecker@adacore.com>
19
20 * NEWS: Document that building GDB now requires GMP.
21
22 2020-11-24 Joel Brobecker <brobecker@adacore.com>
23
24 * typeprint.c (print_type_scalar): Add handling of
25 TYPE_CODE_FIXED_POINT.
26
27 2020-11-24 Joel Brobecker <brobecker@adacore.com>
28
29 * valarith.c (fixed_point_binop): Replace the
30 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
31 users accordingly.
32
33 2020-11-24 Joel Brobecker <brobecker@adacore.com>
34
35 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
36 replacing fixed_point_scaling_factor. All callers updated
37 throughout this project.
38 (fixed_point_scaling_factor): Delete declaration.
39 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
40 fixed_point_scaling_factor. Adjust implementation accordingly.
41
42 2020-11-24 Joel Brobecker <brobecker@adacore.com>
43
44 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
45 replacing the fixed_point_type_base_type function. All callers
46 updated throughout this project.
47 (fixed_point_type_base_type): Remove declaration.
48 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
49 fixed_point_type_base_type. Adjust implementation accordingly.
50
51 2020-11-24 Joel Brobecker <brobecker@adacore.com>
52
53 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
54 New methods.
55 (INIT_FIXED_POINT_SPECIFIC): Adjust.
56 (TYPE_FIXED_POINT_INFO): Delete macro.
57 (allocate_fixed_point_type_info): Change return type to void.
58 * gdbtypes.c (copy_type_recursive): Replace the use of
59 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
60 (fixed_point_scaling_factor): Likewise.
61 (allocate_fixed_point_type_info): Change return type to void.
62 Adjust implementation accordingly.
63 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
64 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
65
66 2020-11-24 Joel Brobecker <brobecker@adacore.com>
67
68 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
69 into one single gdb::array_view parameter.
70 (gdb_mpz::write): Likewise.
71 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
72 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
73 into one single gdb::array_view parameter.
74 Adjust implementation accordingly.
75 (gdb_mpz::write): Likewise.
76 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
77 * unittests/gmp-utils-selftests.c: Adapt following changes above.
78 * valarith.c, valops.c, valprint.c, value.c: Likewise.
79
80 2020-11-24 Joel Brobecker <brobecker@adacore.com>
81
82 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
83 Change return type to std::string. Update all callers.
84 * gmp-utils.c (gmp_string_printf): Likewise.
85
86 2020-11-24 Joel Brobecker <brobecker@adacore.com>
87
88 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
89 instead of mpq_set_ui to initialize our GMP rational.
90
91 2020-11-23 Tom de Vries <tdevries@suse.de>
92
93 * debuginfod-support.c (debuginfod_source_query)
94 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
95
96 2020-11-21 Tom Tromey <tom@tromey.com>
97
98 * breakpoint.c (watchpoint_exp_is_const): Return bool.
99
100 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
103 Pass 2.0 to pow.
104 (gdb_mpz_write_all_from_small): Likewise.
105
106 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
109 of abs.
110
111 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
112
113 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
114 ctf_arc_open_by_name.
115
116 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
117
118 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
119 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
120
121 2020-11-20 Pedro Alves <pedro@palves.net>
122
123 * language.c (language_arch_info::lookup_primitive_type): Use
124 gdb::function_view instead of gdb::function.
125 (template language_lookup_primitive_type): Rename to ...
126 (language_lookup_primitive_type_1): ... this, and make static.
127 (language_lookup_primitive_type(const struct language_defn *,
128 struct gdbarch *, const char *): Make non-template.
129 (language_lookup_primitive_type(const struct language_defn *,
130 struct gdbarch *, std::function<bool (struct type *)>): Make
131 non-template and use gdb::function_view.
132 * language.h (language_arch_info::lookup_primitive_type): Use
133 gdb::function_view instead of std::function.
134 (language_lookup_primitive_type): No longer template.
135 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
136 lambda instead of a std::function.
137
138 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
139
140 PR tdep/26916
141 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
142 and STOCFH.
143
144 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
147
148 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
151 in `loop_cb` parameter.
152 * gdbarch.c: Re-generate.
153 * gdbarch.h: Re-generate.
154 * arch-utils.c (default_read_core_file_mappings): Remove `other`
155 parameter.
156 * arch-utils.h (default_read_core_file_mappings): Likewise.
157 * corelow.c (core_target::build_file_mappings): Likewise.
158 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
159 (linux_core_info_proc_mappings): Likewise.
160
161 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
164 * NEWS: Mention new options.
165 * f-array-walker.h: New file.
166 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
167 (repack_array_slices): New static global.
168 (show_repack_array_slices): New function.
169 (fortran_array_slicing_debug): New static global.
170 (show_fortran_array_slicing_debug): New function.
171 (value_f90_subarray): Delete.
172 (skip_undetermined_arglist): Delete.
173 (class fortran_array_repacker_base_impl): New class.
174 (class fortran_lazy_array_repacker_impl): New class.
175 (class fortran_array_repacker_impl): New class.
176 (fortran_value_subarray): Complete rewrite.
177 (set_fortran_list): New static global.
178 (show_fortran_list): Likewise.
179 (_initialize_f_language): Register new commands.
180 (fortran_adjust_dynamic_array_base_address_hack): New function.
181 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
182 Declare.
183 * f-valprint.c: Include 'f-array-walker.h'.
184 (class fortran_array_printer_impl): New class.
185 (f77_print_array_1): Delete.
186 (f77_print_array): Delete.
187 (fortran_print_array): New.
188 (f_value_print_inner): Update to call fortran_print_array.
189 * gdbtypes.c: Include 'f-lang.h'.
190 (resolve_dynamic_type_internal): Call
191 fortran_adjust_dynamic_array_base_address_hack.
192
193 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * breakpoint.c (struct watch_options): New struct.
196 (watch_option_defs): New static global.
197 (make_watch_options_def_group): New function.
198 (watch_maybe_just_location): Convert option parsing.
199 (watch_command_completer): New function.
200 (_initialize_breakpoint): Build help text using options mechanism.
201
202 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
205 (watch_command_1): Update parameter types. Convert locals to
206 bool.
207 (watch_command_wrapper): Change parameter type.
208 (watch_maybe_just_location): Change locals to bool.
209 (rwatch_command_wrapper): Update parameter type.
210 (awatch_command_wrapper): Update parameter type.
211 * breakpoint.h (watch_command_wrapper): Change parameter type.
212 (rwatch_command_wrapper): Update parameter type.
213 (awatch_command_wrapper): Update parameter type.
214 * eval.c (fetch_subexp_value): Change parameter type.
215 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
216 'false' not '0'.
217 * value.h (fetch_subexp_value): Change parameter type in
218 declaration.
219
220 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
223 skip_spaces.
224
225 2020-11-18 Keith Seitz <keiths@redhat.com>
226
227 * linux-tdep.c (dump_note_entry_p): Return true instead of
228 checking `filename'.
229
230 2020-11-18 Tom de Vries <tdevries@suse.de>
231
232 * debuginfod-support.c (debuginfod_source_query)
233 (debuginfod_debuginfo_query): Also do early exit if
234 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
235
236 2020-11-18 Tom de Vries <tdevries@suse.de>
237
238 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
239 warning.
240
241 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * gdbtypes.h (get_array_bounds): Return bool, adjust some
244 callers. Move doc here.
245 * gdbtypes.c (get_array_bounds): Return bool
246
247 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
250 assert.
251 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
252 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
253 case to the default.
254
255 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * printcmd.c: Include 'safe-ctype.c'.
258 (skip_over_slash_fmt): New function.
259 (print_command_completer): Call skip_over_slash_fmt.
260 (display_and_x_command_completer): New function.
261 (_initialize_printcmd): Add command completion for 'x' and
262 'display'.
263
264 2020-11-16 Pedro Alves <pedro@palves.net>
265
266 * frame.c (get_prev_frame): Move get_frame_id call from here ...
267 (get_prev_frame_always_1): ... to here.
268 * inline-frame.c (inline_frame_this_id): Mention
269 get_prev_frame_always_1 in comment.
270
271 2020-11-15 Joel Brobecker <brobecker@adacore.com>
272
273 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
274 handling.
275 (value_less): Add fixed-point handling.
276
277 2020-11-15 Joel Brobecker <brobecker@adacore.com>
278
279 * eval.c (binop_promote): Add fixed-point type handling.
280 * valarith.c (fixed_point_binop): New function.
281 (scalar_binop): Add fixed-point type handling.
282 (value_neg): Add fixed-point type handling.
283 * valops.c (value_cast_to_fixed_point): New function.
284 (value_cast): Add fixed-point type handling.
285
286 2020-11-15 Joel Brobecker <brobecker@adacore.com>
287
288 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
289 range types.
290 * c-typeprint.c (c_type_print_varspec_prefix)
291 (c_type_print_varspec_suffix, c_type_print_base_1): Add
292 TYPE_CODE_FIXED_POINT handling.
293 * p-typeprint.c (pascal_type_print_varspec_prefix)
294 (pascal_type_print_varspec_suffix): Likewise.
295 * typeprint.c (print_type_fixed_point): New function.
296 * typeprint.h (print_type_fixed_point): Add declaration.
297
298 2020-11-15 Joel Brobecker <brobecker@adacore.com>
299
300 * printcmd.c (print_scalar_formatted): Add fixed-point type
301 handling when options->format is set.
302
303 2020-11-15 Joel Brobecker <brobecker@adacore.com>
304
305 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
306 * dwarf2/read.c (get_dwarf2_rational_constant)
307 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
308 (has_zero_over_zero_small_attribute): New functions.
309 read_base_type, set_die_type): Add fixed-point type handling.
310 * gdb-gdb.py.in: Add fixed-point type handling.
311 * gdbtypes.c: #include "gmp-utils.h".
312 (create_range_type, set_type_code): Add fixed-point type handling.
313 (init_fixed_point_type): New function.
314 (is_integral_type, is_scalar_type): Add fixed-point type handling.
315 (print_fixed_point_type_info): New function.
316 (recursive_dump_type, copy_type_recursive): Add fixed-point type
317 handling.
318 (fixed_point_type_storage): New typedef.
319 (fixed_point_objfile_key): New static global.
320 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
321 (fixed_point_type_base_type, fixed_point_scaling_factor): New
322 functions.
323 * gdbtypes.h: #include "gmp-utils.h".
324 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
325 (union type_specific) <fixed_point_info>: New field.
326 (struct fixed_point_type_info): New struct.
327 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
328 (init_fixed_point_type, is_fixed_point_type)
329 (fixed_point_type_base_type, fixed_point_scaling_factor)
330 (allocate_fixed_point_type_info): Add declarations.
331 * valprint.c (generic_val_print_fixed_point): New function.
332 (generic_value_print): Add fixed-point type handling.
333 * value.c (value_as_address, unpack_long): Add fixed-point type
334 handling.
335
336 2020-11-15 Joel Brobecker <brobecker@adacore.com>
337
338 * utils.h (uinteger_pow): Add declaration.
339 * utils.c (uinteger_pow): Moved here (without changes)...
340 * valarith.c (uinteger_pow): ... from here.
341
342 2020-11-15 Joel Brobecker <brobecker@adacore.com>
343
344 * gmp-utils.h, gmp-utils.c: New file.
345 * unittests/gmp-utils-selftests.c: New file.
346 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
347 unittests/gmp-utils-selftests.c.
348 (COMMON_SFILES) Add gmp-utils.c.
349 (HFILES_NO_SRCDIR): Add gmp-utils.h.
350
351 2020-11-15 Joel Brobecker <brobecker@adacore.com>
352
353 * configure.ac: Generate an error if a usable GMP library
354 could not be found.
355 * configure: Regenerate.
356
357 2020-11-15 Joel Brobecker <brobecker@adacore.com>
358
359 * configure.ac: Add support for --with-libgmp-prefix.
360 * Makefile.in (LIBGMP): New variable.
361 (CLIBS): Include $(LIBGMP).
362 * configure, config.in: Regenerate
363
364 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 PR cli/26879
367 * f-exp.y (COMPLETE): New token.
368 (exp): Two new rules for tab-completion.
369 (saw_name_at_eof): New static global.
370 (last_was_structop): Likewise.
371 (yylex): Set new variables, and return COMPLETE token at the end
372 of the input stream in some cases.
373
374 2020-11-14 Tom Tromey <tom@tromey.com>
375
376 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
377
378 2020-11-14 Tom Tromey <tom@tromey.com>
379
380 * opencl-lang.c (opencl_component_ref): Make "comps" const.
381
382 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
385
386 2020-11-13 Tom Tromey <tom@tromey.com>
387
388 * c-lang.c (convert_ucn, convert_octal, convert_hex)
389 (convert_escape, parse_one_string): Constify.
390
391 2020-11-13 Keith Seitz <keiths@redhat.com>
392
393 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
394 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
395 outside of ELF segments" warning for debugin
396
397 2020-11-13 Keith Seitz <keiths@redhat.com>
398
399 PR gdb/23034
400 * elfread.c (elf_symfile_segments): Output a BFD file name
401 for the "Loadable section ... outside of ELF segments" warning.
402
403 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
404
405 PR gdb/26835
406 * arm-tdep.c (class arm_instruction_reader): New.
407 (target_arm_instruction_reader): New.
408 (arm_analyze_prologue): Add instruction reader parameter and use
409 it. Use arm_expand_immediate.
410 (class target_arm_instruction_reader): Adjust.
411 (arm_skip_prologue): Adjust.
412 (arm_expand_immediate): New.
413 (arm_scan_prologue): Adjust.
414 (arm_analyze_prologue_test): New.
415 (class test_arm_instruction_reader): New.
416
417 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
418
419 * f-lang.c (fortran_argument_convert): Add declaration. Add
420 header comment, taken from f-lang.h. Make static.
421 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
422 (fortran_argument_convert): Delete declaration.
423
424 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * ada-exp.y (find_primitive_type): Make parameter const.
427 * ada-lang.c (enum ada_primitive_types): Delete.
428 (ada_language::language_arch_info): Update.
429 * c-lang.c (enum c_primitive_types): Delete.
430 (c_language_arch_info): Update.
431 (enum cplus_primitive_types): Delete.
432 (cplus_language::language_arch_info): Update.
433 * d-lang.c (enum d_primitive_types): Delete.
434 (d_language::language_arch_info): Update.
435 * f-lang.c (enum f_primitive_types): Delete.
436 (f_language::language_arch_info): Update.
437 * go-lang.c (enum go_primitive_types): Delete.
438 (go_language::language_arch_info): Update.
439 * language.c (auto_or_unknown_language::language_arch_info):
440 Update.
441 (language_gdbarch_post_init): Use obstack_new, use array indexing.
442 (language_string_char_type): Add header comment, call function in
443 language_arch_info.
444 (language_bool_type): Likewise
445 (language_arch_info::bool_type): Define.
446 (language_lookup_primitive_type_1): Delete.
447 (language_lookup_primitive_type): Rewrite as a templated function
448 to call function in language_arch_info, then instantiate twice.
449 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
450 (language_arch_info::lookup_primitive_type_and_symbol): Define.
451 (language_arch_info::lookup_primitive_type): Define twice with
452 different signatures.
453 (language_arch_info::lookup_primitive_type_as_symbol): Define.
454 (language_lookup_primitive_type_as_symbol): Rewrite to call a
455 member function in language_arch_info.
456 * language.h (language_arch_info): Complete rewrite.
457 (language_lookup_primitive_type): Make templated.
458 * m2-lang.c (enum m2_primitive_types): Delete.
459 (m2_language::language_arch_info): Update.
460 * opencl-lang.c (OCL_P_TYPE): Delete.
461 (enum opencl_primitive_types): Delete.
462 (opencl_type_data): Delete.
463 (builtin_opencl_type): Delete.
464 (lookup_opencl_vector_type): Update.
465 (opencl_language::language_arch_info): Update, lots of content
466 moved from...
467 (build_opencl_types): ...here. This function is now deleted.
468 (_initialize_opencl_language): Delete.
469 * p-lang.c (enum pascal_primitive_types): Delete.
470 (pascal_language::language_arch_info): Update.
471 * rust-lang.c (enum rust_primitive_types): Delete.
472 (rust_language::language_arch_info): Update.
473
474 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
477 dwarf2_queue_guard.
478
479 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
482 comment.
483
484 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
485
486 * dwarf2/read.c (dwarf_read_debug_printf,
487 dwarf_read_debug_printf_v): New macros, use throughout the file.
488
489 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
490
491 * arc-linux-tdep.c (collect_register): Populate "eret" by
492 "pc" value from the regcache when asked for "pc" value.
493
494 2020-11-12 Tom Tromey <tom@tromey.com>
495
496 PR rust/26799:
497 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
498 exist.
499
500 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * features/Makefile (XMLTOC): Add rx.xml.
503 (FEATURE_XMLFILES): Remove rx.xml.
504 (FEATURE_CFILES rule): Pass '-single-feature' flag.
505 * features/rx.c: Regenerate.
506 * features/rx.xml: Wrap in `target` tags, and reindent.
507 * target-descriptions.c (struct maint_print_c_tdesc_options): New
508 structure.
509 (maint_print_c_tdesc_opt_def): New typedef.
510 (maint_print_c_tdesc_opt_defs): New static global.
511 (make_maint_print_c_tdesc_options_def_group): New function.
512 (maint_print_c_tdesc_cmd): Make use of command line flags, only
513 print single feature C file for target descriptions containing a
514 single feature.
515 (maint_print_c_tdesc_cmd_completer): New function.
516 (_initialize_target_descriptions): Update call to register command
517 completer, and include command line flag in help text.
518
519 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
520
521 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
522 numbers.
523 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
524 enum values.
525
526 2020-11-10 Tom Tromey <tom@tromey.com>
527
528 * value.h (internalvar_name): Update.
529 * value.c (internalvar_name): Make return type const.
530
531 2020-11-10 Tom Tromey <tom@tromey.com>
532
533 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
534 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
535 const.
536
537 2020-11-10 Tom Tromey <tom@tromey.com>
538
539 * objc-lang.h (value_nsstring): Update.
540 * objc-lang.c (value_nsstring): Make "ptr" const.
541
542 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * expprint.c (print_subexp_funcall): Increment expression position
545 after reading argument count.
546 * f-lang.c (print_subexp_f): Skip over opcode before calling
547 common function.
548 (dump_subexp_body_f): Likewise.
549
550 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
551
552 PR python/26832
553 * configure: Regenerate.
554 * configure.ac: Check for python modules ctypes instead of
555 itertools.
556
557 2020-11-06 Pedro Alves <pedro@palves.net>
558
559 * macroexp.c (struct macro_buffer): Split in two classes. Add
560 uses adjusted.
561 (struct shared_macro_buffer): New, factored out from struct
562 macro_buffer.
563 (struct growable_macro_buffer): New, factored out from struct
564 macro_buffer.
565 (set_token, get_comment, get_identifier, get_pp_number)
566 (get_character_constant, get_string_literal, get_punctuator)
567 (get_next_token_for_substitution): Constify parameters.
568 (substitute_args): Constify locals.
569
570 2020-11-05 Tom Tromey <tom@tromey.com>
571
572 * dwarf2/read.c (read_cutu_die_from_dwo)
573 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
574 (build_type_psymtabs_1): Update.
575 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
576 parameter.
577 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
578 Don't read section. Add assert.
579
580 2020-11-04 Tom Tromey <tromey@adacore.com>
581
582 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
583
584 2020-11-04 Tom Tromey <tromey@adacore.com>
585
586 * ada-typeprint.c (ada_print_type): Handle __T types.
587
588 2020-11-04 Tom Tromey <tromey@adacore.com>
589
590 * dwarf2/read.c (add_partial_symbol, process_die):
591 Handle DW_TAG_array_type.
592 (is_type_tag_for_partial): Add "lang" parameter.
593 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
594
595 2020-11-04 Tom Tromey <tromey@adacore.com>
596
597 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
598
599 2020-11-04 Tom Tromey <tromey@adacore.com>
600
601 * dwarf2/read.c (read_array_type): Only apply stride to innermost
602 array.
603
604 2020-11-04 Tom Tromey <tromey@adacore.com>
605
606 * gdbtypes.c (update_static_array_size): Handle bit stride.
607
608 2020-11-04 Tom Tromey <tromey@adacore.com>
609
610 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
611
612 2020-11-04 Tom Tromey <tromey@adacore.com>
613
614 * ada-lang.c (ada_is_any_packed_array_type): New function.
615 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
616
617 2020-11-04 Tom Tromey <tromey@adacore.com>
618
619 * dwarf2/read.c (recognize_bound_expression)
620 (quirk_ada_thick_pointer): New functions.
621 (read_array_type): Call quirk_ada_thick_pointer.
622 (set_die_type): Add "skip_data_location" parameter.
623 (quirk_ada_thick_pointer): New function.
624 (process_structure_scope): Call quirk_ada_thick_pointer.
625 * ada-lang.c (ada_is_unconstrained_packed_array_type)
626 (decode_packed_array_bitsize): Handle thick pointers without
627 parallel types.
628 (ada_is_gnat_encoded_packed_array_type): Rename from
629 ada_is_packed_array_type.
630 (ada_is_constrained_packed_array_type): Update.
631 * ada-valprint.c (ada_val_print_gnat_array): Remove.
632 (ada_value_print_1): Use ada_get_decoded_value.
633
634 2020-11-04 Tom Tromey <tromey@adacore.com>
635
636 * ada-lang.c (recursively_update_array_bitsize): New function.
637 (decode_constrained_packed_array_type): Call it.
638
639 2020-11-04 Tom Tromey <tromey@adacore.com>
640
641 * ada-lang.c (to_fixed_array_type): Error if
642 decode_constrained_packed_array_type returns NULL.
643
644 2020-11-04 Tom Tromey <tromey@adacore.com>
645
646 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
647
648 2020-11-02 Tom Tromey <tromey@adacore.com>
649
650 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
651 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
652 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
653 * amd64-ravenscar-thread.c: New file.
654 * amd64-ravenscar-thread.h: New file.
655 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
656 * configure.tgt (amd64_tobjs): Add ravenscar objects.
657
658 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * main.c (execute_cmdargs): New function.
661 (captured_main_1): Make use of execute_cmdargs.
662
663 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * NEWS: Mention changes to config file search path.
666 * main.c
667
668 2020-11-02 Tom Tromey <tromey@adacore.com>
669
670 * python/python.c: Consolidate two HAVE_PYTHON blocks.
671 (python_GdbModuleDef): Move earlier. Now static.
672 (do_start_initialization): Consolidate some IS_PY3K blocks.
673
674 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
675
676 * aarch64-linux-tdep.c: Fix indentation.
677 * aarch64-ravenscar-thread.c: Fix indentation.
678 * aarch64-tdep.c: Fix indentation.
679 * aarch64-tdep.h: Fix indentation.
680 * ada-lang.c: Fix indentation.
681 * ada-lang.h: Fix indentation.
682 * ada-tasks.c: Fix indentation.
683 * ada-typeprint.c: Fix indentation.
684 * ada-valprint.c: Fix indentation.
685 * ada-varobj.c: Fix indentation.
686 * addrmap.c: Fix indentation.
687 * addrmap.h: Fix indentation.
688 * agent.c: Fix indentation.
689 * aix-thread.c: Fix indentation.
690 * alpha-bsd-nat.c: Fix indentation.
691 * alpha-linux-tdep.c: Fix indentation.
692 * alpha-mdebug-tdep.c: Fix indentation.
693 * alpha-nbsd-tdep.c: Fix indentation.
694 * alpha-obsd-tdep.c: Fix indentation.
695 * alpha-tdep.c: Fix indentation.
696 * amd64-bsd-nat.c: Fix indentation.
697 * amd64-darwin-tdep.c: Fix indentation.
698 * amd64-linux-nat.c: Fix indentation.
699 * amd64-linux-tdep.c: Fix indentation.
700 * amd64-nat.c: Fix indentation.
701 * amd64-obsd-tdep.c: Fix indentation.
702 * amd64-tdep.c: Fix indentation.
703 * amd64-windows-tdep.c: Fix indentation.
704 * annotate.c: Fix indentation.
705 * arc-tdep.c: Fix indentation.
706 * arch-utils.c: Fix indentation.
707 * arch/arm-get-next-pcs.c: Fix indentation.
708 * arch/arm.c: Fix indentation.
709 * arm-linux-nat.c: Fix indentation.
710 * arm-linux-tdep.c: Fix indentation.
711 * arm-nbsd-tdep.c: Fix indentation.
712 * arm-pikeos-tdep.c: Fix indentation.
713 * arm-tdep.c: Fix indentation.
714 * arm-tdep.h: Fix indentation.
715 * arm-wince-tdep.c: Fix indentation.
716 * auto-load.c: Fix indentation.
717 * auxv.c: Fix indentation.
718 * avr-tdep.c: Fix indentation.
719 * ax-gdb.c: Fix indentation.
720 * ax-general.c: Fix indentation.
721 * bfin-linux-tdep.c: Fix indentation.
722 * block.c: Fix indentation.
723 * block.h: Fix indentation.
724 * blockframe.c: Fix indentation.
725 * bpf-tdep.c: Fix indentation.
726 * break-catch-sig.c: Fix indentation.
727 * break-catch-syscall.c: Fix indentation.
728 * break-catch-throw.c: Fix indentation.
729 * breakpoint.c: Fix indentation.
730 * breakpoint.h: Fix indentation.
731 * bsd-uthread.c: Fix indentation.
732 * btrace.c: Fix indentation.
733 * build-id.c: Fix indentation.
734 * buildsym-legacy.h: Fix indentation.
735 * buildsym.c: Fix indentation.
736 * c-typeprint.c: Fix indentation.
737 * c-valprint.c: Fix indentation.
738 * c-varobj.c: Fix indentation.
739 * charset.c: Fix indentation.
740 * cli/cli-cmds.c: Fix indentation.
741 * cli/cli-decode.c: Fix indentation.
742 * cli/cli-decode.h: Fix indentation.
743 * cli/cli-script.c: Fix indentation.
744 * cli/cli-setshow.c: Fix indentation.
745 * coff-pe-read.c: Fix indentation.
746 * coffread.c: Fix indentation.
747 * compile/compile-cplus-types.c: Fix indentation.
748 * compile/compile-object-load.c: Fix indentation.
749 * compile/compile-object-run.c: Fix indentation.
750 * completer.c: Fix indentation.
751 * corefile.c: Fix indentation.
752 * corelow.c: Fix indentation.
753 * cp-abi.h: Fix indentation.
754 * cp-namespace.c: Fix indentation.
755 * cp-support.c: Fix indentation.
756 * cp-valprint.c: Fix indentation.
757 * cris-linux-tdep.c: Fix indentation.
758 * cris-tdep.c: Fix indentation.
759 * darwin-nat-info.c: Fix indentation.
760 * darwin-nat.c: Fix indentation.
761 * darwin-nat.h: Fix indentation.
762 * dbxread.c: Fix indentation.
763 * dcache.c: Fix indentation.
764 * disasm.c: Fix indentation.
765 * dtrace-probe.c: Fix indentation.
766 * dwarf2/abbrev.c: Fix indentation.
767 * dwarf2/attribute.c: Fix indentation.
768 * dwarf2/expr.c: Fix indentation.
769 * dwarf2/frame.c: Fix indentation.
770 * dwarf2/index-cache.c: Fix indentation.
771 * dwarf2/index-write.c: Fix indentation.
772 * dwarf2/line-header.c: Fix indentation.
773 * dwarf2/loc.c: Fix indentation.
774 * dwarf2/macro.c: Fix indentation.
775 * dwarf2/read.c: Fix indentation.
776 * dwarf2/read.h: Fix indentation.
777 * elfread.c: Fix indentation.
778 * eval.c: Fix indentation.
779 * event-top.c: Fix indentation.
780 * exec.c: Fix indentation.
781 * exec.h: Fix indentation.
782 * expprint.c: Fix indentation.
783 * f-lang.c: Fix indentation.
784 * f-typeprint.c: Fix indentation.
785 * f-valprint.c: Fix indentation.
786 * fbsd-nat.c: Fix indentation.
787 * fbsd-tdep.c: Fix indentation.
788 * findvar.c: Fix indentation.
789 * fork-child.c: Fix indentation.
790 * frame-unwind.c: Fix indentation.
791 * frame-unwind.h: Fix indentation.
792 * frame.c: Fix indentation.
793 * frv-linux-tdep.c: Fix indentation.
794 * frv-tdep.c: Fix indentation.
795 * frv-tdep.h: Fix indentation.
796 * ft32-tdep.c: Fix indentation.
797 * gcore.c: Fix indentation.
798 * gdb_bfd.c: Fix indentation.
799 * gdbarch.sh: Fix indentation.
800 * gdbarch.c: Re-generate
801 * gdbarch.h: Re-generate.
802 * gdbcore.h: Fix indentation.
803 * gdbthread.h: Fix indentation.
804 * gdbtypes.c: Fix indentation.
805 * gdbtypes.h: Fix indentation.
806 * glibc-tdep.c: Fix indentation.
807 * gnu-nat.c: Fix indentation.
808 * gnu-nat.h: Fix indentation.
809 * gnu-v2-abi.c: Fix indentation.
810 * gnu-v3-abi.c: Fix indentation.
811 * go32-nat.c: Fix indentation.
812 * guile/guile-internal.h: Fix indentation.
813 * guile/scm-cmd.c: Fix indentation.
814 * guile/scm-frame.c: Fix indentation.
815 * guile/scm-iterator.c: Fix indentation.
816 * guile/scm-math.c: Fix indentation.
817 * guile/scm-ports.c: Fix indentation.
818 * guile/scm-pretty-print.c: Fix indentation.
819 * guile/scm-value.c: Fix indentation.
820 * h8300-tdep.c: Fix indentation.
821 * hppa-linux-nat.c: Fix indentation.
822 * hppa-linux-tdep.c: Fix indentation.
823 * hppa-nbsd-nat.c: Fix indentation.
824 * hppa-nbsd-tdep.c: Fix indentation.
825 * hppa-obsd-nat.c: Fix indentation.
826 * hppa-tdep.c: Fix indentation.
827 * hppa-tdep.h: Fix indentation.
828 * i386-bsd-nat.c: Fix indentation.
829 * i386-darwin-nat.c: Fix indentation.
830 * i386-darwin-tdep.c: Fix indentation.
831 * i386-dicos-tdep.c: Fix indentation.
832 * i386-gnu-nat.c: Fix indentation.
833 * i386-linux-nat.c: Fix indentation.
834 * i386-linux-tdep.c: Fix indentation.
835 * i386-nto-tdep.c: Fix indentation.
836 * i386-obsd-tdep.c: Fix indentation.
837 * i386-sol2-nat.c: Fix indentation.
838 * i386-tdep.c: Fix indentation.
839 * i386-tdep.h: Fix indentation.
840 * i386-windows-tdep.c: Fix indentation.
841 * i387-tdep.c: Fix indentation.
842 * i387-tdep.h: Fix indentation.
843 * ia64-libunwind-tdep.c: Fix indentation.
844 * ia64-libunwind-tdep.h: Fix indentation.
845 * ia64-linux-nat.c: Fix indentation.
846 * ia64-linux-tdep.c: Fix indentation.
847 * ia64-tdep.c: Fix indentation.
848 * ia64-tdep.h: Fix indentation.
849 * ia64-vms-tdep.c: Fix indentation.
850 * infcall.c: Fix indentation.
851 * infcmd.c: Fix indentation.
852 * inferior.c: Fix indentation.
853 * infrun.c: Fix indentation.
854 * iq2000-tdep.c: Fix indentation.
855 * language.c: Fix indentation.
856 * linespec.c: Fix indentation.
857 * linux-fork.c: Fix indentation.
858 * linux-nat.c: Fix indentation.
859 * linux-tdep.c: Fix indentation.
860 * linux-thread-db.c: Fix indentation.
861 * lm32-tdep.c: Fix indentation.
862 * m2-lang.c: Fix indentation.
863 * m2-typeprint.c: Fix indentation.
864 * m2-valprint.c: Fix indentation.
865 * m32c-tdep.c: Fix indentation.
866 * m32r-linux-tdep.c: Fix indentation.
867 * m32r-tdep.c: Fix indentation.
868 * m68hc11-tdep.c: Fix indentation.
869 * m68k-bsd-nat.c: Fix indentation.
870 * m68k-linux-nat.c: Fix indentation.
871 * m68k-linux-tdep.c: Fix indentation.
872 * m68k-tdep.c: Fix indentation.
873 * machoread.c: Fix indentation.
874 * macrocmd.c: Fix indentation.
875 * macroexp.c: Fix indentation.
876 * macroscope.c: Fix indentation.
877 * macrotab.c: Fix indentation.
878 * macrotab.h: Fix indentation.
879 * main.c: Fix indentation.
880 * mdebugread.c: Fix indentation.
881 * mep-tdep.c: Fix indentation.
882 * mi/mi-cmd-catch.c: Fix indentation.
883 * mi/mi-cmd-disas.c: Fix indentation.
884 * mi/mi-cmd-env.c: Fix indentation.
885 * mi/mi-cmd-stack.c: Fix indentation.
886 * mi/mi-cmd-var.c: Fix indentation.
887 * mi/mi-cmds.c: Fix indentation.
888 * mi/mi-main.c: Fix indentation.
889 * mi/mi-parse.c: Fix indentation.
890 * microblaze-tdep.c: Fix indentation.
891 * minidebug.c: Fix indentation.
892 * minsyms.c: Fix indentation.
893 * mips-linux-nat.c: Fix indentation.
894 * mips-linux-tdep.c: Fix indentation.
895 * mips-nbsd-tdep.c: Fix indentation.
896 * mips-tdep.c: Fix indentation.
897 * mn10300-linux-tdep.c: Fix indentation.
898 * mn10300-tdep.c: Fix indentation.
899 * moxie-tdep.c: Fix indentation.
900 * msp430-tdep.c: Fix indentation.
901 * namespace.h: Fix indentation.
902 * nat/fork-inferior.c: Fix indentation.
903 * nat/gdb_ptrace.h: Fix indentation.
904 * nat/linux-namespaces.c: Fix indentation.
905 * nat/linux-osdata.c: Fix indentation.
906 * nat/netbsd-nat.c: Fix indentation.
907 * nat/x86-dregs.c: Fix indentation.
908 * nbsd-nat.c: Fix indentation.
909 * nbsd-tdep.c: Fix indentation.
910 * nios2-linux-tdep.c: Fix indentation.
911 * nios2-tdep.c: Fix indentation.
912 * nto-procfs.c: Fix indentation.
913 * nto-tdep.c: Fix indentation.
914 * objfiles.c: Fix indentation.
915 * objfiles.h: Fix indentation.
916 * opencl-lang.c: Fix indentation.
917 * or1k-tdep.c: Fix indentation.
918 * osabi.c: Fix indentation.
919 * osabi.h: Fix indentation.
920 * osdata.c: Fix indentation.
921 * p-lang.c: Fix indentation.
922 * p-typeprint.c: Fix indentation.
923 * p-valprint.c: Fix indentation.
924 * parse.c: Fix indentation.
925 * ppc-linux-nat.c: Fix indentation.
926 * ppc-linux-tdep.c: Fix indentation.
927 * ppc-nbsd-nat.c: Fix indentation.
928 * ppc-nbsd-tdep.c: Fix indentation.
929 * ppc-obsd-nat.c: Fix indentation.
930 * ppc-ravenscar-thread.c: Fix indentation.
931 * ppc-sysv-tdep.c: Fix indentation.
932 * ppc64-tdep.c: Fix indentation.
933 * printcmd.c: Fix indentation.
934 * proc-api.c: Fix indentation.
935 * producer.c: Fix indentation.
936 * producer.h: Fix indentation.
937 * prologue-value.c: Fix indentation.
938 * prologue-value.h: Fix indentation.
939 * psymtab.c: Fix indentation.
940 * python/py-arch.c: Fix indentation.
941 * python/py-bpevent.c: Fix indentation.
942 * python/py-event.c: Fix indentation.
943 * python/py-event.h: Fix indentation.
944 * python/py-finishbreakpoint.c: Fix indentation.
945 * python/py-frame.c: Fix indentation.
946 * python/py-framefilter.c: Fix indentation.
947 * python/py-inferior.c: Fix indentation.
948 * python/py-infthread.c: Fix indentation.
949 * python/py-objfile.c: Fix indentation.
950 * python/py-prettyprint.c: Fix indentation.
951 * python/py-registers.c: Fix indentation.
952 * python/py-signalevent.c: Fix indentation.
953 * python/py-stopevent.c: Fix indentation.
954 * python/py-stopevent.h: Fix indentation.
955 * python/py-threadevent.c: Fix indentation.
956 * python/py-tui.c: Fix indentation.
957 * python/py-unwind.c: Fix indentation.
958 * python/py-value.c: Fix indentation.
959 * python/py-xmethods.c: Fix indentation.
960 * python/python-internal.h: Fix indentation.
961 * python/python.c: Fix indentation.
962 * ravenscar-thread.c: Fix indentation.
963 * record-btrace.c: Fix indentation.
964 * record-full.c: Fix indentation.
965 * record.c: Fix indentation.
966 * reggroups.c: Fix indentation.
967 * regset.h: Fix indentation.
968 * remote-fileio.c: Fix indentation.
969 * remote.c: Fix indentation.
970 * reverse.c: Fix indentation.
971 * riscv-linux-tdep.c: Fix indentation.
972 * riscv-ravenscar-thread.c: Fix indentation.
973 * riscv-tdep.c: Fix indentation.
974 * rl78-tdep.c: Fix indentation.
975 * rs6000-aix-tdep.c: Fix indentation.
976 * rs6000-lynx178-tdep.c: Fix indentation.
977 * rs6000-nat.c: Fix indentation.
978 * rs6000-tdep.c: Fix indentation.
979 * rust-lang.c: Fix indentation.
980 * rx-tdep.c: Fix indentation.
981 * s12z-tdep.c: Fix indentation.
982 * s390-linux-tdep.c: Fix indentation.
983 * score-tdep.c: Fix indentation.
984 * ser-base.c: Fix indentation.
985 * ser-mingw.c: Fix indentation.
986 * ser-uds.c: Fix indentation.
987 * ser-unix.c: Fix indentation.
988 * serial.c: Fix indentation.
989 * sh-linux-tdep.c: Fix indentation.
990 * sh-nbsd-tdep.c: Fix indentation.
991 * sh-tdep.c: Fix indentation.
992 * skip.c: Fix indentation.
993 * sol-thread.c: Fix indentation.
994 * solib-aix.c: Fix indentation.
995 * solib-darwin.c: Fix indentation.
996 * solib-frv.c: Fix indentation.
997 * solib-svr4.c: Fix indentation.
998 * solib.c: Fix indentation.
999 * source.c: Fix indentation.
1000 * sparc-linux-tdep.c: Fix indentation.
1001 * sparc-nbsd-tdep.c: Fix indentation.
1002 * sparc-obsd-tdep.c: Fix indentation.
1003 * sparc-ravenscar-thread.c: Fix indentation.
1004 * sparc-tdep.c: Fix indentation.
1005 * sparc64-linux-tdep.c: Fix indentation.
1006 * sparc64-nbsd-tdep.c: Fix indentation.
1007 * sparc64-obsd-tdep.c: Fix indentation.
1008 * sparc64-tdep.c: Fix indentation.
1009 * stabsread.c: Fix indentation.
1010 * stack.c: Fix indentation.
1011 * stap-probe.c: Fix indentation.
1012 * stubs/ia64vms-stub.c: Fix indentation.
1013 * stubs/m32r-stub.c: Fix indentation.
1014 * stubs/m68k-stub.c: Fix indentation.
1015 * stubs/sh-stub.c: Fix indentation.
1016 * stubs/sparc-stub.c: Fix indentation.
1017 * symfile-mem.c: Fix indentation.
1018 * symfile.c: Fix indentation.
1019 * symfile.h: Fix indentation.
1020 * symmisc.c: Fix indentation.
1021 * symtab.c: Fix indentation.
1022 * symtab.h: Fix indentation.
1023 * target-float.c: Fix indentation.
1024 * target.c: Fix indentation.
1025 * target.h: Fix indentation.
1026 * tic6x-tdep.c: Fix indentation.
1027 * tilegx-linux-tdep.c: Fix indentation.
1028 * tilegx-tdep.c: Fix indentation.
1029 * top.c: Fix indentation.
1030 * tracefile-tfile.c: Fix indentation.
1031 * tracepoint.c: Fix indentation.
1032 * tui/tui-disasm.c: Fix indentation.
1033 * tui/tui-io.c: Fix indentation.
1034 * tui/tui-regs.c: Fix indentation.
1035 * tui/tui-stack.c: Fix indentation.
1036 * tui/tui-win.c: Fix indentation.
1037 * tui/tui-winsource.c: Fix indentation.
1038 * tui/tui.c: Fix indentation.
1039 * typeprint.c: Fix indentation.
1040 * ui-out.h: Fix indentation.
1041 * unittests/copy_bitwise-selftests.c: Fix indentation.
1042 * unittests/memory-map-selftests.c: Fix indentation.
1043 * utils.c: Fix indentation.
1044 * v850-tdep.c: Fix indentation.
1045 * valarith.c: Fix indentation.
1046 * valops.c: Fix indentation.
1047 * valprint.c: Fix indentation.
1048 * valprint.h: Fix indentation.
1049 * value.c: Fix indentation.
1050 * value.h: Fix indentation.
1051 * varobj.c: Fix indentation.
1052 * vax-tdep.c: Fix indentation.
1053 * windows-nat.c: Fix indentation.
1054 * windows-tdep.c: Fix indentation.
1055 * xcoffread.c: Fix indentation.
1056 * xml-syscall.c: Fix indentation.
1057 * xml-tdesc.c: Fix indentation.
1058 * xstormy16-tdep.c: Fix indentation.
1059 * xtensa-config.c: Fix indentation.
1060 * xtensa-linux-nat.c: Fix indentation.
1061 * xtensa-linux-tdep.c: Fix indentation.
1062 * xtensa-tdep.c: Fix indentation.
1063
1064 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1065 Craig Blackmore <craig.blackmore@embecosm.com>
1066
1067 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1068 as an unsigned value.
1069
1070 2020-11-01 Tom Tromey <tom@tromey.com>
1071
1072 * dbxread.c (dbx_end_psymtab): Update.
1073 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1074 (build_type_psymtabs_reader): Update.
1075 * xcoffread.c (xcoff_end_psymtab): Update.
1076 * ctfread.c (scan_partial_symbols): Update.
1077 * psymtab.c (sort_pst_symbols): Remove.
1078 (partial_symtab::end): Rename from end_psymtab_common. Inline
1079 sort_pst_symbols.
1080 * psympriv.h (struct partial_symtab) <end>: New method.
1081 (end_psymtab_common): Don't declare.
1082
1083 2020-11-01 Tom Tromey <tom@tromey.com>
1084
1085 * symmisc.c (count_psyms): New function.
1086 (print_objfile_statistics): Use it.
1087 * psymtab.c (append_psymbol_to_list): Remove.
1088 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1089 * objfiles.h (struct objstats) <n_psyms>: Remove.
1090
1091 2020-11-01 Tom Tromey <tom@tromey.com>
1092
1093 * dbxread.c (dbx_end_psymtab): Update.
1094 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1095 (build_type_psymtabs_reader): Update.
1096 * xcoffread.c (xcoff_end_psymtab): Update.
1097 * ctfread.c (scan_partial_symbols): Update.
1098 * psympriv.h (end_psymtab_common): Update.
1099 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1100 (sort_pst_symbols): Likewise.
1101
1102 2020-11-01 Tom Tromey <tom@tromey.com>
1103
1104 * dbxread.c (dbx_symfile_read): Update.
1105 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1106 * xcoffread.c (xcoff_initial_scan): Update.
1107 * psympriv.h (init_psymbol_list): Don't declare.
1108 * psymtab.c (init_psymbol_list): Remove.
1109
1110 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1111
1112 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1113 gnat_encoded_fixed_type_info. Update all callers.
1114
1115 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1116
1117 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1118 line too long.
1119
1120 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1121
1122 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1123 cast_from_fixed. Update all callers.
1124 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1125 Update all callers.
1126 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1127 Update all callers.
1128 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1129 ada_scaling_factor.
1130 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1131 to print_gnat_encoded_fixed_point_type.
1132 * ada-valprint.c: Likewise.
1133
1134 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1137 (debug_prefixed_printf): Add check of debug_displaced flag.
1138 * linux-nat.c (linux_nat_debug_printf): Add check of
1139 debug_linux_nat flag.
1140
1141 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * infrun.c (infrun_debug_printf_1): Remove.
1144 (displaced_debug_printf_1): Remove.
1145 (stop_all_threads): Use debug_prefixed_printf.
1146 * infrun.h (infrun_debug_printf_1): Remove.
1147 (infrun_debug_printf): Use debug_prefixed_printf.
1148 (displaced_debug_printf_1): Remove.
1149 (displaced_debug_printf): Use debug_prefixed_printf.
1150 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1151 (linux_nat_debug_printf): Use debug_prefixed_printf.
1152
1153 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1154
1155 * configure: Re-generate.
1156 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1157 AC_LANG_PROGRAM.
1158
1159 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * configure: Re-generate.
1162
1163 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * configure: Re-generate.
1166
1167 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * configure: Re-generate.
1170
1171 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * configure: Re-generate.
1174
1175 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * acinclude.m4: Modernize.
1178 * configure: Re-generate.
1179
1180 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * configure.ac: Modernize.
1183 * configure: Re-generate.
1184
1185 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1188 * configure: Re-generate.
1189 * configure.ac: Remove AM_PROG_CC_STDC.
1190
1191 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1194 AC_CANONICAL_SYSTEM.
1195 * configure: Re-generate.
1196
1197 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * infrun.h (displaced_debug_printf): New macro. Replace
1200 displaced debug prints throughout to use it.
1201 (displaced_debug_printf_1): New declaration.
1202 (displaced_step_dump_bytes): Return string, remove ui_file
1203 parameter, update all callers.
1204 * infrun.c (displaced_debug_printf_1): New function.
1205 (displaced_step_dump_bytes): Return string, remove ui_file
1206 parameter
1207
1208 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1211
1212 2020-10-30 Tom Tromey <tromey@adacore.com>
1213
1214 * Makefile.in (stamp-init): Depend on config.status.
1215
1216 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1217
1218 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1219
1220 2020-10-30 Pedro Alves <pedro@palves.net>
1221
1222 * thread.c (lookup_selected_frame): Move ...
1223 * frame.c (lookup_selected_frame): ... here.
1224
1225 2020-10-30 Pedro Alves <pedro@palves.net>
1226
1227 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1228 * frame.c
1229 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1230 Use save_selected_frame. Save language as well.
1231 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1232 Use restore_selected_frame, and restore language as well.
1233 (selected_frame_id, selected_frame_level): New.
1234 (selected_frame): Update comments.
1235 (save_selected_frame, restore_selected_frame): New.
1236 (get_selected_frame): Use lookup_selected_frame.
1237 (get_selected_frame_if_set): Delete.
1238 (select_frame): Record selected_frame_level and selected_frame_id.
1239 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1240 fields.
1241 (get_selected_frame): Make 'message' parameter optional.
1242 (get_selected_frame_if_set): Delete declaration.
1243 (select_frame): Update comments.
1244 (save_selected_frame, restore_selected_frame)
1245 (lookup_selected_frame): Declare.
1246 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1247 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1248 New field.
1249 (save_infcall_control_state): Use save_selected_frame.
1250 (restore_selected_frame): Delete.
1251 (restore_infcall_control_state): Use restore_selected_frame.
1252 * stack.c (select_frame_command_core, frame_command_core): Use
1253 get_selected_frame.
1254 * thread.c (restore_selected_frame): Rename to ...
1255 (lookup_selected_frame): ... this and make extern. Select the
1256 current frame if the frame level is -1.
1257 (scoped_restore_current_thread::restore): Also restore the
1258 language.
1259 (scoped_restore_current_thread::~scoped_restore_current_thread):
1260 Don't try/catch.
1261 (scoped_restore_current_thread::scoped_restore_current_thread):
1262 Save the language as well. Use save_selected_frame.
1263
1264 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1267 documentation.
1268 * gdbarch.h: Re-generate.
1269
1270 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1273 parameter.
1274 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1275 Likewise.
1276 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1277 Likewise.
1278 * arch-utils.c (default_displaced_step_hw_singlestep):
1279 Likewise.
1280 * arch-utils.h (default_displaced_step_hw_singlestep):
1281 Likewise.
1282 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1283 Likewise.
1284 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1285 Likewise.
1286 * gdbarch.c: Re-generate.
1287 * gdbarch.h: Re-generate.
1288 * infrun.c (resume_1): Adjust.
1289
1290 2020-10-29 Tom Tromey <tom@tromey.com>
1291
1292 * progspace.c (program_space::~program_space): Don't call
1293 exec_close.
1294
1295 2020-10-29 Tom Tromey <tom@tromey.com>
1296
1297 * exec.c (exec_target::close): Don't change current program
1298 space.
1299
1300 2020-10-29 Tom Tromey <tom@tromey.com>
1301
1302 * symfile.c (add_symbol_file_command): Update.
1303 * exec.c (program_space::add_target_sections): Rename.
1304 * symfile-mem.c (symbol_file_add_from_memory): Update.
1305 * progspace.h (struct program_space) <add_target_sections>:
1306 Declare new overload.
1307 * exec.h (add_target_sections_of_objfile): Don't declare.
1308
1309 2020-10-29 Tom Tromey <tom@tromey.com>
1310
1311 * solib.c (solib_map_sections): Update.
1312 * exec.c (program_space::add_target_sections): Now a method.
1313 (exec_file_attach): Update.
1314 * exec.h (add_target_sections): Don't declare.
1315 * progspace.h (struct program_space) <add_target_sections>:
1316 Declare.
1317
1318 2020-10-29 Tom Tromey <tom@tromey.com>
1319
1320 * progspace.h (struct program_space) <remove_target_sections>:
1321 Declare.
1322 * exec.c (program_space::remove_target_sections): Now a method.
1323 * exec.h (remove_target_sections): Don't declare.
1324
1325 2020-10-29 Tom Tromey <tom@tromey.com>
1326
1327 * inferior.c (delete_inferior): Update.
1328 * progspace.c (program_space::empty): Rename from
1329 program_space_empty_p. Return bool.
1330 * progspace.h (struct program_space) <empty>: New method.
1331 (program_space_empty_p): Don't declare.
1332
1333 2020-10-29 Tom Tromey <tom@tromey.com>
1334
1335 * progspace.c (program_space::~program_space): Don't call
1336 clear_program_space_solib_cache.
1337 (program_space::clear_solib_cache): Rename from
1338 clear_solib_cache.
1339 * solib.c (handle_solib_event): Update.
1340 * progspace.h (struct program_space) <clear_solib_cache>: New
1341 method.
1342 (clear_program_space_solib_cache): Don't declare.
1343
1344 2020-10-29 Tom Tromey <tom@tromey.com>
1345
1346 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1347 * target.c (info_target_command): Update.
1348 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1349 (symbol_file_clear, reread_symbols): Update.
1350 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1351 * stabsread.c (scan_file_globals): Update.
1352 * solib.c (update_solib_list): Update.
1353 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1354 (svr4_fetch_objfile_link_map, enable_break)
1355 (svr4_relocate_main_executable)
1356 (svr4_iterate_over_objfiles_in_search_order): Update.
1357 * solib-frv.c (lm_base, enable_break)
1358 (frv_relocate_main_executable): Update.
1359 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1360 (frv_fetch_objfile_link_map): Update.
1361 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1362 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1363 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1364 * remote.c (remote_target::get_offsets): Update.
1365 (remote_target::start_remote)
1366 (extended_remote_target::post_attach): Update.
1367 * objfiles.c (entry_point_address_query): Update.
1368 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1369 * minsyms.c (get_symbol_leading_char): Update.
1370 * frame.c (inside_main_func): Update.
1371 * progspace.h (symfile_objfile): Remove macro.
1372
1373 2020-10-29 Tom Tromey <tom@tromey.com>
1374
1375 * exec.c (exec_file_attach): Update.
1376 * progspace.c (program_space::exec_close): Update.
1377 * progspace.h (struct program_space) <ebfd>: Now a
1378 gdb_bfd_ref_ptr.
1379 <set_exec_bfd>: Change argument type.
1380 <exec_bfd>: Update.
1381
1382 2020-10-29 Tom Tromey <tom@tromey.com>
1383
1384 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1385 * symfile.c (reread_symbols): Update.
1386 * symfile-mem.c (add_symbol_file_from_memory_command)
1387 (add_vsyscall_page): Update.
1388 * source-cache.c (source_cache::get_plain_source_lines): Update.
1389 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1390 (svr4_current_sos_direct, svr4_exec_displacement)
1391 (svr4_relocate_main_executable): Update.
1392 (svr4_iterate_over_objfiles_in_search_order): Update.
1393 * solib-frv.c (enable_break2, enable_break): Update.
1394 * solib-dsbt.c (lm_base, enable_break): Update.
1395 * solib-darwin.c (find_program_interpreter)
1396 (darwin_solib_create_inferior_hook): Update.
1397 * sol-thread.c (rw_common, ps_pdmodel): Update.
1398 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1399 * remote.c (compare_sections_command)
1400 (remote_target::trace_set_readonly_regions): Update.
1401 * remote-sim.c (get_sim_inferior_data)
1402 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1403 (gdbsim_target_open, gdbsim_target::files_info): Update.
1404 * exec.h (exec_bfd): Remove macro.
1405 * progspace.c (initialize_progspace): Update.
1406 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1407 Update.
1408 * nto-procfs.c (nto_procfs_target::post_attach)
1409 (nto_procfs_target::create_inferior): Update.
1410 * maint.c (maintenance_info_sections): Update.
1411 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1412 Update.
1413 * infcmd.c (post_create_inferior): Update.
1414 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1415 (objfile_find_memory_regions): Update.
1416 * exec.c (validate_exec_file, exec_file_attach)
1417 (exec_read_partial_read_only, print_section_info): Update.
1418 * corelow.c (core_target_open): Update.
1419 * corefile.c (reopen_exec_file, validate_files): Update.
1420 * arm-tdep.c (gdb_print_insn_arm): Update.
1421 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1422 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1423 methods.
1424
1425 2020-10-29 Tom Tromey <tom@tromey.com>
1426
1427 * progspace.h (current_target_sections): Remove macro.
1428 * solib-svr4.c (scan_dyntag): Update.
1429 * solib-dsbt.c (scan_dyntag): Update.
1430 * exec.c (exec_target::close): Update.
1431 (add_target_sections, add_target_sections_of_objfile)
1432 (remove_target_sections, exec_target::get_section_table)
1433 (exec_target::files_info, set_section_command)
1434 (exec_set_section_address, exec_target::has_memory)
1435 (exec_target::has_memory): Update.
1436
1437 2020-10-29 Tom Tromey <tom@tromey.com>
1438
1439 * source-cache.c (source_cache::get_plain_source_lines): Use
1440 current_program_space.
1441 * corefile.c (reopen_exec_file): Use current_program_space.
1442 * exec.c (exec_file_attach): Use current_program_space.
1443 * exec.h (exec_bfd_mtime): Remove.
1444
1445 2020-10-29 Tom Tromey <tom@tromey.com>
1446
1447 * gcore.c (default_gcore_mach): Remove.
1448 (create_gcore_bfd): Update.
1449
1450 2020-10-29 Tom Tromey <tom@tromey.com>
1451
1452 * progspace.c (program_space::exec_close): New method, from
1453 exec_close in exec.c.
1454 * exec.c (exec_close): Move to progspace.c.
1455 (exec_target::close, exec_file_attach): Update.
1456 * progspace.h (struct program_space) <exec_close>: Declare
1457 method.
1458
1459 2020-10-29 Tom Tromey <tom@tromey.com>
1460
1461 * progspace.h (struct program_space) <exec_filename>: Rename from
1462 pspace_exec_filename. Now a unique_xmalloc_ptr.
1463 * inferior.c (print_selected_inferior): Update.
1464 (print_inferior): Update.
1465 * mi/mi-main.c (print_one_inferior): Update.
1466 * exec.h (exec_filename): Remove macro.
1467 * corefile.c (get_exec_file): Update.
1468 * exec.c (exec_close): Update.
1469 (exec_file_attach): Update.
1470 * progspace.c (clone_program_space): Update.
1471 (print_program_space): Update.
1472
1473 2020-10-29 Tom Tromey <tom@tromey.com>
1474
1475 * target-section.h (struct target_section): Add constructor.
1476 * exec.c (build_section_table, add_target_sections_of_objfile):
1477 Update.
1478 * corelow.c (core_target::build_file_mappings): Update.
1479
1480 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1481
1482 PR gdb/19318
1483 * inferior.c (detach_inferior_command): Restore the current thread.
1484 (kill_inferior_command): Ditto.
1485
1486 2020-10-28 Tom de Vries <tdevries@suse.de>
1487
1488 PR symtab/26772
1489 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1490 map, check it in the "best match" loop.
1491
1492 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1493
1494 * m32c-tdep.c: Remove unused includes.
1495
1496 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * xtensa-tdep.c: Remove includes.
1499
1500 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501
1502 * breakpoint.c (struct condition_command_opts): New struct.
1503 (condition_command_option_defs): New static global.
1504 (make_condition_command_options_def_group): New function.
1505 (condition_completer): Update to consider the '-force' flag.
1506 (condition_command): Use gdb::option for the '-force' flag.
1507
1508 2020-10-27 Tom de Vries <tdevries@suse.de>
1509
1510 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1511 symbols in section check.
1512
1513 2020-10-27 Tom de Vries <tdevries@suse.de>
1514
1515 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1516
1517 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1518
1519 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1520 * breakpoint.c: Update the help text of the 'condition' and 'break'
1521 commands.
1522 (set_breakpoint_condition): Take a new bool parameter
1523 to control whether condition definition should be forced even when
1524 the condition expression is invalid in all of the current locations.
1525 (condition_command): Update the call to 'set_breakpoint_condition'.
1526 (find_condition_and_thread): Take the "-force-condition" flag into
1527 account.
1528 * linespec.c (linespec_keywords): Add "-force-condition" as an
1529 element.
1530 (FORCE_KEYWORD_INDEX): New #define.
1531 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1532 as a keyword.
1533 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1534 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1535 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1536 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1537
1538 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1539
1540 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1541 * breakpoint.c (set_breakpoint_location_condition): New function.
1542 (set_breakpoint_condition): Disable a breakpoint location if parsing
1543 the condition string gives an error.
1544 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1545 (build_target_condition_list): Ditto.
1546 (build_target_command_list): Ditto.
1547 (build_bpstat_chain): Ditto.
1548 (print_one_breakpoint_location): Ditto.
1549 (print_one_breakpoint): Ditto.
1550 (breakpoint_1): Ditto.
1551 (bp_location::bp_location): Ditto.
1552 (locations_are_equal): Ditto.
1553 (update_breakpoint_locations): Ditto.
1554 (enable_disable_bp_num_loc): Ditto.
1555 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1556 (find_condition_and_thread_for_sals): New static function.
1557 (create_breakpoint): Call find_condition_and_thread_for_sals.
1558 (location_to_sals): Call find_condition_and_thread_for_sals instead
1559 of find_condition_and_thread.
1560
1561 2020-10-26 Tom de Vries <tdevries@suse.de>
1562
1563 * dwarf2/read.c (process_full_comp_unit): Call
1564 dwarf2_find_base_address.
1565
1566 2020-10-26 Tom Tromey <tromey@adacore.com>
1567
1568 * gdbtypes.c (create_range_type): Revert previous patch. Add
1569 comment.
1570
1571 2020-10-26 Pedro Alves <pedro@palves.net>
1572
1573 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1574 (my_waitpid): Use gdb::handle_eintr.
1575
1576 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * acinclude.m4: Update ptrace.m4 path.
1579 * ptrace.m4: Moved to gdbsupport.
1580
1581 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1584 instead of target_gdbarch.
1585
1586 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1587
1588 * jit.c (jit_reader_load_command): Pass current inferior.
1589 (jit_inferior_init): Change parameter type to inferior, use it.
1590 (jit_inferior_created): Remove.
1591 (jit_inferior_created_hook): Pass inferior parameter down.
1592 (_initialize_jit): Use jit_inferior_created_hook instead of
1593 jit_inferior_created.
1594 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1595 * infrun.c (follow_exec): Pass inferior to
1596 jit_inferior_created_hook.
1597
1598 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1599
1600 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1601 parameter and use it.
1602 (thread_db_inferior_created): Pass inferior argument.
1603
1604 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1605
1606 * aix-thread.c (aix_thread_inferior_created): Add inferior
1607 parameter.
1608 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1609 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1610 * jit.c (jit_inferior_created): Likewise.
1611 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1612 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1613 * observable.h (inferior_created): Likewise.
1614 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1615 * symfile-mem.c (add_vsyscall_page): Likewise.
1616 * infcmd.c (post_create_inferior): Pass inferior argument.
1617
1618 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1619
1620 GDB 10.1 released.
1621
1622 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1623
1624 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1625 to ada_check_typedef.
1626
1627 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * f-exp.y (f_parse): Rename to...
1630 (f_language::parser): ...this.
1631 * f-lang.c (f_get_encoding): Rename to...
1632 (f_language::get_encoding): ...this.
1633 (f_op_print_tab): Rename to...
1634 (f_language::op_print_tab): ...this.
1635 (exp_descriptor_f): Rename to...
1636 (f_language::exp_descriptor_tab): ...this.
1637 (class f_language): Moved to f-lang.h.
1638 (f_language::language_arch_info): New function, moved out of class
1639 declaration.
1640 (f_language::search_name_hash): Likewise.
1641 (f_language::lookup_symbol_nonlocal): Likewise.
1642 (f_language::get_symbol_name_matcher_inner): Likewise.
1643 * f-lang.h: Add 'valprint.h' include.
1644 (class f_language): Moved here from f-lang.c.
1645 * f-typeprint.c (f_type_print_args): Delete commented out
1646 declaration.
1647 (f_print_typedef): Rename to...
1648 (f_language::print_typedef): ...this.
1649 (f_print_type): Rename to...
1650 (f_language::print_type): ...this.
1651 (f_type_print_varspec_prefix): Delete declaration and rename to...
1652 (f_language::f_type_print_varspec_prefix): ...this.
1653 (f_type_print_varspec_suffix): Delete declaration and rename to...
1654 (f_language::f_type_print_varspec_suffix): ...this.
1655 (f_type_print_base): Delete declaration and rename to...
1656 (f_language::f_type_print_base): ...this.
1657 * f-valprint.c (f_value_print_inner): Rename to...
1658 (f_language::value_print_inner): ...this.
1659 * parse.c: Delete 'f-lang.h' include.
1660
1661 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * language.h (language_defn::print_type): Add variable names in
1664 declaration, and update header comment.
1665
1666 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * ada-lang.c (ada_language::demangle): Rename to...
1669 (ada_language::demangle_symbol): ...this.
1670 * c-lang.c (cplus_language::demangle): Rename to...
1671 (cplus_language::demangle_symbol): ...this.
1672 * d-lang.c (d_language::demangle): Rename to...
1673 (d_language::demangle_symbol): ...this.
1674 * f-lang.c (f_language::demangle): Rename to...
1675 (f_language::demangle_symbol): ...this.
1676 * go-lang.c (go_language::demangle): Rename to...
1677 (go_language::demangle_symbol): ...this.
1678 * language.c (language_demangle): Update call to demangle_symbol.
1679 (auto_or_unknown_language::demangle): Rename to...
1680 (auto_or_unknown_language::demangle_symbol): ...this.
1681 * language.h (language_defn::demangle): Rename to...
1682 (language_defn::demangle_symbol): ...this.
1683 * objc-lang.c (objc_language::demangle): Rename to...
1684 (objc_language::demangle_symbol): ...this.
1685 * rust-lang.c (rust_language::demangle): Rename to...
1686 (rust_language::demangle_symbol): ...this.
1687
1688 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1691 (iterate_over_file_blocks): Replace use of macro with the macros
1692 definition.
1693
1694 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1697 * valprint.c (maybe_print_array_index): Replace use of macro with
1698 the macros definition.
1699
1700 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * ada-lang.c (ada_language::print_array_index): Call value_print
1703 directly.
1704 * language.c (language_defn::print_array_index): Likewise.
1705 * language.h (LA_VALUE_PRINT): Delete.
1706 * valprint.c (value_print): Call value_print on the
1707 current_language directly.
1708
1709 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * language.h (LA_PRINT_TYPEDEF): Delete.
1712 * typeprint.c (typedef_print): Call print_typedef directly on the
1713 current_language object.
1714
1715 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * m2-exp.y (m2_parse): Rename to...
1718 (m2_language::parser): ...this. Update function signature.
1719 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1720 (m2_op_print): Rename to...
1721 (m2_language::op_print_tab): ...this, and make const.
1722 (exp_descriptor_modula2): Rename to...
1723 (m2_language::exp_descriptor_modula2): ...this.
1724 (class m2_language): Move to m2-lang.h.
1725 (m2_language::language_arch_info): New function, moved out of
1726 class declaration.
1727 (m2_language::printchar): New function, body from m2_printchar.
1728 (m2_language::printstr): New function, moved out of class
1729 declaration.
1730 (m2_language::emitchar): Likewise.
1731 * m2-lang.h (m2_parse): Delete declaration.
1732 (m2_print_typedef): Delete declaration.
1733 (m2_value_print_inner): Delete declaration.
1734 (class m2_language): Class declaration moved from m2-lang.c,
1735 larger functions are left in m2-lang.c.
1736 * m2-typeprint.c (m2_print_typedef): Rename to...
1737 (m2_language::print_typedef): ...this, and update function
1738 signature.
1739 * m2-valprint.c (m2_value_print_inner): Rename to...
1740 (m2_language::value_print_inner): ...this, replace use of
1741 LA_PRINT_STRING with a direct call to printstr member function,
1742 and update recursive call.
1743
1744 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * language.c (default_is_string_type_p): Delete, implementation
1747 moved into auto_or_unknown_language::is_string_type_p.
1748 (unk_op_print_tab): Moved into
1749 auto_or_unknown_language::opcode_print_table.
1750 (unknown_language_arch_info): Delete, implementation moved into
1751 auto_or_unknown_language::language_arch_info.
1752 (class auto_or_unknown_language): New class, member functions
1753 copied from unknown_language class, with some updates.
1754 (class unknown_language): Most member functions moved into
1755 auto_or_unknown_language class. Inherit from
1756 auto_or_unknown_language class.
1757 (class auto_language): Inherit from auto_or_unknown_language.
1758 Delete most member functions.
1759
1760 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1761
1762 * stabsread.c (read_member_functions): Remove gdb_assert.
1763
1764 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1765
1766 * gdbtypes.c (init_complex_type): Check target type name.
1767
1768 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * target-debug.h (target_debug_print_struct_target_ops_p):
1771 Remove.
1772 (target_debug_print_async_callback_ftype_p): Remove.
1773 (target_debug_print_struct_trace_state_variable_p): Remove.
1774 (target_debug_print_struct_traceframe_info_p): Remove.
1775 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1776 (target_debug_print_enum_btrace_format): Remove.
1777 (target_debug_print_enum_info_proc_what): Remove.
1778 (target_debug_print_thread_info_pp): Remove.
1779
1780 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * target.h (struct target_ops) <make_corefile_notes>:
1783 Change return type to unique pointer.
1784 * target.c (dummy_make_corefile_notes): Likewise.
1785 * exec.c (struct exec_target) <make_corefile_notes>:
1786 Likewise.
1787 (exec_target::make_corefile_notes): Likewise.
1788 * procfs.c (class procfs_target) <make_corefile_notes>:
1789 Likewise.
1790 (procfs_do_thread_registers): Adjust to unique pointer.
1791 (struct procfs_corefile_thread_data): Add constructor.
1792 <note_data>: Change type to unique pointer.
1793 (procfs_corefile_thread_callback): Adjust to unique pointer.
1794 (procfs_target::make_corefile_notes): Change return type to
1795 unique pointer.
1796 * target-delegates.c: Re-generate.
1797 * gcore.c (write_gcore_file_1): Adjust.
1798 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1799 New.
1800
1801 2020-10-22 Tom de Vries <tdevries@suse.de>
1802
1803 * block.c (find_block_in_blockvector): Make sure the returned block
1804 contains pc.
1805
1806 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 PR gdb/26693
1809 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1810 parameter.
1811 (load_cu): Pass existing CU.
1812 (process_imported_unit_die): Likewise.
1813 (follow_die_offset): Likewise.
1814
1815 2020-10-22 Luis Machado <luis.machado@linaro.org>
1816
1817 * corelow.c (core_target::xfer_partial): Also check for an empty
1818 m_core_unavailable_mappings vector.
1819
1820 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1823 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1824 * f-exp.y (arglist): Allow for a series of subranges.
1825 (subrange): Add cases for subranges with strides.
1826 * f-lang.c (value_f90_subarray): Catch use of array strides and
1827 throw an error.
1828 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1829
1830 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * expprint.c (print_subexp_standard): Change enum range_type to
1833 range_flag and rename variables to match.
1834 (dump_subexp_body_standard): Likewise.
1835 * expression.h (enum range_type): Rename to...
1836 (enum range_flag): ...this.
1837 (range_types): Rename to...
1838 (range_flags): ...this.
1839 * f-lang.c (value_f90_subarray): Change enum range_type to
1840 range_flag and rename variables to match.
1841 * parse.c (operator_length_standard): Likewise.
1842 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1843 range_type to range_flag.
1844 * rust-lang.c (rust_evaluate_funcall): Likewise.
1845 (rust_range): Likewise.
1846 (rust_compute_range): Likewise.
1847 (rust_subscript): Likewise.
1848
1849 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * expprint.c (print_subexp_standard): Update to reflect changes to
1852 enum range_type.
1853 (dump_subexp_body_standard): Likewise.
1854 * expression.h (enum range_type): Convert to a bit field enum, and
1855 make the enum unsigned.
1856 * f-exp.y (subrange): Update to reflect changes to enum
1857 range_type.
1858 * f-lang.c (value_f90_subarray): Likewise.
1859 * parse.c (operator_length_standard): Likewise.
1860 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1861 * rust-lang.c (rust_range): Likewise.
1862 (rust_compute_range): Likewise.
1863 (rust_subscript): Likewise.
1864
1865 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1868 (displaced_step_in_progress): Fix comment.
1869
1870 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1873 * gdbarch.c: Re-generate.
1874 * gdbarch.h: Re-generate.
1875 * gcore.c (write_gcore_file_1): Adjust.
1876 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1877 constructor.
1878 <note_data>: Change type to unique pointer.
1879 <abort_iteration>: Change type to bool.
1880 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1881 (fbsd_collect_thread_registers): Return void, adjust.
1882 (struct fbsd_corefile_thread_data): Add construtor.
1883 <note_data>: Change type to unique pointer.
1884 (fbsd_corefile_thread): Adjust.
1885 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1886 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1887 to unique pointer, adjust.
1888 (struct linux_collect_regset_section_cb_data): Add constructor.
1889 <note_data>: Change type to unique pointer.
1890 <abort_iteration>: Change type to bool.
1891 (linux_collect_thread_registers): Return void, adjust.
1892 (struct linux_corefile_thread_data): Add constructor.
1893 <note_data>: Change type to unique pointer.
1894 (linux_corefile_thread): Adjust.
1895 (linux_make_corefile_notes): Return unique pointer, adjust.
1896
1897 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1900 * gdbarch.c: Re-generate.
1901 * gdbarch.h: Re-generate.
1902 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1903 bool.
1904 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1905 Likewise.
1906 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1907 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1908 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1909 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1910
1911 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * gdbarch.sh: Make generated predicates return bool.
1914 * gdbarch.c: Re-generate.
1915 * gdbarch.h: Re-generate.
1916
1917 2020-10-20 Tom Tromey <tom@tromey.com>
1918
1919 * varobj-iter.h (struct varobj_item): Remove typedef.
1920
1921 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * infrun.c (currently_stepping): Change int to bool
1924 (maybe_software_singlestep): Likewise.
1925 (show_stop_on_solib_events): Likewise.
1926 (stepping_past_nonsteppable_watchpoint): Likewise.
1927 (displaced_step_in_progress_any_inferior): Likewise.
1928 (displaced_step_in_progress_thread): Likewise.
1929 (keep_going_stepped_thread): Likewise.
1930 (thread_still_needs_step_over): Likewise.
1931 (start_step_over): Likewise.
1932 (do_target_resume): Likewise.
1933 (resume_1): Likewise.
1934 (clear_proceed_status): Likewise.
1935 (thread_still_needs_step_over_bp): Likewise.
1936 (proceed): Likewise.
1937 (switch_back_to_stepped_thread): Likewise.
1938 (adjust_pc_after_break): Likewise.
1939 (stepped_in_from): Likewise.
1940 (handle_stop_requested): Likewise.
1941 (handle_syscall_event): Likewise.
1942 (handle_no_resumed): Likewise.
1943 (handle_inferior_event): Likewise.
1944 (finish_step_over): Likewise.
1945 (handle_signal_stop): Likewise.
1946 (process_event_stop_test): Likewise.
1947
1948 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * infrun.c (get_displaced_stepping_state): Fix comment.
1951
1952 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1953
1954 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1955
1956 2020-10-19 Tom Tromey <tromey@adacore.com>
1957
1958 PR tui/26719
1959 * tui/tui-winsource.h (struct tui_source_window_base)
1960 <refresh_window>: Rename from refresh_pad.
1961 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1962 Rename from refresh_pad.
1963 (tui_source_window_base::show_source_content)
1964 (tui_source_window_base::do_scroll_horizontal): Update.
1965
1966 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1967
1968 * thread.c (_initialize_thread): Fine-tune the help text of
1969 'info threads'.
1970
1971 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1972
1973 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1974
1975 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1976
1977 * breakpoint.c (handle_jit_event): Add an argument, change how
1978 `jit_event_handler` is called.
1979
1980 2020-10-17 Tom Tromey <tom@tromey.com>
1981
1982 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1983 (scan_xcoff_symtab): Update.
1984 * psymtab.h (class psymtab_storage) <global_psymbols,
1985 static_psymbols, current_global_psymbols,
1986 current_static_psymbols>: Remove.
1987 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1988 (match_partial_symbol, lookup_partial_symbol): Update.
1989 (print_partial_symbols): Change parameters.
1990 (dump_psymtab, recursively_search_psymtabs)
1991 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1992 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1993 (concat): Remove.
1994 (end_psymtab_common): Simplify.
1995 (append_psymbol_to_list): Change parameters.
1996 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1997 (init_psymbol_list): Simplify.
1998 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1999 * psympriv.h (struct partial_symtab) <empty>: New method.
2000 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2001 Remove.
2002 <global_psymbols, static_psymbols>: New members.
2003 <add_psymbol>: New methods.
2004 (add_psymbol_to_list): Don't declare.
2005 (psymbol_placement): Move earlier.
2006 * mdebugread.c (parse_partial_symbols): Update.
2007 (handle_psymbol_enumerators): Change parameters.
2008 (mdebug_expand_psymtab): Update.
2009 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2010 (add_partial_symbol): Update.
2011 * dwarf2/index-write.c (write_psymbols): Change parameters.
2012 (write_one_signatured_type): Update.
2013 (recursively_count_psymbols): Update.
2014 (recursively_write_psymbols): Update.
2015 (class debug_names) <recursively_write_psymbols>: Update.
2016 <write_psymbols>: Change parameters.
2017 <write_one_signatured_type>: Update.
2018 * dbxread.c (read_dbx_symtab): Update.
2019 (dbx_end_psymtab): Use partial_symtab::empty.
2020 * ctfread.c (struct ctf_context) <pst>: New member.
2021 (create_partial_symtab): Set it.
2022 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2023 (scan_partial_symbols): Use the psymtab's context. Update.
2024
2025 2020-10-17 Tom Tromey <tom@tromey.com>
2026
2027 * valprint.c (generic_value_print): Remove comment.
2028 * m2-valprint.c (m2_value_print_inner): Remove comment.
2029 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2030 type.
2031
2032 2020-10-17 Tom de Vries <tdevries@suse.de>
2033
2034 PR symtab/26317
2035 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2036 symbol main.
2037
2038 2020-10-14 Tom de Vries <tdevries@suse.de>
2039
2040 PR gdb/26733
2041 * solib.c (solib_contains_address_p): Handle
2042 'solib->sections == nullptr'.
2043
2044 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 PR gdb/26642
2047 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2048 target can't do async.
2049 * target.c (target_wait): Assert that we don't pass
2050 TARGET_WNOHANG to a target that can't async.
2051
2052 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2053
2054 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2055 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2056 * alpha-bsd-nat.c: Adjust include.
2057 * alpha-bsd-tdep.h: Adjust comment.
2058 * alpha-nbsd-tdep.c: Rename to ...
2059 * alpha-netbsd-tdep.c: ... this, adjust include.
2060 * amd64-nbsd-nat.c: Rename to ...
2061 * amd64-netbsd-nat.c: ... this, adjust include.
2062 * amd64-nbsd-tdep.c: Rename to ...
2063 * amd64-netbsd-tdep.c: ... this, adjust include.
2064 * amd64-tdep.h: Adjust include.
2065 * arm-nbsd-nat.c: Rename to ...
2066 * arm-netbsd-nat.c: ... this, adjust include.
2067 * arm-nbsd-tdep.c: Rename to ...
2068 * arm-netbsd-tdep.c: ... this, adjust include.
2069 * arm-nbsd-tdep.h: Rename to ...
2070 * arm-netbsd-tdep.h: ... this, adjust include.
2071 * configure.nat: Adjust file lists.
2072 * configure.tgt: Likewise.
2073 * hppa-nbsd-nat.c: Rename to ...
2074 * hppa-netbsd-nat.c: ... this, adjust include.
2075 * hppa-nbsd-tdep.c: Rename to ...
2076 * hppa-netbsd-tdep.c: ... this, adjust include.
2077 * i386-nbsd-nat.c: Rename to ...
2078 * i386-netbsd-nat.c: ... this, adjust include.
2079 * i386-nbsd-tdep.c: Rename to ...
2080 * i386-netbsd-tdep.c: ... this, adjust include.
2081 * m68k-bsd-nat.c: Adjust include.
2082 * mips-nbsd-nat.c: Rename to ...
2083 * mips-netbsd-nat.c: ... this, adjust include.
2084 * mips-nbsd-tdep.c: Rename to ...
2085 * mips-netbsd-tdep.c: ... this, adjust include.
2086 * mips-nbsd-tdep.h: Rename to ...
2087 * mips-netbsd-tdep.h: ... this.
2088 * nbsd-nat.c: Rename to ...
2089 * netbsd-nat.c: ... this, adjust include.
2090 * nbsd-nat.h: Rename to ...
2091 * netbsd-nat.h: ... this, adjust include.
2092 * nbsd-tdep.c: Rename to ...
2093 * netbsd-tdep.c: ... this, adjust include.
2094 * nbsd-tdep.h: Rename to ...
2095 * netbsd-tdep.h: ... this.
2096 * ppc-nbsd-nat.c: Rename to ...
2097 * ppc-netbsd-nat.c: ... this, adjust include.
2098 * ppc-nbsd-tdep.c: Rename to ...
2099 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2100 * ppc-nbsd-tdep.h: Rename to ...
2101 * ppc-netbsd-tdep.h: ... this.
2102 * sh-nbsd-nat.c: Rename to ...
2103 * sh-netbsd-nat.c: ... this, adjust include.
2104 * sh-nbsd-tdep.c: Rename to ...
2105 * sh-netbsd-tdep.c: ... this, adjust include.
2106 * sparc-nbsd-nat.c: Rename to ...
2107 * sparc-netbsd-nat.c: ... this.
2108 * sparc-nbsd-tdep.c: Rename to ...
2109 * sparc-netbsd-tdep.c: ... this, adjust include.
2110 * sparc64-nbsd-nat.c: Rename to ...
2111 * sparc64-netbsd-nat.c: ... this.
2112 * sparc64-nbsd-tdep.c: Rename to ...
2113 * sparc64-netbsd-tdep.c: ... this, adjust include.
2114 * sparc64-tdep.h: Adjust comment.
2115 * vax-bsd-nat.c: Adjust include.
2116 * vax-nbsd-tdep.c: Rename to ...
2117 * vax-netbsd-tdep.c: ... this, adjust include.
2118
2119 2020-10-12 Tom Tromey <tom@tromey.com>
2120
2121 * target.h (struct target_ops) <get_section_table>: Update.
2122 (target_get_section_table): Update.
2123 * target.c (target_get_section_table, target_section_by_addr)
2124 (memory_xfer_partial_1): Update.
2125 * target-section.h (target_section_table): Now an alias.
2126 * target-delegates.c: Rebuild.
2127 * target-debug.h (target_debug_print_target_section_table_p):
2128 Rename from target_debug_print_struct_target_section_table_p.
2129 * symfile.c (build_section_addr_info_from_section_table): Update.
2130 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2131 * solib-svr4.c (scan_dyntag): Update.
2132 * solib-dsbt.c (scan_dyntag): Update.
2133 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2134 Update.
2135 * record-full.c (record_full_core_target::xfer_partial): Update.
2136 * progspace.h (struct program_space) <target_sections>: Update.
2137 * exec.h (print_section_info): Update.
2138 * exec.c (exec_target::close, build_section_table)
2139 (add_target_sections, add_target_sections_of_objfile)
2140 (remove_target_sections, exec_on_vfork)
2141 (section_table_available_memory)
2142 (section_table_xfer_memory_partial)
2143 (exec_target::get_section_table, exec_target::xfer_partial)
2144 (print_section_info, set_section_command)
2145 (exec_set_section_address, exec_target::has_memory): Update.
2146 * corelow.c (core_target::build_file_mappings)
2147 (core_target::xfer_partial, core_target::info_proc_mappings)
2148 (core_target::info_proc_mappings): Update.
2149 * bfd-target.c (class target_bfd): Update
2150
2151 2020-10-12 Tom Tromey <tom@tromey.com>
2152
2153 * progspace.c (program_space::~program_space): Don't call
2154 clear_section_table.
2155 * exec.h (clear_section_table): Don't declare.
2156 * exec.c (exec_target::close): Update.
2157 (clear_section_table): Remove.
2158
2159 2020-10-12 Tom Tromey <tom@tromey.com>
2160
2161 * exec.c (add_target_sections_of_objfile): Simplify.
2162
2163 2020-10-12 Tom Tromey <tom@tromey.com>
2164
2165 * solib.c (solib_map_sections): Update.
2166 * record-full.c (record_full_core_open_1): Update.
2167 * exec.h (build_section_table): Return a target_section_table.
2168 * exec.c (exec_file_attach): Update.
2169 (build_section_table): Return a target_section_table.
2170 * corelow.c (core_target::core_target): Update.
2171 * bfd-target.c (target_bfd::target_bfd): Update.
2172
2173 2020-10-12 Tom Tromey <tom@tromey.com>
2174
2175 * target.c (target_section_by_addr, memory_xfer_partial_1):
2176 Update.
2177 * target-section.h (struct target_section_table): Use
2178 std::vector.
2179 * symfile.h (build_section_addr_info_from_section_table): Take a
2180 target_section_table.
2181 * symfile.c (build_section_addr_info_from_section_table): Take a
2182 target_section_table.
2183 * solist.h (struct so_list) <sections>: Change type.
2184 <sections_end>: Remove.
2185 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2186 (solib_contains_address_p): Update.
2187 * solib-svr4.c (scan_dyntag): Update.
2188 * solib-dsbt.c (scan_dyntag): Update.
2189 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2190 Update.
2191 * record-full.c (record_full_core_start, record_full_core_end):
2192 Remove.
2193 (record_full_core_sections): New global.
2194 (record_full_core_open_1, record_full_core_target::xfer_partial):
2195 Update.
2196 * exec.h (build_section_table, section_table_xfer_memory_partial)
2197 (add_target_sections): Take a target_section_table.
2198 * exec.c (exec_file_attach, clear_section_table): Update.
2199 (resize_section_table): Remove.
2200 (build_section_table, add_target_sections): Take a
2201 target_section_table.
2202 (add_target_sections_of_objfile, remove_target_sections)
2203 (exec_on_vfork): Update.
2204 (section_table_available_memory): Take a target_section_table.
2205 (section_table_read_available_memory): Update.
2206 (section_table_xfer_memory_partial): Take a target_section_table.
2207 (print_section_info, set_section_command)
2208 (exec_set_section_address, exec_target::has_memory): Update.
2209 * corelow.c (class core_target) <m_core_section_table,
2210 m_core_file_mappings>: Remove braces.
2211 <~core_target>: Remove.
2212 (core_target::core_target): Update.
2213 (core_target::~core_target): Remove.
2214 (core_target::build_file_mappings)
2215 (core_target::xfer_memory_via_mappings)
2216 (core_target::xfer_partial, core_target::info_proc_mappings):
2217 Update.
2218 * bfd-target.c (target_bfd::xfer_partial): Update.
2219 (target_bfd::target_bfd): Update.
2220 (target_bfd::~target_bfd): Remove.
2221
2222 2020-10-12 Tom Tromey <tom@tromey.com>
2223
2224 * target.h (struct target_section, struct target_section_table):
2225 Move to target-section.h.
2226 * target-section.h: New file.
2227
2228 2020-10-12 Pedro Alves <pedro@palves.net>
2229
2230 PR exp/26602
2231 * valops.c (struct struct_field_searcher): New.
2232 (update_search_result): Rename to ...
2233 (struct_field_searcher::update_result): ... this. Simplify
2234 prototype. Record all found fields.
2235 (do_search_struct_field): Rename to ...
2236 (struct_field_searcher::search): ... this. Simplify prototype.
2237 Maintain stack of visited baseclass path. Call update_result for
2238 fields too. Keep searching fields in baseclasses instead of
2239 stopping at the first found field.
2240 (search_struct_field): Use struct_field_searcher. When looking
2241 for fields, report ambiguous access attempts.
2242
2243 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * frame.c (inside_main_func): Check full symbols as well as
2246 minimal symbols.
2247
2248 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2249
2250 * ada-lang.c (advance_wild_match): Rewrite the function's
2251 description. Change the type of target0, t0 and t1 to char.
2252
2253 2020-10-09 Tom Tromey <tromey@adacore.com>
2254
2255 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2256
2257 2020-10-09 Tom Tromey <tromey@adacore.com>
2258
2259 * ada-lang.h (ada_encode): Return std::string.
2260 * ada-lang.c (ada_encode_1): Return std::string.
2261 (ada_encode): Likewise.
2262 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2263 Update.
2264 * ada-exp.y (block_lookup, write_var_or_type): Update.
2265
2266 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2267
2268 PR exp/26714
2269 * printcmd.c (print_formatted): Handle void results as
2270 unformatted prints.
2271
2272 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * arch/aarch32.c (aarch32_create_target_description): Release the
2275 target_desc_up as late as possible.
2276 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2277 * arch/amd64.c (amd64_create_target_description): Likewise.
2278 * arch/arc.c (arc_create_target_description): Return a
2279 target_desc_up, don't release it.
2280 * arch/arc.h (arc_create_target_description): Update declaration.
2281 (arc_lookup_target_description): Move target_desc_up into the
2282 cache, and return a borrowed pointer.
2283 * arch/arm.c (arm_create_target_description): Release the
2284 target_desc_up as late as possible.
2285 * arch/i386.c (i386_create_target_description): Likewise.
2286 * arch/riscv.h (riscv_create_target_description): Update
2287 declaration to match definition.
2288 * arch/tic6x.c (tic6x_create_target_description): Release the
2289 target_desc_up as late as possible.
2290
2291 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2292
2293 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2294 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2295
2296 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2297
2298 * source.c (directory_command): Notify observers that "directories"
2299 parameter has changed.
2300
2301 2020-10-08 Tom Tromey <tom@tromey.com>
2302
2303 * cli/cli-cmds.c (print_disassembly): Style function name and
2304 addresses. Add _() wrappers.
2305
2306 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2307
2308 * NEWS: Mention ARC support in GDBserver.
2309
2310 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * arch/aarch32.c (aarch32_create_target_description): Release
2313 unique_ptr returned from allocate_target_description.
2314 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2315 * arch/amd64.c (amd64_create_target_description): Likewise.
2316 * arch/arc.c (arc_create_target_description): Likewise.
2317 * arch/arm.c (arm_create_target_description): Likewise.
2318 * arch/i386.c (i386_create_target_description): Likewise.
2319 * arch/riscv.c (riscv_create_target_description): Update return
2320 type. Handle allocate_target_description returning a unique_ptr.
2321 (riscv_lookup_target_description): Update to handle unique_ptr.
2322 * arch/tic6x.c (tic6x_create_target_description): Release
2323 unique_ptr returned from allocate_target_description.
2324 * features/microblaze-with-stack-protect.c: Regenerate.
2325 * features/microblaze.c: Regenerate.
2326 * features/mips-dsp-linux.c: Regenerate.
2327 * features/mips-linux.c: Regenerate.
2328 * features/mips64-dsp-linux.c: Regenerate.
2329 * features/mips64-linux.c: Regenerate.
2330 * features/nds32.c: Regenerate.
2331 * features/nios2.c: Regenerate.
2332 * features/or1k.c: Regenerate.
2333 * features/rs6000/powerpc-32.c: Regenerate.
2334 * features/rs6000/powerpc-32l.c: Regenerate.
2335 * features/rs6000/powerpc-403.c: Regenerate.
2336 * features/rs6000/powerpc-403gc.c: Regenerate.
2337 * features/rs6000/powerpc-405.c: Regenerate.
2338 * features/rs6000/powerpc-505.c: Regenerate.
2339 * features/rs6000/powerpc-601.c: Regenerate.
2340 * features/rs6000/powerpc-602.c: Regenerate.
2341 * features/rs6000/powerpc-603.c: Regenerate.
2342 * features/rs6000/powerpc-604.c: Regenerate.
2343 * features/rs6000/powerpc-64.c: Regenerate.
2344 * features/rs6000/powerpc-64l.c: Regenerate.
2345 * features/rs6000/powerpc-7400.c: Regenerate.
2346 * features/rs6000/powerpc-750.c: Regenerate.
2347 * features/rs6000/powerpc-860.c: Regenerate.
2348 * features/rs6000/powerpc-altivec32.c: Regenerate.
2349 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2350 * features/rs6000/powerpc-altivec64.c: Regenerate.
2351 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2352 * features/rs6000/powerpc-e500.c: Regenerate.
2353 * features/rs6000/powerpc-e500l.c: Regenerate.
2354 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2355 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2356 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2357 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2358 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2359 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2360 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2361 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2362 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2363 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2364 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2365 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2366 * features/rs6000/powerpc-vsx32.c: Regenerate.
2367 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2368 * features/rs6000/powerpc-vsx64.c: Regenerate.
2369 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2370 * features/rs6000/rs6000.c: Regenerate.
2371 * features/rx.c: Regenerate.
2372 * features/s390-gs-linux64.c: Regenerate.
2373 * features/s390-linux32.c: Regenerate.
2374 * features/s390-linux32v1.c: Regenerate.
2375 * features/s390-linux32v2.c: Regenerate.
2376 * features/s390-linux64.c: Regenerate.
2377 * features/s390-linux64v1.c: Regenerate.
2378 * features/s390-linux64v2.c: Regenerate.
2379 * features/s390-te-linux64.c: Regenerate.
2380 * features/s390-tevx-linux64.c: Regenerate.
2381 * features/s390-vx-linux64.c: Regenerate.
2382 * features/s390x-gs-linux64.c: Regenerate.
2383 * features/s390x-linux64.c: Regenerate.
2384 * features/s390x-linux64v1.c: Regenerate.
2385 * features/s390x-linux64v2.c: Regenerate.
2386 * features/s390x-te-linux64.c: Regenerate.
2387 * features/s390x-tevx-linux64.c: Regenerate.
2388 * features/s390x-vx-linux64.c: Regenerate.
2389 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2390 from allocate_target_description.
2391 * target-descriptions.c (allocate_target_description): Update
2392 return type.
2393 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2394 allocate_target_description.
2395
2396 2020-10-07 Tom Tromey <tromey@adacore.com>
2397
2398 * unittests/search-memory-selftests.c: New file.
2399 * Makefile.in (SELFTESTS_SRCS): Add
2400 unittests/search-memory-selftests.c.
2401
2402 2020-10-07 Tom Tromey <tromey@adacore.com>
2403
2404 PR gdb/16930:
2405 * findcmd.c (_initialize_mem_search): Mention that the range is
2406 inclusive.
2407
2408 2020-10-07 Tom Tromey <tromey@adacore.com>
2409
2410 * target.h (simple_search_memory): Don't declare.
2411 * target.c (simple_search_memory): Move to gdbsupport.
2412 (default_search_memory): Update.
2413 * remote.c (remote_target::search_memory): Update.
2414
2415 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2416
2417 * Makefile.in (COMPILE): Add CXXFLAGS.
2418 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2419 (check-headers): Add CXXFLAGS.
2420
2421 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2422
2423 * arc-linux-tdep.h: New file.
2424 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2425 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2426 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2427 arc_linux_gregset, arc_linux_v2_regset,
2428 arc_linux_iterate_over_regset_sections,
2429 arc_linux_core_read_description): Implement.
2430 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2431 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2432 (arc_gdbarch_features_create): Add.
2433 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2434
2435 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2436
2437 * arch/arc.h: Rename "arc_gdbarch_features" to
2438 "arc_arch_features".
2439 * arc-tdep.h: Likewise.
2440 * arc-tdep.c: Likewise.
2441
2442 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2443
2444 * infcmd.c (attach_command): Remove the redundant call to
2445 `clear_proceed_status`.
2446
2447 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2448
2449 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2450
2451 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2452
2453 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2454 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2455 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2456
2457 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2460 (_initialize_break_catch_sig): Don't allocate array.
2461
2462 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * symtab.c (find_pc_line): Return unmapped addresses when the
2465 requested address is also unmapped.
2466
2467 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2470 tui/tui-out.h.
2471
2472 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2475 type::is_vector instead of TYPE_VECTOR.
2476
2477 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * auto-load.c (auto_load_objfile_script_1): Don't use
2480 debugfile_holder as temporary variable when stripping drive
2481 letter.
2482
2483 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2484
2485 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2486 Add TYPE_CODE_COMPLEX.
2487 (amd64_windows_return_value): Fix types returned via XMM0.
2488
2489 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2490
2491 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2492 AArch64/ARM maintainers.
2493
2494 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * NEWS: Mention set/show debug event-loop.
2497
2498 2020-10-02 Tom Tromey <tromey@adacore.com>
2499
2500 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2501 REG_EXTENDED.
2502
2503 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2506 * procfs.c (procfs_inferior_created): Remove.
2507 (_initialize_procfs): Don't register procfs_inferior_created.
2508
2509 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * async-event.c (invoke_async_signal_handlers): Add debug
2512 print.
2513 (check_async_event_handlers): Likewise.
2514 * event-top.c (show_debug_event_loop): New function.
2515 (_initialize_event_top): Register "set debug event-loop"
2516 setting.
2517
2518 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2521 * debug.h: Remove.
2522 * infrun.c: Include gdbsupport/common-debug.h.
2523 * linux-nat.c: Likewise.
2524
2525 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * async-event.h (create_async_signal_handler): Add name
2528 parameter.
2529 (create_async_event_handler): Likewise.
2530 * async-event.c (struct async_signal_handler) <name>: New field.
2531 (struct async_event_handler) <name>: New field.
2532 (create_async_signal_handler): Assign name.
2533 (create_async_event_handler): Assign name.
2534 * event-top.c (async_init_signals): Pass name when creating
2535 handler.
2536 * infrun.c (_initialize_infrun): Likewise.
2537 * record-btrace.c (record_btrace_push_target): Likewise.
2538 * record-full.c (record_full_open): Likewise.
2539 * remote-notif.c (remote_notif_state_allocate): Likewise.
2540 * remote.c (remote_target::open_1): Likewise.
2541 * tui/tui-win.c (tui_initialize_win): Likewise.
2542
2543 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * async-event.c (initialize_async_signal_handlers): Pass name to
2546 add_file_handler
2547 * event-top.c (ui_register_input_event_handler): Likewise.
2548 * linux-nat.c (linux_nat_target::async): Likewise.
2549 * run-on-main-thread.c (_initialize_run_on_main_thread):
2550 Likewise
2551 * ser-base.c (reschedule): Likewise.
2552 (ser_base_async): Likewise.
2553 * tui/tui-io.c: Likewise.
2554 * top.h (struct ui) <num>: New field.
2555 * top.c (highest_ui_num): New variable.
2556 (ui::ui): Initialize num.
2557
2558 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 * observable.h <inferior_created>: Remove parameters. Update all
2561 listeners.
2562 * inferior.h (post_create_inferior): Remove target parameter.
2563 Update all callers.
2564
2565 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2566
2567 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2568 and DW_MACRO_undef_strx.
2569 (dwarf_decode_macros): Likewise
2570 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2571 which is the value of DW_AT_str_offsets_base.
2572 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2573 str_offsets_base.
2574
2575 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2576
2577 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2578
2579 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2580
2581 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2582 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2583
2584 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2585
2586 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2587
2588 2020-09-30 Tom de Vries <tdevries@suse.de>
2589
2590 PR symtab/26683
2591 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2592
2593 2020-09-30 Tom Tromey <tromey@adacore.com>
2594
2595 * dwarf2/read.c (handle_variant): Use constant_value.
2596
2597 2020-09-29 Tom Tromey <tom@tromey.com>
2598
2599 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2600 (read_file_scope, dwarf2_get_pc_bounds)
2601 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2602 (read_structure_type, handle_struct_member_die)
2603 (read_enumeration_type, read_array_type, read_set_type)
2604 (read_tag_pointer_type, read_tag_reference_type)
2605 (read_subroutine_type, read_base_type, read_subrange_type)
2606 (read_full_die_1, partial_die_info::read)
2607 (partial_die_info::read, by, new_symbol)
2608 (dwarf2_const_value_data, dwarf2_const_value_attr)
2609 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2610 (prepare_one_comp_unit): Update.
2611 * dwarf2/attribute.h (DW_UNSND): Remove.
2612
2613 2020-09-29 Tom Tromey <tom@tromey.com>
2614
2615 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2616 (read_subroutine_type, partial_die_info::read)
2617 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2618 (dwarf2_add_member_fn): Update.
2619 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2620 * dwarf2/attribute.c (attribute::as_boolean): New method.
2621
2622 2020-09-29 Tom Tromey <tom@tromey.com>
2623
2624 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2625 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2626 method.
2627 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2628
2629 2020-09-29 Tom Tromey <tom@tromey.com>
2630
2631 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2632 the attribute's form.
2633
2634 2020-09-29 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2637 (dwarf2_add_member_fn): Update.
2638 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2639 * dwarf2/attribute.c (attribute::defaulted): New method, from
2640 is_valid_DW_AT_defaulted.
2641
2642 2020-09-29 Tom Tromey <tom@tromey.com>
2643
2644 * dwarf2/read.c (dw2_get_file_names_reader)
2645 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2646 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2647 (dwarf2_symbol_mark_computed): Use as_unsigned.
2648 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2649 method.
2650 <form_is_section_offset>: Update comment.
2651
2652 2020-09-29 Tom Tromey <tom@tromey.com>
2653
2654 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2655 dwarf2_default_access_attribute. Look up attribute.
2656 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2657 Update.
2658
2659 2020-09-29 Tom Tromey <tom@tromey.com>
2660
2661 * dwarf2/read.c (skip_one_die): Update.
2662 (read_full_die_1): Change how reprocessing is done.
2663 (partial_die_info::read): Update.
2664 (read_attribute_value): Remove need_reprocess parameter.
2665 (read_attribute): Likewise.
2666 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2667 New method.
2668
2669 2020-09-29 Tom Tromey <tom@tromey.com>
2670
2671 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2672 (dwarf2_const_value_attr, dump_die_shallow)
2673 (dwarf2_fetch_constant_bytes): Update.
2674 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2675 comment.
2676 <set_address>: New method.
2677 (DW_ADDR): Remove.
2678 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2679 (attribute::as_string, attribute::as_address): Add assert.
2680
2681 2020-09-29 Tom Tromey <tom@tromey.com>
2682
2683 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2684 (read_attribute_reprocess, read_attribute_value): Update.
2685 (read_attribute): Clear requires_reprocessing.
2686 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2687 form_requires_reprocessing>: New methods.
2688 <string_init>: Clear requires_reprocessing.
2689 <set_unsigned_reprocess>: New method.
2690 <name>: Shrink by one bit.
2691 <requires_reprocessing>: New member.
2692 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2693 method.
2694
2695 2020-09-29 Tom Tromey <tom@tromey.com>
2696
2697 * dwarf2/read.c (read_attribute_value): Update.
2698 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2699 set_unsigned>: New methods.
2700 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2701
2702 2020-09-29 Tom Tromey <tom@tromey.com>
2703
2704 * dwarf2/read.c (get_alignment, read_array_order)
2705 (read_attribute_value, dwarf2_const_value_attr)
2706 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2707 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2708 New methods.
2709 (DW_SND): Remove.
2710
2711 2020-09-29 Tom Tromey <tom@tromey.com>
2712
2713 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2714 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2715 Update.
2716 * dwarf2/attribute.h (struct attribute) <as_signature,
2717 set_signature>: New methods.
2718 (DW_SIGNATURE): Remove.
2719
2720 2020-09-29 Tom Tromey <tom@tromey.com>
2721
2722 * dwarf2/read.c (read_call_site_scope)
2723 (handle_data_member_location, dwarf2_add_member_fn)
2724 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2725 (partial_die_info::read, read_attribute_value)
2726 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2727 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2728 (dwarf2_symbol_mark_computed): Update.
2729 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2730 methods.
2731 (DW_BLOCK): Remove.
2732 * dwarf2/attribute.c (attribute::form_is_block): Add
2733 DW_FORM_data16.
2734
2735 2020-09-29 Tom Tromey <tom@tromey.com>
2736
2737 * dwarf2/read.c (read_cutu_die_from_dwo)
2738 (read_attribute_reprocess, read_attribute_value, read_attribute)
2739 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2740 (dwarf2_fetch_constant_bytes): Update.
2741 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2742 <set_string_noncanonical, set_string_canonical>: New methods.
2743 <string_is_canonical>: Update comment.
2744 <canonical_string_p>: Add assert.
2745 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2746 * dwarf2/attribute.c (attribute::form_is_string): New method.
2747 (attribute::string): Use it.
2748
2749 2020-09-29 Tom Tromey <tom@tromey.com>
2750
2751 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2752 (dump_die_shallow): Use canonical_string_p.
2753 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2754 method.
2755
2756 2020-09-29 Tom Tromey <tom@tromey.com>
2757
2758 * dwarf2/read.c (partial_die_info::read)
2759 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2760 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2761 attribute::as_string.
2762
2763 2020-09-29 Tom Tromey <tom@tromey.com>
2764
2765 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2766 DW_ADDR.
2767 (attribute::string): Don't use DW_STRING.
2768 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2769 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2770
2771 2020-09-29 Tom Tromey <tom@tromey.com>
2772
2773 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2774 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2775 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2776 * dwarf2/attribute.h (struct attribute): Rename methods.
2777 * dwarf2/attribute.c (attribute::as_address): Rename from
2778 value_as_address.
2779 (attribute::as_string): Rename from value_as_string.
2780
2781 2020-09-29 Tom Tromey <tom@tromey.com>
2782
2783 * dwarf2/read.c (partial_die_info::read) <case
2784 DW_AT_linkage_name>: Use value_as_string.
2785 (dwarf2_string_attr): Use value_as_string.
2786 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2787 method.
2788 * dwarf2/attribute.c (attribute::value_as_string): New method.
2789
2790 2020-09-29 Pedro Alves <pedro@palves.net>
2791
2792 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2793 defined before using '#pragma GCC diagnostic' instead of checking
2794 __clang__.
2795
2796 2020-09-28 Tom Tromey <tom@tromey.com>
2797
2798 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2799 (handle_signal_stop): Update.
2800 * procfs.c (procfs_target::insert_watchpoint): Update.
2801 * target.h (target_have_steppable_watchpoint): Now a function.
2802
2803 2020-09-28 Tom Tromey <tom@tromey.com>
2804
2805 * infrun.c (set_schedlock_func): Update.
2806 * target.h (target_can_lock_scheduler): Now a function.
2807
2808 2020-09-28 Tom Tromey <tom@tromey.com>
2809
2810 * inferior.h (class inferior) <has_execution>: Update.
2811 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2812 * valops.c (find_function_in_inferior)
2813 (value_allocate_space_in_inferior): Update.
2814 * top.c (kill_or_detach): Update.
2815 * target.c (target_preopen, set_target_permissions): Update.
2816 (target_has_execution_current): Remove.
2817 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2818 Update.
2819 * solib.c (update_solib_list, reload_shared_libraries): Update.
2820 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2821 * solib-dsbt.c (enable_break): Update.
2822 * score-tdep.c (score7_fetch_inst): Update.
2823 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2824 Update.
2825 * remote.c (remote_target::start_remote)
2826 (remote_target::remote_check_symbols, remote_target::open_1)
2827 (remote_target::remote_detach_1, remote_target::verify_memory)
2828 (remote_target::xfer_partial, remote_target::read_description)
2829 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2830 * record-full.c (record_full_open_1): Update.
2831 * record-btrace.c (record_btrace_target_open): Update.
2832 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2833 (value_nsstring): Update.
2834 * linux-thread-db.c (add_thread_db_info)
2835 (thread_db_find_new_threads_silently, check_thread_db_callback)
2836 (try_thread_db_load_1, record_thread): Update.
2837 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2838 Update.
2839 * linux-fork.c (checkpoint_command): Update.
2840 * infrun.c (set_non_stop, set_observer_mode)
2841 (check_multi_target_resumption, for_each_just_stopped_thread)
2842 (maybe_remove_breakpoints, normal_stop)
2843 (class infcall_suspend_state): Update.
2844 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2845 (info_program_command, attach_command): Update.
2846 * infcall.c (call_function_by_hand_dummy): Update.
2847 * inf-loop.c (inferior_event_handler): Update.
2848 * gcore.c (gcore_command, derive_heap_segment): Update.
2849 * exec.c (exec_file_command): Update.
2850 * eval.c (evaluate_subexp): Update.
2851 * compile/compile.c (compile_to_object): Update.
2852 * cli/cli-dump.c (restore_command): Update.
2853 * breakpoint.c (update_watchpoint)
2854 (update_inserted_breakpoint_locations)
2855 (insert_breakpoint_locations, get_bpstat_thread): Update.
2856 * target.h (target_has_execution): Remove macro.
2857 (target_has_execution_current): Don't declare.
2858 (target_has_execution): Rename from target_has_execution_1. Add
2859 argument default.
2860
2861 2020-09-28 Tom Tromey <tom@tromey.com>
2862
2863 * mi/mi-main.c (exec_reverse_continue)
2864 (mi_cmd_list_target_features): Update.
2865 * infrun.c (set_exec_direction_func): Update.
2866 * target.c (default_execution_direction): Update.
2867 * reverse.c (exec_reverse_once): Update.
2868 * target.h (target_can_execute_reverse): Now a function.
2869
2870 2020-09-28 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-regs.c (tui_get_register)
2873 (tui_data_window::show_registers): Update.
2874 * thread.c (scoped_restore_current_thread::restore)
2875 (scoped_restore_current_thread::scoped_restore_current_thread):
2876 Update.
2877 * regcache-dump.c (regcache_print): Update.
2878 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2879 Update.
2880 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2881 * mep-tdep.c (current_me_module, current_options): Update.
2882 * linux-thread-db.c (thread_db_load): Update.
2883 * infcmd.c (registers_info, info_vector_command)
2884 (info_float_command): Update.
2885 * ia64-tdep.c (ia64_frame_prev_register)
2886 (ia64_sigtramp_frame_prev_register): Update.
2887 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2888 * gcore.c (derive_stack_segment): Update.
2889 * frame.c (get_current_frame, has_stack_frames): Update.
2890 * findvar.c (language_defn::read_var_value): Update.
2891 * arm-tdep.c (arm_pc_is_thumb): Update.
2892 * target.c (target_has_registers): Rename from
2893 target_has_registers_1.
2894 * target.h (target_has_registers): Remove macro.
2895 (target_has_registers): Rename from target_has_registers_1.
2896
2897 2020-09-28 Tom Tromey <tom@tromey.com>
2898
2899 * windows-tdep.c (tlb_make_value): Update.
2900 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2901 * thread.c (scoped_restore_current_thread::restore)
2902 (scoped_restore_current_thread::scoped_restore_current_thread)
2903 (thread_command): Update.
2904 * stack.c (backtrace_command_1, frame_apply_level_command)
2905 (frame_apply_all_command, frame_apply_command): Update.
2906 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2907 Update.
2908 * gcore.c (derive_stack_segment): Update.
2909 * frame.c (get_current_frame, has_stack_frames): Update.
2910 * auxv.c (info_auxv_command): Update.
2911 * ada-tasks.c (ada_build_task_list): Update.
2912 * target.c (target_has_stack): Rename from target_has_stack_1.
2913 * target.h (target_has_stack): Remove macro.
2914 (target_has_stack): Rename from target_has_stack_1.
2915
2916 2020-09-28 Tom Tromey <tom@tromey.com>
2917
2918 * target.c (target_has_memory): Rename from target_has_memory_1.
2919 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2920 * thread.c (scoped_restore_current_thread::restore)
2921 (scoped_restore_current_thread::scoped_restore_current_thread):
2922 Update.
2923 * frame.c (get_current_frame, has_stack_frames): Update.
2924 * target.h (target_has_memory): Remove macro.
2925 (target_has_memory): Rename from target_has_memory_1.
2926
2927 2020-09-28 Tom Tromey <tom@tromey.com>
2928
2929 * target.c (target_has_all_memory_1): Remove.
2930 * target.h (target_has_all_memory): Remove define.
2931 (target_has_all_memory_1): Don't declare.
2932
2933 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2934
2935 * ser-base.c: Adjust comments formatting.
2936
2937 2020-09-27 Tom Tromey <tom@tromey.com>
2938
2939 PR tui/25342:
2940 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2941
2942 2020-09-27 Tom Tromey <tom@tromey.com>
2943
2944 PR tui/25342:
2945 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2946
2947 2020-09-27 Tom Tromey <tom@tromey.com>
2948
2949 * unittests/tui-selftests.c: Update.
2950 * tui/tui-winsource.h (struct tui_source_window_base)
2951 <extra_margin, show_line_number, refresh_pad>: New methods.
2952 <m_max_length, m_pad>: New members.
2953 (tui_copy_source_line): Update.
2954 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2955 first_col, line_width, ndigits parameters. Add length.
2956 (tui_source_window_base::show_source_line): Write to pad. Line
2957 number now 0-based.
2958 (tui_source_window_base::refresh_pad): New method.
2959 (tui_source_window_base::show_source_content): Write to pad. Call
2960 refresh_pad.
2961 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2962 not refill.
2963 (tui_source_window_base::update_exec_info): Call
2964 show_line_number.
2965 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2966 method.
2967 <m_digits>: New member.
2968 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2969 and m_max_length.
2970 (tui_source_window::show_line_number): New method.
2971 * tui/tui-io.h (tui_puts): Fix comment.
2972 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2973 m_max_length.
2974
2975 2020-09-27 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui-winsource.c
2978 (tui_source_window_base::set_is_exec_point_at): Don't call
2979 show_source_line.
2980
2981 2020-09-27 Tom Tromey <tom@tromey.com>
2982
2983 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2984 method.
2985 <erase>: Update.
2986 <cursor_x, cursor_y>: Remove.
2987 <m_inner_window>: New member.
2988 (tui_py_window::rerender): Create inner window.
2989 (tui_py_window::output): Write to inner window.
2990
2991 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2992
2993 PR python/26586
2994 * cli/cli-script.c (execute_control_commands): don't set
2995 instream to nullptr here as this breaks the from_tty argument
2996 to gdb.execute in Python.
2997 (execute_user_command): set instream to nullptr here instead.
2998
2999 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3000
3001 * infrun.h (infrun_debug_printf): Fix formatting.
3002 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3003
3004 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3005
3006 * compile/compile-object-load.h (struct munmap_list): Add
3007 explicitly-defined move constructor.
3008
3009 2020-09-24 Tom Tromey <tromey@adacore.com>
3010
3011 PR tui/26638:
3012 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3013 method.
3014 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3015 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3016 (tui_prev_win): Rewrite.
3017
3018 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3019
3020 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3021 in WOW64 processes as SIGINT.
3022 * nat/windows-nat.h: Make wow64_process a shared variable.
3023 * windows-nat.c: Remove static wow64_process variable.
3024
3025 2020-09-23 Tom Tromey <tom@tromey.com>
3026
3027 PR symtab/25470:
3028 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3029 offset and bit size.
3030 * printcmd.c (print_scalar_formatted): Handle zero-length
3031 integer.
3032 (print_scalar_formatted): Use bit_size_differs_p.
3033 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3034 constant.
3035 (union type_specific): <int_stuff>: New member.
3036 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3037 methods.
3038 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3039 TYPE_SPECIFIC_FIELD.
3040 (recursive_dump_type, copy_type_recursive): Update.
3041 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3042 DW_AT_data_bit_offset.
3043
3044 2020-09-23 Tom Tromey <tom@tromey.com>
3045
3046 * utils.h (class gdb_argv): Add move operators.
3047 <append>: New methods.
3048 * compile/compile.c (build_argc_argv): Remove.
3049 (compile_args_argc): Remove.
3050 (compile_args_argv): Change type.
3051 (set_compile_args): Simplify.
3052 (append_args): Remove.
3053 (filter_args): Remove argcp parameter.
3054 (get_args): Return gdb_argv. Simplify.
3055 (compile_to_object): Update.
3056
3057 2020-09-23 Tom Tromey <tom@tromey.com>
3058
3059 * compile/compile-object-run.c (do_module_cleanup)
3060 <~do_module_cleanup> :Remove.
3061 (do_module_cleanup): Update.
3062 * compile/compile-object-load.h (struct munmap_list): Add move
3063 assignment operator.
3064 <source_file>: Now a std::string.
3065 <munmap_list>: Rename. No longer a pointer.
3066 * compile/compile-object-load.c (struct setup_sections_data): Add
3067 constructor.
3068 <setup_one_section>: Declare.
3069 <munmap_list>: Move earlier.
3070 <m_bfd>: New member.
3071 <m_last_size, m_last_section_first, m_last_prot,
3072 m_last_max_alignment>: Rename, add initializers where needed.
3073 (setup_sections_data::setup_one_section): Rename from
3074 setup_sections. Update.
3075 (compile_object_load): Update. Don't use bfd_map_over_sections.
3076
3077 2020-09-23 Tom Tromey <tom@tromey.com>
3078
3079 * compile/compile-object-run.c (struct do_module_cleanup): Add
3080 parameters to constructor. Update destructor.
3081 <source_file, scope, scope_data, out_value_type, out_value_addr,
3082 munmap_list_head, objfile_name_string>: Remove.
3083 <module>: New member.
3084 (do_module_cleanup): Update.
3085 (compile_object_run): Update.
3086
3087 2020-09-23 Tom Tromey <tom@tromey.com>
3088
3089 * compile/compile.c (eval_compile_command): Update.
3090 * compile/compile-object-run.h (compile_object_run): Take a
3091 compile_module_up.
3092 * compile/compile-object-run.c (compile_object_run): Take a
3093 compile_module_up.
3094 * compile/compile-object-load.h (struct compile_module): Add
3095 constructor, destructor.
3096 (compile_module_up): New typedef.
3097 (compile_object_load): Return compile_object_up.
3098 * compile/compile-object-load.c (compile_object_load): Return
3099 compile_module_up.
3100
3101 2020-09-23 Tom Tromey <tom@tromey.com>
3102
3103 * compile/compile-object-run.c (struct do_module_cleanup): Add
3104 constructor, destructor.
3105 <objfile_name_string>: Don't use struct hack.
3106 (do_module_cleanup): Use delete.
3107 (compile_object_run): Use new.
3108
3109 2020-09-23 Tom Tromey <tom@tromey.com>
3110
3111 * compile/compile-cplus-types.c
3112 (compile_cplus_convert_struct_or_union): Use std::vector.
3113 (compile_cplus_convert_func): Likewise.
3114 * compile/compile-c-types.c (convert_func): Use std::vector.
3115
3116 2020-09-21 Tom Tromey <tromey@adacore.com>
3117
3118 * sparc-tdep.c (sparc32_skip_prologue): Use
3119 skip_prologue_using_sal.
3120
3121 2020-09-19 Tom Tromey <tom@tromey.com>
3122
3123 * symfile.c (add_section_size_callback): Remove.
3124 (load_one_section): Rename from load_section_callback. Change
3125 parameters.
3126 (generic_load): Use foreach.
3127
3128 2020-09-19 Tom Tromey <tom@tromey.com>
3129
3130 * exec.c (add_to_section_table): Remove.
3131 (build_section_table): Use foreach.
3132
3133 2020-09-19 Tom Tromey <tom@tromey.com>
3134
3135 * elfread.c (elf_locate_sections): Change parameters.
3136 (elf_symfile_read): Use foreach.
3137
3138 2020-09-19 Tom Tromey <tom@tromey.com>
3139
3140 * cli/cli-dump.c (struct callback_data): Remove.
3141 (restore_one_section): Rename from restore_section_callback.
3142 Change parameters.
3143 (restore_binary_file): Change parameters.
3144 (restore_command): Use foreach.
3145
3146 2020-09-19 Tom Tromey <tom@tromey.com>
3147
3148 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3149 (gcore_copy_callback): Likewise.
3150 (gcore_memory_sections): Use foreach.
3151
3152 2020-09-19 Tom Tromey <tom@tromey.com>
3153
3154 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3155 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3156 parameters.
3157 (generic_elf_osabi_sniffer): Use foreach.
3158 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3159 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3160
3161 2020-09-19 Tom Tromey <tom@tromey.com>
3162
3163 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3164 (dwarf2_get_dwz_file): Use foreach.
3165 (dwarf2_locate_dwo_sections): Change parameters.
3166 (open_and_init_dwo_file): Use foreach.
3167 (dwarf2_locate_common_dwp_sections): Change parameters.
3168 (open_and_init_dwp_file): Use foreach.
3169
3170 2020-09-19 Tom Tromey <tom@tromey.com>
3171
3172 * symfile.h: (find_lowest_section): Don't declare.
3173 * symfile.c (find_lowest_section): Now static. Change
3174 parameters.
3175 (struct place_section_arg): Remove.
3176 (place_section): Change parameters.
3177 (addr_info_make_relative): Use foreach.
3178 (symfile_dummy_outputs): Remove.
3179 (default_symfile_relocate): Use foreach.
3180
3181 2020-09-19 Tom Tromey <tom@tromey.com>
3182
3183 * objfiles.c (add_to_objfile_sections): Rename from
3184 add_to_objfile_sections_full.
3185 (add_to_objfile_sections): Remove.
3186 (build_objfile_section_table): Use foreach.
3187
3188 2020-09-19 Tom Tromey <tom@tromey.com>
3189
3190 * stap-probe.c (get_stap_base_address_1): Remove.
3191 (get_stap_base_address): Use foreach.
3192
3193 2020-09-19 Tom Tromey <tom@tromey.com>
3194
3195 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3196 parameters.
3197 (gdb_bfd_close_or_warn): Use foreach.
3198
3199 2020-09-19 Tom Tromey <tom@tromey.com>
3200
3201 * corelow.c (add_to_thread_list): Change parameters.
3202 (core_target_open): Use foreach.
3203
3204 2020-09-19 Tom Tromey <tom@tromey.com>
3205
3206 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3207 existing function.
3208
3209 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3212 for arrays.
3213
3214 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * eval.c: Remove 'f-lang.h' include.
3217 (value_f90_subarray): Moved to f-lang.c.
3218 (eval_call): Renamed to...
3219 (evaluate_subexp_do_call): ...this, is no longer static, header
3220 comment moved into header file.
3221 (evaluate_funcall): Update call to eval_call.
3222 (skip_undetermined_arglist): Moved to f-lang.c.
3223 (fortran_value_subarray): Likewise.
3224 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3225 moved to evaluate_subexp_f.
3226 (calc_f77_array_dims): Moved to f-lang.c
3227 * expprint.c (print_subexp_funcall): New function.
3228 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3229 moved to print_subexp_f, OP_FUNCALL uses new function.
3230 (dump_subexp_body_funcall): New function.
3231 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3232 moved to dump_subexp_f, OP_FUNCALL uses new function.
3233 * expression.h (evaluate_subexp_do_call): Declare.
3234 * f-lang.c (value_f90_subarray): Moved from eval.c.
3235 (skip_undetermined_arglist): Likewise.
3236 (calc_f77_array_dims): Likewise.
3237 (fortran_value_subarray): Likewise.
3238 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3239 (operator_length_f): Likewise.
3240 (print_subexp_f): Likewise.
3241 (dump_subexp_body_f): Likewise.
3242 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3243 declaration of this operation to here.
3244 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3245 support moved to operator_length_f.
3246 * parser-defs.h (dump_subexp_body_funcall): Declare.
3247 (print_subexp_funcall): Declare.
3248 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3249 fortran-operator.def.
3250
3251 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * eval.c (fortran_value_subarray): New function, content is taken
3254 from...
3255 (evaluate_subexp_standard): ...here, in two places. Now arrays
3256 and strings both call the new function.
3257 (calc_f77_array_dims): Add header comment, handle strings.
3258
3259 2020-09-18 Victor Collod <vcollod@nvidia.com>
3260
3261 PR gdb/26635
3262 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3263 (i386_analyze_prologue): Call i386_skip_endbr.
3264
3265 2020-09-18 Tom Tromey <tromey@adacore.com>
3266
3267 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3268 (windows_nat_target::wait): Update.
3269 * target/wait.h (enum target_wait_flag): New. Use
3270 DEF_ENUM_FLAGS_TYPE.
3271 * target/target.h (target_wait): Change type of options.
3272 * target.h (target_options_to_string, default_target_wait):
3273 Update.
3274 (struct target_ops) <wait>: Change type of options.
3275 * target.c (target_wait, default_target_wait, do_option): Change
3276 type of "options".
3277 (target_options_to_string): Likewise.
3278 * target-delegates.c: Rebuild.
3279 * target-debug.h (target_debug_print_target_wait_flags): Rename
3280 from target_debug_print_options.
3281 * sol-thread.c (class sol_thread_target) <wait>: Update.
3282 (sol_thread_target::wait): Update.
3283 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3284 (rs6000_nat_target::wait): Update.
3285 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3286 Update.
3287 (remote_target::wait_ns, remote_target::wait_as): Change type of
3288 "options".
3289 (remote_target::wait): Update.
3290 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3291 (gdbsim_target::wait): Update.
3292 * record-full.c (class record_full_base_target) <wait>: Update.
3293 (record_full_wait_1): Change type of "options".
3294 (record_full_base_target::wait): Update.
3295 * record-btrace.c (class record_btrace_target) <wait>: Update.
3296 (record_btrace_target::wait): Update.
3297 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3298 Update.
3299 (ravenscar_thread_target::wait): Update.
3300 * procfs.c (class procfs_target) <wait>: Update.
3301 (procfs_target::wait): Update.
3302 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3303 * obsd-nat.c (obsd_nat_target::wait): Update.
3304 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3305 (nto_procfs_target::wait): Update.
3306 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3307 * nbsd-nat.c (nbsd_wait): Change type of "options".
3308 (nbsd_nat_target::wait): Update.
3309 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3310 (thread_db_target::wait): Update.
3311 * linux-nat.h (class linux_nat_target) <wait>: Update.
3312 * linux-nat.c (linux_nat_target::wait): Update.
3313 (linux_nat_wait_1): Update.
3314 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3315 "options".
3316 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3317 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3318 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3319 (go32_nat_target::wait): Update.
3320 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3321 * gnu-nat.c (gnu_nat_target::wait): Update.
3322 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3323 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3324 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3325 * darwin-nat.c (darwin_nat_target::wait): Update.
3326 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3327 (bsd_uthread_target::wait): Update.
3328 * aix-thread.c (class aix_thread_target) <wait>: Update.
3329 (aix_thread_target::wait): Update.
3330
3331 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3332
3333 * compile/compile-object-run.c (create_copied_type_recursive): New
3334 function.
3335 (compile_object_run): Use new function.
3336
3337 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3338
3339 * NEWS: Mention x86_64 Cygwin core file support.
3340
3341 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3342
3343 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3344 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3345
3346 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3347
3348 * windows-tdep.h: Add prototypes.
3349 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3350 (i386_windows_core_pid_to_str): Move and rename ...
3351 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3352 (windows_core_pid_to_str): ... and here.
3353 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3354
3355 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3356 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3357 (amd64_windows_init_abi_common): ... and register.
3358
3359 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3360
3361 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3362 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3363
3364 2020-09-18 Pedro Alves <pedro@palves.net>
3365
3366 PR gdb/26631
3367 * thread.c (thread_find_command): Switch inferior before calling
3368 target methods.
3369
3370 2020-09-17 Tom Tromey <tromey@adacore.com>
3371
3372 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3373 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3374 (tdesc_arch_data_up): New typedef.
3375 (tdesc_use_registers, tdesc_data_alloc): Update.
3376 (tdesc_data_cleanup): Don't declare.
3377 * target-descriptions.c (tdesc_data_alloc): Return a
3378 tdesc_arch_data_up.
3379 (tdesc_arch_data_deleter::operator()): Rename from
3380 tdesc_data_cleanup. Change argument type.
3381 (tdesc_use_registers): Change early_data to an rvalue reference.
3382 (tdesc_use_registers): Don't use delete.
3383 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3384 * s390-tdep.c (s390_gdbarch_init): Update.
3385 * rx-tdep.c (rx_gdbarch_init): Update.
3386 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3387 * riscv-tdep.c (riscv_gdbarch_init): Update.
3388 * or1k-tdep.c (or1k_gdbarch_init): Update.
3389 * nios2-tdep.c (nios2_gdbarch_init): Update.
3390 * nds32-tdep.c (nds32_gdbarch_init): Update.
3391 * mips-tdep.c (mips_gdbarch_init): Update.
3392 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3393 * m68k-tdep.c (m68k_gdbarch_init): Update.
3394 * i386-tdep.c (i386_gdbarch_init): Update.
3395 * arm-tdep.c (arm_gdbarch_init): Update.
3396 * arc-tdep.c (arc_tdesc_init): Update.
3397 (arc_gdbarch_init): Update.
3398 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3399
3400 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3401
3402 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3403 for WOW64 processes.
3404
3405 2020-09-17 Tom Tromey <tom@tromey.com>
3406
3407 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3408
3409 2020-09-17 Tom Tromey <tom@tromey.com>
3410
3411 * value.c (preserve_values): Update.
3412 * python/py-type.c (save_objfile_types): Update.
3413 * guile/scm-type.c (save_objfile_types): Update.
3414 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3415 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3416 * compile/compile-object-run.c (compile_object_run): Update.
3417
3418 2020-09-17 Tom Tromey <tom@tromey.com>
3419
3420 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3421 Remove.
3422 <m_table>: Now htab_up.
3423 * typeprint.c (typedef_hash_table::recursively_update)
3424 (typedef_hash_table::add_template_parameters)
3425 (typedef_hash_table::typedef_hash_table): Update.
3426 (typedef_hash_table::~typedef_hash_table): Remove.
3427 (typedef_hash_table::typedef_hash_table)
3428 (typedef_hash_table::find_global_typedef)
3429 (typedef_hash_table::find_typedef): Update.
3430
3431 2020-09-17 Tom Tromey <tom@tromey.com>
3432
3433 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3434
3435 2020-09-17 Tom Tromey <tom@tromey.com>
3436
3437 * linespec.c (class decode_compound_collector)
3438 <~decode_compound_collector>: Remove.
3439 <m_unique_syms>: Now htab_up.
3440 (decode_compound_collector::operator ()): Update.
3441 (class symtab_collector) <~symtab_collector>: Remove.
3442 <m_symtab_table>: Now htab_up.
3443 (symtab_collector::operator ()): Update.
3444
3445 2020-09-17 Tom Tromey <tom@tromey.com>
3446
3447 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3448 (filename_seen_cache::clear): Update.
3449 (~filename_seen_cache): Remove.
3450 (filename_seen_cache::seen): Update.
3451 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3452 htab_up.
3453 <~filename_seen_cache>: Remove.
3454 <traverse>: Update.
3455
3456 2020-09-17 Tom Tromey <tom@tromey.com>
3457
3458 * completer.c (completion_tracker::discard_completions)
3459 (completion_tracker::~completion_tracker)
3460 (completion_tracker::maybe_add_completion)
3461 (completion_tracker::remove_completion)
3462 (completion_tracker::recompute_lowest_common_denominator)
3463 (completion_tracker::build_completion_result): Update.
3464 * completer.h (class completion_tracker) <have_completions>:
3465 Update.
3466 <m_entries_hash>: Now htab_up.
3467
3468 2020-09-17 Tom Tromey <tom@tromey.com>
3469
3470 * breakpoint.c (ambiguous_names_p): Use htab_up.
3471
3472 2020-09-17 Tom Tromey <tom@tromey.com>
3473
3474 * auto-load.c (struct auto_load_pspace_info)
3475 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3476 <loaded_script_files, loaded_script_texts>: Change type to
3477 htab_up.
3478 (~auto_load_pspace_info) Remove.
3479 (init_loaded_scripts_info, maybe_add_script_file)
3480 (maybe_add_script_text, auto_load_info_scripts): Update.
3481
3482 2020-09-17 Tom Tromey <tromey@adacore.com>
3483
3484 * c-exp.y (name_obstack): Now static.
3485
3486 2020-09-17 Chungyi Chi <demonic@csie.io>
3487
3488 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3489
3490 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3493 (add_solib_catchpoint): Likewise.
3494 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3495 to bool.
3496 (add_solib_catchpoint): Change int parameter/variable to bool.
3497 (catch_load_or_unload): Likewise.
3498 (init_catchpoint): Likewise.
3499 (create_fork_vfork_event_catchpoint): Likewise.
3500 (catch_fork_command_1): Likewise.
3501 (catch_exec_command_1): Likewise.
3502
3503 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3506 Change instance_flags to m_instance_flags.
3507
3508 2020-09-16 Tom Tromey <tromey@adacore.com>
3509
3510 PR gdb/26598:
3511 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3512
3513 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3514
3515 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3516 PL_FLAG_EXEC.
3517 (fbsd_nat_target::insert_exec_catchpoint)
3518 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3519 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3520 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3521
3522 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3523
3524 * configure.ac: Remove check for kinfo_getvmmap().
3525 * configure, config.in: Regenerate.
3526 * fbsd-nat.c (fbsd_read_mapping): Remove
3527 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3528 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3529 kinfo_get_vmmap() are always present.
3530
3531 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3532
3533 * fbsd-nat.c: Always include support for
3534 TARGET_OBJECT_SIGNAL_INFO.
3535
3536 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3537
3538 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3539 sysctl and remove procfs fallback.
3540
3541 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3542
3543 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3544 * fbsd-nat.h: Likewise.
3545
3546 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3547
3548 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3549 argument.
3550
3551 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_language_data): Delete.
3554 (ada_language): Remove references to ada_language_data.
3555 * c-lang.c (c_language_data): Delete.
3556 (c_language): Remove references to c_language_data.
3557 (cplus_language_data): Delete.
3558 (cplus_language): Remove references to cplus_language_data.
3559 (asm_language_data): Delete.
3560 (asm_language): Remove references to asm_language_data.
3561 (minimal_language_data): Delete.
3562 (minimal_language): Remove references to minimal_language_data.
3563 * d-lang.c (d_language_data): Delete.
3564 (d_language): Remove references to d_language_data.
3565 * f-lang.c (f_language_data): Delete.
3566 (f_language): Remove references to f_language_data.
3567 * go-lang.c (go_language_data): Delete.
3568 (go_language): Remove references to go_language_data.
3569 * language.c (unknown_language_data): Delete.
3570 (unknown_language): Remove references to unknown_language_data.
3571 (auto_language_data): Delete.
3572 (auto_language): Remove references to auto_language_data.
3573 * language.h (language_data): Delete struct.
3574 (language_defn): No longer inherit from language_data.
3575 * m2-lang.c (m2_language_data): Delete.
3576 (m2_language): Remove references to m2_language_data.
3577 * objc-lang.c (objc_language_data): Delete.
3578 (objc_language): Remove references to objc_language_data.
3579 * opencl-lang.c (opencl_language_data): Delete.
3580 (opencl_language): Remove references to opencl_language_data.
3581 * p-lang.c (pascal_language_data): Delete.
3582 (pascal_language): Remove references to pascal_language_data.
3583 * rust-lang.c (rust_language_data): Delete.
3584 (rust_language): Remove references to rust_language_data.
3585
3586 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3589 initializer.
3590 (ada_language::opcode_print_table): New member function.
3591 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3592 (c_language::opcode_print_table): New member function.
3593 (cplus_language_data): Remove la_op_print_tab initializer.
3594 (cplus_language::opcode_print_table): New member function.
3595 (asm_language_data): Remove la_op_print_tab initializer.
3596 (asm_language::opcode_print_table): New member function.
3597 (minimal_language_data): Remove la_op_print_tab initializer.
3598 (minimal_language::opcode_print_table): New member function.
3599 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3600 (d_language::opcode_print_table): New member function.
3601 * expprint.c (print_subexp_standard): Update call to
3602 opcode_print_table.
3603 (op_string): Likewise.
3604 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3605 (f_language::opcode_print_table): New member function.
3606 * go-lang.c (go_language_data): Remove la_op_print_tab
3607 initializer.
3608 (go_language::opcode_print_table): New member function.
3609 * language.c (unknown_language_data): Remove la_op_print_tab
3610 initializer.
3611 (unknown_language::opcode_print_table): New member function.
3612 (auto_language_data): Remove la_op_print_tab initializer.
3613 (auto_language::opcode_print_table): New member function.
3614 * language.h (language_data): Remove la_op_print_tab field.
3615 (language_defn::opcode_print_table): Declare new member function.
3616 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3617 initializer.
3618 (m2_language::opcode_print_table): New member function.
3619 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3620 initializer.
3621 (objc_language::opcode_print_table): New member function.
3622 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3623 initializer.
3624 (opencl_language::opcode_print_table): New member function.
3625 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3626 initializer.
3627 (pascal_language::opcode_print_table): New member function.
3628 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3629 initializer.
3630 (rust_language::opcode_print_table): New member function.
3631
3632 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3633
3634 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3635 (ada_language::expression_ops): New member function.
3636 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3637 (c_language::expression_ops): New member function.
3638 (cplus_language_data): Remove la_exp_desc initializer.
3639 (cplus_language::expression_ops): New member function.
3640 (asm_language_data): Remove la_exp_desc initializer.
3641 (asm_language::expression_ops): New member function.
3642 (minimal_language_data): Remove la_exp_desc initializer.
3643 (minimal_language::expression_ops): New member function.
3644 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3645 (d_language::expression_ops): New member function.
3646 * eval.c (evaluate_subexp): Update call to expression_ops.
3647 * expprint.c (print_subexp): Likewise.
3648 (op_name): Likewise.
3649 (dump_subexp_body): Likewise.
3650 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3651 (f_language::expression_ops): New member function.
3652 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3653 (go_language::expression_ops): New member function.
3654 * language.c (language_defn::expression_ops): New function.
3655 (unknown_language_data): Remove la_exp_desc initializer.
3656 (auto_language_data): Likewise.
3657 * language.h (language_data): Remove la_exp_desc field.
3658 (language_defn::expression_ops): Declare new member function.
3659 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3660 (m2_language::expression_ops): New member function.
3661 * objc-lang.c (objc_language_data): Remove la_exp_desc
3662 initializer.
3663 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3664 initializer.
3665 (opencl_language::expression_ops): New member function.
3666 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3667 * parse.c (operator_length): Update call to expression_ops.
3668 (exp_iterate): Likewise.
3669 * rust-lang.c (rust_language_data): Remove la_exp_desc
3670 initializer.
3671 (ruse_language::expression_ops): New member function.
3672
3673 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3676 initializer.
3677 (ada_language::varobj_ops): New member function.
3678 * c-lang.c (c_language_data): Remove la_varobj_ops
3679 initializer.
3680 (cplus_language_data): Likewise.
3681 (cplus_language::varobj_ops): New member function.
3682 (asm_language_data): Remove la_varobj_ops initializer.
3683 (minimal_language_data): Likewise.
3684 * d-lang.c (d_language_data): Likewise.
3685 * f-lang.c (f_language_data): Likewise.
3686 * go-lang.c (go_language_data): Likewise.
3687 * language.c (language_defn::varobj_ops): New function.
3688 (unknown_language_data): Remove la_varobj_ops
3689 initializer.
3690 (auto_language_data): Likewise.
3691 * language.h (language_data): Remove la_varobj_ops field.
3692 (language_defn::varobj_ops): Declare new member function.
3693 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3694 * objc-lang.c (objc_language_data): Likewise.
3695 * opencl-lang.c (opencl_language_data): Likewise.
3696 * p-lang.c (pascal_language_data): Likewise.
3697 * rust-lang.c (rust_language_data): Likewise.
3698 * varobj.c (varobj_create): Update call to varobj_ops.
3699 * varobj.h (default_varobj_ops): Delete define.
3700
3701 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3704 initializer.
3705 * c-lang.c (c_language_data): Likewise.
3706 (c_language::macro_expansion): New member function.
3707 (cplus_language_data): Likewise.
3708 (cplus_language::macro_expansion): New member function.
3709 (asm_language_data): Likewise.
3710 (asm_language::macro_expansion): New member function.
3711 (minimal_language_data): Likewise.
3712 (minimal_language::macro_expansion): New member function.
3713 * d-lang.c (d_language_data): Remove la_macro_expansion
3714 initializer.
3715 * f-lang.c (f_language_data): Likewise.
3716 * go-lang.c (go_language_data): Likewise.
3717 * language.c (unknown_language_data): Likewise.
3718 (auto_language_data): Likewise.
3719 * language.h (language_data): Remove la_macro_expansion field.
3720 (language_defn::macro_expansion): New member function.
3721 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3722 initializer.
3723 * objc-lang.c (objc_language_data): Likewise.
3724 (objc_language::macro_expansion): New member function.
3725 * opencl-lang.c (opencl_language_data): Likewise.
3726 (opencl_language::macro_expansion): New member function.
3727 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3728 initializer.
3729 * rust-lang.c (rust_language_data): Likewise.
3730 * symtab.c (default_collect_symbol_completion_matches_break_on):
3731 Update call to macro_expansion.
3732
3733 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * ada-lang.c (ada_language_data): Remove la_array_ordering
3736 initializer.
3737 * c-lang.c (c_language_data): Likewise.
3738 (cplus_language_data): Likewise.
3739 (asm_language_data): Likewise.
3740 (minimal_language_data): Likewise.
3741 * d-lang.c (d_language_data): Likewise.
3742 * dwarf2/read.c (read_array_order): Update for call to
3743 array_ordering.
3744 * f-lang.c (f_language_data): Remove la_array_ordering
3745 initializer.
3746 (f_language::array_ordering): New member function.
3747 * go-lang.c (go_language_data): Remove la_array_ordering
3748 initializer.
3749 * language.c (unknown_language_data): Likewise.
3750 (auto_language_data): Likewise.
3751 * language.h (language_data): Delete la_array_ordering field.
3752 (language_defn::array_ordering): New member function.
3753 * m2-lang.c (m2_language_data): Remove la_array_ordering
3754 initializer.
3755 * objc-lang.c (objc_language_data): Likewise.
3756 * opencl-lang.c (opencl_language_data): Likewise.
3757 * p-lang.c (pascal_language_data): Likewise.
3758 * rust-lang.c (rust_language_data): Likewise.
3759
3760 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3761
3762 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3763 initializer.
3764 * c-lang.c (c_language_data): Likewise.
3765 (cplus_language_data): Likewise.
3766 (asm_language_data): Likewise.
3767 (minimal_language_data): Likewise.
3768 * d-lang.c (d_language_data): Likewise.
3769 * f-lang.c (f_language_data): Likewise.
3770 (f_language::case_sensitivity): New member function.
3771 * go-lang.c (go_language_data): Remove la_case_sensitivity
3772 initializer.
3773 * language.c (enum case_mode): Moved here from language.h.
3774 (case_mode): Make static.
3775 (show_case_command): Update for case_sensitivity being a method.
3776 (set_case_command): Likewise.
3777 (set_range_case): Likewise.
3778 (unknown_language_data): Remove la_case_sensitivity initializer.
3779 (auto_language_data): Likewise.
3780 * language.h (case_mode): Delete, move enum declaration to
3781 language.c.
3782 (language_data): Delete la_case_sensitivity field.
3783 (language_defn::case_sensitivity): New member function.
3784 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3785 initializer.
3786 * objc-lang.c (objc_language_data): Likewise.
3787 * opencl-lang.c (opencl_language_data): Likewise.
3788 * p-lang.c (pascal_language_data): Likewise.
3789 * rust-lang.c (rust_language_data): Likewise.
3790
3791 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3792
3793 * ada-lang.c (ada_language_data): Remove la_range_check
3794 initializer.
3795 * c-lang.c (c_language_data): Likewise.
3796 (cplus_language_data): Likewise.
3797 (asm_language_data): Likewise.
3798 (minimal_language_data): Likewise.
3799 * d-lang.c (d_language_data): Likewise.
3800 * f-lang.c (f_language_data): Likewise.
3801 (f_language::range_checking_on_by_default): New member function.
3802 * go-lang.c (go_language_data): Remove la_range_check initializer.
3803 * language.c (enum range_mode): Moved here from language.h.
3804 (range_mode): Made static.
3805 (show_range_command): Update to use
3806 range_checking_on_by_default.
3807 (set_range_command): Likewise.
3808 (set_range_case): Likewise.
3809 (unknown_language_data): Remove la_range_check initializer.
3810 (auto_language_data): Likewise.
3811 * language.h (range_mode): Delete. Enum definition moved to
3812 language.c.
3813 (language_data): Remove la_range_check field.
3814 (language_defn::range_checking_on_by_default): New member
3815 function.
3816 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3817 (m2_language::range_checking_on_by_default): New member function.
3818 * objc-lang.c (objc_language_data): Remove la_range_check
3819 initializer.
3820 * opencl-lang.c (opencl_language_data): Likewise.
3821 * p-lang.c (pascal_language_data): Likewise.
3822 (pascal_language::range_checking_on_by_default): New member
3823 function.
3824 * rust-lang.c (rust_language_data): Remove la_range_check
3825 initializer.
3826 (rust_language::range_checking_on_by_default): New member
3827 function.
3828
3829 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * dwarf2/read.c (dwarf2_physname): Remove special case for
3832 language_go.
3833 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3834 member function.
3835
3836 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * ada-lang.c (ada_language_data): Remove
3839 la_store_sym_names_in_linkage_form_p initializer.
3840 (ada_language::store_sym_names_in_linkage_form_p): New member
3841 function.
3842 * c-lang.c (c_language_data): Remove
3843 la_store_sym_names_in_linkage_form_p initializer.
3844 (c_language::store_sym_names_in_linkage_form_p): New member
3845 function.
3846 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3847 initializer.
3848 (asm_language_data): Likewise.
3849 (asm_language::store_sym_names_in_linkage_form_p): New member
3850 function.
3851 (minimal_language_data): Remove
3852 la_store_sym_names_in_linkage_form_p initializer.
3853 (minimal_language::store_sym_names_in_linkage_form_p): New member
3854 function.
3855 * d-lang.c (d_language_data): Remove
3856 la_store_sym_names_in_linkage_form_p initializer.
3857 * dwarf2/read.c (dwarf2_physname): Update call to
3858 store_sym_names_in_linkage_form_p.
3859 * f-lang.c (f_language_data): Remove
3860 la_store_sym_names_in_linkage_form_p initializer.
3861 * go-lang.c (go_language_data): Remove
3862 la_store_sym_names_in_linkage_form_p initializer.
3863 * language.c (unknown_language_data): Remove
3864 la_store_sym_names_in_linkage_form_p initializer.
3865 (unknown_language::store_sym_names_in_linkage_form_p): New member
3866 function.
3867 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3868 initializer.
3869 (auto_language::store_sym_names_in_linkage_form_p): New member
3870 function.
3871 * language.h (language_data): Remove
3872 la_store_sym_names_in_linkage_form_p member variable.
3873 (language_defn::store_sym_names_in_linkage_form_p): New member
3874 function.
3875 * m2-lang.c (m2_language_data): Remove
3876 la_store_sym_names_in_linkage_form_p initializer.
3877 * objc-lang.c (objc_language_data): Likewise.
3878 * opencl-lang.c (opencl_language_data): Likewise.
3879 * p-lang.c (pascal_language_data): Likewise.
3880 * rust-lang.c (rust_language_data): Likewise.
3881
3882 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 * ada-lang.c (ada_language_data): Remove string_lower_bound
3885 initializer.
3886 * c-lang.c (c_language_data): Likewise.
3887 (cplus_language_data): Likewise.
3888 (asm_language_data): Likewise.
3889 (minimal_language_data): Likewise.
3890 * d-lang.c (d_language_data): Likewise.
3891 * f-lang.c (f_language_data): Likewise.
3892 * go-lang.c (go_language_data): Likewise.
3893 * language.c (unknown_language_data): Likewise.
3894 (auto_language_data): Likewise.
3895 * language.h (language_data): Remove string_lower_bound field.
3896 (language_defn::string_lower_bound): New member function.
3897 * m2-lang.c (m2_language_data): Remove string_lower_bound
3898 initializer.
3899 (m2_language::string_lower_bound): New member function.
3900 * objc-lang.c (objc_language_data): Remove string_lower_bound
3901 initializer.
3902 * opencl-lang.c (opencl_language_data): Likewise.
3903 * p-lang.c (pascal_language_data): Likewise.
3904 * rust-lang.c (rust_language_data): Likewise.
3905 * valops.c (value_cstring): Update call to string_lower_bound.
3906 (value_string): Likewise.
3907 * value.c (allocate_repeated_value): Likewise.
3908
3909 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * valops.c (value_repeat): Fix incorrect argument name in comment.
3912
3913 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3914
3915 * ada-lang.c (ada_language_data): Remove c_style_arrays
3916 initializer.
3917 (ada_language::c_style_arrays_p): New member fuction.
3918 * c-lang.c (c_language_data): Remove c_style_arrays
3919 initializer.
3920 (cplus_language_data): Likewise.
3921 (asm_language_data): Likewise.
3922 (minimal_language_data): Likewise.
3923 * d-lang.c (d_language_data): Likewise.
3924 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3925 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3926 (f_language::c_style_arrays_p): New member function.
3927 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3928 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3929 * language.c (unknown_language_data): Remove c_style_arrays
3930 initializer.
3931 (auto_language_data): Likewise.
3932 * language.h (language_data): Remove c_style_arrays field.
3933 (language_defn::c_style_arrays_p): New member function.
3934 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3935 (m2_language::c_style_arrays_p): New member function.
3936 * objc-lang.c (objc_language_data): Remove c_style_arrays
3937 initializer.
3938 * opencl-lang.c (opencl_language_data): Likewise.
3939 * p-lang.c (pascal_language_data): Likewise.
3940 * rust-lang.c (rust_language_data): Likewise.
3941 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3942 and update local variable to a bool.
3943 * valops.c (value_cast): Update call to c_style_arrays_p.
3944 (value_array): Likewise.
3945 * value.c (coerce_array): Likewise.
3946
3947 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * ada-lang.c (ada_language_data): Remove la_language initializer.
3950 * c-lang.c (c_language_data): Likewise.
3951 (cplus_language_data): Likewise.
3952 (asm_language_data): Likewise.
3953 (minimal_language_data): Likewise.
3954 * d-lang.c (d_language_data): Likewise.
3955 * f-lang.c (f_language_data): Likewise.
3956 * go-lang.c (go_language_data): Likewise.
3957 * language.c (unknown_language_data): Likewise.
3958 (auto_language_data): Likewise.
3959 * language.h (language_data): Remove la_language field.
3960 (language_defn::language_defn): Initialise la_language field.
3961 (language_defn::la_language): New member variable.
3962 * m2-lang.c (m2_language_data): Remove la_language field.
3963 * objc-lang.c (objc_language_data): Likewise.
3964 * opencl-lang.c (opencl_language_data): Likewise.
3965 * p-lang.c (pascal_language_data): Likewise.
3966 * rust-lang.c (rust_language_data): Likewise.
3967
3968 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3969
3970 * ada-lang.c (ada_extensions): Delete, moved into
3971 ada_language::filename_extensions.
3972 (ada_language_data): Remove la_filename_extensions initializer.
3973 (ada_language::filename_extensions): New member function.
3974 * c-lang.c (c_extensions): Delete, moved into
3975 c_language::filename_extensions.
3976 (c_language_data): Remove la_filename_extensions initializer.
3977 (c_language::filename_extensions): New member function.
3978 (cplus_extensions): Delete, moved into
3979 cplus_language::filename_extensions.
3980 (cplus_language_data): Remove la_filename_extensions initializer.
3981 (cplus_language::filename_extensions): New member function.
3982 (asm_extensions): Delete, moved into
3983 asm_language::filename_extensions.
3984 (asm_language_data): Remove la_filename_extensions initializer.
3985 (asm_language::filename_extensions): New member function.
3986 (minimal_language_data): Remove la_filename_extensions
3987 initializer.
3988 * d-lang.c (d_extensions): Delete, moved into
3989 d_language::filename_extensions.
3990 (d_language_data): Remove la_filename_extensions initializer.
3991 (d_language::filename_extensions): New member function.
3992 * f-lang.c (f_extensions): Delete, moved into
3993 f_language::filename_extensions.
3994 (f_language_data): Remove la_filename_extensions initializer.
3995 (f_language::filename_extensions): New member function.
3996 * go-lang.c (go_language_data): Remove la_filename_extensions
3997 initializer.
3998 * language.c (add_set_language_command): Update now that
3999 filename_extensions returns a vector.
4000 (unknown_language_data): Remove la_filename_extensions
4001 initializer.
4002 (auto_language_data): Likewise.
4003 * language.h (language_data): Remove la_filename_extensions field.
4004 (language_defn::filename_extensions): New member function.
4005 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4006 initializer.
4007 * objc-lang.c (objc_extensions): Delete, moved into
4008 objc_language::filename_extensions.
4009 (objc_language_data): Remove la_filename_extensions initializer.
4010 (objc_language::filename_extensions): New member function.
4011 * opencl-lang.c (opencl_language_data): Remove
4012 la_filename_extensions initializer.
4013 * p-lang.c (pascal_extensions): Delete, moved into
4014 pascal_language::filename_extensions.
4015 (pascal_language_data): Remove la_filename_extensions initializer.
4016 (pascal_language::filename_extensions): New member function.
4017 * rust-lang.c (rust_extensions): Delete, moved into
4018 rust_language::filename_extensions.
4019 (rust_language_data): Remove la_filename_extensions initializer.
4020 (rust_language::filename_extensions): New member function.
4021 * symfile.c (add_filename_language): Add new assert.
4022
4023 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * ada-lang.c (ada_language_data): Remove la_name and
4026 la_natural_name initializers.
4027 (ada_language::name): New member function.
4028 (ada_language::natural_name): New member function.
4029 * c-lang.c (c_language_data): Remove la_name and
4030 la_natural_name initializers.
4031 (c_language::name): New member function.
4032 (c_language::natural_name): New member function.
4033 (cplus_language_data): Remove la_name and
4034 la_natural_name initializers.
4035 (cplus_language::name): New member function.
4036 (cplus_language::natural_name): New member function.
4037 (asm_language_data): Remove la_name and
4038 la_natural_name initializers.
4039 (asm_language::name): New member function.
4040 (asm_language::natural_name): New member function.
4041 (minimal_language_data): Remove la_name and
4042 la_natural_name initializers.
4043 (minimal_language::name): New member function.
4044 (minimal_language::natural_name): New member function.
4045 * compile/compile.c (compile_to_object): Update call to
4046 lanugage_defn::name.
4047 * d-lang.c (d_language_data): Remove la_name and
4048 la_natural_name initializers.
4049 (d_language::name): New member function.
4050 (d_language::natural_name): New member function.
4051 * expprint.c (print_subexp_standard): Update call to
4052 language_defn::name.
4053 (dump_raw_expression): Likewise
4054 (dump_prefix_expression): Likewise.
4055 * f-lang.c (f_language_data): Remove la_name and
4056 la_natural_name initializers.
4057 (f_language::name): New member function.
4058 (f_language::natural_name): New member function.
4059 * go-lang.c (go_language_data): Remove la_name and
4060 la_natural_name initializers.
4061 (go_language::name): New member function.
4062 (go_language::natural_name): New member function.
4063 * language.c (show_language_command): Update call to
4064 language_defn::name.
4065 (set_language_command): Likewise.
4066 (language_enum): Likewise.
4067 (language_str): Likewise.
4068 (add_set_language_command): Likewise, use
4069 language_defn::natural_name in the doc string.
4070 (unknown_language_data): Remove la_name and
4071 la_natural_name initializers.
4072 (unknown_language::name): New member function.
4073 (unknown_language::natural_name): New member function.
4074 (auto_language_data): Remove la_name and
4075 la_natural_name initializers.
4076 (auto_language::name): New member function.
4077 (auto_language::natural_name): New member function.
4078 (language_lookup_primitive_type_as_symbol): Update call to
4079 language_defn::name.
4080 * language.h (language_data): Remove la_name and la_natural_name
4081 member variables.
4082 (language_defn::name): New member function.
4083 (language_defn::natural_name): New member function.
4084 * m2-lang.c (m2_language_data): Remove la_name and
4085 la_natural_name initializers.
4086 (m2_language::name): New member function.
4087 (m2_language::natural_name): New member function.
4088 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4089 language_defn::natural_name.
4090 * objc-lang.c (objc_language_data): Remove la_name and
4091 la_natural_name initializers.
4092 (objc_language::name): New member function.
4093 (objc_language::natural_name): New member function.
4094 * opencl-lang.c (opencl_language_data): Remove la_name and
4095 la_natural_name initializers.
4096 (opencl_language::name): New member function.
4097 (opencl_language::natural_name): New member function.
4098 * p-lang.c (pascal_language_data): Remove la_name and
4099 la_natural_name initializers.
4100 (pascal_language::name): New member function.
4101 (pascal_language::natural_name): New member function.
4102 * rust-lang.c (rust_language_data): Remove la_name and
4103 la_natural_name initializers.
4104 (rust_language::name): New member function.
4105 (rust_language::natural_name): New member function.
4106 * symtab.c (lookup_language_this): Update call to
4107 language_defn::name.
4108
4109 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * ada-lang.c (ada_language_data): Remove la_name_of_this
4112 initializer.
4113 * ax-gdb.c (gen_expr): Update call to name_of_this.
4114 * c-exp.y (classify_name): Likewise.
4115 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4116 (cplus_language_data): Likewise.
4117 (cplus_language::name_of_this): New member function.
4118 (asm_language_data): Remove la_name_of_this initializer.
4119 (minimal_language_data): Likewise.
4120 * d-lang.c (d_language_data): Likewise.
4121 (d_language::name_of_this): New member function.
4122 * expprint.c (print_subexp_standard): Update call to name_of_this.
4123 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4124 * go-lang.c (go_language_data): Likewise.
4125 * language.c (unknown_language_data): Likewise.
4126 (unknown_language::name_of_this): New member function.
4127 (auto_language_data): Remove la_name_of_this initializer.
4128 (auto_language::name_of_this): New member function.
4129 * language.h (language_data): Delete la_name_of_this member
4130 variable.
4131 (language_defn::name_of_this): New member function.
4132 * m2-lang.c (m2_language_data): Remove la_name_of_this
4133 initializer.
4134 * objc-lang.c (objc_language_data): Likewise.
4135 (objc_language::name_of_this): New member function.
4136 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4137 initializer.
4138 * p-lang.c (pascal_language_data): Likewise.
4139 (pascal_language::name_of_this): New member function.
4140 * rust-lang.c (rust_language_data): Remove la_name_of_this
4141 initializer.
4142 * symtab.c (lookup_language_this): Update call to name_of_this.
4143 (lookup_symbol_aux): Likewise.
4144 * valops.c (value_of_this): Likewise.
4145
4146 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4147
4148 * ada-lang.c (ada_language_data): Remove
4149 la_struct_too_deep_ellipsis initializer.
4150 (ada_language::struct_too_deep_ellipsis): New member function.
4151 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4152 initializer.
4153 (cplus_language_data): Likewise.
4154 (asm_language_data): Likewise.
4155 (minimal_language_data): Likewise.
4156 * cp-valprint.c (cp_print_value): Update call to
4157 struct_too_deep_ellipsis.
4158 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4159 initializer.
4160 * f-lang.c (f_language_data): Likewise.
4161 (f_language::struct_too_deep_ellipsis): New member function.
4162 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4163 initializer.
4164 * language.c (unknown_language_data): Likewise.
4165 (auto_language_data): Likewise.
4166 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4167 member variable.
4168 (language_defn::struct_too_deep_ellipsis): New member function.
4169 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4170 initializer.Q
4171 * objc-lang.c (objc_language_data): Likewise.
4172 * opencl-lang.c (opencl_language_data): Likewise.
4173 * p-lang.c (pascal_language_data): Likewise.
4174 * rust-lang.c (rust_language_data): Likewise.
4175 * valprint.c (val_print_check_max_depth): Update call to
4176 struct_too_deep_ellipsis.
4177
4178 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4179
4180 * MAINTAINERS (Write After Approval): Add myself.
4181
4182 2020-09-15 Tom Tromey <tom@tromey.com>
4183
4184 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4185 Remove.
4186
4187 2020-09-15 Tom Tromey <tom@tromey.com>
4188
4189 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4190 and TYPE_CODE_METHODPTR cases.
4191 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4192 (c_value_print_inner): Update.
4193 * valprint.c (generic_value_print_memberptr): New function, from
4194 c_value_print_memberptr.
4195 (generic_value_print): Use it. Call cplus_print_method_ptr.
4196
4197 2020-09-15 Tom Tromey <tromey@adacore.com>
4198
4199 * python/python-internal.h (PyInt_FromLong): Remove define.
4200 * python/py-value.c (convert_value_from_python): Use
4201 gdb_py_object_from_longest.
4202 * python/py-type.c (typy_get_code): Use
4203 gdb_py_object_from_longest.
4204 * python/py-symtab.c (salpy_get_line): Use
4205 gdb_py_object_from_longest.
4206 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4207 gdb_py_object_from_longest.
4208 * python/py-record.c (recpy_gap_reason_code): Use
4209 gdb_py_object_from_longest.
4210 * python/py-record-btrace.c (recpy_bt_insn_size)
4211 (recpy_bt_func_level, btpy_list_count): Use
4212 gdb_py_object_from_longest.
4213 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4214 gdb_py_object_from_longest. Fix error handling.
4215 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4216 gdb_py_object_from_longest.
4217 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4218 gdb_py_object_from_longest.
4219 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4220 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4221 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4222
4223 2020-09-15 Tom Tromey <tromey@adacore.com>
4224
4225 * python/python.c (gdbpy_parameter_value): Use
4226 gdb_py_object_from_ulongest.
4227
4228 2020-09-15 Tom Tromey <tromey@adacore.com>
4229
4230 * python/py-infevents.c (create_register_changed_event_object):
4231 Use gdb_py_object_from_longest.
4232 * python/py-exitedevent.c (create_exited_event_object): Use
4233 gdb_py_object_from_longest.
4234
4235 2020-09-15 Tom Tromey <tromey@adacore.com>
4236
4237 * python/python.c (gdbpy_parameter_value): Use
4238 gdb_py_object_from_longest.
4239 * python/py-type.c (convert_field, typy_range): Use
4240 gdb_py_object_from_longest.
4241 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4242 gdb_py_object_from_longest.
4243 * python/py-lazy-string.c (stpy_get_length): Use
4244 gdb_py_object_from_longest.
4245 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4246 gdb_py_object_from_longest.
4247 * python/py-infevents.c (create_memory_changed_event_object): Use
4248 gdb_py_object_from_longest.
4249 * python/py-inferior.c (infpy_get_num): Use
4250 gdb_py_object_from_longest.
4251 (infpy_get_pid): Likewise.
4252
4253 2020-09-15 Tom Tromey <tromey@adacore.com>
4254
4255 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4256 defines.
4257 * python/py-value.c (valpy_long): Use
4258 gdb_py_object_from_ulongest.
4259 * python/py-symtab.c (salpy_get_pc): Use
4260 gdb_py_object_from_ulongest.
4261 (salpy_get_last): Likewise.
4262 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4263 gdb_py_object_from_ulongest.
4264 * python/py-lazy-string.c (stpy_get_address): Use
4265 gdb_py_object_from_ulongest.
4266 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4267 * python/py-arch.c (archpy_disassemble): Use
4268 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4269 error handling.
4270
4271 2020-09-15 Tom Tromey <tromey@adacore.com>
4272
4273 * python/python-internal.h (gdb_py_long_from_longest): Remove
4274 defines.
4275 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4276 * python/py-type.c (convert_field, typy_get_sizeof): Use
4277 gdb_py_object_from_longest.
4278 * python/py-record-btrace.c (btpy_list_index): Use
4279 gdb_py_object_from_longest.
4280
4281 2020-09-15 Tom Tromey <tromey@adacore.com>
4282
4283 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4284 * python/py-record.c (recpy_element_number): Use
4285 gdb_py_object_from_longest.
4286 (recpy_gap_number): Likewise.
4287
4288 2020-09-15 Tom Tromey <tromey@adacore.com>
4289
4290 * top.c (ui::ui): Update.
4291 (highest_ui_num): Remove.
4292 * top.h (struct ui) <num>: Remove.
4293
4294 2020-09-15 Tom Tromey <tromey@adacore.com>
4295
4296 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4297 * ui-style.c (ansi_regex_text): Now array.
4298 * rust-exp.y (number_regex_text): Now array.
4299 * linespec.c (linespec_quote_characters): Now array.
4300 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4301 Now arrays.
4302
4303 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * debuginfod-support.c (debuginfod_client_deleter): New.
4306 (debuginfod_client_up): New.
4307 (debuginfod_init): Return debuginfod_client_up.
4308 (debuginfod_source_query): Adjust.
4309 (debuginfod_debuginfo_query): Adjust.
4310
4311 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4312
4313 * debuginfod-support.c (debuginfod_source_query): Use
4314 make_unique_xstrdup.
4315
4316 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4319 with `type::instance_flags`.
4320
4321 2020-09-14 Michael Mullin <masmullin@gmail.com>
4322
4323 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4324 Remove baton parameter.
4325
4326 2020-09-14 Pedro Alves <pedro@palves.net>
4327
4328 * Makefile.in (SELFTESTS_SRCS): Add
4329 unittests/enum-flags-selftests.c.
4330 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4331 btrace_function_flags instead of enum btrace_function_flag.
4332 * compile/compile-c-types.c (convert_qualified): Use
4333 enum_flags::raw.
4334 * compile/compile-cplus-symbols.c (convert_one_symbol)
4335 (convert_symbol_bmsym):
4336 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4337 (compile_cplus_convert_struct_or_union_methods)
4338 (compile_cplus_instance::convert_qualified_base):
4339 * go-exp.y (parse_string_or_char): Add cast to int.
4340 * unittests/enum-flags-selftests.c: New file.
4341 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4342 type to btrace_thread_flags from btrace_thread_flag.
4343 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4344 local's type to btrace_thread_flags from btrace_thread_flag. Add
4345 cast in DEBUG call.
4346
4347 2020-09-14 Pedro Alves <pedro@palves.net>
4348
4349 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4350 * gdbtypes.c (address_space_name_to_int): Rename to ...
4351 (address_space_name_to_type_instance_flags): ... this.
4352 (address_space_int_to_name): Rename to ...
4353 (address_space_type_instance_flags_to_name): ... this.
4354 * gdbtypes.h (address_space_name_to_int): Rename to ...
4355 (address_space_name_to_type_instance_flags): ... this.
4356 (address_space_int_to_name): Rename to ...
4357 (address_space_type_instance_flags_to_name): ... this.
4358 * type-stack.c (type_stack::insert): Adjust to rename.
4359 * type-stack.h (type_stack::insert): Likewise.
4360
4361 2020-09-14 Pedro Alves <pedro@palves.net>
4362 Andrew Burgess <andrew.burgess@embecosm.com>
4363
4364 * avr-tdep.c (avr_address_class_type_flags): Return
4365 type_instance_flags.
4366 (avr_address_class_type_flags_to_name): Take a
4367 type_instance_flags.
4368 (avr_address_class_name_to_type_flags): Return bool and take a
4369 type_instance_flags.
4370 * d-lang.c (build_d_types): Use type::set_instance_flags.
4371 * ft32-tdep.c (ft32_address_class_type_flags): Return
4372 type_instance_flags.
4373 (ft32_address_class_type_flags_to_name): Take a
4374 type_instance_flags.
4375 (ft32_address_class_name_to_type_flags): Return bool and take a
4376 type_instance_flags.
4377 (ft32_gdbarch_init): Use type::set_instance_flags.
4378 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4379 * gdbarch.h, gdbarch.c: Regenerate.
4380 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4381 (address_class_name_to_type_flags): Use type_instance_flags and
4382 bool.
4383 * gdbtypes.c (address_space_name_to_int)
4384 (address_space_int_to_name, make_qualified_type): Use
4385 type_instance_flags.
4386 (make_qualified_type): Use type_instance_flags and
4387 type::set_instance_flags.
4388 (make_type_with_address_space, make_cv_type, make_vector_type)
4389 (check_typedef): Use type_instance_flags.
4390 (recursive_dump_type): Cast type_instance_flags to unsigned for
4391 printing.
4392 (copy_type_recursive): Use type::set_instance_flags.
4393 (gdbtypes_post_init): Use type::set_instance_flags.
4394 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4395 <m_instance_flags>: ... this.
4396 <instance_flags, set_instance_flags>: New methods.
4397 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4398 (SET_TYPE_INSTANCE_FLAGS): New.
4399 (address_space_name_to_int, address_space_int_to_name)
4400 (make_type_with_address_space): Pass flags using
4401 type_instance_flags instead of int.
4402 * stabsread.c (cleanup_undefined_types_noname): Use
4403 type::set_instance_flags.
4404 * s390-tdep.c (s390_address_class_type_flags): Return
4405 type_instance_flags.
4406 (s390_address_class_type_flags_to_name): Take a
4407 type_instance_flags.
4408 (s390_address_class_name_to_type_flags): Return bool and take a
4409 type_instance_flags.
4410 * type-stack.c (type_stack::follow_types): Use
4411 type_instance_flags.
4412 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4413
4414 2020-09-14 Tom Tromey <tromey@adacore.com>
4415
4416 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4417 * x86-tdep.c (x86_is_thunk_register_name)
4418 (x86_in_indirect_branch_thunk): Update.
4419 * sparc64-tdep.c (sparc64_fpu_register_names)
4420 (sparc64_cp0_register_names, sparc64_register_names)
4421 (sparc64_pseudo_register_names): Now const.
4422 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4423 cp0_registers_num>: Now const.
4424 * sparc-tdep.c (sparc_core_register_names)
4425 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4426 (sparc32_pseudo_register_names): Now const.
4427 (validate_tdesc_registers): Update.
4428 * rust-lang.c (rust_extensions): Now const.
4429 * p-lang.c (p_extensions): Now const.
4430 * objc-lang.c (objc_extensions): Now const.
4431 * nto-tdep.c (nto_thread_state_str): Now const.
4432 * moxie-tdep.c (moxie_register_names): Now const.
4433 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4434 Now const.
4435 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4436 (mips_linux_reg_names): Now const.
4437 (mips_gdbarch_init): Update.
4438 * microblaze-tdep.c (microblaze_register_names): Now const.
4439 * m68k-tdep.c (m68k_register_names): Now const.
4440 * m32r-tdep.c (m32r_register_names): Now const.
4441 * ia64-tdep.c (ia64_register_names): Now const.
4442 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4443 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4444 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4445 ymm_avx512_register_names, pkeys_register_names>: Now const.
4446 * i386-tdep.c (i386_register_names, i386_zmm_names)
4447 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4448 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4449 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4450 * f-lang.c (f_extensions): Now const.
4451 * d-lang.c (d_extensions): Now const.
4452 * csky-tdep.c (csky_register_names): Now const.
4453 * charset.c (default_charset_names, charset_enum): Now const.
4454 (_initialize_charset): Update.
4455 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4456 const.
4457 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4458 (bsd_uthread_solib_loaded): Update.
4459 (bsd_uthread_state): Now const.
4460 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4461 (amd64_ymm_avx512_names, amd64_ymmh_names)
4462 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4463 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4464 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4465 (amd64_dword_names): Now const.
4466 * agent.c (can_use_agent_enum): Now const.
4467 * ada-tasks.c (task_states, long_task_states): Now const.
4468 * ada-lang.c (known_runtime_file_name_patterns)
4469 (known_auxiliary_function_name_patterns, attribute_names)
4470 (standard_exc, ada_extensions): Now const.
4471
4472 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4473
4474 * bcache.h (struct bcache) <bcache>: Remove constructor.
4475 <m_hash_function, m_compare_function>: Remove.
4476 <~bcache>: Make virtual.
4477 <compare>: Remove static method, introduce virtual method.
4478 <default_hash>: Remove.
4479 <hash>: New virtual method.
4480 * bcache.c (bcache::expand_hash_table): Update.
4481 (bcache::insert): Update.
4482 (bcache::hash): New.
4483 (bcache::compare): Update comment and parameter names.
4484 * gdbtypes.c (types_deeply_equal): Update.
4485 * psymtab.h (struct psymbol_bcache): New struct.
4486 (class psymtab_storage) <psymtab_storage>: Make default.
4487 <psymbol_cache>: Change type to psymbol_bcache.
4488 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4489 (psymbol_hash): Change to...
4490 (psymbol_bcache::hash): ... this.
4491 (psymbol_compare): Change to...
4492 (psymbol_bcache::compare): ... this.
4493
4494 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4495
4496 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4497 checking for initial lwp.
4498
4499 2020-09-14 Tom Tromey <tromey@adacore.com>
4500
4501 * m68k-tdep.c (m68k_extract_return_value): Use
4502 pointer_result_regnum.
4503 (m68k_store_return_value): Likewise.
4504 (m68k_reg_struct_return_p): Handle vectors and arrays.
4505 (m68k_return_value): Handle arrays.
4506 (m68k_svr4_return_value): Fix single-element aggregate handling.
4507 Handle long double. Adjust for embedded ABI.
4508 (m68k_svr4_init_abi): Set pointer_result_regnum.
4509 (m68k_embedded_init_abi): New function.
4510 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4511 (m68k_osabi_sniffer): New function.
4512 (_initialize_m68k_tdep): Register osabi sniffer.
4513 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4514 member.
4515
4516 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4519 with gdb::unique_xmalloc_ptr<char>.
4520
4521 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4522
4523 * xml-support.h (xml_fetch_another): Change type to be a
4524 function_view.
4525 (xml_process_xincludes): Remove baton parameter.
4526 (xml_fetch_content_from_file): Change baton parameter to
4527 dirname.
4528 * xml-support.c (struct xinclude_parsing_data)
4529 <xinclude_parsing_data>: Remove baton parameter.
4530 <fetcher_baton>: Remove.
4531 (xinclude_start_include): Adjust.
4532 (xml_process_xincludes): Adjust.
4533 (xml_fetch_content_from_file): Replace baton parameter with
4534 dirname.
4535 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4536 (xml_init_syscalls_info): Use a lambda.
4537 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4538 (file_read_description_xml): Use a lambda.
4539 (fetch_available_features_from_target): Change baton parameter
4540 to target_ops.
4541 (target_read_description_xml): Use a lambda.
4542 (target_fetch_description_xml): Use a lambda.
4543 (string_read_description_xml): Update.
4544
4545 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4546
4547 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4548 uses with type::endianity_is_not_default.
4549
4550 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (struct type) <endianity_is_not_default,
4553 set_endianity_is_not_default>: New methods.
4554 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4555 type::endianity_is_not_default, change all write call sites to
4556 use type::set_endianity_is_not_default.
4557
4558 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4561 uses with type::is_fixed_instance.
4562
4563 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * gdbtypes.h (struct type) <is_fixed_instance,
4566 set_is_fixed_instance>: New methods.
4567 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4568 write call sites to use type::set_is_fixed_instance.
4569
4570 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4571
4572 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4573 uses with type::is_gnu_ifunc.
4574
4575 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4578 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4579 use type::set_is_gnu_ifunc.
4580
4581 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4584 uses with type::stub_is_supported.
4585
4586 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4589 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4590 use type::set_stub_is_supported.
4591
4592 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4595 uses with type::is_vector.
4596
4597 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4600 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4601 use type::set_is_vector.
4602
4603 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4606 uses with type::has_varargs.
4607
4608 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4611 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4612 use type::set_has_varargs.
4613
4614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4617 uses with type::is_prototyped.
4618
4619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4622 New methods.
4623 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4624 call sites to use type::set_is_prototyped.
4625
4626 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4627
4628 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4629 uses with type::target_is_stub.
4630
4631 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4634 New methods.
4635 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4636 sites to use type::set_target_is_stub.
4637
4638 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * gdbtypes.h (TYPE_STUB): Remove, replace all
4641 uses with type::is_stub.
4642
4643 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4646 (TYPE_STUB): Use type::is_stub, change all write call sites to
4647 use type::set_is_stub.
4648
4649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4652 type::has_no_signedness.
4653
4654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbtypes.h (struct type) <has_no_signedness,
4657 set_has_no_signedness>: New methods.
4658 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4659 call sites to use type::set_has_no_signedness.
4660
4661 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4664 type::is_unsigned.
4665
4666 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4669 methods.
4670 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4671 sites to use type::set_is_unsigned.
4672
4673 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4674 Adam Renquinha <arenquinha@cimeq.qc.ca>
4675
4676 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4677 pointer and stack frame offset when unwinding.
4678
4679 2020-09-13 Pedro Alves <pedro@palves.net>
4680
4681 * NEWS: Document "-break-insert --qualified".
4682 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4683
4684 2020-09-13 Pedro Alves <pedro@palves.net>
4685
4686 * linespec.c (classify_mtype, compare_msyms): Delete.
4687 (search_minsyms_for_name): Remove classification logic. Instead
4688 filter out trampoline symbols if we also found an external
4689 function of the same name.
4690
4691 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4692
4693 * NEWS: Create a new section for the next release branch.
4694 Rename the section of the current branch, now that it has
4695 been cut.
4696
4697 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4698
4699 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4700 * version.in: Bump version to 11.0.50.DATE-git.
4701
4702 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4703
4704 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4705
4706 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4707 Felix Willgerodt <Felix.Willgerodt@intel.com>
4708
4709 * gdbarch.sh: Added bfloat16 type.
4710 * gdbarch.c: Regenerated.
4711 * gdbarch.h: Regenerated.
4712 * gdbtypes.c (floatformats_bfloat16): New struct.
4713 (gdbtypes_post_init): Add builtin_bfloat16.
4714 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4715 (floatformats_bfloat16): New struct.
4716 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4717 (i386_ymm_type): Add field "v16_bfloat16"
4718 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4719 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4720 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4721 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4722 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4723 * features/i386/64bit-avx512.c: Regenerated.
4724 * features/i386/64bit-sse.xml: Add bfloat16 type.
4725 * features/i386/64bit-sse.c: Regenerated.
4726
4727 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4728
4729 * i386-tdep.c (i386_zmm_type): Fix field names.
4730 (i386_ymm_type): Fix field names.
4731
4732 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4733
4734 * breakpoint.c: Fix typo in the help message of the
4735 "set breakpoint condition-evaluation" command.
4736
4737 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4738
4739 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4740 * (nbsd_nat_target::pid_to_exec_file)
4741 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4742 (nbsd_nat_target::post_startup_inferior)
4743 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4744 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4745 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4746 * (nbsd_thread_lister): Remove.
4747
4748 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4749
4750 * fork-inferior.c (startup_inferior): Avoid double free.
4751
4752 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4753
4754 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4755 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4756
4757 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4758
4759 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4760 * netbsd-nat.c: Include <sys/ptrace.h>.
4761 * (netbsd_nat::enable_proc_events): Add.
4762
4763 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4764
4765 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4766 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4767 (netbsd_nat::for_each_thread): Add.
4768 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4769 "gdbsupport/common-debug.h".
4770 * (netbsd_nat::netbsd_thread_lister)
4771 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4772 (netbsd_nat::for_each_thread): Add.
4773
4774 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4775
4776 * netbsd-nat.h: Include <unistd.h>.
4777 * (netbsd_nat::pid_to_exec_file): Add.
4778 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4779 * (netbsd_nat::pid_to_exec_file) Add.
4780
4781 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4782
4783 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4784
4785 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4786
4787 * netbsd-nat.h: New file.
4788 * netbsd-nat.c: Likewise.
4789
4790 2020-09-09 Tom Tromey <tromey@adacore.com>
4791
4792 * ada-lang.c (remove_extra_symbols): Do not increment when
4793 removing an element
4794
4795 2020-09-08 Tom Tromey <tromey@adacore.com>
4796
4797 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4798
4799 2020-09-08 Tom Tromey <tromey@adacore.com>
4800
4801 PR win32/25302:
4802 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4803 (gdb_bfd_init_data): New function.
4804 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4805
4806 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4807
4808 * infrun.c (fetch_inferior_event): Use
4809 `switch_to_target_no_thread` to switch the target.
4810
4811 2020-09-06 Tom Tromey <tom@tromey.com>
4812
4813 * symfile.h (dwarf2_free_objfile): Don't declare.
4814
4815 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4816
4817 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4818 to match 16 byte real/complex type generated by Flang compiler.
4819
4820 2020-09-03 Tom de Vries <tdevries@suse.de>
4821
4822 PR breakpoint/26546
4823 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4824 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4825
4826 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4827
4828 * maint.c (index_digits): New function.
4829 (struct maint_print_section_data): Remove.
4830 (print_bfd_section_info): Remove print_data parameter, add arg
4831 and index_digits.
4832 (print_objfile_section_info): Likewise.
4833 (print_bfd_section_info_maybe_relocated): Likewise (plus
4834 objfile).
4835 (maintenance_info_sections): Adjust calls.
4836
4837 2020-09-02 Tom Tromey <tromey@adacore.com>
4838
4839 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4840 for null pointers.
4841 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4842
4843 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4844
4845 * bcache.h (struct bcache) <insert>: Change type of `added` to
4846 pointer to bool.
4847 * bcache.c (bcache::insert): Likewise.
4848 * gdbtypes.c (check_types_worklist): Adjust.
4849 * psymtab.c (add_psymbol_to_bcache): Adjust.
4850
4851 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4852
4853 * corelow.c (unordered_set): Include.
4854 (class core_target): Add field 'm_core_unavailable_mappings'.
4855 (core_target::build_file_mappings): Print only one warning
4856 per inaccessible file. Add unavailable/broken mappings
4857 to m_core_unavailable_mappings.
4858 (core_target::xfer_partial): Call...
4859 (core_target::xfer_memory_via_mappings): New method.
4860
4861 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4862
4863 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4864 type to bool.
4865
4866 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4867
4868 * dwarf2/read.c (struct field_info): Fix indentation.
4869
4870 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4871
4872 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4873 ordering in comment.
4874 * frame.c (frame_id_eq): Fix indentation.
4875
4876 2020-08-31 Scott Linder <scott@scottlinder.com>
4877 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4880 inline frame ids in outer frame.
4881
4882 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4885 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4886 (outer_frame_id): Use FID_STACK_OUTER instead of
4887 FID_STACK_INVALID.
4888 (frame_id_p): Don't check for outer_frame_id.
4889
4890 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4893 regnum/frame in value. Call allocate_value_lazy.
4894 * frame.c (frame_unwind_register_value): Use
4895 val_print_not_saved.
4896
4897 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4900
4901 2020-08-29 Pedro Alves <pedro@palves.net>
4902
4903 * progspace.c (print_program_space): Use all_inferiors. Switch to
4904 the inferior before calling target_pid_to_str.
4905
4906 2020-08-28 Tom Tromey <tom@tromey.com>
4907
4908 * xcoffread.c (xcoff_end_psymtab): Update comment.
4909 * dbxread.c (dbx_end_psymtab): Update comment.
4910
4911 2020-08-28 Tom de Vries <tdevries@suse.de>
4912
4913 PR breakpoint/26544
4914 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4915 event_location.
4916 (create_breakpoint): Same.
4917 (base_breakpoint_decode_location): Same.
4918 (bkpt_create_sals_from_location): Same.
4919 (bkpt_decode_location): Same.
4920 (bkpt_probe_create_sals_from_location): Same.
4921 (bkpt_probe_decode_location): Same.
4922 (tracepoint_create_sals_from_location): Same.
4923 (tracepoint_decode_location): Same.
4924 (tracepoint_probe_decode_location): Same.
4925 (strace_marker_create_sals_from_location): Same.
4926 (strace_marker_decode_location): Same.
4927 (create_sals_from_location_default): Same.
4928 (decode_location_default): Same.
4929 * breakpoint.h (struct breakpoint_ops): Same.
4930 (create_breakpoint): Same.
4931 * linespec.h (decode_line_full): Same.
4932 * linespec.c (decode_line_full): Same. Throw error if
4933 result.size () == 0.
4934
4935 2020-08-27 Pedro Alves <pedro@palves.net>
4936
4937 PR gdb/26524
4938 * breakpoint.c (until_break_fsm) <location_breakpoint,
4939 caller_breakpoint>: Delete fields.
4940 <breakpoints>: New field.
4941 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4942 two individual breakpoints.
4943 (until_break_fsm::should_stop): Loop over breakpoints in the
4944 breakpoint vector.
4945 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4946 vector.
4947 (until_break_command): Handle location expanding into multiple
4948 sals.
4949
4950 2020-08-27 Pedro Alves <pedro@palves.net>
4951
4952 PR gdb/26523
4953 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4954 bp_until breakpoints user-specified locations. Update intro
4955 comment.
4956
4957 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4960 gdb_bfd_sections): New.
4961 * maint.c (print_bfd_section_info): Change param type to
4962 maint_print_section_data.
4963 (print_objfile_section_info): Likewise.
4964 (print_bfd_section_info_maybe_relocated): Likewise.
4965 (maintenance_info_sections): Use gdb_bfd_sections.
4966
4967 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4968
4969 * MAINTAINERS: Add ARC target and maintainer.
4970
4971 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4972
4973 * configure.tgt: ARC support for GNU/Linux.
4974 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4975 * arc-linux-tdep.c: New file.
4976 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4977 * arc-tdep.c (arc_write_pc): Use it.
4978
4979 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4980
4981 * arc-tdep.c (arc_check_for_hardware_loop): New.
4982 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4983
4984 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4985
4986 * arc-tdep.h: Include "gdbarch.h".
4987
4988 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4989
4990 * arch/arc.h
4991 (arc_gdbarch_features): New class to stir the selection of target XML.
4992 (arc_create_target_description): Use FEATURES to choose XML target.
4993 (arc_lookup_target_description): Use arc_create_target_description
4994 to create _new_ target descriptions or return the already created
4995 ones if the FEATURES is the same.
4996 * arch/arc.c: Implementation of prototypes described above.
4997 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4998 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4999 * arc-tdep.c (*_feature_name): Make feature names consistent.
5000 (arc_register_feature): A new struct to hold information about
5001 registers of a particular target/feature.
5002 (arc_check_tdesc_feature): Check if XML provides registers in
5003 compliance with ARC_REGISTER_FEATURE structs.
5004 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5005 (determine_*_reg_feature_set): Which feature name to look for.
5006 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5007 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5008 to expected ISA enums to be used in arc_gdbarch_features structs.
5009 * features/Makefile (FEATURE_XMLFILES): Add new files.
5010 * gdb/features/arc/v1-aux.c: New file.
5011 * gdb/features/arc/v1-aux.xml: Likewise.
5012 * gdb/features/arc/v1-core.c: Likewise.
5013 * gdb/features/arc/v1-core.xml: Likewise.
5014 * gdb/features/arc/v2-aux.c: Likewise.
5015 * gdb/features/arc/v2-aux.xml: Likewise.
5016 * gdb/features/arc/v2-core.c: Likewise.
5017 * gdb/features/arc/v2-core.xml: Likewise.
5018 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5019
5020 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5021 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 PR m2/26372
5024 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5025 an assert. Remove single element array indexing pattern as the
5026 MULTI_SUBSCRIPT support will handle this case too.
5027
5028 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5029
5030 * value.h (valprint_check_validity): Move declaration from
5031 here...
5032 * valprint.h (valprint_check_validity): ... to here.
5033
5034 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * debug.h: New file.
5037 * debug.c (debug_prefixed_vprintf): New function.
5038 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5039 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5040
5041 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5042
5043 * infrun.h (infrun_debug_printf_1): New function declaration.
5044 (infrun_debug_printf): New macro.
5045 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5046 throughout.
5047 (infrun_debug_printf): New function.
5048 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5049 (handle_jit_event): Likewise.
5050
5051 2020-08-21 Mark Wielaard <mark@klomp.org>
5052
5053 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5054
5055 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * frame.c (enum class frame_id_status): New.
5058 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5059 (fprintf_frame): Update.
5060 (compute_frame_id): Set frame id status to "computing" on entry.
5061 Set it back to "not_computed" on failure and to "computed" on
5062 success.
5063 (get_frame_id): Assert the frame id is not being computed.
5064 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5065 (create_new_frame): Likewise.
5066 (frame_cleanup_after_sniffer): Update assert.
5067
5068 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5069
5070 * regcache.c (pid_ptid_regcache_map): New type.
5071 (target_ptid_regcache_map): Remove.
5072 (target_pid_ptid_regcache_map): New type.
5073 (regcaches): Change type to target_pid_ptid_regcache_map.
5074 (get_thread_arch_aspace_regcache): Update.
5075 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5076 case.
5077 (regcaches_size): Update.
5078 (regcache_count): Update.
5079 (registers_changed_ptid_target_pid_test): New.
5080 (_initialize_regcache): Register new test.
5081
5082 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5083
5084 * regcache.c (regcache_count): New.
5085 (struct regcache_test_data): New.
5086 (regcache_test_data_up): New.
5087 (populate_regcaches_for_test): New.
5088 (regcaches_test): Remove.
5089 (get_thread_arch_aspace_regcache_test): New.
5090 (registers_changed_ptid_all_test): New.
5091 (registers_changed_ptid_target_test): New.
5092 (registers_changed_ptid_target_ptid_test): New.
5093 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5094 (_initialize_regcache): Register new tests.
5095
5096 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5099 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5100 gdbarch and aspace parameter. Use current inferior's aspace.
5101 Validate regcache's arch value.
5102 (regcaches_test): Update.
5103
5104 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5105
5106 * regcache.c (regcaches_test): Call registers_changed.
5107
5108 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5109
5110 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5111
5112 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5113
5114 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5115 to find the end of prologue for flang compiled binaries.
5116 * arm-tdep.c (arm_skip_prologue): Likewise.
5117 * i386-tdep.c (i386_skip_prologue): Likewise.
5118 * producer.c (producer_is_llvm): New function.
5119 (producer_parsing_tests): Added new tests for clang/flang.
5120 * producer.h (producer_is_llvm): New declaration.
5121
5122 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5123
5124 * linux-nat.c (linux_nat_debug_printf): New function.
5125 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5126
5127 2020-08-18 Aaron Merey <amerey@redhat.com>
5128
5129 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5130 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5131 (CLIBS): Add DEBUGINFOD_LIBS.
5132
5133 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5134
5135 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5136 'gdbarch_num_regs'.
5137
5138 2020-08-17 Tom Tromey <tromey@adacore.com>
5139
5140 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5141 ada_get_decoded_value returns NULL.
5142
5143 2020-08-17 Tom Tromey <tromey@adacore.com>
5144
5145 * python/py-inferior.c (infpy_search_memory): Use
5146 gdb_py_object_from_ulongest.
5147 * python/py-infevents.c (create_inferior_call_event_object)
5148 (create_memory_changed_event_object): Use
5149 gdb_py_object_from_ulongest.
5150 * python/py-linetable.c (ltpy_entry_get_pc): Use
5151 gdb_py_object_from_ulongest.
5152
5153 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * loc.c (class symbol_needs_eval_context): Fix indentation.
5156
5157 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5158
5159 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5160 bool.
5161
5162 2020-08-17 Tom de Vries <tdevries@suse.de>
5163
5164 PR gdb/26393
5165 * gdbtypes.c (dump_dynamic_prop): New function.
5166 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5167
5168 2020-08-15 Tom de Vries <tdevries@suse.de>
5169
5170 PR backtrace/26390
5171 * stack.c (print_frame_args): Temporarily set the selected
5172 frame to FRAME while printing the frame's arguments.
5173
5174 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5175
5176 PR breakpoints/26385
5177 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5178 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5179
5180 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5181
5182 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5183 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5184 and >= to check return value instead of == -1 and != -1.
5185
5186 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 * utils.h (class gdb_argv) <as_array_view>: New method.
5189 * utils.c (gdb_argv_as_array_view_test): New.
5190 (_initialize_utils): Register selftest.
5191 * maint.c (maintenance_selftest): Use the new method.
5192
5193 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5194
5195 * target.h (supports_dumpcore, dumpcore): New
5196 function declarations.
5197 * target.c (supports_dumpcore, dumpcore): New
5198 functions.
5199 * target-delegates.c: Rebuild.
5200 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5201 and target_dumpcore ().
5202
5203 2020-08-13 Aaron Merey <amerey@redhat.com>
5204
5205 * debuginfod-support.c: Replace global variables with user_data.
5206
5207 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * maint.c (maintenance_selftest): Split args and pass array_view
5210 to run_tests.
5211
5212 2020-08-12 Luis Machado <luis.machado@linaro.org>
5213
5214 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5215 type's length.
5216 Use %s and pulongest to print the length.
5217
5218 2020-08-12 Pedro Alves <palves@redhat.com>
5219
5220 * NEWS: Move "Multi-target debugging support" item to the
5221 "Changes since GDB 9" section.
5222
5223 2020-08-12 Pedro Alves <palves@redhat.com>
5224
5225 PR gdb/26336
5226 * progspace.c (program_space::remove_objfile): Invalidate the
5227 frame cache.
5228
5229 2020-08-11 Tom de Vries <tdevries@suse.de>
5230
5231 * MAINTAINERS: Mark ms1 as deleted.
5232
5233 2020-08-10 Luis Machado <luis.machado@linaro.org>
5234
5235 PR gdb/26310
5236
5237 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5238 act accordingly.
5239 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5240 movz/str/stur/stp skipping behavior.
5241
5242 2020-08-10 Luis Machado <luis.machado@linaro.org>
5243
5244 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5245 struct user_sve_header instead of struct sve_context.
5246
5247 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * read.h (dwarf2_fetch_die_loc_sect_off,
5250 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5251 `void *` parameter with function_view.
5252 * read.c (dwarf2_fetch_die_loc_sect_off,
5253 dwarf2_fetch_die_loc_cu_off): Likewise.
5254 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5255 (per_cu_dwarf_call): Adjust.
5256 (get_frame_address_in_block_wrapper): Remove.
5257 (indirect_synthetic_pointer): Adjust.
5258 (get_ax_pc): Remove.
5259 (dwarf2_compile_expr_to_ax): Adjust.
5260
5261 2020-08-08 Tom de Vries <tdevries@suse.de>
5262
5263 PR build/26344
5264 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5265 constructor.
5266 * regcache.c (get_thread_arch_aspace_regcache): Same.
5267
5268 2020-08-07 Tom Tromey <tromey@adacore.com>
5269
5270 * ravenscar-thread.c
5271 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5272 New method.
5273 (ravenscar_thread_target::wait): Check
5274 runtime_initialized.
5275 (ravenscar_thread_target::prepare_to_store)
5276 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5277 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5278 (ravenscar_thread_target::stopped_by_watchpoint)
5279 (ravenscar_thread_target::stopped_data_address)
5280 (ravenscar_thread_target::core_of_thread): Use
5281 scoped_restore_current_thread and
5282 set_base_thread_from_ravenscar_task.
5283
5284 2020-08-07 Tom Tromey <tromey@adacore.com>
5285
5286 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5287
5288 2020-08-07 Tom Tromey <tromey@adacore.com>
5289
5290 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5291 update_inferior_ptid before update_thread_list.
5292 (temporarily_change_regcache_ptid): New class.
5293 (ravenscar_thread_target::fetch_registers)
5294 (ravenscar_thread_target::store_registers)
5295 (ravenscar_thread_target::prepare_to_store): Use base thread when
5296 forwarding operation.
5297
5298 2020-08-07 Tom Tromey <tromey@adacore.com>
5299
5300 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5301 "is_pid" case.
5302
5303 2020-08-07 Tom Tromey <tromey@adacore.com>
5304
5305 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5306 New methods.
5307 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5308 first.
5309 (ravenscar_thread_target::add_thread): Rename from
5310 ravenscar_add_thread.
5311 (ravenscar_thread_target::update_thread_list): Use a lambda.
5312 (ravenscar_thread_target::xfer_partial): New method.
5313
5314 2020-08-07 Tom Tromey <tromey@adacore.com>
5315
5316 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5317 gdb::function_view.
5318 (iterate_over_live_ada_tasks): Change type of argument.
5319 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5320 of argument.
5321
5322 2020-08-07 Tom Tromey <tromey@adacore.com>
5323
5324 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5325 Remove.
5326 (ravenscar_thread_target::extra_thread_info): Remove.
5327 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5328 defer to target beneath for non-Ravenscar threads.
5329
5330 2020-08-07 Tom Tromey <tromey@adacore.com>
5331
5332 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5333 get_base_thread_from_ravenscar_task>: Now methods.
5334 <m_cpu_map>: New member.
5335 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5336 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5337 (ravenscar_thread_target::task_is_currently_active): Update.
5338 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5339 Now a method.
5340 (ravenscar_thread_target::add_active_thread): Put initial thread
5341 into the m_cpu_map.
5342
5343 2020-08-07 Tom Tromey <tromey@adacore.com>
5344
5345 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5346 event_ptid.
5347
5348 2020-08-07 Tom Tromey <tromey@adacore.com>
5349
5350 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5351 runtime_initialized.
5352
5353 2020-08-07 Tom Tromey <tromey@adacore.com>
5354
5355 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5356 add_active_thread.
5357 (ravenscar_thread_target::add_active_thread): Now public.
5358 (ravenscar_inferior_created): Call add_active_thread after pushing
5359 the target.
5360
5361 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5362
5363 * regcache.c (ptid_regcache_map): New type.
5364 (target_ptid_regcache_map): New type.
5365 (regcaches): Change type to target_ptid_regcache_map.
5366 (get_thread_arch_aspace_regcache): Update to regcaches' new
5367 type.
5368 (regcache_thread_ptid_changed): Likewise.
5369 (registers_changed_ptid): Likewise.
5370 (regcaches_size): Likewise.
5371 (regcaches_test): Update.
5372 (regcache_thread_ptid_changed): Update.
5373 * regcache.h (regcache_up): New type.
5374 * gdbsupport/ptid.h (hash_ptid): New struct.
5375
5376 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * observable.h (thread_ptid_changed): Add parameter
5379 `process_stratum_target *`.
5380 * infrun.c (infrun_thread_ptid_changed): Add parameter
5381 `process_stratum_target *` and use it.
5382 (selftests): New namespace.
5383 (infrun_thread_ptid_changed): New function.
5384 (_initialize_infrun): Register selftest.
5385 * regcache.c (regcache_thread_ptid_changed): Add parameter
5386 `process_stratum_target *` and use it.
5387 (regcache_thread_ptid_changed): New function.
5388 (_initialize_regcache): Register selftest.
5389 * thread.c (thread_change_ptid): Pass target to
5390 thread_ptid_changed observable.
5391
5392 2020-08-06 Caroline Tice <cmtice@google.com>
5393
5394 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5395 (struct dwp_sections): Update field comments. Add loclists and
5396 rnglists fields.
5397 (struct virtual_v2_dwo_sections): Rename struct to
5398 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5399 size & offset fields for loclists and rnglists.
5400 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5401 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5402 skipping dummy type units.
5403 (create_dwp_hash_table): Update the large comment above the function to
5404 discuss Version 5 DWP files as well, with references. Update all the
5405 version checks in the function to check for version 5 as well. Add new
5406 section at the end to create dwp hash table for version 5.
5407 (create_dwp_v2_section): Rename function to
5408 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5409 Add V5 to error message text.
5410 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5411 into calls to create_dwp_v2_or_v5_section.
5412 (create_dwo_unit_in_dwp_v5): New function.
5413 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5414 check for version2; add else clause to handle version 5.
5415 (open_and_init_dwo_file): Add code to check dwarf version & only call
5416 create_debug_types_hash_table (with sections.types) if version is not 5;
5417 else call create_debug_type_hash_table, with sections.info.
5418 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5419 version 5.
5420 (dwarf2_locate_v5_dwp_sections): New function.
5421 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5422 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5423
5424 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * regcache.h (class regcache): Remove friend
5427 registers_changed_ptid.
5428 <regcache_thread_ptid_changed>: Remove.
5429 <regcaches>: Remove.
5430 * regcache.c (regcache::regcaches): Rename to...
5431 (regcaches): ... this. Make static.
5432 (get_thread_arch_aspace_regcache): Update.
5433 (regcache::regcache_thread_ptid_changed): Rename to...
5434 (regcache_thread_ptid_changed): ... this. Update.
5435 (class regcache_access): Remove.
5436 (regcaches_test): Update.
5437 (_initialize_regcache): Update.
5438 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5439 <forward_list>.
5440
5441 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5442
5443 * regcache.h (class regcache) <current_regcache>: Rename to...
5444 <regcaches>: ... this. Move doc here.
5445 * regcache.c (regcache::current_regcache) Rename to...
5446 (regcache::regcaches): ... this. Move doc to header.
5447 (get_thread_arch_aspace_regcache): Update.
5448 (regcache::regcache_thread_ptid_changed): Update.
5449 (registers_changed_ptid): Update.
5450 (class regcache_access) <current_regcache_size>: Rename to...
5451 <regcaches_size>: ... this.
5452 (current_regcache_test): Rename to...
5453 (regcaches_test): ... this.
5454 (_initialize_regcache): Update.
5455
5456 2020-08-06 Victor Collod <vcollod@nvidia.com>
5457
5458 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5459
5460 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5461
5462 * corelow.c (core_target::build_file_mappings): Don't output
5463 null pathname in warning.
5464
5465 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5468 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5469 gdb.dwarf2/dw2-single-line-discriminators.exp,
5470 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5471
5472 2020-08-05 Tom Tromey <tromey@adacore.com>
5473
5474 PR rust/26197:
5475 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5476 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5477 Fix off-by-one and type size errors in ordinary case.
5478
5479 2020-08-05 Tom de Vries <tdevries@suse.de>
5480
5481 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5482 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5483
5484 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * frame.h (frame_id_p): Return bool.
5487 (frame_id_artificial_p): Return bool.
5488 (frame_id_eq): Return bool.
5489 (has_stack_frames): Return bool.
5490 (get_selected_frame): Fix typo in comment.
5491 (get_frame_pc_if_available): Return bool.
5492 (get_frame_address_in_block_if_available): Return bool.
5493 (get_frame_func_if_available): Return bool.
5494 (read_frame_register_unsigned): Return bool.
5495 (get_frame_register_bytes): Return bool.
5496 (safe_frame_unwind_memory): Return bool.
5497 (deprecated_frame_register_read): Return bool.
5498 (frame_unwinder_is): Return bool.
5499 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5500 bool.
5501 <this_id::p>: Likewise.
5502 <prev_p>: Likewise.
5503 (frame_stash_add): Return bool.
5504 (get_frame_id): Use bool.
5505 (frame_id_build_special) Use bool.
5506 (frame_id_build_unavailable_stack): Use bool.
5507 (frame_id_build): Use bool.
5508 (frame_id_p): Return bool, use true/false instead of 1/0.
5509 (frame_id_artificial_p): Likewise.
5510 (frame_id_eq): Likewise.
5511 (frame_id_inner): Likewise.
5512 (get_frame_func_if_available): Likewise.
5513 (read_frame_register_unsigned): Likewise.
5514 (deprecated_frame_register_read): Likewise.
5515 (get_frame_register_bytes): Likewise.
5516 (has_stack_frames): Likewise.
5517 (inside_main_func): Likewise.
5518 (inside_entry_func): Likewise.
5519 (get_frame_pc_if_available): Likewise.
5520 (get_frame_address_in_block_if_available): Likewise.
5521 (frame_unwinder_is): Likewise.
5522 (safe_frame_unwind_memory): Likewise.
5523 (frame_unwind_arch): Likewise.
5524
5525 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5528 type to cached_copy_status.
5529 (fprintf_frame): Adjust.
5530 (get_frame_func_if_available): Adjust.
5531 (frame_cleanup_after_sniffer): Adjust.
5532
5533 2020-08-04 Mark Wielaard <mark@klomp.org>
5534
5535 * MAINTAINERS (Write After Approval): Update email address.
5536
5537 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5538
5539 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5540 dynamic_prop::const_val.
5541
5542 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5543
5544 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5545 dynamic_prop::kind.
5546
5547 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5550
5551 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5552
5553 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5554
5555 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5556 Jose E. Marchesi <jose.marchesi@oracle.com>
5557
5558 * configure.tgt: Add entry for bpf-*-*.
5559 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5560 (ALLDEPFILES): Add bpf-tdep.c.
5561 * bpf-tdep.c: New file.
5562 * MAINTAINERS: Add bpf target and maintainer.
5563 * NEWS: Mention the support for the new target.
5564
5565 2020-08-04 Tom de Vries <tdevries@suse.de>
5566
5567 PR symtab/23270
5568 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5569 Error.
5570
5571 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5572
5573 * syscalls/freebsd.xml: Regenerate.
5574
5575 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5576
5577 * syscalls/update-freebsd.sh: Fix usage and year range.
5578
5579 2020-08-03 Tom de Vries <tdevries@suse.de>
5580
5581 PR symtab/26333
5582 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5583 DW_LNE_lo_user/DW_LNE_hi_user range.
5584
5585 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5586
5587 PR ada/26318
5588 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5589 kind.
5590
5591 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5592
5593 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5594
5595 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5596
5597 * breakpoint.c (set_breakpoint_condition): Update the condition
5598 expressions after checking that the input condition string parses
5599 successfully and does not contain junk at the end.
5600
5601 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5602
5603 * breakpoint.c (set_breakpoint_condition): Update the
5604 condition string after parsing the new condition successfully.
5605
5606 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5607
5608 * proc-api.c (_STRUCTURED_PROC): Don't define.
5609 * proc-events.c: Likewise.
5610 * proc-flags.c: Likewise.
5611 * proc-why.c: Likewise.
5612 * procfs.c: Likewise.
5613
5614 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5615 * configure, config.in: Regenerate.
5616
5617 2020-07-30 Tom de Vries <tdevries@suse.de>
5618
5619 PR build/26320
5620 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5621 m_red/m_green/m_blue in a union.
5622
5623 2020-07-29 Tom de Vries <tdevries@suse.de>
5624
5625 PR tdep/26280
5626 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5627
5628 2020-07-28 Tom Tromey <tromey@adacore.com>
5629
5630 PR symtab/26270:
5631 * symtab.h (find_pc_partial_function_sym): Declare.
5632 * cli/cli-cmds.c (disassemble_command): Use
5633 find_pc_partial_function_sym. Check asm_demangle.
5634 * blockframe.c (cache_pc_function_sym): New global.
5635 (cache_pc_function_name): Remove.
5636 (clear_pc_function_cache): Update.
5637 (find_pc_partial_function_sym): New function, from
5638 find_pc_partial_function.
5639 (find_pc_partial_function): Rewrite using
5640 find_pc_partial_function_sym.
5641
5642 2020-07-28 Tom Tromey <tromey@adacore.com>
5643
5644 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5645 help. Add usage.
5646
5647 2020-07-28 Tom Tromey <tromey@adacore.com>
5648
5649 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5650 <DW_OP_GNU_variable_value>: Cast to address type.
5651
5652 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5653
5654 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5655 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5656 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5657 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5658 (nbsd_get_siginfo_type): New.
5659 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5660 (_initialize_nbsd_tdep): New.
5661
5662 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5663
5664 PR binutils/26301
5665 * configure: Regenerated.
5666
5667 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5668
5669 PR binutils/26301
5670 * configure: Regenerated.
5671
5672 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5673
5674 * python/py-frame.c: Remove 'user-regs.h' include.
5675 (frapy_read_register): Rewrite to make use of
5676 gdbpy_parse_register_id.
5677 * python/py-registers.c (gdbpy_parse_register_id): New function,
5678 moved here from python/py-unwind.c. Updated the return type, and
5679 also accepts register descriptor objects.
5680 * python/py-unwind.c: Remove 'user-regs.h' include.
5681 (pyuw_parse_register_id): Moved to python/py-registers.c.
5682 (unwind_infopy_add_saved_register): Update to use
5683 gdbpy_parse_register_id.
5684 (pending_framepy_read_register): Likewise.
5685 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5686
5687 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5688
5689 * python/py-registers.c: Add 'user-regs.h' include.
5690 (register_descriptor_iter_find): New function.
5691 (register_descriptor_iterator_object_methods): New static global
5692 methods array.
5693 (register_descriptor_iterator_object_type): Add pointer to methods
5694 array.
5695
5696 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5697
5698 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5699 for all architectures on FreeBSD 11.3 and later.
5700
5701 2020-07-27 Tom Tromey <tromey@adacore.com>
5702
5703 * gcore.h (load_corefile): Don't declare.
5704
5705 2020-07-27 Tom de Vries <tdevries@suse.de>
5706
5707 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5708 * config.in: Regenerate.
5709 * configure: Regenerate.
5710
5711 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5712
5713 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5714 ws2tcpip.h. When checking whether socklen_t type is defined, use
5715 ws2tcpip.h if it is available and sys/socket.h isn't.
5716 * configure: Regenerate.
5717 * config.in: Regenerate.
5718
5719 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 PR fortran/23051
5722 PR fortran/26139
5723 * valops.c (value_ind): Pass address to
5724 readjust_indirect_value_type.
5725 * value.c (readjust_indirect_value_type): Make parameter
5726 non-const, and add extra address parameter. Resolve original type
5727 before using it.
5728 * value.h (readjust_indirect_value_type): Update function
5729 signature and comment.
5730
5731 2020-07-25 Tom de Vries <tdevries@suse.de>
5732
5733 PR symtab/26243
5734 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5735 entries.
5736
5737 2020-07-24 Aaron Merey <amerey@redhat.com>
5738
5739 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5740 * configure: Rebuild.
5741
5742 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5743
5744 PR corefiles/26294
5745 * corelow.c (_initialize_corelow): Add period to help text
5746 for "maintenance print core-file-backed-mappings".
5747
5748 2020-07-23 Pedro Alves <pedro@palves.net>
5749
5750 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5751 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5752 meanwhile.
5753 * frame.c (frame_cache_generation, get_frame_cache_generation):
5754 New.
5755 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5756 (get_prev_frame_if_no_cycle): On exception, don't touch
5757 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5758 * frame.h (get_frame_cache_generation): Declare.
5759
5760 2020-07-23 Tom de Vries <tdevries@suse.de>
5761
5762 PR tui/26282
5763 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5764 New default constructor.
5765
5766 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5769 exclude non-statement entries.
5770
5771 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5772
5773 * NEWS (New commands): Mention new command
5774 "maintenance print core-file-backed-mappings".
5775
5776 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5777
5778 * corelow.c (gdbcmd.h): Include.
5779 (core_target::info_proc_mappings): New method.
5780 (get_current_core_target): New function.
5781 (maintenance_print_core_file_backed_mappings): New function.
5782 (_initialize_corelow): Add core-file-backed-mappings to
5783 "maint print" commands.
5784
5785 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5786
5787 * linux-tdep.c (dump_note_entry_p): New function.
5788 (linux_dump_mapping_p_ftype): New typedef.
5789 (linux_find_memory_regions_full): Add new parameter,
5790 should_dump_mapping_p.
5791 (linux_find_memory_regions): Adjust call to
5792 linux_find_memory_regions_full.
5793 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5794 call to linux_find_memory_regions_full.
5795
5796 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5797
5798 * corelow.c (solist.h, unordered_map): Include.
5799 (class core_target): Add field m_core_file_mappings and
5800 method build_file_mappings.
5801 (core_target::core_target): Call build_file_mappings.
5802 (core_target::~core_target): Free memory associated with
5803 m_core_file_mappings.
5804 (core_target::build_file_mappings): New method.
5805 (core_target::xfer_partial): Use m_core_file_mappings
5806 for memory transfers.
5807 * linux-tdep.c (linux_read_core_file_mappings): New
5808 function.
5809 (linux_core_info_proc_mappings): Rewrite to use
5810 linux_read_core_file_mappings.
5811 (linux_init_abi): Register linux_read_core_file_mappings.
5812
5813 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5814
5815 * arch-utils.c (default_read_core_file_mappings): New function.
5816 * arch-utils.c (default_read_core_file_mappings): Declare.
5817 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5818 * gdbarch.h, gdbarch.c: Regenerate.
5819
5820 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5821
5822 PR corefiles/25631
5823 * corelow.c (core_target:xfer_partial): Revise
5824 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5825 case after first checking the stratum beneath the core
5826 target.
5827 (has_all_memory): Return true.
5828 * target.c (raw_memory_xfer_partial): Revise comment
5829 regarding use of has_all_memory.
5830
5831 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5832
5833 * exec.h (section_table_xfer_memory): Revise declaration,
5834 replacing section name parameter with an optional callback
5835 predicate.
5836 * exec.c (section_table_xfer_memory): Likewise.
5837 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5838 of section_table_xfer_memory.
5839
5840 2020-07-22 Tom Tromey <tromey@adacore.com>
5841
5842 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5843 lookup_symbol_search_name.
5844
5845 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5848 redundant local variable.
5849 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5850 reference, not pointer, update code accordingly.
5851
5852 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5853 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5854
5855 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5856 * jit.c (jit_breakpoint_re_set_internal): Use the
5857 `skip_jit_symbol_lookup` field.
5858
5859 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5860 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5861
5862 * jit.c (jit_read_descriptor): Define the descriptor address once,
5863 use twice.
5864 (jit_breakpoint_deleted): Move the declaration of the loop variable
5865 `iter` into the loop header.
5866 (jit_breakpoint_re_set_internal): Move the declaration of the local
5867 variable `objf_data` to the first point of definition.
5868 (jit_event_handler): Move the declaration of local variables
5869 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5870 Rename `objf` to `jited`.
5871
5872 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5875 Remove.
5876 * jit.c (get_jiter_objfile_data): Update.
5877
5878 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5879 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * jit.c (struct jit_program_space_data): Remove.
5882 (jit_program_space_key): Remove.
5883 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5884 stuff.
5885 (get_jit_program_space_data): Remove.
5886 (jit_breakpoint_deleted): Iterate on all of the program space's
5887 objfiles.
5888 (jit_inferior_init): Likewise.
5889 (jit_breakpoint_re_set_internal): Likewise. Also change return
5890 type to void.
5891 (jit_breakpoint_re_set): Pass current_program_space to
5892 jit_breakpoint_re_set_internal.
5893
5894 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * jit.h (struct jiter_objfile_data) <cached_code_address,
5897 jit_breakpoint>: Move to here from ...
5898 * jit.c (jit_program_space_data): ... here.
5899 (jiter_objfile_data::~jiter_objfile_data): Update.
5900 (jit_breakpoint_deleted): Update.
5901 (jit_breakpoint_re_set_internal): Update.
5902
5903 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5906 checks.
5907 (jit_read_descriptor): Remove NULL check.
5908 (jit_event_handler): Add an assertion.
5909
5910 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * jit.h (struct jit_objfile_data): Split into...
5913 (struct jiter_objfile_data): ... this ...
5914 (struct jited_objfile_data): ... and this.
5915 * objfiles.h (struct objfile) <jit_data>: Remove.
5916 <jiter_data, jited_data>: New fields.
5917 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5918 (jiter_objfile_data::~jiter_objfile_data): ... this.
5919 (get_jit_objfile_data): Rename to ...
5920 (get_jiter_objfile_data): ... this.
5921 (add_objfile_entry): Update.
5922 (jit_read_descriptor): Use get_jiter_objfile_data.
5923 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5924 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5925 (jit_inferior_exit_hook): Use objfile's jited_data field.
5926
5927 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 * jit.h: Forward-declare `struct minimal_symbol`.
5930 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5931 constructor, destructor, and an objfile* field.
5932 * jit.c (jit_objfile_data): Remove.
5933 (struct jit_objfile_data): Migrate from here to jit.h.
5934 (jit_objfile_data::~jit_objfile_data): New destructor
5935 implementation with code moved from free_objfile_data.
5936 (free_objfile_data): Delete.
5937 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5938 (jit_find_objf_with_entry_addr): Ditto.
5939 (jit_inferior_exit_hook): Ditto.
5940 (_initialize_jit): Remove the call to
5941 register_objfile_data_with_cleanup.
5942 * objfiles.h (struct objfile) <jit_data>: New field.
5943
5944 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5945
5946 * jit.h: Forward-declare `struct objfile`.
5947 (jit_event_handler): Add a second parameter, the JITer objfile.
5948 * jit.c (jit_read_descriptor): Change the signature to take the
5949 JITer objfile as an argument instead of the jit_program_space_data.
5950 (jit_inferior_init): Update the call to jit_read_descriptor.
5951 (jit_event_handler): Use the new JITer objfile argument when calling
5952 jit_read_descriptor.
5953 * breakpoint.c (handle_jit_event): Update the call to
5954 jit_event_handler to pass the JITer objfile.
5955
5956 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5957
5958 * gdbarch.c: Regenerate.
5959 * gdbarch.h: Regenerate.
5960 * gdbarch.sh (handle_segmentation_fault): Remove method.
5961 * infrun.c (handle_segmentation_fault): Remove.
5962 (print_signal_received_reason): Remove call to
5963 handle_segmentation_fault.
5964
5965 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5966
5967 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5968 Rename to sparc64_linux_report_signal_info and add siggnal
5969 argument.
5970 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5971 instead of sparc64_linux_handle_segmentation_fault.
5972
5973 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5974
5975 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5976 i386_linux_report_signal_info instead of
5977 i386_linux_handle_segmentation_fault.
5978 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5979 to i386_linux_report_signal_info and add siggnal argument.
5980 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5981 of i386_linux_handle_segmentation_fault.
5982 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5983 to i386_linux_report_signal_info and add siggnal argument.
5984
5985 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5986
5987 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5988 hook if present.
5989
5990 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5991
5992 * gdbarch.c: Regenerate.
5993 * gdbarch.h: Regenerate.
5994 * gdbarch.sh (report_signal_info): New method.
5995 * infrun.c (print_signal_received_reason): Invoke gdbarch
5996 report_signal_info hook if present.
5997
5998 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5999
6000 * python/py-registers.c : Add 'unordered_map' include.
6001 (gdbpy_new_reggroup): Renamed to...
6002 (gdbpy_get_reggroup): ...this. Update to only create register
6003 group descriptors when needed.
6004 (gdbpy_reggroup_iter_next): Update.
6005
6006 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6007
6008 * python/py-registers.c (gdbpy_register_object_data): New static
6009 global.
6010 (gdbpy_register_object_data_init): New function.
6011 (gdbpy_new_register_descriptor): Renamed to...
6012 (gdbpy_get_register_descriptor): ...this, and update to reuse
6013 existing register descriptors where possible.
6014 (gdbpy_register_descriptor_iter_next): Update.
6015 (gdbpy_initialize_registers): Register new gdbarch data.
6016
6017 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * linux-nat.c (stopped_pids): Make static.
6020
6021 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6022
6023 PR ada/26235
6024 * gdbtypes.c (ada_discrete_type_low_bound,
6025 ada_discrete_type_high_bound): Handle undefined bounds.
6026
6027 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6028
6029 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6030 declaration.
6031 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6032 function.
6033
6034 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6035
6036 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6037 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6038 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6039 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6040 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6041 method.
6042
6043 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6044
6045 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6046 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6047 which are deprecated in Guile 3.0.
6048 * configure.ac (try_guile_versions): Add "guile-3.0".
6049 * configure (try_guile_versions): Regenerate.
6050 * NEWS: Update entry.
6051
6052 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6053 Doug Evans <dje@google.com>
6054
6055 PR gdb/21104
6056 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6057 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6058 USING_GUILE_BEFORE_2_2.
6059 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6060 Change type to 'scm_t_port_type *'.
6061 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6062 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6063 parameter and honor it. Update callers.
6064 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6065 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6066 functions.
6067 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6068 USING_GUILE_BEFORE_2_2.
6069 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6070 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6071 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6072 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6073 and 'SCM_PORT_TYPE'.
6074 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6075 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6076 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6077 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6078 [!USING_GUILE_BEFORE_2_2]: New functions.
6079 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6080 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6081 'gdbscm_memory_port_read'.
6082 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6083 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6084 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6085 function.
6086 (ioscm_init_memory_port): Remove.
6087 (ioscm_init_memory_port_stream): New function
6088 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6089 function.
6090 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6091 Return scm_from_uint (0).
6092 (gdbscm_set_memory_port_read_buffer_size_x)
6093 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6094 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6095 Return scm_from_uint (0).
6096 (gdbscm_set_memory_port_write_buffer_size_x)
6097 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6098 * configure.ac (try_guile_versions): Add "guile-2.2".
6099 * configure: Regenerate.
6100 * NEWS: Add entry.
6101
6102 2020-07-18 Tom Tromey <tom@tromey.com>
6103
6104 * linux-nat.c (linux_multi_process): Remove.
6105 (linux_nat_target::supports_multi_process): Return true.
6106
6107 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6108
6109 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6110 (riscv_lookup_target_description): Return pointer out of
6111 unique_ptr.
6112 * target-descriptions.c (allocate_target_description): Add
6113 comment.
6114 (target_desc_deleter::operator()): Likewise.
6115 * target-descriptions.h (struct target_desc_deleter): Moved to
6116 gdbsupport/tdesc.h.
6117 (target_desc_up): Likewise.
6118
6119 2020-07-17 Tom Tromey <tromey@adacore.com>
6120
6121 * linux-nat.c (linux_nat_target::supports_non_stop)
6122 (linux_nat_target::always_non_stop_p): Use "true".
6123 (linux_nat_target::supports_disable_randomization): Use "true" and
6124 "false".
6125
6126 2020-07-16 Caroline Tice <cmtice@google.com>
6127
6128 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6129 (RNGLIST_HEADER_SIZE64): New constant definition.
6130 (struct dwop_section_names): Add rnglists_dwo.
6131 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6132 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6133 (struct dwo_sections): Add rnglists field.
6134 (read_attribut_reprocess): Add tag parameter.
6135 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6136 (cu_debug_rnglists_section): New function (decl & definition).
6137 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6138 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6139 die whose range is being checked; get rnglist section from
6140 cu_debug_rnglists_section, to get from either objfile or dwo file as
6141 appropriate. Add cases for DW_RLE_base_addressx,
6142 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6143 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6144 test inside if-condition and updating complaint message.
6145 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6146 dwarf2_rnglists_process.
6147 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6148 dwarf2_ranges_process.
6149 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6150 need_ranges_base and update comment appropriately. Also pass die tag
6151 to dwarf2_ranges_read.
6152 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6153 need_ranges_base and update comment appropriately. Also pass die tag
6154 to dwarf2_ranges_process.
6155 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6156 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6157 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6158 need_ranges_base and update comment appropriately. Also pass die tag
6159 to read_attribute_reprocess and dwarf2_ranges_read.
6160 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6161 and update function comment appropriately.
6162 (read_loclist_index): Call read_loclists_rnglists_header instead of
6163 read_loclist_header.
6164 (read_rnglist_index): New function.
6165 (read_attribute_reprocess): Add tag parameter. Add code for
6166 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6167 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6168
6169 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6170
6171 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6172 being resolved.
6173
6174 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * arch-utils.c (show_architecture): Update formatting of messages.
6177
6178 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * gdbtypes.h (struct type) <bounds>: Handle array and string
6181 types.
6182 * ada-lang.c (assign_aggregate): Use type::bounds on
6183 array/string type.
6184 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6185 * c-varobj.c (c_number_of_children): Likewise.
6186 (c_describe_child): Likewise.
6187 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6188 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6189 (f_type_print_base): Likewise.
6190 * f-valprint.c (f77_array_offset_tbl): Likewise.
6191 (f77_get_upperbound): Likewise.
6192 (f77_print_array_1): Likewise.
6193 * guile/scm-type.c (gdbscm_type_range): Likewise.
6194 * m2-typeprint.c (m2_array): Likewise.
6195 (m2_is_long_set_of_type): Likewise.
6196 * m2-valprint.c (get_long_set_bounds): Likewise.
6197 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6198 * python/py-type.c (typy_range): Likewise.
6199 * rust-lang.c (rust_internal_print_type): Likewise.
6200 * type-stack.c (type_stack::follow_types): Likewise.
6201 * valarith.c (value_subscripted_rvalue): Likewise.
6202 * valops.c (value_cast): Likewise.
6203
6204 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6207 callers to use the equivalent accessor methods.
6208
6209 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6212 (struct type) <bit_stride>: New method.
6213 (TYPE_BIT_STRIDE): Remove.
6214 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6215
6216 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6219 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6220 callers to use the equivalent accessor methods instead.
6221
6222 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6225 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6226 callers to use the equivalent accessor methods instead.
6227
6228 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6231 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6232 to use dynamic_prop::kind.
6233
6234 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6237 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6238 to get the bound property's kind and check against
6239 PROP_UNDEFINED.
6240
6241 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6244 all callers to use type::range_bounds followed by
6245 dynamic_prop::{low,high}.
6246
6247 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6250 const_val, set_const_val, baton, set_locexpr, set_loclist,
6251 set_addr_offset, variant_parts, set_variant_parts,
6252 original_type, set_original_type>: New methods.
6253 <kind>: Rename to...
6254 <m_kind>: ... this. Update all users to use the new methods
6255 instead.
6256 <data>: Rename to...
6257 <m_data>: ... this. Update all users to use the new methods
6258 instead.
6259
6260 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * gdbtypes.c (get_discrete_bounds): Return failure if
6263 the range type's bounds are not both defined and constant
6264 values.
6265 (get_array_bounds): Update comment. Remove undefined bound check.
6266
6267 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6270 the type::bounds method directly.
6271
6272 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6275 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6276 are used to set the range type's bounds to use set_bounds.
6277
6278 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6279
6280 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6281
6282 2020-07-10 Pedro Alves <pedro@palves.net>
6283
6284 * gdbthread.h (inferior_ref): Define.
6285 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6286 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6287 * thread.c
6288 (scoped_restore_current_thread::restore):
6289 Adjust to gdb::ref_ptr.
6290 (scoped_restore_current_thread::~scoped_restore_current_thread):
6291 Remove manual decref handling.
6292 (scoped_restore_current_thread::scoped_restore_current_thread):
6293 Adjust to use
6294 inferior_ref::new_reference/thread_info_ref::new_reference.
6295 Incref the thread before calling get_frame_id instead of after.
6296 Let TARGET_CLOSE_ERROR propagate.
6297
6298 2020-07-10 Pedro Alves <pedro@palves.net>
6299
6300 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6301 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6302 NOT_AVAILABLE_ERROR.
6303 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6304 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6305
6306 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6307 Pedro Alves <pedro@palves.net>
6308
6309 PR gdb/26199
6310 * infrun.c (threads_are_resumed_pending_p): Delete.
6311 (do_target_wait): Remove threads_are_executing and
6312 threads_are_resumed_pending_p checks from the inferior_matches
6313 lambda. Update comments.
6314
6315 2020-07-10 Pedro Alves <pedro@palves.net>
6316
6317 PR gdb/26199
6318 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6319 executing threads.
6320
6321 2020-07-10 Pedro Alves <pedro@palves.net>
6322
6323 PR gdb/26199
6324 * infrun.c (handle_no_resumed): Handle multiple targets.
6325
6326 2020-07-10 Pedro Alves <pedro@palves.net>
6327
6328 PR gdb/26199
6329 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6330 target_is_async_p.
6331
6332 2020-07-10 Pedro Alves <pedro@palves.net>
6333
6334 PR gdb/26199
6335 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6336 threads, not all threads.
6337
6338 2020-07-10 Pedro Alves <pedro@palves.net>
6339
6340 PR gdb/26199
6341 * remote.c (remote_target::open_1): Pass remote target pointer as
6342 data to create_async_event_handler.
6343 (remote_async_inferior_event_handler): Mark async event handler
6344 before returning if the remote target still has either pending
6345 events or unacknowledged notifications.
6346
6347 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6348
6349 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6350 declaration.
6351 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6352 function.
6353
6354 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6355
6356 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6357 inferior_ptid.
6358
6359 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6360
6361 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6362 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6363 AT_FREEBSD_PS_STRINGS.
6364
6365 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6366
6367 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6368 of debugfile path on Windows.
6369
6370 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6371
6372 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6373 argument to 'data'.
6374
6375 2020-07-08 Tom Tromey <tromey@adacore.com>
6376
6377 * ada-lang.c (ada_exception_message_1): Use read_memory.
6378
6379 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6380
6381 PR python/22748
6382 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6383 special handling for inline frames.
6384 * findvar.c (value_of_register_lazy): Skip inline frames when
6385 creating lazy register values.
6386 * frame.c (frame_id_computed_p): Delete definition.
6387 * frame.h (frame_id_computed_p): Delete declaration.
6388
6389 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * NEWS: Mention additions to Python API.
6392 * python/py-arch.c (archpy_register_groups): New function.
6393 (arch_object_methods): Add 'register_groups' method.
6394 * python/py-registers.c (reggroup_iterator_object): New struct.
6395 (reggroup_object): New struct.
6396 (gdbpy_new_reggroup): New function.
6397 (gdbpy_reggroup_to_string): New function.
6398 (gdbpy_reggroup_name): New function.
6399 (gdbpy_reggroup_iter): New function.
6400 (gdbpy_reggroup_iter_next): New function.
6401 (gdbpy_new_reggroup_iterator): New function
6402 (gdbpy_initialize_registers): Register new types.
6403 (reggroup_iterator_object_type): Define new Python type.
6404 (gdbpy_reggroup_getset): New static global.
6405 (reggroup_object_type): Define new Python type.
6406 * python/python-internal.h
6407
6408 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6409
6410 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6411 * python/py-arch.c (archpy_registers): New function.
6412 (arch_object_methods): Add 'registers' method.
6413 * python/py-registers.c: New file.
6414 * python/python-internal.h
6415 (gdbpy_new_register_descriptor_iterator): Declare.
6416 (gdbpy_initialize_registers): Declare.
6417 * python/python.c (do_start_initialization): Call
6418 gdbpy_initialize_registers.
6419 * NEWS: Mention additions to the Python API.
6420
6421 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * NEWS: Mention new Python API method.
6424 * python/py-unwind.c (pending_framepy_architecture): New function.
6425 (pending_frame_object_methods): Add architecture method.
6426
6427 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6428
6429 * gdbarch.c: Regenerate.
6430 * gdbarch.h: Regenerate.
6431 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6432 (gdbarch_data): Use internal_error for the case where
6433 deprecated_set_gdbarch_data was originally needed.
6434 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6435 and use passed in obstack.
6436 (libunwind_frame_set_descr): Should no longer get back NULL from
6437 gdbarch_data.
6438 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6439 type.
6440 * user-regs.c (user_regs_init): Update parameters, and use passed
6441 in obstack.
6442 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6443 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6444
6445 2020-07-06 Tom de Vries <tdevries@suse.de>
6446
6447 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6448 End-Of-Sequence in lte_is_less_than.
6449 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6450 "gdb: Don't reorder line table entries too much when sorting".
6451
6452 2020-07-06 Tom de Vries <tdevries@suse.de>
6453
6454 PR tui/26205
6455 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6456
6457 2020-07-05 Tom de Vries <tdevries@suse.de>
6458
6459 PR build/26187
6460 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6461 std::uncaught_exceptions instead of deprecated
6462 std::uncaught_exception.
6463
6464 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6465
6466 * macroexp.h (macro_stringify): Return
6467 gdb::unique_xmalloc_ptr<char>.
6468 * macroexp.c (macro_stringify): Likewise.
6469 * macrotab.c (fixup_definition): Update.
6470
6471 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6472
6473 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6474 (lex_one_token): Update.
6475 * macroexp.c (struct macro_buffer) <release>: Return
6476 gdb::unique_xmalloc_ptr<char>.
6477 (macro_stringify): Update.
6478 (macro_expand): Update.
6479 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6480 * macroexp.h (macro_expand_next): Likewise.
6481
6482 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * macroexp.h (macro_lookup_ftype): Remove.
6485 (macro_expand, macro_expand_once, macro_expand_next): Remove
6486 lookup function parameters, add scope parameter.
6487 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6488 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6489 * macroscope.h (standard_macro_lookup): Change parameter type
6490 to macro_scope.
6491 * macroscope.c (standard_macro_lookup): Likewise.
6492 * c-exp.y (lex_one_token): Update.
6493 * macrocmd.c (macro_expand_command): Likewise.
6494 (macro_expand_once_command): Likewise.
6495
6496 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * inf-loop.c (inferior_event_handler): Remove client_data param.
6499 * inf-loop.h (inferior_event_handler): Likewise.
6500 * infcmd.c (step_1): Adjust.
6501 * infrun.c (proceed): Adjust.
6502 (fetch_inferior_event): Remove client_data param.
6503 (infrun_async_inferior_event_handler): Adjust.
6504 * infrun.h (fetch_inferior_event): Remove `void *` param.
6505 * linux-nat.c (handle_target_event): Adjust.
6506 * record-btrace.c (record_btrace_handle_async_inferior_event):
6507 Adjust.
6508 * record-full.c (record_full_async_inferior_event_handler):
6509 Adjust.
6510 * remote.c (remote_async_inferior_event_handler): Adjust.
6511
6512 2020-07-01 Tom Tromey <tom@tromey.com>
6513
6514 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6515 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6516
6517 2020-07-01 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6520 tui_gen_win_info.
6521 (tui_win_info::make_window): Merge with
6522 tui_gen_win_info::make_window.
6523 (tui_win_info::make_visible): Move from tui_gen_win_info.
6524 * tui/tui-win.c (tui_win_info::max_width): Move from
6525 tui_gen_win_info.
6526 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6527 type.
6528 <window_factory>: Likewise.
6529 * tui/tui-layout.c (tui_win_info::resize): Move from
6530 tui_gen_win_info.
6531 (make_standard_window): Change return type.
6532 (get_locator_window, tui_get_window_by_name): Likewise.
6533 (tui_layout_window::apply): Remove a cast.
6534 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6535 (struct tui_win_info): Merge with tui_gen_win_info.
6536 (struct tui_gen_win_info): Remove.
6537
6538 2020-07-01 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-stack.h (struct tui_locator_window): Derive from
6541 tui_win_info.
6542 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6543 <can_box>: New method.
6544
6545 2020-07-01 Tom Tromey <tom@tromey.com>
6546
6547 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6548
6549 2020-07-01 Tom Tromey <tom@tromey.com>
6550
6551 * tui/tui-regs.c (tui_data_window::display_registers_from)
6552 (tui_data_window::display_registers_from)
6553 (tui_data_window::first_data_item_displayed)
6554 (tui_data_window::delete_data_content_windows): Update.
6555 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6556 Remove.
6557 (tui_data_window::check_register_values): Update.
6558 (tui_data_item_window::rerender): Add parameters. Update.
6559 (tui_data_item_window::refresh_window): Remove.
6560 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6561 virtual.
6562 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6563 tui_gen_win_info.
6564 <refresh_window, max_height, min_height>: Remove.
6565 <rerender>: Add parameters.
6566 <x, y, visible>: New members.
6567 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6568 <m_item_width>: New member.
6569
6570 2020-07-01 Tom Tromey <tom@tromey.com>
6571
6572 * tui/tui-regs.c (tui_data_window::show_register_group)
6573 (tui_data_window::check_register_values): Update.
6574 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6575 from item_no.
6576
6577 2020-07-01 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6580 useless "if".
6581
6582 2020-07-01 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6585 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6586
6587 2020-07-01 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6590 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6591 (struct tui_line_or_address): Move from tui-data.h.
6592 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6593 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6594 (tui_cmd_window, tui_source_window_base, tui_source_window)
6595 (tui_disasm_window): Don't declare.
6596 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6597 to tui-winsource.h.
6598 (SINGLE_KEY): Move to tui-stack.c.
6599
6600 2020-07-01 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6603 std::string.
6604 * tui/tui-regs.c (class tab_expansion_file): New.
6605 (tab_expansion_file::write): New method.
6606 (tui_register_format): Change return type. Use
6607 tab_expansion_file.
6608 (tui_get_register, tui_data_window::display_registers_from)
6609 (tui_data_item_window::rerender): Update.
6610 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6611 * tui/tui-io.c (tui_expand_tabs): Remove.
6612
6613 2020-07-01 Tom Tromey <tom@tromey.com>
6614
6615 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6616
6617 2020-07-01 Fangrui Song <maskray@google.com>
6618
6619 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6620
6621 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6622
6623 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6624 forms for DW_AT_associated and DW_AT_allocated attributes,
6625 which is already checked in function attr_to_dynamic_prop.
6626
6627 2020-06-30 Tom Tromey <tromey@adacore.com>
6628
6629 * dwarf2/read.c (quirk_rust_enum): Correctly call
6630 alloc_rust_variant for default-less enum.
6631
6632 2020-06-30 Tom Tromey <tromey@adacore.com>
6633
6634 PR build/26183:
6635 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6636 gdb::to_string.
6637
6638 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6639
6640 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6641 * gdbarch.h: Re-generate.
6642
6643 2020-06-28 Tom Tromey <tom@tromey.com>
6644
6645 * command.h (cmd_types): Remove.
6646 (cmd_type): Don't declare.
6647 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6648 typedef.
6649 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6650 * cli/cli-decode.c (cmd_type): Remove.
6651
6652 2020-06-27 Pedro Alves <palves@redhat.com>
6653
6654 * fork-child.c (prefork_hook): Adjust.
6655 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6656 Delete.
6657 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6658 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6659 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6660 Remove declarations.
6661 (struct inferior) <set_tty, tty>: New methods.
6662 (struct inferior) <terminal>: Rename to ...
6663 (struct inferior) <m_terminal>: ... this and make private.
6664 * main.c (captured_main_1): Adjust.
6665 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6666 (mi_cmd_inferior_tty_show): Adjust.
6667 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6668 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6669
6670 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6671
6672 * configure.ac: Add --enable-libctf: handle --disable-static
6673 properly.
6674 * acinclude.m4: sinclude ../config/enable.m4.
6675 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6676 (LIBCTF): Substitute in.
6677 (CTF_DEPS): New, likewise.
6678 (CLIBS): libctf needs symbols from libbfd: move earlier.
6679 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6680 flags.
6681 * ctfread.c: Surround in ENABLE_LIBCTF.
6682 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6683 * configure: Regenerate.
6684 * config.in: Likewise.
6685
6686 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6687
6688 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6689
6690 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6691
6692 * inferior.h (struct inferior) <terminal>: Change type to
6693 gdb::unique_xmalloc_ptr<char>.
6694 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6695 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6696 field, adjust to unique pointer.
6697 (get_inferior_io_terminal): Adjust to unique pointer.
6698
6699 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6702 registers, not just the known core set of registers.
6703
6704 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6707 fflags, frm, and fcsr registers.
6708 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6709 restore groups.
6710 (riscv_tdesc_unknown_reg): New function.
6711 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6712 tdesc_use_registers.
6713 * riscv-tdep.h (struct gdbarch_tdep): Add
6714 unknown_csrs_first_regnum, unknown_csrs_count,
6715 duplicate_fflags_regnum, duplicate_frm_regnum, and
6716 duplicate_fcsr_regnum fields.
6717
6718 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6719
6720 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6721 callback, use the callback (when not null) to help number unknown
6722 registers.
6723 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6724 (tdesc_use_registers): Add extra parameter to declaration.
6725
6726 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6727
6728 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6729 in the file.
6730 (class riscv_pending_register_alias): Likewise.
6731 (riscv_register_feature::register_info): Change 'required_p' field
6732 to 'required', and change its type. Add 'check' member function.
6733 (riscv_register_feature::register_info::check): Define new member
6734 function.
6735 (riscv_xreg_feature): Change initialisation of 'required' field.
6736 (riscv_freg_feature): Likewise.
6737 (riscv_virtual_feature): Likewise.
6738 (riscv_csr_feature): Likewise.
6739 (riscv_check_tdesc_feature): Take extra parameter, the csr
6740 tdesc_feature, rewrite the function to use the new
6741 riscv_register_feature::register_info::check function.
6742 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6743
6744 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * features/Makefile: Remove all references to the deleted files
6747 below.
6748 * features/riscv/32bit-csr.c: Deleted.
6749 * features/riscv/32bit-csr.xml: Deleted.
6750 * features/riscv/64bit-csr.c: Deleted.
6751 * features/riscv/64bit-csr.xml: Deleted.
6752 * features/riscv/rebuild-csr-xml.sh: Deleted.
6753
6754 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6755
6756 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6757 whitespace error for declaration of names member variable.
6758 (struct riscv_register_feature): Add new prefer_first_name member
6759 variable, and fix whitespace error in declaration of registers.
6760 (riscv_xreg_feature): Initialize prefer_first_name field.
6761 (riscv_freg_feature): Likewise.
6762 (riscv_virtual_feature): Likewise.
6763 (riscv_csr_feature): Likewise.
6764 (riscv_register_name): Expand on comments. Remove register name
6765 modifications for CSR and virtual registers.
6766
6767 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6770 errors.
6771
6772 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6775 riscv-opc.h.
6776 (class riscv_pending_register_alias): New class.
6777 (riscv_check_tdesc_feature): Take vector of pending aliases and
6778 populate it as appropriate.
6779 (riscv_setup_register_aliases): Delete.
6780 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6781 to riscv_check_tdesc_feature in all cases. Use the vector to
6782 create the register aliases.
6783
6784 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6785
6786 * sol2-tdep.c (sol2_static_transform_name): Remove.
6787 (sol2_init_abi): Don't register it.
6788 * gdbarch.sh (static_transform_name): Remove.
6789 * gdbarch.c, gdbarch.h: Regenerate.
6790
6791 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6792 gdbarch_static_transform_name.
6793 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6794 * stabsread.c (define_symbol) <'X'>: Remove.
6795 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6796 handling.
6797 <'V'>: Likewise.
6798 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6799 <'S'>: Remove call to gdbarch_static_transform_name.
6800
6801 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6802
6803 * procfs.c (procfs_pre_trace): New function.
6804 (procfs_target::create_inferior): Pass it to fork_inferior.
6805
6806 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6807
6808 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6809 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6810 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6811 sol2-tdep.o, sparc-sol2-tdep.o.
6812 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6813 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6814 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6815 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6816
6817 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6818
6819 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6820 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6821 Call sol2_init_abi.
6822 Remove calls to set_gdbarch_skip_solib_resolver,
6823 set_gdbarch_core_pid_to_str.
6824 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6825 (i386_sol2_static_transform_name): Remove.
6826 (i386_sol2_init_abi): Call sol2_init_abi.
6827 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6828 set_gdbarch_static_transform_name,
6829 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6830 Use sol2_sigtramp_p.
6831 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6832 (sol2_sigtramp_p): New function.
6833 (sol2_static_transform_name): New function.
6834 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6835 (sol2_init_abi): New function.
6836 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6837 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6838 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6839 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6840 (sparc_sol2_static_transform_name): Remove.
6841 (sparc32_sol2_init_abi): Call sol2_init_abi.
6842 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6843 set_gdbarch_static_transform_name,
6844 set_gdbarch_skip_solib_resolver,
6845 set_gdbarch_core_pid_to_str.
6846 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6847 (sparc_sol2_static_transform_name): Remove
6848 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6849 call sol2_sigtramp_p.
6850 (sparc64_sol2_init_abi): Call sol2_init_abi.
6851 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6852 set_gdbarch_static_transform_name,
6853 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6854
6855 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6856
6857 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6858 * exec.c (validate_exec_file): If from_tty, set both
6859 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6860 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6861 and from_tty, unconditionally ask a confirmation.
6862
6863 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6864
6865 * target-descriptions.c (tdesc_architecture_name): Protect against
6866 NULL pointer dereference.
6867 (maint_print_xml_tdesc_cmd): New function.
6868 (_initialize_target_descriptions): Register new 'maint print
6869 xml-tdesc' command and give it the filename completer.
6870 * NEWS: Mention new 'maint print xml-tdesc' command.
6871
6872 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * target-descriptions.c (class tdesc_compatible_info): New class.
6875 (struct target_desc): Change type of compatible vector.
6876 (tdesc_compatible_p): Update for change in type of
6877 target_desc::compatible.
6878 (tdesc_compatible_info_list): New function.
6879 (tdesc_compatible_info_arch_name): New function.
6880 (tdesc_add_compatible): Update for change in type of
6881 target_desc::compatible.
6882 (print_c_tdesc::visit_pre): Likewise.
6883
6884 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6885
6886 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6887 whitespace to underscore.
6888 (maint_print_c_tdesc_cmd): Use fake filename for target
6889 descriptions that came from the target.
6890 (_initialize_target_descriptions): Add filename command completion
6891 for 'maint print c-tdesc'.
6892
6893 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6894
6895 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6896 lines.
6897
6898 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6901 lines.
6902 (dwarf2_find_location_expression): Likewise.
6903 (call_site_parameter_matches): Likewise.
6904 (dwarf2_compile_expr_to_ax): Likewise.
6905 (disassemble_dwarf_expression): Likewise.
6906 (loclist_describe_location): Likewise.
6907
6908 2020-06-23 Pedro Alves <palves@redhat.com>
6909
6910 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6911 progspace-and-thread.h. Include scoped-mock-context.h instead.
6912 (register_to_value_test): Use scoped_mock_context.
6913 * regcache.c: Include "scoped-mock-context.h".
6914 (cooked_read_test): Don't error out if a target is already pushed.
6915 Use scoped_mock_context. Adjust.
6916 * scoped-mock-context.h: New file.
6917
6918 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6919
6920 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6921 initializer.
6922 (ada_language::is_string_type_p): New member function.
6923 * c-lang.c (c_language_data): Delete la_is_string_type_p
6924 initializer.
6925 (cplus_language_data): Likewise.
6926 (asm_language_data): Likewise.
6927 (minimal_language_data): Likewise.
6928 * d-lang.c (d_language_data): Likewise.
6929 * f-lang.c (f_is_string_type_p): Delete function, implementation
6930 moved to f_language::is_string_type_p.
6931 (f_language_data): Delete la_is_string_type_p initializer.
6932 (f_language::is_string_type_p): New member function,
6933 implementation from f_is_string_type_p.
6934 * go-lang.c (go_is_string_type_p): Delete function, implementation
6935 moved to go_language::is_string_type_p.
6936 (go_language_data): Delete la_is_string_type_p initializer.
6937 (go_language::is_string_type_p): New member function,
6938 implementation from go_is_string_type_p.
6939 * language.c (language_defn::is_string_type_p): Define new member
6940 function.
6941 (default_is_string_type_p): Make static, add comment copied from
6942 header file.
6943 (unknown_language_data): Delete la_is_string_type_p initializer.
6944 (unknown_language::is_string_type_p): New member function.
6945 (auto_language_data): Delete la_is_string_type_p initializer.
6946 (auto_language::is_string_type_p): New member function.
6947 * language.h (language_data): Delete la_is_string_type_p field.
6948 (language_defn::is_string_type_p): Declare new function.
6949 (default_is_string_type_p): Delete desclaration, move comment to
6950 definition.
6951 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6952 moved to m2_language::is_string_type_p.
6953 (m2_language_data): Delete la_is_string_type_p initializer.
6954 (m2_language::is_string_type_p): New member function,
6955 implementation from m2_is_string_type_p.
6956 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6957 initializer.
6958 * opencl-lang.c (opencl_language_data): Likewise.
6959 * p-lang.c (pascal_is_string_type_p): Delete function,
6960 implementation moved to pascal_language::is_string_type_p.
6961 (pascal_language_data): Delete la_is_string_type_p initializer.
6962 (pascal_language::is_string_type_p): New member function,
6963 implementation from pascal_is_string_type_p.
6964 * rust-lang.c (rust_is_string_type_p): Delete function,
6965 implementation moved to rust_language::is_string_type_p.
6966 (rust_language_data): Delete la_is_string_type_p initializer.
6967 (rust_language::is_string_type_p): New member function,
6968 implementation from rust_is_string_type_p.
6969 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6970 is_string_type_p.
6971
6972 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * ada-lang.c (ada_language_data): Delete la_print_typedef
6975 initializer.
6976 (ada_language::print_typedef): New member function.
6977 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6978 (cplus_language_data): Likewise.
6979 (asm_language_data): Likewise.
6980 (minimal_language_data): Likewise.
6981 * d-lang.c (d_language_data): Likewise.
6982 * f-lang.c (f_language_data): Likewise.
6983 (f_language::print_typedef): New member function.
6984 * go-lang.c (go_language_data): Delete la_print_typedef
6985 initializer.
6986 * language.c (language_defn::print_typedef): Define member
6987 function.
6988 (unknown_language_data): Delete la_print_typedef initializer.
6989 (unknown_language::print_typedef): New member function.
6990 (auto_language_data): Delete la_print_typedef initializer.
6991 (auto_language::print_typedef): New member function.
6992 * language.h (language_data): Delete la_print_typedef field.
6993 (language_defn::print_typedef): Declare new member function.
6994 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6995 (default_print_typedef): Delete declaration.
6996 * m2-lang.c (m2_language_data): Delete la_print_typedef
6997 initializer.
6998 (m2_language::print_typedef): New member function.
6999 * objc-lang.c (objc_language_data): Delete la_print_typedef
7000 initializer.
7001 * opencl-lang.c (opencl_language_data): Likewise.
7002 * p-lang.c (pascal_language_data): Likewise.
7003 (pascal_language::print_typedef): New member function.
7004 * rust-lang.c (rust_print_typedef): Delete function,
7005 implementation moved to rust_language::print_typedef.
7006 (rust_language): Delete la_print_typedef initializer.
7007 (rust_language::print_typedef): New member function,
7008 implementation from rust_print_typedef.
7009 * typeprint.c (default_print_typedef): Delete.
7010
7011 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7014 (ada_language::printstr): New member function.
7015 * c-lang.c (c_language_data): Delete la_printstr initializer.
7016 (cplus_language_data): Likewise.
7017 (asm_language_data): Likewise.
7018 (minimal_language_data): Likewise.
7019 * d-lang.c (d_language_data): Likewise.
7020 * f-lang.c (f_printstr): Rename to f_language::printstr.
7021 (f_language_data): Delete la_printstr initializer.
7022 (f_language::printstr): New member function, implementation from
7023 f_printstr.
7024 * go-lang.c (go_language_data): Delete la_printstr initializer.
7025 * language.c (language_defn::printstr): Define new member
7026 function.
7027 (unk_lang_printstr): Delete.
7028 (unknown_language_data): Delete la_printstr initializer.
7029 (unknown_language::printstr): New member function.
7030 (auto_language_data): Delete la_printstr initializer.
7031 (auto_language::printstr): New member function.
7032 * language.h (language_data): Delete la_printstr field.
7033 (language_defn::printstr): Declare new member function.
7034 (LA_PRINT_STRING): Update call to printstr.
7035 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7036 (m2_language_data): Delete la_printstr initializer.
7037 (m2_language::printstr): New member function, implementation from
7038 m2_printstr.
7039 * objc-lang.c (objc_language_data): Delete la_printstr
7040 initializer.
7041 * opencl-lang.c (opencl_language_data): Likewise.
7042 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7043 (pascal_language_data): Delete la_printstr initializer.
7044 (pascal_language::printstr): New member function, implementation
7045 from pascal_printstr.
7046 * p-lang.h (pascal_printstr): Delete declaration.
7047 * rust-lang.c (rust_printstr): Update header comment.
7048 (rust_language_data): Delete la_printstr initializer.
7049 (rust_language::printstr): New member function.
7050
7051 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7054 (ada_language::printchar): New member function.
7055 * c-lang.c (c_language_data): Delete la_printchar initializer.
7056 (cplus_language_data): Likewise.
7057 (asm_language_data): Likewise.
7058 (minimal_language_data): Likewise.
7059 * d-lang.c (d_language_data): Likewise.
7060 * f-lang.c (f_printchar): Rename to f_language::printchar.
7061 (f_language_data): Delete la_printchar initializer.
7062 (f_language::printchar): New member function, implementation from
7063 f_printchar.
7064 * go-lang.c (go_language_data): Delete la_printchar initializer.
7065 * language.c (unk_lang_printchar): Delete.
7066 (language_defn::printchar): Define new member function.
7067 (unknown_language_data): Delete la_printchar initializer.
7068 (unknown_language::printchar): New member function.
7069 (auto_language_data): Delete la_printchar initializer.
7070 (auto_language::printchar): New member function.
7071 * language.h (language_data): Delete la_printchar field.
7072 (language_defn::printchar): Declare new member function.
7073 (LA_PRINT_CHAR): Update call to printchar.
7074 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7075 (m2_language::printchar): New member function.
7076 * objc-lang.c (objc_language_data): Delete la_printchar
7077 initializer.
7078 * opencl-lang.c (opencl_language_data): Likewise.
7079 * p-lang.c (pascal_language_data): Delete la_printchar
7080 initializer.
7081 (pascal_language::printchar): New member function.
7082 * rust-lang.c (rust_printchar): Rename to
7083 rust_language::printchar.
7084 (rust_language_data): Delete la_printchar initializer.
7085 (rust_language::printchar): New member function, implementation
7086 from rust_printchar.
7087
7088 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7089
7090 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7091 (ada_language_data): Delete la_emitchar initializer.
7092 (ada_language::emitchar): New member function, implementation from
7093 emit_char.
7094 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7095 (cplus_language_data): Likewise.
7096 (asm_language_data): Likewise.
7097 (minimal_language_data): Likewise.
7098 * d-lang.c (d_language_data): Likewise.
7099 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7100 (f_language_data): Delete la_emitchar initializer.
7101 (f_language::emitchar): New member function, implementation from
7102 f_emit_char.
7103 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7104 * language.c (unk_lang_emit_char): Delete.
7105 (language_defn::emitchar): New member function definition.
7106 (unknown_language_data): Delete la_emitchar initializer.
7107 (unknown_language::emitchar): New member function.
7108 (auto_language_data): Delete la_emitchar initializer.
7109 (auto_language::emitchar): New member function.
7110 * language.h (language_data): Delete la_emitchar field.
7111 (language_defn::emitchar): New member field declaration.
7112 (LA_EMIT_CHAR): Update call to emitchar.
7113 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7114 (m2_language_data): Delete la_emitchar initializer.
7115 (m2_language::emitchar): New member function, implementation from
7116 m2_emit_char.
7117 * objc-lang.c (objc_language_data): Delete la_emitchar
7118 initializer.
7119 * opencl-lang.c (opencl_language_data): Likewise.
7120 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7121 (pascal_language_data): Delete la_emitchar initializer.
7122 (pascal_language::emitchar): New member function, implementation
7123 from pascal_emit_char.
7124 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7125 (rust_language_data): Delete la_emitchar initializer.
7126 (rust_language::emitchar): New member function, implementation
7127 from rust_emitchar.
7128
7129 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7130
7131 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7132 (ada_language_data): Delete la_post_parser initializer.
7133 (ada_language::post_parser): New member function.
7134 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7135 (cplus_language_data): Likewise.
7136 (asm_language_data): Likewise.
7137 (minimal_language_data): Likewise.
7138 * d-lang.c (d_language_data): Likewise.
7139 * f-lang.c (f_language_data): Likewise.
7140 * go-lang.c (go_language_data): Likewise.
7141 * language.c (unknown_language_data): Likewise.
7142 (auto_language_data): Likewise.
7143 * language.h (language_data): Delete la_post_parser field.
7144 (language_defn::post_parser): New member function.
7145 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7146 * objc-lang.c (objc_language_data): Likewise.
7147 * opencl-lang.c (opencl_language_data): Likewise.
7148 * p-lang.c (pascal_language_data): Likewise.
7149 * parse.c (parse_exp_in_context): Update call to post_parser.
7150 (null_post_parser): Delete definition.
7151 * parser-defs.h (null_post_parser): Delete declaration.
7152 * rust-lang.c (rust_language_data): Delete la_post_parser
7153 initializer.
7154
7155 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * ada-lang.c (parse): Rename to ada_language::parser.
7158 (ada_language_data): Delete la_parser initializer.
7159 (ada_language::parser): New member function, implementation from
7160 parse.
7161 * c-lang.c (c_language_data): Delete la_parser initializer.
7162 (cplus_language_data): Likewise.
7163 (asm_language_data): Likewise.
7164 (minimal_language_data): Likewise.
7165 * d-lang.c (d_language_data): Likewise.
7166 (d_language::parser): New member function.
7167 * f-lang.c (f_language_data): Delete la_parser initializer.
7168 (f_language::parser): New member function.
7169 * go-lang.c (go_language_data): Delete la_parser initializer.
7170 (go_language::parser): New member function.
7171 * language.c (unk_lang_parser): Delete.
7172 (language_defn::parser): Define new member function.
7173 (unknown_language_data): Delete la_parser initializer.
7174 (unknown_language::parser): New member function.
7175 (auto_language_data): Delete la_parser initializer.
7176 (auto_language::parser): New member function.
7177 * language.h (language_data): Delete la_parser field.
7178 (language_defn::parser): Declare new member function.
7179 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7180 (m2_language::parser): New member function.
7181 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7182 * opencl-lang.c (opencl_language_data): Likewise.
7183 * p-lang.c (pascal_language_data): Likewise.
7184 (pascal_language::parser): New member function.
7185 * parse.c (parse_exp_in_context): Update call to parser.
7186 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7187 (rust_language::parser): New member function.
7188
7189 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7190
7191 * top.c (print_gdb_configuration): Print --with-python-libdir
7192 configuration value.
7193
7194 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7195
7196 * NEWS: Mention change to the alias command.
7197
7198 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7199
7200 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7201 (alias_command_completer)
7202 (make_alias_options_def_group): New functions.
7203 (alias_opts, alias_option_defs): New struct and array.
7204 (alias_usage_error): Update usage.
7205 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7206 Use option framework.
7207 (_initialize_cli_cmds): Update alias command help.
7208 Update aliases command help.
7209 (show_user):
7210 Add NULL for new default_args lookup_cmd argument.
7211 (valid_command_p): Rename to validate_aliased_command.
7212 Add NULL for new default_args lookup_cmd argument. Verify that the
7213 aliased_command has no default args.
7214 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7215 (lookup_cmd_1, lookup_cmd): New argument default_args.
7216 (add_alias_cmd):
7217 Add NULL for new default_args lookup_cmd argument.
7218 (print_help_for_command): Show default args under the layout
7219 alias some_alias = some_aliased_cmd some_alias_default_arg.
7220 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7221 xfree default_args in destructor.
7222 * cli/cli-script.c (process_next_line, do_define_command):
7223 Add NULL for new default_args lookup_cmd argument.
7224 * command.h: Declare new default_args argument in lookup_cmd
7225 and lookup_cmd_1.
7226 * completer.c (complete_line_internal_1):
7227 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7228 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7229 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7230 Likewise.
7231 * infcmd.c (_initialize_infcmd): Likewise.
7232 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7233 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7234 * python/py-param.c (add_setshow_generic): Likewise.
7235 * remote.c (_initialize_remote): Likewise.
7236 * top.c (execute_command): Prepend default_args if command has some.
7237 (set_verbose):
7238 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7239 * tracepoint.c (validate_actionline, encode_actions_1):
7240 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7241
7242 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7243
7244 * jit.c (jit_read_descriptor): Use bool as the return type.
7245 (jit_breakpoint_re_set_internal): Use bool as the return type.
7246 Invert the return value logic; return true if the jit breakpoint
7247 has been successfully initialized.
7248 (jit_inferior_init): Update the call to
7249 jit_breakpoint_re_set_internal.
7250
7251 2020-06-22 Pedro Alves <palves@redhat.com>
7252
7253 PR gdb/25939
7254 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7255 Use the current inferior instead. Don't return
7256 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7257 wait again.
7258 * sol-thread.c (sol_thread_target::wait): Don't reference
7259 inferior_ptid.
7260 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7261 (sol_update_thread_list_callback): Use the current inferior's pid
7262 instead of inferior_ptid.
7263
7264 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7265
7266 * procfs.c: Cleanup many comments.
7267
7268 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7269 (AFTER_WATCHFLAG): Replace by value.
7270
7271 (MAIN_PROC_NAME_FORMAT): Inline ...
7272 (create_procinfo): ... here.
7273
7274 (procfs_debug_inferior): Remove SYS_exec handling.
7275 (syscall_is_exec): Likewise.
7276 (procfs_set_exec_trap): Likewise.
7277
7278 (syscall_is_lwp_exit): Inline in callers.
7279 (syscall_is_exit): Likewise.
7280 (syscall_is_exec): Likewise.
7281 (syscall_is_lwp_create): Likewise.
7282
7283 (invalidate_cache): Remove #if 0 code.
7284
7285 (make_signal_thread_runnable): Remove.
7286 (procfs_target::resume): Remove #if 0 code.
7287
7288 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7289
7290 PR gdb/25939
7291 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7292 call ...
7293 (procfs_target::create_inferior): ... here.
7294
7295 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7296
7297 * exec.c (validate_exec_file): Ensure the build-id is up to
7298 date by calling reopen_exec_file (that checks file timestamp
7299 to decide to re-read the file).
7300
7301 2020-06-18 Pedro Alves <palves@redhat.com>
7302
7303 PR gdb/25412
7304 * gdbthread.h (delete_thread, delete_thread_silent)
7305 (find_thread_ptid): Update comments.
7306 * thread.c (current_thread_): New global.
7307 (is_current_thread): Move higher, and reimplement.
7308 (inferior_thread): Reimplement.
7309 (set_thread_exited): Use bool. Add assertions.
7310 (add_thread_silent): Simplify thread-reuse handling by always
7311 calling delete_thread.
7312 (delete_thread): Remove intro comment.
7313 (find_thread_ptid): Skip exited threads.
7314 (switch_to_thread_no_regs): Write to current_thread_.
7315 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7316 INFERIOR_PTID. Clear current_thread_.
7317
7318 2020-06-18 Pedro Alves <palves@redhat.com>
7319
7320 * aix-thread.c (pd_update): Use switch_to_thread.
7321
7322 2020-06-18 Pedro Alves <palves@redhat.com>
7323
7324 * ravenscar-thread.c (ravenscar_thread_target): Update.
7325 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7326 (ravenscar_thread_target::add_active_thread): ... this. Don't
7327 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7328 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7329
7330 2020-06-18 Pedro Alves <palves@redhat.com>
7331
7332 * nat/windows-nat.c (current_windows_thread): Remove.
7333 * nat/windows-nat.h (current_windows_thread): Remove.
7334 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7335 Adjust.
7336 (display_selectors): Adjust to fetch the current
7337 windows_thread_info based on inferior_ptid.
7338 (fake_create_process): No longer write to current_windows_thread.
7339 (windows_nat_target::get_windows_debug_event):
7340 Don't set inferior_ptid or current_windows_thread.
7341 (windows_nat_target::wait): Adjust to not rely on
7342 current_windows_thread.
7343 (do_initial_windows_stuff): Now a method of windows_nat_target.
7344 Switch to the last_ptid thread.
7345 (windows_nat_target::attach): Adjust.
7346 (windows_nat_target::detach): Use switch_to_no_thread instead of
7347 writing to inferior_ptid directly.
7348 (windows_nat_target::create_inferior): Adjust.
7349
7350 2020-06-18 Pedro Alves <palves@redhat.com>
7351
7352 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7353
7354 2020-06-18 Pedro Alves <palves@redhat.com>
7355
7356 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7357 after creating it, instead of writing to inferior_ptid. Don't
7358 write to inferior_ptid.
7359
7360 2020-06-18 Pedro Alves <palves@redhat.com>
7361
7362 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7363
7364 2020-06-18 Pedro Alves <palves@redhat.com>
7365
7366 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7367 it, instead of writing to inferior_ptid.
7368
7369 2020-06-18 Pedro Alves <palves@redhat.com>
7370
7371 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7372 to inferior_ptid.
7373
7374 2020-06-18 Pedro Alves <palves@redhat.com>
7375
7376 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7377 instead of writing to inferior_ptid directly.
7378
7379 2020-06-18 Pedro Alves <palves@redhat.com>
7380
7381 * corelow.c (core_target::close): Use switch_to_no_thread instead
7382 of writing to inferior_ptid directly.
7383 (add_to_thread_list, core_target_open): Use switch_to_thread
7384 instead of writing to inferior_ptid directly.
7385
7386 2020-06-18 Pedro Alves <palves@redhat.com>
7387
7388 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7389 inferior_ptid.
7390 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7391 inferior_ptid.
7392 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7393 inferior_ptid directly.
7394 (darwin_nat_target::init_thread_list): Switch to thread, instead
7395 of writing to inferior_ptid.
7396 (darwin_nat_target::attach): Don't write to inferior_ptid.
7397 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7398
7399 2020-06-18 Pedro Alves <palves@redhat.com>
7400
7401 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7402 thread.
7403 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7404 Instead use switch_to_thread.
7405 (gnu_nat_target::detach): Use switch_to_no_thread
7406 instead of writing to inferior_ptid directly. Used passed-in
7407 inferior instead of looking up the inferior by pid.
7408
7409 2020-06-18 Pedro Alves <palves@redhat.com>
7410
7411 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7412 inferior_ptid.
7413
7414 2020-06-18 Pedro Alves <palves@redhat.com>
7415
7416 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7417 inferior_ptid.
7418 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7419 thread.
7420 (nto_procfs_target::detach): Avoid referencing
7421 inferior_ptid. Use switch_to_no_thread instead of writing to
7422 inferior_ptid directly.
7423 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7424 instead of writing to inferior_ptid directly.
7425 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7426 to thread.
7427
7428 2020-06-18 Pedro Alves <palves@redhat.com>
7429
7430 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7431 after creating it, instead of writing to inferior_ptid.
7432 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7433 to inferior_ptid directly.
7434 (gdbsim_target::wait): Don't write to inferior_ptid.
7435
7436 2020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * remote.c (remote_target::remote_notice_new_inferior): Use
7439 switch_to_thread instead of writing to inferior_ptid directly.
7440 (remote_target::add_current_inferior_and_thread): Use
7441 switch_to_no_thread instead of writing to inferior_ptid directly.
7442 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7443 and switch_to_thread instead of using set_current_inferior or
7444 writing to inferior_ptid directly.
7445
7446 2020-06-18 Pedro Alves <palves@redhat.com>
7447
7448 * tracectf.c (ctf_target_open): Switch to added thread instead of
7449 writing to inferior_ptid directly.
7450 (ctf_target::close): Use switch_to_no_thread instead of writing to
7451 inferior_ptid directly.
7452
7453 2020-06-18 Pedro Alves <palves@redhat.com>
7454
7455 * tracefile-tfile.c (tfile_target_open): Don't write to
7456 inferior_ptid directly, instead switch to added thread.
7457 (tfile_target::close): Use switch_to_no_thread instead of writing
7458 to inferior_ptid directly.
7459
7460 2020-06-18 Pedro Alves <palves@redhat.com>
7461
7462 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7463 (procfs_target::detach): Use switch_to_no_thread
7464 instead of writing to inferior_ptid directly.
7465 (do_attach): Change return type to void. Switch to the added
7466 thread.
7467 (procfs_target::create_inferior): Switch to the added thread.
7468 (procfs_do_thread_registers): Don't write to inferior_ptid.
7469
7470 2020-06-18 Pedro Alves <palves@redhat.com>
7471
7472 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7473 of writing to inferior_ptid.
7474 (scoped_restore_exited_inferior): Delete.
7475 (handle_vfork_child_exec_or_exit): Simplify using
7476 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7477 instead of writing to inferior_ptid.
7478 (THREAD_STOPPED_BY): Delete.
7479 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7480 (thread_stopped_by_hw_breakpoint): Delete.
7481 (save_waitstatus): Use
7482 scoped_restore_current_thread+switch_to_thread, and call
7483 target_stopped_by_watchpoint instead of
7484 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7485 instead of thread_stopped_by_sw_breakpoint, and
7486 target_stopped_by_hw_breakpoint instead of
7487 thread_stopped_by_hw_breakpoint.
7488 (handle_inferior_event)
7489 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7490 inferior_ptid directly, nor
7491 set_current_inferior/set_current_program_space. Use
7492 switch_to_thread / switch_to_inferior_no_thread instead.
7493
7494 2020-06-18 Pedro Alves <palves@redhat.com>
7495
7496 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7497 instead of writing to inferior_ptid.
7498
7499 2020-06-18 Pedro Alves <palves@redhat.com>
7500
7501 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7502 added thread.
7503 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7504 to the added thread.
7505 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7506 instead of writing to inferior_ptid.
7507
7508 2020-06-18 Pedro Alves <palves@redhat.com>
7509
7510 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7511 (register_to_value_test): Mock a program_space too. Heap-allocate
7512 the address space. Don't write to inferior_ptid. Use
7513 switch_to_thread instead.
7514
7515 2020-06-18 Pedro Alves <palves@redhat.com>
7516
7517 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7518 Delete.
7519 (find_signalled_thread()): New, factored out from
7520 linux_make_corefile_notes and adjusted to handle exited threads.
7521 (linux_make_corefile_notes): Adjust to use the new
7522 find_signalled_thread.
7523
7524 2020-06-18 Pedro Alves <palves@redhat.com>
7525
7526 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7527 of saving/restoring inferior_ptid.
7528
7529 2020-06-17 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7532 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7533 declare.
7534 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7535
7536 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7537
7538 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7539 of partial symtabs.
7540
7541 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * regformats/reg-arm.dat: Remove.
7544 * regformats/reg-bfin.dat: Remove.
7545 * regformats/reg-cris.dat: Remove.
7546 * regformats/reg-crisv32.dat: Remove.
7547 * regformats/reg-m32r.dat: Remove.
7548 * regformats/reg-tilegx.dat: Remove.
7549 * regformats/reg-tilegx32.dat: Remove.
7550
7551 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * features/Makefile (WHICH): Remove arm files.
7554 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7555 * regformats/arm/arm-with-neon.dat: Remove.
7556 * regformats/arm/arm-with-vfpv2.dat: Remove.
7557 * regformats/arm/arm-with-vfpv3.dat: Remove.
7558
7559 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * features/Makefile (XMLTOC): Remove rx.xml.
7562
7563 2020-06-17 Pedro Alves <palves@redhat.com>
7564
7565 * gdbthread.h (thread_control_state) <trap_expected> Update
7566 comments.
7567
7568 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7569
7570 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7571 ada_language::lookup_symbol_nonlocal.
7572 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7573 (ada_language::lookup_symbol_nonlocal): New member function,
7574 implementation from ada_lookup_symbol_nonlocal.
7575 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7576 initializer.
7577 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7578 initializer.
7579 (cplus_language::lookup_symbol_nonlocal): New member function.
7580 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7581 (minimal_language_data) Likewise.
7582 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7583 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7584 initializer.
7585 (d_language::lookup_symbol_nonlocal): New member function.
7586 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7587 initializer.
7588 (f_language::lookup_symbol_nonlocal): New member function.
7589 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7590 initializer.
7591 * language.c (unknown_language_data): Likewise.
7592 (auto_language_data): Likewise.
7593 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7594 field.
7595 (language_defn::lookup_symbol_nonlocal): New member function.
7596 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7597 initializer.
7598 * objc-lang.c (objc_language_data): Likewise.
7599 * opencl-lang.c (opencl_language_data): Likewise.
7600 * p-lang.c (pascal_language_data): Likewise.
7601 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7602 rust_language::lookup_symbol_nonlocal.
7603 (rust_language_data): Delete la_lookup_symbol_nonlocal
7604 initializer.
7605 (rust_language::lookup_symbol_nonlocal): New member function,
7606 implementation from rust_lookup_symbol_nonlocal.
7607 * symtab.c (lookup_symbol_aux): Update call to
7608 lookup_symbol_nonlocal.
7609 (basic_lookup_symbol_nonlocal): Rename to...
7610 (language_defn::lookup_symbol_nonlocal): ...this, and update
7611 header comment. Remove language_defn parameter, and replace with
7612 uses of `this'.
7613 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7614
7615 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7618 initializer.
7619 (ada_language::value_print_inner): New member function.
7620 * c-lang.c (c_language_data): Delete la_value_print_inner
7621 initializer.
7622 (cplus_language_data): Likewise.
7623 (asm_language_data): Likewise.
7624 (minimal_language_data): Likewise.
7625 * d-lang.c (d_language_data): Likewise.
7626 (d_language::value_print_inner): New member function.
7627 * f-lang.c (f_language_data): Delete la_value_print_inner
7628 initializer.
7629 (f_language::value_print_inner): New member function.
7630 * f-lang.h (f_value_print_innner): Rename to...
7631 (f_value_print_inner): ...this (note spelling of 'inner').
7632 * f-valprint.c (f_value_print_innner): Rename to...
7633 (f_value_print_inner): ...this (note spelling of 'inner').
7634 * go-lang.c (go_language_data): Delete la_value_print_inner
7635 initializer.
7636 (go_language::value_print_inner): New member function.
7637 * language.c (language_defn::value_print_inner): Define new member
7638 function.
7639 (unk_lang_value_print_inner): Delete.
7640 (unknown_language_data): Delete la_value_print_inner initializer.
7641 (unknown_language::value_print_inner): New member function.
7642 (auto_language_data): Delete la_value_print_inner initializer.
7643 (auto_language::value_print_inner): New member function.
7644 * language.h (language_data): Delete la_value_print_inner field.
7645 (language_defn::value_print_inner): Delcare new member function.
7646 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7647 initializer.
7648 (m2_language::value_print_inner): New member function.
7649 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7650 initializer.
7651 * opencl-lang.c (opencl_language_data): Likewise.
7652 * p-lang.c (pascal_language_data): Likewise.
7653 (pascal_language::value_print_inner): New member function.
7654 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7655 initializer.
7656 (rust_language::value_print_inner): New member function.
7657 * valprint.c (do_val_print): Update call to value_print_inner.
7658
7659 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * ada-lang.c (ada_language_data): Delete la_value_print
7662 initializer.
7663 (ada_language::value_print): New member function.
7664 * c-lang.c (c_language_data): Delete la_value_print initializer.
7665 (cplus_language_data): Likewise.
7666 (asm_language_data): Likewise.
7667 (minimal_language_data): Likewise.
7668 * d-lang.c (d_language_data): Likewise.
7669 * f-lang.c (f_language_data): Likewise.
7670 * go-lang.c (go_language_data): Likewise.
7671 * language.c (unk_lang_value_print): Delete.
7672 (language_defn::value_print): Define new member function.
7673 (unknown_language_data): Delete la_value_print initializer.
7674 (unknown_language::value_print): New member function.
7675 (auto_language_data): Delete la_value_print initializer.
7676 (auto_language::value_print): New member function.
7677 * language.h (language_data): Delete la_value_print field.
7678 (language_defn::value_print): Declare new member function.
7679 (LA_VALUE_PRINT): Update call to value_print.
7680 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7681 * objc-lang.c (objc_language_data): Likewise.
7682 * opencl-lang.c (opencl_language_data): Likewise.
7683 * p-lang.c (pascal_language_data): Likewise.
7684 (pascal_language::value_print): New member function.
7685 * rust-lang.c (rust_language_data): Delete la_value_print
7686 initializer.
7687
7688 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7689
7690 * ada-lang.c (ada_watch_location_expression): Rename to
7691 ada_language::watch_location_expression.
7692 (ada_language_data): Delete la_watch_location_expression
7693 initializer.
7694 (ada_language::watch_location_expression): New member function,
7695 implementation from ada_watch_location_expression.
7696 * breakpoint.c (watch_command_1): Update call to
7697 watch_location_expression.
7698 * c-lang.c (c_watch_location_expression): Rename to
7699 language_defn::watch_location_expression.
7700 (c_language_data): Delete la_watch_location_expression
7701 initializer.
7702 (cplus_language_data): Likewise.
7703 (asm_language_data): Likewise.
7704 (minimal_language_data): Likewise.
7705 * c-lang.h (c_watch_location_expression): Delete declaration.
7706 * d-lang.c (d_language_data): Delete la_watch_location_expression
7707 initializer.
7708 * f-lang.c (f_language_data): Likewise.
7709 * go-lang.c (go_language_data): Likewise.
7710 * language.c (language_defn::watch_location_expression): Member
7711 function implementation from c_watch_location_expression.
7712 (unknown_language_data): Delete la_watch_location_expression
7713 initializer.
7714 (auto_language_data): Likewise.
7715 * language.h (language_data): Delete la_watch_location_expression
7716 field.
7717 (language_defn::watch_location_expression): Declare new member
7718 function.
7719 * m2-lang.c (m2_language_data): Delete
7720 la_watch_location_expression initializer.
7721 * objc-lang.c (objc_language_data): Likewise.
7722 * opencl-lang.c (opencl_language_data): Likewise.
7723 * p-lang.c (pascal_language_data): Likewise.
7724 * rust-lang.c (rust_watch_location_expression): Rename to
7725 rust_language::watch_location_expression.
7726 (rust_language_data): Delete la_watch_location_expression
7727 initializer.
7728 (rust_language::watch_location_expression): New member function,
7729 implementation from rust_watch_location_expression.
7730
7731 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7734 ada_language::collect_symbol_completion_matches.
7735 (ada_language_data): Delete la_collect_symbol_completion_matches
7736 initializer.
7737 (ada_language::collect_symbol_completion_matches): New member
7738 function, implementation from
7739 ada_collect_symbol_completion_matches.
7740 * c-lang.c (c_language_data): Delete
7741 la_collect_symbol_completion_matches initializer.
7742 (cplus_language_data): Likewise.
7743 (asm_language_data): Likewise.
7744 (minimal_language_data): Likewise.
7745 * d-lang.c (d_language_data): Likewise.
7746 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7747 f_language::collect_symbol_completion_matches.
7748 (f_language_data): Delete la_collect_symbol_completion_matches
7749 initializer.
7750 (f_language::collect_symbol_completion_matches) New member
7751 function, implementation from f_collect_symbol_completion_matches.
7752 * go-lang.c (go_language_data): Delete
7753 la_collect_symbol_completion_matches initializer.
7754 * language.c (unknown_language_data): Likewise.
7755 (auto_language_data): Likewise.
7756 * language.h (language_data): Delete
7757 la_collect_symbol_completion_matches field.
7758 (language_defn::collect_symbol_completion_matches): New member
7759 function.
7760 * m2-lang.c (m2_language_data): Delete
7761 la_collect_symbol_completion_matches initializer.
7762 * objc-lang.c (objc_language_data): Likewise.
7763 * opencl-lang.c (opencl_language_data): Likewise.
7764 * p-lang.c (pascal_language_data): Likewise.
7765 * rust-lang.c (rust_language_data): Likewise.
7766 * symtab.c (default_collect_symbol_completion_matches): Delete.
7767 (collect_symbol_completion_matches): Update call to
7768 collect_symbol_completion_matches.
7769 (collect_symbol_completion_matches_type): Likewise.
7770 * symtab.h (default_collect_symbol_completion_matches): Delete
7771 declaration.
7772
7773 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7776 (ada_language_data): Delete la_word_break_characters initializer.
7777 (ada_language::word_break_characters): New member function.
7778 * c-lang.c (c_language_data): Delete la_word_break_characters
7779 initializer.
7780 (cplus_language_data): Likewise.
7781 (asm_language_data): Likewise.
7782 (minimal_language_data): Likewise.
7783 * completer.c: Update global comment.
7784 (advance_to_expression_complete_word_point): Update call to
7785 word_break_characters.
7786 (complete_files_symbols): Likewise.
7787 (complete_line_internal_1): Likewise.
7788 (default_completer_handle_brkchars): Likewise.
7789 (skip_quoted_chars): Likewise.
7790 * d-lang.c (d_language_data): Delete la_word_break_characters
7791 initializer.
7792 * f-lang.c (f_word_break_characters): Delete.
7793 (f_language_data): Delete la_word_break_characters initializer.
7794 (f_language::word_break_characters): New member function.
7795 * go-lang.c (go_language_data): Delete la_word_break_characters
7796 initializer.
7797 * language.c (unknown_language_data): Likewise.
7798 (auto_language_data): Likewise.
7799 * language.h (default_word_break_characters): Move declaration to
7800 earlier in the file.
7801 (language_data): Delete la_word_break_characters field.
7802 (language_defn::word_break_characters): New member function.
7803 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7804 initializer.
7805 * objc-lang.c (objc_language_data): Likewise.
7806 * opencl-lang.c (opencl_language_data): Likewise.
7807 * p-lang.c (pascal_language_data): Likewise.
7808 * rust-lang.c (rust_language_data): Likewise.
7809
7810 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7813 (ada_language_data): Delete la_get_symbol_name_matcher
7814 initializer.
7815 (language_defn::get_symbol_name_matcher_inner): New member
7816 function.
7817 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7818 initializer.
7819 (cplus_language_data): Likewise.
7820 (cplus_language::get_symbol_name_matcher_inner): New member
7821 function.
7822 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7823 (minimal_language_data): Likewise.
7824 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7825 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7826 initializer.
7827 * dictionary.c (iter_match_first_hashed): Update call to
7828 get_symbol_name_matcher.
7829 (iter_match_next_hashed): Likewise.
7830 (iter_match_next_linear): Likewise.
7831 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7832 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7833 initializer.
7834 (f_language::get_symbol_name_matcher_inner): New member function.
7835 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7836 initializer.
7837 * language.c (default_symbol_name_matcher): Update header comment,
7838 make static.
7839 (language_defn::get_symbol_name_matcher): New definition.
7840 (language_defn::get_symbol_name_matcher_inner): Likewise.
7841 (get_symbol_name_matcher): Delete.
7842 (unknown_language_data): Delete la_get_symbol_name_matcher
7843 initializer.
7844 (auto_language_data): Likewise.
7845 * language.h (language_data): Delete la_get_symbol_name_matcher
7846 field.
7847 (language_defn::get_symbol_name_matcher): New member function.
7848 (language_defn::get_symbol_name_matcher_inner): Likewise.
7849 (default_symbol_name_matcher): Delete declaration.
7850 * linespec.c (find_methods): Update call to
7851 get_symbol_name_matcher.
7852 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7853 initializer.
7854 * minsyms.c (lookup_minimal_symbol): Update call to
7855 get_symbol_name_matcher.
7856 (iterate_over_minimal_symbols): Likewise.
7857 * objc-lang.c (objc_language_data): Delete
7858 la_get_symbol_name_matcher initializer.
7859 * opencl-lang.c (opencl_language_data): Likewise.
7860 * p-lang.c (pascal_language_data): Likewise.
7861 * psymtab.c (psymbol_name_matches): Update call to
7862 get_symbol_name_matcher.
7863 * rust-lang.c (rust_language_data): Delete
7864 la_get_symbol_name_matcher initializer.
7865 * symtab.c (symbol_matches_search_name): Update call to
7866 get_symbol_name_matcher.
7867 (compare_symbol_name): Likewise.
7868
7869 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * ada-lang.c (ada_language_data): Delete la_compute_program
7872 initializer.
7873 * c-lang.c (c_language_data): Likewise.
7874 (c_language::compute_program): New member function.
7875 (cplus_language_data): Delete la_compute_program initializer.
7876 (cplus_language::compute_program): New member function.
7877 (asm_language_data): Delete la_compute_program initializer.
7878 (minimal_language_data): Likewise.
7879 * c-lang.h (c_compute_program): Update comment.
7880 (cplus_compute_program): Likewise.
7881 * compile/compile-c-support.c (c_compute_program): Likewise.
7882 (cplus_compute_program): Likewise.
7883 * compile/compile.c (compile_to_object): Update call to
7884 la_compute_program.
7885 * d-lang.c (d_language_data): Delete la_compute_program
7886 initializer.
7887 * f-lang.c (f_language_data): Likewise.
7888 * go-lang.c (go_language_data): Likewise.
7889 * language.c (unknown_language_data): Likewise.
7890 (auto_language_data): Likewise.
7891 * language.h (language_data): Delete la_compute_program field.
7892 (language_defn::compute_program): New member function.
7893 * m2-lang.c (m2_language_data): Delete la_compute_program
7894 initializer.
7895 * objc-lang.c (objc_language_data): Likewise.
7896 * opencl-lang.c (opencl_language_data): Likewise.
7897 * p-lang.c (pascal_language_data): Likewise.
7898 * rust-lang.c (rust_language_data): Likewise.
7899
7900 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7901
7902 * ada-lang.c (ada_language_data) Delete
7903 la_class_name_from_physname initializer.
7904 * c-lang.c (c_language_data): Likewise.
7905 (cplus_language_data): Likewise.
7906 (cplus_language::class_name_from_physname): New member function.
7907 (asm_language_data): Delete la_class_name_from_physname
7908 initializer.
7909 (minimal_language_data): Likewise.
7910 * d-lang.c (d_language_data): Likewise.
7911 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7912 method on language_defn class.
7913 (guess_full_die_structure_name): Likewise.
7914 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7915 initializer.
7916 * go-lang.c (go_language_data): Likewise.
7917 * language.c (language_class_name_from_physname): Delete.
7918 (unk_lang_class_name): Delete.
7919 (unknown_language_data): Delete la_class_name_from_physname
7920 initializer.
7921 (auto_language_data): Likewise.
7922 * language.h (language_data): Delete la_class_name_from_physname
7923 field.
7924 (language_defn::class_name_from_physname): New function.
7925 (language_class_name_from_physname): Delete declaration.
7926 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7927 initializer.
7928 * objc-lang.c (objc_language_data): Likewise.
7929 * opencl-lang.c (opencl_language_data): Likewise.
7930 * p-lang.c (pascal_language_data): Likewise.
7931 * rust-lang.c (rust_language_data): Likewise.
7932
7933 2020-06-16 Tom Tromey <tom@tromey.com>
7934
7935 * tui/tui-data.h (STATUS_NAME): New macro.
7936 * tui/tui-layout.c (tui_remove_some_windows)
7937 (initialize_known_windows, tui_register_window)
7938 (tui_layout_split::remove_windows, initialize_layouts)
7939 (tui_new_layout_command): Don't use hard-coded window names.
7940
7941 2020-06-16 Tom Tromey <tom@tromey.com>
7942
7943 PR tui/25348:
7944 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7945 tui_initialize_readline. Only run once. Call rl_initialize.
7946 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7947 tui_initialize_readline.
7948 * tui/tui-io.c (tui_setup_io): Call
7949 tui_ensure_readline_initialized.
7950 * tui/tui-interp.c (tui_interp::init): Update.
7951
7952 2020-06-16 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7955 Also preserve the status window.
7956
7957 2020-06-16 Tom Tromey <tom@tromey.com>
7958
7959 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7960 where m_window==nullptr.
7961
7962 2020-06-15 Tom Tromey <tromey@adacore.com>
7963
7964 * windows-nat.c (windows_nat::handle_output_debug_string):
7965 Update.
7966 (windows_nat::handle_ms_vc_exception): Update.
7967 * target.h (target_read_string): Change API.
7968 * target.c (target_read_string): Change API.
7969 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7970 Update.
7971 * solib-frv.c (frv_current_sos): Update.
7972 * solib-dsbt.c (dsbt_current_sos): Update.
7973 * solib-darwin.c (darwin_current_sos): Update.
7974 * linux-thread-db.c (inferior_has_bug): Update.
7975 * expprint.c (print_subexp_standard): Update.
7976 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7977 (ada_exception_message_1): Update.
7978
7979 2020-06-15 Tom Tromey <tromey@adacore.com>
7980
7981 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7982
7983 2020-06-15 Tom Tromey <tromey@adacore.com>
7984
7985 * valprint.c (read_string): Update comment.
7986 * target.c (MIN): Remove.
7987 (target_read_string): Rewrite.
7988
7989 2020-06-15 Tom Tromey <tromey@adacore.com>
7990
7991 * corefile.c (read_memory_string): Remove.
7992 * ada-valprint.c (ada_value_print_ptr): Update.
7993 * ada-lang.h (ada_tag_name): Change return type.
7994 * ada-lang.c (type_from_tag): Update.
7995 (ada_tag_name_from_tsd): Change return type. Use
7996 target_read_string.
7997 (ada_tag_name): Likewise.
7998 * gdbcore.h (read_memory_string): Don't declare.
7999
8000 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8001
8002 * symtab.c (rbreak_command): Ignore Windows drive colon.
8003
8004 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * NEWS: Mention removed GDBserver host support.
8007
8008 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8009
8010 * features/riscv/rebuild-csr-xml.sh: Updated.
8011
8012 2020-06-11 Tom Tromey <tom@tromey.com>
8013
8014 PR gdb/18318:
8015 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8016
8017 2020-06-09 Jonny Grant <jg@jguk.org>
8018 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8019
8020 * main.c (captured_main_1): Don't print new line after help.
8021 (print_gdb_help): add mailing list and IRC channel information
8022 to --help. Add new lines between items in the footer. Remove
8023 quotes around bug url.
8024
8025 2020-06-11 Keith Seitz <keiths@redhat.com>
8026
8027 PR gdb/21356
8028 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8029 Resolve typedefs for type length calculations.
8030
8031 2020-06-10 Tom de Vries <tdevries@suse.de>
8032
8033 PR ada/24713
8034 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8035 (write_psymbols): Enable .gdb_index for ada.
8036 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8037 ada.
8038
8039 2020-06-10 Tom de Vries <tdevries@suse.de>
8040
8041 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8042 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8043 namei" instead of "const char *name" argument.
8044 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8045 dw2_symtab_iter_init.
8046
8047 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8050 to use type::field and field::type instead.
8051
8052 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8055 to use field::type instead.
8056
8057 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * gdbtypes.h (struct field) <type, set_type>: New methods.
8060 Rename `type` field to...
8061 <m_type>: ... this. Change references throughout to use type or
8062 set_type methods.
8063 (FIELD_TYPE): Use field::type. Change call sites that modify
8064 the field's type to use field::set_type instead.
8065
8066 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8069 to use type::index_type instead.
8070
8071 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8074 methods.
8075 (TYPE_INDEX_TYPE): Use type::index_type.
8076 * gdbtypes.c (create_array_type_with_stride): Likewise.
8077
8078 2020-06-07 Tom Tromey <tom@tromey.com>
8079
8080 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8081 parameter.
8082 (generic_value_print): Update.
8083
8084 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8085
8086 Revert commit 982a38f60b0.
8087 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8088
8089 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8090
8091 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8092 avoid use after free.
8093
8094 2020-06-05 Tom de Vries <tdevries@suse.de>
8095
8096 * NEWS: Fix typos.
8097
8098 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8101 the per_bfd object.
8102 (dwarf2_read_debug_names): Likewise.
8103 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8104 object when re-using a per_bfd object with an index.
8105
8106 2020-06-03 Tom de Vries <tdevries@suse.de>
8107
8108 PR symtab/26046
8109 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8110 children for C++.
8111 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8112 DW_TAG_subprogram.
8113
8114 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8115
8116 * ada-lang.c (ada_language_data): Delete skip_trampoline
8117 initializer.
8118 * c-lang.c (c_language_data): Likewise.
8119 (cplus_language_data): Likewise.
8120 (cplus_language::skip_trampoline): New member function.
8121 (asm_language_data): Delete skip_trampoline initializer.
8122 (minimal_language_data): Likewise.
8123 * d-lang.c (d_language_data): Likewise.
8124 * f-lang.c (f_language_data): Likewise.
8125 * go-lang.c (go_language_data): Likewise.
8126 * language.c (unk_lang_trampoline): Delete function.
8127 (skip_language_trampoline): Update.
8128 (unknown_language_data): Delete skip_trampoline initializer.
8129 (auto_language_data): Likewise.
8130 * language.h (language_data): Delete skip_trampoline field.
8131 (language_defn::skip_trampoline): New function.
8132 * m2-lang.c (m2_language_data): Delete skip_trampoline
8133 initializer.
8134 * objc-lang.c (objc_skip_trampoline): Delete function, move
8135 implementation to objc_language::skip_trampoline.
8136 (objc_language_data): Delete skip_trampoline initializer.
8137 (objc_language::skip_trampoline): New member function with
8138 implementation from objc_skip_trampoline.
8139 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8140 initializer.
8141 * p-lang.c (pascal_language_data): Likewise.
8142 * rust-lang.c (rust_language_data): Likewise.
8143
8144 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8147 (ada_language::demangle): New member function.
8148 * c-lang.c (c_language_data): Delete la_demangle initializer.
8149 (cplus_language_data): Delete la_demangle initializer.
8150 (cplus_language::demangle): New member function.
8151 (asm_language_data): Delete la_demangle initializer.
8152 (minimal_language_data): Delete la_demangle initializer.
8153 * d-lang.c (d_language_data): Delete la_demangle initializer.
8154 (d_language::demangle): New member function.
8155 * f-lang.c (f_language_data): Delete la_demangle initializer.
8156 (f_language::demangle): New member function.
8157 * go-lang.c (go_language_data): Delete la_demangle initializer.
8158 (go_language::demangle): New member function.
8159 * language.c (language_demangle): Update.
8160 (unk_lang_demangle): Delete.
8161 (unknown_language_data): Delete la_demangle initializer.
8162 (unknown_language::demangle): New member function.
8163 (auto_language_data): Delete la_demangle initializer.
8164 (auto_language::demangle): New member function.
8165 * language.h (language_data): Delete la_demangle field.
8166 (language_defn::demangle): New function.
8167 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8168 * objc-lang.c (objc_language_data): Delete la_demangle
8169 initializer.
8170 (objc_language::demangle): New member function.
8171 * opencl-lang.c (opencl_language_data): Delete la_demangle
8172 initializer.
8173 * p-lang.c (pascal_language_data): Likewise.
8174 * rust-lang.c (rust_language_data): Likewise.
8175 (rust_language::demangle): New member function.
8176
8177 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * ada-lang.c (ada_language_data): Delete la_print_type
8180 initializer.
8181 (ada_language::print_type): New member function.
8182 * c-lang.c (c_language_data): Delete la_print_type initializer.
8183 (c_language::print_type): New member function.
8184 (cplus_language_data): Delete la_print_type initializer.
8185 (cplus_language::print_type): New member function.
8186 (asm_language_data): Delete la_print_type initializer.
8187 (asm_language::print_type): New member function.
8188 (minimal_language_data): Delete la_print_type initializer.
8189 (minimal_language::print_type): New member function.
8190 * d-lang.c (d_language_data): Delete la_print_type initializer.
8191 (d_language::print_type): New member function.
8192 * f-lang.c (f_language_data): Delete la_print_type initializer.
8193 (f_language::print_type): New member function.
8194 * go-lang.c (go_language_data): Delete la_print_type initializer.
8195 (go_language::print_type): New member function.
8196 * language.c (unk_lang_print_type): Delete.
8197 (unknown_language_data): Delete la_print_type initializer.
8198 (unknown_language::print_type): New member function.
8199 (auto_language_data): Delete la_print_type initializer.
8200 (auto_language::print_type): New member function.
8201 * language.h (language_data): Delete la_print_type field.
8202 (language_defn::print_type): New function.
8203 (LA_PRINT_TYPE): Update.
8204 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8205 (m2_language::print_type): New member function.
8206 * objc-lang.c (objc_language_data): Delete la_print_type
8207 initializer.
8208 (objc_language::print_type): New member function.
8209 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8210 to opencl_language::print_type.
8211 (opencl_language_data): Delete la_print_type initializer.
8212 (opencl_language::print_type): New member function, implementation
8213 from opencl_print_type.
8214 * p-lang.c (pascal_language_data): Delete la_print_type
8215 initializer.
8216 (pascal_language::print_type): New member function.
8217 * rust-lang.c (rust_print_type): Delete, implementation moved to
8218 rust_language::print_type.
8219 (rust_language_data): Delete la_print_type initializer.
8220 (rust_language::print_type): New member function, implementation
8221 from rust_print_type.
8222
8223 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8224
8225 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8226 implementation moves to...
8227 (ada_language::sniff_from_mangled_name): ...here. Update return
8228 type.
8229 (ada_language_data): Delete la_sniff_from_mangled_name
8230 initializer.
8231 * c-lang.c (c_language_data): Likewise.
8232 (cplus_language_data): Likewise.
8233 (cplus_language::sniff_from_mangled_name): New member function,
8234 implementation taken from gdb_sniff_from_mangled_name.
8235 (asm_language_data): Delete la_sniff_from_mangled_name
8236 initializer.
8237 (minimal_language_data): Likewise.
8238 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8239 implementation moves to cplus_language::sniff_from_mangled_name.
8240 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8241 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8242 moves to...
8243 (d_language::sniff_from_mangled_name): ...here.
8244 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8245 * f-lang.c (f_language_data): Likewise.
8246 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8247 moves to...
8248 (go_language::sniff_from_mangled_name): ...here.
8249 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8250 * language.c (language_sniff_from_mangled_name): Delete.
8251 (unknown_language_data): Delete la_sniff_from_mangled_name
8252 initializer.
8253 (auto_language_data): Likewise.
8254 * language.h (language_data): Delete la_sniff_from_mangled_name
8255 field.
8256 (language_defn::sniff_from_mangled_name): New function.
8257 (language_sniff_from_mangled_name): Delete declaration.
8258 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8259 field.
8260 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8261 implementation moves to...
8262 (objc_language::sniff_from_mangled_name): ...here.
8263 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8264 * opencl-lang.c (opencl_language_data): Likewise.
8265 * p-lang.c (pascal_language_data): Likewise.
8266 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8267 implementation moves to...
8268 (rust_language::sniff_from_mangled_name): ...here.
8269 (rust_language_data): Delete la_sniff_from_mangled_name
8270 initializer.
8271 * symtab.c (symbol_find_demangled_name): Call
8272 sniff_from_mangled_name member function.
8273
8274 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8275
8276 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8277 initializer.
8278 * c-lang.c (c_language_data): Likewise.
8279 (cplus_language_data): Likewise.
8280 (cplus_language::search_name_hash): New member function.
8281 (asm_language_data): Delete la_search_name_hash initializer.
8282 (minimal_language_data): Likewise.
8283 * d-lang.c (d_language_data): Likewise.
8284 * dictionary.c (default_search_name_hash): Rename to...
8285 (language_defn::search_name_hash): ...this.
8286 * f-lang.c (f_language_data): Likewise.
8287 (f_language::search_name_hash): New member function.
8288 * go-lang.c (go_language_data): Delete la_search_name_hash
8289 initializer.
8290 * language.c (unknown_language_data): Likewise.
8291 (auto_language_data): Likewise.
8292 * language.h (struct language_data): Delete la_search_name_hash
8293 field.
8294 (language_defn::search_name_hash): Declare new member function.
8295 (default_search_name_hash): Delete declaration.
8296 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8297 initializer.
8298 * objc-lang.c (objc_language_data): Likewise.
8299 * opencl-lang.c (opencl_language_data): Likewise.
8300 * p-lang.c (pascal_language_data): Likewise.
8301 * rust-lang.c (rust_language_data): Likewise.
8302 * symtab.c (search_name_hash): Update call.
8303
8304 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8305
8306 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8307 initializer.
8308 * c-lang.c (class compile_instance): Declare.
8309 (c_language_data): Delete la_get_compile_instance initializer.
8310 (c_language::get_compile_instance): New member function.
8311 (cplus_language_data): Delete la_get_compile_instance initializer.
8312 (cplus_language::get_compile_instance): New member function.
8313 (asm_language_data): Delete la_get_compile_instance initializer.
8314 (minimal_language_data): Likewise.
8315 * c-lang.h (c_get_compile_context): Update comment.
8316 (cplus_get_compile_context): Update comment.
8317 * compile/compile.c (compile_to_object): Update calls, don't rely
8318 on function pointer being NULL.
8319 * d-lang.c (d_language_data): Delete la_get_compile_instance
8320 initializer.
8321 * f-lang.c (f_language_data): Likewise.
8322 * go-lang.c (go_language_data): Likewise.
8323 * language.c (unknown_language_data): Likewise.
8324 (auto_language_data): Likewise.
8325 * language.h (language_data): Delete la_get_compile_instance field.
8326 (language_defn::get_compile_instance): New member function.
8327 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8328 initializer.
8329 * objc-lang.c (objc_language_data): Likewise.
8330 * opencl-lang.c (opencl_language_data): Likewise.
8331 * p-lang.c (pascal_language_data): Likewise.
8332 * rust-lang.c (rust_language_data): Likewise.
8333
8334 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8335
8336 * ada-lang.c (ada_add_all_symbols): Update comment.
8337 (ada_iterate_over_symbols): Delete, move implementation to...
8338 (ada_language::iterate_over_symbols): ...here, a new member
8339 function, rewrite to use range based for loop.
8340 (ada_language_data): Delete la_iterate_over_symbols initializer.
8341 * c-lang.c (c_language_data): Likewise.
8342 (cplus_language_data): Likewise.
8343 (asm_language_data): Likewise.
8344 (minimal_language_data): Likewise.
8345 * d-lang.c (d_language_data): Likewise.
8346 * f-lang.c (f_language_data): Likewise.
8347 * go-lang.c (go_language_data): Likewise.
8348 * language.c (unknown_language_data): Likewise.
8349 (auto_language_data): Likewise.
8350 * language.h (language_data): Delete la_iterate_over_symbols field.
8351 (language_defn::iterate_over_symbols): New member function.
8352 (LA_ITERATE_OVER_SYMBOLS): Update.
8353 * linespec.c (iterate_over_all_matching_symtabs): Update.
8354 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8355 initializer.
8356 * objc-lang.c (objc_language_data): Likewise.
8357 * opencl-lang.c (opencl_language_data): Likewise.
8358 * p-lang.c (pascal_language_data): Likewise.
8359 * rust-lang.c (rust_language_data): Likewise.
8360
8361 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8362
8363 * ada-lang.c (ada_language_data): Delete
8364 la_lookup_transparent_type initializer.
8365 * c-lang.c (c_language_data): Likewise.
8366 (cplus_language_data): Likewise.
8367 (cplus_language::lookup_transparent_type): New member function.
8368 (asm_language_data): Delete la_lookup_transparent_type
8369 initializer.
8370 (minimal_language_data): Likewise.
8371 * d-lang.c (d_language_data): Likewise.
8372 * f-lang.c (f_language_data): Likewise.
8373 * go-lang.c (go_language_data): Likewise.
8374 * language.c (unknown_language_data): Likewise.
8375 (auto_language_data): Likewise.
8376 * language.h (struct language_data): Delete
8377 la_lookup_transparent_type field.
8378 (language_defn::lookup_transparent_type): New member function.
8379 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8380 initializer.
8381 * objc-lang.c (objc_language_data): Likewise.
8382 * opencl-lang.c (opencl_language_data): Likewise.
8383 * p-lang.c (pascal_language_data): Likewise.
8384 * rust-lang.c (rust_language_data): Likewise.
8385 * symtab.c (symbol_matches_domain): Update call.
8386
8387 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8388
8389 * ada-lang.c (ada_language_arch_info): Delete function, move
8390 implementation to...
8391 (ada_language::language_arch_info): ...here, a new member
8392 function.
8393 (ada_language_data): Delete la_language_arch_info.
8394 * c-lang.c (c_language_data): Likewise.
8395 (c_language::language_arch_info): New member function.
8396 (cplus_language_arch_info): Delete function, move
8397 implementation to...
8398 (cplus_language::language_arch_info): ...here, a new member
8399 function.
8400 (cplus_language_data): Delete la_language_arch_info.
8401 (asm_language_data): Likewise.
8402 (asm_language::language_arch_info): New member function.
8403 (minimal_language_data): Delete la_language_arch_info.
8404 (minimal_language::language_arch_info): New member function.
8405 * d-lang.c (d_language_arch_info): Delete function, move
8406 implementation to...
8407 (d_language::language_arch_info): ...here, a new member
8408 function.
8409 (d_language_data): Delete la_language_arch_info.
8410 * f-lang.c (f_language_arch_info): Delete function, move
8411 implementation to...
8412 (f_language::language_arch_info): ...here, a new member
8413 function.
8414 (f_language_data): Delete la_language_arch_info.
8415 * go-lang.c (go_language_arch_info): Delete function, move
8416 implementation to...
8417 (go_language::language_arch_info): ...here, a new member
8418 function.
8419 (go_language_data): Delete la_language_arch_info.
8420 * language.c (unknown_language_data): Likewise.
8421 (unknown_language::language_arch_info): New member function.
8422 (auto_language_data): Delete la_language_arch_info.
8423 (auto_language::language_arch_info): New member function.
8424 (language_gdbarch_post_init): Update call to
8425 la_language_arch_info.
8426 * language.h (language_data): Delete la_language_arch_info
8427 function pointer.
8428 (language_defn::language_arch_info): New function.
8429 * m2-lang.c (m2_language_arch_info): Delete function, move
8430 implementation to...
8431 (m2_language::language_arch_info): ...here, a new member
8432 function.
8433 (m2_language_data): Delete la_language_arch_info.
8434 * objc-lang.c (objc_language_arch_info): Delete function, move
8435 implementation to...
8436 (objc_language::language_arch_info): ...here, a new member
8437 function.
8438 (objc_language_data): Delete la_language_arch_info.
8439 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8440 implementation to...
8441 (opencl_language::language_arch_info): ...here, a new member
8442 function.
8443 (opencl_language_data): Delete la_language_arch_info.
8444 * p-lang.c (pascal_language_arch_info): Delete function, move
8445 implementation to...
8446 (pascal_language::language_arch_info): ...here, a new member
8447 function.
8448 (pascal_language_data): Delete la_language_arch_info.
8449 * rust-lang.c (rust_language_arch_info): Delete function, move
8450 implementation to...
8451 (rust_language::language_arch_info): ...here, a new member
8452 function.
8453 (rust_language_data): Delete la_language_arch_info.
8454
8455 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8456
8457 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8458 initializer.
8459 * c-lang.c (c_language_data): Likewise.
8460 (cplus_language_data): Likewise.
8461 (cplus_language::pass_by_reference_info): New method.
8462 (asm_language_data): Delete la_pass_by_reference initializer.
8463 (minimal_language_data): Likewise.
8464 * cp-abi.c (cp_pass_by_reference): Remove use of
8465 default_pass_by_reference.
8466 * d-lang.c (d_language_data): Likewise.
8467 * f-lang.c (f_language_data): Likewise.
8468 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8469 default_pass_by_reference.
8470 * go-lang.c (go_language_data): Likewise.
8471 * language.c (language_pass_by_reference): Update.
8472 (default_pass_by_reference): Delete.
8473 (unknown_language_data): Delete la_pass_by_reference
8474 initializer.
8475 (auto_language_data): Likewise.
8476 * language.h (struct language_data): Delete la_pass_by_reference
8477 field.
8478 (language_defn::pass_by_reference_info): New member function.
8479 (default_pass_by_reference): Delete declaration.
8480 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8481 initializer.
8482 * objc-lang.c (objc_language_data): Likewise.
8483 * opencl-lang.c (opencl_language_data): Likewise.
8484 * p-lang.c (pascal_language_data): Likewise.
8485 * rust-lang.c (rust_language_data): Likewise.
8486
8487 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8488
8489 * ada-lang.c (ada_read_var_value): Delete function, move
8490 implementation to...
8491 (ada_language::read_var_value): ...here.
8492 (ada_language_data): Delete la_read_var_value initializer.
8493 * c-lang.c (c_language_data): Likewise.
8494 (cplus_language_data): Likewise.
8495 (minimal_language_data): Likewise.
8496 * d-lang.c (d_language_data): Likewise.
8497 * f-lang.c (f_language_data): Likewise.
8498 * findvar.c (default_read_var_value): Rename to...
8499 (language_defn::read_var_value): ...this.
8500 * findvar.c (read_var_value): Update header comment, and change to
8501 call member function instead of function pointer.
8502 * go-lang.c (go_language_data): Likewise.
8503 * language.c (unknown_language_data): Delete la_read_var_value
8504 initializer.
8505 (auto_language_data): Likewise.
8506 * language.h (struct language_data): Delete la_read_var_value
8507 field.
8508 (language_defn::read_var_value): New member function.
8509 (default_read_var_value): Delete declaration.
8510 * m2-lang.c (m2_language_data): Delete la_read_var_value
8511 initializer.
8512 * objc-lang.c (objc_language_data): Likewise.
8513 * opencl-lang.c (opencl_language_data): Likewise.
8514 * p-lang.c (pascal_language_data): Likewise.
8515 * rust-lang.c (rust_language_data): Likewise.
8516 * value.h (default_read_var_value): Delete declaration.
8517
8518 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8519
8520 * ada-lang.c (ada_print_array_index): Delete function, move
8521 implementation to...
8522 (ada_language::print_array_index): ...here.
8523 (ada_language_data): Delete la_print_array_index initializer.
8524 * c-lang.c (c_language_data): Likewise.
8525 (cplus_language_data): Likewise.
8526 (minimal_language_data): Likewise.
8527 * d-lang.c (d_language_data): Likewise.
8528 * f-lang.c (f_language_data): Likewise.
8529 * go-lang.c (go_language_data): Likewise.
8530 * language.c (default_print_array_index): Delete function, move
8531 implementation to...
8532 (language_defn::print_array_index): ...here.
8533 (unknown_language_data): Delete la_print_array_index initializer.
8534 (auto_language_data): Likewise.
8535 * language.h (struct language_data): Delete la_print_array_index
8536 field.
8537 (language_defn::print_array_index): New member function.
8538 (LA_PRINT_ARRAY_INDEX): Update.
8539 (default_print_array_index): Delete declaration.
8540 * m2-lang.c (m2_language_data): Delete la_print_array_index
8541 initializer.
8542 * objc-lang.c (objc_language_data): Likewise.
8543 * opencl-lang.c (opencl_language_data): Likewise.
8544 * p-lang.c (pascal_language_data): Likewise.
8545 * rust-lang.c (rust_language_data): Likewise.
8546
8547 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8548
8549 * gdb/ada-lang.c (ada_language_defn): Convert to...
8550 (ada_language_data): ...this.
8551 (class ada_language): New class.
8552 (ada_language_defn): New static global.
8553 * gdb/c-lang.c (c_language_defn): Convert to...
8554 (c_language_data): ...this.
8555 (class c_language): New class.
8556 (c_language_defn): New static global.
8557 (cplus_language_defn): Convert to...
8558 (cplus_language_data): ...this.
8559 (class cplus_language): New class.
8560 (cplus_language_defn): New static global.
8561 (asm_language_defn): Convert to...
8562 (asm_language_data): ...this.
8563 (class asm_language): New class.
8564 (asm_language_defn): New static global.
8565 (minimal_language_defn): Convert to...
8566 (minimal_language_data): ...this.
8567 (class minimal_language): New class.
8568 (minimal_language_defn): New static global.
8569 * gdb/d-lang.c (d_language_defn): Convert to...
8570 (d_language_data): ...this.
8571 (class d_language): New class.
8572 (d_language_defn): New static global.
8573 * gdb/f-lang.c (f_language_defn): Convert to...
8574 (f_language_data): ...this.
8575 (class f_language): New class.
8576 (f_language_defn): New static global.
8577 * gdb/go-lang.c (go_language_defn): Convert to...
8578 (go_language_data): ...this.
8579 (class go_language): New class.
8580 (go_language_defn): New static global.
8581 * gdb/language.c (unknown_language_defn): Remove declaration.
8582 (current_language): Initialize to nullptr, real initialization is
8583 moved to _initialize_language.
8584 (languages): Delete global.
8585 (language_defn::languages): Define.
8586 (set_language_command): Use language_defn::languages.
8587 (set_language): Likewise.
8588 (range_error): Likewise.
8589 (language_enum): Likewise.
8590 (language_def): Likewise.
8591 (add_set_language_command): Use language_def::languages for the
8592 language list, and language_def to lookup language pointers.
8593 (skip_language_trampoline): Use language_defn::languages.
8594 (unknown_language_defn): Convert to...
8595 (unknown_language_data): ...this.
8596 (class unknown_language): New class.
8597 (unknown_language_defn): New static global.
8598 (auto_language_defn): Convert to...
8599 (auto_language_data): ...this.
8600 (class auto_language): New class.
8601 (auto_language_defn): New static global.
8602 (language_gdbarch_post_init): Use language_defn::languages.
8603 (_initialize_language): Initialize current_language.
8604 * gdb/language.h (struct language_defn): Rename to...
8605 (struct language_data): ...this.
8606 (struct language_defn): New.
8607 (auto_language_defn): Delete.
8608 (unknown_language_defn): Delete.
8609 (minimal_language_defn): Delete.
8610 (ada_language_defn): Delete.
8611 (asm_language_defn): Delete.
8612 (c_language_defn): Delete.
8613 (cplus_language_defn): Delete.
8614 (d_language_defn): Delete.
8615 (f_language_defn): Delete.
8616 (go_language_defn): Delete.
8617 (m2_language_defn): Delete.
8618 (objc_language_defn): Delete.
8619 (opencl_language_defn): Delete.
8620 (pascal_language_defn): Delete.
8621 (rust_language_defn): Delete.
8622 * gdb/m2-lang.c (m2_language_defn): Convert to...
8623 (m2_language_data): ...this.
8624 (class m2_language): New class.
8625 (m2_language_defn): New static global.
8626 * gdb/objc-lang.c (objc_language_defn): Convert to...
8627 (objc_language_data): ...this.
8628 (class objc_language): New class.
8629 (objc_language_defn): New static global.
8630 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8631 (opencl_language_data): ...this.
8632 (class opencl_language): New class.
8633 (opencl_language_defn): New static global.
8634 * gdb/p-lang.c (pascal_language_defn): Convert to...
8635 (pascal_language_data): ...this.
8636 (class pascal_language): New class.
8637 (pascal_language_defn): New static global.
8638 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8639 language pointer, update comment format.
8640 * gdb/rust-lang.c (rust_language_defn): Convert to...
8641 (rust_language_data): ...this.
8642 (class rust_language): New class.
8643 (rust_language_defn): New static global.
8644
8645 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8648 member variable.
8649 <m_stmt_at_address>: New member variable.
8650 (lnp_state_machine::record_line): Don't record some lines, update
8651 tracking of is_stmt at the same address.
8652 (lnp_state_machine::lnp_state_machine): Initialise new member
8653 variables.
8654
8655 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8656
8657 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8658 "-include gnu-nat-mig.h".
8659 * gnu-nat-mig.h: New file.
8660 * gnu-nat.c: Include "gnu-nat-mig.h".
8661 (exc_server, msg_reply_server, notify_server,
8662 process_reply_server): Remove declarations.
8663
8664 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8665
8666 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8667 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8668 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8669 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8670 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8671 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8672 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8673 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8674 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8675 to gnu_nat_target class.
8676 * gnu-nat.c: Likewise.
8677 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8678 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8679 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8680 object.
8681 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8682 instead of `gnu_target'.
8683
8684 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8685
8686 * i386-gnu-tdep.c: Include "gdbcore.h"
8687 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8688 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8689 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8690 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8691 i386_gnu_sigcontext_addr): New functions
8692 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8693 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8694 tdep.
8695
8696 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8697
8698 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8699 before fork_inferior call. Avoid calling it if target_is_pushed returns
8700 true.
8701
8702 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8703
8704 * gnu-nat.h (gnu_target): New variable declaration.
8705 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8706 gnu_target.
8707 * gnu-nat.c (gnu_target): New variable.
8708 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8709 add_thread_silent, and add_thread calls.
8710 (gnu_nat_target::create_inferior): Pass gnu_target to
8711 add_thread_silent, thread_change_ptid call.
8712 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8713 call.
8714
8715 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8716
8717 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8718 (gnu_nat_target::find_memory_regions): Remove unused
8719 `old_address' variable.
8720
8721 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8722
8723 * gnu-nat.c: Include "gdbarch.h".
8724
8725 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8726
8727 * reply_mig_hack.awk (Error return): Cast function through
8728 void *, to bypass compiler function call check.
8729
8730 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8731
8732 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8733 $(srcdir)/reply_mig_hack.awk.
8734
8735 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8736
8737 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8738
8739 2020-05-30 Jonny Grant <jg@jguk.org>
8740
8741 * configure.ac (ACX_BUGURL): change bug URL to https.
8742
8743 2020-05-30 Pedro Alves <palves@redhat.com>
8744
8745 * cp-support.c (replace_typedefs_template): New.
8746 (replace_typedefs_qualified_name): Handle
8747 DEMANGLE_COMPONENT_TEMPLATE.
8748
8749 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8750
8751 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8752 dwarf2/index-cache.h, dwarf2/index-write.c,
8753 dwarf2/index-write.h, dwarf2/line-header.c,
8754 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8755 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8756 variables and fields from `dwarf2_per_objfile` to just
8757 `per_objfile` throughout.
8758
8759 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8760
8761 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8762 <push_dwarf_reg_entry_value>: Add comment.
8763
8764 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8765 Keith Seitz <keiths@redhat.com>
8766
8767 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8768 instead of PyEval_ReleaseLock.
8769 (class gdbpy_gil): Move to earlier in file.
8770 (finalize_python): Set gdb_python_initialized.
8771 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8772 when not initialized.
8773
8774 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8777 <push_dwarf_reg_entry_value>: Remove assert. Override
8778 per_objfile with caller_per_objfile.
8779
8780 2020-05-28 Tom de Vries <tdevries@suse.de>
8781
8782 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8783 PR gold/15646 workaround to symbol kind "type".
8784
8785 2020-05-27 Tom Tromey <tromey@adacore.com>
8786
8787 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8788
8789 2020-05-27 Tom Tromey <tromey@adacore.com>
8790
8791 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8792 Use htab_find_with_hash.
8793 <add_abbrev>: Remove "abbrev_number" parameter.
8794 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8795 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8796 (hash_abbrev): Add comment.
8797 (abbrev_table::lookup_abbrev): Move to header file.
8798 (abbrev_table::read): Update.
8799
8800 2020-05-27 Tom Tromey <tromey@adacore.com>
8801
8802 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8803 method.
8804 <canonical_name>: New member.
8805 <raw_name>: Rename from "name".
8806 (partial_die_info): Initialize canonical_name.
8807 (scan_partial_symbols): Check raw_name.
8808 (partial_die_parent_scope, partial_die_full_name)
8809 (add_partial_symbol, add_partial_subprogram)
8810 (add_partial_enumeration, load_partial_dies): Use "name" method.
8811 (partial_die_info::name): New method.
8812 (partial_die_info::read, guess_partial_die_structure_name)
8813 (partial_die_info::fixup): Update.
8814
8815 2020-05-27 Tom Tromey <tromey@adacore.com>
8816
8817 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8818 <get_ref_die_offset>: Inline.
8819 <get_ref_die_offset_complaint>: New method.
8820 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8821 (attribute::get_ref_die_offset_complaint): Rename from
8822 get_ref_die_offset. Just issue complaint.
8823
8824 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8825
8826 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8827
8828 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8829
8830 * exec.c (exec_file_attach): Use errno value of first openp failure.
8831
8832 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8833
8834 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8835 Don't close thread handle.
8836
8837 2020-05-27 Tom Tromey <tom@tromey.com>
8838 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8841 shared_ptr.
8842 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8843 member.
8844 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8845 dwarf2_per_bfd_objfile_data_key>: New globals.
8846 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8847 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8848 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8849 shared.
8850 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8851 short-circuit when sharing.
8852 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8853 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8854
8855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8858 to...
8859 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8860 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8861
8862 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8865 build_name_components, find_name_components_bounds>:
8866 Add per_objfile parameter.
8867 (struct mapped_index) <symbol_name_at>: Likewise.
8868 (struct mapped_debug_names): Remove constructor.
8869 <dwarf2_per_objfile>: Remove field.
8870 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8871 (mapped_index_base::find_name_components_bounds,
8872 mapped_index_base::build_name_components,
8873 dw2_expand_symtabs_matching_symbol): Likewise.
8874 (class mock_mapped_index) <symbol_name_at>: Likewise.
8875 (check_match): Likewise.
8876 (check_find_bounds_finds): Likewise.
8877 (test_mapped_index_find_name_component_bounds): Update.
8878 (CHECK_MATCH): Update.
8879 (dw2_expand_symtabs_matching): Update.
8880 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8881 per_objfile parameter.
8882 <find_vec_in_debug_names>: Likewise.
8883 <m_per_objfile>: New field.
8884 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8885 parameter.
8886 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8887 (dw2_debug_names_iterator::next): Update.
8888 (dw2_debug_names_lookup_symbol): Update.
8889 (dw2_debug_names_expand_symtabs_for_function): Update.
8890 (dw2_debug_names_map_matching_symbols): Update.
8891 (dw2_debug_names_expand_symtabs_matching): Update.
8892 (dwarf2_read_debug_names): Update.
8893
8894 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8897 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8898 move to dwarf2_per_objfile.
8899 <read_in_chain>: Remove.
8900 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8901 remove_all_cus, age_comp_units>: New methods.
8902 <m_dwarf2_cus>: New member.
8903 (struct dwarf2_per_cu_data) <cu>: Remove.
8904 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8905 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8906 moved to methods of dwarf2_per_objfile.
8907 (dwarf2_clear_marks): Remove.
8908 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8909 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8910 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8911 (dwarf2_per_objfile::remove_all_cus): New.
8912 (class free_cached_comp_units) <~free_cached_comp_units>:
8913 Update.
8914 (load_cu): Update.
8915 (dw2_do_instantiate_symtab): Adjust.
8916 (fill_in_sig_entry_from_dwo_entry): Adjust.
8917 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8918 (cutu_reader::cutu_reader): Likewise.
8919 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8920 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8921 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8922 and dwarf2_per_objfile::age_comp_units.
8923 (load_partial_comp_unit): Update.
8924 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8925 (process_queue): Likewise.
8926 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8927 backlink.
8928 (dwarf2_read_addr_index): Likewise.
8929 (follow_die_offset): Likewise.
8930 (dwarf2_fetch_die_loc_sect_off): Likewise.
8931 (dwarf2_fetch_constant_bytes): Likewise.
8932 (dwarf2_fetch_die_type_sect_off): Likewise.
8933 (follow_die_sig_1): Likewise.
8934 (load_full_type_unit): Likewise.
8935 (read_signatured_type): Likewise.
8936 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8937 (dwarf2_cu::~dwarf2_cu): Remove.
8938 (dwarf2_per_objfile::get_cu): New.
8939 (dwarf2_per_objfile::set_cu): New.
8940 (age_cached_comp_units): Rename to...
8941 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8942 to std::unordered_map.
8943 (free_one_cached_comp_unit): Rename to...
8944 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8945 to std::unordered_map.
8946 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8947 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8948 a dwarf2_per_objfile in data.
8949 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8950 (dwarf2_clear_marks): Remove.
8951
8952 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8955 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8956 (init_tu_and_read_dwo_dies): Likewise.
8957 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8958 (cutu_reader::cutu_reader): Likewise.
8959 (load_partial_comp_unit): Likewise.
8960 (process_psymtab_comp_unit): Update.
8961 (build_type_psymtabs_1): Update.
8962 (process_skeletonless_type_unit): Update.
8963 (load_full_comp_unit): Update.
8964 (find_partial_die): Update.
8965 (dwarf2_read_addr_index): Update.
8966 (read_signatured_type): Update.
8967
8968 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8969
8970 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8971 m_header_read_in>: New fields.
8972 <get_header>: New method.
8973 * dwarf2/read.c (per_cu_header_read_in): Remove.
8974 (dwarf2_per_cu_data::get_header): New.
8975 (dwarf2_per_cu_data::addr_size): Update.
8976 (dwarf2_per_cu_data::offset_size): Update.
8977 (dwarf2_per_cu_data::ref_addr_size): Update.
8978
8979 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8980
8981 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8982 (dw2_do_instantiate_symtab): Update.
8983 (queue_and_load_all_dwo_tus): Change parameter from
8984 dwarf2_per_cu_data to dwarf2_cu.
8985 (dwarf2_fetch_die_loc_sect_off): Update.
8986 (dwarf2_fetch_constant_bytes): Update.
8987 (dwarf2_fetch_die_type_sect_off): Update.
8988
8989 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8990
8991 * dwarf2/read.c (process_full_comp_unit,
8992 process_full_type_unit): Remove per_cu, per_objfile paramters.
8993 Add dwarf2_cu parameter.
8994 (process_queue): Update.
8995
8996 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8997
8998 * dwarf2/read.c (create_cu_from_index_list): Replace
8999 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9000 (create_cus_from_index_list): Likewise.
9001 (create_cus_from_index): Likewise.
9002 (create_signatured_type_table_from_index): Likewise.
9003 (create_cus_from_debug_names_list): Likewise.
9004 (create_cus_from_debug_names): Likewise.
9005 (dwarf2_read_gdb_index): Update.
9006 (dwarf2_read_debug_names): Update.
9007
9008 2020-05-27 Tom Tromey <tom@tromey.com>
9009 Simon Marchi <simon.marchi@efficios.com>
9010
9011 * dwarf2/read.h (struct dwarf2_per_objfile)
9012 <get_type_for_signatured_type, set_type_for_signatured_type>:
9013 New methods.
9014 <m_type_map>: New member.
9015 (struct signatured_type) <type>: Remove.
9016 * dwarf2/read.c
9017 (dwarf2_per_objfile::get_type_for_signatured_type,
9018 dwarf2_per_objfile::set_type_for_signatured_type): New.
9019 (get_signatured_type): Use new methods.
9020
9021 2020-05-27 Tom Tromey <tom@tromey.com>
9022 Simon Marchi <simon.marchi@efficios.com>
9023
9024 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9025 (struct dwarf2_per_objfile) <type_units>: New member.
9026 <get_type_unit_group_unshareable>: New method.
9027 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9028 num_symtabs, symtabs>: Remove; move to
9029 type_unit_group_unshareable.
9030 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9031 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9032 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9033
9034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * dwarf2/read.h (struct dwarf2_per_cu_data):
9037 <dwarf2_per_objfile>: Remove.
9038 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9039 dwarf2_per_objfile.
9040 (create_signatured_type_table_from_index): Likewise.
9041 (create_signatured_type_table_from_debug_names): Likewise.
9042 (create_debug_type_hash_table): Likewise.
9043 (fill_in_sig_entry_from_dwo_entry): Likewise.
9044 (create_type_unit_group): Likewise.
9045 (read_comp_units_from_section): Likewise.
9046 (create_cus_hash_table): Likewise.
9047
9048 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9051 dwarf2_per_cu_data::dwarf2_per_objfile.
9052 (compute_compunit_symtab_includes): Likewise.
9053 (dwarf2_cu::start_symtab): Likewise.
9054
9055 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9056
9057 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9058 parameter.
9059 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9060 (read_namespace_alias): Update.
9061 (lookup_die_type): Update.
9062 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9063 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9064 Update.
9065 (disassemble_dwarf_expression): Update.
9066
9067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * dwarf2/read.h (struct dwarf2_queue_item): Add
9070 dwarf2_per_objfile parameter, assign new parameter.
9071 <per_objfile>: New field.
9072 * dwarf2/read.c (free_one_cached_comp_unit): Add
9073 dwarf2_per_objfile parameter.
9074 (queue_comp_unit): Likewise.
9075 (dw2_do_instantiate_symtab): Update.
9076 (process_psymtab_comp_unit): Update.
9077 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9078 (process_imported_unit_die): Update.
9079 (queue_and_load_dwo_tu): Update.
9080 (follow_die_offset): Update.
9081 (follow_die_sig_1): Update.
9082
9083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9086 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9087 (read_call_site_scope): Assign per_objfile.
9088 (dwarf2_per_cu_data::objfile): Remove.
9089 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9090 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9091 dwarf2_per_objfile parameter.
9092 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9093 dwarf2_per_objfile parameter.
9094 (dwarf_expr_reg_to_entry_parameter): Add output
9095 dwarf2_per_objfile parameter.
9096 (locexpr_get_frame_base): Update.
9097 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9098 <push_dwarf_reg_entry_value>: Update.
9099 <call_site_to_target_addr>: Update.
9100 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9101 parameter.
9102 (value_of_dwarf_reg_entry): Update.
9103 (rw_pieced_value): Update.
9104 (indirect_synthetic_pointer): Update.
9105 (dwarf2_evaluate_property): Update.
9106 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9107 parameter.
9108 (locexpr_read_variable): Update.
9109 (locexpr_get_symbol_read_needs): Update.
9110 (loclist_read_variable): Update.
9111
9112 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9115 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9116 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9117 parameter.
9118 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9119 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9120 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9121 parameter.
9122 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9123 sect_variable_value): Add dwarf2_per_objfile parameter.
9124 (class dwarf_evaluate_loc_desc) <dwarf_call,
9125 dwarf_variable_value>: Update.
9126 (fetch_const_value_from_synthetic_pointer): Add
9127 dwarf2_per_objfile parameter.
9128 (fetch_const_value_from_synthetic_pointer): Update.
9129 (coerced_pieced_ref): Update.
9130 (class symbol_needs_eval_context) <dwarf_call,
9131 dwarf_variable_value>: Update.
9132 (dwarf2_compile_expr_to_ax): Update.
9133
9134 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9135
9136 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9137 parameter.
9138 (dwarf2_evaluate_loc_desc_full): Update.
9139
9140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9143 parameter.
9144 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9145 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9146 dwarf2_per_objfile parameter.
9147 (decode_debug_loc_dwo_addresses): Likewise.
9148 (dwarf2_find_location_expression): Update.
9149 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9150 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9151 parameter.
9152 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9153 parameter.
9154 (locexpr_describe_location_1): Likewise.
9155 (locexpr_describe_location): Update.
9156
9157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9160 Remove.
9161 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9162 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9163 (dwarf2_compile_property_to_c): Update.
9164 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9165 use text offset from objfile.
9166 (locexpr_tracepoint_var_ref): Update.
9167 (locexpr_generate_c_location): Update.
9168 (loclist_describe_location): Update.
9169 (loclist_tracepoint_var_ref): Update.
9170 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9171 dwarf2_per_objfile parameter.
9172 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9173 use text offset from objfile.
9174 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9175
9176 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * dwarf2/expr.h (struct dwarf_expr_context)
9179 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9180 <offset>: Remove.
9181 <per_objfile>: New member.
9182 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9183 dwarf2_per_objfile parameter. Don't set offset, set
9184 per_objfile.
9185 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9186 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9187 a dwarf2_per_objfile object instead of an offset.
9188 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9189 constructor.
9190 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9191 to dwarf2_expr_executor constructor. Don't set offset.
9192 (dwarf2_fetch_cfa_info): Update.
9193 (struct dwarf2_frame_cache) <text_offset>: Remove.
9194 <per_objfile>: New field.
9195 (dwarf2_frame_cache): Update.
9196 (dwarf2_frame_prev_register): Update.
9197 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9198 <dwarf_evaluate_loc_desc>: Add constructor.
9199 (dwarf2_evaluate_loc_desc_full): Update.
9200 (dwarf2_locexpr_baton_eval): Update.
9201 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9202 Add constructor.
9203 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9204
9205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9208 addr_sized_int_type>: Move to dwarf2_cu.
9209 <int_type>: Move to dwarf2_per_objfile.
9210 (struct dwarf2_per_objfile) <int_type>: Move here.
9211 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9212 addr_sized_int_type>: Move here.
9213 (read_func_scope): Update.
9214 (read_array_type): Update.
9215 (read_tag_string_type): Update.
9216 (attr_to_dynamic_prop): Update.
9217 (dwarf2_per_cu_data::int_type): Rename to...
9218 (dwarf2_per_objfile::int_type): ... this.
9219 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9220 (dwarf2_cu::addr_sized_int_type): ... this.
9221 (read_subrange_type): Update.
9222 (dwarf2_per_cu_data::addr_type): Rename to...
9223 (dwarf2_cu::addr_type): ... this.
9224 (set_die_type): Update.
9225
9226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9229 data through per_cu->cu.
9230
9231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9234 dwarf2_per_cu_data parameter fo dwarf2_cu.
9235 (lookup_dwo_type_unit): Likewise.
9236 (read_cutu_die_from_dwo): Likewise.
9237 (lookup_dwo_unit): Likewise.
9238 (open_and_init_dwo_file): Likewise.
9239 (lookup_dwo_cutu): Likewise.
9240 (lookup_dwo_comp_unit): Likewise.
9241 (lookup_dwo_type_unit): Likewise.
9242 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9243 (cutu_reader::cutu_reader): Update.
9244
9245 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9248 parameter.
9249 (process_full_type_unit): Likewise.
9250 (process_queue): Update.
9251
9252 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * dwarf2/read.c (recursively_compute_inclusions): Add
9255 dwarf2_per_objfile parameter.
9256 (compute_compunit_symtab_includes): Likewise.
9257 (process_cu_includes): Update.
9258
9259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9262 parameter.
9263 (create_type_unit_group): Update.
9264 (process_psymtab_comp_unit_reader): Update.
9265 (build_type_psymtabs_reader): Update.
9266
9267 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9268
9269 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9270 object through m_this_cu->cu.
9271
9272 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9273
9274 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9275 the info parameter.
9276 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9277
9278 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9279
9280 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9281 per_objfile parameter.
9282 (load_full_type_unit): Add per_objfile parameter.
9283 (read_signatured_type): Likewise.
9284 (load_full_comp_unit): Likewise.
9285 (load_cu): Likewise.
9286 (dw2_do_instantiate_symtab): Likewise.
9287 (dw2_get_file_names): Likewise.
9288 (dw2_map_symtabs_matching_filename): Update.
9289 (dw_expand_symtabs_matching_file_matcher): Update.
9290 (dw2_map_symbol_filenames): Update.
9291 (process_psymtab_comp_unit): Add per_objfile parameter.
9292 (build_type_psymtabs_1): Update.
9293 (process_skeletonless_type_unit): Update.
9294 (dwarf2_build_psymtabs_hard): Update.
9295 (load_partial_comp_unit): Add per_objfile parameter.
9296 (scan_partial_symbols): Update.
9297 (load_full_comp_unit): Add per_objfile parameter.
9298 (process_imported_unit_die): Update.
9299 (create_cus_hash_table): Update.
9300 (find_partial_die): Update.
9301 (dwarf2_read_addr_index): Update.
9302 (follow_die_offset): Update.
9303 (dwarf2_fetch_die_loc_sect_off): Update.
9304 (dwarf2_fetch_constant_bytes): Update.
9305 (dwarf2_fetch_die_type_sect_off): Update.
9306 (follow_die_sig_1): Update.
9307 (load_full_type_unit): Add per_objfile parameter.
9308 (read_signatured_type): Likewise.
9309
9310 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9313 of objfile_name.
9314
9315 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9316
9317 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9318 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9319 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9320 field.
9321 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9322 (create_cus_from_index): Update.
9323 (dwarf2_read_gdb_index): Update.
9324 (create_cus_from_debug_names): Update.
9325 (dwarf2_read_debug_names): Update.
9326 (get_abbrev_section_for_cu): Update.
9327 (create_all_comp_units): Update.
9328 (read_attribute_value): Update.
9329 (get_debug_line_section): Update.
9330 * dwarf2/index-cache.c (index_cache::store): Update.
9331 * dwarf2/index-write.c (save_gdb_index_command): Update.
9332 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9333
9334 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9337 member.
9338 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9339 dwarf2_per_cu_data::per_bfd.
9340 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9341 (create_type_unit_group): Likewise.
9342 (queue_comp_unit): Remove reference to
9343 per_cu->dwarf2_per_objfile.
9344 (maybe_queue_comp_unit): Likewise.
9345 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9346 (create_cus_hash_table): Assign new field.
9347
9348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * dwarf2/read.c: Replace
9351 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9352 dwarf2_cu->per_objfile throughout.
9353
9354 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9355
9356 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9357 parameter, don't use per_cu->dwarf2_per_objfile.
9358 (dw2_instantiate_symtab): Likewise.
9359 (dw2_find_last_source_symtab): Update.
9360 (dw2_map_expand_apply): Update.
9361 (dw2_lookup_symbol): Update.
9362 (dw2_expand_symtabs_for_function): Update.
9363 (dw2_expand_all_symtabs): Update.
9364 (dw2_expand_symtabs_with_fullname): Update.
9365 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9366 don't use per_cu->dwarf2_per_objfile.
9367 (dw2_expand_marked_cus): Update.
9368 (dw2_find_pc_sect_compunit_symtab): Update.
9369 (dw2_debug_names_lookup_symbol): Update.
9370 (dw2_debug_names_expand_symtabs_for_function): Update.
9371 (dw2_debug_names_map_matching_symbols): Update.
9372 (dwarf2_psymtab::expand_psymtab): Update.
9373
9374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9377 <per_objfile>: New member.
9378 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9379 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9380 call to dwarf2_cu.
9381 (cutu_reader::cutu_reader): Update.
9382 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9383
9384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9385
9386 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9387 struct dwarf2_per_objfile.
9388 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9389 dwarf2_per_bfd.
9390 * dwarf2/read.c (set_die_type): Update.
9391 (get_die_type_at_offset): Update.
9392
9393 2020-05-27 Tom Tromey <tom@tromey.com>
9394 Simon Marchi <simon.marchi@efficios.com>
9395
9396 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9397 method.
9398 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9399 get_symtab, set_symtab>: New methods.
9400 <m_symtabs>: New field.
9401 (struct dwarf2_psymtab): Derive from partial_symtab.
9402 <readin_p, get_compunit_symtab>: Declare methods.
9403 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9404 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9405 New methods.
9406 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9407 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9408 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9409 (dw2_symtab_iter_next, dw2_print_stats)
9410 (dw2_expand_symtabs_with_fullname)
9411 (dw2_expand_symtabs_matching_one)
9412 (dw_expand_symtabs_matching_file_matcher)
9413 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9414 (dw2_debug_names_iterator::next)
9415 (dw2_debug_names_map_matching_symbols)
9416 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9417 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9418 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9419 New methods.
9420 (get_compunit_symtab, process_full_comp_unit)
9421 (process_full_type_unit): Update.
9422 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9423
9424 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9425
9426 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9427 then introduce a new dwarf2_per_objfile type.
9428 <read_line_string>: Move to the new dwarf2_per_objfile type.
9429 <objfile>: Likewise.
9430 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9431 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9432 dwarf2_per_objfile->per_bfd.
9433 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9434 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9435 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9436 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9437 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9438 (dwarf2_per_objfile::locate_sections): Rename to...
9439 (dwarf2_per_bfd::locate_sections): ... this.
9440 (dwarf2_per_objfile::get_cutu): Rename to...
9441 (dwarf2_per_bfd::get_cutu): ... this.
9442 (dwarf2_per_objfile::get_cu): Rename to...
9443 (dwarf2_per_bfd::get_cu): ... this.
9444 (dwarf2_per_objfile::get_tu): Rename to...
9445 (dwarf2_per_bfd::get_tu): ... this.
9446 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9447 (dwarf2_per_bfd::allocate_per_cu): ... this.
9448 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9449 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9450 (get_gdb_index_contents_ftype): Change parameter from
9451 dwarf2_per_objfile to dwarf2_per_bfd.
9452 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9453 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9454
9455 2020-05-27 Tom Tromey <tom@tromey.com>
9456 Simon Marchi <simon.marchi@efficios.com>
9457
9458 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9459 (allocate_piece_closure): Set "per_objfile" member.
9460 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9461 (locexpr_describe_location, loclist_describe_location): Use new
9462 member.
9463 * dwarf2/read.c (read_call_site_scope)
9464 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9465 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9466 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9467 handle_data_member_location): Set per_objfile member.
9468 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9469 member.
9470 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9471
9472 2020-05-27 Tom Tromey <tom@tromey.com>
9473
9474 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9475 allocate_signatured_type>: Declare new methods.
9476 <m_num_psymtabs>: New member.
9477 (struct dwarf2_per_cu_data) <index>: New member.
9478 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9479 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9480 (create_cu_from_index_list): Use allocate_per_cu.
9481 (create_signatured_type_table_from_index)
9482 (create_signatured_type_table_from_debug_names)
9483 (create_debug_type_hash_table, add_type_unit)
9484 (read_comp_units_from_section): Use allocate_signatured_type.
9485
9486 2020-05-27 Tom Tromey <tom@tromey.com>
9487
9488 * psymtab.c (partial_map_expand_apply)
9489 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9490 (psym_lookup_global_symbol_language)
9491 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9492 (psym_print_stats, psym_expand_symtabs_for_function)
9493 (psym_map_symbol_filenames, psym_map_matching_symbols)
9494 (psym_expand_symtabs_matching)
9495 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9496 (maintenance_check_psymtabs): Update.
9497 * psympriv.h (struct partial_symtab) <readin_p,
9498 get_compunit_symtab>: Add objfile parameter.
9499 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9500 Likewise.
9501 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9502 get_compunit_symtab>: Likewise.
9503 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9504
9505 2020-05-27 Tom Tromey <tom@tromey.com>
9506
9507 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9508 member.
9509 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9510 (create_cu_from_index_list)
9511 (create_signatured_type_table_from_index)
9512 (create_signatured_type_table_from_debug_names)
9513 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9514 (dwarf2_create_include_psymtab)
9515 (create_debug_type_hash_table, add_type_unit)
9516 (create_type_unit_group, read_comp_units_from_section)
9517 (dwarf2_compute_name, create_cus_hash_table)
9518 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9519 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9520 obstack.
9521 (dw2_get_real_path): Likewise. Change argument to
9522 dwarf2_per_objfile.
9523
9524 2020-05-27 Luis Machado <luis.machado@linaro.org>
9525
9526 PR tdep/26000
9527 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9528 for ldrd (immediate).
9529
9530 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9531
9532 * command.h: Add comment giving the name of class_tui.
9533 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9534 create the fake command for the help for class_tui.
9535
9536 2020-05-26 Tom Tromey <tromey@adacore.com>
9537
9538 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9539 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9540 (val_atr): New function.
9541 (value_val_atr): Use it.
9542 * ada-valprint.c (print_optional_low_bound): Change low bound
9543 handling for enums.
9544 (val_print_packed_array_elements): Don't call discrete_position.
9545 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9546 discrete_position for enum types.
9547 * language.c (default_print_array_index): Change type.
9548 * language.h (struct language_defn) <la_print_array_index>: Add
9549 index_type parameter, change type of index_value.
9550 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9551 (default_print_array_index): Update.
9552 * valprint.c (maybe_print_array_index): Don't call
9553 value_from_longest. Update.
9554 (value_print_array_elements): Don't call discrete_position.
9555
9556 2020-05-26 Tom Tromey <tromey@adacore.com>
9557
9558 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9559 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9560
9561 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9562
9563 PR gdb/13519
9564 * avr-tdep.c (avr_integer_to_address): Return data or code
9565 address accordingly to the second 'type' argument of the
9566 function.
9567
9568 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9569
9570 * infcmd.c, inferior.h: (construct_inferior_arguments):
9571 Moved function from here to gdbsupport/common-inferior.{h,cc}
9572
9573 2020-05-23 Tom Tromey <tom@tromey.com>
9574
9575 Revert commit eca1f90c:
9576 * NEWS: Remove entry for completion styling.
9577 * completer.c (_rl_completion_prefix_display_length): Move
9578 declaration later.
9579 (gdb_fnprint): Revert.
9580 (gdb_display_match_list_1): Likewise.
9581 * cli/cli-style.c (completion_prefix_style)
9582 (completion_difference_style, completion_suffix_style): Remove.
9583 (_initialize_cli_style): Revert.
9584 * cli/cli-style.h (completion_prefix_style)
9585 (completion_difference_style, completion_suffix_style): Don't
9586 declare.
9587
9588 2020-05-24 Pedro Alves <palves@redhat.com>
9589
9590 * symtab.c (completion_list_add_name): Return boolean indication
9591 of whether the symbol matched.
9592 (completion_list_add_symbol): Don't try to remove C++ aliases if
9593 the symbol didn't match in the first place.
9594 * symtab.h (completion_list_add_name): Return bool.
9595
9596 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9597
9598 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9599 type::field.
9600
9601 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9602
9603 GDB 9.2 released.
9604
9605 2020-05-23 Tom Tromey <tom@tromey.com>
9606
9607 * NEWS: Add entry for completion styling.
9608 * completer.c (_rl_completion_prefix_display_length): Move
9609 declaration earlier.
9610 (gdb_fnprint): Use completion_style.
9611 (gdb_display_match_list_1): Likewise.
9612 * cli/cli-style.c (completion_prefix_style)
9613 (completion_difference_style, completion_suffix_style): New
9614 globals.
9615 (_initialize_cli_style): Register new globals.
9616 * cli/cli-style.h (completion_prefix_style)
9617 (completion_difference_style, completion_suffix_style): Declare.
9618
9619 2020-05-23 Pedro Alves <palves@redhat.com>
9620
9621 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9622 (parse_escape): Use ISDIGIT instead of isdigit.
9623 (puts_debug): Use gdb_isprint instead of isprint.
9624 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9625 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9626 ISSPACE instead of isspace.
9627 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9628 instead of isspace.
9629 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9630 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9631 instead of isxdigit and ISDIGIT instead of isdigit.
9632
9633 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9634
9635 * gdbtypes.h (struct type) <field>: New method.
9636 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9637 or type::field.
9638
9639 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9642 (TYPE_FIELDS): Use type::fields. Change all call sites that
9643 modify the propery to use type::set_fields instead.
9644
9645 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9648 type::num_fields instead.
9649
9650 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9653 methods.
9654 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9655 that modify the number of fields to use type::set_num_fields
9656 instead.
9657
9658 2020-05-22 Tom Tromey <tromey@adacore.com>
9659
9660 * compile/compile-object-load.h (munmap_list_free): Don't
9661 declare.
9662
9663 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * annotate.c (annotate_source_line): Update return type, add call
9666 to update current symtab and line.
9667 * annotate.h (annotate_source_line): Update return type, and
9668 extend header comment.
9669 * source.c (info_line_command): Check annotation_level before
9670 calling annotate_source_line.
9671 * stack.c (print_frame_info): If calling annotate_source_line
9672 returns true, then don't print any other source line information.
9673
9674 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9677
9678 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * coffread.c (patch_type): Remove NULL check before xfree.
9681 * corefile.c (set_gnutarget): Likewise.
9682 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9683 * exec.c (build_section_table): Likewise.
9684 * remote.c (remote_target::pass_signals): Likewise.
9685 * utils.c (n_spaces): Likewise.
9686 * cli/cli-script.c (document_command): Likewise.
9687 * i386-windows-tdep.c (core_process_module_section): Likewise.
9688 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9689
9690 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * symfile.c (reread_symbols): Clear objfile's section_offsets
9693 vector and section indices, re-compute them by calling
9694 sym_offsets.
9695
9696 2020-05-20 Tom Tromey <tromey@adacore.com>
9697
9698 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9699 (desc_one_bound, desc_index_type): Compute field name.
9700
9701 2020-05-20 Tom de Vries <tdevries@suse.de>
9702
9703 PR symtab/25833
9704 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9705
9706 2020-05-20 Alan Modra <amodra@gmail.com>
9707
9708 PR 25993
9709 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9710 bfd_set_filename.
9711 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9712 passed to bfd_set_filename.
9713 * symfile-mem.c (add_vsyscall_page): Likewise for string
9714 passed to symbol_file_add_from_memory.
9715 (symbol_file_add_from_memory): Make name param a const char* and
9716 don't strdup.
9717
9718 2020-05-20 Alan Modra <amodra@gmail.com>
9719
9720 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9721 rather than accessing bfd->filename directly.
9722 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9723 and use bfd_section_name.
9724 * dwarf2/frame.c (decode_frame_entry): Likewise.
9725 * exec.c (exec_set_section_address): Likewise.
9726 * solib-aix.c (solib_aix_bfd_open): Likewise.
9727 * stap-probe.c (get_stap_base_address): Likewise.
9728 * symfile.c (reread_symbols): Likewise.
9729
9730 2020-05-19 Tom Tromey <tromey@adacore.com>
9731
9732 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9733
9734 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9735
9736 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9737
9738 2020-05-19 Pedro Alves <palves@redhat.com>
9739
9740 * NEWS (set exec-file-mismatch): Adjust entry.
9741 * exec.c: Include "build-id.h".
9742 (validate_exec_file): Try to match build IDs instead of filenames.
9743 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9744 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9745 and pass down 'warn_if_slow'.
9746 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9747 gdb_bfd_open_closure to pass it down.
9748 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9749
9750 2020-05-19 Pedro Alves <palves@redhat.com>
9751
9752 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9753 * target.c (target_fileio_open_1): Rename to target_fileio_open
9754 and make extern. Use bool.
9755 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9756 (target_fileio_read_alloc_1): Adjust.
9757 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9758 (target_fileio_open_warn_if_slow): Delete declaration.
9759
9760 2020-05-19 Pedro Alves <palves@redhat.com>
9761
9762 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9763 Adjust all callers.
9764
9765 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9766
9767 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9768 whether disp is negative.
9769
9770 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * symfile.h (struct symfile_segment_data)
9773 <~symfile_segment_data>: Remove.
9774 <segment_info>: Change to std::vector.
9775 * symfile.c (default_symfile_segments): Update.
9776 * elfread.c (elf_symfile_segments): Update.
9777
9778 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9781 <segments>: New.
9782 <segment_bases, segment_sizes>: Remove.
9783 * symfile.c (default_symfile_segments): Update.
9784 * elfread.c (elf_symfile_segments): Update.
9785 * remote.c (remote_target::get_offsets): Update.
9786 * solib-target.c (solib_target_relocate_section_addresses):
9787 Update.
9788
9789 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * symfile.h (struct symfile_segment_data): Initialize fields.
9792 <~symfile_segment_data>: Add.
9793 (symfile_segment_data_up): New.
9794 (struct sym_fns) <sym_segments>: Return a
9795 symfile_segment_data_up.
9796 (default_symfile_segments): Return a symfile_segment_data_up.
9797 (free_symfile_segment_data): Remove.
9798 (get_symfile_segment_data): Return a symfile_segment_data_up.
9799 * symfile.c (default_symfile_segments): Likewise.
9800 (get_symfile_segment_data): Likewise.
9801 (free_symfile_segment_data): Remove.
9802 (symfile_find_segment_sections): Update.
9803 * elfread.c (elf_symfile_segments): Return a
9804 symfile_segment_data_up.
9805 * remote.c (remote_target::get_offsets): Update.
9806 * solib-target.c (solib_target_relocate_section_addresses):
9807 Update.
9808 * symfile-debug.c (debug_sym_segments): Return a
9809 symfile_segment_data_up.
9810
9811 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9812
9813 PR build/25981
9814 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9815 Hardcode register numbers.
9816
9817 PR build/25981
9818 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9819 procfs_find_LDT_entry): Remove.
9820 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9821 procfs_find_LDT_entry): Remove.
9822 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9823 Remove.
9824
9825 2020-05-17 Pedro Alves <palves@redhat.com>
9826 Andrew Burgess <andrew.burgess@embecosm.com>
9827 Keno Fischer <keno@juliacomputing.com>
9828
9829 PR gdb/25741
9830 * breakpoint.c (build_target_condition_list): Update comments.
9831 (build_target_command_list): Update comments and skip matching
9832 locations.
9833 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9834 a separate function. Simplify "set breakpoint auto-hw off"
9835 handling.
9836 (insert_breakpoints): Update comment.
9837 (tracepoint_locations_match): New parameter. For breakpoints,
9838 compare location types too, if the caller wants to.
9839 (handle_automatic_hardware_breakpoints): New functions.
9840 (bp_location_is_less_than): Also sort by location type and
9841 hardware breakpoint length.
9842 (update_global_location_list): Handle "set breakpoint auto-hw on"
9843 here.
9844 (update_breakpoint_locations): Ask breakpoint_locations_match to
9845 ignore location types.
9846
9847 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9848
9849 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9850 type::name instead.
9851
9852 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9853
9854 * gdbtypes.h (struct type) <name, set_name>: New methods.
9855 (TYPE_CODE): Use type::name. Change all call sites used to set
9856 the name to use type::set_name instead.
9857
9858 2020-05-16 Tom Tromey <tom@tromey.com>
9859
9860 * top.c (quit_force): Update.
9861 * infrun.c (handle_no_resumed): Update.
9862 * top.h (all_uis): New function.
9863 (ALL_UIS): Remove.
9864
9865 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9868
9869 2020-05-16 Pedro Alves <palves@redhat.com>
9870
9871 * ia64-linux-nat.c
9872 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9873 Declare method.
9874 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9875
9876 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9877
9878 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9879 (sparc64_adi_info): Likewise.
9880
9881 2020-05-15 Tom Tromey <tom@tromey.com>
9882
9883 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9884 block_objfile.
9885 (lookup_objfile_from_block): Remove.
9886 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9887 (lookup_global_symbol): Use block_objfile.
9888 * symtab.h (lookup_objfile_from_block): Don't declare.
9889 * printcmd.c (clear_dangling_display_expressions): Use
9890 block_objfile.
9891 * parse.c (operator_check_standard): Use block_objfile.
9892
9893 2020-05-15 Tom Tromey <tom@tromey.com>
9894
9895 * language.c (language_alloc_type_symbol): Set
9896 SYMBOL_SECTION.
9897 * symtab.c (initialize_objfile_symbol): Remove.
9898 (allocate_symbol): Remove.
9899 (allocate_template_symbol): Remove.
9900 * dwarf2/read.c (fixup_go_packaging): Use "new".
9901 (new_symbol): Use "new".
9902 (read_variable): Don't call initialize_objfile_symbol. Use
9903 "new".
9904 (read_func_scope): Use "new".
9905 * xcoffread.c (process_xcoff_symbol): Don't call
9906 initialize_objfile_symbol.
9907 (SYMBOL_DUP): Remove.
9908 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9909 "new".
9910 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9911 (allocate_template_symbol): Don't declare.
9912 (struct symbol): Add copy constructor. Change defaults.
9913 * jit.c (finalize_symtab): Use "new".
9914 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9915 Use "new".
9916 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9917 (common_block_end): Use "new".
9918 * mdebugread.c (parse_symbol): Use "new".
9919 (new_symbol): Likewise.
9920
9921 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9922
9923 * NEWS: Mention changes to help and apropos.
9924
9925 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9926
9927 * command.h (enum command_class): Improve comments, document
9928 that class_alias is for user-defined aliases, give the class
9929 name for each class, remove unused class_xdb.
9930 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9931 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9932 by a precise class.
9933 * infcmd.c (_initialize_infcmd): Likewise.
9934 * reverse.c (_initialize_reverse): Likewise.
9935 * stack.c (_initialize_stack): Likewise.
9936 * symfile.c (_initialize_symfile): Likewise.
9937 * tracepoint.c (_initialize_tracepoint): Likewise.
9938
9939 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9940
9941 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9942 when their aliased command is traversed.
9943 (help_cmd): Add fput_command_names_styled call to
9944 output command name and aliases when command has an alias.
9945
9946 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9947
9948 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9949 * cli/cli-decode.c (help_cmd_list): Declare as static,
9950 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9951 a command together with the command.
9952 (fput_command_name_styled, fput_command_names_styled): New functions.
9953 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9954 fput_command_name_styled.
9955 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9956 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9957
9958 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9959
9960 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9961 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9962 * command.h (cmd_show_list): Likewise.
9963 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9964 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9965
9966 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9967
9968 * unittests/command-def-selftests.c (traverse_command_structure):
9969 Verify all commands of a list have the same prefix command and
9970 that only the top cmdlist commands have a null prefix.
9971
9972 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9973
9974 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9975 as prefix, not one of its aliases.
9976 (set_cmd_prefix): Remove.
9977 (do_add_cmd): Centralize the setting of the prefix of a command, when
9978 command is defined after its full chain of prefix commands.
9979 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9980 (add_setshow_cmd_full): Likewise.
9981 (update_prefix_field_of_prefixed_commands): New function.
9982 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9983 update_prefix_field_of_prefixed_commands.
9984 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9985 addresses of remote_set_cmdlist and remote_show_cmdlist given
9986 as argument, not the address of an argument.
9987 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9988 * gdb/remote.c (_initialize_remote): Likewise.
9989
9990 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9991
9992 * cli/cli-cmds.c (alias_command): Check for an existing alias
9993 using lookup_cmd_composition, as valid_command_p is too strict
9994 and forbids aliases that are the prefix of an existing alias
9995 or command.
9996 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9997 command is properly recognised as a valid command.
9998
9999 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10000
10001 * unittests/help-doc-selftests.c: Rename to
10002 unittests/command-def-selftests.c
10003 * unittests/command-def-selftests.c (help_doc_tests): Update some
10004 comments.
10005 (command_structure_tests, traverse_command_structure): New namespace
10006 and function.
10007 (command_structure_invariants_tests): New function.
10008 (_initialize_command_def_selftests) Renamed from
10009 _initialize_help_doc_selftests, register command_structure_invariants
10010 selftest.
10011
10012 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10013
10014 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10015 an alias of 'show'.
10016
10017 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10018
10019 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10020 ada_is_fixed_point_type. Update all callers.
10021 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10022 all callers.
10023 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10024 Update all callers.
10025 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10026 print_fixed_point_type. Update all callers.
10027 * ada-valprint.c (ada_value_print_num): Replace call to
10028 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10029
10030 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10031
10032 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10033 processors.
10034 (cpu_supports_bts): Add CV_AMD case.
10035
10036 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10037 Simon Marchi <simon.marchi@efficios.com>
10038
10039 * infrun.c (stop_all_threads): Collect multiple wait events at
10040 each pass.
10041
10042 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10043
10044 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10045 type::code instead.
10046
10047 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * gdbtypes.h (struct type) <code, set_code>: New methods.
10050 (TYPE_CODE): Use type::code. Change all call sites used to set
10051 the code to use type::set_code instead.
10052
10053 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10054 Tom de Vries <tdevries@suse.de>
10055 Pedro Alves <palves@redhat.com>
10056
10057 PR threads/25478
10058 * infrun.c (stop_all_threads): Do NOT ignore
10059 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10060 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10061 received.
10062 (handle_no_resumed): Remove code handling a live inferior with no
10063 threads.
10064 * remote.c (has_single_non_exited_thread): New.
10065 (remote_target::update_thread_list): Do not delete a thread if is
10066 the last thread of the process.
10067 * thread.c (thread_select): Call delete_exited_threads instead of
10068 prune_threads.
10069
10070 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10071
10072 * infrun.c (stop_all_threads): Enable/disable thread events of all
10073 targets. Move a debug message denoting the end of the function
10074 into the SCOPED_EXIT block.
10075
10076 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10077
10078 * process-stratum-target.h: Include <set>.
10079 (all_non_exited_process_targets, switch_to_target_no_thread): New
10080 function declarations.
10081 * process-stratum-target.c (all_non_exited_process_targets)
10082 (switch_to_target_no_thread): New function implementations.
10083
10084 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10085
10086 * infrun.c (handle_inferior_event): Extract out a piece of code
10087 into...
10088 (mark_non_executing_threads): ...this new function.
10089
10090 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10091
10092 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10093 use.
10094
10095 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10096
10097 * regcache.c (regcache_read_pc_protected): New function
10098 implementation that returns 0 if the PC cannot read via
10099 'regcache_read_pc'.
10100 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10101 instead of 'regcache_read_pc'.
10102 (keep_going_pass_signal): Ditto.
10103
10104 2020-05-13 Tom Tromey <tromey@adacore.com>
10105
10106 * ada-lang.c (align_value): Remove.
10107 (ada_template_to_fixed_record_type_1): Use align_up.
10108
10109 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10110
10111 * async-event.c: Update the copyright year.
10112 * async-event.h: Update the copyright year.
10113
10114 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * objfiles.h (is_addr_in_objfile,
10117 shared_objfile_contains_address_p): Return bool.
10118 * objfile.c (is_addr_in_objfile,
10119 shared_objfile_contains_address_p): Return bool.
10120
10121 2020-05-11 Tom Tromey <tromey@adacore.com>
10122
10123 * cli/cli-cmds.c (info_command): Restore.
10124 (_initialize_cli_cmds): Use add_prefix_command for "info".
10125 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10126
10127 2020-05-11 Tom Tromey <tromey@adacore.com>
10128
10129 * ada-lang.c (ada_value_primitive_field): Now public.
10130 * ada-lang.h (ada_value_primitive_field): Declare.
10131 * ada-valprint.c (print_field_values): Use
10132 ada_value_primitive_field for wrapper fields.
10133
10134 2020-05-11 Tom de Vries <tdevries@suse.de>
10135
10136 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10137 MODULE_DOMAIN.
10138
10139 2020-05-11 Tom de Vries <tdevries@suse.de>
10140
10141 PR symtab/25941
10142 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10143 with length 0, if not gdb-produced.
10144 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10145
10146 2020-05-09 Tom de Vries <tdevries@suse.de>
10147
10148 PR gdb/25955
10149 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10150 calculation.
10151
10152 2020-05-09 Tom Tromey <tom@tromey.com>
10153
10154 * top.c (server_command): Now bool.
10155 * top.h (server_command): Now bool.
10156
10157 2020-05-08 Tom Tromey <tromey@adacore.com>
10158
10159 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10160 already being processed.
10161
10162 2020-05-08 Tom Tromey <tom@tromey.com>
10163
10164 * printcmd.c (struct display) <next>: Remove.
10165 <display>: New constructor.
10166 <exp_string>: Now a std::string.
10167 <enabled_p>: Now a bool.
10168 (display_number): Move definition earlier.
10169 (displays): Rename from display_chain. Now a std::vector.
10170 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10171 (display_command): Update.
10172 (do_one_display, disable_display)
10173 (enable_disable_display_command, do_enable_disable_display):
10174 Update.
10175 (free_display): Remove.
10176 (clear_displays): Rewrite.
10177 (delete_display): Update.
10178 (map_display_numbers): Use function_view. Remove "data"
10179 parameter. Update.
10180 (do_delete_display): Remove.
10181 (undisplay_command): Update.
10182 (do_one_display, do_displays, disable_display)
10183 (info_display_command): Update.
10184 (do_enable_disable_display): Remove.
10185 (enable_disable_display_command)
10186 (clear_dangling_display_expressions): Update.
10187
10188 2020-05-08 Tom Tromey <tom@tromey.com>
10189
10190 * symtab.c (set_symbol_cache_size)
10191 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10192 (maintenance_print_symbol_cache_statistics): Update.
10193 * symmisc.c (print_symbol_bcache_statistics)
10194 (print_objfile_statistics, maintenance_print_objfiles)
10195 (maintenance_info_symtabs, maintenance_check_symtabs)
10196 (maintenance_expand_symtabs, maintenance_info_line_tables):
10197 Update.
10198 * symfile-debug.c (set_debug_symfile): Update.
10199 * source.c (forget_cached_source_info): Update.
10200 * python/python.c (gdbpy_progspaces): Update.
10201 * psymtab.c (maintenance_info_psymtabs): Update.
10202 * probe.c (parse_probes): Update.
10203 * linespec.c (iterate_over_all_matching_symtabs)
10204 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10205 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10206 * exec.c (exec_target::close): Update.
10207 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10208 * breakpoint.c (print_one_breakpoint_location)
10209 (create_longjmp_master_breakpoint)
10210 (create_std_terminate_master_breakpoint): Update.
10211 * progspace.c (program_spaces): Now a std::vector.
10212 (maybe_new_address_space): Update.
10213 (add_program_space): Remove.
10214 (program_space::program_space): Update.
10215 (remove_program_space): Update.
10216 (number_of_program_spaces): Remove.
10217 (print_program_space, update_address_spaces): Update.
10218 * progspace.h (program_spaces): Change type.
10219 (ALL_PSPACES): Remove.
10220 (number_of_program_spaces): Don't declare.
10221 (struct program_space) <next>: Remove.
10222
10223 2020-05-08 Tom Tromey <tom@tromey.com>
10224
10225 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10226 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10227 (enable_break): Update.
10228 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10229 (frv_fdpic_find_canonical_descriptor): Update.
10230 (frv_fetch_objfile_link_map): Update.
10231 * progspace.c (program_space::free_all_objfiles): Update.
10232 (program_space::solibs): New method.
10233 * progspace.h (struct program_space) <solibs>: New method.
10234 * solist.h (master_so_list): Don't declare.
10235 (ALL_SO_LIBS): Remove.
10236 * solib.h (so_list_head): Remove.
10237 (update_solib_list): Update comment.
10238 * solib.c (master_so_list): Remove.
10239 (solib_used, update_solib_list, solib_add)
10240 (info_sharedlibrary_command, clear_solib)
10241 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10242
10243 2020-05-08 Tom Tromey <tom@tromey.com>
10244
10245 * extension.c (extension_languages): Now a std::array.
10246 (ALL_EXTENSION_LANGUAGES): Remove.
10247 (get_ext_lang_defn, get_ext_lang_of_file)
10248 (eval_ext_lang_from_control_command): Update.
10249 (finish_ext_lang_initialization)
10250 (auto_load_ext_lang_scripts_for_objfile)
10251 (ext_lang_type_printers::ext_lang_type_printers)
10252 (apply_ext_lang_type_printers)
10253 (ext_lang_type_printers::~ext_lang_type_printers)
10254 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10255 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10256 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10257 (get_matching_xmethod_workers, ext_lang_colorize)
10258 (ext_lang_before_prompt): Update.
10259 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10260
10261 2020-05-08 Tom Tromey <tom@tromey.com>
10262
10263 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10264 overload.
10265 <swap_string, m_string>: Remove.
10266 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10267 Update.
10268 * stabsread.c (define_symbol, read_type): Update.
10269 * linespec.c (find_linespec_symbols): Update.
10270 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10271 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10272 * dbxread.c (read_dbx_symtab): Update.
10273 * cp-support.h (cp_canonicalize_string_full)
10274 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10275 Return unique_xmalloc_ptr.
10276 * cp-support.c (inspect_type): Update.
10277 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10278 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10279 Likewise.
10280 * c-typeprint.c (print_name_maybe_canonical): Update.
10281 * break-catch-throw.c (check_status_exception_catchpoint):
10282 Update.
10283
10284 2020-05-08 Tom de Vries <tdevries@suse.de>
10285
10286 * infrun.c (follow_fork): Copy current_line and current_symtab to
10287 child thread.
10288
10289 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10290
10291 * async-event.c (struct async_signal_handler, struct
10292 async_event_handler): Reformat, remove typedef.
10293
10294 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10295
10296 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10297 access thistype->main_type->dyn_prop_list directly.
10298
10299 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10302 (remove_dyn_prop): Remove. Update all users to use
10303 type::remove_dyn_prop.
10304 * gdbtypes.c (remove_dyn_prop): Rename to...
10305 (type::remove_dyn_prop): ... this.
10306
10307 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10308
10309 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10310 (add_dyn_prop): Remove. Update all users to use
10311 type::add_dyn_prop.
10312 * gdbtypes.c (add_dyn_prop): Rename to...
10313 (type::add_dyn_prop): ... this.
10314
10315 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10318 (get_dyn_prop): Remove. Update all users to use
10319 type::dyn_prop.
10320 * gdbtypes.c (get_dyn_prop): Rename to...
10321 (type::dyn_prop): ... this.
10322
10323 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10326
10327 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10328
10329 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10330 instruction, skip it if it's there.
10331
10332 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10333
10334 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10335
10336 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10337
10338 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10339 * gdbtypes.c (recursive_dump_type): Remove use of
10340 TYPE_INCOMPLETE.
10341
10342 2020-05-03 Tom Tromey <tom@tromey.com>
10343
10344 * breakpoint.c (catch_command, tcatch_command): Remove.
10345 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10346 add_show_prefix_cmd.
10347 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10348 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10349 Remove.
10350 (add_internal_problem_command): Use add_basic_prefix_cmd,
10351 add_show_prefix_cmd.
10352 * mips-tdep.c (set_mipsfpu_command): Remove.
10353 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10354 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10355 (_initialize_index_cache): Use add_basic_prefix_cmd.
10356 * memattr.c (dummy_cmd): Remove.
10357 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10358 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10359 (_initialize_tui_win): Use add_basic_prefix_cmd,
10360 add_show_prefix_cmd.
10361 * cli/cli-logging.c (set_logging_command): Remove.
10362 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10363 add_show_prefix_cmd.
10364 (show_logging_command): Remove.
10365 * target.c (target_command): Remove.
10366 (add_target): Use add_basic_prefix_cmd.
10367
10368 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10369
10370 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10371
10372 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10373
10374 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10375 info_command.
10376
10377 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10378
10379 * nbsd-nat.c (nbsd_enable_proc_events)
10380 (nbsd_nat_target::post_startup_inferior): Add.
10381 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10382 (nbsd_nat_target::update_thread_list): Rewrite.
10383 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10384 "PTRACE_LWP_CREATE".
10385 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10386
10387 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10388
10389 * stack.c (_initialize_stack): Remove duplicated creation
10390 of "frame" command and "f" alias.
10391
10392 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10393
10394 PR gdb/18706
10395 * gdbtypes.c (check_typedef): Calculate size of array of
10396 stubbed type.
10397
10398 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10399
10400 PR gdb/15559
10401 * i386-tdep.c (i386_push_dummy_call): Call
10402 i386_thiscall_push_dummy_call.
10403 (i386_thiscall_push_dummy_call): New function.
10404 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10405 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10406 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10407
10408 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10409
10410 * gdbarch.sh (do_read): Add shellcheck disable directive for
10411 warning SC2162.
10412
10413 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10416 "referenced but not assigned" warning.
10417
10418 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * gdbarch.sh: Remove code that sets fallbackdefault.
10421
10422 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10423
10424 * gdbarch.sh: Use shell operators && and || instead of
10425 -a and -o.
10426
10427 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * gdbarch.sh: Use $(...) instead of `...`.
10430
10431 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * gdbarch.sh: Use double quotes around variables.
10434
10435 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * gdbarch.sh: Use %s with printf, instead of variables in the
10438 format string.
10439
10440 2020-04-29 Tom Tromey <tromey@adacore.com>
10441
10442 PR ada/25875:
10443 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10444 type fields here.
10445 (read_enumeration_type): Call
10446 update_enumeration_type_from_children later. Update comments.
10447 (process_enumeration_scope): Don't create type fields.
10448
10449 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10450
10451 * nbsd-tdep.c: Include "xml-syscall.h".
10452 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10453
10454 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10455
10456 * nbsd-nat.c: Include "sys/wait.h".
10457 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10458 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10459 (nbsd_nat_target::remove_exec_catchpoint)
10460 (nbsd_nat_target::set_syscall_catchpoint): Add.
10461 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10462 (nbsd_nat_target::insert_exec_catchpoint)
10463 (nbsd_nat_target::remove_exec_catchpoint)
10464 (nbsd_nat_target::set_syscall_catchpoint): Add.
10465 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10466 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10467 `nbsd_get_syscall_number'.
10468
10469 2020-04-29 Tom Tromey <tom@tromey.com>
10470
10471 * stack.c (print_block_frame_labels): Remove.
10472
10473 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10474
10475 PR gdb/17320
10476 * ada-valprint.c (val_print_packed_array_elements): Move array
10477 end bracket to new line.
10478 (ada_val_print_string): Remove extra spaces before first array
10479 element.
10480 * c-valprint.c (c_value_print_array): Likewise.
10481 * m2-valprint.c (m2_print_array_contents): Likewise.
10482 (m2_value_print_inner): Likewise.
10483 * p-valprint.c (pascal_value_print_inner): Likewise.
10484 * valprint.c (generic_val_print_array): Likewise.
10485 (value_print_array_elements): Move first array element and array
10486 end bracket to new line.
10487
10488 2020-04-29 Tom de Vries <tdevries@suse.de>
10489
10490 PR symtab/25889
10491 * linespec.c (find_method): Fix ix calculation.
10492
10493 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10494
10495 * syscalls/update-netbsd.sh: New file.
10496 * syscalls/netbsd.xml: Regenerate.
10497 * data-directory/Makefile.in: Register `netbsd.xml' in
10498 `SYSCALLS_FILES'.
10499
10500 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10501
10502 * syscalls/update-freebsd.sh: Add double quotes.
10503
10504 2020-04-28 Tom Tromey <tom@tromey.com>
10505
10506 * NEWS: Update.
10507 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10508 (cmdpy_init): Allow class_tui.
10509
10510 2020-04-28 Mark Williams <mark@myosotissp.com>
10511
10512 PR gdb/24480
10513 * dwarf2read.c: Add missing assingments to list_in_scope when
10514 start_symtab was already called.
10515
10516 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10517
10518 PR gdb/25881
10519 * dwarf2/read.c (offset_map_type): Use
10520 gdb:hash_enum<sect_offset> as hash function.
10521
10522 2020-04-28 Tom de Vries <tdevries@suse.de>
10523
10524 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10525 with DW_AT_signature.
10526
10527 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * configure.ac: Remove check for fs_base/gs_base in
10530 user_regs_struct.
10531 * configure: Re-generate.
10532 * config.in: Re-generate.
10533 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10534 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10535 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10536
10537 2020-04-27 Luis Machado <luis.machado@linaro.org>
10538
10539 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10540 problematic inline frame unwinding situation.
10541 * frame.c (frame_id_computed_p): New function.
10542 * frame.h (frame_id_computed_p): New prototype.
10543
10544 2020-04-26 Tom Tromey <tom@tromey.com>
10545
10546 * command.h (enum command_class) <class_pseudo>: Remove.
10547
10548 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10549
10550 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10551 and whitespace.
10552
10553 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10554
10555 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10556 `PT_GET_PROCESS_STATE' block.
10557
10558 2020-04-24 Tom Tromey <tom@tromey.com>
10559
10560 * symtab.h (symbol_get_demangled_name): Don't declare.
10561 * symtab.c (symbol_get_demangled_name): Remove.
10562 (general_symbol_info::natural_name)
10563 (general_symbol_info::demangled_name): Update.
10564
10565 2020-04-24 Tom Tromey <tom@tromey.com>
10566
10567 PR rust/25025:
10568 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10569
10570 2020-04-24 Tom Tromey <tom@tromey.com>
10571
10572 PR symtab/12707:
10573 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10574 exists.
10575 (new_symbol): Likewise.
10576 * compile/compile-object-load.c (get_out_value_type): Use
10577 symbol_matches_search_name.
10578
10579 2020-04-24 Tom Tromey <tom@tromey.com>
10580
10581 * dwarf2/read.c (add_partial_symbol): Do not call
10582 compute_and_set_names.
10583
10584 2020-04-24 Tom Tromey <tom@tromey.com>
10585
10586 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10587 overload.
10588
10589 2020-04-24 Tom Tromey <tom@tromey.com>
10590
10591 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10592 (add_psymbol_to_list): New overload. Make old overload call new
10593 one.
10594 * psympriv.h (add_psymbol_to_list): New overload.
10595
10596 2020-04-24 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2/read.c (partial_die_info::read) <case
10599 DW_AT_linkage_name>: Use value_as_string.
10600 (dwarf2_string_attr): Use value_as_string.
10601 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10602 method.
10603 * dwarf2/attribute.c (attribute::value_as_string): New method.
10604
10605 2020-04-24 Tom Tromey <tom@tromey.com>
10606
10607 * symtab.c (general_symbol_info::natural_name)
10608 (general_symbol_info::demangled_name): Check for language_rust.
10609
10610 2020-04-24 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10613 (dwarf2_physname): ... from here.
10614 (partial_die_info::read): Add Rust "{" hack.
10615
10616 2020-04-24 Tom Tromey <tom@tromey.com>
10617
10618 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10619 method.
10620 (symbol_set_demangled_name): Don't declare.
10621 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10622 symbol_set_demangled_name.
10623 (general_symbol_info::set_language)
10624 (general_symbol_info::compute_and_set_names): Update.
10625 * minsyms.c (minimal_symbol_reader::install): Update.
10626 * dwarf2/read.c (new_symbol): Update.
10627
10628 2020-04-24 Tom Tromey <tromey@adacore.com>
10629
10630 PR python/23662:
10631 * python/py-type.c (convert_field): Handle
10632 FIELD_LOC_KIND_DWARF_BLOCK.
10633 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10634 (typy_get_dynamic): Nw function.
10635 (type_object_getset): Add "dynamic".
10636 * NEWS: Add entry.
10637
10638 2020-04-24 Tom Tromey <tromey@adacore.com>
10639
10640 * ada-typeprint.c (print_choices, print_variant_part)
10641 (print_record_field_types_dynamic): New functions.
10642 (print_record_field_types): Use print_record_field_types_dynamic.
10643
10644 2020-04-24 Tom Tromey <tromey@adacore.com>
10645
10646 * dwarf2/read.c (handle_data_member_location): New overload.
10647 (dwarf2_add_field): Use it.
10648 (decode_locdesc): Add "computed" parameter. Update comment.
10649 * gdbtypes.c (is_dynamic_type_internal): Also look for
10650 FIELD_LOC_KIND_DWARF_BLOCK.
10651 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10652 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10653 virtual base classes.
10654 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10655 FIELD_LOC_KIND_DWARF_BLOCK.
10656
10657 2020-04-24 Tom Tromey <tromey@adacore.com>
10658
10659 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10660 * gdbtypes.c (is_dynamic_type_internal): Check
10661 TYPE_HAS_DYNAMIC_LENGTH.
10662 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10663 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10664 New macros.
10665 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10666 constant.
10667
10668 2020-04-24 Tom Tromey <tromey@adacore.com>
10669
10670 * dwarf2/read.c (struct variant_field): Rewrite.
10671 (struct variant_part_builder): New.
10672 (struct nextfield): Remove "variant" field. Add "offset".
10673 (struct field_info): Add "current_variant_part" and
10674 "variant_parts".
10675 (alloc_discriminant_info): Remove.
10676 (alloc_rust_variant): New function.
10677 (quirk_rust_enum): Update.
10678 (dwarf2_add_field): Set "offset" member. Don't handle
10679 DW_TAG_variant_part.
10680 (offset_map_type): New typedef.
10681 (convert_variant_range, create_one_variant)
10682 (create_one_variant_part, create_variant_parts)
10683 (add_variant_property): New functions.
10684 (dwarf2_attach_fields_to_type): Call add_variant_property.
10685 (read_structure_type): Don't handle DW_TAG_variant_part.
10686 (handle_variant_part, handle_variant): New functions.
10687 (handle_struct_member_die): Use them.
10688 (process_structure_scope): Don't handle variant parts.
10689 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10690 (struct discriminant_info): Remove.
10691 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10692 (struct main_type) <flag_discriminated_union>: Remove.
10693 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10694 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10695 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10696 Update.
10697 * valops.c (value_union_variant): Remove.
10698 * value.h (value_union_variant): Don't declare.
10699
10700 2020-04-24 Tom Tromey <tromey@adacore.com>
10701
10702 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10703 (ada_value_primitive_packed_val): Update.
10704 * ada-valprint.c (ada_value_print_1): Update.
10705 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10706 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10707 just an address. Use evaluate_for_locexpr_baton.
10708 (dwarf2_evaluate_property): Update.
10709 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10710 array_view.
10711 * findvar.c (default_read_var_value): Update.
10712 * gdbtypes.c (compute_variant_fields_inner)
10713 (resolve_dynamic_type_internal): Update.
10714 (resolve_dynamic_type): Change type of valaddr parameter.
10715 * gdbtypes.h (resolve_dynamic_type): Update.
10716 * valarith.c (value_subscripted_rvalue): Update.
10717 * value.c (value_from_contents_and_address): Update.
10718
10719 2020-04-24 Tom Tromey <tromey@adacore.com>
10720
10721 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10722 "push_initial_value" parameter.
10723 (dwarf2_evaluate_property): Likewise.
10724 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10725
10726 2020-04-24 Tom Tromey <tromey@adacore.com>
10727
10728 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10729 (variant::matches, compute_variant_fields_recurse)
10730 (compute_variant_fields_inner, compute_variant_fields): New
10731 functions.
10732 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10733 Use resolved_type after type is made.
10734 (operator==): Add new cases.
10735 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10736 (struct discriminant_range, struct variant, struct variant_part):
10737 New.
10738 (union dynamic_prop_data) <variant_parts, original_type>: New
10739 members.
10740 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10741 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10742 constants.
10743 * value.c (unpack_bits_as_long): Now public.
10744 * value.h (unpack_bits_as_long): Declare.
10745
10746 2020-04-24 Tom Tromey <tromey@adacore.com>
10747
10748 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10749 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10750
10751 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10752
10753 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10754
10755 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10756
10757 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10758 (remove_fork_catchpoint, post_startup_inferior)
10759 (post_attach): Move...
10760 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10761 (remove_fork_catchpoint, post_startup_inferior)
10762 (post_attach): ...here.
10763 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10764 (remove_fork_catchpoint, post_startup_inferior)
10765 (post_attach): Move...
10766 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10767 (remove_fork_catchpoint, post_startup_inferior)
10768 (post_attach): ...here.
10769
10770 2020-04-24 Tom Tromey <tromey@adacore.com>
10771
10772 * nat/windows-nat.h (struct windows_thread_info)
10773 <pc_adjusted>: New member.
10774 * windows-nat.c (windows_fetch_one_register): Check
10775 pc_adjusted.
10776 (windows_nat_target::get_windows_debug_event)
10777 (windows_nat_target::wait): Set pc_adjusted.
10778
10779 2020-04-24 Tom de Vries <tdevries@suse.de>
10780
10781 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10782 Run gdb-add-index inside temp dir.
10783
10784 2020-04-23 Tom Tromey <tromey@adacore.com>
10785
10786 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10787 in loop.
10788
10789 2020-04-23 Luis Machado <luis.machado@linaro.org>
10790
10791 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10792 get_frame_register instead of gdbarch_unwind_pc.
10793
10794 2020-04-23 Tom de Vries <tdevries@suse.de>
10795
10796 * symtab.c (lookup_global_symbol): Prefer def over decl.
10797
10798 2020-04-23 Tom de Vries <tdevries@suse.de>
10799
10800 PR symtab/25807
10801 * block.c (best_symbol, better_symbol): Promote to external.
10802 * block.h (best_symbol, better_symbol): Declare.
10803 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10804 decl.
10805
10806 2020-04-23 Tom Tromey <tromey@adacore.com>
10807
10808 PR ada/25837:
10809 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10810 "const char *", not a "const std::string &".
10811 <name_and_matcher::operator==>: Update.
10812 * unittests/lookup_name_info-selftests.c: Change type of
10813 "result".
10814
10815 2020-04-23 Tom Tromey <tom@tromey.com>
10816
10817 * inferior.h (iterate_over_inferiors): Don't declare.
10818 * inferior.c (iterate_over_inferiors): Remove.
10819 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10820 Remove.
10821 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10822 use iterate_over_inferiors.
10823 (darwin_resume_inferior_it)
10824 (struct resume_inferior_threads_param)
10825 (darwin_resume_inferior_threads_it): Remove.
10826 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10827
10828 2020-04-23 Tom de Vries <tdevries@suse.de>
10829
10830 * blockframe.c (find_pc_partial_function): Use
10831 find_pc_sect_compunit_symtab rather than
10832 objfile->sf->qf->find_pc_sect_compunit_symtab.
10833
10834 2020-04-22 Tom de Vries <tdevries@suse.de>
10835
10836 PR symtab/25764
10837 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10838 in psymtabs.
10839
10840 2020-04-22 Tom de Vries <tdevries@suse.de>
10841
10842 PR symtab/25801
10843 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10844 symtabs.
10845
10846 2020-04-22 Tom de Vries <tdevries@suse.de>
10847
10848 PR symtab/25700
10849 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10850 CU if already created.
10851
10852 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10853
10854 * infrun.c (displaced_step_fixup): Switch to the event_thread
10855 before calling displaced_step_restore, not after.
10856
10857 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10858
10859 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10860 its inferior is not recorded by us.
10861 (record_btrace_target_open): Replace call to
10862 all_non_exited_threads () with call to current_inferior
10863 ()->non_exited_threads ().
10864 (record_btrace_target::stop_recording): Likewise.
10865 (record_btrace_target::close): Likewise.
10866 (record_btrace_target::wait): Likewise.
10867 (record_btrace_target::record_stop_replaying): Likewise.
10868
10869 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10870
10871 * btrace.c (btrace_enable): Throw an error on double enables and
10872 when enabling recording fails.
10873 (btrace_disable): Throw an error if the thread is not recorded.
10874
10875 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10876
10877 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10878 request if we do not have a thread_info.
10879
10880 2020-04-21 Tom de Vries <tdevries@suse.de>
10881
10882 PR gdb/25471
10883 * thread.c
10884 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10885 exception in get_frame_id.
10886
10887 2020-04-20 Tom Tromey <tromey@adacore.com>
10888
10889 * python/python.c (struct gdbpy_event): Mark move constructor as
10890 noexcept.
10891 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10892 constructor as noexcept.
10893 * completer.h (struct completion_result): Mark move constructor as
10894 noexcept.
10895 * completer.c (completion_result::completion_result): Use
10896 initialization style. Don't call reset_match_list.
10897
10898 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10899
10900 * MAINTAINERS (Write After Approval): Add myself.
10901
10902 2020-04-18 Tom Tromey <tom@tromey.com>
10903
10904 * windows-tdep.c (init_w32_command_list)
10905 (w32_prefix_command_valid): Restore.
10906 (_initialize_windows_tdep): Call init_w32_command_list.
10907
10908 2020-04-18 Tom Tromey <tom@tromey.com>
10909
10910 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10911 * value.c (value_fn_field): Update.
10912 * valops.c (find_function_in_inferior)
10913 (value_allocate_space_in_inferior): Update.
10914 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10915 Update.
10916 * tui/tui-source.c (tui_source_window::set_contents): Update.
10917 * symtab.c (lookup_global_or_static_symbol)
10918 (find_function_start_sal_1, skip_prologue_sal)
10919 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10920 * symmisc.c (dump_msymbols, dump_symtab_1)
10921 (maintenance_print_one_line_table): Update.
10922 * symfile.c (init_entry_point_info, section_is_mapped)
10923 (list_overlays_command, simple_read_overlay_table)
10924 (simple_overlay_update_1): Update.
10925 * stap-probe.c (handle_stap_probe): Update.
10926 * stabsread.c (dbx_init_float_type, define_symbol)
10927 (read_one_struct_field, read_enum_type, read_range_type): Update.
10928 * source.c (info_line_command): Update.
10929 * python/python.c (gdbpy_source_objfile_script)
10930 (gdbpy_execute_objfile_script): Update.
10931 * python/py-type.c (save_objfile_types): Update.
10932 * python/py-objfile.c (py_free_objfile): Update.
10933 * python/py-inferior.c (python_new_objfile): Update.
10934 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10935 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10936 (maintenance_check_psymtabs): Update.
10937 * printcmd.c (info_address_command): Update.
10938 * objfiles.h (struct objfile) <arch>: New method, from
10939 get_objfile_arch.
10940 (get_objfile_arch): Don't declare.
10941 * objfiles.c (get_objfile_arch): Remove.
10942 (filter_overlapping_sections): Update.
10943 * minsyms.c (msymbol_is_function): Update.
10944 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10945 (output_nondebug_symbol): Update.
10946 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10947 (mdebug_expand_psymtab): Update.
10948 * machoread.c (macho_add_oso_symfile): Update.
10949 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10950 Update.
10951 * linux-fork.c (checkpoint_command): Update.
10952 * linespec.c (convert_linespec_to_sals): Update.
10953 * jit.c (finalize_symtab): Update.
10954 * infrun.c (insert_exception_resume_from_probe): Update.
10955 * ia64-tdep.c (ia64_find_unwind_table): Update.
10956 * hppa-tdep.c (internalize_unwinds): Update.
10957 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10958 Update.
10959 * gcore.c (call_target_sbrk): Update.
10960 * elfread.c (record_minimal_symbol, elf_symtab_read)
10961 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10962 (elf_gnu_ifunc_resolve_by_got): Update.
10963 * dwarf2/read.c (create_addrmap_from_index)
10964 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10965 (read_debug_names_from_section)
10966 (process_psymtab_comp_unit_reader, add_partial_symbol)
10967 (add_partial_subprogram, process_full_comp_unit)
10968 (read_file_scope, read_func_scope, read_lexical_block_scope)
10969 (read_call_site_scope, dwarf2_ranges_read)
10970 (dwarf2_record_block_ranges, dwarf2_add_field)
10971 (mark_common_block_symbol_computed, read_tag_pointer_type)
10972 (read_tag_string_type, dwarf2_init_float_type)
10973 (dwarf2_init_complex_target_type, read_base_type)
10974 (partial_die_info::read, partial_die_info::read)
10975 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10976 (dwarf2_fetch_die_loc_sect_off): Update.
10977 * dwarf2/loc.c (dwarf2_find_location_expression)
10978 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10979 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10980 (dwarf2_loc_desc_get_symbol_read_needs)
10981 (locexpr_describe_location_piece, locexpr_describe_location_1)
10982 (loclist_describe_location): Update.
10983 * dwarf2/index-write.c (write_debug_names): Update.
10984 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10985 * dtrace-probe.c (dtrace_process_dof): Update.
10986 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10987 (process_one_symbol): Update.
10988 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10989 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10990 (coff_read_enum_type): Update.
10991 * cli/cli-cmds.c (edit_command, list_command): Update.
10992 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10993 * breakpoint.c (create_overlay_event_breakpoint)
10994 (create_longjmp_master_breakpoint)
10995 (create_std_terminate_master_breakpoint)
10996 (create_exception_master_breakpoint, get_sal_arch): Update.
10997 * block.c (block_gdbarch): Update.
10998 * annotate.c (annotate_source_line): Update.
10999
11000 2020-04-17 Tom Tromey <tromey@adacore.com>
11001
11002 * auto-load.c (show_auto_load_cmd): Remove.
11003 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11004 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11005 (maintenance_print_arc_command): Remove.
11006 * tui/tui-win.c (tui_command): Remove.
11007 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11008 * tui/tui-layout.c (tui_layout_command): Remove.
11009 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11010 * python/python.c (user_set_python, user_show_python): Remove.
11011 (_initialize_python): Use add_basic_prefix_cmd,
11012 add_show_prefix_cmd.
11013 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11014 (install_gdb_commands): Use add_basic_prefix_cmd,
11015 add_show_prefix_cmd.
11016 (info_guile_command): Remove.
11017 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11018 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11019 add_show_prefix_cmd.
11020 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11021 Remove do_set and do_show parameters.
11022 * cli/cli-style.c (set_style, show_style): Remove.
11023 (_initialize_cli_style): Use add_basic_prefix_cmd,
11024 add_show_prefix_cmd.
11025 (cli_style_option::add_setshow_commands): Remove do_set and
11026 do_show parameters.
11027 (cli_style_option::add_setshow_commands): Use
11028 add_basic_prefix_cmd, add_show_prefix_cmd.
11029 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11030 (set_style_name): Remove.
11031 * cli/cli-dump.c (dump_command, append_command): Remove.
11032 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11033 (tekhex_dump_command, binary_dump_command)
11034 (binary_append_command): Remove.
11035 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11036 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11037 (init_w32_command_list): Remove; move into ...
11038 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11039 * valprint.c (set_print, show_print, set_print_raw)
11040 (show_print_raw): Remove.
11041 (_initialize_valprint): Use add_basic_prefix_cmd,
11042 add_show_prefix_cmd.
11043 * typeprint.c (set_print_type, show_print_type): Remove.
11044 (_initialize_typeprint): Use add_basic_prefix_cmd,
11045 add_show_prefix_cmd.
11046 * record.c (set_record_command, show_record_command): Remove.
11047 (_initialize_record): Use add_basic_prefix_cmd,
11048 add_show_prefix_cmd.
11049 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11050 add_show_prefix_cmd.
11051 (info_command, show_command, set_debug, show_debug): Remove.
11052 * top.h (set_history, show_history): Don't declare.
11053 * top.c (set_history, show_history): Remove.
11054 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11055 (unset_tdesc_cmd): Remove.
11056 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11057 add_show_prefix_cmd.
11058 * symtab.c (info_module_command): Remove.
11059 (_initialize_symtab): Use add_basic_prefix_cmd.
11060 * symfile.c (overlay_command): Remove.
11061 (_initialize_symfile): Use add_basic_prefix_cmd.
11062 * sparc64-tdep.c (info_adi_command): Remove.
11063 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11064 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11065 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11066 add_show_prefix_cmd.
11067 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11068 (_initialize_serial): Use add_basic_prefix_cmd,
11069 add_show_prefix_cmd.
11070 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11071 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11072 add_show_prefix_cmd.
11073 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11074 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11075 add_show_prefix_cmd.
11076 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11077 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11078 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11079 add_show_prefix_cmd.
11080 * remote.c (remote_command, set_remote_cmd): Remove.
11081 (_initialize_remote): Use add_basic_prefix_cmd.
11082 * record-full.c (set_record_full_command)
11083 (show_record_full_command): Remove.
11084 (_initialize_record_full): Use add_basic_prefix_cmd,
11085 add_show_prefix_cmd.
11086 * record-btrace.c (cmd_set_record_btrace)
11087 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11088 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11089 (cmd_show_record_btrace_pt): Remove.
11090 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 * ravenscar-thread.c (set_ravenscar_command)
11093 (show_ravenscar_command): Remove.
11094 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11095 add_show_prefix_cmd.
11096 * mips-tdep.c (show_mips_command, set_mips_command)
11097 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11098 add_show_prefix_cmd.
11099 * maint.c (maintenance_command, maintenance_info_command)
11100 (maintenance_check_command, maintenance_print_command)
11101 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11102 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11103 add_show_prefix_cmd.
11104 (show_per_command_cmd): Remove.
11105 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11106 Remove.
11107 (maintenance_show_test_settings_cmd): Remove.
11108 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 * maint-test-options.c (maintenance_test_options_command):
11111 Remove.
11112 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11113 * macrocmd.c (macro_command): Remove
11114 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11115 * language.c (set_check, show_check): Remove.
11116 (_initialize_language): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 * infcmd.c (unset_command): Remove.
11119 (_initialize_infcmd): Use add_basic_prefix_cmd.
11120 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11121 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11122 add_show_prefix_cmd.
11123 * go32-nat.c (go32_info_dos_command): Remove.
11124 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11125 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11126 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11127 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11128 (_initialize_frame): Use add_basic_prefix_cmd,
11129 add_show_prefix_cmd.
11130 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11131 (_initialize_dcache): Use add_basic_prefix_cmd,
11132 add_show_prefix_cmd.
11133 * cp-support.c (maint_cplus_command): Remove.
11134 (_initialize_cp_support): Use add_basic_prefix_cmd.
11135 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11136 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11137 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11138 add_basic_prefix_cmd, add_show_prefix_cmd.
11139 * breakpoint.c (save_command): Remove.
11140 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11141 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11142 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11143 add_show_prefix_cmd.
11144 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11145 (set_ada_command, show_ada_command): Remove.
11146 (_initialize_ada_language): Use add_basic_prefix_cmd,
11147 add_show_prefix_cmd.
11148 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11149
11150 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11151
11152 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11153 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11154
11155 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11156
11157 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11158 warning messages.
11159
11160 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11161
11162 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11163 import table is not at beginning of .idata section.
11164
11165 2020-04-16 Pedro Alves <palves@redhat.com>
11166
11167 * inferior.c (delete_inferior): Use delete operator directly
11168 instead of delete_program_space.
11169 * progspace.c (add_program_space): New, factored out from
11170 program_space::program_space.
11171 (remove_program_space): New, factored out from
11172 delete_program_space.
11173 (program_space::program_space): Remove intro comment. Rewrite.
11174 (program_space::~program_space): Remove intro comment. Call
11175 remove_program_space.
11176 (delete_program_space): Delete.
11177 * progspace.h (program_space::program_space): Make explicit. Move
11178 intro comment here, adjusted.
11179 (program_space::~program_space): Move intro comment here,
11180 adjusted.
11181 (delete_program_space): Remove.
11182
11183 2020-04-16 Tom Tromey <tromey@adacore.com>
11184
11185 * windows-nat.c (windows_nat::handle_access_violation): New
11186 function.
11187 * nat/windows-nat.h (handle_access_violation): Declare.
11188 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11189 windows-nat.c. Call handle_access_violation.
11190
11191 2020-04-16 Tom de Vries <tdevries@suse.de>
11192
11193 PR symtab/25791
11194 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11195 CUs without psymtab.
11196
11197 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11198
11199 * python/python.c (do_start_initialization): Don't call
11200 PyEval_InitThreads for Python 3.9 and beyond.
11201
11202 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11203
11204 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11205 thread functions.
11206 (obsd_nat_target::wait): Likewise.
11207
11208 2020-04-15 Tom Tromey <tromey@adacore.com>
11209
11210 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11211 (DEBUG_EXCEPT): Use debug_printf.
11212
11213 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11214
11215 * completer.c (class completion_tracker::completion_hash_entry)
11216 <hash_name>: New member function.
11217 (completion_tracker::discard_completions): New callback to hash a
11218 completion_hash_entry, pass this to htab_create_alloc.
11219
11220 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11221
11222 * windows-nat.c (windows_make_so): Warn rather than stopping with
11223 an error if realpath() fails.
11224
11225 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11226
11227 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11228 (nbsd_nat_target::info_proc): Add do_status.
11229
11230 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11231 Tom de Vries <tdevries@suse.de>
11232
11233 PR symtab/25718
11234 * psympriv.h (struct partial_symtab::read_symtab)
11235 (struct partial_symtab::expand_psymtab)
11236 (struct partial_symtab::read_dependencies): Update comments.
11237 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11238 read_symtab for includer.
11239 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11240 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11241 (struct dwarf2_include_psymtab::m_readin): Remove.
11242 (struct dwarf2_include_psymtab::includer): New member function.
11243 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11244
11245 2020-04-14 Tom de Vries <tdevries@suse.de>
11246
11247 PR symtab/25720
11248 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11249 with NULL symbol_matcher and lookup_name.
11250 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11251 and lookup_name.
11252 * dwarf2/read.c (dw2_expand_symtabs_matching)
11253 (dw2_debug_names_expand_symtabs_matching): Same.
11254 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11255 Make lookup_name a pointer. Update comment.
11256 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11257 lookup_name being a pointer.
11258 * symfile.c (expand_symtabs_matching): Same.
11259 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11260 * linespec.c (iterate_over_all_matching_symtabs): Same.
11261
11262 2020-04-13 Tom Tromey <tom@tromey.com>
11263
11264 * run-on-main-thread.c: Update include.
11265 * unittests/main-thread-selftests.c: Update include.
11266 * tui/tui-win.c: Update include.
11267 * tui/tui-io.c: Update include.
11268 * tui/tui-interp.c: Update include.
11269 * tui/tui-hooks.c: Update include.
11270 * top.h: Update include.
11271 * top.c: Update include.
11272 * ser-base.c: Update include.
11273 * remote.c: Update include.
11274 * remote-notif.c: Update include.
11275 * remote-fileio.c: Update include.
11276 * record-full.c: Update include.
11277 * record-btrace.c: Update include.
11278 * python/python.c: Update include.
11279 * posix-hdep.c: Update include.
11280 * mingw-hdep.c: Update include.
11281 * mi/mi-main.c: Update include.
11282 * mi/mi-interp.c: Update include.
11283 * main.c: Update include.
11284 * linux-nat.c: Update include.
11285 * interps.c: Update include.
11286 * infrun.c: Update include.
11287 * inf-loop.c: Update include.
11288 * event-top.c: Update include.
11289 * event-loop.c: Move to ../gdbsupport/.
11290 * event-loop.h: Move to ../gdbsupport/.
11291 * async-event.h: Update include.
11292 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11293
11294 2020-04-13 Tom Tromey <tom@tromey.com>
11295
11296 * tui/tui-win.c: Include async-event.h.
11297 * remote.c: Include async-event.h.
11298 * remote-notif.c: Include async-event.h.
11299 * record-full.c: Include async-event.h.
11300 * record-btrace.c: Include async-event.h.
11301 * infrun.c: Include async-event.h.
11302 * event-top.c: Include async-event.h.
11303 * event-loop.h: Move some declarations to async-event.h.
11304 * event-loop.c: Don't include ser-event.h or top.h. Move some
11305 code to async-event.c.
11306 * async-event.h: New file.
11307 * async-event.c: New file.
11308 * Makefile.in (COMMON_SFILES): Add async-event.c.
11309 (HFILES_NO_SRCDIR): Add async-event.h.
11310
11311 2020-04-13 Tom Tromey <tom@tromey.com>
11312
11313 * utils.c (flush_streams): New function.
11314 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11315
11316 2020-04-13 Tom Tromey <tom@tromey.com>
11317
11318 * event-loop.c (handle_file_event): Use warning, not
11319 printf_unfiltered.
11320
11321 2020-04-13 Tom Tromey <tom@tromey.com>
11322
11323 * event-loop.c: Include <chrono>.
11324
11325 2020-04-13 Tom Tromey <tom@tromey.com>
11326
11327 * gdb_select.h: Move to ../gdbsupport/.
11328 * event-loop.c: Update include path.
11329 * top.c: Update include path.
11330 * ser-base.c: Update include path.
11331 * ui-file.c: Update include path.
11332 * ser-tcp.c: Update include path.
11333 * guile/scm-ports.c: Update include path.
11334 * posix-hdep.c: Update include path.
11335 * ser-unix.c: Update include path.
11336 * gdb_usleep.c: Update include path.
11337 * mingw-hdep.c: Update include path.
11338 * inflow.c: Update include path.
11339 * infrun.c: Update include path.
11340 * event-top.c: Update include path.
11341
11342 2020-04-13 Tom Tromey <tom@tromey.com>
11343
11344 * configure: Rebuild.
11345 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11346
11347 2020-04-13 Tom Tromey <tom@tromey.com>
11348
11349 * event-loop.h (start_event_loop): Don't declare.
11350 * event-loop.c (start_event_loop): Move...
11351 * main.c (start_event_loop): ...here. Now static.
11352
11353 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11354
11355 * MAINTAINERS: Update my email address.
11356
11357 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11358
11359 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11360 IP_ALL.
11361
11362 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11363
11364 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11365 (nbsd_nat_target::info_proc): Add do_cmdline.
11366
11367 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11368
11369 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11370 (nbsd_nat_target::info_proc): Add do_cwd.
11371
11372 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11373
11374 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11375
11376 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11377
11378 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11379 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11380 (nbsd_nat_target::info_proc): New functions.
11381 * nbsd-nat.c (kinfo_get_vmmap): New function.
11382 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11383 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11384 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11385 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11386 functions.
11387 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11388 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11389 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11390 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11391 (KINFO_VME_FLAG_GROWS_DOWN): New.
11392
11393 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11394
11395 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11396 bit shift.
11397
11398 2020-04-10 Tom Tromey <tromey@adacore.com>
11399
11400 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11401
11402 2020-04-10 Tom Tromey <tromey@adacore.com>
11403
11404 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11405 separate debug files.
11406
11407 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11408
11409 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11410 Move to...
11411 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11412 ... here.
11413 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11414 Check for STATUS_WX86_BREAKPOINT.
11415 (windows_nat_target::wait): Same.
11416
11417 2020-04-10 Tom de Vries <tdevries@suse.de>
11418
11419 PR cli/25808
11420 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11421
11422 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11423
11424 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11425 (Write After Approval): Remove Tom de Vries.
11426
11427 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11428
11429 revert partially:
11430 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11431
11432 * buildsym.c (record_line): Fix undefined behavior and preserve
11433 lines at eof.
11434
11435 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11436
11437 * auxv.h (svr4_auxv_parse): New.
11438 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11439 and generic_auxv_parse.
11440 (svr4_auxv_parse): Add.
11441 * obsd-tdep.c: Include "auxv.h".
11442 (obsd_auxv_parse): Remove.
11443 (obsd_init_abi): Remove comment.
11444 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11445 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11446 * nbsd-tdep.c: Include "auxv.h".
11447 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11448
11449 2020-04-08 Tom Tromey <tromey@adacore.com>
11450
11451 * nat/windows-nat.h (last_wait_event): Don't declare.
11452 (wait_for_debug_event): Update comment.
11453 * nat/windows-nat.c (last_wait_event): Now static.
11454
11455 2020-04-08 Tom Tromey <tromey@adacore.com>
11456
11457 * windows-nat.c (wait_for_debug_event): Move to
11458 nat/windows-nat.c.
11459 * nat/windows-nat.h (wait_for_debug_event): Declare.
11460 * nat/windows-nat.c (wait_for_debug_event): Move from
11461 windows-nat.c. No longer static.
11462
11463 2020-04-08 Tom Tromey <tromey@adacore.com>
11464
11465 * windows-nat.c (get_windows_debug_event): Use
11466 fetch_pending_stop.
11467 * nat/windows-nat.h (fetch_pending_stop): Declare.
11468 * nat/windows-nat.c (fetch_pending_stop): New function.
11469
11470 2020-04-08 Tom Tromey <tromey@adacore.com>
11471
11472 * windows-nat.c (windows_continue): Use matching_pending_stop and
11473 continue_last_debug_event.
11474 * nat/windows-nat.h (matching_pending_stop)
11475 (continue_last_debug_event): Declare.
11476 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11477 (matching_pending_stop, continue_last_debug_event): New
11478 functions.
11479
11480 2020-04-08 Tom Tromey <tromey@adacore.com>
11481
11482 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11483 (handle_exception_result): Move to nat/windows-nat.h.
11484 (DEBUG_EXCEPTION_SIMPLE): Remove.
11485 (windows_nat::handle_ms_vc_exception): New function.
11486 (handle_exception): Move to nat/windows-nat.c.
11487 (get_windows_debug_event): Update.
11488 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11489 nat/windows-nat.c.
11490 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11491 (handle_exception_result): Move from windows-nat.c.
11492 (handle_exception): Declare.
11493 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11494 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11495 windows-nat.c.
11496
11497 2020-04-08 Tom Tromey <tromey@adacore.com>
11498
11499 * windows-nat.c (exception_count, event_count): Remove.
11500 (handle_exception, get_windows_debug_event)
11501 (do_initial_windows_stuff): Update.
11502
11503 2020-04-08 Tom Tromey <tromey@adacore.com>
11504
11505 * windows-nat.c (windows_nat::handle_load_dll)
11506 (windows_nat::handle_unload_dll): Rename. No longer static.
11507 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11508 Declare.
11509
11510 2020-04-08 Tom Tromey <tromey@adacore.com>
11511
11512 * complaints.h (stop_whining): Declare at top-level.
11513 (complaint): Don't declare stop_whining.
11514
11515 2020-04-08 Tom Tromey <tromey@adacore.com>
11516
11517 * windows-nat.c (windows_nat::handle_output_debug_string):
11518 Rename. No longer static.
11519 * nat/windows-nat.h (handle_output_debug_string): Declare.
11520
11521 2020-04-08 Tom Tromey <tromey@adacore.com>
11522
11523 * windows-nat.c (current_process_handle, current_process_id)
11524 (main_thread_id, last_sig, current_event, last_wait_event)
11525 (current_windows_thread, desired_stop_thread_id, pending_stops)
11526 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11527 (display_selectors, fake_create_process)
11528 (get_windows_debug_event): Update.
11529 * nat/windows-nat.h (current_process_handle, current_process_id)
11530 (main_thread_id, last_sig, current_event, last_wait_event)
11531 (current_windows_thread, desired_stop_thread_id, pending_stops)
11532 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11533 * nat/windows-nat.c (current_process_handle, current_process_id)
11534 (main_thread_id, last_sig, current_event, last_wait_event)
11535 (current_windows_thread, desired_stop_thread_id, pending_stops)
11536 (siginfo_er): New globals. Move from windows-nat.c.
11537
11538 2020-04-08 Tom Tromey <tromey@adacore.com>
11539
11540 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11541 (handle_load_dll): Update.
11542 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11543
11544 2020-04-08 Tom Tromey <tromey@adacore.com>
11545
11546 * windows-nat.c (enum thread_disposition_type): Move to
11547 nat/windows-nat.h.
11548 (windows_nat::thread_rec): Rename from thread_rec. No longer
11549 static.
11550 (windows_add_thread, windows_nat_target::fetch_registers)
11551 (windows_nat_target::store_registers, handle_exception)
11552 (windows_nat_target::resume, get_windows_debug_event)
11553 (windows_nat_target::get_tib_address)
11554 (windows_nat_target::thread_name)
11555 (windows_nat_target::thread_alive): Update.
11556 * nat/windows-nat.h (enum thread_disposition_type): Move from
11557 windows-nat.c.
11558 (thread_rec): Declare.
11559
11560 2020-04-08 Tom Tromey <tromey@adacore.com>
11561
11562 * windows-nat.c: Add "using namespace".
11563 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11564 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11565
11566 2020-04-08 Tom Tromey <tromey@adacore.com>
11567
11568 * nat/windows-nat.h (struct windows_thread_info): Declare
11569 destructor.
11570 * nat/windows-nat.c (~windows_thread_info): New.
11571
11572 2020-04-08 Tom Tromey <tromey@adacore.com>
11573
11574 PR gdb/22992
11575 * windows-nat.c (current_event): Update comment.
11576 (last_wait_event, desired_stop_thread_id): New globals.
11577 (struct pending_stop): New.
11578 (pending_stops): New global.
11579 (windows_nat_target) <stopped_by_sw_breakpoint>
11580 <supports_stopped_by_sw_breakpoint>: New methods.
11581 (windows_fetch_one_register): Add assertions. Adjust PC.
11582 (windows_continue): Handle pending stops. Suspend other threads
11583 when stepping. Use last_wait_event
11584 (wait_for_debug_event): New function.
11585 (get_windows_debug_event): Use wait_for_debug_event. Handle
11586 pending stops. Queue spurious stops.
11587 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11588 (windows_nat_target::kill): Use wait_for_debug_event.
11589 * nat/windows-nat.h (struct windows_thread_info)
11590 <stopped_at_software_breakpoint>: New field.
11591 * nat/windows-nat.c (windows_thread_info::resume): Clear
11592 stopped_at_software_breakpoint.
11593
11594 2020-04-08 Tom Tromey <tromey@adacore.com>
11595
11596 * windows-nat.c (enum thread_disposition_type): New.
11597 (thread_rec): Replace "get_context" parameter with "disposition";
11598 change type.
11599 (windows_add_thread, windows_nat_target::fetch_registers)
11600 (windows_nat_target::store_registers, handle_exception)
11601 (windows_nat_target::resume, get_windows_debug_event)
11602 (windows_nat_target::get_tib_address)
11603 (windows_nat_target::thread_name)
11604 (windows_nat_target::thread_alive): Update.
11605
11606 2020-04-08 Tom Tromey <tromey@adacore.com>
11607
11608 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11609 (windows_continue): Use windows_continue::resume.
11610 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11611 resume>: Declare new methods.
11612 * nat/windows-nat.c: New file.
11613 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11614
11615 2020-04-08 Tom Tromey <tromey@adacore.com>
11616
11617 * windows-nat.c (windows_add_thread, windows_delete_thread)
11618 (windows_nat_target::fetch_registers)
11619 (windows_nat_target::store_registers, fake_create_process)
11620 (windows_nat_target::resume, windows_nat_target::resume)
11621 (get_windows_debug_event, windows_nat_target::wait)
11622 (windows_nat_target::pid_to_str)
11623 (windows_nat_target::get_tib_address)
11624 (windows_nat_target::get_ada_task_ptid)
11625 (windows_nat_target::thread_name)
11626 (windows_nat_target::thread_alive): Use lwp, not tid.
11627
11628 2020-04-08 Tom Tromey <tromey@adacore.com>
11629
11630 * windows-nat.c (handle_exception)
11631 (windows_nat_target::thread_name): Update.
11632 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11633 <name>: Now unique_xmalloc_ptr.
11634
11635 2020-04-08 Tom Tromey <tromey@adacore.com>
11636
11637 * windows-nat.c (thread_rec)
11638 (windows_nat_target::fetch_registers): Update.
11639 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11640 Update comment.
11641 <debug_registers_changed, reload_context>: Now bool.
11642
11643 2020-04-08 Tom Tromey <tromey@adacore.com>
11644
11645 * windows-nat.c (windows_add_thread): Use new.
11646 (windows_init_thread_list, windows_delete_thread): Use delete.
11647 (get_windows_debug_event): Update.
11648 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11649 destructor, and initializers.
11650
11651 2020-04-08 Tom Tromey <tromey@adacore.com>
11652
11653 * windows-nat.c (struct windows_thread_info): Remove.
11654 * nat/windows-nat.h: New file.
11655
11656 2020-04-08 Tom Tromey <tromey@adacore.com>
11657
11658 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11659 (thread_rec, windows_add_thread, windows_delete_thread)
11660 (windows_continue): Update.
11661
11662 2020-04-08 Tom Tromey <tromey@adacore.com>
11663
11664 * windows-nat.c (struct windows_thread_info): Remove typedef.
11665 (thread_head): Remove.
11666 (thread_list): New global.
11667 (thread_rec, windows_add_thread, windows_init_thread_list)
11668 (windows_delete_thread, windows_continue): Update.
11669
11670 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11671
11672 * windows-tdep.h (windows_init_abi): Add comment.
11673 (cygwin_init_abi): New declaration.
11674 * windows-tdep.c: Split signal enumeration in two, one for
11675 Windows and one for Cygwin.
11676 (windows_gdb_signal_to_target): Only deal with signal of the
11677 Windows OS ABI.
11678 (cygwin_gdb_signal_to_target): New function.
11679 (windows_init_abi): Rename to windows_init_abi_common, don't set
11680 gdb_signal_to_target gdbarch method. Add new new function with
11681 this name.
11682 (cygwin_init_abi): New function.
11683 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11684 comment. Don't call windows_init_abi.
11685 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11686 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11687 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11688 i386_windows_init_abi_common, don't call windows_init_abi. Add
11689 a new function of this name.
11690 (i386_cygwin_init_abi): New function.
11691 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11692 OS ABI Cygwin.
11693
11694 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11695
11696 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11697 parameter.c.
11698 (dwarf2_read_gdb_index): Update.
11699
11700 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11701
11702 * nbsd-tdep.c: Include "objfiles.h".
11703 (nbsd_skip_solib_resolver): New.
11704 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11705
11706 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11707
11708 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11709 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11710 with DW_LLE_base_addressx are being emitted in DWARFv5.
11711 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11712 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11713 unsigned integer.
11714
11715 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11716
11717 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11718 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11719 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11720 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11721 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11722 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11723 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11724
11725
11726 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11727
11728 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11729 (read_loclist_index): New function definition.
11730 (lookup_loclist_base): New function definition.
11731 (read_loclist_header): New function definition.
11732 (dwarf2_cu): Add loclist_base and loclist_header field.
11733 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11734 (read_full_die_1): Read the value of DW_AT_loclists_base.
11735 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11736 (read_attribute_value): Handle DW_FORM_loclistx.
11737 (skip_one_die): Handle DW_FORM_loclistx.
11738 (loclist_header): New structure declaration.
11739 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11740
11741 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11742
11743 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11744 constructor. Remove `addr` parameter from other constructor and
11745 add `per_cu` parameter.
11746 * dwarf2/read.c (create_partial_symtab): Update.
11747
11748 2020-04-07 Tom de Vries <tdevries@suse.de>
11749
11750 PR symtab/25796
11751 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11752 (partial_die_info::fixup): Inherit has_const_value.
11753
11754 2020-04-07 Tom de Vries <tdevries@suse.de>
11755
11756 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11757 symbols without address.
11758
11759 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11760
11761 * nbsd-nat.h (struct thread_info): Add forward declaration.
11762 (nbsd_nat_target::thread_alive): Add.
11763 (nbsd_nat_target::thread_name): Likewise.
11764 (nbsd_nat_target::update_thread_list): Likewise.
11765 (update_thread_list::post_attach): Likewise.
11766 (post_attach::pid_to_str): Likewise.
11767 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11768 (nbsd_thread_lister): Add.
11769 (nbsd_nat_target::thread_alive): Likewise.
11770 (nbsd_nat_target::thread_name): Likewise.
11771 (nbsd_add_threads): Likewise.
11772 (update_thread_list::post_attach): Likewise.
11773 (nbsd_nat_target::update_thread_list): Likewise.
11774 (post_attach::pid_to_str): Likewise.
11775
11776 2020-04-06 Tom Tromey <tromey@adacore.com>
11777
11778 * ada-valprint.c (print_variant_part): Extract the variant field.
11779 (print_field_values): Use the field as the outer value when
11780 recursing.
11781
11782 2020-04-06 Tom Tromey <tromey@adacore.com>
11783
11784 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11785 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11786 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11787 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11788 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11789
11790 2020-04-06 Tom Tromey <tromey@adacore.com>
11791
11792 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11793 TYPE_CODE_ERROR.
11794
11795 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11796
11797 * nbsd-tdep.c: Include "gdbarch.h".
11798 Define enum with NetBSD signal numbers.
11799 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11800 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11801 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11802 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11803 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11804 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11805 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11806 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11807 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11808 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11809 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11810 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11811
11812 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11813
11814 PR gdb/25325
11815 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11816
11817 2020-04-03 Tom Tromey <tromey@adacore.com>
11818
11819 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11820 Read constant block.
11821
11822 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11823
11824 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11825 (gdb_bfd_get_full_section_contents): New declaration.
11826 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11827 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11828 gdb_bfd_get_full_section_contents.
11829
11830 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11831
11832 * exec.c (build_section_table): Replace internal_error with
11833 gdb_assert.
11834 (section_table_xfer_memory_partial): Likewise.
11835 * mdebugread.c (parse_partial_symbols): Likewise.
11836 * psymtab.c (lookup_partial_symbol): Likewise.
11837 * utils.c (wrap_here): Likewise.
11838
11839 2020-04-02 Tom Tromey <tromey@adacore.com>
11840
11841 * f-lang.c (build_fortran_types): Use arch_type to initialize
11842 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11843
11844 2020-04-02 Tom Tromey <tromey@adacore.com>
11845
11846 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11847 of attributes.
11848
11849 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11850 Bernd Edlinger <bernd.edlinger@hotmail.de>
11851 Tom Tromey <tromey@adacore.com>
11852
11853 * buildsym.c (buildsym_compunit::record_line): Remove
11854 deduplication code.
11855
11856 2020-04-02 Tom de Vries <tdevries@suse.de>
11857
11858 PR ada/24671
11859 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11860
11861 2020-04-02 Tom de Vries <tdevries@suse.de>
11862
11863 * dwarf2/read.c (dwarf2_gdb_index_functions,
11864 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11865 NULL.
11866 * psymtab.c (psym_lookup_global_symbol_language): New function.
11867 (psym_functions): Init psym_lookup_global_symbol_language with
11868 psym_lookup_global_symbol_language.
11869 * symfile-debug.c (debug_sym_quick_functions): Init
11870 lookup_global_symbol_language with NULL.
11871 * symfile.c (set_initial_language): Remove fixme comment.
11872 * symfile.h (struct quick_symbol_functions): Add
11873 lookup_global_symbol_language.
11874 * symtab.c (find_quick_global_symbol_language): New function.
11875 (find_main_name): Use find_quick_global_symbol_language.
11876
11877 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11878
11879 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11880
11881 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11882
11883 * buildsym.c (record_line): Fix undefined behavior and preserve
11884 lines at eof.
11885
11886 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11887
11888 * buildsym.c (record_line): Fix the resizing condition.
11889
11890 2020-04-01 Tom Tromey <tom@tromey.com>
11891
11892 * value.h (value_literal_complex): Add comment.
11893 * valops.c (value_literal_complex): Refer to value.h.
11894
11895 2020-04-01 Tom Tromey <tom@tromey.com>
11896
11897 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11898 (scalar_type): New rule, from typebase.
11899 (typebase): Use scalar_type. Recognize complex types.
11900 (field_name): Handle FLOAT_KEYWORD.
11901 (ident_tokens): Add _Complex and __complex__.
11902
11903 2020-04-01 Tom Tromey <tom@tromey.com>
11904
11905 PR exp/25299:
11906 * valarith.c (promotion_type, complex_binop): New functions.
11907 (scalar_binop): Handle complex numbers. Use promotion_type.
11908 (value_pos, value_neg, value_complement): Handle complex numbers.
11909
11910 2020-04-01 Tom Tromey <tom@tromey.com>
11911
11912 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11913 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11914 (parse_number): Handle complex numbers.
11915
11916 2020-04-01 Tom Tromey <tom@tromey.com>
11917
11918 * c-valprint.c (c_decorations): Change complex suffix to "i".
11919
11920 2020-04-01 Tom Tromey <tom@tromey.com>
11921
11922 * valprint.c (generic_value_print_complex): Use accessors.
11923 * value.h (value_real_part, value_imaginary_part): Declare.
11924 * valops.c (value_real_part, value_imaginary_part): New
11925 functions.
11926 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11927
11928 2020-04-01 Tom Tromey <tom@tromey.com>
11929
11930 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11931 (read_range_type): Update.
11932 * mdebugread.c (basic_type): Update.
11933 * go-lang.c (build_go_types): Use init_complex_type.
11934 * gdbtypes.h (struct main_type) <complex_type>: New member.
11935 (init_complex_type): Update.
11936 (arch_complex_type): Don't declare.
11937 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11938 Make name if none given. Use alloc_type_copy. Look for cached
11939 complex type.
11940 (arch_complex_type): Remove.
11941 (gdbtypes_post_init): Use init_complex_type.
11942 * f-lang.c (build_fortran_types): Use init_complex_type.
11943 * dwarf2/read.c (read_base_type): Update.
11944 * d-lang.c (build_d_types): Use init_complex_type.
11945 * ctfread.c (read_base_type): Update.
11946
11947 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11948
11949 * infrun.c (stop_all_threads): Update assertion, plus when
11950 stopping threads, take into account that we might be trying
11951 to stop an all-stop target.
11952 (stop_waiting): Call 'stop_all_threads' if there exists a
11953 non-stop target.
11954
11955 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11956
11957 * target.h (exists_non_stop_target): New function declaration.
11958 * target.c (exists_non_stop_target): New function.
11959
11960 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11961
11962 PR gdb/24789
11963 * eval.c (is_integral_or_integral_reference): New function.
11964 (evaluate_subexp_standard): Allow integer references in
11965 pointer arithmetic.
11966
11967 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11968
11969 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11970 check for no ptid in the stop reply when the target is non-stop.
11971
11972 2020-04-01 Tom Tromey <tromey@adacore.com>
11973
11974 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11975 "name" parameter to rvalue reference. Initialize m_name_holder.
11976 <lookup_name_info>: New overloads.
11977 <name>: Return gdb::string_view.
11978 <c_str>: New method.
11979 <make_ignore_params>: Update.
11980 <search_name_hash>: Update.
11981 <language_lookup_name>: Return const char *.
11982 <m_name>: Change type.
11983 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11984 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11985 (lookup_name_info::match_any): Update.
11986 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11987 Update.
11988 * minsyms.c (linkage_name_str): Update.
11989 * language.c (default_symbol_name_matcher): Update.
11990 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11991 Update.
11992 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11993 (ada_lookup_name_info::ada_lookup_name_info): Update.
11994 (literal_symbol_name_matcher): Update.
11995
11996 2020-04-01 Tom Tromey <tromey@adacore.com>
11997
11998 * psymtab.c (psymtab_search_name): Remove function.
11999 (psym_lookup_symbol): Create search name and lookup name here.
12000 (lookup_partial_symbol): Remove "name" parameter; add
12001 lookup_name.
12002 (psym_expand_symtabs_for_function): Update.
12003
12004 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12005
12006 PR tui/25597:
12007 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12008
12009 2020-03-31 Tom Tromey <tromey@adacore.com>
12010
12011 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12012 memcpy.
12013
12014 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12015
12016 * features/riscv/32bit-csr.xml: Regenerated.
12017 * features/riscv/64bit-csr.xml: Regenerated.
12018
12019 2020-03-30 Tom Tromey <tromey@adacore.com>
12020
12021 * ada-valprint.c (print_variant_part): Update.
12022 * ada-lang.h (ada_which_variant_applies): Update.
12023 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12024 outer_valaddr parameters; replace with "outer" value parameter.
12025 (to_fixed_variant_branch_type): Update.
12026
12027 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12028
12029 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12030 <list>. Remove inclusion of observable.h.
12031 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12032 (struct arch_lwp_info): New struct.
12033 (class ppc_linux_dreg_interface): New class.
12034 (struct ppc_linux_process_info): New struct.
12035 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12036 <low_new_clone, low_forget_process, low_prepare_to_resume>
12037 <copy_thread_dreg_state, mark_thread_stale>
12038 <mark_debug_registers_changed, register_hw_breakpoint>
12039 <clear_hw_breakpoint, register_wp, clear_wp>
12040 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12041 <num_memory_accesses, get_trigger_type>
12042 <create_watchpoint_request, hwdebug_point_cmp>
12043 <init_arch_lwp_info, get_arch_lwp_info>
12044 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12045 methods.
12046 <struct ptid_hash>: New inner struct.
12047 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12048 members.
12049 (saved_dabr_value, hwdebug_info, max_slots_number)
12050 (struct hw_break_tuple, struct thread_points, ppc_threads)
12051 (have_ptrace_hwdebug_interface)
12052 (hwdebug_find_thread_points_by_tid)
12053 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12054 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12055 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12056 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12057 use m_dreg_interface.
12058 (hwdebug_point_cmp): Change to...
12059 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12060 reference arguments instead of pointers.
12061 (ppc_linux_nat_target::ranged_break_num_registers): Use
12062 m_dreg_interface.
12063 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12064 m_dreg_interface. Call register_hw_breakpoint.
12065 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12066 m_dreg_interface. Call clear_hw_breakpoint.
12067 (get_trigger_type): Change to...
12068 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12069 comment.
12070 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12071 use m_dreg_interface. Call register_hw_breakpoint.
12072 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12073 use m_dreg_interface. Call clear_hw_breakpoint.
12074 (can_use_watchpoint_cond_accel): Change to...
12075 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12076 method. Update comment, use m_dreg_interface and
12077 m_process_info.
12078 (calculate_dvc): Change to...
12079 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12080 m_dreg_interface.
12081 (num_memory_accesses): Change to...
12082 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12083 (check_condition): Change to...
12084 (ppc_linux_nat_target::check_condition): ...this method.
12085 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12086 comment, use m_dreg_interface.
12087 (create_watchpoint_request): Change to...
12088 (ppc_linux_nat_target::create_watchpoint_request): ...this
12089 method. Use m_dreg_interface.
12090 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12091 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12092 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12093 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12094 (ppc_linux_nat_target::low_forget_process)
12095 (ppc_linux_nat_target::low_new_fork)
12096 (ppc_linux_nat_target::low_new_clone)
12097 (ppc_linux_nat_target::low_delete_thread)
12098 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12099 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12100 only call mark_thread_stale.
12101 (ppc_linux_thread_exit): Remove.
12102 (ppc_linux_nat_target::stopped_data_address): Change to...
12103 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12104 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12105 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12106 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12107 comment. Call low_stopped_data_address.
12108 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12109 m_dreg_interface.
12110 (ppc_linux_nat_target::masked_watch_num_registers): Use
12111 m_dreg_interface.
12112 (ppc_linux_nat_target::copy_thread_dreg_state)
12113 (ppc_linux_nat_target::mark_thread_stale)
12114 (ppc_linux_nat_target::mark_debug_registers_changed)
12115 (ppc_linux_nat_target::register_hw_breakpoint)
12116 (ppc_linux_nat_target::clear_hw_breakpoint)
12117 (ppc_linux_nat_target::register_wp)
12118 (ppc_linux_nat_target::clear_wp)
12119 (ppc_linux_nat_target::init_arch_lwp_info)
12120 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12121 (_initialize_ppc_linux_nat): Remove observer callback.
12122
12123 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12124
12125 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12126 (ppc_linux_nat_target::auxv_parse)
12127 (ppc_linux_nat_target::read_description)
12128 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12129 Move up.
12130
12131 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12132
12133 * linux-nat.h (low_new_clone): New method.
12134 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12135
12136 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12137
12138 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12139 (dbx_expand_psymtab): ... this.
12140 (start_psymtab): Update.
12141 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12142 (mdebug_expand_psymtab): ... this.
12143 (parse_partial_symbols): Update.
12144 (new_psymtab): Update.
12145 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12146 (xcoff_expand_psymtab): ... this.
12147 (xcoff_start_psymtab): Update.
12148
12149 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12150
12151 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12152 <expand_dependencies>: ... this.
12153 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12154 (partial_symtab::expand_dependencies): ... this.
12155 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12156 Update.
12157 (dwarf2_psymtab::expand_psymtab): Update.
12158 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12159 * mdebugread.c (psymtab_to_symtab_1): Update.
12160 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12161
12162 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12163
12164 * psympriv.h (discard_psymtab): Remove.
12165 * dbxread.c (dbx_end_psymtab): Update.
12166 * xcoffread.c (xcoff_end_psymtab): Update.
12167
12168 2020-03-28 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12171 comment.
12172
12173 2020-03-28 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12176
12177 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12178
12179 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12180
12181 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12182
12183 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12184
12185 2020-03-26 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12188 (mark_common_block_symbol_computed, read_tag_string_type)
12189 (attr_to_dynamic_prop, read_subrange_type): Update.
12190 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12191 to be methods on struct attribute.
12192 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12193 (read_call_site_scope, partial_die_info::read)
12194 (partial_die_info::read, lookup_die_type, follow_die_ref):
12195 Update.
12196 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12197 from dwarf2_get_ref_die_offset.
12198 (attribute::constant_value): New method, from
12199 dwarf2_get_attr_constant_value.
12200 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12201 Declare method.
12202 <constant_value>: New method.
12203
12204 2020-03-26 Tom Tromey <tom@tromey.com>
12205
12206 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12207 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12208 (dwarf_type_encoding_name): Move to stringify.c.
12209 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12210 * dwarf2/stringify.c: New file.
12211 * dwarf2/stringify.h: New file.
12212
12213 2020-03-26 Tom Tromey <tom@tromey.com>
12214
12215 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12216 Rewrite.
12217
12218 2020-03-26 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12221 methods.
12222 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12223 (lookup_ranges_base): Likewise.
12224 (read_cutu_die_from_dwo, read_full_die_1): Update.
12225
12226 2020-03-26 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/read.c (read_import_statement, read_file_scope)
12229 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12230 (read_lexical_block_scope, read_call_site_scope)
12231 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12232 (handle_struct_member_die, process_structure_scope)
12233 (update_enumeration_type_from_children)
12234 (process_enumeration_scope, read_array_type, read_common_block)
12235 (read_namespace, read_module, read_subroutine_type): Update.
12236 (sibling_die): Remove.
12237
12238 2020-03-26 Tom Tromey <tom@tromey.com>
12239
12240 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12241 (build_type_psymtabs_reader, read_structure_type)
12242 (read_enumeration_type, read_full_die_1): Update.
12243 (dwarf2_attr_no_follow): Move to die.h.
12244 * dwarf2/die.h (struct die_info) <attr>: New method.
12245
12246 2020-03-26 Tom Tromey <tom@tromey.com>
12247
12248 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12249 <base_address>: Now an optional.
12250 (dwarf2_find_base_address, dwarf2_rnglists_process)
12251 (dwarf2_ranges_process, fill_in_loclist_baton)
12252 (dwarf2_symbol_mark_computed): Update.
12253
12254 2020-03-26 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2/read.c (struct die_info): Move to die.h.
12257 * dwarf2/die.h: New file.
12258
12259 2020-03-26 Tom Tromey <tom@tromey.com>
12260
12261 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12262 * dwarf2/read.c
12263 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12264 Move to line-header.c.
12265 (read_checked_initial_length_and_offset, read_formatted_entries):
12266 Likewise.
12267 (dwarf_decode_line_header): Split into two.
12268 * dwarf2/line-header.c
12269 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12270 Move from read.c.
12271 (read_checked_initial_length_and_offset, read_formatted_entries):
12272 Likewise.
12273 (dwarf_decode_line_header): New function, split from read.c.
12274
12275 2020-03-26 Tom Tromey <tom@tromey.com>
12276
12277 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12278 Declare method.
12279 * dwarf2/read.c (read_attribute_value): Update.
12280 (dwarf2_per_objfile::read_line_string): Rename from
12281 read_indirect_line_string.
12282 (read_formatted_entries): Update.
12283
12284 2020-03-26 Tom Tromey <tom@tromey.com>
12285
12286 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12287 variable.
12288
12289 2020-03-26 Tom Tromey <tom@tromey.com>
12290
12291 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12292 const.
12293 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12294 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12295 parameter const.
12296
12297 2020-03-26 Tom Tromey <tom@tromey.com>
12298
12299 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12300 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12301 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12302 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12303
12304 2020-03-26 Tom Tromey <tom@tromey.com>
12305
12306 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12307 file_names_size, file_full_name, file_file_name>: Use const.
12308 <file_name_at, file_names>: Add const overload.
12309 * dwarf2/line-header.c (line_header::file_file_name)
12310 (line_header::file_full_name): Update.
12311
12312 2020-03-26 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12315 (macro_start_file, consume_improper_spaces)
12316 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12317 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12318 (dwarf_decode_macros): Move to macro.c.
12319 * dwarf2/macro.c: New file.
12320 * dwarf2/macro.h: New file.
12321 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12322
12323 2020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12326 method.
12327 * dwarf2/section.c: New method. From
12328 read_indirect_string_at_offset_from.
12329 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12330 (read_indirect_string_at_offset_from): Move to section.c.
12331 (read_indirect_string_at_offset): Rewrite.
12332 (read_indirect_line_string_at_offset): Remove.
12333 (read_indirect_string, read_indirect_line_string)
12334 (dwarf_decode_macro_bytes): Update.
12335
12336 2020-03-26 Tom Tromey <tom@tromey.com>
12337
12338 * dwarf2/section.h (struct dwarf2_section_info)
12339 <overload_complaint>: Declare.
12340 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12341 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12342 Rename from dwarf2_section_buffer_overflow_complaint.
12343 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12344 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12345
12346 2020-03-26 Tom Tromey <tom@tromey.com>
12347
12348 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12349 Declare.
12350 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12351 Move from read.c.
12352 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12353 to section.c.
12354
12355 2020-03-26 Tom Tromey <tom@tromey.com>
12356
12357 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12358
12359 2020-03-26 Tom Tromey <tom@tromey.com>
12360
12361 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12362 "builder".
12363 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12364 parameter.
12365 (dwarf_decode_macros): Update.
12366
12367 2020-03-26 Tom Tromey <tom@tromey.com>
12368
12369 * dwarf2/read.c (read_attribute_value): Update.
12370 (read_indirect_string_from_dwz): Move to dwz.c; change into
12371 method.
12372 (dwarf_decode_macro_bytes): Update.
12373 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12374 * dwarf2/dwz.c: New file.
12375 * Makefile.in (COMMON_SFILES): Add dwz.c.
12376
12377 2020-03-26 Tom Tromey <tom@tromey.com>
12378
12379 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12380 * dwarf2/read.c: Add include.
12381 * dwarf2/index-write.c: Add include.
12382 * dwarf2/index-cache.c: Add include.
12383 * dwarf2/dwz.h: New file.
12384
12385 2020-03-25 Tom Tromey <tom@tromey.com>
12386
12387 * compile/compile-object-load.c (get_out_value_type): Mention
12388 correct symbol name in error message.
12389
12390 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12391
12392 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12393
12394 2020-03-25 Tom de Vries <tdevries@suse.de>
12395
12396 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12397 * symmisc.c (dump_symtab_1): Print user and includes fields.
12398 (maintenance_info_symtabs): Same.
12399
12400 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12401
12402 PR gdb/25534
12403 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12404 (riscv_regcache_cooked_write): New function.
12405 (riscv_push_dummy_call): Use new function.
12406 (riscv_return_value): Likewise.
12407
12408 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12409
12410 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12411 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12412 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12413 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12414 * infrun.c (follow_fork): Likewise.
12415 (follow_fork_inferior): Likewise.
12416 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12417 * linux-nat.h (class linux_nat_target): Likewise.
12418 * remote.c (class remote_target) <follow_fork>: Likewise.
12419 (remote_target::follow_fork): Likewise.
12420 * target-delegates.c: Re-generate.
12421 * target.c (default_follow_fork): Likewise.
12422 (target_follow_fork): Likewise.
12423 * target.h (struct target_ops) <follow_fork>: Likewise.
12424 (target_follow_fork): Likewise.
12425
12426 2020-03-24 Tom de Vries <tdevries@suse.de>
12427
12428 * psymtab.c (maintenance_info_psymtabs): Print user field.
12429
12430 2020-03-20 Tom Tromey <tromey@adacore.com>
12431
12432 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12433 const.
12434 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12435 const.
12436
12437 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12438
12439 * ptrace.m4: Don't check for ptrace declaration.
12440 * config.in: Re-generate.
12441 * configure: Re-generate.
12442 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12443 not defined.
12444
12445 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12446
12447 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12448 `PTRACE_TYPE_RET'.
12449 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12450 * sparc-nat.c (gdb_ptrace): Likewise.
12451 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12452
12453 2020-03-20 Tom Tromey <tromey@adacore.com>
12454
12455 * c-exp.y (lex_one_token): Fix assert.
12456
12457 2020-03-20 Tom Tromey <tromey@adacore.com>
12458
12459 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12460 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12461 strncpy call.
12462
12463 2020-03-20 Tom Tromey <tromey@adacore.com>
12464
12465 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12466
12467 2020-03-20 Tom Tromey <tromey@adacore.com>
12468
12469 * ada-valprint.c (print_variant_part): Remove parameters; switch
12470 to value-based API.
12471 (print_field_values): Likewise.
12472 (ada_val_print_struct_union): Likewise.
12473 (ada_value_print_1): Update.
12474
12475 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12476
12477 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12478 nbsd_nat_target instead of inf_ptrace_target.
12479 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12480 nbsd_nat_target.
12481
12482 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12483
12484 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12485 it to the ptrace call.
12486 * (store_registers): Likewise.
12487
12488 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12489
12490 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12491 it to the ptrace call.
12492 * (store_registers): Likewise.
12493
12494 2020-03-19 Luis Machado <luis.machado@linaro.org>
12495
12496 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12497 valid, fetch vg value from ptrace.
12498
12499 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12500 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12501 * inf-ptrace.c: Likewise.
12502 * (gdb_ptrace): Add.
12503 * (inf_ptrace_target::resume): Update.
12504 * (inf_ptrace_target::xfer_partial): Likewise.
12505 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12506 * (inf_ptrace_peek_poke): Update.
12507
12508 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12509
12510 * x86-bsd-nat.c (gdb_ptrace): New.
12511 * (x86bsd_dr_set): Add new argument `ptid'.
12512 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12513 x86bsd_dr_set_addr): Update.
12514
12515 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12516
12517 * remote.c (remote_target::process_stop_reply): Handle events for
12518 all threads differently.
12519
12520 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12521
12522 * completer.c (completion_tracker::remove_completion): Define new
12523 function.
12524 * completer.h (completion_tracker::remove_completion): Declare new
12525 function.
12526 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12527 when adding a C++ function symbol.
12528
12529 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12530
12531 * completer.c (completion_tracker::completion_hash_entry): Define
12532 new class.
12533 (advance_to_filename_complete_word_point): Call
12534 recompute_lowest_common_denominator.
12535 (completion_tracker::completion_tracker): Call discard_completions
12536 to setup the hash table.
12537 (completion_tracker::discard_completions): Allow for being called
12538 from the constructor, pass new equal function, and element deleter
12539 when constructing the hash table. Initialise new class member
12540 variables.
12541 (completion_tracker::maybe_add_completion): Remove use of
12542 m_entries_vec, and store more information into m_entries_hash.
12543 (completion_tracker::recompute_lcd_visitor): New function, most
12544 content taken from...
12545 (completion_tracker::recompute_lowest_common_denominator):
12546 ...here, this now just visits each item in the hash calling the
12547 above visitor.
12548 (completion_tracker::build_completion_result): Remove use of
12549 m_entries_vec, call recompute_lowest_common_denominator.
12550 * completer.h (completion_tracker::have_completions): Remove use
12551 of m_entries_vec.
12552 (completion_tracker::completion_hash_entry): Declare new class.
12553 (completion_tracker::recompute_lowest_common_denominator): Change
12554 function signature.
12555 (completion_tracker::recompute_lcd_visitor): Declare new function.
12556 (completion_tracker::m_entries_vec): Delete.
12557 (completion_tracker::m_entries_hash): Initialize to NULL.
12558 (completion_tracker::m_lowest_common_denominator_valid): New
12559 member variable.
12560 (completion_tracker::m_lowest_common_denominator_max_length): New
12561 member variable.
12562
12563 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12564
12565 * regformats/regdef.h: Put reg in gdb namespace.
12566
12567 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12568
12569 * i386-bsd-nat.c (gdb_ptrace): New.
12570 * (i386bsd_fetch_inferior_registers,
12571 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12572 * (i386bsd_fetch_inferior_registers,
12573 i386bsd_store_inferior_registers) Use gdb_ptrace.
12574
12575 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12576
12577 * amd64-bsd-nat.c (gdb_ptrace): New.
12578 * (amd64bsd_fetch_inferior_registers,
12579 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12580 * (amd64bsd_fetch_inferior_registers,
12581 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12582
12583 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12584
12585 * user-regs.c (user_reg::read): Rename to...
12586 (user_reg::xread): ...this.
12587 * (append_user_reg): Rename argument `read' to `xread'.
12588 * (user_reg_add_builtin): Likewise.
12589 * (user_reg_add): Likewise.
12590 * (value_of_user_reg): Likewise.
12591
12592 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12593
12594 * sparc-nat.c (gdb_ptrace): New.
12595 * sparc-nat.c (sparc_fetch_inferior_registers)
12596 (sparc_store_inferior_registers) Remove obsolete comment.
12597 * sparc-nat.c (sparc_fetch_inferior_registers)
12598 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12599 * sparc-nat.c (sparc_fetch_inferior_registers)
12600 (sparc_store_inferior_registers) Use gdb_ptrace.
12601
12602 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12603
12604 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12605 it to the ptrace call.
12606 * sh-nbsd-nat.c (store_registers): Likewise.
12607
12608 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12609
12610 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12611 nbsd_nat_target instead of inf_ptrace_target.
12612 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12613 nbsd_nat_target.
12614
12615 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12616
12617 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12618
12619 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12620
12621 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12622 <sys/sysctl.h>.
12623 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12624
12625 2020-03-17 Tom de Vries <tdevries@suse.de>
12626
12627 PR gdb/23710
12628 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12629 fields.
12630 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12631 fields.
12632 (process_imported_unit_die): Skip import of c++ CUs.
12633
12634 2020-03-16 Tom Tromey <tom@tromey.com>
12635
12636 * p-valprint.c (pascal_object_print_value): Initialize
12637 base_value.
12638
12639 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12640 Shahab Vahedi <shahab@synopsys.com>
12641
12642 * Makefile.in: Add arch/arc.o
12643 * configure.tgt: Likewise.
12644 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12645 (_initialize_arc_tdep): Don't initialize old target descriptions.
12646 (arc_read_description): New function to cache target descriptions.
12647 * arc-tdep.h (arc_read_description): Add proto type.
12648 * arch/arc.c: New file.
12649 * arch/arc.h: Likewise.
12650 * features/Makefile: Replace old target descriptions with new.
12651 * features/arc-arcompact.c: Remove.
12652 * features/arc-arcompact.xml: Likewise.
12653 * features/arc-v2.c: Likewise
12654 * features/arc-v2.xml: Likewise
12655 * features/arc/aux-arcompact.xml: New file.
12656 * features/arc/aux-v2.xml: Likewise.
12657 * features/arc/core-arcompact.xml: Likewise.
12658 * features/arc/core-v2.xml: Likewise.
12659 * features/arc/aux-arcompact.c: Generate.
12660 * features/arc/aux-v2.c: Likewise.
12661 * features/arc/core-arcompact.c: Likewise.
12662 * features/arc/core-v2.c: Likewise.
12663 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12664
12665 2020-03-16 Tom Tromey <tromey@adacore.com>
12666
12667 PR gdb/25663:
12668 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12669 putting value into bcache.
12670
12671 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12672
12673 PR gdb/21500
12674 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12675 to...
12676 (amd64_windows_init_abi_common): ... this. Don't set size of
12677 long type.
12678 (amd64_windows_init_abi): New function.
12679 (amd64_cygwin_init_abi): New function.
12680 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12681 the Cygwin OS ABI.
12682 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12683 comment.
12684
12685 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12686
12687 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12688 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12689 (pe_import_directory_entry): New struct type.
12690 (is_linked_with_cygwin_dll): New function.
12691 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12692 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12693 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12694
12695 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12696
12697 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12698 i386_cygwin_core_osabi_sniffer.
12699
12700 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12701
12702 * i386-cygwin-tdep.c: Rename to...
12703 * i386-windows-tdep.c: ... this.
12704 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12705 i386-windows-tdep.c.
12706 * configure.tgt: Likewise.
12707
12708 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12709
12710 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12711 * osabi.c (gdb_osabi_names): Add "Windows".
12712 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12713 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12714 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12715 i386_cygwin_osabi_sniffer.
12716 (_initialize_i386_cygwin_tdep): Register OS ABI
12717 GDB_OSABI_WINDOWS for i386.
12718 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12719 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12720 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12721 for x86-64.
12722 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12723 when the target matches '*-*-mingw*'.
12724
12725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12726
12727 * defs.h (enum gdb_osabi): Move to...
12728 * osabi.h (enum gdb_osabi): ... here.
12729 * gdbarch.sh: Include osabi.h in gdbarch.h.
12730 * gdbarch.h: Re-generate.
12731
12732 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12733
12734 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12735 function.
12736 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12737
12738 2020-03-14 Tom Tromey <tom@tromey.com>
12739
12740 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12741 for C++.
12742 (c_type_print_modifier): Likewise. Add "language" parameter.
12743 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12744 (c_type_print_base_1): Update.
12745 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12746 constants.
12747 * type-stack.c (type_stack::insert): Handle tp_atomic and
12748 tp_restrict.
12749 (type_stack::follow_type_instance_flags): Likewise.
12750 (type_stack::follow_types): Likewise. Merge type-following code.
12751 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12752 (space_identifier, cv_with_space_id)
12753 (const_or_volatile_or_space_identifier_noopt)
12754 (const_or_volatile_or_space_identifier): Remove.
12755 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12756 rules.
12757 (ptr_operator, typebase): Update.
12758 (enum token_flag) <FLAG_C>: New constant.
12759 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12760 "_Atomic".
12761 (lex_one_token): Handle FLAG_C.
12762
12763 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12764
12765 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12766 it to the ptrace call.
12767 * m68k-bsd-nat.c (store_registers): Likewise.
12768
12769 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12770
12771 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12772 gdb_byte *.
12773 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12774 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12775 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12776
12777 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12778
12779 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12780 nbsd_nat_target instead of inf_ptrace_target.
12781 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12782 nbsd_nat_target.
12783
12784 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12785
12786 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12787 register_t.
12788
12789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12790
12791 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12792 it to the ptrace call.
12793 * alpha-bsd-nat.c (store_registers): Likewise.
12794
12795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12796
12797 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12798 includes.
12799 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12800 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12801 fill_fpregset): Likewise.
12802
12803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12804
12805 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12806 nbsd_nat_target instead of inf_ptrace_target.
12807 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12808 nbsd_nat_target.
12809
12810 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12811
12812 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12813 register_t.
12814
12815 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12816
12817 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12818 it to the ptrace call.
12819 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12820 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12821 * arm-nbsd-nat.c (store_register): Likewise.
12822 * arm-nbsd-nat.c (store_regs): Likewise.
12823 * arm-nbsd-nat.c (store_fp_register): Likewise.
12824 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12825
12826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12827
12828 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12829 nbsd_nat_target instead of inf_ptrace_target.
12830 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12831 nbsd_nat_target.
12832
12833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12834
12835 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12836 it to the ptrace call.
12837 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12838
12839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12840
12841 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12842 it to the ptrace call.
12843 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12844
12845 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12846
12847 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12848 gdb_byte *.
12849 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12850
12851 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12852
12853 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12854 instead of inf_ptrace_target.
12855 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12856 nbsd_nat_target.
12857
12858 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12859
12860 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12861 register_t.
12862
12863 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12864
12865 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12866 register_t.
12867
12868 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12869
12870 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12871 register_t.
12872
12873 2020-03-13 Tom Tromey <tom@tromey.com>
12874
12875 * value.h (val_print): Don't declare.
12876 * valprint.h (val_print_array_elements)
12877 (val_print_scalar_formatted, generic_val_print): Don't declare.
12878 * valprint.c (generic_val_print_array): Take a struct value.
12879 (generic_val_print_ptr, generic_val_print_memberptr)
12880 (generic_val_print_bool, generic_val_print_int)
12881 (generic_val_print_char, generic_val_print_complex)
12882 (generic_val_print): Remove.
12883 (generic_value_print): Update.
12884 (do_val_print): Remove unused parameters. Don't call
12885 la_val_print.
12886 (val_print): Remove.
12887 (common_val_print): Update. Don't call value_check_printable.
12888 (val_print_scalar_formatted, val_print_array_elements): Remove.
12889 * rust-lang.c (rust_val_print): Remove.
12890 (rust_language_defn): Update.
12891 * p-valprint.c (pascal_val_print): Remove.
12892 (pascal_value_print_inner): Update.
12893 (pascal_object_print_val_fields, pascal_object_print_val):
12894 Remove.
12895 (pascal_object_print_static_field): Update.
12896 * p-lang.h (pascal_val_print): Don't declare.
12897 * p-lang.c (pascal_language_defn): Update.
12898 * opencl-lang.c (opencl_language_defn): Update.
12899 * objc-lang.c (objc_language_defn): Update.
12900 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12901 * m2-lang.h (m2_val_print): Don't declare.
12902 * m2-lang.c (m2_language_defn): Update.
12903 * language.h (struct language_defn) <la_val_print>: Remove.
12904 * language.c (unk_lang_value_print_inner): Rename. Change
12905 argument types.
12906 (unknown_language_defn, auto_language_defn): Update.
12907 * go-valprint.c (go_val_print): Remove.
12908 * go-lang.h (go_val_print): Don't declare.
12909 * go-lang.c (go_language_defn): Update.
12910 * f-valprint.c (f_val_print): Remove.
12911 * f-lang.h (f_value_print): Don't declare.
12912 * f-lang.c (f_language_defn): Update.
12913 * d-valprint.c (d_val_print): Remove.
12914 * d-lang.h (d_value_print): Don't declare.
12915 * d-lang.c (d_language_defn): Update.
12916 * cp-valprint.c (cp_print_value_fields)
12917 (cp_print_value_fields_rtti, cp_print_value): Remove.
12918 (cp_print_static_field): Update.
12919 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12920 (c_val_print_struct, c_val_print_union, c_val_print_int)
12921 (c_val_print_memberptr, c_val_print): Remove.
12922 * c-lang.h (c_val_print_array, cp_print_value_fields)
12923 (cp_print_value_fields_rtti): Don't declare.
12924 * c-lang.c (c_language_defn, cplus_language_defn)
12925 (asm_language_defn, minimal_language_defn): Update.
12926 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12927 (ada_val_print_enum): Take a struct value.
12928 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12929 (ada_val_print): Remove.
12930 (ada_value_print_1): Update.
12931 (printable_val_type): Remove.
12932 * ada-lang.h (ada_val_print): Don't declare.
12933 * ada-lang.c (ada_language_defn): Update.
12934
12935 2020-03-13 Tom Tromey <tom@tromey.com>
12936
12937 * valprint.c (do_val_print): Update.
12938 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12939 a struct value.
12940 (value_to_value_object_no_release): Declare.
12941 * python/py-value.c (value_to_value_object_no_release): New
12942 function.
12943 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12944 struct value.
12945 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12946 function.
12947 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12948 a struct value.
12949 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12950 Declare.
12951 (gdbscm_apply_val_pretty_printer): Take a struct value.
12952 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12953 value.
12954 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12955 value.
12956 * extension-priv.h (struct extension_language_ops)
12957 <apply_val_pretty_printer>: Take a struct value.
12958 * cp-valprint.c (cp_print_value): Create a struct value.
12959 (cp_print_value): Update.
12960
12961 2020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * ada-valprint.c (print_field_values): Call common_val_print.
12964
12965 2020-03-13 Tom Tromey <tom@tromey.com>
12966
12967 * ada-valprint.c (val_print_packed_array_elements): Remove
12968 bitoffset and val parameters. Call common_val_print.
12969 (ada_val_print_string): Remove offset, address, and original_value
12970 parameters.
12971 (ada_val_print_array): Update.
12972 (ada_value_print_array): New function.
12973 (ada_value_print_1): Call it.
12974
12975 2020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * ada-valprint.c (ada_value_print): Use common_val_print.
12978
12979 2020-03-13 Tom Tromey <tom@tromey.com>
12980
12981 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12982
12983 2020-03-13 Tom Tromey <tom@tromey.com>
12984
12985 * ada-valprint.c (ada_value_print_num): New function.
12986 (ada_value_print_1): Use it.
12987
12988 2020-03-13 Tom Tromey <tom@tromey.com>
12989
12990 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12991
12992 2020-03-13 Tom Tromey <tom@tromey.com>
12993
12994 * ada-valprint.c (ada_value_print_ptr): New function.
12995 (ada_value_print_1): Use it.
12996
12997 2020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13000 call common_val_print.
13001 (ada_val_print_1): Update.
13002 (ada_value_print_1): New function.
13003 (ada_value_print_inner): Rewrite.
13004
13005 2020-03-13 Tom Tromey <tom@tromey.com>
13006
13007 * cp-valprint.c (cp_print_value_fields): Update.
13008 (cp_print_value): New function.
13009
13010 2020-03-13 Tom Tromey <tom@tromey.com>
13011
13012 * m2-valprint.c (m2_value_print_inner): Use
13013 cp_print_value_fields.
13014 * cp-valprint.c (cp_print_value_fields): New function.
13015 * c-valprint.c (c_value_print_struct): New function.
13016 (c_value_print_inner): Use c_value_print_struct.
13017 * c-lang.h (cp_print_value_fields): Declare.
13018
13019 2020-03-13 Tom Tromey <tom@tromey.com>
13020
13021 * c-valprint.c (c_value_print_array): New function.
13022 (c_value_print_inner): Use it.
13023
13024 2020-03-13 Tom Tromey <tom@tromey.com>
13025
13026 * c-valprint.c (c_value_print_memberptr): New function.
13027 (c_value_print_inner): Use it.
13028
13029 2020-03-13 Tom Tromey <tom@tromey.com>
13030
13031 * c-valprint.c (c_value_print_int): New function.
13032 (c_value_print_inner): Use it.
13033
13034 2020-03-13 Tom Tromey <tom@tromey.com>
13035
13036 * c-valprint.c (c_value_print_ptr): New function.
13037 (c_value_print_inner): Use it.
13038
13039 2020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * c-valprint.c (c_value_print_inner): Rewrite.
13042
13043 2020-03-13 Tom Tromey <tom@tromey.com>
13044
13045 * valprint.c (generic_value_print_complex): New function.
13046 (generic_value_print): Use it.
13047
13048 2020-03-13 Tom Tromey <tom@tromey.com>
13049
13050 * valprint.c (generic_val_print_float): Don't call
13051 val_print_scalar_formatted.
13052 (generic_val_print, generic_value_print): Update.
13053
13054 2020-03-13 Tom Tromey <tom@tromey.com>
13055
13056 * valprint.c (generic_value_print_char): New function
13057 (generic_value_print): Use it.
13058
13059 2020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * valprint.c (generic_value_print_int): New function.
13062 (generic_value_print): Use it.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * valprint.c (generic_value_print_bool): New function.
13067 (generic_value_print): Use it.
13068
13069 2020-03-13 Tom Tromey <tom@tromey.com>
13070
13071 * valprint.c (generic_val_print_func): Simplify.
13072 (generic_val_print, generic_value_print): Update.
13073
13074 2020-03-13 Tom Tromey <tom@tromey.com>
13075
13076 * valprint.c (generic_val_print_flags): Remove.
13077 (generic_val_print, generic_value_print): Update.
13078 (val_print_type_code_flags): Add original_value parameter.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * valprint.c (generic_val_print): Update.
13083 (generic_value_print): Update.
13084 * valprint.c (generic_val_print_enum): Don't call
13085 val_print_scalar_formatted.
13086
13087 2020-03-13 Tom Tromey <tom@tromey.com>
13088
13089 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13090 * valprint.c (generic_value_print_ptr): New function.
13091
13092 2020-03-13 Tom Tromey <tom@tromey.com>
13093
13094 * valprint.c (generic_value_print): Rewrite.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * p-valprint.c (pascal_object_print_value_fields)
13099 (pascal_object_print_value): New functions.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * p-valprint.c (pascal_value_print_inner): Rewrite.
13104
13105 2020-03-13 Tom Tromey <tom@tromey.com>
13106
13107 * f-valprint.c (f_value_print_innner): Rewrite.
13108
13109 2020-03-13 Tom Tromey <tom@tromey.com>
13110
13111 * m2-valprint.c (m2_print_unbounded_array): New overload.
13112 (m2_print_unbounded_array): Update.
13113 (m2_print_array_contents): Take a struct value.
13114 (m2_value_print_inner): Rewrite.
13115
13116 2020-03-13 Tom Tromey <tom@tromey.com>
13117
13118 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13119 (d_value_print_inner): New function.
13120 * d-lang.h (d_value_print_inner): Declare.
13121 * d-lang.c (d_language_defn): Use d_value_print_inner.
13122
13123 2020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * go-valprint.c (go_value_print_inner): New function.
13126 * go-lang.h (go_value_print_inner): Declare.
13127 * go-lang.c (go_language_defn): Use go_value_print_inner.
13128
13129 2020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13132 API.
13133 (rust_val_print): Rewrite.
13134 (rust_value_print_inner): New function, from rust_val_print.
13135 (rust_language_defn): Use rust_value_print_inner.
13136
13137 2020-03-13 Tom Tromey <tom@tromey.com>
13138
13139 * ada-valprint.c (ada_value_print_inner): New function.
13140 * ada-lang.h (ada_value_print_inner): Declare.
13141 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13142
13143 2020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * f-valprint.c (f_value_print_innner): New function.
13146 * f-lang.h (f_value_print_innner): Declare.
13147 * f-lang.c (f_language_defn): Use f_value_print_innner.
13148
13149 2020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * p-valprint.c (pascal_value_print_inner): New function.
13152 * p-lang.h (pascal_value_print_inner): Declare.
13153 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13154
13155 2020-03-13 Tom Tromey <tom@tromey.com>
13156
13157 * m2-valprint.c (m2_value_print_inner): New function.
13158 * m2-lang.h (m2_value_print_inner): Declare.
13159 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13160
13161 2020-03-13 Tom Tromey <tom@tromey.com>
13162
13163 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13164 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13165 * c-valprint.c (c_value_print_inner): New function.
13166 * c-lang.h (c_value_print_inner): Declare.
13167 * c-lang.c (c_language_defn, cplus_language_defn)
13168 (asm_language_defn, minimal_language_defn): Use
13169 c_value_print_inner.
13170
13171 2020-03-13 Tom Tromey <tom@tromey.com>
13172
13173 * p-valprint.c (pascal_object_print_value_fields): Now static.
13174 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13175
13176 2020-03-13 Tom Tromey <tom@tromey.com>
13177
13178 * c-valprint.c (c_val_print_array): Simplify.
13179
13180 2020-03-13 Tom Tromey <tom@tromey.com>
13181
13182 * valprint.c (value_print_array_elements): New function.
13183 * valprint.h (value_print_array_elements): Declare.
13184
13185 2020-03-13 Tom Tromey <tom@tromey.com>
13186
13187 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13188 * mips-tdep.c (mips_print_register): Use
13189 value_print_scalar_formatted.
13190
13191 2020-03-13 Tom Tromey <tom@tromey.com>
13192
13193 * valprint.h (value_print_scalar_formatted): Declare.
13194 * valprint.c (value_print_scalar_formatted): New function.
13195
13196 2020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * valprint.h (generic_value_print): Declare.
13199 * valprint.c (generic_value_print): New function.
13200
13201 2020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * valprint.c (do_val_print): Call la_value_print_inner, if
13204 available.
13205 * rust-lang.c (rust_language_defn): Update.
13206 * p-lang.c (pascal_language_defn): Update.
13207 * opencl-lang.c (opencl_language_defn): Update.
13208 * objc-lang.c (objc_language_defn): Update.
13209 * m2-lang.c (m2_language_defn): Update.
13210 * language.h (struct language_defn) <la_value_print_inner>: New
13211 member.
13212 * language.c (unknown_language_defn, auto_language_defn): Update.
13213 * go-lang.c (go_language_defn): Update.
13214 * f-lang.c (f_language_defn): Update.
13215 * d-lang.c (d_language_defn): Update.
13216 * c-lang.c (c_language_defn, cplus_language_defn)
13217 (asm_language_defn, minimal_language_defn): Update.
13218 * ada-lang.c (ada_language_defn): Update.
13219
13220 2020-03-13 Tom Tromey <tom@tromey.com>
13221
13222 * c-valprint.c (c_value_print): Use common_val_print.
13223
13224 2020-03-13 Tom Tromey <tom@tromey.com>
13225
13226 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13227
13228 2020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * f-valprint.c (f77_print_array_1, f_val_print): Use
13231 common_val_print.
13232
13233 2020-03-13 Tom Tromey <tom@tromey.com>
13234
13235 * riscv-tdep.c (riscv_print_one_register_info): Use
13236 common_val_print.
13237
13238 2020-03-13 Tom Tromey <tom@tromey.com>
13239
13240 * mi/mi-main.c (output_register): Use common_val_print.
13241
13242 2020-03-13 Tom Tromey <tom@tromey.com>
13243
13244 * infcmd.c (default_print_one_register_info): Use
13245 common_val_print.
13246
13247 2020-03-13 Tom Tromey <tom@tromey.com>
13248
13249 * valprint.h (common_val_print_checked): Declare.
13250 * valprint.c (common_val_print_checked): New function.
13251 * stack.c (print_frame_arg): Use common_val_print_checked.
13252
13253 2020-03-13 Tom Tromey <tom@tromey.com>
13254
13255 * valprint.c (do_val_print): New function, from val_print.
13256 (val_print): Use do_val_print.
13257 (common_val_print): Use do_val_print.
13258
13259 2020-03-13 Tom Tromey <tom@tromey.com>
13260
13261 * valprint.c (value_print): Use scoped_value_mark.
13262
13263 2020-03-13 Tom de Vries <tdevries@suse.de>
13264
13265 PR symtab/25646
13266 * psymtab.c (partial_symtab::partial_symtab): Don't set
13267 globals_offset and statics_offset. Push element onto
13268 current_global_psymbols and current_static_psymbols stacks.
13269 (concat): New function.
13270 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13271 element from current_global_psymbols and current_static_psymbols
13272 stacks. Concat popped elements to global_psymbols and
13273 static_symbols.
13274 (add_psymbol_to_list): Use current_global_psymbols and
13275 current_static_psymbols stacks.
13276 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13277 current_static_psymbols fields.
13278
13279 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13280
13281 * corelow.c (sniff_core_bfd): Remove.
13282 (class core_target) <m_core_vec>: Remove.
13283 (core_target::core_target): Update.
13284 (core_file_fns): Remove.
13285 (deprecated_add_core_fns): Remove.
13286 (default_core_sniffer): Remove.
13287 (sniff_core_bfd): Remove.
13288 (default_check_format): Remove.
13289 (gdb_check_format): Remove.
13290 (core_target_open): Update.
13291 (core_target::get_core_register_section): Update.
13292 (get_core_registers_cb): Update.
13293 (core_target::fetch_registers): Update.
13294 * gdbcore.h (struct core_fns): Remove.
13295 (deprecated_add_core_fns): Remove.
13296 (default_core_sniffer): Remove.
13297 (default_check_format): Remove.
13298
13299 2020-03-12 Tom Tromey <tom@tromey.com>
13300
13301 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13302 CORE_ADDR.
13303 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13304
13305 2020-03-12 Tom Tromey <tom@tromey.com>
13306
13307 * remote.c (remote_target::download_tracepoint)
13308 (remote_target::enable_tracepoint)
13309 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13310 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13311 sprintf_vma.
13312
13313 2020-03-12 Tom Tromey <tom@tromey.com>
13314
13315 * symfile-mem.c: Update CORE_ADDR size assert.
13316
13317 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13318
13319 * selftest.m4: Move to gdbsupport/.
13320 * acinclude.m4: Update path to selftest.m4.
13321
13322 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13323
13324 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13325 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13326 gdbarch-selfselftests.c and selftest-arch.c.
13327 (SUBDIR_UNITTESTS_OBS): Rename to...
13328 (SELFTESTS_OBS): ... this.
13329 (COMMON_SFILES): Remove disasm-selftests.c and
13330 gdbarch-selftests.c.
13331 * configure.ac: Don't add selftest-arch.{c,o} to
13332 CONFIG_{SRCS,OBS}.
13333 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13334 preprocessor conditions.
13335
13336 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13337
13338 * configure.ac: Don't source bfd/development.sh.
13339 * selftest.m4: Modify comment.
13340 * configure: Re-generate.
13341
13342 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13343
13344 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13345 not "true" or "false".
13346 * configure: Re-generate.
13347
13348 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13349
13350 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13351 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13352 renamed to arm_nbsd_supply_gregset.
13353 (fetch_register): Update to call arm_nbsd_supply_gregset.
13354 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13355 (arm_netbsd_nat_target::fetch_registers): Update.
13356 (fetch_elfcore_registers): Removed.
13357 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13358 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13359 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13360 not require NetBSD system headers.
13361 (arm_nbsd_regset): New struct.
13362 (arm_nbsd_iterate_over_regset_sections): New function.
13363 (arm_netbsd_init_abi_common): Updated to call
13364 set_gdbarch_iterate_over_regset_sections.
13365 * arm-nbsd-tdep.h: New file.
13366
13367 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13368
13369 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13370 recursion.
13371
13372 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13373
13374 * configure: Re-generate.
13375
13376 2020-03-11 Tom Tromey <tromey@adacore.com>
13377
13378 * ada-typeprint.c (print_choices): Fix comment.
13379
13380 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13381
13382 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13383 previous item in the list, when the list has no items.
13384
13385 2020-03-11 Tom de Vries <tdevries@suse.de>
13386
13387 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13388 PROP_LOCLIST handling code.
13389
13390 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13391
13392 * buildsym-legacy.c (record_line): Pass extra parameter to
13393 record_line.
13394 * buildsym.c (buildsym_compunit::record_line): Take an extra
13395 parameter, reduce duplication in the line table, and record the
13396 is_stmt flag in the line table.
13397 * buildsym.h (buildsym_compunit::record_line): Add extra
13398 parameter.
13399 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13400 non-statement lines.
13401 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13402 this to the symtab builder.
13403 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13404 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13405 through to dwarf_record_line_1.
13406 * infrun.c (process_event_stop_test): When stepping, don't stop at
13407 a non-statement instruction, and only refresh the step info when
13408 we land in the middle of a line's range. Also add an extra
13409 comment.
13410 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13411 field.
13412 * record-btrace.c (btrace_find_line_range): Only record lines
13413 marked as is-statement.
13414 * stack.c (frame_show_address): Show the frame address if we are
13415 in a non-statement sal.
13416 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13417 (maintenance_print_one_line_table): Print a header for the is_stmt
13418 column, and include is_stmt information in the output.
13419 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13420 preference to non-statements.
13421 (find_pcs_for_symtab_line): Prefer is-statement entries.
13422 (find_line_common): Likewise.
13423 * symtab.h (struct linetable_entry): Add is_stmt field.
13424 (struct symtab_and_line): Likewise.
13425 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13426 arranging the line table.
13427
13428 2020-03-07 Tom de Vries <tdevries@suse.de>
13429
13430 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13431 DIE.
13432
13433 2020-03-07 Tom Tromey <tom@tromey.com>
13434
13435 * valops.c (value_literal_complex): Remove obsolete comment.
13436 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13437 comment.
13438
13439 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13440
13441 * infrun.h: Forward-declare thread_info.
13442 (set_step_info): Add thread_info parameter, add doc.
13443 * infrun.c (set_step_info): Add thread_info parameter, move doc
13444 to header.
13445 * infrun.c (process_event_stop_test): Pass thread to
13446 set_step_info call.
13447 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13448 set_step_info.
13449 (prepare_one_step): Add thread_info parameter, pass it to
13450 set_step_frame and prepare_one_step (recursive) call.
13451 (step_1): Pass thread to prepare_one_step call.
13452 (step_command_fsm::should_stop): Pass thread to
13453 prepare_one_step.
13454 (until_next_fsm): Pass thread to set_step_frame call.
13455 (finish_command): Pass thread to set_step_info call.
13456
13457 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13458
13459 * windows-tdep.c (windows_solib_create_inferior_hook):
13460 Check if inferior is running.
13461
13462 2020-03-06 Tom de Vries <tdevries@suse.de>
13463
13464 * NEWS: Fix "the the".
13465 * ctfread.c: Same.
13466
13467 2020-03-06 Tom de Vries <tdevries@suse.de>
13468
13469 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13470
13471 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13472
13473 * .dir-locals.el: Add a comment referencing the other copies of
13474 this file.
13475
13476 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13477
13478 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13479 psargs.
13480
13481 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13482
13483 * .gitattributes: New file.
13484
13485 2020-03-04 Tom Tromey <tom@tromey.com>
13486
13487 * symmisc.c (print_symbol_bcache_statistics)
13488 (print_objfile_statistics): Update.
13489 * symfile.c (allocate_symtab): Use intern.
13490 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13491 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13492 macro_cache>: Remove.
13493 <string_cache>: New member.
13494 (struct objfile) <intern>: New methods.
13495 * elfread.c (elf_symtab_read): Use intern.
13496 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13497 (dwarf2_compute_name, dwarf2_physname)
13498 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13499 names.
13500 (guess_partial_die_structure_name): Update.
13501 (partial_die_info::fixup): Intern name.
13502 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13503 name.
13504 (dwarf2_name): Intern name. Update.
13505 * buildsym.c (buildsym_compunit::get_macro_table): Use
13506 string_cache.
13507
13508 2020-03-04 Tom Tromey <tom@tromey.com>
13509
13510 * jit.c (bfd_open_from_target_memory): Make "target" const.
13511 * corefile.c (gnutarget): Now const.
13512 * gdbcore.h (gnutarget): Now const.
13513
13514 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13515
13516 * NEWS: Mention support for WOW64 processes.
13517 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13518 (amd64_windows_segment_register_p): Remove static.
13519 (_initialize_amd64_windows_nat): Update.
13520 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13521 * i386-windows-nat.c (context_offset): Update.
13522 (i386_mappings): Rename and remove static.
13523 (i386_windows_segment_register_p): Remove static.
13524 (_initialize_i386_windows_nat): Update.
13525 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13526 (STATUS_WX86_SINGLE_STEP): New macro.
13527 (EnumProcessModulesEx): New macro.
13528 (Wow64SuspendThread): New macro.
13529 (Wow64GetThreadContext): New macro.
13530 (Wow64SetThreadContext): New macro.
13531 (Wow64GetThreadSelectorEntry): New macro.
13532 (windows_set_context_register_offsets): Add static.
13533 (windows_set_segment_register_p): Likewise.
13534 (windows_add_thread): Adapt for WOW64 processes.
13535 (windows_fetch_one_register): Likewise.
13536 (windows_nat_target::fetch_registers): Likewise.
13537 (windows_store_one_register): Likewise.
13538 (display_selector): Likewise.
13539 (display_selectors): Likewise.
13540 (handle_exception): Likewise.
13541 (windows_continue): Likewise.
13542 (windows_nat_target::resume): Likewise.
13543 (windows_add_all_dlls): Likewise.
13544 (do_initial_windows_stuff): Likewise.
13545 (windows_nat_target::attach): Likewise.
13546 (windows_get_exec_module_filename): Likewise.
13547 (windows_nat_target::create_inferior): Likewise.
13548 (windows_xfer_siginfo): Likewise.
13549 (_initialize_loadable): Initialize Wow64SuspendThread,
13550 Wow64GetThreadContext, Wow64SetThreadContext,
13551 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13552 * windows-nat.h (windows_set_context_register_offsets):
13553 Remove declaration.
13554 (windows_set_segment_register_p): Likewise.
13555 (i386_windows_segment_register_p): Add declaration.
13556 (amd64_windows_segment_register_p): Likewise.
13557
13558 2020-03-04 Luis Machado <luis.machado@linaro.org>
13559
13560 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13561 in "info registers" for AArch64/ARM.
13562
13563 The change caused "info registers" to not print GPR's.
13564
13565 gdb/ChangeLog:
13566
13567 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13568
13569 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13570 when reg->group is empty and reggroup is not.
13571
13572 2020-03-03 Tom Tromey <tromey@adacore.com>
13573
13574 * dwarf2/frame.c (struct dwarf2_frame_cache)
13575 <checked_tailcall_bottom, entry_cfa_sp_offset,
13576 entry_cfa_sp_offset_p>: Remove members.
13577 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13578 (dwarf2_frame_prev_register): Don't call
13579 dwarf2_tailcall_sniffer_first.
13580 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13581 * frame-unwind.c (add_unwinder): New fuction.
13582 (frame_unwind_init): Use it. Add tailcall unwinder.
13583
13584 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13585 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13586
13587 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13588 value should be printed as true.
13589
13590 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13591
13592 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13593 (windows_init_abi): Set and use windows_so_ops.
13594
13595 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13596
13597 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13598 when verifying if dealing with a convenience variable.
13599
13600 2020-03-03 Luis Machado <luis.machado@linaro.org>
13601
13602 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13603
13604 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13605
13606 * infrun.c (gdbarch_supports_displaced_stepping): New.
13607 (use_displaced_stepping): Break up conditions in smaller pieces.
13608 Use gdbarch_supports_displaced_stepping.
13609 (displaced_step_prepare_throw): Use
13610 gdbarch_supports_displaced_stepping.
13611
13612 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13613
13614 * NEWS: Mention new behaviour of the history filename.
13615 * top.c (write_history_p): Add comment.
13616 (show_write_history_p): Add header comment, give a different
13617 message when history writing is on, but the history filename is
13618 empty.
13619 (history_filename): Add comment.
13620 (history_filename_empty): New function.
13621 (show_history_filename): Add header comment, give a different
13622 message when the filename is empty.
13623 (init_history): Compare history_filename against nullptr, and only
13624 read history if the filename is not empty.
13625 (set_history_filename): Add header comment, and only make
13626 non-empty filenames absolute.
13627 (init_main): Make the filename argument to 'set history filename'
13628 optional.
13629
13630 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13631
13632 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13633 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13634 (fetch_fp_register): Update.
13635 (fetch_fp_regs): Update.
13636 (store_fp_register): Update.
13637 (store_fp_regs): Update.
13638 (arm_netbsd_nat_target::read_description): New function.
13639 (fetch_elfcore_registers): Update.
13640
13641 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13644 general_thread if the stop reply is missing a thread-id.
13645 (remote_target::process_stop_reply): Use the first non-exited
13646 thread if the target didn't pass a thread-id.
13647 * infrun.c (do_target_wait): Move call to
13648 switch_to_inferior_no_thread to ....
13649 (do_target_wait_1): ... here.
13650
13651 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13652
13653 * debuginfod-support.c: Include defs.h first.
13654
13655 2020-02-28 Tom de Vries <tdevries@suse.de>
13656
13657 * symfile.c (set_initial_language): Use default language for lookup.
13658
13659 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13660
13661 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13662 reader variable, pass `this` to read_cutu_die_from_dwo.
13663
13664 2020-02-27 Aaron Merey <amerey@redhat.com>
13665
13666 * source.c (open_source_file): Check for nullptr when computing
13667 srcpath.
13668
13669 2020-02-27 Tom Tromey <tromey@adacore.com>
13670
13671 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13672 member.
13673 (dwarf2_add_field): Don't update nfields.
13674 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13675
13676 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13677
13678 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13679 abs.
13680
13681 2020-02-26 Tom Tromey <tom@tromey.com>
13682
13683 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13684 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13685 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13686 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13687 per_cu_data.
13688
13689 2020-02-26 Tom Tromey <tom@tromey.com>
13690
13691 * dwarf2/index-write.c (psym_index_map): Change type.
13692 (add_address_entry_worker, write_one_signatured_type)
13693 (recursively_count_psymbols, recursively_write_psymbols)
13694 (class debug_names, psyms_seen_size, write_gdbindex)
13695 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13696
13697 2020-02-26 Aaron Merey <amerey@redhat.com>
13698
13699 * Makefile.in: Handle optional debuginfod support.
13700 * NEWS: Update.
13701 * README: Add --with-debuginfod summary.
13702 * config.in: Regenerate.
13703 * configure: Regenerate.
13704 * configure.ac: Handle optional debuginfod support.
13705 * debuginfod-support.c: debuginfod helper functions.
13706 * debuginfod-support.h: Ditto.
13707 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13708 summary.
13709 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13710 when a dwz file cannot be found.
13711 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13712 debuginfo file cannot be found.
13713 * source.c (open_source_file): Query debuginfod servers when a
13714 source file cannot be found.
13715 * top.c (print_gdb_configuration): Include
13716 --{with,without}-debuginfod in the output.
13717
13718 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13719
13720 * thread.c (thr_try_catch_cmd): Print thread name.
13721
13722 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13723
13724 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13725 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13726 dwarf2_fetch_die_type_sect_off): Move to...
13727 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13728 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13729 dwarf2_fetch_die_type_sect_off): ... here.
13730 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13731 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13732 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13733
13734 2020-02-26 Tom de Vries <tdevries@suse.de>
13735
13736 PR gdb/25603
13737 * symfile.c (set_initial_language): Exit-early if
13738 language_mode == language_mode_manual.
13739
13740 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13741
13742 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13743 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13744 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13745
13746 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13747
13748 * gdbtypes.c (create_array_type_with_stride): Handle negative
13749 array strides.
13750 * valarith.c (value_subscripted_rvalue): Likewise.
13751
13752 2020-02-25 Luis Machado <luis.machado@linaro.org>
13753
13754 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13755
13756 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13757
13758 * loc.h (dwarf2_get_die_type): Move to...
13759 * read.h (dwarf2_get_die_type): ... here.
13760 * read.c (dwarf2_get_die_type): Move doc to header.
13761
13762 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13763
13764 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13765 'gnulib/Makefile.in' to the list.
13766
13767 2020-02-24 Tom Tromey <tom@tromey.com>
13768
13769 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13770 Remove.
13771 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13772 XOBNEWVEC.
13773
13774 2020-02-24 Tom Tromey <tom@tromey.com>
13775
13776 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13777 New method.
13778 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13779 (dw2_do_instantiate_symtab, dw2_get_file_names)
13780 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13781
13782 2020-02-24 Tom Tromey <tom@tromey.com>
13783
13784 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13785 make_scoped_restore.
13786 (dwarf2_psymtab::read_symtab): Don't clear
13787 reading_partial_symbols.
13788
13789 2020-02-24 Tom de Vries <tdevries@suse.de>
13790
13791 PR gdb/25592
13792 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13793
13794 2020-02-24 Tom de Vries <tdevries@suse.de>
13795
13796 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13797 commands layout next/prev/regs.
13798
13799 2020-02-22 Tom Tromey <tom@tromey.com>
13800
13801 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13802 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13803
13804 2020-02-22 Tom Tromey <tom@tromey.com>
13805
13806 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13807
13808 2020-02-22 Tom Tromey <tom@tromey.com>
13809
13810 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13811 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13812 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13813 * tui/tui.c (_initialize_tui): Add usage text.
13814
13815 2020-02-22 Tom Tromey <tom@tromey.com>
13816
13817 * tui/tui-win.c (tui_set_focus_command)
13818 (tui_set_win_height_command): Use error_no_arg.
13819 (_initialize_tui_win): Update help text.
13820 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13821
13822 2020-02-22 Tom Tromey <tom@tromey.com>
13823
13824 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13825 * tui/tui-disasm.h (struct tui_disasm_window)
13826 <display_start_addr>: Declare.
13827 * tui/tui-source.h (struct tui_source_window)
13828 <display_start_addr>: Declare.
13829 * tui/tui-winsource.h (struct tui_source_window_base)
13830 <show_source_line, display_start_addr>: New methods.
13831 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13832 Rename and move to protected section.
13833 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13834 (tui_source_window_base::do_erase_source_content): Update.
13835 (tui_source_window_base::show_source_line): Now a method.
13836 (tui_source_window_base::show_source_content)
13837 (tui_source_window_base::tui_source_window_base)
13838 (tui_source_window_base::rerender)
13839 (tui_source_window_base::refill)
13840 (tui_source_window_base::do_scroll_horizontal)
13841 (tui_source_window_base::set_is_exec_point_at)
13842 (tui_source_window_base::update_breakpoint_info)
13843 (tui_source_window_base::update_exec_info): Update.
13844 * tui/tui-source.c (tui_source_window::set_contents)
13845 (tui_source_window::showing_source_p)
13846 (tui_source_window::do_scroll_vertical)
13847 (tui_source_window::location_matches_p)
13848 (tui_source_window::line_is_displayed): Update.
13849 (tui_source_window::display_start_addr): New method.
13850 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13851 (tui_disasm_window::do_scroll_vertical)
13852 (tui_disasm_window::location_matches_p): Update.
13853 (tui_disasm_window::display_start_addr): New method.
13854
13855 2020-02-22 Tom Tromey <tom@tromey.com>
13856
13857 * NEWS: Add entry for gdb.register_window_type.
13858 * tui/tui-layout.h (window_factory): New typedef.
13859 (tui_register_window): Declare.
13860 * tui/tui-layout.c (saved_tui_windows): New global.
13861 (tui_apply_current_layout): Use it.
13862 (tui_register_window): New function.
13863 * python/python.c (do_start_initialization): Call
13864 gdbpy_initialize_tui.
13865 (python_GdbMethods): Add "register_window_type" function.
13866 * python/python-internal.h (gdbpy_register_tui_window)
13867 (gdbpy_initialize_tui): Declare.
13868 * python/py-tui.c: New file.
13869 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13870
13871 2020-02-22 Tom Tromey <tom@tromey.com>
13872
13873 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13874
13875 2020-02-22 Tom Tromey <tom@tromey.com>
13876
13877 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13878 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13879 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13880 (tui_set_win_focus_to): Move from tui-win.c.
13881
13882 2020-02-22 Tom Tromey <tom@tromey.com>
13883
13884 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13885 functions.
13886 (known_window_types): New global.
13887 (tui_get_window_by_name): Reimplement.
13888 (initialize_known_windows): New function.
13889 (validate_window_name): Rewrite.
13890 (_initialize_tui_layout): Call initialize_known_windows.
13891
13892 2020-02-22 Tom Tromey <tom@tromey.com>
13893
13894 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13895 Remove constants.
13896 * tui/tui-winsource.h (struct tui_source_window_base)
13897 <tui_source_window_base>: Remove parameter.
13898 * tui/tui-winsource.c
13899 (tui_source_window_base::tui_source_window_base): Remove
13900 parameter.
13901 (tui_source_window_base::refill): Update.
13902 * tui/tui-stack.h (struct tui_locator_window)
13903 <tui_locator_window>: Update.
13904 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13905 Default the constructor.
13906 * tui/tui-regs.h (struct tui_data_item_window)
13907 <tui_data_item_window>: Default the constructor.
13908 (struct tui_data_window) <tui_data_window>: Likewise.
13909 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13910 Default the constructor.
13911 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13912 Default the constructor.
13913 <type>: Remove.
13914 (struct tui_win_info) <tui_win_info>: Default the constructor.
13915 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13916 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13917 Default the constructor.
13918
13919 2020-02-22 Tom Tromey <tom@tromey.com>
13920
13921 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13922 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13923 * tui/tui-win.c (tui_resize_all): Don't call
13924 tui_delete_invisible_windows.
13925 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13926 done.
13927 (tui_set_layout): Update.
13928 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13929 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13930 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13931
13932 2020-02-22 Tom Tromey <tom@tromey.com>
13933
13934 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13935 correctly.
13936
13937 2020-02-22 Tom Tromey <tom@tromey.com>
13938
13939 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13940
13941 2020-02-22 Tom Tromey <tom@tromey.com>
13942
13943 * tui/tui-winsource.h (struct tui_source_window_iterator)
13944 <inner_iterator>: New etytypedef.
13945 <tui_source_window_iterator>: Take "end" parameter.
13946 <tui_source_window_iterator>: Take iterator.
13947 <operator*, advance>: Update.
13948 <m_iter>: Change type.
13949 <m_end>: New field.
13950 (struct tui_source_windows) <begin, end>: Update.
13951 * tui/tui-layout.c (tui_windows): New global.
13952 (tui_apply_current_layout): Clear tui_windows.
13953 (tui_layout_window::apply): Update tui_windows.
13954 * tui/tui-data.h (tui_windows): Declare.
13955 (all_tui_windows): Now inline function.
13956 (class tui_window_iterator, struct all_tui_windows): Remove.
13957
13958 2020-02-22 Tom Tromey <tom@tromey.com>
13959
13960 PR tui/17850:
13961 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13962 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13963 "height" argument.
13964 (class tui_layout_window) <get_sizes>: Likewise.
13965 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13966 argument.
13967 <get_sizes>: Add "height" argument.
13968 <m_vertical>: New field.
13969 * tui/tui-layout.c (tui_layout_split::clone): Update.
13970 (tui_layout_split::get_sizes): Add "height" argument.
13971 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13972 (tui_new_layout_command): Parse "-horizontal".
13973 (_initialize_tui_layout): Update help string.
13974 (tui_layout_split::specification): Add "-horizontal" when needed.
13975 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13976 argument.
13977 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13978 New methods.
13979
13980 2020-02-22 Tom Tromey <tom@tromey.com>
13981
13982 * tui/tui-layout.h (enum tui_adjust_result): New.
13983 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13984 (class tui_layout_window) <adjust_size>: Return
13985 tui_adjust_result. Rewrite.
13986 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13987 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13988
13989 2020-02-22 Tom Tromey <tom@tromey.com>
13990
13991 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13992 parameter and return types.
13993 (class tui_layout_base) <specification>: Add "depth".
13994 (class tui_layout_window) <specification>: Add "depth".
13995 (class tui_layout_split) <specification>: Add "depth".
13996 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13997 and return types.
13998 (tui_new_layout_command): Parse sub-layouts.
13999 (_initialize_tui_layout): Update help string.
14000 (tui_layout_window::specification): Add "depth".
14001 (add_layout_command): Update.
14002
14003 2020-02-22 Tom Tromey <tom@tromey.com>
14004
14005 * NEWS: Add "tui new-layout" item.
14006 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14007 Add new-layout command to help text.
14008 (validate_window_name): New function.
14009 (tui_new_layout_command): New function.
14010 (_initialize_tui_layout): Register "new-layout".
14011 (tui_layout_window::specification): New method.
14012 (tui_layout_window::specification): New method.
14013 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14014 method.
14015 (class tui_layout_window) <specification>: New method.
14016 (class tui_layout_split) <specification>: New method.
14017
14018 2020-02-22 Tom Tromey <tom@tromey.com>
14019
14020 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14021 * tui/tui-win.c (window_name_completer): Update comment.
14022 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14023 Declare method.
14024 (class tui_layout_window) <replace_window>: Likewise.
14025 (class tui_layout_split) <replace_window>: Likewise.
14026 (tui_set_layout): Don't declare.
14027 (tui_set_initial_layout): Declare function.
14028 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14029 (asm_regs_layout): New globals.
14030 (tui_current_layout, show_layout): Remove.
14031 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14032 (find_layout, tui_apply_layout): New function.
14033 (layout_completer): Remove.
14034 (tui_next_layout): Reimplement.
14035 (tui_next_layout_command): New function.
14036 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14037 (tui_regs_layout): Reimplement.
14038 (tui_regs_layout_command): New function.
14039 (extract_display_start_addr): Rewrite.
14040 (next_layout, prev_layout): Remove.
14041 (tui_layout_window::replace_window): New method.
14042 (tui_layout_split::replace_window): New method.
14043 (destroy_layout): New function.
14044 (layout_list): New global.
14045 (add_layout_command): New function.
14046 (initialize_layouts): Update.
14047 (tui_layout_command): New function.
14048 (_initialize_tui_layout): Install "layout" commands.
14049 * tui/tui-data.h (enum tui_layout_type): Remove.
14050 (tui_current_layout): Don't declare.
14051
14052 2020-02-22 Tom Tromey <tom@tromey.com>
14053
14054 * tui/tui-regs.c (tui_reg_layout): Remove.
14055 (tui_reg_command): Use tui_regs_layout.
14056 * tui/tui-layout.h (tui_reg_command): Declare.
14057 * tui/tui-layout.c (tui_reg_command): New function.
14058
14059 2020-02-22 Tom Tromey <tom@tromey.com>
14060
14061 * tui/tui.c (tui_rl_delete_other_windows): Call
14062 tui_remove_some_windows.
14063 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14064 Declare method.
14065 (class tui_layout_window) <remove_windows>: New method.
14066 (class tui_layout_split) <remove_windows>: Declare.
14067 (tui_remove_some_windows): Declare.
14068 * tui/tui-layout.c (tui_remove_some_windows): New function.
14069 (tui_layout_split::remove_windows): New method.
14070
14071 2020-02-22 Tom Tromey <tom@tromey.com>
14072
14073 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14074 * tui/tui-layout.h (tui_next_layout): Declare.
14075 * tui/tui-layout.c (tui_next_layout): New function.
14076
14077 2020-02-22 Tom Tromey <tom@tromey.com>
14078
14079 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14080 correct coordinates.
14081
14082 2020-02-22 Tom Tromey <tom@tromey.com>
14083
14084 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14085 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14086 DATA_WIN case.
14087
14088 2020-02-22 Tom Tromey <tom@tromey.com>
14089
14090 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14091 TUI_DISASM_WIN, not tui_win_list.
14092
14093 2020-02-22 Tom Tromey <tom@tromey.com>
14094
14095 * valprint.c (generic_val_print_enum_1)
14096 (val_print_type_code_flags): Style member names.
14097 * rust-lang.c (val_print_struct, rust_print_enum)
14098 (rust_print_struct_def, rust_internal_print_type): Style member
14099 names.
14100 * p-valprint.c (pascal_object_print_value_fields): Style member
14101 names. Only call fprintf_symbol_filtered for static members.
14102 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14103 * f-valprint.c (f_val_print): Style member names.
14104 * f-typeprint.c (f_type_print_base): Style member names.
14105 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14106 call fprintf_symbol_filtered for static members.
14107 (cp_print_class_member): Style member names.
14108 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14109 member names.
14110 * ada-valprint.c (ada_print_scalar): Style enum names.
14111 (ada_val_print_enum): Likewise.
14112 * ada-typeprint.c (print_enum_type): Style enum names.
14113
14114 2020-02-21 Tom Tromey <tom@tromey.com>
14115
14116 * psympriv.h (struct partial_symtab): Update comment.
14117
14118 2020-02-21 Tom Tromey <tromey@adacore.com>
14119
14120 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14121 type is CORE_ADDR.
14122
14123 2020-02-21 Tom de Vries <tdevries@suse.de>
14124
14125 PR gdb/25534
14126 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14127 if dependencies[i]->user != NULL.
14128
14129 2020-02-21 Ali Tamur <tamur@google.com>
14130
14131 * dwarf2/read.c (dwarf2_name): Add null check.
14132
14133 2020-02-20 Tom Tromey <tom@tromey.com>
14134
14135 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14136 ">=", in binary search.
14137 (dwarf2_find_containing_comp_unit): New overload.
14138 (run_test): New self-test.
14139 (_initialize_dwarf2_read): Register new test.
14140
14141 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14142
14143 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14144 * riscv-tdep.h: Likewise.
14145 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14146 rv32-only CSR.
14147 * features/riscv/64bit-csr.xml: Regenerated.
14148
14149 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14150 Tom Tromey <tom@tromey.com>
14151
14152 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14153 of 'fputc_unfiltered'.
14154 (putchar_unfiltered): Call 'fputc_unfiltered'.
14155 (fputc_unfiltered): Call 'fputs_unfiltered'.
14156
14157 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14158
14159 * config.in: Regenerate.
14160 * configure: Regenerate.
14161 * configure.ac: Add --with-python-libdir option.
14162 * main.c: Use WITH_PYTHON_LIBDIR.
14163
14164 2020-02-19 Tom Tromey <tom@tromey.com>
14165
14166 * symtab.c (general_symbol_info::compute_and_set_names): Use
14167 obstack_strndup. Simplify call to symbol_set_demangled_name.
14168
14169 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14170
14171 * dwarf2/read.c (allocate_signatured_type_table,
14172 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14173 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14174 Remove objfile parameter, update all callers.
14175
14176 2020-02-19 Doug Evans <dje@google.com>
14177
14178 PR rust/25535
14179 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14180 rust_enum_variant calculation.
14181
14182 2020-02-19 Tom Tromey <tromey@adacore.com>
14183
14184 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14185
14186 2020-02-19 Tom Tromey <tromey@adacore.com>
14187
14188 * ada-lang.c (cache_symbol): Use obstack_strdup.
14189
14190 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14191
14192 * configure: Regenerate.
14193
14194 2020-02-19 Tom Tromey <tromey@adacore.com>
14195
14196 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14197 NULL check.
14198
14199 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14200
14201 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14202
14203 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14204
14205 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14206 if GDBSERVER is not defined.
14207 (riscv_tdesc_cache): Likewise, also store const target_desc.
14208 (STATIC_IN_GDB): Define.
14209 (riscv_create_target_description): Update declaration with
14210 STATIC_IN_GDB.
14211 (riscv_lookup_target_description): New function, only define if
14212 GDBSERVER is not defined.
14213 * arch/riscv.h (riscv_create_target_description): Declare only
14214 when GDBSERVER is defined.
14215 (riscv_lookup_target_description): New declaration when GDBSERVER
14216 is not defined.
14217 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14218 (riscv_linux_read_features): ...this, and return
14219 riscv_gdbarch_features instead of target_desc.
14220 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14221 (riscv_linux_read_description): Rename to...
14222 (riscv_linux_read_features): ...this.
14223 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14224 Update to use riscv_gdbarch_features and
14225 riscv_lookup_target_description.
14226 * riscv-tdep.c (riscv_find_default_target_description): Use
14227 riscv_lookup_target_description instead of
14228 riscv_create_target_description.
14229
14230 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14231
14232 * valprint.c (generic_val_print_enum_1): When printing a flag
14233 enum with value 0 and there is no enumerator with value 0, print
14234 just "0" instead of "(unknown: 0x0)".
14235
14236 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14237
14238 * valprint.c (generic_val_print_enum_1): Print unknown part of
14239 flag enum in hex.
14240
14241 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14244 flag enums to contain duplicate enumerators.
14245 * valprint.c (generic_val_print_enum_1): Update comment.
14246
14247 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14248
14249 * dwarf2/read.c: Include "count-one-bits.h".
14250 (update_enumeration_type_from_children): If an enumerator has
14251 multiple bits set, don't treat the enumeration as a "flag enum".
14252 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14253 of flag enums have 0 or 1 bit set.
14254
14255 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14256
14257 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14258 conversion.
14259 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14260 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14261 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14262 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14263 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14264
14265 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14266
14267 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14268
14269 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14270
14271 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14272 displaced_step_closure_up.
14273 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14274 (struct displaced_step_closure_up):
14275 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14276 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14277 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14278 Likewise.
14279 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14280 * gdbarch.c, gdbarch.h: Re-generate.
14281 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14282 displaced_step_closure_up.
14283 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14284 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14285 * infrun.h (displaced_step_closure_up): New type alias.
14286 (struct displaced_step_inferior_state) <step_closure>: Change
14287 type to displaced_step_closure_up.
14288 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14289 displaced_step_closure_up.
14290 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14291
14292 2020-02-14 Tom Tromey <tom@tromey.com>
14293
14294 * minidebug.c (gnu_debug_key): New global.
14295 (find_separate_debug_file_in_section): Use it.
14296
14297 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14298
14299 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14300 std::unique_ptr.
14301 * gdbarch.c: Re-generate.
14302 * gdbarch.h: Re-generate.
14303 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14304 change.
14305 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14306 type to std::unique_ptr.
14307 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14308 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14309 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14310 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14311 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14312 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14313 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14314 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14315 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14316
14317 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14318
14319 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14320 std::unique_ptr.
14321 (displaced_step_clear): Rename to...
14322 (displaced_step_reset): ... this. Just call displaced->reset ().
14323 (displaced_step_clear_cleanup): Rename to...
14324 (displaced_step_reset_cleanup): ... this.
14325 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14326 (displaced_step_fixup): Likewise.
14327 (resume_1): Likewise.
14328 (handle_inferior_event): Restore child's memory before calling
14329 displaced_step_fixup on the parent.
14330 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14331 to std::unique_ptr.
14332 <step_closure>: Change type to std::unique_ptr.
14333
14334 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14335
14336 * arm-tdep.c: Include count-one-bits.h.
14337 (cleanup_block_store_pc): Use count_one_bits.
14338 (cleanup_block_load_pc): Use count_one_bits.
14339 (arm_copy_block_xfer): Use count_one_bits.
14340 (thumb2_copy_block_xfer): Use count_one_bits.
14341 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14342 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14343 (thumb_get_next_pcs_raw): Use count_one_bits.
14344 (arm_get_next_pcs_raw): Use count_one_bits_l.
14345 * arch/arm.c (bitcount): Remove.
14346 * arch/arm.h (bitcount): Remove.
14347
14348 2020-02-14 Tom Tromey <tromey@adacore.com>
14349
14350 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14351 Update.
14352 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14353 * dwarf2/loc.c (call_site_find_chain_1): Return
14354 unique_xmalloc_ptr.
14355 (call_site_find_chain): Likewise.
14356
14357 2020-02-14 Richard Biener <rguenther@suse.de>
14358
14359 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14360 on expression with division operators.
14361
14362 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14363
14364 * MAINTAINERS (Write After Approval): Adding myself.
14365
14366 2020-02-12 Tom Tromey <tom@tromey.com>
14367
14368 * event-loop.c (event_data, gdb_event, event_handler_func):
14369 Remove.
14370
14371 2020-02-12 Tom Tromey <tom@tromey.com>
14372
14373 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14374 (dwarf2_frame_objfile_data): Add comment.
14375 (find_comp_unit, set_comp_unit): New functions.
14376 (dwarf2_frame_find_fde): Use find_comp_unit.
14377 (dwarf2_build_frame_info): Use set_comp_unit.
14378
14379 2020-02-12 Tom Tromey <tom@tromey.com>
14380
14381 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14382 (comp_unit): Don't initialize objfile.
14383 (execute_cfa_program): Add text_offset parameter.
14384 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14385 (dwarf2_frame_cache): Update.
14386 (dwarf2_build_frame_info): Don't set "objfile" member.
14387
14388 2020-02-12 Tom Tromey <tom@tromey.com>
14389
14390 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14391 (decode_frame_entry): Likewise.
14392 (dwarf2_build_frame_info): Update.
14393
14394 2020-02-12 Tom Tromey <tom@tromey.com>
14395
14396 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14397 (decode_frame_entry_1): Use the comp_unit obstack.
14398
14399 2020-02-12 Tom Tromey <tom@tromey.com>
14400
14401 * dwarf2/frame.c (struct comp_unit): Add initializers and
14402 constructor.
14403 (dwarf2_frame_objfile_data): Store a comp_unit.
14404 (dwarf2_frame_find_fde): Update.
14405 (dwarf2_build_frame_info): Use "new".
14406
14407 2020-02-12 Tom Tromey <tom@tromey.com>
14408
14409 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14410 (dwarf2_fde_table): Typedef for std::vector.
14411 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14412 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14413 (decode_frame_entry): Update.
14414 (dwarf2_build_frame_info): Use "new".
14415
14416 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14417
14418 * arm-tdep.c (arm_gdbarch_init): Update.
14419 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14420 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14421 have_neon, is_m>: Change to bool.
14422
14423 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14424
14425 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14426
14427 2020-02-12 Tom Tromey <tom@tromey.com>
14428
14429 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14430
14431 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14432
14433 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14434 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14435
14436 2020-02-11 Tom Tromey <tom@tromey.com>
14437
14438 * psymtab.h: Update comment.
14439
14440 2020-02-11 Tom Tromey <tom@tromey.com>
14441
14442 * gdb_obstack.h (struct auto_obstack): Use
14443 DISABLE_COPY_AND_ASSIGN.
14444
14445 2020-02-11 Tom Tromey <tom@tromey.com>
14446
14447 * dwarf2/frame.h (struct objfile): Don't forward declare.
14448
14449 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14450
14451 * cris-tdep.c (cris_supply_gregset): Change signature to match
14452 what struct regset expects.
14453 (cris_regset): New struct.
14454 (fetch_core_registers): Remove.
14455 (cris_iterate_over_regset_sections): New function.
14456 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14457 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14458
14459 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14460
14461 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14462 registers.
14463
14464 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14465
14466 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14467
14468 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14469
14470 * configure: Re-generate.
14471
14472 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14473
14474 * configure: Re-generate.
14475
14476 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14477
14478 * acinclude: Update warning.m4 path.
14479 * warning.m4: Move to gdbsupport.
14480
14481 2020-02-11 Tom Tromey <tromey@adacore.com>
14482
14483 * remote.c (remote_console_output): Update.
14484 * printcmd.c (printf_command): Update.
14485 * event-loop.c (gdb_wait_for_event): Update.
14486 * linux-nat.c (sigchld_handler): Update.
14487 * remote-sim.c (gdb_os_write_stdout): Update.
14488 (gdb_os_flush_stdout): Update.
14489 (gdb_os_flush_stderr): Update.
14490 (gdb_os_write_stderr): Update.
14491 * exceptions.c (print_exception): Update.
14492 * remote-fileio.c (remote_fileio_func_read): Update.
14493 (remote_fileio_func_write): Update.
14494 * tui/tui.c (tui_enable): Update.
14495 * tui/tui-interp.c (tui_interp::init): Update.
14496 * utils.c (init_page_info): Update.
14497 (putchar_unfiltered, fputc_unfiltered): Update.
14498 (gdb_flush): Update.
14499 (emit_style_escape): Update.
14500 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14501 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14502 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14503 (stderr_file::write): Update.
14504 (stderr_file::puts): Update.
14505 * ui-file.h (ui_file_isatty, ui_file_write)
14506 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14507 (ui_file_puts): Don't declare.
14508
14509 2020-02-10 Tom de Vries <tdevries@suse.de>
14510
14511 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14512 sentinel to char *.
14513
14514 2020-02-09 Tom de Vries <tdevries@suse.de>
14515
14516 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14517 filename if it matches "<artificial>".
14518
14519 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14520
14521 * windows-tdep.c (struct enum_value_name): New struct.
14522 (create_enum): New function.
14523 (windows_get_siginfo_type): Create and use enum types.
14524
14525 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14526
14527 * NEWS: Mention $_siginfo support for Windows.
14528 * windows-nat.c (handle_exception): Set siginfo_er.
14529 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14530 (windows_xfer_siginfo): New function.
14531 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14532 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14533 (init_windows_gdbarch_data): New function.
14534 (get_windows_gdbarch_data): New function.
14535 (windows_get_siginfo_type): New function.
14536 (windows_init_abi): Register windows_get_siginfo_type.
14537 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14538
14539 2020-02-08 Tom Tromey <tom@tromey.com>
14540
14541 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14542 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14543 <keep>: Declare method.
14544 <m_keep>: Remove member.
14545 <~cutu_reader>: Remove.
14546 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14547 (cutu_reader::cutu_reader): Update.
14548 (cutu_reader::keep): Rename from ~cutu_reader.
14549 (process_psymtab_comp_unit, build_type_psymtabs_1)
14550 (process_skeletonless_type_unit, load_partial_comp_unit)
14551 (load_full_comp_unit, dwarf2_read_addr_index)
14552 (read_signatured_type): Update.
14553
14554 2020-02-08 Tom Tromey <tom@tromey.com>
14555
14556 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14557 "want_partial_unit" parameter.
14558 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14559 Inline check for DW_TAG_partial_unit.
14560 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14561
14562 2020-02-08 Tom Tromey <tom@tromey.com>
14563
14564 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14565 read.c.
14566 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14567 read.c.
14568
14569 2020-02-08 Tom Tromey <tom@tromey.com>
14570
14571 * dwarf2/read.c (read_address): Move to comp-unit.c.
14572 (dwarf2_rnglists_process, dwarf2_ranges_process)
14573 (read_attribute_value, dwarf_decode_lines_1)
14574 (var_decode_location, decode_locdesc): Update.
14575 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14576 read.c. Remove "cu" parameter.
14577 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14578 method.
14579
14580 2020-02-08 Tom Tromey <tom@tromey.com>
14581
14582 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14583 (read_indirect_line_string): Update.
14584 * dwarf2/comp-unit.c (read_offset): Remove.
14585 (read_comp_unit_head): Update.
14586 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14587 method.
14588 (read_offset): Don't declare.
14589
14590 2020-02-08 Tom Tromey <tom@tromey.com>
14591
14592 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14593 * dwarf2/read.c (struct comp_unit_head): Move to
14594 dwarf2/comp-unit.h.
14595 (enum class rcuh_kind): Move to comp-unit.h.
14596 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14597 (read_comp_unit_head, error_check_comp_unit_head)
14598 (read_and_check_comp_unit_head): Move to comp-unit.c.
14599 (read_offset, dwarf_unit_type_name): Likewise.
14600 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14601 (cutu_reader::cutu_reader, read_call_site_scope)
14602 (find_partial_die, follow_die_offset): Update.
14603 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14604
14605 2020-02-08 Tom Tromey <tom@tromey.com>
14606
14607 * dwarf2/read.c (read_offset_1): Move to leb.c.
14608 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14609 (dwarf_decode_macro_bytes): Update.
14610 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14611 * dwarf2/leb.h (read_offset): Declare.
14612
14613 2020-02-08 Tom Tromey <tom@tromey.com>
14614
14615 * dwarf2/read.c (dwarf2_section_size): Remove.
14616 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14617 Update.
14618 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14619
14620 2020-02-08 Tom Tromey <tom@tromey.com>
14621
14622 * dwarf2/read.c (read_initial_length): Move to leb.c.
14623 * dwarf2/leb.h (read_initial_length): Declare.
14624 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14625 handle_nonstd parameter.
14626 * dwarf2/frame.c (read_initial_length): Remove.
14627 (decode_frame_entry_1): Update.
14628
14629 2020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2/loc.c (dwarf2_find_location_expression)
14632 (dwarf_evaluate_loc_desc::get_tls_address)
14633 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14634 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14635 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14636 (dwarf2_compile_property_to_c)
14637 (dwarf2_loc_desc_get_symbol_read_needs)
14638 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14639 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14640 (loclist_describe_location, loclist_tracepoint_var_ref)
14641 (loclist_generate_c_location): Update.
14642 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14643 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14644 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14645 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14646 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14647 (dwarf2_per_cu_data::addr_size)
14648 (dwarf2_per_cu_data::ref_addr_size)
14649 (dwarf2_per_cu_data::text_offset)
14650 (dwarf2_per_cu_data::addr_type): Now methods.
14651 (per_cu_header_read_in): Make per_cu "const".
14652 (dwarf2_version): Remove.
14653 (dwarf2_per_cu_data::int_type): Now a method.
14654 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14655 (set_die_type, read_array_type, read_subrange_index_type)
14656 (read_tag_string_type, read_subrange_type): Update.
14657 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14658 offset_size, ref_addr_size, text_offset, addr_type, version,
14659 objfile, int_type, addr_sized_int_type>: Declare methods.
14660
14661 2020-02-08 Tom Tromey <tom@tromey.com>
14662
14663 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14664 Move earlier.
14665
14666 2020-02-08 Tom Tromey <tom@tromey.com>
14667
14668 * dwarf2/read.h (dwarf_line_debug): Declare.
14669 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14670 * dwarf2/read.c: Move line_header code to new files.
14671 (dwarf_line_debug): No longer static.
14672 * dwarf2/line-header.c: New file.
14673 * dwarf2/line-header.h: New file.
14674
14675 2020-02-08 Tom Tromey <tom@tromey.com>
14676
14677 * dwarf2/read.c (struct line_header) <file_full_name,
14678 file_file_name>: Return unique_xmalloc_ptr.
14679 (line_header::file_file_name): Update.
14680 (line_header::file_full_name): Update.
14681 (dw2_get_file_names_reader): Update.
14682 (macro_start_file): Update.
14683
14684 2020-02-08 Tom Tromey <tom@tromey.com>
14685
14686 * dwarf2/read.c (struct line_header) <file_full_name,
14687 file_file_name>: Declare methods.
14688 (dw2_get_file_names_reader): Update.
14689 (file_file_name): Now a method.
14690 (file_full_name): Likewise.
14691 (macro_start_file): Update.
14692
14693 2020-02-08 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/read.c (dwarf_always_disassemble)
14696 (show_dwarf_always_disassemble): Move to loc.c.
14697 (_initialize_dwarf2_read): Move "always-disassemble" registration
14698 to loc.c.
14699 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14700 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14701 static.
14702 (show_dwarf_always_disassemble): Move from read.c.
14703 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14704
14705 2020-02-08 Tom Tromey <tom@tromey.com>
14706
14707 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14708 (create_quick_file_names_table): Return htab_up.
14709 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14710 Update.
14711 * dwarf2/read.h (struct dwarf2_per_objfile)
14712 <quick_file_names_table>: Now htab_up.
14713
14714 2020-02-08 Tom Tromey <tom@tromey.com>
14715
14716 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14717
14718 2020-02-08 Tom Tromey <tom@tromey.com>
14719
14720 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14721 Rewrite.
14722 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14723 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14724 (abbrev_table::abbrev_table): No longer inline.
14725 (ABBREV_HASH_SIZE): Remove.
14726 (abbrev_table::m_abbrevs): Now an htab_up.
14727
14728 2020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14731 (cutu_reader): Update.
14732 (build_type_psymtabs_1): Update.
14733 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14734 (abbrev_table::alloc_abbrev): Update.
14735 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14736 (abbrev_table::read): New static method, renamed from
14737 abbrev_table_read_table.
14738 (abbrev_table::alloc_abbrev)
14739 (abbrev_table::add_abbrev): Now private.
14740 (abbrev_table::abbrev_table): Now private.
14741 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14742
14743 2020-02-08 Tom Tromey <tom@tromey.com>
14744
14745 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14746 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14747 htab_up.
14748
14749 2020-02-08 Tom Tromey <tom@tromey.com>
14750
14751 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14752 htab_up.
14753 (lookup_dwo_unit_in_dwp): Update.
14754 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14755 on obstack.
14756
14757 2020-02-08 Tom Tromey <tom@tromey.com>
14758
14759 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14760 obstack.
14761
14762 2020-02-08 Tom Tromey <tom@tromey.com>
14763
14764 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14765 line_header_hash.
14766 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14767 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14768 Change type to htab_up.
14769
14770 2020-02-08 Tom Tromey <tom@tromey.com>
14771
14772 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14773 htab_up. Don't allocate on obstack.
14774 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14775 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14776 Change type to htab_up.
14777
14778 2020-02-08 Tom Tromey <tom@tromey.com>
14779
14780 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14781 Change type to htab_up.
14782 * dwarf2/read.c (create_signatured_type_table_from_index)
14783 (create_signatured_type_table_from_debug_names)
14784 (create_all_type_units, add_type_unit)
14785 (lookup_dwo_signatured_type, lookup_signatured_type)
14786 (process_skeletonless_type_unit): Update.
14787 (create_debug_type_hash_table, create_debug_types_hash_table):
14788 Change type of types_htab.
14789 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14790 htab_up. Don't allocate on obstack.
14791 (create_cus_hash_table): Change type of cus_htab parameter.
14792 (struct dwo_file) <cus, tus>: Now htab_up.
14793 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14794 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14795 (queue_and_load_all_dwo_tus): Update.
14796 * dwarf2/index-write.c (write_gdbindex): Update.
14797 (write_debug_names): Update.
14798
14799 2020-02-08 Tom Tromey <tom@tromey.com>
14800
14801 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14802 dwarf2/read.c. Remove "next" member. Add constructor ntad
14803 destructor.
14804 (struct dwarf2_per_objfile) <queue>: New member.
14805 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14806 dwarf2/read.h.
14807 (dwarf2_queue, dwarf2_queue_tail): Remove.
14808 (class dwarf2_queue_guard): Add parameter to constructor. Use
14809 DISABLE_COPY_AND_ASSIGN.
14810 <m_per_objfile>: New member.
14811 <~dwarf2_queue_guard>: Rewrite.
14812 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14813 Update.
14814 (~dwarf2_queue_item): New.
14815
14816 2020-02-08 Tom Tromey <tom@tromey.com>
14817
14818 * dwarf2/read.c (struct die_info) <has_children>: New member.
14819 (dw2_get_file_names_reader): Remove has_children.
14820 (dw2_get_file_names): Update.
14821 (read_cutu_die_from_dwo): Remove has_children.
14822 (cutu_reader::init_tu_and_read_dwo_dies)
14823 (cutu_reader::cutu_reader): Update.
14824 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14825 Remove has_children.
14826 (build_type_psymtabs_1, process_skeletonless_type_unit)
14827 (load_partial_comp_unit, load_full_comp_unit): Update.
14828 (create_dwo_cu_reader): Remove has_children.
14829 (create_cus_hash_table, read_die_and_children): Update.
14830 (read_full_die_1,read_full_die): Remove has_children.
14831 (read_signatured_type): Update.
14832 (class cutu_reader) <has_children>: Remove.
14833
14834 2020-02-08 Tom Tromey <tom@tromey.com>
14835
14836 * dwarf2/expr.c: Rename from dwarf2expr.c.
14837 * dwarf2/expr.h: Rename from dwarf2expr.h.
14838 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14839 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14840 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14841 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14842 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14843 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14844 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14845 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14846 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14847 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14848 * dwarf2/loc.c: Rename from dwarf2loc.c.
14849 * dwarf2/loc.h: Rename from dwarf2loc.h.
14850 * dwarf2/read.c: Rename from dwarf2read.c.
14851 * dwarf2/read.h: Rename from dwarf2read.h.
14852 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14853 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14854 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14855 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14856 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14857 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14858 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14859 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14860 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14861 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14862 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14863 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14864 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14865 Update.
14866 * Makefile.in (COMMON_SFILES): Update.
14867 (HFILES_NO_SRCDIR): Update.
14868
14869 2020-02-08 Tom Tromey <tom@tromey.com>
14870
14871 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14872 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14873
14874 2020-02-08 Tom Tromey <tom@tromey.com>
14875
14876 * dwarf2read.h (struct die_info): Don't declare.
14877
14878 2020-02-08 Tom Tromey <tom@tromey.com>
14879
14880 * dwarf2read.h (die_info_ptr): Remove typedef.
14881
14882 2020-02-08 Tom Tromey <tom@tromey.com>
14883
14884 * dwarf2read.c (read_call_site_scope)
14885 (handle_data_member_location, dwarf2_add_member_fn)
14886 (mark_common_block_symbol_computed, read_common_block)
14887 (attr_to_dynamic_prop, partial_die_info::read)
14888 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14889 (dwarf2_symbol_mark_computed, set_die_type): Update.
14890 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14891 method.
14892 (attr_form_is_block): Don't declare.
14893 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14894
14895 2020-02-08 Tom Tromey <tom@tromey.com>
14896
14897 * dwarf2read.c (dwarf2_find_base_address, )
14898 (read_call_site_scope, rust_containing_type)
14899 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14900 (handle_data_member_location, dwarf2_add_member_fn)
14901 (get_alignment, read_structure_type, process_structure_scope)
14902 (mark_common_block_symbol_computed, read_common_block)
14903 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14904 (partial_die_info::read, read_attribute_value, new_symbol)
14905 (lookup_die_type, dwarf2_get_ref_die_offset)
14906 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14907 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14908 (dwarf2_symbol_mark_computed): Update.
14909 * dwarf2/attribute.h (struct attribute) <value_as_address,
14910 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14911 methods.
14912 (value_as_address, attr_form_is_section_offset)
14913 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14914 * dwarf2/attribute.c (attribute::value_as_address)
14915 (attribute::form_is_section_offset, attribute::form_is_constant)
14916 (attribute::form_is_ref): Now methods.
14917
14918 2020-02-08 Tom Tromey <tom@tromey.com>
14919
14920 * dwarf2read.c (struct attribute, DW_STRING)
14921 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14922 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14923 (attr_form_is_block, attr_form_is_section_offset)
14924 (attr_form_is_constant, attr_form_is_ref): Move.
14925 * dwarf2/attribute.h: New file.
14926 * dwarf2/attribute.c: New file, from dwarf2read.c.
14927 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14928
14929 2020-02-08 Tom Tromey <tom@tromey.com>
14930
14931 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14932 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14933 Move.
14934 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14935 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14936 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14937 abbrev.c.
14938 * dwarf2/abbrev.h: New file.
14939 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14940 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14941
14942 2020-02-08 Tom Tromey <tom@tromey.com>
14943
14944 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14945 (dwarf2_section_size, dwarf2_get_section_info)
14946 (create_signatured_type_table_from_debug_names)
14947 (create_addrmap_from_aranges, read_debug_names_from_section)
14948 (get_gdb_index_contents_from_section, read_comp_unit_head)
14949 (error_check_comp_unit_head, read_abbrev_offset)
14950 (create_debug_type_hash_table, init_cu_die_reader)
14951 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14952 (read_comp_units_from_section, create_cus_hash_table)
14953 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14954 (create_dwp_v2_section, dwarf2_rnglists_process)
14955 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14956 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14957 (read_indirect_string_from_dwz, read_addr_index_1)
14958 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14959 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14960 (fill_in_loclist_baton): Update.
14961 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14962 get_containing_section, get_bfd_owner, get_bfd_section,
14963 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14964 (dwarf2_read_section, get_section_name, get_section_file_name)
14965 (get_containing_section, get_section_bfd_owner)
14966 (get_section_bfd_section, get_section_name, get_section_file_name)
14967 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14968 declare.
14969 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14970 (dwarf2_section_info::get_bfd_owner)
14971 (dwarf2_section_info::get_bfd_section)
14972 (dwarf2_section_info::get_name)
14973 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14974 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14975 (dwarf2_section_info::read): Now methods.
14976 * dwarf-index-write.c (class debug_names): Update.
14977
14978 2020-02-08 Tom Tromey <tom@tromey.com>
14979
14980 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14981 Move to dwarf2/section.h.
14982 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14983 (get_section_bfd_section, get_section_name)
14984 (get_section_file_name, get_section_id, get_section_flags)
14985 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14986 dwarf2/section.c.
14987 * dwarf2/section.h: New file.
14988 * dwarf2/section.c: New file, from dwarf2read.c.
14989 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14990
14991 2020-02-08 Tom Tromey <tom@tromey.com>
14992
14993 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14994 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14995 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14996 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14997 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14998 * dwarf2/leb.h: New file, from dwarf2read.c.
14999 * dwarf2/leb.c: New file, from dwarf2read.c.
15000 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15001 Remove.
15002 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15003 (COMMON_SFILES): Add dwarf2/leb.c.
15004
15005 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15006
15007 GDB 9.1 released.
15008
15009 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15010
15011 PR gdb/25190:
15012 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15013 * gdb/remote.c (remote_console_output): Update.
15014 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15015 (ui_file_puts): ...this.
15016 * gdb/ui-file.h (ui_file_puts): Add declaration.
15017 * gdb/utils.c (emit_style_escape): Update.
15018 (flush_wrap_buffer): Update.
15019 (fputs_maybe_filtered): Update.
15020 (fputs_unfiltered): Add function.
15021
15022 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15023
15024 * gdb/event-loop.c (gdb_wait_for_event): Update.
15025 * gdb/printcmd.c (printf_command): Update.
15026 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15027 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15028 (gdb_os_flush_stderr): Update.
15029 * gdb/remote.c (remote_console_output): Update.
15030 * gdb/ui-file.c (gdb_flush): Rename to...
15031 (ui_file_flush): ...this.
15032 (stderr_file::write): Update.
15033 (stderr_file::puts): Update.
15034 * gdb/ui-file.h (gdb_flush): Rename to...
15035 (ui_file_flush): ...this.
15036 * gdb/utils.c (gdb_flush): Add function.
15037 * gdb/utils.h (gdb_flush): Add declaration.
15038
15039 2020-02-07 Tom Tromey <tromey@adacore.com>
15040
15041 PR breakpoints/24915:
15042 * source.c (find_and_open_source): Do not check basenames_may_differ.
15043
15044 2020-02-07 Tom Tromey <tom@tromey.com>
15045
15046 * README: Update gdbserver documentation.
15047 * gdbserver: Move to top level.
15048 * configure.tgt (build_gdbserver): Remove.
15049 * configure.ac: Remove --enable-gdbserver.
15050 * configure: Rebuild.
15051 * Makefile.in (distclean): Don't mention gdbserver.
15052
15053 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15054
15055 * source-cache.c (source_cache::ensure): Surround
15056 get_plain_source_lines with a try/catch.
15057 (source_cache::get_line_charpos): Get rid of try/catch
15058 and only check for the return value of "ensure".
15059 * tui/tui-source.c (tui_source_window::set_contents):
15060 Simplify "nlines" calculation.
15061
15062 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15063
15064 * MAINTAINERS (Write After Approval): Add myself.
15065
15066 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15067
15068 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15069 function call.
15070
15071 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15072
15073 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15074
15075 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15076
15077 * nat/riscv-linux-tdesc.h: New file.
15078 * nat/riscv-linux-tdesc.c: New file, taking code from...
15079 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15080 ... here.
15081 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15082 NATDEPFILES.
15083
15084 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15085
15086 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15087 we don't set the fake simulator ptid to the null_ptid.
15088
15089 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15090
15091 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15092 * gdbthread.h (class thread_info) <resumed>: Likewise.
15093 * infrun.c (resume_1): Likewise.
15094 (proceed): Likewise.
15095 (infrun_thread_stop_requested): Likewise.
15096 (stop_all_threads): Likewise.
15097 (handle_inferior_event): Likewise.
15098 (restart_threads): Likewise.
15099 (finish_step_over): Likewise.
15100 (keep_going_stepped_thread): Likewise.
15101 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15102 (linux_handle_extended_wait): Likewise.
15103 * record-btrace.c (get_thread_current_frame_id): Likewise.
15104 * record-full.c (record_full_wait_1): Likewise.
15105 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15106 * target.c (target_resume): Likewise.
15107 * thread.c (set_running_thread): Likewise.
15108
15109 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15110
15111 * f-valprint.c (f77_print_array_1): Changed datatype of index
15112 variable to LONGEST from int to enable it to contain bound
15113 values correctly.
15114
15115 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15116
15117 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15118 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15119 offsets according to FLEN determined.
15120 (riscv_linux_nat_target::read_description): Determine FLEN
15121 dynamically.
15122 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15123 according to FLEN determined.
15124 (riscv_linux_nat_target::store_registers): Likewise.
15125
15126 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15127
15128 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15129 when reg->group is empty and reggroup is not.
15130
15131 2020-01-31 Tom Tromey <tromey@adacore.com>
15132
15133 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15134 Call beneath target's mourn_inferior after unpushing.
15135
15136 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15137
15138 PR tui/9765
15139 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15140 have enough lines to fill the screen, still return the lowest
15141 address we found.
15142
15143 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15144
15145 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15146 '-', '<', and '>' commands.
15147
15148 2020-01-29 Pedro Alves <palves@redhat.com>
15149 Sergio Durigan Junior <sergiodj@redhat.com>
15150
15151 * infcmd.c (construct_inferior_arguments): Assert that
15152 'argc' is greater than 0.
15153
15154 2020-01-29 Luis Machado <luis.machado@linaro.org>
15155
15156 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15157 (BRK_INSN_MASK): Define to 0xd4200000.
15158 (aarch64_program_breakpoint_here_p): New function.
15159 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15160 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15161 breakpoint.c.
15162 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15163 breakpoint.h
15164 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15165 call gdbarch_program_breakpoint_here_p.
15166 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15167 default_program_breakpoint_here_p, changed return type to bool and
15168 simplified.
15169 * breakpoint.h (program_breakpoint_here): Moved prototype to
15170 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15171 return type to bool.
15172 * gdbarch.c: Regenerate.
15173 * gdbarch.h: Regenerate.
15174 * gdbarch.sh (program_breakpoint_here_p): New method.
15175 * infrun.c (handle_signal_stop): Call
15176 gdbarch_program_breakpoint_here_p.
15177
15178 2020-01-26 Tom Tromey <tom@tromey.com>
15179
15180 * ctfread.c (struct ctf_fp_info): Reindent.
15181 (_initialize_ctfread): Remove.
15182
15183 2020-01-26 Tom Tromey <tom@tromey.com>
15184
15185 * psymtab.c (partial_map_expand_apply)
15186 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15187 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15188 (psym_print_stats, psym_expand_symtabs_for_function)
15189 (psym_map_symbol_filenames, psym_map_matching_symbols)
15190 (psym_expand_symtabs_matching)
15191 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15192 (maintenance_check_psymtabs): Use new methods.
15193 * psympriv.h (struct partial_symtab) <readin_p,
15194 get_compunit_symtab>: New methods.
15195 <readin, compunit_symtab>: Remove members.
15196 (struct standard_psymtab): New.
15197 (struct legacy_psymtab): Derive from standard_psymtab.
15198 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15199 standard_psymtab.
15200 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15201
15202 2020-01-26 Tom Tromey <tom@tromey.com>
15203
15204 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15205 read_dependencies. Add assert.
15206 * psymtab.c (partial_symtab::read_dependencies): New method.
15207 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15208 method.
15209 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15210 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15211 read_dependencies.
15212 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15213 Add assert.
15214
15215 2020-01-26 Tom Tromey <tom@tromey.com>
15216
15217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15218 Call expand_psymtab.
15219 (xcoff_read_symtab): Call expand_psymtab.
15220 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15221 legacy_expand_psymtab.
15222 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15223 method.
15224 (struct legacy_psymtab) <expand_psymtab>: Implement.
15225 <legacy_expand_psymtab>: New member.
15226 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15227 (parse_partial_symbols): Set legacy_expand_psymtab.
15228 (psymtab_to_symtab_1): Change argument order. Call
15229 expand_psymtab.
15230 (new_psymtab): Set legacy_expand_psymtab.
15231 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15232 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15233 expand_psymtab.
15234 (dwarf2_psymtab::expand_psymtab): Rename from
15235 psymtab_to_symtab_1. Call expand_psymtab.
15236 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15237 (dbx_end_psymtab): Likewise.
15238 (dbx_psymtab_to_symtab_1): Change argument order. Call
15239 expand_psymtab.
15240 (dbx_read_symtab): Call expand_psymtab.
15241 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15242 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15243 (ctf_psymtab::read_symtab): Call expand_psymtab.
15244
15245 2020-01-26 Tom Tromey <tom@tromey.com>
15246
15247 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15248 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15249 messages.
15250 * mdebugread.c (mdebug_read_symtab): Remove prints.
15251 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15252 assert.
15253 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15254
15255 2020-01-26 Tom Tromey <tom@tromey.com>
15256
15257 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15258 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15259 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15260 legacy_symtab.
15261 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15262 * psymtab.c (psymtab_to_symtab): Call method.
15263 (dump_psymtab): Update.
15264 * psympriv.h (struct partial_symtab): Add virtual destructor.
15265 <read_symtab>: New method.
15266 (struct legacy_symtab): New.
15267 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15268 (struct pst_map) <pst>: Now a legacy_psymtab.
15269 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15270 (new_psymtab): Use legacy_psymtab.
15271 * dwarf2read.h (struct dwarf2_psymtab): New.
15272 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15273 * dwarf2read.c (dwarf2_create_include_psymtab)
15274 (dwarf2_build_include_psymtabs, create_type_unit_group)
15275 (create_partial_symtab, process_psymtab_comp_unit_reader)
15276 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15277 (set_partial_user): Use dwarf2_psymtab.
15278 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15279 (psymtab_to_symtab_1, process_full_comp_unit)
15280 (process_full_type_unit, dwarf2_ranges_read)
15281 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15282 (dwarf_decode_lines): Use dwarf2_psymtab.
15283 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15284 (add_address_entry_worker, write_one_signatured_type)
15285 (recursively_count_psymbols, recursively_write_psymbols)
15286 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15287 (write_debug_names): Likewise.
15288 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15289 <pst>: Now a legacy_psymtab.
15290 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15291 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15292 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15293 * ctfread.c (struct ctf_psymtab): New.
15294 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15295 ctf_psymtab.
15296 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15297 (create_partial_symtab): Return a ctf_psymtab.
15298 (scan_partial_symbols): Update.
15299
15300 2020-01-26 Tom Tromey <tom@tromey.com>
15301
15302 * xcoffread.c (xcoff_start_psymtab): Use new.
15303 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15304 renamed from start_psymtab_common.
15305 * psympriv.h (struct partial_symtab): Add new constructor.
15306 (start_psymtab_common): Don't declare.
15307 * mdebugread.c (parse_partial_symbols): Use new.
15308 * dwarf2read.c (create_partial_symtab): Use new.
15309 * dbxread.c (start_psymtab): Use new.
15310 * ctfread.c (create_partial_symtab): Use new.
15311
15312 2020-01-26 Tom Tromey <tom@tromey.com>
15313
15314 * xcoffread.c (xcoff_end_psymtab): Use new.
15315 * psymtab.c (start_psymtab_common): Use new.
15316 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15317 Update.
15318 * psympriv.h (struct partial_symtab): Add parameters to
15319 constructor. Don't inline.
15320 (allocate_psymtab): Don't declare.
15321 * mdebugread.c (new_psymtab): Use new.
15322 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15323 * dbxread.c (dbx_end_psymtab): Use new.
15324
15325 2020-01-26 Tom Tromey <tom@tromey.com>
15326
15327 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15328 allocate_psymtab. Update documentation.
15329 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15330 allocate_psymtab. Do not use new.
15331 (allocate_psymtab): Use new. Update.
15332
15333 2020-01-26 Tom Tromey <tom@tromey.com>
15334
15335 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15336 * psymtab.c (psym_print_stats): Update.
15337 * psympriv.h (struct partial_symtab) <readin,
15338 psymtabs_addrmap_supported, anonymous>: Now bool.
15339 * mdebugread.c (psymtab_to_symtab_1): Update.
15340 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15341 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15342 (process_full_comp_unit, process_full_type_unit): Update.
15343 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15344 * ctfread.c (psymtab_to_symtab): Update.
15345
15346 2020-01-26 Tom Tromey <tom@tromey.com>
15347
15348 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15349 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15350 * psymtab.c (psymtab_storage): Delete psymtabs.
15351 (psymtab_storage::allocate_psymtab): Use new.
15352 (psymtab_storage::discard_psymtab): Use delete.
15353 * psympriv.h (struct partial_symtab): Add constructor and
15354 initializers.
15355
15356 2020-01-26 Tom Tromey <tom@tromey.com>
15357
15358 * machoread.c: Do not include psympriv.h.
15359
15360 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15361
15362 * NEWS: Mention the new option and the set/show commands.
15363
15364 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15365
15366 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15367 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15368 (validate_exec_file): New variables, enums, functions.
15369 (exec_file_locate_attach, print_section_info): Style the filenames.
15370 (_initialize_exec): Install show_exec_file_mismatch_command and
15371 set_exec_file_mismatch_command.
15372 * gdbcore.h (validate_exec_file): Declare.
15373 * infcmd.c (attach_command): Call validate_exec_file.
15374 * remote.c ( remote_target::remote_add_inferior): Likewise.
15375
15376 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15377
15378 * frame.c (find_frame_sal): Move call to get_next_frame into more
15379 inner scope.
15380 * inline-frame.c (inilne_state) <inline_state>: Update argument
15381 types.
15382 (inilne_state) <skipped_symbol>: Rename to...
15383 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15384 (skip_inline_frames): Build vector of skipped symbols and use this
15385 to reate the inline_state.
15386 (inline_skipped_symbol): Add a comment and some assertions, fetch
15387 skipped symbol from the list.
15388
15389 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15390
15391 * buildsym.c (lte_is_less_than): Delete.
15392 (buildsym_compunit::end_symtab_with_blockvector): Create local
15393 lambda function to sort line table entries, and use
15394 std::stable_sort instead of std::sort.
15395 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15396 markers when looking for a previous line.
15397
15398 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15399
15400 * dwarf2read.c (lnp_state_machine::record_line): Include
15401 end_sequence parameter in debug print out. Record the line if we
15402 are at an end_sequence marker even if it's not the start of a
15403 statement.
15404 * symmisc.c (maintenance_print_one_line_table): Print end of
15405 sequence markers with 'END' not '0'.
15406
15407 2020-01-24 Pedro Alves <palves@redhat.com>
15408
15409 PR gdb/25410
15410 * thread.c (scoped_restore_current_thread::restore): Use
15411 switch_to_inferior_no_thread.
15412 * exec.c: Include "progspace-and-thread.h".
15413 (add_target_sections, remove_target_sections):
15414 scoped_restore_current_pspace_and_thread instead of
15415 scoped_restore_current_thread.
15416 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15417 and aspace to the inferior before calling clone_program_space.
15418 Remove stale comment.
15419
15420 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15421
15422 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15423 (arm_netbsd_nat_target::fetch_registers): ...this.
15424 (arm_nbsd_nat_target::store_registers): Rename to...
15425 (arm_netbsd_nat_target::store_registers): ...this.
15426
15427 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15428
15429 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15430 register_t.
15431
15432 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15433
15434 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15435 Update comment.
15436 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15437 Likewise.
15438 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15439 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15440 the correct replacement (iterate_over_regset_sections).
15441 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15442 Update comment.
15443
15444 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15445
15446 PR gdb/23718
15447 * gdb/python/python.c (execute_gdb_command): Call
15448 async_enable_stdin in catch block.
15449
15450 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15451
15452 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15453 SWITCH_THRU_ALL_UIS.
15454
15455 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15456
15457 PR tui/9765
15458 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15459 comment, add extra parameter, and update to store previous symbol
15460 when appropriate.
15461 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15462 add extra parameter.
15463 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15464 remove unneeded parameter, add try/catch around gdb_print_insn,
15465 rewrite to add items to asm_lines vector.
15466 (tui_find_backward_disassembly_start_address): New function.
15467 (tui_find_disassembly_address): Updated throughout.
15468 (tui_disasm_window::set_contents): Update for changes to
15469 tui_disassemble.
15470 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15471 number of lines to scroll.
15472
15473 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15474
15475 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15476 (SECT_OFF_DATA): Likewise.
15477 (SECT_OFF_RODATA): Likewise.
15478 (SECT_OFF_TEXT): Likewise.
15479 (SECT_OFF_BSS): Likewise.
15480 (struct objfile) <text_section_offset, data_section_offset>: New
15481 methods.
15482 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15483 objfile::text_section_offset.
15484 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15485 * coffread.c (coff_symtab_read): Likewise.
15486 (enter_linenos): Likewise.
15487 (process_coff_symbol): Likewise.
15488 * ctfread.c (get_objfile_text_range): Likewise.
15489 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15490 Use objfile::data_section_offset.
15491 * dwarf2-frame.c (execute_cfa_program): Use
15492 objfile::text_section_offset.
15493 (dwarf2_frame_find_fde): Likewise.
15494 * dwarf2read.c (create_addrmap_from_index): Likewise.
15495 (create_addrmap_from_aranges): Likewise.
15496 (dw2_find_pc_sect_compunit_symtab): Likewise.
15497 (process_psymtab_comp_unit_reader): Likewise.
15498 (add_partial_symbol): Likewise.
15499 (add_partial_subprogram): Likewise.
15500 (process_full_comp_unit): Likewise.
15501 (read_file_scope): Likewise.
15502 (read_func_scope): Likewise.
15503 (read_lexical_block_scope): Likewise.
15504 (read_call_site_scope): Likewise.
15505 (dwarf2_rnglists_process): Likewise.
15506 (dwarf2_ranges_process): Likewise.
15507 (dwarf2_ranges_read): Likewise.
15508 (dwarf_decode_lines_1): Likewise.
15509 (new_symbol): Likewise.
15510 (dwarf2_fetch_die_loc_sect_off): Likewise.
15511 (dwarf2_per_cu_text_offset): Likewise.
15512 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15513 * hppa-tdep.c (read_unwind_info): Likewise.
15514 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15515 * psympriv.h (struct partial_symtab): Likewise.
15516 * psymtab.c (find_pc_sect_psymtab): Likewise.
15517 * solib-svr4.c (enable_break): Likewise.
15518 * stap-probe.c (relocate_address): Use
15519 objfile::data_section_offset.
15520 * xcoffread.c (enter_line_range): Use
15521 objfile::text_section_offset.
15522 (read_xcoff_symtab): Likewise.
15523
15524 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15525
15526 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15527 declaration to narrower scopes.
15528
15529 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15530
15531 * darwin-nat.h (struct darwin_exception_msg, enum
15532 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15533 Move up.
15534 (class darwin_nat_target) <wait_1, check_new_threads,
15535 decode_exception_message, decode_message, stop_inferior,
15536 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15537 * darwin-nat.c (darwin_check_new_threads): Rename to...
15538 (darwin_nat_target::check_new_threads): ... this.
15539 (darwin_suspend_inferior_it): Remove.
15540 (darwin_decode_exception_message): Rename to...
15541 (darwin_nat_target::decode_exception_message): ... this.
15542 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15543 (darwin_decode_message): Rename to...
15544 (darwin_nat_target::decode_message): ... this.
15545 (cancel_breakpoint): Rename to...
15546 (darwin_nat_target::cancel_breakpoint): ... this.
15547 (darwin_wait): Rename to...
15548 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15549 instead of iterate_over_inferiors.
15550 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15551 (darwin_stop_inferior): Rename to...
15552 (darwin_nat_target::stop_inferior): ... this.
15553 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15554 (darwin_init_thread_list): Rename to...
15555 (darwin_nat_target::init_thread_list): ... this.
15556 (darwin_ptrace_him): Rename to...
15557 (darwin_nat_target::ptrace_him): ... this.
15558 (darwin_nat_target::create_inferior): Pass lambda function to
15559 fork_inferior.
15560 (darwin_nat_target::detach): Call stop_inferior instead of
15561 darwin_stop_inferior.
15562 * fork-inferior.h (fork_inferior): Change init_trace_fun
15563 parameter to gdb::function_view.
15564 * fork-inferior.c (fork_inferior): Likewise.
15565
15566 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15567
15568 * i386-cygwin-tdep.c (core_process_module_section): Update.
15569 * windows-nat.c (struct lm_info_windows): Add text_offset.
15570 (windows_xfer_shared_libraries): Update.
15571 * windows-tdep.c (windows_xfer_shared_library):
15572 Add text_offset_cached argument.
15573 * windows-tdep.h (windows_xfer_shared_library): Update.
15574
15575 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15576
15577 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15578
15579 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15580
15581 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15582 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15583 replace with range-based for.
15584 (gdbsim_interrupt_inferior): Remove.
15585 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15586 with a range-based for. Inline code from
15587 gdbsim_interrupt_inferior.
15588
15589 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15590
15591 * infrun.c (proceed): Fix indentation.
15592
15593 2020-01-21 Tom Tromey <tromey@adacore.com>
15594
15595 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15596 * python/python.c (python_extension_ops): Update.
15597 (gdbpy_colorize): New function.
15598 * python/lib/gdb/__init__.py (colorize): New function.
15599 * extension.h (ext_lang_colorize): Declare.
15600 * extension.c (ext_lang_colorize): New function.
15601 * extension-priv.h (struct extension_language_ops) <colorize>: New
15602 member.
15603 * cli/cli-style.c (_initialize_cli_style): Update help text.
15604
15605 2020-01-21 Luis Machado <luis.machado@linaro.org>
15606
15607 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15608 <cond>: Change type to bool.
15609 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15610 (aarch64_displaced_step_cb): Likewise.
15611 (aarch64_displaced_step_tb): Likewise.
15612
15613 2020-01-21 Luis Machado <luis.machado@linaro.org>
15614
15615 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15616 output.
15617
15618 2020-01-21 Luis Machado <luis.machado@linaro.org>
15619
15620 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15621 <pc_adjust>: Adjust the documentation.
15622 (aarch64_displaced_step_fixup): Check if PC really moved before
15623 adjusting it.
15624
15625 2020-01-19 Tom Tromey <tom@tromey.com>
15626
15627 * disasm.c (~gdb_disassembler): New destructor.
15628 (gdb_buffered_insn_length): Call disassemble_free_target.
15629 * disasm.h (class gdb_disassembler): Declare destructor. Use
15630 DISABLE_COPY_AND_ASSIGN.
15631
15632 2020-01-19 Tom Tromey <tom@tromey.com>
15633
15634 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15635 (die_reader_func_ftype): Remove.
15636 (cutu_reader): New class.
15637 (dw2_get_file_names_reader): Remove "data" parameter.
15638 (dw2_get_file_names): Use cutu_reader.
15639 (create_debug_type_hash_table): Update.
15640 (read_cutu_die_from_dwo): Update comment.
15641 (lookup_dwo_unit): Add dwo_name parameter.
15642 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15643 die_reader_func_ftype and data parameters.
15644 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15645 Remove die_reader_func_ftype and data parameters.
15646 (~cutu_reader): New; from init_cutu_and_read_dies.
15647 (cutu_reader::cutu_reader): Rename from
15648 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15649 and data parameters.
15650 (init_cutu_and_read_dies_simple): Remove.
15651 (struct process_psymtab_comp_unit_data): Remove.
15652 (process_psymtab_comp_unit_reader): Remove data parameter; add
15653 want_partial_unit and pretend_language parameters.
15654 (process_psymtab_comp_unit): Use cutu_reader.
15655 (build_type_psymtabs_reader): Remove data parameter.
15656 (build_type_psymtabs_1): Use cutu_reader.
15657 (process_skeletonless_type_unit): Likewise.
15658 (load_partial_comp_unit_reader): Remove.
15659 (load_partial_comp_unit): Use cutu_reader.
15660 (load_full_comp_unit_reader): Remove.
15661 (load_full_comp_unit): Use cutu_reader.
15662 (struct create_dwo_cu_data): Remove.
15663 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15664 dwo_unit parameters.
15665 (create_cus_hash_table): Use cutu_reader.
15666 (struct dwarf2_read_addr_index_data): Remove.
15667 (dwarf2_read_addr_index_reader): Remove.
15668 (dwarf2_read_addr_index): Use cutu_reader.
15669 (read_signatured_type_reader): Remove.
15670 (read_signatured_type): Use cutu_reader.
15671
15672 2020-01-19 Tom Tromey <tom@tromey.com>
15673
15674 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15675 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15676 (tui_wrefresh): Declare.
15677 * tui/tui-wingeneral.c (suppress_output): New global.
15678 (tui_suppress_output, ~tui_suppress_output): New constructor and
15679 destructor.
15680 (tui_wrefresh): New function.
15681 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15682 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15683 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15684 method.
15685 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15686 tui_wrefresh.
15687 (tui_data_window::no_refresh): New method.
15688 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15689 (tui_reg_command): Use tui_suppress_output
15690 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15691 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15692 method.
15693 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15694
15695 2020-01-19 Tom Tromey <tom@tromey.com>
15696
15697 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15698 Handle case where symtab is null.
15699
15700 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15701
15702 * linux-fork.c (one_fork_p): Simplify.
15703
15704 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15705
15706 * top.c (struct qt_args): Remove.
15707 (kill_or_detach): Change return type to void, replace `void *`
15708 parameter with a proper one.
15709 (print_inferior_quit_action): Likewise.
15710 (quit_confirm): Use range-based for loop to iterate over inferiors.
15711 (quit_force): Likewise.
15712
15713 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15714
15715 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15716 `void *` parameter with proper parameters.
15717 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15718 (print_one_inferior): Change return type to void, replace `void *`
15719 parameter with proper parameters.
15720 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15721 inferiors.
15722 (get_other_inferior): Remove.
15723 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15724 inferiors.
15725
15726 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15727
15728 * mi/mi-interp.c (report_initial_inferior): Remove.
15729 (mi_interp::init): Use range-based for to iterate over inferiors.
15730
15731 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15732
15733 * python/py-inferior.c (build_inferior_list): Remove.
15734 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15735
15736 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15737
15738 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15739 (btrace_stitch_trace): Likewise.
15740 * charset.c (intermediate_encoding): Likewise (vaild).
15741 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15742 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15743 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15744
15745 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15746
15747 * windows-tdep.c (windows_get_tlb_type):
15748 Add rtl_user_process_parameters type.
15749
15750 2020-01-16 Pedro Alves <palves@redhat.com>
15751 Norbert Lange <nolange79@gmail.com>
15752
15753 PR build/24805
15754 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15755 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15756 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15757 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15758 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15759 (ps_plog): Redeclare exported functions with default visibility.
15760
15761 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15762
15763 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15764 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15765
15766 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15767
15768 * infcmd.c (post_create_inferior): Use get_thread_regcache
15769 instead of get_current_regcache.
15770
15771 2020-01-14 Tom Tromey <tom@tromey.com>
15772
15773 PR symtab/12535:
15774 * python/python.c (gdbpy_decode_line): Treat empty string the same
15775 as no argument.
15776
15777 2020-01-14 Tom Tromey <tom@tromey.com>
15778
15779 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15780
15781 2020-01-14 Tom Tromey <tom@tromey.com>
15782
15783 * nat/linux-btrace.c: Don't include <config.h>.
15784 * nat/linux-ptrace.c: Don't include <config.h>.
15785 * nat/x86-linux-dregs.c: Don't include <config.h>.
15786
15787 2020-01-14 Tom Tromey <tom@tromey.com>
15788
15789 * configure: Rebuild.
15790 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15791
15792 2020-01-14 Tom Tromey <tom@tromey.com>
15793
15794 * nat/x86-linux-dregs.c: Include configh.h.
15795 * nat/linux-ptrace.c: Include configh.h.
15796 * nat/linux-btrace.c: Include configh.h.
15797 * defs.h: Include config.h, bfd.h.
15798 * configure.ac: Don't source common.host.
15799 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15800 * configure: Rebuild.
15801 * acinclude.m4: Update path.
15802 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15803 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15804 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15805 (CLIBS): Add LIBSUPPORT.
15806 (CDEPS): Likewise.
15807 (COMMON_SFILES): Remove gdbsupport files.
15808 (HFILES_NO_SRCDIR): Likewise.
15809 (stamp-version): Update path to create-version.sh.
15810 (ALLDEPFILES): Remove gdbsupport files.
15811
15812 2020-01-14 Tom Tromey <tom@tromey.com>
15813
15814 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15815 USE_WIN32API when needed.
15816 * configure.ac (USE_WIN32API): Don't define.
15817 (WIN32LIBS): Use WIN32APILIBS.
15818 * configure: Rebuild.
15819
15820 2020-01-14 Tom Tromey <tom@tromey.com>
15821
15822 * configure: Rebuild.
15823 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15824
15825 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15826
15827 * skip.c (skip_function_command): Make skip w/o arguments use the
15828 name of the inlined function if pc is inside any inlined function.
15829
15830 2020-01-14 Luis Machado <luis.machado@linaro.org>
15831
15832 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15833 * infrun.c (resume_1): Likewise.
15834 (handle_inferior_event): Remove stale comment.
15835 * linux-nat.c (linux_nat_target::resume): Update comments.
15836 (save_stop_reason): Likewise.
15837 (linux_nat_filter_event): Likewise.
15838 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15839
15840 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15841
15842 * elfread.c (record_minimal_symbol): Set section index to 0 for
15843 non-allocatable sections.
15844
15845
15846 2020-01-13 Ali Tamur <tamur@google.com>
15847
15848 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15849 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15850 to gdb::optional. Update comments.
15851 (dwo_file): Update comments.
15852 (read_attribute): Update API to take an additional out parameter,
15853 need_reprocess. This is used to mark attributes that need other
15854 attributes (e.g. str_offsets_base) for correct computation which may not
15855 have been read yet.
15856 (read_attribute_reprocess): New function declaration.
15857 (read_addr_index): Likewise.
15858 (read_dwo_str_index): Likewise.
15859 (read_stub_str_index): Likewise.
15860 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15861 (lookup_addr_base): New function definition.
15862 (lookup_ranges_base): Likewise.
15863 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15864 lookup_ranges_base.
15865 (init_cutu_and_read_dies): Update comments.
15866 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15867 unit. This is used to inherit parent's str_offsets_base and addr_base.
15868 Update comments.
15869 (init_cutu_and_read_dies_simple): Reflect API changes.
15870 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15871 (create_cus_hash_table): Change API to take parent compile unit.
15872 Reflect API changes.
15873 (open_and_init_dwo_file): Reflect API changes.
15874 (dwarf2_get_pc_bounds): Update comments.
15875 (dwarf2_record_block_ranges): Likewise.
15876 (read_full_die_1): Change implementation to reprocess attributes that
15877 need str_offsets_base and addr_base.
15878 (partial_die_info::read): Likewise.
15879 (read_attribute_reprocess): New function definition.
15880 (read_attribute_value): Change API to take an additional out parameter,
15881 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15882 when a non-dwo compile unit has index based attributes.
15883 (read_attribute): Reflect API changes.
15884 (read_addr_index_1): Reflect API changes. Update comments.
15885 (dwarf2_read_addr_index_data): Reflect API changes.
15886 (dwarf2_read_addr_index): Likewise.
15887 (read_str_index): Change API and implementation. This becomes a helper
15888 to be used by the new string index related methods. Update error
15889 message and comments.
15890 (read_dwo_str_index): New function definition.
15891 (read_stub_str_index): Likewise.
15892 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15893 * symfile.h (dwarf2_debug_sections): Likewise.
15894 * xcoffread.c (dwarf2_debug_sections): Likewise.
15895
15896 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15897
15898 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15899 core_reg_sect type to gdb_byte *.
15900 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15901 * cris-tdep.c (fetch_core_registers): Likewise.
15902 * corelow.c (core_target::get_core_register_section): Change
15903 type of `contents` to gdb::byte_vector.
15904
15905 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15906
15907 * tui/tui-wingeneral.c (box_win): Position the title in the center
15908 of the border.
15909
15910 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15911
15912 * corelow.c (core_target::get_core_register_section): Use
15913 std::vector instead of alloca.
15914
15915 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15916
15917 * warning.m4: Add -Wmissing-declarations to build_warnings.
15918 * configure: Re-generate.
15919
15920 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15921
15922 * python/python.c (init__gdb_module): Add declaration.
15923
15924 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15925
15926 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15927 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15928 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15929 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15930 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15931 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15932 * ada-exp.y (_initialize_ada_exp): Add declaration.
15933 * ada-lang.c (_initialize_ada_language): Add declaration.
15934 * ada-tasks.c (_initialize_tasks): Add declaration.
15935 * agent.c (_initialize_agent): Add declaration.
15936 * aix-thread.c (_initialize_aix_thread): Add declaration.
15937 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15938 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15939 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15940 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15941 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15942 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15943 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15944 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15945 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15946 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15947 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15948 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15949 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15950 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15951 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15952 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15953 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15954 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15955 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15956 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15957 * annotate.c (_initialize_annotate): Add declaration.
15958 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15959 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15960 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15961 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15962 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15963 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15964 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15965 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15966 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15967 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15968 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15969 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15970 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15971 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15972 * auto-load.c (_initialize_auto_load): Add declaration.
15973 * auxv.c (_initialize_auxv): Add declaration.
15974 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15975 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15976 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15977 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15978 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15979 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15980 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15981 * breakpoint.c (_initialize_breakpoint): Add declaration.
15982 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15983 * btrace.c (_initialize_btrace): Add declaration.
15984 * charset.c (_initialize_charset): Add declaration.
15985 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15986 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15987 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15988 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15989 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15990 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15991 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15992 * coffread.c (_initialize_coffread): Add declaration.
15993 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15994 * compile/compile.c (_initialize_compile): Add declaration.
15995 * complaints.c (_initialize_complaints): Add declaration.
15996 * completer.c (_initialize_completer): Add declaration.
15997 * copying.c (_initialize_copying): Add declaration.
15998 * corefile.c (_initialize_core): Add declaration.
15999 * corelow.c (_initialize_corelow): Add declaration.
16000 * cp-abi.c (_initialize_cp_abi): Add declaration.
16001 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16002 * cp-support.c (_initialize_cp_support): Add declaration.
16003 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16004 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16005 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16006 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16007 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16008 * ctfread.c (_initialize_ctfread): Add declaration.
16009 * d-lang.c (_initialize_d_language): Add declaration.
16010 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16011 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16012 * dbxread.c (_initialize_dbxread): Add declaration.
16013 * dcache.c (_initialize_dcache): Add declaration.
16014 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16015 * disasm.c (_initialize_disasm): Add declaration.
16016 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16017 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16018 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16019 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16020 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16021 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16022 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16023 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16024 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16025 * elfread.c (_initialize_elfread): Add declaration.
16026 * exec.c (_initialize_exec): Add declaration.
16027 * extension.c (_initialize_extension): Add declaration.
16028 * f-lang.c (_initialize_f_language): Add declaration.
16029 * f-valprint.c (_initialize_f_valprint): Add declaration.
16030 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16031 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16032 * filesystem.c (_initialize_filesystem): Add declaration.
16033 * findcmd.c (_initialize_mem_search): Add declaration.
16034 * findvar.c (_initialize_findvar): Add declaration.
16035 * fork-child.c (_initialize_fork_child): Add declaration.
16036 * frame-base.c (_initialize_frame_base): Add declaration.
16037 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16038 * frame.c (_initialize_frame): Add declaration.
16039 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16040 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16041 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16042 * gcore.c (_initialize_gcore): Add declaration.
16043 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16044 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16045 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16046 * gdbarch.c (_initialize_gdbarch): Add declaration.
16047 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16048 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16049 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16050 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16051 * go-lang.c (_initialize_go_language): Add declaration.
16052 * go32-nat.c (_initialize_go32_nat): Add declaration.
16053 * guile/guile.c (_initialize_guile): Add declaration.
16054 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16055 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16056 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16057 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16058 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16059 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16060 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16061 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16062 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16063 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16064 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16065 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16066 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16067 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16068 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16069 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16070 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16071 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16072 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16073 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16074 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16075 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16076 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16077 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16078 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16079 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16080 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16081 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16082 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16083 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16084 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16085 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16086 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16087 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16088 * infcall.c (_initialize_infcall): Add declaration.
16089 * infcmd.c (_initialize_infcmd): Add declaration.
16090 * inflow.c (_initialize_inflow): Add declaration.
16091 * infrun.c (_initialize_infrun): Add declaration.
16092 * interps.c (_initialize_interpreter): Add declaration.
16093 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16094 * jit.c (_initialize_jit): Add declaration.
16095 * language.c (_initialize_language): Add declaration.
16096 * linux-fork.c (_initialize_linux_fork): Add declaration.
16097 * linux-nat.c (_initialize_linux_nat): Add declaration.
16098 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16099 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16100 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16101 * m2-lang.c (_initialize_m2_language): Add declaration.
16102 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16103 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16104 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16105 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16106 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16107 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16108 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16109 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16110 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16111 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16112 * machoread.c (_initialize_machoread): Add declaration.
16113 * macrocmd.c (_initialize_macrocmd): Add declaration.
16114 * macroscope.c (_initialize_macroscope): Add declaration.
16115 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16116 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16117 * maint.c (_initialize_maint_cmds): Add declaration.
16118 * mdebugread.c (_initialize_mdebugread): Add declaration.
16119 * memattr.c (_initialize_mem): Add declaration.
16120 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16121 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16122 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16123 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16124 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16125 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16126 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16127 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16128 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16129 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16130 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16131 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16132 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16133 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16134 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16135 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16136 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16137 * mipsread.c (_initialize_mipsread): Add declaration.
16138 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16139 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16140 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16141 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16142 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16143 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16144 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16145 * nto-procfs.c (_initialize_procfs): Add declaration.
16146 * objc-lang.c (_initialize_objc_language): Add declaration.
16147 * observable.c (_initialize_observer): Add declaration.
16148 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16149 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16150 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16151 * osabi.c (_initialize_gdb_osabi): Add declaration.
16152 * osdata.c (_initialize_osdata): Add declaration.
16153 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16154 * parse.c (_initialize_parse): Add declaration.
16155 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16156 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16157 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16158 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16159 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16160 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16161 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16162 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16163 * printcmd.c (_initialize_printcmd): Add declaration.
16164 * probe.c (_initialize_probe): Add declaration.
16165 * proc-api.c (_initialize_proc_api): Add declaration.
16166 * proc-events.c (_initialize_proc_events): Add declaration.
16167 * proc-service.c (_initialize_proc_service): Add declaration.
16168 * procfs.c (_initialize_procfs): Add declaration.
16169 * producer.c (_initialize_producer): Add declaration.
16170 * psymtab.c (_initialize_psymtab): Add declaration.
16171 * python/python.c (_initialize_python): Add declaration.
16172 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16173 * record-btrace.c (_initialize_record_btrace): Add declaration.
16174 * record-full.c (_initialize_record_full): Add declaration.
16175 * record.c (_initialize_record): Add declaration.
16176 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16177 * regcache.c (_initialize_regcache): Add declaration.
16178 * reggroups.c (_initialize_reggroup): Add declaration.
16179 * remote-notif.c (_initialize_notif): Add declaration.
16180 * remote-sim.c (_initialize_remote_sim): Add declaration.
16181 * remote.c (_initialize_remote): Add declaration.
16182 * reverse.c (_initialize_reverse): Add declaration.
16183 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16184 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16185 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16186 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16187 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16188 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16189 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16190 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16191 Add declaration.
16192 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16193 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16194 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16195 * rust-exp.y (_initialize_rust_exp): Add declaration.
16196 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16197 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16198 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16199 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16200 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16201 * score-tdep.c (_initialize_score_tdep): Add declaration.
16202 * ser-go32.c (_initialize_ser_dos): Add declaration.
16203 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16204 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16205 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16206 * ser-uds.c (_initialize_ser_socket): Add declaration.
16207 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16208 * serial.c (_initialize_serial): Add declaration.
16209 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16210 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16211 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16212 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16213 * skip.c (_initialize_step_skip): Add declaration.
16214 * sol-thread.c (_initialize_sol_thread): Add declaration.
16215 * solib-aix.c (_initialize_solib_aix): Add declaration.
16216 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16217 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16218 * solib-frv.c (_initialize_frv_solib): Add declaration.
16219 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16220 * solib-target.c (_initialize_solib_target): Add declaration.
16221 * solib.c (_initialize_solib): Add declaration.
16222 * source-cache.c (_initialize_source_cache): Add declaration.
16223 * source.c (_initialize_source): Add declaration.
16224 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16225 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16226 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16227 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16228 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16229 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16230 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16231 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16232 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16233 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16234 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16235 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16236 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16237 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16238 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16239 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16240 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16241 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16242 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16243 * stabsread.c (_initialize_stabsread): Add declaration.
16244 * stack.c (_initialize_stack): Add declaration.
16245 * stap-probe.c (_initialize_stap_probe): Add declaration.
16246 * std-regs.c (_initialize_frame_reg): Add declaration.
16247 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16248 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16249 * symfile.c (_initialize_symfile): Add declaration.
16250 * symmisc.c (_initialize_symmisc): Add declaration.
16251 * symtab.c (_initialize_symtab): Add declaration.
16252 * target.c (_initialize_target): Add declaration.
16253 * target-connection.c (_initialize_target_connection): Add
16254 declaration.
16255 * target-dcache.c (_initialize_target_dcache): Add declaration.
16256 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16257 * thread.c (_initialize_thread): Add declaration.
16258 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16259 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16260 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16261 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16262 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16263 * tracectf.c (_initialize_ctf): Add declaration.
16264 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16265 * tracefile.c (_initialize_tracefile): Add declaration.
16266 * tracepoint.c (_initialize_tracepoint): Add declaration.
16267 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16268 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16269 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16270 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16271 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16272 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16273 * tui/tui.c (_initialize_tui): Add declaration.
16274 * typeprint.c (_initialize_typeprint): Add declaration.
16275 * ui-style.c (_initialize_ui_style): Add declaration.
16276 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16277 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16278 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16279 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16280 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16281 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16282 * unittests/filtered_iterator-selftests.c
16283 (_initialize_filtered_iterator_selftests): Add declaration.
16284 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16285 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16286 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16287 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16288 * unittests/main-thread-selftests.c
16289 (_initialize_main_thread_selftests): Add declaration.
16290 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16291 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16292 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16293 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16294 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16295 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16296 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16297 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16298 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16299 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16300 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16301 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16302 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16303 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16304 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16305 declaration.
16306 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16307 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16308 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16309 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16310 * user-regs.c (_initialize_user_regs): Add declaration.
16311 * utils.c (_initialize_utils): Add declaration.
16312 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16313 * valops.c (_initialize_valops): Add declaration.
16314 * valprint.c (_initialize_valprint): Add declaration.
16315 * value.c (_initialize_values): Add declaration.
16316 * varobj.c (_initialize_varobj): Add declaration.
16317 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16318 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16319 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16320 * windows-nat.c (_initialize_windows_nat): Add declaration.
16321 (_initialize_check_for_gdb_ini): Add declaration.
16322 (_initialize_loadable): Add declaration.
16323 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16324 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16325 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16326 * xcoffread.c (_initialize_xcoffread): Add declaration.
16327 * xml-support.c (_initialize_xml_support): Add declaration.
16328 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16329 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16330 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16331 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16332
16333 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16334
16335 * regformats/regdat.sh: Generate declaration for init function.
16336
16337 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16338
16339 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16340 up.
16341 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16342 close_one_inferior>: New methods.
16343 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16344 pass down target to find_inferior_pid.
16345 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16346 Pass down target to find_inferior_ptid.
16347 (gdbsim_target::create_inferior): Pass down target to
16348 add_thread_silent.
16349 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16350 target down to find_inferior_ptid and switch_to_thread.
16351 (gdbsim_target::close): Update to call close_one_inferior.
16352 (struct resume_data): Remove.
16353 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16354 directly, rather than through a void pointer.
16355 (gdbsim_target::resume): Update to call resume_one_inferior.
16356
16357 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16358
16359 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16360
16361 2020-01-12 Pedro Alves <palves@redhat.com>
16362
16363 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16364 directly for the current inferior instead of
16365 discard_all_inferiors.
16366 (discard_all_inferiors): Delete.
16367
16368 2020-01-11 Tom Tromey <tom@tromey.com>
16369
16370 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16371 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16372 deprecated_safe_get_selected_frame.
16373
16374 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16375
16376 * inferior.c (print_inferior): Switch inferior before printing it.
16377
16378 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16379 Pedro Alves <palves@redhat.com>
16380
16381 * progspace-and-thread.c (switch_to_program_space_and_thread):
16382 Assert there's an inferior for PSPACE. Use
16383 switch_to_inferior_no_thread to switch the inferior too.
16384 * progspace.c (program_space::~program_space): Call
16385 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16386 (program_space::free_all_objfiles): Don't call clear_symtab_users
16387 here.
16388 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16389
16390 2020-01-10 Pedro Alves <palves@redhat.com>
16391
16392 * NEWS: Mention multi-target debugging, "info connections", and
16393 "add-inferior -no-connection".
16394
16395 2020-01-10 Pedro Alves <palves@redhat.com>
16396
16397 * infrun.c: Include "target-connection.h".
16398 (check_multi_target_resumption): New.
16399 (proceed): Call it.
16400 * target-connection.c (make_target_connection_string): Make
16401 extern.
16402 * target-connection.h (make_target_connection_string): Declare.
16403
16404 2020-01-10 Pedro Alves <palves@redhat.com>
16405
16406 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16407 * inferior.c (uiout_field_connection): New function.
16408 (print_inferior): Add new "connection-id" column.
16409 (add_inferior_command): Show connection number/string of added
16410 inferior.
16411 * process-stratum-target.h
16412 (process_stratum_target::connection_string): New virtual method.
16413 (process_stratum_target::connection_number): New field.
16414 * remote.c (remote_target::connection_string): New override.
16415 * target-connection.c: New file.
16416 * target-connection.h: New file.
16417 * target.c (decref_target): Remove process_stratum targets from
16418 the connection list.
16419 (target_stack::push): Add process_stratum targets to the
16420 connection list.
16421
16422 2020-01-10 Pedro Alves <palves@redhat.com>
16423
16424 Revert:
16425 2016-04-12 Pedro Alves <palves@redhat.com>
16426 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16427 Remove references to name.
16428 * serial.h (struct serial) <name>: Delete.
16429
16430 2020-01-10 Pedro Alves <palves@redhat.com>
16431
16432 * gdbarch-selftests.c (register_to_value_test): Remove "target
16433 already pushed" check.
16434
16435 2020-01-10 Pedro Alves <palves@redhat.com>
16436 John Baldwin <jhb@FreeBSD.org>
16437
16438 * aarch64-linux-nat.c
16439 (aarch64_linux_nat_target::thread_architecture): Adjust.
16440 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16441 (task_command_1): Likewise.
16442 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16443 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16444 (aix_thread_target::store_registers)
16445 (aix_thread_target::thread_alive): Adjust.
16446 * amd64-fbsd-tdep.c: Include "inferior.h".
16447 (amd64fbsd_get_thread_local_address): Pass down target.
16448 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16449 thread's gdbarch instead of target_gdbarch.
16450 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16451 get_last_target_status.
16452 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16453 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16454 inferiors.
16455 (update_inserted_breakpoint_locations): Skip if inferiors with no
16456 execution.
16457 (update_global_location_list): When handling moribund locations,
16458 find representative inferior for location's pspace, and use thread
16459 count of its process_stratum target.
16460 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16461 * bsd-uthread.c (bsd_uthread_target::wait): Use
16462 as_process_stratum_target and adjust thread_change_ptid and
16463 add_thread calls.
16464 (bsd_uthread_target::update_thread_list): Use
16465 as_process_stratum_target and adjust find_thread_ptid,
16466 thread_change_ptid and add_thread calls.
16467 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16468 find_thread_ptid call.
16469 * corelow.c (add_to_thread_list): Adjust add_thread call.
16470 (core_target_open): Adjust add_thread_silent and thread_count
16471 calls.
16472 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16473 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16474 * event-top.c (async_disconnect): Pop targets from all inferiors.
16475 * exec.c (add_target_sections): Push exec target on all inferiors
16476 sharing the program space.
16477 (remove_target_sections): Remove the exec target from all
16478 inferiors sharing the program space.
16479 (exec_on_vfork): New.
16480 * exec.h (exec_on_vfork): Declare.
16481 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16482 Pass it down.
16483 (fbsd_nat_target::update_thread_list): Adjust.
16484 (fbsd_nat_target::resume): Adjust.
16485 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16486 down.
16487 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16488 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16489 get_thread_arch_regcache call.
16490 * fork-child.c (gdb_startup_inferior): Pass target down to
16491 startup_inferior and set_executing.
16492 * gdbthread.h (struct process_stratum_target): Forward declare.
16493 (add_thread, add_thread_silent, add_thread_with_info)
16494 (in_thread_list): Add process_stratum_target parameter.
16495 (find_thread_ptid(inferior*, ptid_t)): New overload.
16496 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16497 parameter.
16498 (all_threads()): Delete overload.
16499 (all_threads, all_non_exited_threads): Add process_stratum_target
16500 parameter.
16501 (all_threads_safe): Use brace initialization.
16502 (thread_count): Add process_stratum_target parameter.
16503 (set_resumed, set_running, set_stop_requested, set_executing)
16504 (threads_are_executing, finish_thread_state): Add
16505 process_stratum_target parameter.
16506 (switch_to_thread): Use is_current_thread.
16507 * i386-fbsd-tdep.c: Include "inferior.h".
16508 (i386fbsd_get_thread_local_address): Pass down target.
16509 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16510 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16511 have_inferiors check.
16512 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16513 (inf_ptrace_target::attach): Adjust.
16514 * infcall.c (run_inferior_call): Adjust.
16515 * infcmd.c (run_command_1): Pass target to
16516 scoped_finish_thread_state.
16517 (proceed_thread_callback): Skip inferiors with no execution.
16518 (continue_command): Rename 'all_threads' local to avoid hiding
16519 'all_threads' function. Adjust get_last_target_status call.
16520 (prepare_one_step): Adjust set_running call.
16521 (signal_command): Use user_visible_resume_target. Compare thread
16522 pointers instead of inferior_ptid.
16523 (info_program_command): Adjust to pass down target.
16524 (attach_command): Mark target's 'thread_executing' flag.
16525 (stop_current_target_threads_ns): New, factored out from ...
16526 (interrupt_target_1): ... this. Switch inferior before making
16527 target calls.
16528 * inferior-iter.h
16529 (struct all_inferiors_iterator, struct all_inferiors_range)
16530 (struct all_inferiors_safe_range)
16531 (struct all_non_exited_inferiors_range): Filter on
16532 process_stratum_target too. Remove explicit.
16533 * inferior.c (inferior::inferior): Push dummy target on target
16534 stack.
16535 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16536 Add process_stratum_target parameter, and pass it down.
16537 (have_live_inferiors): Adjust.
16538 (switch_to_inferior_and_push_target): New.
16539 (add_inferior_command, clone_inferior_command): Handle
16540 "-no-connection" parameter. Use
16541 switch_to_inferior_and_push_target.
16542 (_initialize_inferior): Mention "-no-connection" option in
16543 the help of "add-inferior" and "clone-inferior" commands.
16544 * inferior.h: Include "process-stratum-target.h".
16545 (interrupt_target_1): Use bool.
16546 (struct inferior) <push_target, unpush_target, target_is_pushed,
16547 find_target_beneath, top_target, process_target, target_at,
16548 m_stack>: New.
16549 (discard_all_inferiors): Delete.
16550 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16551 (all_inferiors, all_non_exited_inferiors): Add
16552 process_stratum_target parameter.
16553 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16554 (target_last_proc_target): New global.
16555 (follow_fork_inferior): Push target on new inferior. Pass target
16556 to add_thread_silent. Call exec_on_vfork. Handle target's
16557 reference count.
16558 (follow_fork): Adjust get_last_target_status call. Also consider
16559 target.
16560 (follow_exec): Push target on new inferior.
16561 (struct execution_control_state) <target>: New field.
16562 (user_visible_resume_target): New.
16563 (do_target_resume): Call target_async.
16564 (resume_1): Set target's threads_executing flag. Consider resume
16565 target.
16566 (commit_resume_all_targets): New.
16567 (proceed): Also consider resume target. Skip threads of inferiors
16568 with no execution. Commit resumtion in all targets.
16569 (start_remote): Pass current inferior to wait_for_inferior.
16570 (infrun_thread_stop_requested): Consider target as well. Pass
16571 thread_info pointer to clear_inline_frame_state instead of ptid.
16572 (infrun_thread_thread_exit): Consider target as well.
16573 (random_pending_event_thread): New inferior parameter. Use it.
16574 (do_target_wait): Rename to ...
16575 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16576 down.
16577 (threads_are_resumed_pending_p, do_target_wait): New.
16578 (prepare_for_detach): Adjust calls.
16579 (wait_for_inferior): New inferior parameter. Handle it. Use
16580 do_target_wait_1 instead of do_target_wait.
16581 (fetch_inferior_event): Adjust. Switch to representative
16582 inferior. Pass target down.
16583 (set_last_target_status): Add process_stratum_target parameter.
16584 Save target in global.
16585 (get_last_target_status): Add process_stratum_target parameter and
16586 handle it.
16587 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16588 (context_switch): Check inferior_ptid == null_ptid before calling
16589 inferior_thread().
16590 (get_inferior_stop_soon): Pass down target.
16591 (wait_one): Rename to ...
16592 (poll_one_curr_target): ... this.
16593 (struct wait_one_event): New.
16594 (wait_one): New.
16595 (stop_all_threads): Adjust.
16596 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16597 event's target.
16598 (switch_back_to_stepped_thread): Also consider target.
16599 (print_stop_event): Update.
16600 (normal_stop): Update. Also consider the resume target.
16601 * infrun.h (wait_for_inferior): Remove declaration.
16602 (user_visible_resume_target): New declaration.
16603 (get_last_target_status, set_last_target_status): New
16604 process_stratum_target parameter.
16605 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16606 process_stratum_target parameter, and use it.
16607 (clear_inline_frame_state (thread_info*)): New.
16608 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16609 process_stratum_target parameter.
16610 (clear_inline_frame_state (thread_info*)): Declare.
16611 * linux-fork.c (delete_checkpoint_command): Pass target down to
16612 find_thread_ptid.
16613 (checkpoint_command): Adjust.
16614 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16615 instead of just tweaking inferior_ptid.
16616 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16617 (exit_lwp): Pass target down to find_thread_ptid.
16618 (attach_proc_task_lwp_callback): Pass target down to
16619 add_thread/set_running/set_executing.
16620 (linux_nat_target::attach): Pass target down to
16621 thread_change_ptid.
16622 (get_detach_signal): Pass target down to find_thread_ptid.
16623 Consider last target status's target.
16624 (linux_resume_one_lwp_throw, resume_lwp)
16625 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16626 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16627 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16628 (linux_nat_target::async_wait_fd): New.
16629 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16630 target down.
16631 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16632 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16633 * linux-thread-db.c (struct thread_db_info::process_target): New
16634 field.
16635 (add_thread_db_info): Save target.
16636 (get_thread_db_info): New process_stratum_target parameter. Also
16637 match target.
16638 (delete_thread_db_info): New process_stratum_target parameter.
16639 Also match target.
16640 (thread_from_lwp): Adjust to pass down target.
16641 (thread_db_notice_clone): Pass down target.
16642 (check_thread_db_callback): Pass down target.
16643 (try_thread_db_load_1): Always push the thread_db target.
16644 (try_thread_db_load, record_thread): Pass target down.
16645 (thread_db_target::detach): Pass target down. Always unpush the
16646 thread_db target.
16647 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16648 target down. Always unpush the thread_db target.
16649 (find_new_threads_callback, thread_db_find_new_threads_2)
16650 (thread_db_target::update_thread_list): Pass target down.
16651 (thread_db_target::pid_to_str): Pass current inferior down.
16652 (thread_db_target::get_thread_local_address): Pass target down.
16653 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16654 target down.
16655 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16656 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16657 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16658 (procfs_init_inferior): Rename to ...
16659 (procfs_target::procfs_init_inferior): ... this and adjust.
16660 (procfs_target::create_inferior, procfs_notice_thread)
16661 (procfs_do_thread_registers): Adjust.
16662 * ppc-fbsd-tdep.c: Include "inferior.h".
16663 (ppcfbsd_get_thread_local_address): Pass down target.
16664 * proc-service.c (ps_xfer_memory): Switch current inferior and
16665 program space as well.
16666 (get_ps_regcache): Pass target down.
16667 * process-stratum-target.c
16668 (process_stratum_target::thread_address_space)
16669 (process_stratum_target::thread_architecture): Pass target down.
16670 * process-stratum-target.h
16671 (process_stratum_target::threads_executing): New field.
16672 (as_process_stratum_target): New.
16673 * ravenscar-thread.c
16674 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16675 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16676 down.
16677 * record-btrace.c (record_btrace_target::info_record): Adjust.
16678 (record_btrace_target::record_method)
16679 (record_btrace_target::record_is_replaying)
16680 (record_btrace_target::fetch_registers)
16681 (get_thread_current_frame_id, record_btrace_target::resume)
16682 (record_btrace_target::wait, record_btrace_target::stop): Pass
16683 target down.
16684 * record-full.c (record_full_wait_1): Switch to event thread.
16685 Pass target down.
16686 * regcache.c (regcache::regcache)
16687 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16688 process_stratum_target parameter and handle it.
16689 (current_thread_target): New global.
16690 (get_thread_regcache): Add process_stratum_target parameter and
16691 handle it. Switch inferior before calling target method.
16692 (get_thread_regcache): Pass target down.
16693 (get_thread_regcache_for_ptid): Pass target down.
16694 (registers_changed_ptid): Add process_stratum_target parameter and
16695 handle it.
16696 (registers_changed_thread, registers_changed): Pass target down.
16697 (test_get_thread_arch_aspace_regcache): New.
16698 (current_regcache_test): Define a couple local test_target_ops
16699 instances and use them for testing.
16700 (readwrite_regcache): Pass process_stratum_target parameter.
16701 (cooked_read_test, cooked_write_test): Pass mock_target down.
16702 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16703 (get_thread_arch_aspace_regcache): Add process_stratum_target
16704 parameter.
16705 (regcache::target): New method.
16706 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16707 (regcache::registers_changed_ptid): Add process_stratum_target
16708 parameter.
16709 (regcache::m_target): New field.
16710 (registers_changed_ptid): Add process_stratum_target parameter.
16711 * remote.c (remote_state::supports_vCont_probed): New field.
16712 (remote_target::async_wait_fd): New method.
16713 (remote_unpush_and_throw): Add remote_target parameter.
16714 (get_current_remote_target): Adjust.
16715 (remote_target::remote_add_inferior): Push target.
16716 (remote_target::remote_add_thread)
16717 (remote_target::remote_notice_new_inferior)
16718 (get_remote_thread_info): Pass target down.
16719 (remote_target::update_thread_list): Skip threads of inferiors
16720 bound to other targets. (remote_target::close): Don't discard
16721 inferiors. (remote_target::add_current_inferior_and_thread)
16722 (remote_target::process_initial_stop_replies)
16723 (remote_target::start_remote)
16724 (remote_target::remote_serial_quit_handler): Pass down target.
16725 (remote_target::remote_unpush_target): New remote_target
16726 parameter. Unpush the target from all inferiors.
16727 (remote_target::remote_unpush_and_throw): New remote_target
16728 parameter. Pass it down.
16729 (remote_target::open_1): Check whether the current inferior has
16730 execution instead of checking whether any inferior is live. Pass
16731 target down.
16732 (remote_target::remote_detach_1): Pass down target. Use
16733 remote_unpush_target.
16734 (extended_remote_target::attach): Pass down target.
16735 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16736 (remote_target::append_resumption): Pass down target.
16737 (remote_target::append_pending_thread_resumptions)
16738 (remote_target::remote_resume_with_hc, remote_target::resume)
16739 (remote_target::commit_resume): Pass down target.
16740 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16741 (remote_target::interrupt_query)
16742 (remote_target::remove_new_fork_children)
16743 (remote_target::check_pending_events_prevent_wildcard_vcont)
16744 (remote_target::remote_parse_stop_reply)
16745 (remote_target::process_stop_reply): Pass down target.
16746 (first_remote_resumed_thread): New remote_target parameter. Pass
16747 it down.
16748 (remote_target::wait_as): Pass down target.
16749 (unpush_and_perror): New remote_target parameter. Pass it down.
16750 (remote_target::readchar, remote_target::remote_serial_write)
16751 (remote_target::getpkt_or_notif_sane_1)
16752 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16753 down target.
16754 (remote_target::mourn_inferior): Pass down target. Use
16755 remote_unpush_target.
16756 (remote_target::core_of_thread)
16757 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16758 (remote_target::pid_to_exec_file)
16759 (remote_target::thread_handle_to_thread_info): Pass down target.
16760 (remote_target::async_wait_fd): New.
16761 * riscv-fbsd-tdep.c: Include "inferior.h".
16762 (riscv_fbsd_get_thread_local_address): Pass down target.
16763 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16764 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16765 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16766 Adjust.
16767 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16768 * solib-svr4.c (enable_break): Pass down target.
16769 * spu-multiarch.c (parse_spufs_run): Pass down target.
16770 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16771 * target-delegates.c: Regenerate.
16772 * target.c (g_target_stack): Delete.
16773 (current_top_target): Return the current inferior's top target.
16774 (target_has_execution_1): Refer to the passed-in inferior's top
16775 target.
16776 (target_supports_terminal_ours): Check whether the initial
16777 inferior was already created.
16778 (decref_target): New.
16779 (target_stack::push): Incref/decref the target.
16780 (push_target, push_target, unpush_target): Adjust.
16781 (target_stack::unpush): Defref target.
16782 (target_is_pushed): Return bool. Adjust to refer to the current
16783 inferior's target stack.
16784 (dispose_inferior): Delete, and inline parts ...
16785 (target_preopen): ... here. Only dispose of the current inferior.
16786 (target_detach): Hold strong target reference while detaching.
16787 Pass target down.
16788 (target_thread_name): Add assertion.
16789 (target_resume): Pass down target.
16790 (target_ops::beneath, find_target_at): Adjust to refer to the
16791 current inferior's target stack.
16792 (get_dummy_target): New.
16793 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16794 has a thread running.
16795 (initialize_targets): Rename to ...
16796 (_initialize_target): ... this.
16797 * target.h: Include "gdbsupport/refcounted-object.h".
16798 (struct target_ops): Inherit refcounted_object.
16799 (target_ops::shortname, target_ops::longname): Make const.
16800 (target_ops::async_wait_fd): New method.
16801 (decref_target): Declare.
16802 (struct target_ops_ref_policy): New.
16803 (target_ops_ref): New typedef.
16804 (get_dummy_target): Declare function.
16805 (target_is_pushed): Return bool.
16806 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16807 (all_matching_threads_iterator::all_matching_threads_iterator):
16808 Handle filter target.
16809 * thread-iter.h (struct all_matching_threads_iterator, struct
16810 all_matching_threads_range, class all_non_exited_threads_range):
16811 Filter by target too. Remove explicit.
16812 * thread.c (threads_executing): Delete.
16813 (inferior_thread): Pass down current inferior.
16814 (clear_thread_inferior_resources): Pass down thread pointer
16815 instead of ptid_t.
16816 (add_thread_silent, add_thread_with_info, add_thread): Add
16817 process_stratum_target parameter. Use it for thread and inferior
16818 searches.
16819 (is_current_thread): New.
16820 (thread_info::deletable): Use it.
16821 (find_thread_ptid, thread_count, in_thread_list)
16822 (thread_change_ptid, set_resumed, set_running): New
16823 process_stratum_target parameter. Pass it down.
16824 (set_executing): New process_stratum_target parameter. Pass it
16825 down. Adjust reference to 'threads_executing'.
16826 (threads_are_executing): New process_stratum_target parameter.
16827 Adjust reference to 'threads_executing'.
16828 (set_stop_requested, finish_thread_state): New
16829 process_stratum_target parameter. Pass it down.
16830 (switch_to_thread): Also match inferior.
16831 (switch_to_thread): New process_stratum_target parameter. Pass it
16832 down.
16833 (update_threads_executing): Reimplement.
16834 * top.c (quit_force): Pop targets from all inferior.
16835 (gdb_init): Don't call initialize_targets.
16836 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16837 Declare.
16838 (windows_add_thread, windows_delete_thread): Adjust.
16839 (get_windows_debug_event): Rename to ...
16840 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16841 * tracefile-tfile.c (tfile_target_open): Pass down target.
16842 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16843 Forward declare.
16844 (switch_to_thread): Add process_stratum_target parameter.
16845 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16846 parameter. Use it.
16847 (mi_on_resume): Pass target down.
16848 * nat/fork-inferior.c (startup_inferior): Add
16849 process_stratum_target parameter. Pass it down.
16850 * nat/fork-inferior.h (startup_inferior): Add
16851 process_stratum_target parameter.
16852 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16853
16854 2020-01-10 Pedro Alves <palves@redhat.com>
16855
16856 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16857 directly. Instead find the first thread in the thread list and
16858 use switch_to_thread.
16859
16860 2020-01-10 Pedro Alves <palves@redhat.com>
16861
16862 * remote.c (remote_target::remote_add_inferior): Don't bind a
16863 process to the current inferior if the current inferior is already
16864 bound to a process.
16865
16866 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16867 Pedro Alves <palves@redhat.com>
16868
16869 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16870 If no process is specified, return null_ptid instead of
16871 inferior_ptid.
16872 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16873 TARGET_WAITKIND_SIGNALLED with no pid.
16874
16875 2020-01-10 Pedro Alves <palves@redhat.com>
16876
16877 * remote.c (first_remote_resumed_thread): New.
16878 (remote_target::wait_as): Use it as default event_ptid instead of
16879 inferior_ptid.
16880
16881 2020-01-10 Pedro Alves <palves@redhat.com>
16882
16883 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16884
16885 2020-01-10 Pedro Alves <palves@redhat.com>
16886
16887 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16888 not -1.
16889
16890 2020-01-10 Pedro Alves <palves@redhat.com>
16891
16892 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16893 ptid to get_last_target_status.
16894 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16895 ptid to get_last_target_status.
16896 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16897 get_last_target_status.
16898 (info_program_command): Don't pass a target_waitstatus to
16899 get_last_target_status.
16900 * infrun.c (init_wait_for_inferior): Use
16901 nullify_last_target_wait_ptid.
16902 (get_last_target_status): Handle nullptr arguments.
16903 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16904 (print_stop_event): Don't pass a ptid to get_last_target_status.
16905 (normal_stop): Don't pass a ptid to get_last_target_status.
16906 * infrun.h (get_last_target_status, set_last_target_status): Move
16907 comments here and update.
16908 (nullify_last_target_wait_ptid): Declare.
16909 * linux-fork.c (fork_load_infrun_state): Remove local extern
16910 declaration of nullify_last_target_wait_ptid.
16911 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16912 to get_last_target_status.
16913
16914 2020-01-10 Pedro Alves <palves@redhat.com>
16915
16916 * gdbthread.h (scoped_restore_current_thread)
16917 <dont_restore, restore, m_dont_restore>: Declare.
16918 * thread.c (thread_alive): Add assertion. Return bool.
16919 (switch_to_thread_if_alive): New.
16920 (prune_threads): Switch inferior/thread.
16921 (print_thread_info_1): Switch thread before calling target methods.
16922 (scoped_restore_current_thread::restore): New, factored out from
16923 ...
16924 (scoped_restore_current_thread::~scoped_restore_current_thread):
16925 ... this.
16926 (scoped_restore_current_thread::scoped_restore_current_thread):
16927 Add assertion.
16928 (thread_apply_all_command, thread_select): Use
16929 switch_to_thread_if_alive.
16930 * infrun.c (proceed, restart_threads, handle_signal_stop)
16931 (switch_back_to_stepped_thread): Switch current thread before
16932 calling target methods.
16933
16934 2020-01-10 Pedro Alves <palves@redhat.com>
16935
16936 * inferior.c (switch_to_inferior_no_thread): New function,
16937 factored out from ...
16938 (inferior_command): ... here.
16939 * inferior.h (switch_to_inferior_no_thread): Declare.
16940 * mi/mi-main.c (run_one_inferior): Use
16941 switch_to_inferior_no_thread.
16942
16943 2020-01-10 Pedro Alves <palves@redhat.com>
16944
16945 * infcmd.c (kill_command): Remove dead code.
16946
16947 2020-01-10 Pedro Alves <palves@redhat.com>
16948
16949 * remote.c (remote_target::mourn_inferior): No longer check
16950 whether the target is running.
16951
16952 2020-01-10 Pedro Alves <palves@redhat.com>
16953
16954 * corelow.c (core_target::has_execution): Change parameter type to
16955 inferior pointer.
16956 * inferior.c (number_of_live_inferiors): Use
16957 inferior::has_execution instead of target_has_execution_1.
16958 * inferior.h (inferior::has_execution): New.
16959 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16960 inferior::has_execution instead of target_has_execution_1.
16961 * process-stratum-target.c
16962 (process_stratum_target::has_execution): Change parameter type to
16963 inferior pointer. Check the inferior's PID instead of
16964 inferior_ptid.
16965 * process-stratum-target.h
16966 (process_stratum_target::has_execution): Change parameter type to
16967 inferior pointer.
16968 * record-full.c (record_full_core_target::has_execution): Change
16969 parameter type to inferior pointer.
16970 * target.c (target_has_execution_1): Change parameter type to
16971 inferior pointer.
16972 (target_has_execution_current): Adjust.
16973 * target.h (target_ops::has_execution): Change parameter type to
16974 inferior pointer.
16975 (target_has_execution_1): Change parameter type to inferior
16976 pointer. Change return type to bool.
16977 * tracefile.h (tracefile_target::has_execution): Change parameter
16978 type to inferior pointer.
16979
16980 2020-01-10 Pedro Alves <palves@redhat.com>
16981
16982 * exceptions.c (print_flush): Remove current_top_target() check.
16983
16984 2020-01-10 Pedro Alves <palves@redhat.com>
16985
16986 * remote.c (show_remote_exec_file): Show the current inferior's
16987 exec-file instead of the command variable's value.
16988
16989 2020-01-10 Pedro Alves <palves@redhat.com>
16990
16991 * record-full.c (record_full_resume_ptid): New global.
16992 (record_full_target::resume): Set it.
16993 (record_full_wait_1): Use record_full_resume_ptid instead of
16994 inferior_ptid.
16995
16996 2020-01-10 Pedro Alves <palves@redhat.com>
16997
16998 * gdbthread.h (scoped_restore_current_thread)
16999 <dont_restore, restore, m_dont_restore>: Declare.
17000 * thread.c (thread_alive): Add assertion. Return bool.
17001 (switch_to_thread_if_alive): New.
17002 (prune_threads): Switch inferior/thread.
17003 (print_thread_info_1): Switch thread before calling target methods.
17004 (scoped_restore_current_thread::restore): New, factored out from
17005 ...
17006 (scoped_restore_current_thread::~scoped_restore_current_thread):
17007 ... this.
17008 (scoped_restore_current_thread::scoped_restore_current_thread):
17009 Add assertion.
17010 (thread_apply_all_command, thread_select): Use
17011 switch_to_thread_if_alive.
17012
17013 2020-01-10 George Barrett <bob@bob131.so>
17014
17015 * stap-probe.c (stap_modify_semaphore): Don't check for null
17016 semaphores.
17017 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17018 for null semaphores.
17019
17020 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17021
17022 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17023 all source windows, and maintain horizontal scroll status while
17024 doing so.
17025
17026 2020-01-09 Tom Tromey <tom@tromey.com>
17027
17028 PR tui/18932:
17029 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17030 update_source_window, not print_source_lines.
17031
17032 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17033
17034 * tui/tui.c (tui_enable): Register tui hooks after calling
17035 tui_display_main.
17036
17037 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17038
17039 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17040
17041 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17042
17043 * thread.c (print_thread_info_1): Fix indentation.
17044
17045 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17046
17047 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17048 unique_xmalloc_ptr outside the if to always free the demangled name.
17049
17050 2020-01-08 Tom Tromey <tromey@adacore.com>
17051
17052 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17053 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17054 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17055 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17056 Remove.
17057 (section_offsets): New typedef.
17058 * symtab.c (fixup_section, get_msymbol_address): Update.
17059 * symmisc.c (dump_msymbols): Update.
17060 * symfile.h (relative_addr_info_to_section_offsets)
17061 (symfile_map_offsets_to_segments): Update.
17062 * symfile.c (build_section_addr_info_from_objfile)
17063 (init_objfile_sect_indices): Update.
17064 (struct place_section_arg): Change type of "offsets".
17065 (place_section): Update.
17066 (relative_addr_info_to_section_offsets): Change type of
17067 "section_offsets". Remove "num_sections" parameter.
17068 (default_symfile_offsets, syms_from_objfile_1)
17069 (set_objfile_default_section_offset): Update.
17070 (reread_symbols): No need to preserve section offsets by hand.
17071 (symfile_map_offsets_to_segments): Change type of "offsets".
17072 * stap-probe.c (relocate_address): Update.
17073 * stabsread.h (process_one_symbol): Update.
17074 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17075 (solib_target_relocate_section_addresses): Update.
17076 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17077 Update.
17078 * solib-frv.c (frv_relocate_main_executable): Update.
17079 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17080 * solib-aix.c (solib_aix_get_section_offsets): Change return
17081 type.
17082 (solib_aix_solib_create_inferior_hook): Update.
17083 * remote.c (remote_target::get_offsets): Update.
17084 * psymtab.c (find_pc_sect_psymtab): Update.
17085 * psympriv.h (struct partial_symbol) <address, text_low,
17086 text_high>: Update.
17087 * objfiles.h (obj_section_offset): Update.
17088 (struct objfile) <section_offsets>: Change type.
17089 <num_sections>: Remove.
17090 (objfile_relocate): Update.
17091 * objfiles.c (entry_point_address_query): Update
17092 (relocate_one_symbol): Change type of "section_offsets".
17093 (objfile_relocate1, objfile_relocate1): Change type of
17094 "new_offsets".
17095 (objfile_rebase1): Update.
17096 * mipsread.c (mipscoff_symfile_read): Update.
17097 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17098 parameter.
17099 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17100 (parse_external, psymtab_to_symtab_1): Update.
17101 * machoread.c (macho_symfile_offsets): Update.
17102 * ia64-tdep.c (ia64_find_unwind_table): Update.
17103 * hppa-tdep.c (read_unwind_info): Update.
17104 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17105 * dwarf2read.c (create_addrmap_from_index)
17106 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17107 (process_psymtab_comp_unit_reader, add_partial_symbol)
17108 (add_partial_subprogram, process_full_comp_unit)
17109 (read_file_scope, read_func_scope, read_lexical_block_scope)
17110 (read_call_site_scope, dwarf2_rnglists_process)
17111 (dwarf2_ranges_process, dwarf2_ranges_read)
17112 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17113 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17114 Update.
17115 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17116 Update.
17117 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17118 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17119 (process_one_symbol): Change type of "section_offsets".
17120 * ctfread.c (get_objfile_text_range): Update.
17121 * coffread.c (coff_symtab_read, enter_linenos)
17122 (process_coff_symbol): Update.
17123 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17124 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17125
17126 2020-01-08 Tom Tromey <tromey@adacore.com>
17127
17128 * dwarf2read.c (parse_macro_definition): Use std::string.
17129 (parse_macro_definition): Likewise.
17130
17131 2020-01-08 Tom Tromey <tromey@adacore.com>
17132
17133 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17134 (ATTR_ALLOC_CHUNK): Remove.
17135
17136 2020-01-08 Tom Tromey <tromey@adacore.com>
17137
17138 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17139
17140 2020-01-08 Tom Tromey <tromey@adacore.com>
17141
17142 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17143 (dwarf2_compute_name, open_dwo_file): Likewise.
17144 (process_enumeration_scope): Use std::vector.
17145 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17146 (partial_die_info::fixup, dwarf2_start_subfile)
17147 (guess_full_die_structure_name, dwarf2_name): Likewise.
17148 (determine_prefix): Update.
17149 (guess_full_die_structure_name): Make return type const.
17150 (partial_die_full_name): Return unique_xmalloc_ptr.
17151 (DW_FIELD_ALLOC_CHUNK): Remove.
17152
17153 2020-01-07 Tom Tromey <tromey@adacore.com>
17154
17155 PR build/24937:
17156 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17157
17158 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17159
17160 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17161
17162 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17163
17164 * stack.c (print_frame_info): Move disassemble_next_line code
17165 inside source_print block.
17166
17167 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17168
17169 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17170 gdb/signals.h, as we are now using native signal symbols.
17171
17172 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17173
17174 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17175 overflow by an early check of content vs threshold.
17176 * tui/tui-source.c (tui_source_window::line_is_displayed):
17177 Likewise.
17178
17179 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17180
17181 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17182
17183 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17184
17185 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17186 export table if no section contains it's RVA.
17187
17188 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17189
17190 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17191
17192 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17193
17194 * source.c (print_source_lines_base): Set last_line_listed.
17195
17196 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17197
17198 * tui/tui-disasm.c: Remove trailing spaces.
17199
17200 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17201 Pedro Alves <palves@redhat.com>
17202
17203 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17204 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17205 (windows_gdb_signal_to_target): New function, uses the above
17206 enumeration to convert GDB internal signal codes to equivalent
17207 Windows codes.
17208 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17209 * windows-nat.c: Include "gdb_wait.h".
17210 (get_windows_debug_event): Extract the fatal exception from the
17211 exit status and convert to the equivalent Posix signal number.
17212 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17213 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17214 * gdbsupport/gdb_wait.c: New file, implements
17215 windows_status_to_termsig.
17216 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17217 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17218
17219 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17220
17221 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17222 show_layout.
17223
17224 2020-01-05 Luis Machado <luis.machado@linaro.org>
17225
17226 * aarch64-linux-nat.c
17227 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17228 and bfd_mach_aarch64.
17229
17230 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17231
17232 * ui-file.c (stdio_file::can_emit_style_escape)
17233 (tee_file::can_emit_style_escape): Ensure style is used also on
17234 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17235 to gdb_stdout.
17236 * main.c (set_gdb_data_directory): Use file style to output the
17237 warning that the given pathname is not a directory.
17238 * top.c (show_history_filename, gdb_safe_append_history)
17239 (show_gdb_datadir): Use file style.
17240
17241 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17242
17243 * solib-target.c (struct lm_info_target):
17244 Change offsets to be a unique_xmalloc_ptr.
17245 (solib_target_relocate_section_addresses): Update.
17246
17247 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17248
17249 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17250
17251 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17252
17253 * MAINTAINERS (Write After Approval): Add myself.
17254
17255 2020-01-02 Luis Machado <luis.machado@linaro.org>
17256
17257 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17258 Cell BE architecture.
17259 * target.h (struct target_ops) <thread_architecture>: Likewise.
17260
17261 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17262
17263 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17264
17265 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17266
17267 * MAINTAINERS (Write After Approval): Add myself.
17268
17269 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17270
17271 * gdbarch.sh: Update copyright year range of generated files.
17272
17273 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17274
17275 Update copyright year range in all GDB files.
17276
17277 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17278
17279 * copyright.py: Convert to Python 3.
17280
17281 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17282
17283 * copyright.py: Adapt after move of gnulib directory from gdb
17284 directory to toplevel directory.
17285
17286 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17287
17288 * copyright.py (main): Exit if run from the wrong directory.
17289
17290 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17291
17292 * top.c (print_gdb_version): Change copyright year to 2020.
17293
17294 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17295
17296 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17297
17298 For older changes see ChangeLog-2019.
17299 \f
17300 Local Variables:
17301 mode: change-log
17302 left-margin: 8
17303 fill-column: 74
17304 version-control: never
17305 coding: utf-8
17306 End:
This page took 0.441262 seconds and 4 git commands to generate.