3cf45821d6dac708b2602fc972d5178da70c1c26
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
4 into one single gdb::array_view parameter.
5 (gdb_mpz::write): Likewise.
6 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
7 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
8 into one single gdb::array_view parameter.
9 Adjust implementation accordingly.
10 (gdb_mpz::write): Likewise.
11 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
12 * unittests/gmp-utils-selftests.c: Adapt following changes above.
13 * valarith.c, valops.c, valprint.c, value.c: Likewise.
14
15 2020-11-24 Joel Brobecker <brobecker@adacore.com>
16
17 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
18 Change return type to std::string. Update all callers.
19 * gmp-utils.c (gmp_string_printf): Likewise.
20
21 2020-11-24 Joel Brobecker <brobecker@adacore.com>
22
23 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
24 instead of mpq_set_ui to initialize our GMP rational.
25
26 2020-11-23 Tom de Vries <tdevries@suse.de>
27
28 * debuginfod-support.c (debuginfod_source_query)
29 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
30
31 2020-11-21 Tom Tromey <tom@tromey.com>
32
33 * breakpoint.c (watchpoint_exp_is_const): Return bool.
34
35 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
38 Pass 2.0 to pow.
39 (gdb_mpz_write_all_from_small): Likewise.
40
41 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
44 of abs.
45
46 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
47
48 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
49 ctf_arc_open_by_name.
50
51 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
52
53 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
54 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
55
56 2020-11-20 Pedro Alves <pedro@palves.net>
57
58 * language.c (language_arch_info::lookup_primitive_type): Use
59 gdb::function_view instead of gdb::function.
60 (template language_lookup_primitive_type): Rename to ...
61 (language_lookup_primitive_type_1): ... this, and make static.
62 (language_lookup_primitive_type(const struct language_defn *,
63 struct gdbarch *, const char *): Make non-template.
64 (language_lookup_primitive_type(const struct language_defn *,
65 struct gdbarch *, std::function<bool (struct type *)>): Make
66 non-template and use gdb::function_view.
67 * language.h (language_arch_info::lookup_primitive_type): Use
68 gdb::function_view instead of std::function.
69 (language_lookup_primitive_type): No longer template.
70 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
71 lambda instead of a std::function.
72
73 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
74
75 PR tdep/26916
76 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
77 and STOCFH.
78
79 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
82
83 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
86 in `loop_cb` parameter.
87 * gdbarch.c: Re-generate.
88 * gdbarch.h: Re-generate.
89 * arch-utils.c (default_read_core_file_mappings): Remove `other`
90 parameter.
91 * arch-utils.h (default_read_core_file_mappings): Likewise.
92 * corelow.c (core_target::build_file_mappings): Likewise.
93 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
94 (linux_core_info_proc_mappings): Likewise.
95
96 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
99 * NEWS: Mention new options.
100 * f-array-walker.h: New file.
101 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
102 (repack_array_slices): New static global.
103 (show_repack_array_slices): New function.
104 (fortran_array_slicing_debug): New static global.
105 (show_fortran_array_slicing_debug): New function.
106 (value_f90_subarray): Delete.
107 (skip_undetermined_arglist): Delete.
108 (class fortran_array_repacker_base_impl): New class.
109 (class fortran_lazy_array_repacker_impl): New class.
110 (class fortran_array_repacker_impl): New class.
111 (fortran_value_subarray): Complete rewrite.
112 (set_fortran_list): New static global.
113 (show_fortran_list): Likewise.
114 (_initialize_f_language): Register new commands.
115 (fortran_adjust_dynamic_array_base_address_hack): New function.
116 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
117 Declare.
118 * f-valprint.c: Include 'f-array-walker.h'.
119 (class fortran_array_printer_impl): New class.
120 (f77_print_array_1): Delete.
121 (f77_print_array): Delete.
122 (fortran_print_array): New.
123 (f_value_print_inner): Update to call fortran_print_array.
124 * gdbtypes.c: Include 'f-lang.h'.
125 (resolve_dynamic_type_internal): Call
126 fortran_adjust_dynamic_array_base_address_hack.
127
128 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * breakpoint.c (struct watch_options): New struct.
131 (watch_option_defs): New static global.
132 (make_watch_options_def_group): New function.
133 (watch_maybe_just_location): Convert option parsing.
134 (watch_command_completer): New function.
135 (_initialize_breakpoint): Build help text using options mechanism.
136
137 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
138
139 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
140 (watch_command_1): Update parameter types. Convert locals to
141 bool.
142 (watch_command_wrapper): Change parameter type.
143 (watch_maybe_just_location): Change locals to bool.
144 (rwatch_command_wrapper): Update parameter type.
145 (awatch_command_wrapper): Update parameter type.
146 * breakpoint.h (watch_command_wrapper): Change parameter type.
147 (rwatch_command_wrapper): Update parameter type.
148 (awatch_command_wrapper): Update parameter type.
149 * eval.c (fetch_subexp_value): Change parameter type.
150 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
151 'false' not '0'.
152 * value.h (fetch_subexp_value): Change parameter type in
153 declaration.
154
155 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
158 skip_spaces.
159
160 2020-11-18 Keith Seitz <keiths@redhat.com>
161
162 * linux-tdep.c (dump_note_entry_p): Return true instead of
163 checking `filename'.
164
165 2020-11-18 Tom de Vries <tdevries@suse.de>
166
167 * debuginfod-support.c (debuginfod_source_query)
168 (debuginfod_debuginfo_query): Also do early exit if
169 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
170
171 2020-11-18 Tom de Vries <tdevries@suse.de>
172
173 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
174 warning.
175
176 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * gdbtypes.h (get_array_bounds): Return bool, adjust some
179 callers. Move doc here.
180 * gdbtypes.c (get_array_bounds): Return bool
181
182 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
185 assert.
186 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
187 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
188 case to the default.
189
190 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * printcmd.c: Include 'safe-ctype.c'.
193 (skip_over_slash_fmt): New function.
194 (print_command_completer): Call skip_over_slash_fmt.
195 (display_and_x_command_completer): New function.
196 (_initialize_printcmd): Add command completion for 'x' and
197 'display'.
198
199 2020-11-16 Pedro Alves <pedro@palves.net>
200
201 * frame.c (get_prev_frame): Move get_frame_id call from here ...
202 (get_prev_frame_always_1): ... to here.
203 * inline-frame.c (inline_frame_this_id): Mention
204 get_prev_frame_always_1 in comment.
205
206 2020-11-15 Joel Brobecker <brobecker@adacore.com>
207
208 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
209 handling.
210 (value_less): Add fixed-point handling.
211
212 2020-11-15 Joel Brobecker <brobecker@adacore.com>
213
214 * eval.c (binop_promote): Add fixed-point type handling.
215 * valarith.c (fixed_point_binop): New function.
216 (scalar_binop): Add fixed-point type handling.
217 (value_neg): Add fixed-point type handling.
218 * valops.c (value_cast_to_fixed_point): New function.
219 (value_cast): Add fixed-point type handling.
220
221 2020-11-15 Joel Brobecker <brobecker@adacore.com>
222
223 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
224 range types.
225 * c-typeprint.c (c_type_print_varspec_prefix)
226 (c_type_print_varspec_suffix, c_type_print_base_1): Add
227 TYPE_CODE_FIXED_POINT handling.
228 * p-typeprint.c (pascal_type_print_varspec_prefix)
229 (pascal_type_print_varspec_suffix): Likewise.
230 * typeprint.c (print_type_fixed_point): New function.
231 * typeprint.h (print_type_fixed_point): Add declaration.
232
233 2020-11-15 Joel Brobecker <brobecker@adacore.com>
234
235 * printcmd.c (print_scalar_formatted): Add fixed-point type
236 handling when options->format is set.
237
238 2020-11-15 Joel Brobecker <brobecker@adacore.com>
239
240 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
241 * dwarf2/read.c (get_dwarf2_rational_constant)
242 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
243 (has_zero_over_zero_small_attribute): New functions.
244 read_base_type, set_die_type): Add fixed-point type handling.
245 * gdb-gdb.py.in: Add fixed-point type handling.
246 * gdbtypes.c: #include "gmp-utils.h".
247 (create_range_type, set_type_code): Add fixed-point type handling.
248 (init_fixed_point_type): New function.
249 (is_integral_type, is_scalar_type): Add fixed-point type handling.
250 (print_fixed_point_type_info): New function.
251 (recursive_dump_type, copy_type_recursive): Add fixed-point type
252 handling.
253 (fixed_point_type_storage): New typedef.
254 (fixed_point_objfile_key): New static global.
255 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
256 (fixed_point_type_base_type, fixed_point_scaling_factor): New
257 functions.
258 * gdbtypes.h: #include "gmp-utils.h".
259 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
260 (union type_specific) <fixed_point_info>: New field.
261 (struct fixed_point_type_info): New struct.
262 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
263 (init_fixed_point_type, is_fixed_point_type)
264 (fixed_point_type_base_type, fixed_point_scaling_factor)
265 (allocate_fixed_point_type_info): Add declarations.
266 * valprint.c (generic_val_print_fixed_point): New function.
267 (generic_value_print): Add fixed-point type handling.
268 * value.c (value_as_address, unpack_long): Add fixed-point type
269 handling.
270
271 2020-11-15 Joel Brobecker <brobecker@adacore.com>
272
273 * utils.h (uinteger_pow): Add declaration.
274 * utils.c (uinteger_pow): Moved here (without changes)...
275 * valarith.c (uinteger_pow): ... from here.
276
277 2020-11-15 Joel Brobecker <brobecker@adacore.com>
278
279 * gmp-utils.h, gmp-utils.c: New file.
280 * unittests/gmp-utils-selftests.c: New file.
281 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
282 unittests/gmp-utils-selftests.c.
283 (COMMON_SFILES) Add gmp-utils.c.
284 (HFILES_NO_SRCDIR): Add gmp-utils.h.
285
286 2020-11-15 Joel Brobecker <brobecker@adacore.com>
287
288 * configure.ac: Generate an error if a usable GMP library
289 could not be found.
290 * configure: Regenerate.
291
292 2020-11-15 Joel Brobecker <brobecker@adacore.com>
293
294 * configure.ac: Add support for --with-libgmp-prefix.
295 * Makefile.in (LIBGMP): New variable.
296 (CLIBS): Include $(LIBGMP).
297 * configure, config.in: Regenerate
298
299 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
300
301 PR cli/26879
302 * f-exp.y (COMPLETE): New token.
303 (exp): Two new rules for tab-completion.
304 (saw_name_at_eof): New static global.
305 (last_was_structop): Likewise.
306 (yylex): Set new variables, and return COMPLETE token at the end
307 of the input stream in some cases.
308
309 2020-11-14 Tom Tromey <tom@tromey.com>
310
311 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
312
313 2020-11-14 Tom Tromey <tom@tromey.com>
314
315 * opencl-lang.c (opencl_component_ref): Make "comps" const.
316
317 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
320
321 2020-11-13 Tom Tromey <tom@tromey.com>
322
323 * c-lang.c (convert_ucn, convert_octal, convert_hex)
324 (convert_escape, parse_one_string): Constify.
325
326 2020-11-13 Keith Seitz <keiths@redhat.com>
327
328 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
329 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
330 outside of ELF segments" warning for debugin
331
332 2020-11-13 Keith Seitz <keiths@redhat.com>
333
334 PR gdb/23034
335 * elfread.c (elf_symfile_segments): Output a BFD file name
336 for the "Loadable section ... outside of ELF segments" warning.
337
338 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
339
340 PR gdb/26835
341 * arm-tdep.c (class arm_instruction_reader): New.
342 (target_arm_instruction_reader): New.
343 (arm_analyze_prologue): Add instruction reader parameter and use
344 it. Use arm_expand_immediate.
345 (class target_arm_instruction_reader): Adjust.
346 (arm_skip_prologue): Adjust.
347 (arm_expand_immediate): New.
348 (arm_scan_prologue): Adjust.
349 (arm_analyze_prologue_test): New.
350 (class test_arm_instruction_reader): New.
351
352 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * f-lang.c (fortran_argument_convert): Add declaration. Add
355 header comment, taken from f-lang.h. Make static.
356 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
357 (fortran_argument_convert): Delete declaration.
358
359 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * ada-exp.y (find_primitive_type): Make parameter const.
362 * ada-lang.c (enum ada_primitive_types): Delete.
363 (ada_language::language_arch_info): Update.
364 * c-lang.c (enum c_primitive_types): Delete.
365 (c_language_arch_info): Update.
366 (enum cplus_primitive_types): Delete.
367 (cplus_language::language_arch_info): Update.
368 * d-lang.c (enum d_primitive_types): Delete.
369 (d_language::language_arch_info): Update.
370 * f-lang.c (enum f_primitive_types): Delete.
371 (f_language::language_arch_info): Update.
372 * go-lang.c (enum go_primitive_types): Delete.
373 (go_language::language_arch_info): Update.
374 * language.c (auto_or_unknown_language::language_arch_info):
375 Update.
376 (language_gdbarch_post_init): Use obstack_new, use array indexing.
377 (language_string_char_type): Add header comment, call function in
378 language_arch_info.
379 (language_bool_type): Likewise
380 (language_arch_info::bool_type): Define.
381 (language_lookup_primitive_type_1): Delete.
382 (language_lookup_primitive_type): Rewrite as a templated function
383 to call function in language_arch_info, then instantiate twice.
384 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
385 (language_arch_info::lookup_primitive_type_and_symbol): Define.
386 (language_arch_info::lookup_primitive_type): Define twice with
387 different signatures.
388 (language_arch_info::lookup_primitive_type_as_symbol): Define.
389 (language_lookup_primitive_type_as_symbol): Rewrite to call a
390 member function in language_arch_info.
391 * language.h (language_arch_info): Complete rewrite.
392 (language_lookup_primitive_type): Make templated.
393 * m2-lang.c (enum m2_primitive_types): Delete.
394 (m2_language::language_arch_info): Update.
395 * opencl-lang.c (OCL_P_TYPE): Delete.
396 (enum opencl_primitive_types): Delete.
397 (opencl_type_data): Delete.
398 (builtin_opencl_type): Delete.
399 (lookup_opencl_vector_type): Update.
400 (opencl_language::language_arch_info): Update, lots of content
401 moved from...
402 (build_opencl_types): ...here. This function is now deleted.
403 (_initialize_opencl_language): Delete.
404 * p-lang.c (enum pascal_primitive_types): Delete.
405 (pascal_language::language_arch_info): Update.
406 * rust-lang.c (enum rust_primitive_types): Delete.
407 (rust_language::language_arch_info): Update.
408
409 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
410
411 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
412 dwarf2_queue_guard.
413
414 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
417 comment.
418
419 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * dwarf2/read.c (dwarf_read_debug_printf,
422 dwarf_read_debug_printf_v): New macros, use throughout the file.
423
424 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
425
426 * arc-linux-tdep.c (collect_register): Populate "eret" by
427 "pc" value from the regcache when asked for "pc" value.
428
429 2020-11-12 Tom Tromey <tom@tromey.com>
430
431 PR rust/26799:
432 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
433 exist.
434
435 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * features/Makefile (XMLTOC): Add rx.xml.
438 (FEATURE_XMLFILES): Remove rx.xml.
439 (FEATURE_CFILES rule): Pass '-single-feature' flag.
440 * features/rx.c: Regenerate.
441 * features/rx.xml: Wrap in `target` tags, and reindent.
442 * target-descriptions.c (struct maint_print_c_tdesc_options): New
443 structure.
444 (maint_print_c_tdesc_opt_def): New typedef.
445 (maint_print_c_tdesc_opt_defs): New static global.
446 (make_maint_print_c_tdesc_options_def_group): New function.
447 (maint_print_c_tdesc_cmd): Make use of command line flags, only
448 print single feature C file for target descriptions containing a
449 single feature.
450 (maint_print_c_tdesc_cmd_completer): New function.
451 (_initialize_target_descriptions): Update call to register command
452 completer, and include command line flag in help text.
453
454 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
457 numbers.
458 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
459 enum values.
460
461 2020-11-10 Tom Tromey <tom@tromey.com>
462
463 * value.h (internalvar_name): Update.
464 * value.c (internalvar_name): Make return type const.
465
466 2020-11-10 Tom Tromey <tom@tromey.com>
467
468 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
469 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
470 const.
471
472 2020-11-10 Tom Tromey <tom@tromey.com>
473
474 * objc-lang.h (value_nsstring): Update.
475 * objc-lang.c (value_nsstring): Make "ptr" const.
476
477 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * expprint.c (print_subexp_funcall): Increment expression position
480 after reading argument count.
481 * f-lang.c (print_subexp_f): Skip over opcode before calling
482 common function.
483 (dump_subexp_body_f): Likewise.
484
485 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
486
487 PR python/26832
488 * configure: Regenerate.
489 * configure.ac: Check for python modules ctypes instead of
490 itertools.
491
492 2020-11-06 Pedro Alves <pedro@palves.net>
493
494 * macroexp.c (struct macro_buffer): Split in two classes. Add
495 uses adjusted.
496 (struct shared_macro_buffer): New, factored out from struct
497 macro_buffer.
498 (struct growable_macro_buffer): New, factored out from struct
499 macro_buffer.
500 (set_token, get_comment, get_identifier, get_pp_number)
501 (get_character_constant, get_string_literal, get_punctuator)
502 (get_next_token_for_substitution): Constify parameters.
503 (substitute_args): Constify locals.
504
505 2020-11-05 Tom Tromey <tom@tromey.com>
506
507 * dwarf2/read.c (read_cutu_die_from_dwo)
508 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
509 (build_type_psymtabs_1): Update.
510 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
511 parameter.
512 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
513 Don't read section. Add assert.
514
515 2020-11-04 Tom Tromey <tromey@adacore.com>
516
517 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
518
519 2020-11-04 Tom Tromey <tromey@adacore.com>
520
521 * ada-typeprint.c (ada_print_type): Handle __T types.
522
523 2020-11-04 Tom Tromey <tromey@adacore.com>
524
525 * dwarf2/read.c (add_partial_symbol, process_die):
526 Handle DW_TAG_array_type.
527 (is_type_tag_for_partial): Add "lang" parameter.
528 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
529
530 2020-11-04 Tom Tromey <tromey@adacore.com>
531
532 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
533
534 2020-11-04 Tom Tromey <tromey@adacore.com>
535
536 * dwarf2/read.c (read_array_type): Only apply stride to innermost
537 array.
538
539 2020-11-04 Tom Tromey <tromey@adacore.com>
540
541 * gdbtypes.c (update_static_array_size): Handle bit stride.
542
543 2020-11-04 Tom Tromey <tromey@adacore.com>
544
545 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
546
547 2020-11-04 Tom Tromey <tromey@adacore.com>
548
549 * ada-lang.c (ada_is_any_packed_array_type): New function.
550 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
551
552 2020-11-04 Tom Tromey <tromey@adacore.com>
553
554 * dwarf2/read.c (recognize_bound_expression)
555 (quirk_ada_thick_pointer): New functions.
556 (read_array_type): Call quirk_ada_thick_pointer.
557 (set_die_type): Add "skip_data_location" parameter.
558 (quirk_ada_thick_pointer): New function.
559 (process_structure_scope): Call quirk_ada_thick_pointer.
560 * ada-lang.c (ada_is_unconstrained_packed_array_type)
561 (decode_packed_array_bitsize): Handle thick pointers without
562 parallel types.
563 (ada_is_gnat_encoded_packed_array_type): Rename from
564 ada_is_packed_array_type.
565 (ada_is_constrained_packed_array_type): Update.
566 * ada-valprint.c (ada_val_print_gnat_array): Remove.
567 (ada_value_print_1): Use ada_get_decoded_value.
568
569 2020-11-04 Tom Tromey <tromey@adacore.com>
570
571 * ada-lang.c (recursively_update_array_bitsize): New function.
572 (decode_constrained_packed_array_type): Call it.
573
574 2020-11-04 Tom Tromey <tromey@adacore.com>
575
576 * ada-lang.c (to_fixed_array_type): Error if
577 decode_constrained_packed_array_type returns NULL.
578
579 2020-11-04 Tom Tromey <tromey@adacore.com>
580
581 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
582
583 2020-11-02 Tom Tromey <tromey@adacore.com>
584
585 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
586 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
587 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
588 * amd64-ravenscar-thread.c: New file.
589 * amd64-ravenscar-thread.h: New file.
590 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
591 * configure.tgt (amd64_tobjs): Add ravenscar objects.
592
593 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * main.c (execute_cmdargs): New function.
596 (captured_main_1): Make use of execute_cmdargs.
597
598 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * NEWS: Mention changes to config file search path.
601 * main.c
602
603 2020-11-02 Tom Tromey <tromey@adacore.com>
604
605 * python/python.c: Consolidate two HAVE_PYTHON blocks.
606 (python_GdbModuleDef): Move earlier. Now static.
607 (do_start_initialization): Consolidate some IS_PY3K blocks.
608
609 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
610
611 * aarch64-linux-tdep.c: Fix indentation.
612 * aarch64-ravenscar-thread.c: Fix indentation.
613 * aarch64-tdep.c: Fix indentation.
614 * aarch64-tdep.h: Fix indentation.
615 * ada-lang.c: Fix indentation.
616 * ada-lang.h: Fix indentation.
617 * ada-tasks.c: Fix indentation.
618 * ada-typeprint.c: Fix indentation.
619 * ada-valprint.c: Fix indentation.
620 * ada-varobj.c: Fix indentation.
621 * addrmap.c: Fix indentation.
622 * addrmap.h: Fix indentation.
623 * agent.c: Fix indentation.
624 * aix-thread.c: Fix indentation.
625 * alpha-bsd-nat.c: Fix indentation.
626 * alpha-linux-tdep.c: Fix indentation.
627 * alpha-mdebug-tdep.c: Fix indentation.
628 * alpha-nbsd-tdep.c: Fix indentation.
629 * alpha-obsd-tdep.c: Fix indentation.
630 * alpha-tdep.c: Fix indentation.
631 * amd64-bsd-nat.c: Fix indentation.
632 * amd64-darwin-tdep.c: Fix indentation.
633 * amd64-linux-nat.c: Fix indentation.
634 * amd64-linux-tdep.c: Fix indentation.
635 * amd64-nat.c: Fix indentation.
636 * amd64-obsd-tdep.c: Fix indentation.
637 * amd64-tdep.c: Fix indentation.
638 * amd64-windows-tdep.c: Fix indentation.
639 * annotate.c: Fix indentation.
640 * arc-tdep.c: Fix indentation.
641 * arch-utils.c: Fix indentation.
642 * arch/arm-get-next-pcs.c: Fix indentation.
643 * arch/arm.c: Fix indentation.
644 * arm-linux-nat.c: Fix indentation.
645 * arm-linux-tdep.c: Fix indentation.
646 * arm-nbsd-tdep.c: Fix indentation.
647 * arm-pikeos-tdep.c: Fix indentation.
648 * arm-tdep.c: Fix indentation.
649 * arm-tdep.h: Fix indentation.
650 * arm-wince-tdep.c: Fix indentation.
651 * auto-load.c: Fix indentation.
652 * auxv.c: Fix indentation.
653 * avr-tdep.c: Fix indentation.
654 * ax-gdb.c: Fix indentation.
655 * ax-general.c: Fix indentation.
656 * bfin-linux-tdep.c: Fix indentation.
657 * block.c: Fix indentation.
658 * block.h: Fix indentation.
659 * blockframe.c: Fix indentation.
660 * bpf-tdep.c: Fix indentation.
661 * break-catch-sig.c: Fix indentation.
662 * break-catch-syscall.c: Fix indentation.
663 * break-catch-throw.c: Fix indentation.
664 * breakpoint.c: Fix indentation.
665 * breakpoint.h: Fix indentation.
666 * bsd-uthread.c: Fix indentation.
667 * btrace.c: Fix indentation.
668 * build-id.c: Fix indentation.
669 * buildsym-legacy.h: Fix indentation.
670 * buildsym.c: Fix indentation.
671 * c-typeprint.c: Fix indentation.
672 * c-valprint.c: Fix indentation.
673 * c-varobj.c: Fix indentation.
674 * charset.c: Fix indentation.
675 * cli/cli-cmds.c: Fix indentation.
676 * cli/cli-decode.c: Fix indentation.
677 * cli/cli-decode.h: Fix indentation.
678 * cli/cli-script.c: Fix indentation.
679 * cli/cli-setshow.c: Fix indentation.
680 * coff-pe-read.c: Fix indentation.
681 * coffread.c: Fix indentation.
682 * compile/compile-cplus-types.c: Fix indentation.
683 * compile/compile-object-load.c: Fix indentation.
684 * compile/compile-object-run.c: Fix indentation.
685 * completer.c: Fix indentation.
686 * corefile.c: Fix indentation.
687 * corelow.c: Fix indentation.
688 * cp-abi.h: Fix indentation.
689 * cp-namespace.c: Fix indentation.
690 * cp-support.c: Fix indentation.
691 * cp-valprint.c: Fix indentation.
692 * cris-linux-tdep.c: Fix indentation.
693 * cris-tdep.c: Fix indentation.
694 * darwin-nat-info.c: Fix indentation.
695 * darwin-nat.c: Fix indentation.
696 * darwin-nat.h: Fix indentation.
697 * dbxread.c: Fix indentation.
698 * dcache.c: Fix indentation.
699 * disasm.c: Fix indentation.
700 * dtrace-probe.c: Fix indentation.
701 * dwarf2/abbrev.c: Fix indentation.
702 * dwarf2/attribute.c: Fix indentation.
703 * dwarf2/expr.c: Fix indentation.
704 * dwarf2/frame.c: Fix indentation.
705 * dwarf2/index-cache.c: Fix indentation.
706 * dwarf2/index-write.c: Fix indentation.
707 * dwarf2/line-header.c: Fix indentation.
708 * dwarf2/loc.c: Fix indentation.
709 * dwarf2/macro.c: Fix indentation.
710 * dwarf2/read.c: Fix indentation.
711 * dwarf2/read.h: Fix indentation.
712 * elfread.c: Fix indentation.
713 * eval.c: Fix indentation.
714 * event-top.c: Fix indentation.
715 * exec.c: Fix indentation.
716 * exec.h: Fix indentation.
717 * expprint.c: Fix indentation.
718 * f-lang.c: Fix indentation.
719 * f-typeprint.c: Fix indentation.
720 * f-valprint.c: Fix indentation.
721 * fbsd-nat.c: Fix indentation.
722 * fbsd-tdep.c: Fix indentation.
723 * findvar.c: Fix indentation.
724 * fork-child.c: Fix indentation.
725 * frame-unwind.c: Fix indentation.
726 * frame-unwind.h: Fix indentation.
727 * frame.c: Fix indentation.
728 * frv-linux-tdep.c: Fix indentation.
729 * frv-tdep.c: Fix indentation.
730 * frv-tdep.h: Fix indentation.
731 * ft32-tdep.c: Fix indentation.
732 * gcore.c: Fix indentation.
733 * gdb_bfd.c: Fix indentation.
734 * gdbarch.sh: Fix indentation.
735 * gdbarch.c: Re-generate
736 * gdbarch.h: Re-generate.
737 * gdbcore.h: Fix indentation.
738 * gdbthread.h: Fix indentation.
739 * gdbtypes.c: Fix indentation.
740 * gdbtypes.h: Fix indentation.
741 * glibc-tdep.c: Fix indentation.
742 * gnu-nat.c: Fix indentation.
743 * gnu-nat.h: Fix indentation.
744 * gnu-v2-abi.c: Fix indentation.
745 * gnu-v3-abi.c: Fix indentation.
746 * go32-nat.c: Fix indentation.
747 * guile/guile-internal.h: Fix indentation.
748 * guile/scm-cmd.c: Fix indentation.
749 * guile/scm-frame.c: Fix indentation.
750 * guile/scm-iterator.c: Fix indentation.
751 * guile/scm-math.c: Fix indentation.
752 * guile/scm-ports.c: Fix indentation.
753 * guile/scm-pretty-print.c: Fix indentation.
754 * guile/scm-value.c: Fix indentation.
755 * h8300-tdep.c: Fix indentation.
756 * hppa-linux-nat.c: Fix indentation.
757 * hppa-linux-tdep.c: Fix indentation.
758 * hppa-nbsd-nat.c: Fix indentation.
759 * hppa-nbsd-tdep.c: Fix indentation.
760 * hppa-obsd-nat.c: Fix indentation.
761 * hppa-tdep.c: Fix indentation.
762 * hppa-tdep.h: Fix indentation.
763 * i386-bsd-nat.c: Fix indentation.
764 * i386-darwin-nat.c: Fix indentation.
765 * i386-darwin-tdep.c: Fix indentation.
766 * i386-dicos-tdep.c: Fix indentation.
767 * i386-gnu-nat.c: Fix indentation.
768 * i386-linux-nat.c: Fix indentation.
769 * i386-linux-tdep.c: Fix indentation.
770 * i386-nto-tdep.c: Fix indentation.
771 * i386-obsd-tdep.c: Fix indentation.
772 * i386-sol2-nat.c: Fix indentation.
773 * i386-tdep.c: Fix indentation.
774 * i386-tdep.h: Fix indentation.
775 * i386-windows-tdep.c: Fix indentation.
776 * i387-tdep.c: Fix indentation.
777 * i387-tdep.h: Fix indentation.
778 * ia64-libunwind-tdep.c: Fix indentation.
779 * ia64-libunwind-tdep.h: Fix indentation.
780 * ia64-linux-nat.c: Fix indentation.
781 * ia64-linux-tdep.c: Fix indentation.
782 * ia64-tdep.c: Fix indentation.
783 * ia64-tdep.h: Fix indentation.
784 * ia64-vms-tdep.c: Fix indentation.
785 * infcall.c: Fix indentation.
786 * infcmd.c: Fix indentation.
787 * inferior.c: Fix indentation.
788 * infrun.c: Fix indentation.
789 * iq2000-tdep.c: Fix indentation.
790 * language.c: Fix indentation.
791 * linespec.c: Fix indentation.
792 * linux-fork.c: Fix indentation.
793 * linux-nat.c: Fix indentation.
794 * linux-tdep.c: Fix indentation.
795 * linux-thread-db.c: Fix indentation.
796 * lm32-tdep.c: Fix indentation.
797 * m2-lang.c: Fix indentation.
798 * m2-typeprint.c: Fix indentation.
799 * m2-valprint.c: Fix indentation.
800 * m32c-tdep.c: Fix indentation.
801 * m32r-linux-tdep.c: Fix indentation.
802 * m32r-tdep.c: Fix indentation.
803 * m68hc11-tdep.c: Fix indentation.
804 * m68k-bsd-nat.c: Fix indentation.
805 * m68k-linux-nat.c: Fix indentation.
806 * m68k-linux-tdep.c: Fix indentation.
807 * m68k-tdep.c: Fix indentation.
808 * machoread.c: Fix indentation.
809 * macrocmd.c: Fix indentation.
810 * macroexp.c: Fix indentation.
811 * macroscope.c: Fix indentation.
812 * macrotab.c: Fix indentation.
813 * macrotab.h: Fix indentation.
814 * main.c: Fix indentation.
815 * mdebugread.c: Fix indentation.
816 * mep-tdep.c: Fix indentation.
817 * mi/mi-cmd-catch.c: Fix indentation.
818 * mi/mi-cmd-disas.c: Fix indentation.
819 * mi/mi-cmd-env.c: Fix indentation.
820 * mi/mi-cmd-stack.c: Fix indentation.
821 * mi/mi-cmd-var.c: Fix indentation.
822 * mi/mi-cmds.c: Fix indentation.
823 * mi/mi-main.c: Fix indentation.
824 * mi/mi-parse.c: Fix indentation.
825 * microblaze-tdep.c: Fix indentation.
826 * minidebug.c: Fix indentation.
827 * minsyms.c: Fix indentation.
828 * mips-linux-nat.c: Fix indentation.
829 * mips-linux-tdep.c: Fix indentation.
830 * mips-nbsd-tdep.c: Fix indentation.
831 * mips-tdep.c: Fix indentation.
832 * mn10300-linux-tdep.c: Fix indentation.
833 * mn10300-tdep.c: Fix indentation.
834 * moxie-tdep.c: Fix indentation.
835 * msp430-tdep.c: Fix indentation.
836 * namespace.h: Fix indentation.
837 * nat/fork-inferior.c: Fix indentation.
838 * nat/gdb_ptrace.h: Fix indentation.
839 * nat/linux-namespaces.c: Fix indentation.
840 * nat/linux-osdata.c: Fix indentation.
841 * nat/netbsd-nat.c: Fix indentation.
842 * nat/x86-dregs.c: Fix indentation.
843 * nbsd-nat.c: Fix indentation.
844 * nbsd-tdep.c: Fix indentation.
845 * nios2-linux-tdep.c: Fix indentation.
846 * nios2-tdep.c: Fix indentation.
847 * nto-procfs.c: Fix indentation.
848 * nto-tdep.c: Fix indentation.
849 * objfiles.c: Fix indentation.
850 * objfiles.h: Fix indentation.
851 * opencl-lang.c: Fix indentation.
852 * or1k-tdep.c: Fix indentation.
853 * osabi.c: Fix indentation.
854 * osabi.h: Fix indentation.
855 * osdata.c: Fix indentation.
856 * p-lang.c: Fix indentation.
857 * p-typeprint.c: Fix indentation.
858 * p-valprint.c: Fix indentation.
859 * parse.c: Fix indentation.
860 * ppc-linux-nat.c: Fix indentation.
861 * ppc-linux-tdep.c: Fix indentation.
862 * ppc-nbsd-nat.c: Fix indentation.
863 * ppc-nbsd-tdep.c: Fix indentation.
864 * ppc-obsd-nat.c: Fix indentation.
865 * ppc-ravenscar-thread.c: Fix indentation.
866 * ppc-sysv-tdep.c: Fix indentation.
867 * ppc64-tdep.c: Fix indentation.
868 * printcmd.c: Fix indentation.
869 * proc-api.c: Fix indentation.
870 * producer.c: Fix indentation.
871 * producer.h: Fix indentation.
872 * prologue-value.c: Fix indentation.
873 * prologue-value.h: Fix indentation.
874 * psymtab.c: Fix indentation.
875 * python/py-arch.c: Fix indentation.
876 * python/py-bpevent.c: Fix indentation.
877 * python/py-event.c: Fix indentation.
878 * python/py-event.h: Fix indentation.
879 * python/py-finishbreakpoint.c: Fix indentation.
880 * python/py-frame.c: Fix indentation.
881 * python/py-framefilter.c: Fix indentation.
882 * python/py-inferior.c: Fix indentation.
883 * python/py-infthread.c: Fix indentation.
884 * python/py-objfile.c: Fix indentation.
885 * python/py-prettyprint.c: Fix indentation.
886 * python/py-registers.c: Fix indentation.
887 * python/py-signalevent.c: Fix indentation.
888 * python/py-stopevent.c: Fix indentation.
889 * python/py-stopevent.h: Fix indentation.
890 * python/py-threadevent.c: Fix indentation.
891 * python/py-tui.c: Fix indentation.
892 * python/py-unwind.c: Fix indentation.
893 * python/py-value.c: Fix indentation.
894 * python/py-xmethods.c: Fix indentation.
895 * python/python-internal.h: Fix indentation.
896 * python/python.c: Fix indentation.
897 * ravenscar-thread.c: Fix indentation.
898 * record-btrace.c: Fix indentation.
899 * record-full.c: Fix indentation.
900 * record.c: Fix indentation.
901 * reggroups.c: Fix indentation.
902 * regset.h: Fix indentation.
903 * remote-fileio.c: Fix indentation.
904 * remote.c: Fix indentation.
905 * reverse.c: Fix indentation.
906 * riscv-linux-tdep.c: Fix indentation.
907 * riscv-ravenscar-thread.c: Fix indentation.
908 * riscv-tdep.c: Fix indentation.
909 * rl78-tdep.c: Fix indentation.
910 * rs6000-aix-tdep.c: Fix indentation.
911 * rs6000-lynx178-tdep.c: Fix indentation.
912 * rs6000-nat.c: Fix indentation.
913 * rs6000-tdep.c: Fix indentation.
914 * rust-lang.c: Fix indentation.
915 * rx-tdep.c: Fix indentation.
916 * s12z-tdep.c: Fix indentation.
917 * s390-linux-tdep.c: Fix indentation.
918 * score-tdep.c: Fix indentation.
919 * ser-base.c: Fix indentation.
920 * ser-mingw.c: Fix indentation.
921 * ser-uds.c: Fix indentation.
922 * ser-unix.c: Fix indentation.
923 * serial.c: Fix indentation.
924 * sh-linux-tdep.c: Fix indentation.
925 * sh-nbsd-tdep.c: Fix indentation.
926 * sh-tdep.c: Fix indentation.
927 * skip.c: Fix indentation.
928 * sol-thread.c: Fix indentation.
929 * solib-aix.c: Fix indentation.
930 * solib-darwin.c: Fix indentation.
931 * solib-frv.c: Fix indentation.
932 * solib-svr4.c: Fix indentation.
933 * solib.c: Fix indentation.
934 * source.c: Fix indentation.
935 * sparc-linux-tdep.c: Fix indentation.
936 * sparc-nbsd-tdep.c: Fix indentation.
937 * sparc-obsd-tdep.c: Fix indentation.
938 * sparc-ravenscar-thread.c: Fix indentation.
939 * sparc-tdep.c: Fix indentation.
940 * sparc64-linux-tdep.c: Fix indentation.
941 * sparc64-nbsd-tdep.c: Fix indentation.
942 * sparc64-obsd-tdep.c: Fix indentation.
943 * sparc64-tdep.c: Fix indentation.
944 * stabsread.c: Fix indentation.
945 * stack.c: Fix indentation.
946 * stap-probe.c: Fix indentation.
947 * stubs/ia64vms-stub.c: Fix indentation.
948 * stubs/m32r-stub.c: Fix indentation.
949 * stubs/m68k-stub.c: Fix indentation.
950 * stubs/sh-stub.c: Fix indentation.
951 * stubs/sparc-stub.c: Fix indentation.
952 * symfile-mem.c: Fix indentation.
953 * symfile.c: Fix indentation.
954 * symfile.h: Fix indentation.
955 * symmisc.c: Fix indentation.
956 * symtab.c: Fix indentation.
957 * symtab.h: Fix indentation.
958 * target-float.c: Fix indentation.
959 * target.c: Fix indentation.
960 * target.h: Fix indentation.
961 * tic6x-tdep.c: Fix indentation.
962 * tilegx-linux-tdep.c: Fix indentation.
963 * tilegx-tdep.c: Fix indentation.
964 * top.c: Fix indentation.
965 * tracefile-tfile.c: Fix indentation.
966 * tracepoint.c: Fix indentation.
967 * tui/tui-disasm.c: Fix indentation.
968 * tui/tui-io.c: Fix indentation.
969 * tui/tui-regs.c: Fix indentation.
970 * tui/tui-stack.c: Fix indentation.
971 * tui/tui-win.c: Fix indentation.
972 * tui/tui-winsource.c: Fix indentation.
973 * tui/tui.c: Fix indentation.
974 * typeprint.c: Fix indentation.
975 * ui-out.h: Fix indentation.
976 * unittests/copy_bitwise-selftests.c: Fix indentation.
977 * unittests/memory-map-selftests.c: Fix indentation.
978 * utils.c: Fix indentation.
979 * v850-tdep.c: Fix indentation.
980 * valarith.c: Fix indentation.
981 * valops.c: Fix indentation.
982 * valprint.c: Fix indentation.
983 * valprint.h: Fix indentation.
984 * value.c: Fix indentation.
985 * value.h: Fix indentation.
986 * varobj.c: Fix indentation.
987 * vax-tdep.c: Fix indentation.
988 * windows-nat.c: Fix indentation.
989 * windows-tdep.c: Fix indentation.
990 * xcoffread.c: Fix indentation.
991 * xml-syscall.c: Fix indentation.
992 * xml-tdesc.c: Fix indentation.
993 * xstormy16-tdep.c: Fix indentation.
994 * xtensa-config.c: Fix indentation.
995 * xtensa-linux-nat.c: Fix indentation.
996 * xtensa-linux-tdep.c: Fix indentation.
997 * xtensa-tdep.c: Fix indentation.
998
999 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1000 Craig Blackmore <craig.blackmore@embecosm.com>
1001
1002 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1003 as an unsigned value.
1004
1005 2020-11-01 Tom Tromey <tom@tromey.com>
1006
1007 * dbxread.c (dbx_end_psymtab): Update.
1008 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1009 (build_type_psymtabs_reader): Update.
1010 * xcoffread.c (xcoff_end_psymtab): Update.
1011 * ctfread.c (scan_partial_symbols): Update.
1012 * psymtab.c (sort_pst_symbols): Remove.
1013 (partial_symtab::end): Rename from end_psymtab_common. Inline
1014 sort_pst_symbols.
1015 * psympriv.h (struct partial_symtab) <end>: New method.
1016 (end_psymtab_common): Don't declare.
1017
1018 2020-11-01 Tom Tromey <tom@tromey.com>
1019
1020 * symmisc.c (count_psyms): New function.
1021 (print_objfile_statistics): Use it.
1022 * psymtab.c (append_psymbol_to_list): Remove.
1023 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1024 * objfiles.h (struct objstats) <n_psyms>: Remove.
1025
1026 2020-11-01 Tom Tromey <tom@tromey.com>
1027
1028 * dbxread.c (dbx_end_psymtab): Update.
1029 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1030 (build_type_psymtabs_reader): Update.
1031 * xcoffread.c (xcoff_end_psymtab): Update.
1032 * ctfread.c (scan_partial_symbols): Update.
1033 * psympriv.h (end_psymtab_common): Update.
1034 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1035 (sort_pst_symbols): Likewise.
1036
1037 2020-11-01 Tom Tromey <tom@tromey.com>
1038
1039 * dbxread.c (dbx_symfile_read): Update.
1040 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1041 * xcoffread.c (xcoff_initial_scan): Update.
1042 * psympriv.h (init_psymbol_list): Don't declare.
1043 * psymtab.c (init_psymbol_list): Remove.
1044
1045 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1046
1047 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1048 gnat_encoded_fixed_type_info. Update all callers.
1049
1050 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1051
1052 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1053 line too long.
1054
1055 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1056
1057 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1058 cast_from_fixed. Update all callers.
1059 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1060 Update all callers.
1061 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1062 Update all callers.
1063 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1064 ada_scaling_factor.
1065 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1066 to print_gnat_encoded_fixed_point_type.
1067 * ada-valprint.c: Likewise.
1068
1069 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1070
1071 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1072 (debug_prefixed_printf): Add check of debug_displaced flag.
1073 * linux-nat.c (linux_nat_debug_printf): Add check of
1074 debug_linux_nat flag.
1075
1076 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * infrun.c (infrun_debug_printf_1): Remove.
1079 (displaced_debug_printf_1): Remove.
1080 (stop_all_threads): Use debug_prefixed_printf.
1081 * infrun.h (infrun_debug_printf_1): Remove.
1082 (infrun_debug_printf): Use debug_prefixed_printf.
1083 (displaced_debug_printf_1): Remove.
1084 (displaced_debug_printf): Use debug_prefixed_printf.
1085 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1086 (linux_nat_debug_printf): Use debug_prefixed_printf.
1087
1088 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * configure: Re-generate.
1091 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1092 AC_LANG_PROGRAM.
1093
1094 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * configure: Re-generate.
1097
1098 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * configure: Re-generate.
1101
1102 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * configure: Re-generate.
1105
1106 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * configure: Re-generate.
1109
1110 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1111
1112 * acinclude.m4: Modernize.
1113 * configure: Re-generate.
1114
1115 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * configure.ac: Modernize.
1118 * configure: Re-generate.
1119
1120 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1121
1122 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1123 * configure: Re-generate.
1124 * configure.ac: Remove AM_PROG_CC_STDC.
1125
1126 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1127
1128 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1129 AC_CANONICAL_SYSTEM.
1130 * configure: Re-generate.
1131
1132 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1133
1134 * infrun.h (displaced_debug_printf): New macro. Replace
1135 displaced debug prints throughout to use it.
1136 (displaced_debug_printf_1): New declaration.
1137 (displaced_step_dump_bytes): Return string, remove ui_file
1138 parameter, update all callers.
1139 * infrun.c (displaced_debug_printf_1): New function.
1140 (displaced_step_dump_bytes): Return string, remove ui_file
1141 parameter
1142
1143 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1146
1147 2020-10-30 Tom Tromey <tromey@adacore.com>
1148
1149 * Makefile.in (stamp-init): Depend on config.status.
1150
1151 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1152
1153 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1154
1155 2020-10-30 Pedro Alves <pedro@palves.net>
1156
1157 * thread.c (lookup_selected_frame): Move ...
1158 * frame.c (lookup_selected_frame): ... here.
1159
1160 2020-10-30 Pedro Alves <pedro@palves.net>
1161
1162 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1163 * frame.c
1164 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1165 Use save_selected_frame. Save language as well.
1166 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1167 Use restore_selected_frame, and restore language as well.
1168 (selected_frame_id, selected_frame_level): New.
1169 (selected_frame): Update comments.
1170 (save_selected_frame, restore_selected_frame): New.
1171 (get_selected_frame): Use lookup_selected_frame.
1172 (get_selected_frame_if_set): Delete.
1173 (select_frame): Record selected_frame_level and selected_frame_id.
1174 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1175 fields.
1176 (get_selected_frame): Make 'message' parameter optional.
1177 (get_selected_frame_if_set): Delete declaration.
1178 (select_frame): Update comments.
1179 (save_selected_frame, restore_selected_frame)
1180 (lookup_selected_frame): Declare.
1181 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1182 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1183 New field.
1184 (save_infcall_control_state): Use save_selected_frame.
1185 (restore_selected_frame): Delete.
1186 (restore_infcall_control_state): Use restore_selected_frame.
1187 * stack.c (select_frame_command_core, frame_command_core): Use
1188 get_selected_frame.
1189 * thread.c (restore_selected_frame): Rename to ...
1190 (lookup_selected_frame): ... this and make extern. Select the
1191 current frame if the frame level is -1.
1192 (scoped_restore_current_thread::restore): Also restore the
1193 language.
1194 (scoped_restore_current_thread::~scoped_restore_current_thread):
1195 Don't try/catch.
1196 (scoped_restore_current_thread::scoped_restore_current_thread):
1197 Save the language as well. Use save_selected_frame.
1198
1199 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1202 documentation.
1203 * gdbarch.h: Re-generate.
1204
1205 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1208 parameter.
1209 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1210 Likewise.
1211 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1212 Likewise.
1213 * arch-utils.c (default_displaced_step_hw_singlestep):
1214 Likewise.
1215 * arch-utils.h (default_displaced_step_hw_singlestep):
1216 Likewise.
1217 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1218 Likewise.
1219 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1220 Likewise.
1221 * gdbarch.c: Re-generate.
1222 * gdbarch.h: Re-generate.
1223 * infrun.c (resume_1): Adjust.
1224
1225 2020-10-29 Tom Tromey <tom@tromey.com>
1226
1227 * progspace.c (program_space::~program_space): Don't call
1228 exec_close.
1229
1230 2020-10-29 Tom Tromey <tom@tromey.com>
1231
1232 * exec.c (exec_target::close): Don't change current program
1233 space.
1234
1235 2020-10-29 Tom Tromey <tom@tromey.com>
1236
1237 * symfile.c (add_symbol_file_command): Update.
1238 * exec.c (program_space::add_target_sections): Rename.
1239 * symfile-mem.c (symbol_file_add_from_memory): Update.
1240 * progspace.h (struct program_space) <add_target_sections>:
1241 Declare new overload.
1242 * exec.h (add_target_sections_of_objfile): Don't declare.
1243
1244 2020-10-29 Tom Tromey <tom@tromey.com>
1245
1246 * solib.c (solib_map_sections): Update.
1247 * exec.c (program_space::add_target_sections): Now a method.
1248 (exec_file_attach): Update.
1249 * exec.h (add_target_sections): Don't declare.
1250 * progspace.h (struct program_space) <add_target_sections>:
1251 Declare.
1252
1253 2020-10-29 Tom Tromey <tom@tromey.com>
1254
1255 * progspace.h (struct program_space) <remove_target_sections>:
1256 Declare.
1257 * exec.c (program_space::remove_target_sections): Now a method.
1258 * exec.h (remove_target_sections): Don't declare.
1259
1260 2020-10-29 Tom Tromey <tom@tromey.com>
1261
1262 * inferior.c (delete_inferior): Update.
1263 * progspace.c (program_space::empty): Rename from
1264 program_space_empty_p. Return bool.
1265 * progspace.h (struct program_space) <empty>: New method.
1266 (program_space_empty_p): Don't declare.
1267
1268 2020-10-29 Tom Tromey <tom@tromey.com>
1269
1270 * progspace.c (program_space::~program_space): Don't call
1271 clear_program_space_solib_cache.
1272 (program_space::clear_solib_cache): Rename from
1273 clear_solib_cache.
1274 * solib.c (handle_solib_event): Update.
1275 * progspace.h (struct program_space) <clear_solib_cache>: New
1276 method.
1277 (clear_program_space_solib_cache): Don't declare.
1278
1279 2020-10-29 Tom Tromey <tom@tromey.com>
1280
1281 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1282 * target.c (info_target_command): Update.
1283 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1284 (symbol_file_clear, reread_symbols): Update.
1285 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1286 * stabsread.c (scan_file_globals): Update.
1287 * solib.c (update_solib_list): Update.
1288 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1289 (svr4_fetch_objfile_link_map, enable_break)
1290 (svr4_relocate_main_executable)
1291 (svr4_iterate_over_objfiles_in_search_order): Update.
1292 * solib-frv.c (lm_base, enable_break)
1293 (frv_relocate_main_executable): Update.
1294 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1295 (frv_fetch_objfile_link_map): Update.
1296 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1297 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1298 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1299 * remote.c (remote_target::get_offsets): Update.
1300 (remote_target::start_remote)
1301 (extended_remote_target::post_attach): Update.
1302 * objfiles.c (entry_point_address_query): Update.
1303 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1304 * minsyms.c (get_symbol_leading_char): Update.
1305 * frame.c (inside_main_func): Update.
1306 * progspace.h (symfile_objfile): Remove macro.
1307
1308 2020-10-29 Tom Tromey <tom@tromey.com>
1309
1310 * exec.c (exec_file_attach): Update.
1311 * progspace.c (program_space::exec_close): Update.
1312 * progspace.h (struct program_space) <ebfd>: Now a
1313 gdb_bfd_ref_ptr.
1314 <set_exec_bfd>: Change argument type.
1315 <exec_bfd>: Update.
1316
1317 2020-10-29 Tom Tromey <tom@tromey.com>
1318
1319 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1320 * symfile.c (reread_symbols): Update.
1321 * symfile-mem.c (add_symbol_file_from_memory_command)
1322 (add_vsyscall_page): Update.
1323 * source-cache.c (source_cache::get_plain_source_lines): Update.
1324 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1325 (svr4_current_sos_direct, svr4_exec_displacement)
1326 (svr4_relocate_main_executable): Update.
1327 (svr4_iterate_over_objfiles_in_search_order): Update.
1328 * solib-frv.c (enable_break2, enable_break): Update.
1329 * solib-dsbt.c (lm_base, enable_break): Update.
1330 * solib-darwin.c (find_program_interpreter)
1331 (darwin_solib_create_inferior_hook): Update.
1332 * sol-thread.c (rw_common, ps_pdmodel): Update.
1333 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1334 * remote.c (compare_sections_command)
1335 (remote_target::trace_set_readonly_regions): Update.
1336 * remote-sim.c (get_sim_inferior_data)
1337 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1338 (gdbsim_target_open, gdbsim_target::files_info): Update.
1339 * exec.h (exec_bfd): Remove macro.
1340 * progspace.c (initialize_progspace): Update.
1341 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1342 Update.
1343 * nto-procfs.c (nto_procfs_target::post_attach)
1344 (nto_procfs_target::create_inferior): Update.
1345 * maint.c (maintenance_info_sections): Update.
1346 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1347 Update.
1348 * infcmd.c (post_create_inferior): Update.
1349 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1350 (objfile_find_memory_regions): Update.
1351 * exec.c (validate_exec_file, exec_file_attach)
1352 (exec_read_partial_read_only, print_section_info): Update.
1353 * corelow.c (core_target_open): Update.
1354 * corefile.c (reopen_exec_file, validate_files): Update.
1355 * arm-tdep.c (gdb_print_insn_arm): Update.
1356 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1357 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1358 methods.
1359
1360 2020-10-29 Tom Tromey <tom@tromey.com>
1361
1362 * progspace.h (current_target_sections): Remove macro.
1363 * solib-svr4.c (scan_dyntag): Update.
1364 * solib-dsbt.c (scan_dyntag): Update.
1365 * exec.c (exec_target::close): Update.
1366 (add_target_sections, add_target_sections_of_objfile)
1367 (remove_target_sections, exec_target::get_section_table)
1368 (exec_target::files_info, set_section_command)
1369 (exec_set_section_address, exec_target::has_memory)
1370 (exec_target::has_memory): Update.
1371
1372 2020-10-29 Tom Tromey <tom@tromey.com>
1373
1374 * source-cache.c (source_cache::get_plain_source_lines): Use
1375 current_program_space.
1376 * corefile.c (reopen_exec_file): Use current_program_space.
1377 * exec.c (exec_file_attach): Use current_program_space.
1378 * exec.h (exec_bfd_mtime): Remove.
1379
1380 2020-10-29 Tom Tromey <tom@tromey.com>
1381
1382 * gcore.c (default_gcore_mach): Remove.
1383 (create_gcore_bfd): Update.
1384
1385 2020-10-29 Tom Tromey <tom@tromey.com>
1386
1387 * progspace.c (program_space::exec_close): New method, from
1388 exec_close in exec.c.
1389 * exec.c (exec_close): Move to progspace.c.
1390 (exec_target::close, exec_file_attach): Update.
1391 * progspace.h (struct program_space) <exec_close>: Declare
1392 method.
1393
1394 2020-10-29 Tom Tromey <tom@tromey.com>
1395
1396 * progspace.h (struct program_space) <exec_filename>: Rename from
1397 pspace_exec_filename. Now a unique_xmalloc_ptr.
1398 * inferior.c (print_selected_inferior): Update.
1399 (print_inferior): Update.
1400 * mi/mi-main.c (print_one_inferior): Update.
1401 * exec.h (exec_filename): Remove macro.
1402 * corefile.c (get_exec_file): Update.
1403 * exec.c (exec_close): Update.
1404 (exec_file_attach): Update.
1405 * progspace.c (clone_program_space): Update.
1406 (print_program_space): Update.
1407
1408 2020-10-29 Tom Tromey <tom@tromey.com>
1409
1410 * target-section.h (struct target_section): Add constructor.
1411 * exec.c (build_section_table, add_target_sections_of_objfile):
1412 Update.
1413 * corelow.c (core_target::build_file_mappings): Update.
1414
1415 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1416
1417 PR gdb/19318
1418 * inferior.c (detach_inferior_command): Restore the current thread.
1419 (kill_inferior_command): Ditto.
1420
1421 2020-10-28 Tom de Vries <tdevries@suse.de>
1422
1423 PR symtab/26772
1424 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1425 map, check it in the "best match" loop.
1426
1427 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * m32c-tdep.c: Remove unused includes.
1430
1431 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * xtensa-tdep.c: Remove includes.
1434
1435 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1436
1437 * breakpoint.c (struct condition_command_opts): New struct.
1438 (condition_command_option_defs): New static global.
1439 (make_condition_command_options_def_group): New function.
1440 (condition_completer): Update to consider the '-force' flag.
1441 (condition_command): Use gdb::option for the '-force' flag.
1442
1443 2020-10-27 Tom de Vries <tdevries@suse.de>
1444
1445 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1446 symbols in section check.
1447
1448 2020-10-27 Tom de Vries <tdevries@suse.de>
1449
1450 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1451
1452 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1453
1454 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1455 * breakpoint.c: Update the help text of the 'condition' and 'break'
1456 commands.
1457 (set_breakpoint_condition): Take a new bool parameter
1458 to control whether condition definition should be forced even when
1459 the condition expression is invalid in all of the current locations.
1460 (condition_command): Update the call to 'set_breakpoint_condition'.
1461 (find_condition_and_thread): Take the "-force-condition" flag into
1462 account.
1463 * linespec.c (linespec_keywords): Add "-force-condition" as an
1464 element.
1465 (FORCE_KEYWORD_INDEX): New #define.
1466 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1467 as a keyword.
1468 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1469 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1470 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1471 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1472
1473 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1474
1475 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1476 * breakpoint.c (set_breakpoint_location_condition): New function.
1477 (set_breakpoint_condition): Disable a breakpoint location if parsing
1478 the condition string gives an error.
1479 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1480 (build_target_condition_list): Ditto.
1481 (build_target_command_list): Ditto.
1482 (build_bpstat_chain): Ditto.
1483 (print_one_breakpoint_location): Ditto.
1484 (print_one_breakpoint): Ditto.
1485 (breakpoint_1): Ditto.
1486 (bp_location::bp_location): Ditto.
1487 (locations_are_equal): Ditto.
1488 (update_breakpoint_locations): Ditto.
1489 (enable_disable_bp_num_loc): Ditto.
1490 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1491 (find_condition_and_thread_for_sals): New static function.
1492 (create_breakpoint): Call find_condition_and_thread_for_sals.
1493 (location_to_sals): Call find_condition_and_thread_for_sals instead
1494 of find_condition_and_thread.
1495
1496 2020-10-26 Tom de Vries <tdevries@suse.de>
1497
1498 * dwarf2/read.c (process_full_comp_unit): Call
1499 dwarf2_find_base_address.
1500
1501 2020-10-26 Tom Tromey <tromey@adacore.com>
1502
1503 * gdbtypes.c (create_range_type): Revert previous patch. Add
1504 comment.
1505
1506 2020-10-26 Pedro Alves <pedro@palves.net>
1507
1508 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1509 (my_waitpid): Use gdb::handle_eintr.
1510
1511 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1512
1513 * acinclude.m4: Update ptrace.m4 path.
1514 * ptrace.m4: Moved to gdbsupport.
1515
1516 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1519 instead of target_gdbarch.
1520
1521 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * jit.c (jit_reader_load_command): Pass current inferior.
1524 (jit_inferior_init): Change parameter type to inferior, use it.
1525 (jit_inferior_created): Remove.
1526 (jit_inferior_created_hook): Pass inferior parameter down.
1527 (_initialize_jit): Use jit_inferior_created_hook instead of
1528 jit_inferior_created.
1529 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1530 * infrun.c (follow_exec): Pass inferior to
1531 jit_inferior_created_hook.
1532
1533 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1536 parameter and use it.
1537 (thread_db_inferior_created): Pass inferior argument.
1538
1539 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * aix-thread.c (aix_thread_inferior_created): Add inferior
1542 parameter.
1543 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1544 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1545 * jit.c (jit_inferior_created): Likewise.
1546 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1547 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1548 * observable.h (inferior_created): Likewise.
1549 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1550 * symfile-mem.c (add_vsyscall_page): Likewise.
1551 * infcmd.c (post_create_inferior): Pass inferior argument.
1552
1553 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1554
1555 GDB 10.1 released.
1556
1557 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1558
1559 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1560 to ada_check_typedef.
1561
1562 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * f-exp.y (f_parse): Rename to...
1565 (f_language::parser): ...this.
1566 * f-lang.c (f_get_encoding): Rename to...
1567 (f_language::get_encoding): ...this.
1568 (f_op_print_tab): Rename to...
1569 (f_language::op_print_tab): ...this.
1570 (exp_descriptor_f): Rename to...
1571 (f_language::exp_descriptor_tab): ...this.
1572 (class f_language): Moved to f-lang.h.
1573 (f_language::language_arch_info): New function, moved out of class
1574 declaration.
1575 (f_language::search_name_hash): Likewise.
1576 (f_language::lookup_symbol_nonlocal): Likewise.
1577 (f_language::get_symbol_name_matcher_inner): Likewise.
1578 * f-lang.h: Add 'valprint.h' include.
1579 (class f_language): Moved here from f-lang.c.
1580 * f-typeprint.c (f_type_print_args): Delete commented out
1581 declaration.
1582 (f_print_typedef): Rename to...
1583 (f_language::print_typedef): ...this.
1584 (f_print_type): Rename to...
1585 (f_language::print_type): ...this.
1586 (f_type_print_varspec_prefix): Delete declaration and rename to...
1587 (f_language::f_type_print_varspec_prefix): ...this.
1588 (f_type_print_varspec_suffix): Delete declaration and rename to...
1589 (f_language::f_type_print_varspec_suffix): ...this.
1590 (f_type_print_base): Delete declaration and rename to...
1591 (f_language::f_type_print_base): ...this.
1592 * f-valprint.c (f_value_print_inner): Rename to...
1593 (f_language::value_print_inner): ...this.
1594 * parse.c: Delete 'f-lang.h' include.
1595
1596 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * language.h (language_defn::print_type): Add variable names in
1599 declaration, and update header comment.
1600
1601 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * ada-lang.c (ada_language::demangle): Rename to...
1604 (ada_language::demangle_symbol): ...this.
1605 * c-lang.c (cplus_language::demangle): Rename to...
1606 (cplus_language::demangle_symbol): ...this.
1607 * d-lang.c (d_language::demangle): Rename to...
1608 (d_language::demangle_symbol): ...this.
1609 * f-lang.c (f_language::demangle): Rename to...
1610 (f_language::demangle_symbol): ...this.
1611 * go-lang.c (go_language::demangle): Rename to...
1612 (go_language::demangle_symbol): ...this.
1613 * language.c (language_demangle): Update call to demangle_symbol.
1614 (auto_or_unknown_language::demangle): Rename to...
1615 (auto_or_unknown_language::demangle_symbol): ...this.
1616 * language.h (language_defn::demangle): Rename to...
1617 (language_defn::demangle_symbol): ...this.
1618 * objc-lang.c (objc_language::demangle): Rename to...
1619 (objc_language::demangle_symbol): ...this.
1620 * rust-lang.c (rust_language::demangle): Rename to...
1621 (rust_language::demangle_symbol): ...this.
1622
1623 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1626 (iterate_over_file_blocks): Replace use of macro with the macros
1627 definition.
1628
1629 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1632 * valprint.c (maybe_print_array_index): Replace use of macro with
1633 the macros definition.
1634
1635 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * ada-lang.c (ada_language::print_array_index): Call value_print
1638 directly.
1639 * language.c (language_defn::print_array_index): Likewise.
1640 * language.h (LA_VALUE_PRINT): Delete.
1641 * valprint.c (value_print): Call value_print on the
1642 current_language directly.
1643
1644 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * language.h (LA_PRINT_TYPEDEF): Delete.
1647 * typeprint.c (typedef_print): Call print_typedef directly on the
1648 current_language object.
1649
1650 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * m2-exp.y (m2_parse): Rename to...
1653 (m2_language::parser): ...this. Update function signature.
1654 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1655 (m2_op_print): Rename to...
1656 (m2_language::op_print_tab): ...this, and make const.
1657 (exp_descriptor_modula2): Rename to...
1658 (m2_language::exp_descriptor_modula2): ...this.
1659 (class m2_language): Move to m2-lang.h.
1660 (m2_language::language_arch_info): New function, moved out of
1661 class declaration.
1662 (m2_language::printchar): New function, body from m2_printchar.
1663 (m2_language::printstr): New function, moved out of class
1664 declaration.
1665 (m2_language::emitchar): Likewise.
1666 * m2-lang.h (m2_parse): Delete declaration.
1667 (m2_print_typedef): Delete declaration.
1668 (m2_value_print_inner): Delete declaration.
1669 (class m2_language): Class declaration moved from m2-lang.c,
1670 larger functions are left in m2-lang.c.
1671 * m2-typeprint.c (m2_print_typedef): Rename to...
1672 (m2_language::print_typedef): ...this, and update function
1673 signature.
1674 * m2-valprint.c (m2_value_print_inner): Rename to...
1675 (m2_language::value_print_inner): ...this, replace use of
1676 LA_PRINT_STRING with a direct call to printstr member function,
1677 and update recursive call.
1678
1679 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1680
1681 * language.c (default_is_string_type_p): Delete, implementation
1682 moved into auto_or_unknown_language::is_string_type_p.
1683 (unk_op_print_tab): Moved into
1684 auto_or_unknown_language::opcode_print_table.
1685 (unknown_language_arch_info): Delete, implementation moved into
1686 auto_or_unknown_language::language_arch_info.
1687 (class auto_or_unknown_language): New class, member functions
1688 copied from unknown_language class, with some updates.
1689 (class unknown_language): Most member functions moved into
1690 auto_or_unknown_language class. Inherit from
1691 auto_or_unknown_language class.
1692 (class auto_language): Inherit from auto_or_unknown_language.
1693 Delete most member functions.
1694
1695 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1696
1697 * stabsread.c (read_member_functions): Remove gdb_assert.
1698
1699 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1700
1701 * gdbtypes.c (init_complex_type): Check target type name.
1702
1703 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1704
1705 * target-debug.h (target_debug_print_struct_target_ops_p):
1706 Remove.
1707 (target_debug_print_async_callback_ftype_p): Remove.
1708 (target_debug_print_struct_trace_state_variable_p): Remove.
1709 (target_debug_print_struct_traceframe_info_p): Remove.
1710 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1711 (target_debug_print_enum_btrace_format): Remove.
1712 (target_debug_print_enum_info_proc_what): Remove.
1713 (target_debug_print_thread_info_pp): Remove.
1714
1715 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * target.h (struct target_ops) <make_corefile_notes>:
1718 Change return type to unique pointer.
1719 * target.c (dummy_make_corefile_notes): Likewise.
1720 * exec.c (struct exec_target) <make_corefile_notes>:
1721 Likewise.
1722 (exec_target::make_corefile_notes): Likewise.
1723 * procfs.c (class procfs_target) <make_corefile_notes>:
1724 Likewise.
1725 (procfs_do_thread_registers): Adjust to unique pointer.
1726 (struct procfs_corefile_thread_data): Add constructor.
1727 <note_data>: Change type to unique pointer.
1728 (procfs_corefile_thread_callback): Adjust to unique pointer.
1729 (procfs_target::make_corefile_notes): Change return type to
1730 unique pointer.
1731 * target-delegates.c: Re-generate.
1732 * gcore.c (write_gcore_file_1): Adjust.
1733 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1734 New.
1735
1736 2020-10-22 Tom de Vries <tdevries@suse.de>
1737
1738 * block.c (find_block_in_blockvector): Make sure the returned block
1739 contains pc.
1740
1741 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1742
1743 PR gdb/26693
1744 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1745 parameter.
1746 (load_cu): Pass existing CU.
1747 (process_imported_unit_die): Likewise.
1748 (follow_die_offset): Likewise.
1749
1750 2020-10-22 Luis Machado <luis.machado@linaro.org>
1751
1752 * corelow.c (core_target::xfer_partial): Also check for an empty
1753 m_core_unavailable_mappings vector.
1754
1755 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1758 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1759 * f-exp.y (arglist): Allow for a series of subranges.
1760 (subrange): Add cases for subranges with strides.
1761 * f-lang.c (value_f90_subarray): Catch use of array strides and
1762 throw an error.
1763 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1764
1765 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * expprint.c (print_subexp_standard): Change enum range_type to
1768 range_flag and rename variables to match.
1769 (dump_subexp_body_standard): Likewise.
1770 * expression.h (enum range_type): Rename to...
1771 (enum range_flag): ...this.
1772 (range_types): Rename to...
1773 (range_flags): ...this.
1774 * f-lang.c (value_f90_subarray): Change enum range_type to
1775 range_flag and rename variables to match.
1776 * parse.c (operator_length_standard): Likewise.
1777 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1778 range_type to range_flag.
1779 * rust-lang.c (rust_evaluate_funcall): Likewise.
1780 (rust_range): Likewise.
1781 (rust_compute_range): Likewise.
1782 (rust_subscript): Likewise.
1783
1784 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * expprint.c (print_subexp_standard): Update to reflect changes to
1787 enum range_type.
1788 (dump_subexp_body_standard): Likewise.
1789 * expression.h (enum range_type): Convert to a bit field enum, and
1790 make the enum unsigned.
1791 * f-exp.y (subrange): Update to reflect changes to enum
1792 range_type.
1793 * f-lang.c (value_f90_subarray): Likewise.
1794 * parse.c (operator_length_standard): Likewise.
1795 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1796 * rust-lang.c (rust_range): Likewise.
1797 (rust_compute_range): Likewise.
1798 (rust_subscript): Likewise.
1799
1800 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1803 (displaced_step_in_progress): Fix comment.
1804
1805 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1808 * gdbarch.c: Re-generate.
1809 * gdbarch.h: Re-generate.
1810 * gcore.c (write_gcore_file_1): Adjust.
1811 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1812 constructor.
1813 <note_data>: Change type to unique pointer.
1814 <abort_iteration>: Change type to bool.
1815 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1816 (fbsd_collect_thread_registers): Return void, adjust.
1817 (struct fbsd_corefile_thread_data): Add construtor.
1818 <note_data>: Change type to unique pointer.
1819 (fbsd_corefile_thread): Adjust.
1820 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1821 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1822 to unique pointer, adjust.
1823 (struct linux_collect_regset_section_cb_data): Add constructor.
1824 <note_data>: Change type to unique pointer.
1825 <abort_iteration>: Change type to bool.
1826 (linux_collect_thread_registers): Return void, adjust.
1827 (struct linux_corefile_thread_data): Add constructor.
1828 <note_data>: Change type to unique pointer.
1829 (linux_corefile_thread): Adjust.
1830 (linux_make_corefile_notes): Return unique pointer, adjust.
1831
1832 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1835 * gdbarch.c: Re-generate.
1836 * gdbarch.h: Re-generate.
1837 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1838 bool.
1839 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1840 Likewise.
1841 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1842 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1843 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1844 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1845
1846 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * gdbarch.sh: Make generated predicates return bool.
1849 * gdbarch.c: Re-generate.
1850 * gdbarch.h: Re-generate.
1851
1852 2020-10-20 Tom Tromey <tom@tromey.com>
1853
1854 * varobj-iter.h (struct varobj_item): Remove typedef.
1855
1856 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * infrun.c (currently_stepping): Change int to bool
1859 (maybe_software_singlestep): Likewise.
1860 (show_stop_on_solib_events): Likewise.
1861 (stepping_past_nonsteppable_watchpoint): Likewise.
1862 (displaced_step_in_progress_any_inferior): Likewise.
1863 (displaced_step_in_progress_thread): Likewise.
1864 (keep_going_stepped_thread): Likewise.
1865 (thread_still_needs_step_over): Likewise.
1866 (start_step_over): Likewise.
1867 (do_target_resume): Likewise.
1868 (resume_1): Likewise.
1869 (clear_proceed_status): Likewise.
1870 (thread_still_needs_step_over_bp): Likewise.
1871 (proceed): Likewise.
1872 (switch_back_to_stepped_thread): Likewise.
1873 (adjust_pc_after_break): Likewise.
1874 (stepped_in_from): Likewise.
1875 (handle_stop_requested): Likewise.
1876 (handle_syscall_event): Likewise.
1877 (handle_no_resumed): Likewise.
1878 (handle_inferior_event): Likewise.
1879 (finish_step_over): Likewise.
1880 (handle_signal_stop): Likewise.
1881 (process_event_stop_test): Likewise.
1882
1883 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * infrun.c (get_displaced_stepping_state): Fix comment.
1886
1887 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1888
1889 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1890
1891 2020-10-19 Tom Tromey <tromey@adacore.com>
1892
1893 PR tui/26719
1894 * tui/tui-winsource.h (struct tui_source_window_base)
1895 <refresh_window>: Rename from refresh_pad.
1896 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1897 Rename from refresh_pad.
1898 (tui_source_window_base::show_source_content)
1899 (tui_source_window_base::do_scroll_horizontal): Update.
1900
1901 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1902
1903 * thread.c (_initialize_thread): Fine-tune the help text of
1904 'info threads'.
1905
1906 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1907
1908 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1909
1910 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1911
1912 * breakpoint.c (handle_jit_event): Add an argument, change how
1913 `jit_event_handler` is called.
1914
1915 2020-10-17 Tom Tromey <tom@tromey.com>
1916
1917 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1918 (scan_xcoff_symtab): Update.
1919 * psymtab.h (class psymtab_storage) <global_psymbols,
1920 static_psymbols, current_global_psymbols,
1921 current_static_psymbols>: Remove.
1922 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1923 (match_partial_symbol, lookup_partial_symbol): Update.
1924 (print_partial_symbols): Change parameters.
1925 (dump_psymtab, recursively_search_psymtabs)
1926 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1927 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1928 (concat): Remove.
1929 (end_psymtab_common): Simplify.
1930 (append_psymbol_to_list): Change parameters.
1931 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1932 (init_psymbol_list): Simplify.
1933 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1934 * psympriv.h (struct partial_symtab) <empty>: New method.
1935 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1936 Remove.
1937 <global_psymbols, static_psymbols>: New members.
1938 <add_psymbol>: New methods.
1939 (add_psymbol_to_list): Don't declare.
1940 (psymbol_placement): Move earlier.
1941 * mdebugread.c (parse_partial_symbols): Update.
1942 (handle_psymbol_enumerators): Change parameters.
1943 (mdebug_expand_psymtab): Update.
1944 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1945 (add_partial_symbol): Update.
1946 * dwarf2/index-write.c (write_psymbols): Change parameters.
1947 (write_one_signatured_type): Update.
1948 (recursively_count_psymbols): Update.
1949 (recursively_write_psymbols): Update.
1950 (class debug_names) <recursively_write_psymbols>: Update.
1951 <write_psymbols>: Change parameters.
1952 <write_one_signatured_type>: Update.
1953 * dbxread.c (read_dbx_symtab): Update.
1954 (dbx_end_psymtab): Use partial_symtab::empty.
1955 * ctfread.c (struct ctf_context) <pst>: New member.
1956 (create_partial_symtab): Set it.
1957 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1958 (scan_partial_symbols): Use the psymtab's context. Update.
1959
1960 2020-10-17 Tom Tromey <tom@tromey.com>
1961
1962 * valprint.c (generic_value_print): Remove comment.
1963 * m2-valprint.c (m2_value_print_inner): Remove comment.
1964 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1965 type.
1966
1967 2020-10-17 Tom de Vries <tdevries@suse.de>
1968
1969 PR symtab/26317
1970 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1971 symbol main.
1972
1973 2020-10-14 Tom de Vries <tdevries@suse.de>
1974
1975 PR gdb/26733
1976 * solib.c (solib_contains_address_p): Handle
1977 'solib->sections == nullptr'.
1978
1979 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1980
1981 PR gdb/26642
1982 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1983 target can't do async.
1984 * target.c (target_wait): Assert that we don't pass
1985 TARGET_WNOHANG to a target that can't async.
1986
1987 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1988
1989 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1990 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1991 * alpha-bsd-nat.c: Adjust include.
1992 * alpha-bsd-tdep.h: Adjust comment.
1993 * alpha-nbsd-tdep.c: Rename to ...
1994 * alpha-netbsd-tdep.c: ... this, adjust include.
1995 * amd64-nbsd-nat.c: Rename to ...
1996 * amd64-netbsd-nat.c: ... this, adjust include.
1997 * amd64-nbsd-tdep.c: Rename to ...
1998 * amd64-netbsd-tdep.c: ... this, adjust include.
1999 * amd64-tdep.h: Adjust include.
2000 * arm-nbsd-nat.c: Rename to ...
2001 * arm-netbsd-nat.c: ... this, adjust include.
2002 * arm-nbsd-tdep.c: Rename to ...
2003 * arm-netbsd-tdep.c: ... this, adjust include.
2004 * arm-nbsd-tdep.h: Rename to ...
2005 * arm-netbsd-tdep.h: ... this, adjust include.
2006 * configure.nat: Adjust file lists.
2007 * configure.tgt: Likewise.
2008 * hppa-nbsd-nat.c: Rename to ...
2009 * hppa-netbsd-nat.c: ... this, adjust include.
2010 * hppa-nbsd-tdep.c: Rename to ...
2011 * hppa-netbsd-tdep.c: ... this, adjust include.
2012 * i386-nbsd-nat.c: Rename to ...
2013 * i386-netbsd-nat.c: ... this, adjust include.
2014 * i386-nbsd-tdep.c: Rename to ...
2015 * i386-netbsd-tdep.c: ... this, adjust include.
2016 * m68k-bsd-nat.c: Adjust include.
2017 * mips-nbsd-nat.c: Rename to ...
2018 * mips-netbsd-nat.c: ... this, adjust include.
2019 * mips-nbsd-tdep.c: Rename to ...
2020 * mips-netbsd-tdep.c: ... this, adjust include.
2021 * mips-nbsd-tdep.h: Rename to ...
2022 * mips-netbsd-tdep.h: ... this.
2023 * nbsd-nat.c: Rename to ...
2024 * netbsd-nat.c: ... this, adjust include.
2025 * nbsd-nat.h: Rename to ...
2026 * netbsd-nat.h: ... this, adjust include.
2027 * nbsd-tdep.c: Rename to ...
2028 * netbsd-tdep.c: ... this, adjust include.
2029 * nbsd-tdep.h: Rename to ...
2030 * netbsd-tdep.h: ... this.
2031 * ppc-nbsd-nat.c: Rename to ...
2032 * ppc-netbsd-nat.c: ... this, adjust include.
2033 * ppc-nbsd-tdep.c: Rename to ...
2034 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2035 * ppc-nbsd-tdep.h: Rename to ...
2036 * ppc-netbsd-tdep.h: ... this.
2037 * sh-nbsd-nat.c: Rename to ...
2038 * sh-netbsd-nat.c: ... this, adjust include.
2039 * sh-nbsd-tdep.c: Rename to ...
2040 * sh-netbsd-tdep.c: ... this, adjust include.
2041 * sparc-nbsd-nat.c: Rename to ...
2042 * sparc-netbsd-nat.c: ... this.
2043 * sparc-nbsd-tdep.c: Rename to ...
2044 * sparc-netbsd-tdep.c: ... this, adjust include.
2045 * sparc64-nbsd-nat.c: Rename to ...
2046 * sparc64-netbsd-nat.c: ... this.
2047 * sparc64-nbsd-tdep.c: Rename to ...
2048 * sparc64-netbsd-tdep.c: ... this, adjust include.
2049 * sparc64-tdep.h: Adjust comment.
2050 * vax-bsd-nat.c: Adjust include.
2051 * vax-nbsd-tdep.c: Rename to ...
2052 * vax-netbsd-tdep.c: ... this, adjust include.
2053
2054 2020-10-12 Tom Tromey <tom@tromey.com>
2055
2056 * target.h (struct target_ops) <get_section_table>: Update.
2057 (target_get_section_table): Update.
2058 * target.c (target_get_section_table, target_section_by_addr)
2059 (memory_xfer_partial_1): Update.
2060 * target-section.h (target_section_table): Now an alias.
2061 * target-delegates.c: Rebuild.
2062 * target-debug.h (target_debug_print_target_section_table_p):
2063 Rename from target_debug_print_struct_target_section_table_p.
2064 * symfile.c (build_section_addr_info_from_section_table): Update.
2065 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2066 * solib-svr4.c (scan_dyntag): Update.
2067 * solib-dsbt.c (scan_dyntag): Update.
2068 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2069 Update.
2070 * record-full.c (record_full_core_target::xfer_partial): Update.
2071 * progspace.h (struct program_space) <target_sections>: Update.
2072 * exec.h (print_section_info): Update.
2073 * exec.c (exec_target::close, build_section_table)
2074 (add_target_sections, add_target_sections_of_objfile)
2075 (remove_target_sections, exec_on_vfork)
2076 (section_table_available_memory)
2077 (section_table_xfer_memory_partial)
2078 (exec_target::get_section_table, exec_target::xfer_partial)
2079 (print_section_info, set_section_command)
2080 (exec_set_section_address, exec_target::has_memory): Update.
2081 * corelow.c (core_target::build_file_mappings)
2082 (core_target::xfer_partial, core_target::info_proc_mappings)
2083 (core_target::info_proc_mappings): Update.
2084 * bfd-target.c (class target_bfd): Update
2085
2086 2020-10-12 Tom Tromey <tom@tromey.com>
2087
2088 * progspace.c (program_space::~program_space): Don't call
2089 clear_section_table.
2090 * exec.h (clear_section_table): Don't declare.
2091 * exec.c (exec_target::close): Update.
2092 (clear_section_table): Remove.
2093
2094 2020-10-12 Tom Tromey <tom@tromey.com>
2095
2096 * exec.c (add_target_sections_of_objfile): Simplify.
2097
2098 2020-10-12 Tom Tromey <tom@tromey.com>
2099
2100 * solib.c (solib_map_sections): Update.
2101 * record-full.c (record_full_core_open_1): Update.
2102 * exec.h (build_section_table): Return a target_section_table.
2103 * exec.c (exec_file_attach): Update.
2104 (build_section_table): Return a target_section_table.
2105 * corelow.c (core_target::core_target): Update.
2106 * bfd-target.c (target_bfd::target_bfd): Update.
2107
2108 2020-10-12 Tom Tromey <tom@tromey.com>
2109
2110 * target.c (target_section_by_addr, memory_xfer_partial_1):
2111 Update.
2112 * target-section.h (struct target_section_table): Use
2113 std::vector.
2114 * symfile.h (build_section_addr_info_from_section_table): Take a
2115 target_section_table.
2116 * symfile.c (build_section_addr_info_from_section_table): Take a
2117 target_section_table.
2118 * solist.h (struct so_list) <sections>: Change type.
2119 <sections_end>: Remove.
2120 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2121 (solib_contains_address_p): Update.
2122 * solib-svr4.c (scan_dyntag): Update.
2123 * solib-dsbt.c (scan_dyntag): Update.
2124 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2125 Update.
2126 * record-full.c (record_full_core_start, record_full_core_end):
2127 Remove.
2128 (record_full_core_sections): New global.
2129 (record_full_core_open_1, record_full_core_target::xfer_partial):
2130 Update.
2131 * exec.h (build_section_table, section_table_xfer_memory_partial)
2132 (add_target_sections): Take a target_section_table.
2133 * exec.c (exec_file_attach, clear_section_table): Update.
2134 (resize_section_table): Remove.
2135 (build_section_table, add_target_sections): Take a
2136 target_section_table.
2137 (add_target_sections_of_objfile, remove_target_sections)
2138 (exec_on_vfork): Update.
2139 (section_table_available_memory): Take a target_section_table.
2140 (section_table_read_available_memory): Update.
2141 (section_table_xfer_memory_partial): Take a target_section_table.
2142 (print_section_info, set_section_command)
2143 (exec_set_section_address, exec_target::has_memory): Update.
2144 * corelow.c (class core_target) <m_core_section_table,
2145 m_core_file_mappings>: Remove braces.
2146 <~core_target>: Remove.
2147 (core_target::core_target): Update.
2148 (core_target::~core_target): Remove.
2149 (core_target::build_file_mappings)
2150 (core_target::xfer_memory_via_mappings)
2151 (core_target::xfer_partial, core_target::info_proc_mappings):
2152 Update.
2153 * bfd-target.c (target_bfd::xfer_partial): Update.
2154 (target_bfd::target_bfd): Update.
2155 (target_bfd::~target_bfd): Remove.
2156
2157 2020-10-12 Tom Tromey <tom@tromey.com>
2158
2159 * target.h (struct target_section, struct target_section_table):
2160 Move to target-section.h.
2161 * target-section.h: New file.
2162
2163 2020-10-12 Pedro Alves <pedro@palves.net>
2164
2165 PR exp/26602
2166 * valops.c (struct struct_field_searcher): New.
2167 (update_search_result): Rename to ...
2168 (struct_field_searcher::update_result): ... this. Simplify
2169 prototype. Record all found fields.
2170 (do_search_struct_field): Rename to ...
2171 (struct_field_searcher::search): ... this. Simplify prototype.
2172 Maintain stack of visited baseclass path. Call update_result for
2173 fields too. Keep searching fields in baseclasses instead of
2174 stopping at the first found field.
2175 (search_struct_field): Use struct_field_searcher. When looking
2176 for fields, report ambiguous access attempts.
2177
2178 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * frame.c (inside_main_func): Check full symbols as well as
2181 minimal symbols.
2182
2183 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2184
2185 * ada-lang.c (advance_wild_match): Rewrite the function's
2186 description. Change the type of target0, t0 and t1 to char.
2187
2188 2020-10-09 Tom Tromey <tromey@adacore.com>
2189
2190 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2191
2192 2020-10-09 Tom Tromey <tromey@adacore.com>
2193
2194 * ada-lang.h (ada_encode): Return std::string.
2195 * ada-lang.c (ada_encode_1): Return std::string.
2196 (ada_encode): Likewise.
2197 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2198 Update.
2199 * ada-exp.y (block_lookup, write_var_or_type): Update.
2200
2201 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2202
2203 PR exp/26714
2204 * printcmd.c (print_formatted): Handle void results as
2205 unformatted prints.
2206
2207 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * arch/aarch32.c (aarch32_create_target_description): Release the
2210 target_desc_up as late as possible.
2211 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2212 * arch/amd64.c (amd64_create_target_description): Likewise.
2213 * arch/arc.c (arc_create_target_description): Return a
2214 target_desc_up, don't release it.
2215 * arch/arc.h (arc_create_target_description): Update declaration.
2216 (arc_lookup_target_description): Move target_desc_up into the
2217 cache, and return a borrowed pointer.
2218 * arch/arm.c (arm_create_target_description): Release the
2219 target_desc_up as late as possible.
2220 * arch/i386.c (i386_create_target_description): Likewise.
2221 * arch/riscv.h (riscv_create_target_description): Update
2222 declaration to match definition.
2223 * arch/tic6x.c (tic6x_create_target_description): Release the
2224 target_desc_up as late as possible.
2225
2226 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2229 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2230
2231 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2232
2233 * source.c (directory_command): Notify observers that "directories"
2234 parameter has changed.
2235
2236 2020-10-08 Tom Tromey <tom@tromey.com>
2237
2238 * cli/cli-cmds.c (print_disassembly): Style function name and
2239 addresses. Add _() wrappers.
2240
2241 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2242
2243 * NEWS: Mention ARC support in GDBserver.
2244
2245 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * arch/aarch32.c (aarch32_create_target_description): Release
2248 unique_ptr returned from allocate_target_description.
2249 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2250 * arch/amd64.c (amd64_create_target_description): Likewise.
2251 * arch/arc.c (arc_create_target_description): Likewise.
2252 * arch/arm.c (arm_create_target_description): Likewise.
2253 * arch/i386.c (i386_create_target_description): Likewise.
2254 * arch/riscv.c (riscv_create_target_description): Update return
2255 type. Handle allocate_target_description returning a unique_ptr.
2256 (riscv_lookup_target_description): Update to handle unique_ptr.
2257 * arch/tic6x.c (tic6x_create_target_description): Release
2258 unique_ptr returned from allocate_target_description.
2259 * features/microblaze-with-stack-protect.c: Regenerate.
2260 * features/microblaze.c: Regenerate.
2261 * features/mips-dsp-linux.c: Regenerate.
2262 * features/mips-linux.c: Regenerate.
2263 * features/mips64-dsp-linux.c: Regenerate.
2264 * features/mips64-linux.c: Regenerate.
2265 * features/nds32.c: Regenerate.
2266 * features/nios2.c: Regenerate.
2267 * features/or1k.c: Regenerate.
2268 * features/rs6000/powerpc-32.c: Regenerate.
2269 * features/rs6000/powerpc-32l.c: Regenerate.
2270 * features/rs6000/powerpc-403.c: Regenerate.
2271 * features/rs6000/powerpc-403gc.c: Regenerate.
2272 * features/rs6000/powerpc-405.c: Regenerate.
2273 * features/rs6000/powerpc-505.c: Regenerate.
2274 * features/rs6000/powerpc-601.c: Regenerate.
2275 * features/rs6000/powerpc-602.c: Regenerate.
2276 * features/rs6000/powerpc-603.c: Regenerate.
2277 * features/rs6000/powerpc-604.c: Regenerate.
2278 * features/rs6000/powerpc-64.c: Regenerate.
2279 * features/rs6000/powerpc-64l.c: Regenerate.
2280 * features/rs6000/powerpc-7400.c: Regenerate.
2281 * features/rs6000/powerpc-750.c: Regenerate.
2282 * features/rs6000/powerpc-860.c: Regenerate.
2283 * features/rs6000/powerpc-altivec32.c: Regenerate.
2284 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2285 * features/rs6000/powerpc-altivec64.c: Regenerate.
2286 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2287 * features/rs6000/powerpc-e500.c: Regenerate.
2288 * features/rs6000/powerpc-e500l.c: Regenerate.
2289 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2290 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2291 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2292 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2293 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2294 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2295 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2296 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2297 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2298 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2299 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2300 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2301 * features/rs6000/powerpc-vsx32.c: Regenerate.
2302 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2303 * features/rs6000/powerpc-vsx64.c: Regenerate.
2304 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2305 * features/rs6000/rs6000.c: Regenerate.
2306 * features/rx.c: Regenerate.
2307 * features/s390-gs-linux64.c: Regenerate.
2308 * features/s390-linux32.c: Regenerate.
2309 * features/s390-linux32v1.c: Regenerate.
2310 * features/s390-linux32v2.c: Regenerate.
2311 * features/s390-linux64.c: Regenerate.
2312 * features/s390-linux64v1.c: Regenerate.
2313 * features/s390-linux64v2.c: Regenerate.
2314 * features/s390-te-linux64.c: Regenerate.
2315 * features/s390-tevx-linux64.c: Regenerate.
2316 * features/s390-vx-linux64.c: Regenerate.
2317 * features/s390x-gs-linux64.c: Regenerate.
2318 * features/s390x-linux64.c: Regenerate.
2319 * features/s390x-linux64v1.c: Regenerate.
2320 * features/s390x-linux64v2.c: Regenerate.
2321 * features/s390x-te-linux64.c: Regenerate.
2322 * features/s390x-tevx-linux64.c: Regenerate.
2323 * features/s390x-vx-linux64.c: Regenerate.
2324 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2325 from allocate_target_description.
2326 * target-descriptions.c (allocate_target_description): Update
2327 return type.
2328 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2329 allocate_target_description.
2330
2331 2020-10-07 Tom Tromey <tromey@adacore.com>
2332
2333 * unittests/search-memory-selftests.c: New file.
2334 * Makefile.in (SELFTESTS_SRCS): Add
2335 unittests/search-memory-selftests.c.
2336
2337 2020-10-07 Tom Tromey <tromey@adacore.com>
2338
2339 PR gdb/16930:
2340 * findcmd.c (_initialize_mem_search): Mention that the range is
2341 inclusive.
2342
2343 2020-10-07 Tom Tromey <tromey@adacore.com>
2344
2345 * target.h (simple_search_memory): Don't declare.
2346 * target.c (simple_search_memory): Move to gdbsupport.
2347 (default_search_memory): Update.
2348 * remote.c (remote_target::search_memory): Update.
2349
2350 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2351
2352 * Makefile.in (COMPILE): Add CXXFLAGS.
2353 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2354 (check-headers): Add CXXFLAGS.
2355
2356 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2357
2358 * arc-linux-tdep.h: New file.
2359 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2360 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2361 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2362 arc_linux_gregset, arc_linux_v2_regset,
2363 arc_linux_iterate_over_regset_sections,
2364 arc_linux_core_read_description): Implement.
2365 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2366 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2367 (arc_gdbarch_features_create): Add.
2368 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2369
2370 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2371
2372 * arch/arc.h: Rename "arc_gdbarch_features" to
2373 "arc_arch_features".
2374 * arc-tdep.h: Likewise.
2375 * arc-tdep.c: Likewise.
2376
2377 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2378
2379 * infcmd.c (attach_command): Remove the redundant call to
2380 `clear_proceed_status`.
2381
2382 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2383
2384 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2385
2386 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2387
2388 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2389 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2390 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2391
2392 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2395 (_initialize_break_catch_sig): Don't allocate array.
2396
2397 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * symtab.c (find_pc_line): Return unmapped addresses when the
2400 requested address is also unmapped.
2401
2402 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2403
2404 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2405 tui/tui-out.h.
2406
2407 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2408
2409 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2410 type::is_vector instead of TYPE_VECTOR.
2411
2412 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2413
2414 * auto-load.c (auto_load_objfile_script_1): Don't use
2415 debugfile_holder as temporary variable when stripping drive
2416 letter.
2417
2418 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2419
2420 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2421 Add TYPE_CODE_COMPLEX.
2422 (amd64_windows_return_value): Fix types returned via XMM0.
2423
2424 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2425
2426 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2427 AArch64/ARM maintainers.
2428
2429 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * NEWS: Mention set/show debug event-loop.
2432
2433 2020-10-02 Tom Tromey <tromey@adacore.com>
2434
2435 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2436 REG_EXTENDED.
2437
2438 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2441 * procfs.c (procfs_inferior_created): Remove.
2442 (_initialize_procfs): Don't register procfs_inferior_created.
2443
2444 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * async-event.c (invoke_async_signal_handlers): Add debug
2447 print.
2448 (check_async_event_handlers): Likewise.
2449 * event-top.c (show_debug_event_loop): New function.
2450 (_initialize_event_top): Register "set debug event-loop"
2451 setting.
2452
2453 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2456 * debug.h: Remove.
2457 * infrun.c: Include gdbsupport/common-debug.h.
2458 * linux-nat.c: Likewise.
2459
2460 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * async-event.h (create_async_signal_handler): Add name
2463 parameter.
2464 (create_async_event_handler): Likewise.
2465 * async-event.c (struct async_signal_handler) <name>: New field.
2466 (struct async_event_handler) <name>: New field.
2467 (create_async_signal_handler): Assign name.
2468 (create_async_event_handler): Assign name.
2469 * event-top.c (async_init_signals): Pass name when creating
2470 handler.
2471 * infrun.c (_initialize_infrun): Likewise.
2472 * record-btrace.c (record_btrace_push_target): Likewise.
2473 * record-full.c (record_full_open): Likewise.
2474 * remote-notif.c (remote_notif_state_allocate): Likewise.
2475 * remote.c (remote_target::open_1): Likewise.
2476 * tui/tui-win.c (tui_initialize_win): Likewise.
2477
2478 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2479
2480 * async-event.c (initialize_async_signal_handlers): Pass name to
2481 add_file_handler
2482 * event-top.c (ui_register_input_event_handler): Likewise.
2483 * linux-nat.c (linux_nat_target::async): Likewise.
2484 * run-on-main-thread.c (_initialize_run_on_main_thread):
2485 Likewise
2486 * ser-base.c (reschedule): Likewise.
2487 (ser_base_async): Likewise.
2488 * tui/tui-io.c: Likewise.
2489 * top.h (struct ui) <num>: New field.
2490 * top.c (highest_ui_num): New variable.
2491 (ui::ui): Initialize num.
2492
2493 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * observable.h <inferior_created>: Remove parameters. Update all
2496 listeners.
2497 * inferior.h (post_create_inferior): Remove target parameter.
2498 Update all callers.
2499
2500 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2501
2502 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2503 and DW_MACRO_undef_strx.
2504 (dwarf_decode_macros): Likewise
2505 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2506 which is the value of DW_AT_str_offsets_base.
2507 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2508 str_offsets_base.
2509
2510 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2511
2512 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2513
2514 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2515
2516 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2517 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2518
2519 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2520
2521 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2522
2523 2020-09-30 Tom de Vries <tdevries@suse.de>
2524
2525 PR symtab/26683
2526 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2527
2528 2020-09-30 Tom Tromey <tromey@adacore.com>
2529
2530 * dwarf2/read.c (handle_variant): Use constant_value.
2531
2532 2020-09-29 Tom Tromey <tom@tromey.com>
2533
2534 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2535 (read_file_scope, dwarf2_get_pc_bounds)
2536 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2537 (read_structure_type, handle_struct_member_die)
2538 (read_enumeration_type, read_array_type, read_set_type)
2539 (read_tag_pointer_type, read_tag_reference_type)
2540 (read_subroutine_type, read_base_type, read_subrange_type)
2541 (read_full_die_1, partial_die_info::read)
2542 (partial_die_info::read, by, new_symbol)
2543 (dwarf2_const_value_data, dwarf2_const_value_attr)
2544 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2545 (prepare_one_comp_unit): Update.
2546 * dwarf2/attribute.h (DW_UNSND): Remove.
2547
2548 2020-09-29 Tom Tromey <tom@tromey.com>
2549
2550 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2551 (read_subroutine_type, partial_die_info::read)
2552 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2553 (dwarf2_add_member_fn): Update.
2554 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2555 * dwarf2/attribute.c (attribute::as_boolean): New method.
2556
2557 2020-09-29 Tom Tromey <tom@tromey.com>
2558
2559 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2560 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2561 method.
2562 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2563
2564 2020-09-29 Tom Tromey <tom@tromey.com>
2565
2566 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2567 the attribute's form.
2568
2569 2020-09-29 Tom Tromey <tom@tromey.com>
2570
2571 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2572 (dwarf2_add_member_fn): Update.
2573 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2574 * dwarf2/attribute.c (attribute::defaulted): New method, from
2575 is_valid_DW_AT_defaulted.
2576
2577 2020-09-29 Tom Tromey <tom@tromey.com>
2578
2579 * dwarf2/read.c (dw2_get_file_names_reader)
2580 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2581 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2582 (dwarf2_symbol_mark_computed): Use as_unsigned.
2583 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2584 method.
2585 <form_is_section_offset>: Update comment.
2586
2587 2020-09-29 Tom Tromey <tom@tromey.com>
2588
2589 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2590 dwarf2_default_access_attribute. Look up attribute.
2591 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2592 Update.
2593
2594 2020-09-29 Tom Tromey <tom@tromey.com>
2595
2596 * dwarf2/read.c (skip_one_die): Update.
2597 (read_full_die_1): Change how reprocessing is done.
2598 (partial_die_info::read): Update.
2599 (read_attribute_value): Remove need_reprocess parameter.
2600 (read_attribute): Likewise.
2601 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2602 New method.
2603
2604 2020-09-29 Tom Tromey <tom@tromey.com>
2605
2606 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2607 (dwarf2_const_value_attr, dump_die_shallow)
2608 (dwarf2_fetch_constant_bytes): Update.
2609 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2610 comment.
2611 <set_address>: New method.
2612 (DW_ADDR): Remove.
2613 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2614 (attribute::as_string, attribute::as_address): Add assert.
2615
2616 2020-09-29 Tom Tromey <tom@tromey.com>
2617
2618 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2619 (read_attribute_reprocess, read_attribute_value): Update.
2620 (read_attribute): Clear requires_reprocessing.
2621 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2622 form_requires_reprocessing>: New methods.
2623 <string_init>: Clear requires_reprocessing.
2624 <set_unsigned_reprocess>: New method.
2625 <name>: Shrink by one bit.
2626 <requires_reprocessing>: New member.
2627 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2628 method.
2629
2630 2020-09-29 Tom Tromey <tom@tromey.com>
2631
2632 * dwarf2/read.c (read_attribute_value): Update.
2633 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2634 set_unsigned>: New methods.
2635 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2636
2637 2020-09-29 Tom Tromey <tom@tromey.com>
2638
2639 * dwarf2/read.c (get_alignment, read_array_order)
2640 (read_attribute_value, dwarf2_const_value_attr)
2641 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2642 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2643 New methods.
2644 (DW_SND): Remove.
2645
2646 2020-09-29 Tom Tromey <tom@tromey.com>
2647
2648 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2649 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2650 Update.
2651 * dwarf2/attribute.h (struct attribute) <as_signature,
2652 set_signature>: New methods.
2653 (DW_SIGNATURE): Remove.
2654
2655 2020-09-29 Tom Tromey <tom@tromey.com>
2656
2657 * dwarf2/read.c (read_call_site_scope)
2658 (handle_data_member_location, dwarf2_add_member_fn)
2659 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2660 (partial_die_info::read, read_attribute_value)
2661 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2662 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2663 (dwarf2_symbol_mark_computed): Update.
2664 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2665 methods.
2666 (DW_BLOCK): Remove.
2667 * dwarf2/attribute.c (attribute::form_is_block): Add
2668 DW_FORM_data16.
2669
2670 2020-09-29 Tom Tromey <tom@tromey.com>
2671
2672 * dwarf2/read.c (read_cutu_die_from_dwo)
2673 (read_attribute_reprocess, read_attribute_value, read_attribute)
2674 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2675 (dwarf2_fetch_constant_bytes): Update.
2676 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2677 <set_string_noncanonical, set_string_canonical>: New methods.
2678 <string_is_canonical>: Update comment.
2679 <canonical_string_p>: Add assert.
2680 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2681 * dwarf2/attribute.c (attribute::form_is_string): New method.
2682 (attribute::string): Use it.
2683
2684 2020-09-29 Tom Tromey <tom@tromey.com>
2685
2686 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2687 (dump_die_shallow): Use canonical_string_p.
2688 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2689 method.
2690
2691 2020-09-29 Tom Tromey <tom@tromey.com>
2692
2693 * dwarf2/read.c (partial_die_info::read)
2694 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2695 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2696 attribute::as_string.
2697
2698 2020-09-29 Tom Tromey <tom@tromey.com>
2699
2700 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2701 DW_ADDR.
2702 (attribute::string): Don't use DW_STRING.
2703 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2704 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2705
2706 2020-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2709 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2710 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2711 * dwarf2/attribute.h (struct attribute): Rename methods.
2712 * dwarf2/attribute.c (attribute::as_address): Rename from
2713 value_as_address.
2714 (attribute::as_string): Rename from value_as_string.
2715
2716 2020-09-29 Tom Tromey <tom@tromey.com>
2717
2718 * dwarf2/read.c (partial_die_info::read) <case
2719 DW_AT_linkage_name>: Use value_as_string.
2720 (dwarf2_string_attr): Use value_as_string.
2721 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2722 method.
2723 * dwarf2/attribute.c (attribute::value_as_string): New method.
2724
2725 2020-09-29 Pedro Alves <pedro@palves.net>
2726
2727 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2728 defined before using '#pragma GCC diagnostic' instead of checking
2729 __clang__.
2730
2731 2020-09-28 Tom Tromey <tom@tromey.com>
2732
2733 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2734 (handle_signal_stop): Update.
2735 * procfs.c (procfs_target::insert_watchpoint): Update.
2736 * target.h (target_have_steppable_watchpoint): Now a function.
2737
2738 2020-09-28 Tom Tromey <tom@tromey.com>
2739
2740 * infrun.c (set_schedlock_func): Update.
2741 * target.h (target_can_lock_scheduler): Now a function.
2742
2743 2020-09-28 Tom Tromey <tom@tromey.com>
2744
2745 * inferior.h (class inferior) <has_execution>: Update.
2746 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2747 * valops.c (find_function_in_inferior)
2748 (value_allocate_space_in_inferior): Update.
2749 * top.c (kill_or_detach): Update.
2750 * target.c (target_preopen, set_target_permissions): Update.
2751 (target_has_execution_current): Remove.
2752 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2753 Update.
2754 * solib.c (update_solib_list, reload_shared_libraries): Update.
2755 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2756 * solib-dsbt.c (enable_break): Update.
2757 * score-tdep.c (score7_fetch_inst): Update.
2758 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2759 Update.
2760 * remote.c (remote_target::start_remote)
2761 (remote_target::remote_check_symbols, remote_target::open_1)
2762 (remote_target::remote_detach_1, remote_target::verify_memory)
2763 (remote_target::xfer_partial, remote_target::read_description)
2764 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2765 * record-full.c (record_full_open_1): Update.
2766 * record-btrace.c (record_btrace_target_open): Update.
2767 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2768 (value_nsstring): Update.
2769 * linux-thread-db.c (add_thread_db_info)
2770 (thread_db_find_new_threads_silently, check_thread_db_callback)
2771 (try_thread_db_load_1, record_thread): Update.
2772 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2773 Update.
2774 * linux-fork.c (checkpoint_command): Update.
2775 * infrun.c (set_non_stop, set_observer_mode)
2776 (check_multi_target_resumption, for_each_just_stopped_thread)
2777 (maybe_remove_breakpoints, normal_stop)
2778 (class infcall_suspend_state): Update.
2779 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2780 (info_program_command, attach_command): Update.
2781 * infcall.c (call_function_by_hand_dummy): Update.
2782 * inf-loop.c (inferior_event_handler): Update.
2783 * gcore.c (gcore_command, derive_heap_segment): Update.
2784 * exec.c (exec_file_command): Update.
2785 * eval.c (evaluate_subexp): Update.
2786 * compile/compile.c (compile_to_object): Update.
2787 * cli/cli-dump.c (restore_command): Update.
2788 * breakpoint.c (update_watchpoint)
2789 (update_inserted_breakpoint_locations)
2790 (insert_breakpoint_locations, get_bpstat_thread): Update.
2791 * target.h (target_has_execution): Remove macro.
2792 (target_has_execution_current): Don't declare.
2793 (target_has_execution): Rename from target_has_execution_1. Add
2794 argument default.
2795
2796 2020-09-28 Tom Tromey <tom@tromey.com>
2797
2798 * mi/mi-main.c (exec_reverse_continue)
2799 (mi_cmd_list_target_features): Update.
2800 * infrun.c (set_exec_direction_func): Update.
2801 * target.c (default_execution_direction): Update.
2802 * reverse.c (exec_reverse_once): Update.
2803 * target.h (target_can_execute_reverse): Now a function.
2804
2805 2020-09-28 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-regs.c (tui_get_register)
2808 (tui_data_window::show_registers): Update.
2809 * thread.c (scoped_restore_current_thread::restore)
2810 (scoped_restore_current_thread::scoped_restore_current_thread):
2811 Update.
2812 * regcache-dump.c (regcache_print): Update.
2813 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2814 Update.
2815 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2816 * mep-tdep.c (current_me_module, current_options): Update.
2817 * linux-thread-db.c (thread_db_load): Update.
2818 * infcmd.c (registers_info, info_vector_command)
2819 (info_float_command): Update.
2820 * ia64-tdep.c (ia64_frame_prev_register)
2821 (ia64_sigtramp_frame_prev_register): Update.
2822 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2823 * gcore.c (derive_stack_segment): Update.
2824 * frame.c (get_current_frame, has_stack_frames): Update.
2825 * findvar.c (language_defn::read_var_value): Update.
2826 * arm-tdep.c (arm_pc_is_thumb): Update.
2827 * target.c (target_has_registers): Rename from
2828 target_has_registers_1.
2829 * target.h (target_has_registers): Remove macro.
2830 (target_has_registers): Rename from target_has_registers_1.
2831
2832 2020-09-28 Tom Tromey <tom@tromey.com>
2833
2834 * windows-tdep.c (tlb_make_value): Update.
2835 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2836 * thread.c (scoped_restore_current_thread::restore)
2837 (scoped_restore_current_thread::scoped_restore_current_thread)
2838 (thread_command): Update.
2839 * stack.c (backtrace_command_1, frame_apply_level_command)
2840 (frame_apply_all_command, frame_apply_command): Update.
2841 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2842 Update.
2843 * gcore.c (derive_stack_segment): Update.
2844 * frame.c (get_current_frame, has_stack_frames): Update.
2845 * auxv.c (info_auxv_command): Update.
2846 * ada-tasks.c (ada_build_task_list): Update.
2847 * target.c (target_has_stack): Rename from target_has_stack_1.
2848 * target.h (target_has_stack): Remove macro.
2849 (target_has_stack): Rename from target_has_stack_1.
2850
2851 2020-09-28 Tom Tromey <tom@tromey.com>
2852
2853 * target.c (target_has_memory): Rename from target_has_memory_1.
2854 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2855 * thread.c (scoped_restore_current_thread::restore)
2856 (scoped_restore_current_thread::scoped_restore_current_thread):
2857 Update.
2858 * frame.c (get_current_frame, has_stack_frames): Update.
2859 * target.h (target_has_memory): Remove macro.
2860 (target_has_memory): Rename from target_has_memory_1.
2861
2862 2020-09-28 Tom Tromey <tom@tromey.com>
2863
2864 * target.c (target_has_all_memory_1): Remove.
2865 * target.h (target_has_all_memory): Remove define.
2866 (target_has_all_memory_1): Don't declare.
2867
2868 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2869
2870 * ser-base.c: Adjust comments formatting.
2871
2872 2020-09-27 Tom Tromey <tom@tromey.com>
2873
2874 PR tui/25342:
2875 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2876
2877 2020-09-27 Tom Tromey <tom@tromey.com>
2878
2879 PR tui/25342:
2880 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2881
2882 2020-09-27 Tom Tromey <tom@tromey.com>
2883
2884 * unittests/tui-selftests.c: Update.
2885 * tui/tui-winsource.h (struct tui_source_window_base)
2886 <extra_margin, show_line_number, refresh_pad>: New methods.
2887 <m_max_length, m_pad>: New members.
2888 (tui_copy_source_line): Update.
2889 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2890 first_col, line_width, ndigits parameters. Add length.
2891 (tui_source_window_base::show_source_line): Write to pad. Line
2892 number now 0-based.
2893 (tui_source_window_base::refresh_pad): New method.
2894 (tui_source_window_base::show_source_content): Write to pad. Call
2895 refresh_pad.
2896 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2897 not refill.
2898 (tui_source_window_base::update_exec_info): Call
2899 show_line_number.
2900 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2901 method.
2902 <m_digits>: New member.
2903 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2904 and m_max_length.
2905 (tui_source_window::show_line_number): New method.
2906 * tui/tui-io.h (tui_puts): Fix comment.
2907 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2908 m_max_length.
2909
2910 2020-09-27 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-winsource.c
2913 (tui_source_window_base::set_is_exec_point_at): Don't call
2914 show_source_line.
2915
2916 2020-09-27 Tom Tromey <tom@tromey.com>
2917
2918 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2919 method.
2920 <erase>: Update.
2921 <cursor_x, cursor_y>: Remove.
2922 <m_inner_window>: New member.
2923 (tui_py_window::rerender): Create inner window.
2924 (tui_py_window::output): Write to inner window.
2925
2926 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2927
2928 PR python/26586
2929 * cli/cli-script.c (execute_control_commands): don't set
2930 instream to nullptr here as this breaks the from_tty argument
2931 to gdb.execute in Python.
2932 (execute_user_command): set instream to nullptr here instead.
2933
2934 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * infrun.h (infrun_debug_printf): Fix formatting.
2937 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2938
2939 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2940
2941 * compile/compile-object-load.h (struct munmap_list): Add
2942 explicitly-defined move constructor.
2943
2944 2020-09-24 Tom Tromey <tromey@adacore.com>
2945
2946 PR tui/26638:
2947 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2948 method.
2949 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2950 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2951 (tui_prev_win): Rewrite.
2952
2953 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2954
2955 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2956 in WOW64 processes as SIGINT.
2957 * nat/windows-nat.h: Make wow64_process a shared variable.
2958 * windows-nat.c: Remove static wow64_process variable.
2959
2960 2020-09-23 Tom Tromey <tom@tromey.com>
2961
2962 PR symtab/25470:
2963 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2964 offset and bit size.
2965 * printcmd.c (print_scalar_formatted): Handle zero-length
2966 integer.
2967 (print_scalar_formatted): Use bit_size_differs_p.
2968 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2969 constant.
2970 (union type_specific): <int_stuff>: New member.
2971 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2972 methods.
2973 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2974 TYPE_SPECIFIC_FIELD.
2975 (recursive_dump_type, copy_type_recursive): Update.
2976 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2977 DW_AT_data_bit_offset.
2978
2979 2020-09-23 Tom Tromey <tom@tromey.com>
2980
2981 * utils.h (class gdb_argv): Add move operators.
2982 <append>: New methods.
2983 * compile/compile.c (build_argc_argv): Remove.
2984 (compile_args_argc): Remove.
2985 (compile_args_argv): Change type.
2986 (set_compile_args): Simplify.
2987 (append_args): Remove.
2988 (filter_args): Remove argcp parameter.
2989 (get_args): Return gdb_argv. Simplify.
2990 (compile_to_object): Update.
2991
2992 2020-09-23 Tom Tromey <tom@tromey.com>
2993
2994 * compile/compile-object-run.c (do_module_cleanup)
2995 <~do_module_cleanup> :Remove.
2996 (do_module_cleanup): Update.
2997 * compile/compile-object-load.h (struct munmap_list): Add move
2998 assignment operator.
2999 <source_file>: Now a std::string.
3000 <munmap_list>: Rename. No longer a pointer.
3001 * compile/compile-object-load.c (struct setup_sections_data): Add
3002 constructor.
3003 <setup_one_section>: Declare.
3004 <munmap_list>: Move earlier.
3005 <m_bfd>: New member.
3006 <m_last_size, m_last_section_first, m_last_prot,
3007 m_last_max_alignment>: Rename, add initializers where needed.
3008 (setup_sections_data::setup_one_section): Rename from
3009 setup_sections. Update.
3010 (compile_object_load): Update. Don't use bfd_map_over_sections.
3011
3012 2020-09-23 Tom Tromey <tom@tromey.com>
3013
3014 * compile/compile-object-run.c (struct do_module_cleanup): Add
3015 parameters to constructor. Update destructor.
3016 <source_file, scope, scope_data, out_value_type, out_value_addr,
3017 munmap_list_head, objfile_name_string>: Remove.
3018 <module>: New member.
3019 (do_module_cleanup): Update.
3020 (compile_object_run): Update.
3021
3022 2020-09-23 Tom Tromey <tom@tromey.com>
3023
3024 * compile/compile.c (eval_compile_command): Update.
3025 * compile/compile-object-run.h (compile_object_run): Take a
3026 compile_module_up.
3027 * compile/compile-object-run.c (compile_object_run): Take a
3028 compile_module_up.
3029 * compile/compile-object-load.h (struct compile_module): Add
3030 constructor, destructor.
3031 (compile_module_up): New typedef.
3032 (compile_object_load): Return compile_object_up.
3033 * compile/compile-object-load.c (compile_object_load): Return
3034 compile_module_up.
3035
3036 2020-09-23 Tom Tromey <tom@tromey.com>
3037
3038 * compile/compile-object-run.c (struct do_module_cleanup): Add
3039 constructor, destructor.
3040 <objfile_name_string>: Don't use struct hack.
3041 (do_module_cleanup): Use delete.
3042 (compile_object_run): Use new.
3043
3044 2020-09-23 Tom Tromey <tom@tromey.com>
3045
3046 * compile/compile-cplus-types.c
3047 (compile_cplus_convert_struct_or_union): Use std::vector.
3048 (compile_cplus_convert_func): Likewise.
3049 * compile/compile-c-types.c (convert_func): Use std::vector.
3050
3051 2020-09-21 Tom Tromey <tromey@adacore.com>
3052
3053 * sparc-tdep.c (sparc32_skip_prologue): Use
3054 skip_prologue_using_sal.
3055
3056 2020-09-19 Tom Tromey <tom@tromey.com>
3057
3058 * symfile.c (add_section_size_callback): Remove.
3059 (load_one_section): Rename from load_section_callback. Change
3060 parameters.
3061 (generic_load): Use foreach.
3062
3063 2020-09-19 Tom Tromey <tom@tromey.com>
3064
3065 * exec.c (add_to_section_table): Remove.
3066 (build_section_table): Use foreach.
3067
3068 2020-09-19 Tom Tromey <tom@tromey.com>
3069
3070 * elfread.c (elf_locate_sections): Change parameters.
3071 (elf_symfile_read): Use foreach.
3072
3073 2020-09-19 Tom Tromey <tom@tromey.com>
3074
3075 * cli/cli-dump.c (struct callback_data): Remove.
3076 (restore_one_section): Rename from restore_section_callback.
3077 Change parameters.
3078 (restore_binary_file): Change parameters.
3079 (restore_command): Use foreach.
3080
3081 2020-09-19 Tom Tromey <tom@tromey.com>
3082
3083 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3084 (gcore_copy_callback): Likewise.
3085 (gcore_memory_sections): Use foreach.
3086
3087 2020-09-19 Tom Tromey <tom@tromey.com>
3088
3089 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3090 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3091 parameters.
3092 (generic_elf_osabi_sniffer): Use foreach.
3093 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3094 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3095
3096 2020-09-19 Tom Tromey <tom@tromey.com>
3097
3098 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3099 (dwarf2_get_dwz_file): Use foreach.
3100 (dwarf2_locate_dwo_sections): Change parameters.
3101 (open_and_init_dwo_file): Use foreach.
3102 (dwarf2_locate_common_dwp_sections): Change parameters.
3103 (open_and_init_dwp_file): Use foreach.
3104
3105 2020-09-19 Tom Tromey <tom@tromey.com>
3106
3107 * symfile.h: (find_lowest_section): Don't declare.
3108 * symfile.c (find_lowest_section): Now static. Change
3109 parameters.
3110 (struct place_section_arg): Remove.
3111 (place_section): Change parameters.
3112 (addr_info_make_relative): Use foreach.
3113 (symfile_dummy_outputs): Remove.
3114 (default_symfile_relocate): Use foreach.
3115
3116 2020-09-19 Tom Tromey <tom@tromey.com>
3117
3118 * objfiles.c (add_to_objfile_sections): Rename from
3119 add_to_objfile_sections_full.
3120 (add_to_objfile_sections): Remove.
3121 (build_objfile_section_table): Use foreach.
3122
3123 2020-09-19 Tom Tromey <tom@tromey.com>
3124
3125 * stap-probe.c (get_stap_base_address_1): Remove.
3126 (get_stap_base_address): Use foreach.
3127
3128 2020-09-19 Tom Tromey <tom@tromey.com>
3129
3130 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3131 parameters.
3132 (gdb_bfd_close_or_warn): Use foreach.
3133
3134 2020-09-19 Tom Tromey <tom@tromey.com>
3135
3136 * corelow.c (add_to_thread_list): Change parameters.
3137 (core_target_open): Use foreach.
3138
3139 2020-09-19 Tom Tromey <tom@tromey.com>
3140
3141 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3142 existing function.
3143
3144 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3147 for arrays.
3148
3149 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * eval.c: Remove 'f-lang.h' include.
3152 (value_f90_subarray): Moved to f-lang.c.
3153 (eval_call): Renamed to...
3154 (evaluate_subexp_do_call): ...this, is no longer static, header
3155 comment moved into header file.
3156 (evaluate_funcall): Update call to eval_call.
3157 (skip_undetermined_arglist): Moved to f-lang.c.
3158 (fortran_value_subarray): Likewise.
3159 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3160 moved to evaluate_subexp_f.
3161 (calc_f77_array_dims): Moved to f-lang.c
3162 * expprint.c (print_subexp_funcall): New function.
3163 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3164 moved to print_subexp_f, OP_FUNCALL uses new function.
3165 (dump_subexp_body_funcall): New function.
3166 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3167 moved to dump_subexp_f, OP_FUNCALL uses new function.
3168 * expression.h (evaluate_subexp_do_call): Declare.
3169 * f-lang.c (value_f90_subarray): Moved from eval.c.
3170 (skip_undetermined_arglist): Likewise.
3171 (calc_f77_array_dims): Likewise.
3172 (fortran_value_subarray): Likewise.
3173 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3174 (operator_length_f): Likewise.
3175 (print_subexp_f): Likewise.
3176 (dump_subexp_body_f): Likewise.
3177 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3178 declaration of this operation to here.
3179 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3180 support moved to operator_length_f.
3181 * parser-defs.h (dump_subexp_body_funcall): Declare.
3182 (print_subexp_funcall): Declare.
3183 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3184 fortran-operator.def.
3185
3186 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3187
3188 * eval.c (fortran_value_subarray): New function, content is taken
3189 from...
3190 (evaluate_subexp_standard): ...here, in two places. Now arrays
3191 and strings both call the new function.
3192 (calc_f77_array_dims): Add header comment, handle strings.
3193
3194 2020-09-18 Victor Collod <vcollod@nvidia.com>
3195
3196 PR gdb/26635
3197 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3198 (i386_analyze_prologue): Call i386_skip_endbr.
3199
3200 2020-09-18 Tom Tromey <tromey@adacore.com>
3201
3202 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3203 (windows_nat_target::wait): Update.
3204 * target/wait.h (enum target_wait_flag): New. Use
3205 DEF_ENUM_FLAGS_TYPE.
3206 * target/target.h (target_wait): Change type of options.
3207 * target.h (target_options_to_string, default_target_wait):
3208 Update.
3209 (struct target_ops) <wait>: Change type of options.
3210 * target.c (target_wait, default_target_wait, do_option): Change
3211 type of "options".
3212 (target_options_to_string): Likewise.
3213 * target-delegates.c: Rebuild.
3214 * target-debug.h (target_debug_print_target_wait_flags): Rename
3215 from target_debug_print_options.
3216 * sol-thread.c (class sol_thread_target) <wait>: Update.
3217 (sol_thread_target::wait): Update.
3218 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3219 (rs6000_nat_target::wait): Update.
3220 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3221 Update.
3222 (remote_target::wait_ns, remote_target::wait_as): Change type of
3223 "options".
3224 (remote_target::wait): Update.
3225 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3226 (gdbsim_target::wait): Update.
3227 * record-full.c (class record_full_base_target) <wait>: Update.
3228 (record_full_wait_1): Change type of "options".
3229 (record_full_base_target::wait): Update.
3230 * record-btrace.c (class record_btrace_target) <wait>: Update.
3231 (record_btrace_target::wait): Update.
3232 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3233 Update.
3234 (ravenscar_thread_target::wait): Update.
3235 * procfs.c (class procfs_target) <wait>: Update.
3236 (procfs_target::wait): Update.
3237 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3238 * obsd-nat.c (obsd_nat_target::wait): Update.
3239 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3240 (nto_procfs_target::wait): Update.
3241 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3242 * nbsd-nat.c (nbsd_wait): Change type of "options".
3243 (nbsd_nat_target::wait): Update.
3244 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3245 (thread_db_target::wait): Update.
3246 * linux-nat.h (class linux_nat_target) <wait>: Update.
3247 * linux-nat.c (linux_nat_target::wait): Update.
3248 (linux_nat_wait_1): Update.
3249 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3250 "options".
3251 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3252 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3253 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3254 (go32_nat_target::wait): Update.
3255 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3256 * gnu-nat.c (gnu_nat_target::wait): Update.
3257 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3258 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3259 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3260 * darwin-nat.c (darwin_nat_target::wait): Update.
3261 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3262 (bsd_uthread_target::wait): Update.
3263 * aix-thread.c (class aix_thread_target) <wait>: Update.
3264 (aix_thread_target::wait): Update.
3265
3266 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * compile/compile-object-run.c (create_copied_type_recursive): New
3269 function.
3270 (compile_object_run): Use new function.
3271
3272 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3273
3274 * NEWS: Mention x86_64 Cygwin core file support.
3275
3276 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3277
3278 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3279 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3280
3281 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3282
3283 * windows-tdep.h: Add prototypes.
3284 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3285 (i386_windows_core_pid_to_str): Move and rename ...
3286 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3287 (windows_core_pid_to_str): ... and here.
3288 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3289
3290 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3291 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3292 (amd64_windows_init_abi_common): ... and register.
3293
3294 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3295
3296 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3297 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3298
3299 2020-09-18 Pedro Alves <pedro@palves.net>
3300
3301 PR gdb/26631
3302 * thread.c (thread_find_command): Switch inferior before calling
3303 target methods.
3304
3305 2020-09-17 Tom Tromey <tromey@adacore.com>
3306
3307 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3308 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3309 (tdesc_arch_data_up): New typedef.
3310 (tdesc_use_registers, tdesc_data_alloc): Update.
3311 (tdesc_data_cleanup): Don't declare.
3312 * target-descriptions.c (tdesc_data_alloc): Return a
3313 tdesc_arch_data_up.
3314 (tdesc_arch_data_deleter::operator()): Rename from
3315 tdesc_data_cleanup. Change argument type.
3316 (tdesc_use_registers): Change early_data to an rvalue reference.
3317 (tdesc_use_registers): Don't use delete.
3318 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3319 * s390-tdep.c (s390_gdbarch_init): Update.
3320 * rx-tdep.c (rx_gdbarch_init): Update.
3321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3322 * riscv-tdep.c (riscv_gdbarch_init): Update.
3323 * or1k-tdep.c (or1k_gdbarch_init): Update.
3324 * nios2-tdep.c (nios2_gdbarch_init): Update.
3325 * nds32-tdep.c (nds32_gdbarch_init): Update.
3326 * mips-tdep.c (mips_gdbarch_init): Update.
3327 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3328 * m68k-tdep.c (m68k_gdbarch_init): Update.
3329 * i386-tdep.c (i386_gdbarch_init): Update.
3330 * arm-tdep.c (arm_gdbarch_init): Update.
3331 * arc-tdep.c (arc_tdesc_init): Update.
3332 (arc_gdbarch_init): Update.
3333 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3334
3335 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3336
3337 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3338 for WOW64 processes.
3339
3340 2020-09-17 Tom Tromey <tom@tromey.com>
3341
3342 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3343
3344 2020-09-17 Tom Tromey <tom@tromey.com>
3345
3346 * value.c (preserve_values): Update.
3347 * python/py-type.c (save_objfile_types): Update.
3348 * guile/scm-type.c (save_objfile_types): Update.
3349 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3350 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3351 * compile/compile-object-run.c (compile_object_run): Update.
3352
3353 2020-09-17 Tom Tromey <tom@tromey.com>
3354
3355 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3356 Remove.
3357 <m_table>: Now htab_up.
3358 * typeprint.c (typedef_hash_table::recursively_update)
3359 (typedef_hash_table::add_template_parameters)
3360 (typedef_hash_table::typedef_hash_table): Update.
3361 (typedef_hash_table::~typedef_hash_table): Remove.
3362 (typedef_hash_table::typedef_hash_table)
3363 (typedef_hash_table::find_global_typedef)
3364 (typedef_hash_table::find_typedef): Update.
3365
3366 2020-09-17 Tom Tromey <tom@tromey.com>
3367
3368 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3369
3370 2020-09-17 Tom Tromey <tom@tromey.com>
3371
3372 * linespec.c (class decode_compound_collector)
3373 <~decode_compound_collector>: Remove.
3374 <m_unique_syms>: Now htab_up.
3375 (decode_compound_collector::operator ()): Update.
3376 (class symtab_collector) <~symtab_collector>: Remove.
3377 <m_symtab_table>: Now htab_up.
3378 (symtab_collector::operator ()): Update.
3379
3380 2020-09-17 Tom Tromey <tom@tromey.com>
3381
3382 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3383 (filename_seen_cache::clear): Update.
3384 (~filename_seen_cache): Remove.
3385 (filename_seen_cache::seen): Update.
3386 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3387 htab_up.
3388 <~filename_seen_cache>: Remove.
3389 <traverse>: Update.
3390
3391 2020-09-17 Tom Tromey <tom@tromey.com>
3392
3393 * completer.c (completion_tracker::discard_completions)
3394 (completion_tracker::~completion_tracker)
3395 (completion_tracker::maybe_add_completion)
3396 (completion_tracker::remove_completion)
3397 (completion_tracker::recompute_lowest_common_denominator)
3398 (completion_tracker::build_completion_result): Update.
3399 * completer.h (class completion_tracker) <have_completions>:
3400 Update.
3401 <m_entries_hash>: Now htab_up.
3402
3403 2020-09-17 Tom Tromey <tom@tromey.com>
3404
3405 * breakpoint.c (ambiguous_names_p): Use htab_up.
3406
3407 2020-09-17 Tom Tromey <tom@tromey.com>
3408
3409 * auto-load.c (struct auto_load_pspace_info)
3410 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3411 <loaded_script_files, loaded_script_texts>: Change type to
3412 htab_up.
3413 (~auto_load_pspace_info) Remove.
3414 (init_loaded_scripts_info, maybe_add_script_file)
3415 (maybe_add_script_text, auto_load_info_scripts): Update.
3416
3417 2020-09-17 Tom Tromey <tromey@adacore.com>
3418
3419 * c-exp.y (name_obstack): Now static.
3420
3421 2020-09-17 Chungyi Chi <demonic@csie.io>
3422
3423 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3424
3425 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3428 (add_solib_catchpoint): Likewise.
3429 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3430 to bool.
3431 (add_solib_catchpoint): Change int parameter/variable to bool.
3432 (catch_load_or_unload): Likewise.
3433 (init_catchpoint): Likewise.
3434 (create_fork_vfork_event_catchpoint): Likewise.
3435 (catch_fork_command_1): Likewise.
3436 (catch_exec_command_1): Likewise.
3437
3438 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3441 Change instance_flags to m_instance_flags.
3442
3443 2020-09-16 Tom Tromey <tromey@adacore.com>
3444
3445 PR gdb/26598:
3446 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3447
3448 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3449
3450 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3451 PL_FLAG_EXEC.
3452 (fbsd_nat_target::insert_exec_catchpoint)
3453 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3454 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3455 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3456
3457 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3458
3459 * configure.ac: Remove check for kinfo_getvmmap().
3460 * configure, config.in: Regenerate.
3461 * fbsd-nat.c (fbsd_read_mapping): Remove
3462 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3463 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3464 kinfo_get_vmmap() are always present.
3465
3466 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3467
3468 * fbsd-nat.c: Always include support for
3469 TARGET_OBJECT_SIGNAL_INFO.
3470
3471 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3472
3473 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3474 sysctl and remove procfs fallback.
3475
3476 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3477
3478 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3479 * fbsd-nat.h: Likewise.
3480
3481 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482
3483 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3484 argument.
3485
3486 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * ada-lang.c (ada_language_data): Delete.
3489 (ada_language): Remove references to ada_language_data.
3490 * c-lang.c (c_language_data): Delete.
3491 (c_language): Remove references to c_language_data.
3492 (cplus_language_data): Delete.
3493 (cplus_language): Remove references to cplus_language_data.
3494 (asm_language_data): Delete.
3495 (asm_language): Remove references to asm_language_data.
3496 (minimal_language_data): Delete.
3497 (minimal_language): Remove references to minimal_language_data.
3498 * d-lang.c (d_language_data): Delete.
3499 (d_language): Remove references to d_language_data.
3500 * f-lang.c (f_language_data): Delete.
3501 (f_language): Remove references to f_language_data.
3502 * go-lang.c (go_language_data): Delete.
3503 (go_language): Remove references to go_language_data.
3504 * language.c (unknown_language_data): Delete.
3505 (unknown_language): Remove references to unknown_language_data.
3506 (auto_language_data): Delete.
3507 (auto_language): Remove references to auto_language_data.
3508 * language.h (language_data): Delete struct.
3509 (language_defn): No longer inherit from language_data.
3510 * m2-lang.c (m2_language_data): Delete.
3511 (m2_language): Remove references to m2_language_data.
3512 * objc-lang.c (objc_language_data): Delete.
3513 (objc_language): Remove references to objc_language_data.
3514 * opencl-lang.c (opencl_language_data): Delete.
3515 (opencl_language): Remove references to opencl_language_data.
3516 * p-lang.c (pascal_language_data): Delete.
3517 (pascal_language): Remove references to pascal_language_data.
3518 * rust-lang.c (rust_language_data): Delete.
3519 (rust_language): Remove references to rust_language_data.
3520
3521 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3522
3523 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3524 initializer.
3525 (ada_language::opcode_print_table): New member function.
3526 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3527 (c_language::opcode_print_table): New member function.
3528 (cplus_language_data): Remove la_op_print_tab initializer.
3529 (cplus_language::opcode_print_table): New member function.
3530 (asm_language_data): Remove la_op_print_tab initializer.
3531 (asm_language::opcode_print_table): New member function.
3532 (minimal_language_data): Remove la_op_print_tab initializer.
3533 (minimal_language::opcode_print_table): New member function.
3534 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3535 (d_language::opcode_print_table): New member function.
3536 * expprint.c (print_subexp_standard): Update call to
3537 opcode_print_table.
3538 (op_string): Likewise.
3539 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3540 (f_language::opcode_print_table): New member function.
3541 * go-lang.c (go_language_data): Remove la_op_print_tab
3542 initializer.
3543 (go_language::opcode_print_table): New member function.
3544 * language.c (unknown_language_data): Remove la_op_print_tab
3545 initializer.
3546 (unknown_language::opcode_print_table): New member function.
3547 (auto_language_data): Remove la_op_print_tab initializer.
3548 (auto_language::opcode_print_table): New member function.
3549 * language.h (language_data): Remove la_op_print_tab field.
3550 (language_defn::opcode_print_table): Declare new member function.
3551 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3552 initializer.
3553 (m2_language::opcode_print_table): New member function.
3554 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3555 initializer.
3556 (objc_language::opcode_print_table): New member function.
3557 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3558 initializer.
3559 (opencl_language::opcode_print_table): New member function.
3560 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3561 initializer.
3562 (pascal_language::opcode_print_table): New member function.
3563 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3564 initializer.
3565 (rust_language::opcode_print_table): New member function.
3566
3567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3570 (ada_language::expression_ops): New member function.
3571 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3572 (c_language::expression_ops): New member function.
3573 (cplus_language_data): Remove la_exp_desc initializer.
3574 (cplus_language::expression_ops): New member function.
3575 (asm_language_data): Remove la_exp_desc initializer.
3576 (asm_language::expression_ops): New member function.
3577 (minimal_language_data): Remove la_exp_desc initializer.
3578 (minimal_language::expression_ops): New member function.
3579 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3580 (d_language::expression_ops): New member function.
3581 * eval.c (evaluate_subexp): Update call to expression_ops.
3582 * expprint.c (print_subexp): Likewise.
3583 (op_name): Likewise.
3584 (dump_subexp_body): Likewise.
3585 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3586 (f_language::expression_ops): New member function.
3587 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3588 (go_language::expression_ops): New member function.
3589 * language.c (language_defn::expression_ops): New function.
3590 (unknown_language_data): Remove la_exp_desc initializer.
3591 (auto_language_data): Likewise.
3592 * language.h (language_data): Remove la_exp_desc field.
3593 (language_defn::expression_ops): Declare new member function.
3594 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3595 (m2_language::expression_ops): New member function.
3596 * objc-lang.c (objc_language_data): Remove la_exp_desc
3597 initializer.
3598 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3599 initializer.
3600 (opencl_language::expression_ops): New member function.
3601 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3602 * parse.c (operator_length): Update call to expression_ops.
3603 (exp_iterate): Likewise.
3604 * rust-lang.c (rust_language_data): Remove la_exp_desc
3605 initializer.
3606 (ruse_language::expression_ops): New member function.
3607
3608 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3611 initializer.
3612 (ada_language::varobj_ops): New member function.
3613 * c-lang.c (c_language_data): Remove la_varobj_ops
3614 initializer.
3615 (cplus_language_data): Likewise.
3616 (cplus_language::varobj_ops): New member function.
3617 (asm_language_data): Remove la_varobj_ops initializer.
3618 (minimal_language_data): Likewise.
3619 * d-lang.c (d_language_data): Likewise.
3620 * f-lang.c (f_language_data): Likewise.
3621 * go-lang.c (go_language_data): Likewise.
3622 * language.c (language_defn::varobj_ops): New function.
3623 (unknown_language_data): Remove la_varobj_ops
3624 initializer.
3625 (auto_language_data): Likewise.
3626 * language.h (language_data): Remove la_varobj_ops field.
3627 (language_defn::varobj_ops): Declare new member function.
3628 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3629 * objc-lang.c (objc_language_data): Likewise.
3630 * opencl-lang.c (opencl_language_data): Likewise.
3631 * p-lang.c (pascal_language_data): Likewise.
3632 * rust-lang.c (rust_language_data): Likewise.
3633 * varobj.c (varobj_create): Update call to varobj_ops.
3634 * varobj.h (default_varobj_ops): Delete define.
3635
3636 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3639 initializer.
3640 * c-lang.c (c_language_data): Likewise.
3641 (c_language::macro_expansion): New member function.
3642 (cplus_language_data): Likewise.
3643 (cplus_language::macro_expansion): New member function.
3644 (asm_language_data): Likewise.
3645 (asm_language::macro_expansion): New member function.
3646 (minimal_language_data): Likewise.
3647 (minimal_language::macro_expansion): New member function.
3648 * d-lang.c (d_language_data): Remove la_macro_expansion
3649 initializer.
3650 * f-lang.c (f_language_data): Likewise.
3651 * go-lang.c (go_language_data): Likewise.
3652 * language.c (unknown_language_data): Likewise.
3653 (auto_language_data): Likewise.
3654 * language.h (language_data): Remove la_macro_expansion field.
3655 (language_defn::macro_expansion): New member function.
3656 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3657 initializer.
3658 * objc-lang.c (objc_language_data): Likewise.
3659 (objc_language::macro_expansion): New member function.
3660 * opencl-lang.c (opencl_language_data): Likewise.
3661 (opencl_language::macro_expansion): New member function.
3662 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3663 initializer.
3664 * rust-lang.c (rust_language_data): Likewise.
3665 * symtab.c (default_collect_symbol_completion_matches_break_on):
3666 Update call to macro_expansion.
3667
3668 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3669
3670 * ada-lang.c (ada_language_data): Remove la_array_ordering
3671 initializer.
3672 * c-lang.c (c_language_data): Likewise.
3673 (cplus_language_data): Likewise.
3674 (asm_language_data): Likewise.
3675 (minimal_language_data): Likewise.
3676 * d-lang.c (d_language_data): Likewise.
3677 * dwarf2/read.c (read_array_order): Update for call to
3678 array_ordering.
3679 * f-lang.c (f_language_data): Remove la_array_ordering
3680 initializer.
3681 (f_language::array_ordering): New member function.
3682 * go-lang.c (go_language_data): Remove la_array_ordering
3683 initializer.
3684 * language.c (unknown_language_data): Likewise.
3685 (auto_language_data): Likewise.
3686 * language.h (language_data): Delete la_array_ordering field.
3687 (language_defn::array_ordering): New member function.
3688 * m2-lang.c (m2_language_data): Remove la_array_ordering
3689 initializer.
3690 * objc-lang.c (objc_language_data): Likewise.
3691 * opencl-lang.c (opencl_language_data): Likewise.
3692 * p-lang.c (pascal_language_data): Likewise.
3693 * rust-lang.c (rust_language_data): Likewise.
3694
3695 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3696
3697 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3698 initializer.
3699 * c-lang.c (c_language_data): Likewise.
3700 (cplus_language_data): Likewise.
3701 (asm_language_data): Likewise.
3702 (minimal_language_data): Likewise.
3703 * d-lang.c (d_language_data): Likewise.
3704 * f-lang.c (f_language_data): Likewise.
3705 (f_language::case_sensitivity): New member function.
3706 * go-lang.c (go_language_data): Remove la_case_sensitivity
3707 initializer.
3708 * language.c (enum case_mode): Moved here from language.h.
3709 (case_mode): Make static.
3710 (show_case_command): Update for case_sensitivity being a method.
3711 (set_case_command): Likewise.
3712 (set_range_case): Likewise.
3713 (unknown_language_data): Remove la_case_sensitivity initializer.
3714 (auto_language_data): Likewise.
3715 * language.h (case_mode): Delete, move enum declaration to
3716 language.c.
3717 (language_data): Delete la_case_sensitivity field.
3718 (language_defn::case_sensitivity): New member function.
3719 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3720 initializer.
3721 * objc-lang.c (objc_language_data): Likewise.
3722 * opencl-lang.c (opencl_language_data): Likewise.
3723 * p-lang.c (pascal_language_data): Likewise.
3724 * rust-lang.c (rust_language_data): Likewise.
3725
3726 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * ada-lang.c (ada_language_data): Remove la_range_check
3729 initializer.
3730 * c-lang.c (c_language_data): Likewise.
3731 (cplus_language_data): Likewise.
3732 (asm_language_data): Likewise.
3733 (minimal_language_data): Likewise.
3734 * d-lang.c (d_language_data): Likewise.
3735 * f-lang.c (f_language_data): Likewise.
3736 (f_language::range_checking_on_by_default): New member function.
3737 * go-lang.c (go_language_data): Remove la_range_check initializer.
3738 * language.c (enum range_mode): Moved here from language.h.
3739 (range_mode): Made static.
3740 (show_range_command): Update to use
3741 range_checking_on_by_default.
3742 (set_range_command): Likewise.
3743 (set_range_case): Likewise.
3744 (unknown_language_data): Remove la_range_check initializer.
3745 (auto_language_data): Likewise.
3746 * language.h (range_mode): Delete. Enum definition moved to
3747 language.c.
3748 (language_data): Remove la_range_check field.
3749 (language_defn::range_checking_on_by_default): New member
3750 function.
3751 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3752 (m2_language::range_checking_on_by_default): New member function.
3753 * objc-lang.c (objc_language_data): Remove la_range_check
3754 initializer.
3755 * opencl-lang.c (opencl_language_data): Likewise.
3756 * p-lang.c (pascal_language_data): Likewise.
3757 (pascal_language::range_checking_on_by_default): New member
3758 function.
3759 * rust-lang.c (rust_language_data): Remove la_range_check
3760 initializer.
3761 (rust_language::range_checking_on_by_default): New member
3762 function.
3763
3764 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * dwarf2/read.c (dwarf2_physname): Remove special case for
3767 language_go.
3768 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3769 member function.
3770
3771 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * ada-lang.c (ada_language_data): Remove
3774 la_store_sym_names_in_linkage_form_p initializer.
3775 (ada_language::store_sym_names_in_linkage_form_p): New member
3776 function.
3777 * c-lang.c (c_language_data): Remove
3778 la_store_sym_names_in_linkage_form_p initializer.
3779 (c_language::store_sym_names_in_linkage_form_p): New member
3780 function.
3781 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3782 initializer.
3783 (asm_language_data): Likewise.
3784 (asm_language::store_sym_names_in_linkage_form_p): New member
3785 function.
3786 (minimal_language_data): Remove
3787 la_store_sym_names_in_linkage_form_p initializer.
3788 (minimal_language::store_sym_names_in_linkage_form_p): New member
3789 function.
3790 * d-lang.c (d_language_data): Remove
3791 la_store_sym_names_in_linkage_form_p initializer.
3792 * dwarf2/read.c (dwarf2_physname): Update call to
3793 store_sym_names_in_linkage_form_p.
3794 * f-lang.c (f_language_data): Remove
3795 la_store_sym_names_in_linkage_form_p initializer.
3796 * go-lang.c (go_language_data): Remove
3797 la_store_sym_names_in_linkage_form_p initializer.
3798 * language.c (unknown_language_data): Remove
3799 la_store_sym_names_in_linkage_form_p initializer.
3800 (unknown_language::store_sym_names_in_linkage_form_p): New member
3801 function.
3802 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3803 initializer.
3804 (auto_language::store_sym_names_in_linkage_form_p): New member
3805 function.
3806 * language.h (language_data): Remove
3807 la_store_sym_names_in_linkage_form_p member variable.
3808 (language_defn::store_sym_names_in_linkage_form_p): New member
3809 function.
3810 * m2-lang.c (m2_language_data): Remove
3811 la_store_sym_names_in_linkage_form_p initializer.
3812 * objc-lang.c (objc_language_data): Likewise.
3813 * opencl-lang.c (opencl_language_data): Likewise.
3814 * p-lang.c (pascal_language_data): Likewise.
3815 * rust-lang.c (rust_language_data): Likewise.
3816
3817 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3818
3819 * ada-lang.c (ada_language_data): Remove string_lower_bound
3820 initializer.
3821 * c-lang.c (c_language_data): Likewise.
3822 (cplus_language_data): Likewise.
3823 (asm_language_data): Likewise.
3824 (minimal_language_data): Likewise.
3825 * d-lang.c (d_language_data): Likewise.
3826 * f-lang.c (f_language_data): Likewise.
3827 * go-lang.c (go_language_data): Likewise.
3828 * language.c (unknown_language_data): Likewise.
3829 (auto_language_data): Likewise.
3830 * language.h (language_data): Remove string_lower_bound field.
3831 (language_defn::string_lower_bound): New member function.
3832 * m2-lang.c (m2_language_data): Remove string_lower_bound
3833 initializer.
3834 (m2_language::string_lower_bound): New member function.
3835 * objc-lang.c (objc_language_data): Remove string_lower_bound
3836 initializer.
3837 * opencl-lang.c (opencl_language_data): Likewise.
3838 * p-lang.c (pascal_language_data): Likewise.
3839 * rust-lang.c (rust_language_data): Likewise.
3840 * valops.c (value_cstring): Update call to string_lower_bound.
3841 (value_string): Likewise.
3842 * value.c (allocate_repeated_value): Likewise.
3843
3844 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * valops.c (value_repeat): Fix incorrect argument name in comment.
3847
3848 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * ada-lang.c (ada_language_data): Remove c_style_arrays
3851 initializer.
3852 (ada_language::c_style_arrays_p): New member fuction.
3853 * c-lang.c (c_language_data): Remove c_style_arrays
3854 initializer.
3855 (cplus_language_data): Likewise.
3856 (asm_language_data): Likewise.
3857 (minimal_language_data): Likewise.
3858 * d-lang.c (d_language_data): Likewise.
3859 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3860 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3861 (f_language::c_style_arrays_p): New member function.
3862 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3863 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3864 * language.c (unknown_language_data): Remove c_style_arrays
3865 initializer.
3866 (auto_language_data): Likewise.
3867 * language.h (language_data): Remove c_style_arrays field.
3868 (language_defn::c_style_arrays_p): New member function.
3869 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3870 (m2_language::c_style_arrays_p): New member function.
3871 * objc-lang.c (objc_language_data): Remove c_style_arrays
3872 initializer.
3873 * opencl-lang.c (opencl_language_data): Likewise.
3874 * p-lang.c (pascal_language_data): Likewise.
3875 * rust-lang.c (rust_language_data): Likewise.
3876 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3877 and update local variable to a bool.
3878 * valops.c (value_cast): Update call to c_style_arrays_p.
3879 (value_array): Likewise.
3880 * value.c (coerce_array): Likewise.
3881
3882 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 * ada-lang.c (ada_language_data): Remove la_language initializer.
3885 * c-lang.c (c_language_data): Likewise.
3886 (cplus_language_data): Likewise.
3887 (asm_language_data): Likewise.
3888 (minimal_language_data): Likewise.
3889 * d-lang.c (d_language_data): Likewise.
3890 * f-lang.c (f_language_data): Likewise.
3891 * go-lang.c (go_language_data): Likewise.
3892 * language.c (unknown_language_data): Likewise.
3893 (auto_language_data): Likewise.
3894 * language.h (language_data): Remove la_language field.
3895 (language_defn::language_defn): Initialise la_language field.
3896 (language_defn::la_language): New member variable.
3897 * m2-lang.c (m2_language_data): Remove la_language field.
3898 * objc-lang.c (objc_language_data): Likewise.
3899 * opencl-lang.c (opencl_language_data): Likewise.
3900 * p-lang.c (pascal_language_data): Likewise.
3901 * rust-lang.c (rust_language_data): Likewise.
3902
3903 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_extensions): Delete, moved into
3906 ada_language::filename_extensions.
3907 (ada_language_data): Remove la_filename_extensions initializer.
3908 (ada_language::filename_extensions): New member function.
3909 * c-lang.c (c_extensions): Delete, moved into
3910 c_language::filename_extensions.
3911 (c_language_data): Remove la_filename_extensions initializer.
3912 (c_language::filename_extensions): New member function.
3913 (cplus_extensions): Delete, moved into
3914 cplus_language::filename_extensions.
3915 (cplus_language_data): Remove la_filename_extensions initializer.
3916 (cplus_language::filename_extensions): New member function.
3917 (asm_extensions): Delete, moved into
3918 asm_language::filename_extensions.
3919 (asm_language_data): Remove la_filename_extensions initializer.
3920 (asm_language::filename_extensions): New member function.
3921 (minimal_language_data): Remove la_filename_extensions
3922 initializer.
3923 * d-lang.c (d_extensions): Delete, moved into
3924 d_language::filename_extensions.
3925 (d_language_data): Remove la_filename_extensions initializer.
3926 (d_language::filename_extensions): New member function.
3927 * f-lang.c (f_extensions): Delete, moved into
3928 f_language::filename_extensions.
3929 (f_language_data): Remove la_filename_extensions initializer.
3930 (f_language::filename_extensions): New member function.
3931 * go-lang.c (go_language_data): Remove la_filename_extensions
3932 initializer.
3933 * language.c (add_set_language_command): Update now that
3934 filename_extensions returns a vector.
3935 (unknown_language_data): Remove la_filename_extensions
3936 initializer.
3937 (auto_language_data): Likewise.
3938 * language.h (language_data): Remove la_filename_extensions field.
3939 (language_defn::filename_extensions): New member function.
3940 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3941 initializer.
3942 * objc-lang.c (objc_extensions): Delete, moved into
3943 objc_language::filename_extensions.
3944 (objc_language_data): Remove la_filename_extensions initializer.
3945 (objc_language::filename_extensions): New member function.
3946 * opencl-lang.c (opencl_language_data): Remove
3947 la_filename_extensions initializer.
3948 * p-lang.c (pascal_extensions): Delete, moved into
3949 pascal_language::filename_extensions.
3950 (pascal_language_data): Remove la_filename_extensions initializer.
3951 (pascal_language::filename_extensions): New member function.
3952 * rust-lang.c (rust_extensions): Delete, moved into
3953 rust_language::filename_extensions.
3954 (rust_language_data): Remove la_filename_extensions initializer.
3955 (rust_language::filename_extensions): New member function.
3956 * symfile.c (add_filename_language): Add new assert.
3957
3958 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * ada-lang.c (ada_language_data): Remove la_name and
3961 la_natural_name initializers.
3962 (ada_language::name): New member function.
3963 (ada_language::natural_name): New member function.
3964 * c-lang.c (c_language_data): Remove la_name and
3965 la_natural_name initializers.
3966 (c_language::name): New member function.
3967 (c_language::natural_name): New member function.
3968 (cplus_language_data): Remove la_name and
3969 la_natural_name initializers.
3970 (cplus_language::name): New member function.
3971 (cplus_language::natural_name): New member function.
3972 (asm_language_data): Remove la_name and
3973 la_natural_name initializers.
3974 (asm_language::name): New member function.
3975 (asm_language::natural_name): New member function.
3976 (minimal_language_data): Remove la_name and
3977 la_natural_name initializers.
3978 (minimal_language::name): New member function.
3979 (minimal_language::natural_name): New member function.
3980 * compile/compile.c (compile_to_object): Update call to
3981 lanugage_defn::name.
3982 * d-lang.c (d_language_data): Remove la_name and
3983 la_natural_name initializers.
3984 (d_language::name): New member function.
3985 (d_language::natural_name): New member function.
3986 * expprint.c (print_subexp_standard): Update call to
3987 language_defn::name.
3988 (dump_raw_expression): Likewise
3989 (dump_prefix_expression): Likewise.
3990 * f-lang.c (f_language_data): Remove la_name and
3991 la_natural_name initializers.
3992 (f_language::name): New member function.
3993 (f_language::natural_name): New member function.
3994 * go-lang.c (go_language_data): Remove la_name and
3995 la_natural_name initializers.
3996 (go_language::name): New member function.
3997 (go_language::natural_name): New member function.
3998 * language.c (show_language_command): Update call to
3999 language_defn::name.
4000 (set_language_command): Likewise.
4001 (language_enum): Likewise.
4002 (language_str): Likewise.
4003 (add_set_language_command): Likewise, use
4004 language_defn::natural_name in the doc string.
4005 (unknown_language_data): Remove la_name and
4006 la_natural_name initializers.
4007 (unknown_language::name): New member function.
4008 (unknown_language::natural_name): New member function.
4009 (auto_language_data): Remove la_name and
4010 la_natural_name initializers.
4011 (auto_language::name): New member function.
4012 (auto_language::natural_name): New member function.
4013 (language_lookup_primitive_type_as_symbol): Update call to
4014 language_defn::name.
4015 * language.h (language_data): Remove la_name and la_natural_name
4016 member variables.
4017 (language_defn::name): New member function.
4018 (language_defn::natural_name): New member function.
4019 * m2-lang.c (m2_language_data): Remove la_name and
4020 la_natural_name initializers.
4021 (m2_language::name): New member function.
4022 (m2_language::natural_name): New member function.
4023 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4024 language_defn::natural_name.
4025 * objc-lang.c (objc_language_data): Remove la_name and
4026 la_natural_name initializers.
4027 (objc_language::name): New member function.
4028 (objc_language::natural_name): New member function.
4029 * opencl-lang.c (opencl_language_data): Remove la_name and
4030 la_natural_name initializers.
4031 (opencl_language::name): New member function.
4032 (opencl_language::natural_name): New member function.
4033 * p-lang.c (pascal_language_data): Remove la_name and
4034 la_natural_name initializers.
4035 (pascal_language::name): New member function.
4036 (pascal_language::natural_name): New member function.
4037 * rust-lang.c (rust_language_data): Remove la_name and
4038 la_natural_name initializers.
4039 (rust_language::name): New member function.
4040 (rust_language::natural_name): New member function.
4041 * symtab.c (lookup_language_this): Update call to
4042 language_defn::name.
4043
4044 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4045
4046 * ada-lang.c (ada_language_data): Remove la_name_of_this
4047 initializer.
4048 * ax-gdb.c (gen_expr): Update call to name_of_this.
4049 * c-exp.y (classify_name): Likewise.
4050 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4051 (cplus_language_data): Likewise.
4052 (cplus_language::name_of_this): New member function.
4053 (asm_language_data): Remove la_name_of_this initializer.
4054 (minimal_language_data): Likewise.
4055 * d-lang.c (d_language_data): Likewise.
4056 (d_language::name_of_this): New member function.
4057 * expprint.c (print_subexp_standard): Update call to name_of_this.
4058 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4059 * go-lang.c (go_language_data): Likewise.
4060 * language.c (unknown_language_data): Likewise.
4061 (unknown_language::name_of_this): New member function.
4062 (auto_language_data): Remove la_name_of_this initializer.
4063 (auto_language::name_of_this): New member function.
4064 * language.h (language_data): Delete la_name_of_this member
4065 variable.
4066 (language_defn::name_of_this): New member function.
4067 * m2-lang.c (m2_language_data): Remove la_name_of_this
4068 initializer.
4069 * objc-lang.c (objc_language_data): Likewise.
4070 (objc_language::name_of_this): New member function.
4071 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4072 initializer.
4073 * p-lang.c (pascal_language_data): Likewise.
4074 (pascal_language::name_of_this): New member function.
4075 * rust-lang.c (rust_language_data): Remove la_name_of_this
4076 initializer.
4077 * symtab.c (lookup_language_this): Update call to name_of_this.
4078 (lookup_symbol_aux): Likewise.
4079 * valops.c (value_of_this): Likewise.
4080
4081 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4082
4083 * ada-lang.c (ada_language_data): Remove
4084 la_struct_too_deep_ellipsis initializer.
4085 (ada_language::struct_too_deep_ellipsis): New member function.
4086 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4087 initializer.
4088 (cplus_language_data): Likewise.
4089 (asm_language_data): Likewise.
4090 (minimal_language_data): Likewise.
4091 * cp-valprint.c (cp_print_value): Update call to
4092 struct_too_deep_ellipsis.
4093 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4094 initializer.
4095 * f-lang.c (f_language_data): Likewise.
4096 (f_language::struct_too_deep_ellipsis): New member function.
4097 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4098 initializer.
4099 * language.c (unknown_language_data): Likewise.
4100 (auto_language_data): Likewise.
4101 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4102 member variable.
4103 (language_defn::struct_too_deep_ellipsis): New member function.
4104 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4105 initializer.Q
4106 * objc-lang.c (objc_language_data): Likewise.
4107 * opencl-lang.c (opencl_language_data): Likewise.
4108 * p-lang.c (pascal_language_data): Likewise.
4109 * rust-lang.c (rust_language_data): Likewise.
4110 * valprint.c (val_print_check_max_depth): Update call to
4111 struct_too_deep_ellipsis.
4112
4113 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4114
4115 * MAINTAINERS (Write After Approval): Add myself.
4116
4117 2020-09-15 Tom Tromey <tom@tromey.com>
4118
4119 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4120 Remove.
4121
4122 2020-09-15 Tom Tromey <tom@tromey.com>
4123
4124 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4125 and TYPE_CODE_METHODPTR cases.
4126 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4127 (c_value_print_inner): Update.
4128 * valprint.c (generic_value_print_memberptr): New function, from
4129 c_value_print_memberptr.
4130 (generic_value_print): Use it. Call cplus_print_method_ptr.
4131
4132 2020-09-15 Tom Tromey <tromey@adacore.com>
4133
4134 * python/python-internal.h (PyInt_FromLong): Remove define.
4135 * python/py-value.c (convert_value_from_python): Use
4136 gdb_py_object_from_longest.
4137 * python/py-type.c (typy_get_code): Use
4138 gdb_py_object_from_longest.
4139 * python/py-symtab.c (salpy_get_line): Use
4140 gdb_py_object_from_longest.
4141 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4142 gdb_py_object_from_longest.
4143 * python/py-record.c (recpy_gap_reason_code): Use
4144 gdb_py_object_from_longest.
4145 * python/py-record-btrace.c (recpy_bt_insn_size)
4146 (recpy_bt_func_level, btpy_list_count): Use
4147 gdb_py_object_from_longest.
4148 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4149 gdb_py_object_from_longest. Fix error handling.
4150 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4151 gdb_py_object_from_longest.
4152 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4153 gdb_py_object_from_longest.
4154 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4155 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4156 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4157
4158 2020-09-15 Tom Tromey <tromey@adacore.com>
4159
4160 * python/python.c (gdbpy_parameter_value): Use
4161 gdb_py_object_from_ulongest.
4162
4163 2020-09-15 Tom Tromey <tromey@adacore.com>
4164
4165 * python/py-infevents.c (create_register_changed_event_object):
4166 Use gdb_py_object_from_longest.
4167 * python/py-exitedevent.c (create_exited_event_object): Use
4168 gdb_py_object_from_longest.
4169
4170 2020-09-15 Tom Tromey <tromey@adacore.com>
4171
4172 * python/python.c (gdbpy_parameter_value): Use
4173 gdb_py_object_from_longest.
4174 * python/py-type.c (convert_field, typy_range): Use
4175 gdb_py_object_from_longest.
4176 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4177 gdb_py_object_from_longest.
4178 * python/py-lazy-string.c (stpy_get_length): Use
4179 gdb_py_object_from_longest.
4180 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4181 gdb_py_object_from_longest.
4182 * python/py-infevents.c (create_memory_changed_event_object): Use
4183 gdb_py_object_from_longest.
4184 * python/py-inferior.c (infpy_get_num): Use
4185 gdb_py_object_from_longest.
4186 (infpy_get_pid): Likewise.
4187
4188 2020-09-15 Tom Tromey <tromey@adacore.com>
4189
4190 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4191 defines.
4192 * python/py-value.c (valpy_long): Use
4193 gdb_py_object_from_ulongest.
4194 * python/py-symtab.c (salpy_get_pc): Use
4195 gdb_py_object_from_ulongest.
4196 (salpy_get_last): Likewise.
4197 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4198 gdb_py_object_from_ulongest.
4199 * python/py-lazy-string.c (stpy_get_address): Use
4200 gdb_py_object_from_ulongest.
4201 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4202 * python/py-arch.c (archpy_disassemble): Use
4203 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4204 error handling.
4205
4206 2020-09-15 Tom Tromey <tromey@adacore.com>
4207
4208 * python/python-internal.h (gdb_py_long_from_longest): Remove
4209 defines.
4210 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4211 * python/py-type.c (convert_field, typy_get_sizeof): Use
4212 gdb_py_object_from_longest.
4213 * python/py-record-btrace.c (btpy_list_index): Use
4214 gdb_py_object_from_longest.
4215
4216 2020-09-15 Tom Tromey <tromey@adacore.com>
4217
4218 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4219 * python/py-record.c (recpy_element_number): Use
4220 gdb_py_object_from_longest.
4221 (recpy_gap_number): Likewise.
4222
4223 2020-09-15 Tom Tromey <tromey@adacore.com>
4224
4225 * top.c (ui::ui): Update.
4226 (highest_ui_num): Remove.
4227 * top.h (struct ui) <num>: Remove.
4228
4229 2020-09-15 Tom Tromey <tromey@adacore.com>
4230
4231 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4232 * ui-style.c (ansi_regex_text): Now array.
4233 * rust-exp.y (number_regex_text): Now array.
4234 * linespec.c (linespec_quote_characters): Now array.
4235 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4236 Now arrays.
4237
4238 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4239
4240 * debuginfod-support.c (debuginfod_client_deleter): New.
4241 (debuginfod_client_up): New.
4242 (debuginfod_init): Return debuginfod_client_up.
4243 (debuginfod_source_query): Adjust.
4244 (debuginfod_debuginfo_query): Adjust.
4245
4246 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4247
4248 * debuginfod-support.c (debuginfod_source_query): Use
4249 make_unique_xstrdup.
4250
4251 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4254 with `type::instance_flags`.
4255
4256 2020-09-14 Michael Mullin <masmullin@gmail.com>
4257
4258 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4259 Remove baton parameter.
4260
4261 2020-09-14 Pedro Alves <pedro@palves.net>
4262
4263 * Makefile.in (SELFTESTS_SRCS): Add
4264 unittests/enum-flags-selftests.c.
4265 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4266 btrace_function_flags instead of enum btrace_function_flag.
4267 * compile/compile-c-types.c (convert_qualified): Use
4268 enum_flags::raw.
4269 * compile/compile-cplus-symbols.c (convert_one_symbol)
4270 (convert_symbol_bmsym):
4271 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4272 (compile_cplus_convert_struct_or_union_methods)
4273 (compile_cplus_instance::convert_qualified_base):
4274 * go-exp.y (parse_string_or_char): Add cast to int.
4275 * unittests/enum-flags-selftests.c: New file.
4276 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4277 type to btrace_thread_flags from btrace_thread_flag.
4278 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4279 local's type to btrace_thread_flags from btrace_thread_flag. Add
4280 cast in DEBUG call.
4281
4282 2020-09-14 Pedro Alves <pedro@palves.net>
4283
4284 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4285 * gdbtypes.c (address_space_name_to_int): Rename to ...
4286 (address_space_name_to_type_instance_flags): ... this.
4287 (address_space_int_to_name): Rename to ...
4288 (address_space_type_instance_flags_to_name): ... this.
4289 * gdbtypes.h (address_space_name_to_int): Rename to ...
4290 (address_space_name_to_type_instance_flags): ... this.
4291 (address_space_int_to_name): Rename to ...
4292 (address_space_type_instance_flags_to_name): ... this.
4293 * type-stack.c (type_stack::insert): Adjust to rename.
4294 * type-stack.h (type_stack::insert): Likewise.
4295
4296 2020-09-14 Pedro Alves <pedro@palves.net>
4297 Andrew Burgess <andrew.burgess@embecosm.com>
4298
4299 * avr-tdep.c (avr_address_class_type_flags): Return
4300 type_instance_flags.
4301 (avr_address_class_type_flags_to_name): Take a
4302 type_instance_flags.
4303 (avr_address_class_name_to_type_flags): Return bool and take a
4304 type_instance_flags.
4305 * d-lang.c (build_d_types): Use type::set_instance_flags.
4306 * ft32-tdep.c (ft32_address_class_type_flags): Return
4307 type_instance_flags.
4308 (ft32_address_class_type_flags_to_name): Take a
4309 type_instance_flags.
4310 (ft32_address_class_name_to_type_flags): Return bool and take a
4311 type_instance_flags.
4312 (ft32_gdbarch_init): Use type::set_instance_flags.
4313 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4314 * gdbarch.h, gdbarch.c: Regenerate.
4315 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4316 (address_class_name_to_type_flags): Use type_instance_flags and
4317 bool.
4318 * gdbtypes.c (address_space_name_to_int)
4319 (address_space_int_to_name, make_qualified_type): Use
4320 type_instance_flags.
4321 (make_qualified_type): Use type_instance_flags and
4322 type::set_instance_flags.
4323 (make_type_with_address_space, make_cv_type, make_vector_type)
4324 (check_typedef): Use type_instance_flags.
4325 (recursive_dump_type): Cast type_instance_flags to unsigned for
4326 printing.
4327 (copy_type_recursive): Use type::set_instance_flags.
4328 (gdbtypes_post_init): Use type::set_instance_flags.
4329 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4330 <m_instance_flags>: ... this.
4331 <instance_flags, set_instance_flags>: New methods.
4332 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4333 (SET_TYPE_INSTANCE_FLAGS): New.
4334 (address_space_name_to_int, address_space_int_to_name)
4335 (make_type_with_address_space): Pass flags using
4336 type_instance_flags instead of int.
4337 * stabsread.c (cleanup_undefined_types_noname): Use
4338 type::set_instance_flags.
4339 * s390-tdep.c (s390_address_class_type_flags): Return
4340 type_instance_flags.
4341 (s390_address_class_type_flags_to_name): Take a
4342 type_instance_flags.
4343 (s390_address_class_name_to_type_flags): Return bool and take a
4344 type_instance_flags.
4345 * type-stack.c (type_stack::follow_types): Use
4346 type_instance_flags.
4347 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4348
4349 2020-09-14 Tom Tromey <tromey@adacore.com>
4350
4351 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4352 * x86-tdep.c (x86_is_thunk_register_name)
4353 (x86_in_indirect_branch_thunk): Update.
4354 * sparc64-tdep.c (sparc64_fpu_register_names)
4355 (sparc64_cp0_register_names, sparc64_register_names)
4356 (sparc64_pseudo_register_names): Now const.
4357 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4358 cp0_registers_num>: Now const.
4359 * sparc-tdep.c (sparc_core_register_names)
4360 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4361 (sparc32_pseudo_register_names): Now const.
4362 (validate_tdesc_registers): Update.
4363 * rust-lang.c (rust_extensions): Now const.
4364 * p-lang.c (p_extensions): Now const.
4365 * objc-lang.c (objc_extensions): Now const.
4366 * nto-tdep.c (nto_thread_state_str): Now const.
4367 * moxie-tdep.c (moxie_register_names): Now const.
4368 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4369 Now const.
4370 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4371 (mips_linux_reg_names): Now const.
4372 (mips_gdbarch_init): Update.
4373 * microblaze-tdep.c (microblaze_register_names): Now const.
4374 * m68k-tdep.c (m68k_register_names): Now const.
4375 * m32r-tdep.c (m32r_register_names): Now const.
4376 * ia64-tdep.c (ia64_register_names): Now const.
4377 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4378 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4379 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4380 ymm_avx512_register_names, pkeys_register_names>: Now const.
4381 * i386-tdep.c (i386_register_names, i386_zmm_names)
4382 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4383 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4384 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4385 * f-lang.c (f_extensions): Now const.
4386 * d-lang.c (d_extensions): Now const.
4387 * csky-tdep.c (csky_register_names): Now const.
4388 * charset.c (default_charset_names, charset_enum): Now const.
4389 (_initialize_charset): Update.
4390 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4391 const.
4392 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4393 (bsd_uthread_solib_loaded): Update.
4394 (bsd_uthread_state): Now const.
4395 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4396 (amd64_ymm_avx512_names, amd64_ymmh_names)
4397 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4398 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4399 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4400 (amd64_dword_names): Now const.
4401 * agent.c (can_use_agent_enum): Now const.
4402 * ada-tasks.c (task_states, long_task_states): Now const.
4403 * ada-lang.c (known_runtime_file_name_patterns)
4404 (known_auxiliary_function_name_patterns, attribute_names)
4405 (standard_exc, ada_extensions): Now const.
4406
4407 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4408
4409 * bcache.h (struct bcache) <bcache>: Remove constructor.
4410 <m_hash_function, m_compare_function>: Remove.
4411 <~bcache>: Make virtual.
4412 <compare>: Remove static method, introduce virtual method.
4413 <default_hash>: Remove.
4414 <hash>: New virtual method.
4415 * bcache.c (bcache::expand_hash_table): Update.
4416 (bcache::insert): Update.
4417 (bcache::hash): New.
4418 (bcache::compare): Update comment and parameter names.
4419 * gdbtypes.c (types_deeply_equal): Update.
4420 * psymtab.h (struct psymbol_bcache): New struct.
4421 (class psymtab_storage) <psymtab_storage>: Make default.
4422 <psymbol_cache>: Change type to psymbol_bcache.
4423 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4424 (psymbol_hash): Change to...
4425 (psymbol_bcache::hash): ... this.
4426 (psymbol_compare): Change to...
4427 (psymbol_bcache::compare): ... this.
4428
4429 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4430
4431 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4432 checking for initial lwp.
4433
4434 2020-09-14 Tom Tromey <tromey@adacore.com>
4435
4436 * m68k-tdep.c (m68k_extract_return_value): Use
4437 pointer_result_regnum.
4438 (m68k_store_return_value): Likewise.
4439 (m68k_reg_struct_return_p): Handle vectors and arrays.
4440 (m68k_return_value): Handle arrays.
4441 (m68k_svr4_return_value): Fix single-element aggregate handling.
4442 Handle long double. Adjust for embedded ABI.
4443 (m68k_svr4_init_abi): Set pointer_result_regnum.
4444 (m68k_embedded_init_abi): New function.
4445 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4446 (m68k_osabi_sniffer): New function.
4447 (_initialize_m68k_tdep): Register osabi sniffer.
4448 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4449 member.
4450
4451 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4452
4453 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4454 with gdb::unique_xmalloc_ptr<char>.
4455
4456 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4457
4458 * xml-support.h (xml_fetch_another): Change type to be a
4459 function_view.
4460 (xml_process_xincludes): Remove baton parameter.
4461 (xml_fetch_content_from_file): Change baton parameter to
4462 dirname.
4463 * xml-support.c (struct xinclude_parsing_data)
4464 <xinclude_parsing_data>: Remove baton parameter.
4465 <fetcher_baton>: Remove.
4466 (xinclude_start_include): Adjust.
4467 (xml_process_xincludes): Adjust.
4468 (xml_fetch_content_from_file): Replace baton parameter with
4469 dirname.
4470 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4471 (xml_init_syscalls_info): Use a lambda.
4472 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4473 (file_read_description_xml): Use a lambda.
4474 (fetch_available_features_from_target): Change baton parameter
4475 to target_ops.
4476 (target_read_description_xml): Use a lambda.
4477 (target_fetch_description_xml): Use a lambda.
4478 (string_read_description_xml): Update.
4479
4480 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4481
4482 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4483 uses with type::endianity_is_not_default.
4484
4485 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * gdbtypes.h (struct type) <endianity_is_not_default,
4488 set_endianity_is_not_default>: New methods.
4489 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4490 type::endianity_is_not_default, change all write call sites to
4491 use type::set_endianity_is_not_default.
4492
4493 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4496 uses with type::is_fixed_instance.
4497
4498 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * gdbtypes.h (struct type) <is_fixed_instance,
4501 set_is_fixed_instance>: New methods.
4502 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4503 write call sites to use type::set_is_fixed_instance.
4504
4505 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4508 uses with type::is_gnu_ifunc.
4509
4510 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4513 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4514 use type::set_is_gnu_ifunc.
4515
4516 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4519 uses with type::stub_is_supported.
4520
4521 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4524 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4525 use type::set_stub_is_supported.
4526
4527 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4530 uses with type::is_vector.
4531
4532 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4535 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4536 use type::set_is_vector.
4537
4538 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4541 uses with type::has_varargs.
4542
4543 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4546 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4547 use type::set_has_varargs.
4548
4549 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4552 uses with type::is_prototyped.
4553
4554 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4557 New methods.
4558 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4559 call sites to use type::set_is_prototyped.
4560
4561 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4564 uses with type::target_is_stub.
4565
4566 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4569 New methods.
4570 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4571 sites to use type::set_target_is_stub.
4572
4573 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * gdbtypes.h (TYPE_STUB): Remove, replace all
4576 uses with type::is_stub.
4577
4578 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4581 (TYPE_STUB): Use type::is_stub, change all write call sites to
4582 use type::set_is_stub.
4583
4584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4585
4586 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4587 type::has_no_signedness.
4588
4589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbtypes.h (struct type) <has_no_signedness,
4592 set_has_no_signedness>: New methods.
4593 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4594 call sites to use type::set_has_no_signedness.
4595
4596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4599 type::is_unsigned.
4600
4601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4604 methods.
4605 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4606 sites to use type::set_is_unsigned.
4607
4608 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4609 Adam Renquinha <arenquinha@cimeq.qc.ca>
4610
4611 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4612 pointer and stack frame offset when unwinding.
4613
4614 2020-09-13 Pedro Alves <pedro@palves.net>
4615
4616 * NEWS: Document "-break-insert --qualified".
4617 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4618
4619 2020-09-13 Pedro Alves <pedro@palves.net>
4620
4621 * linespec.c (classify_mtype, compare_msyms): Delete.
4622 (search_minsyms_for_name): Remove classification logic. Instead
4623 filter out trampoline symbols if we also found an external
4624 function of the same name.
4625
4626 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4627
4628 * NEWS: Create a new section for the next release branch.
4629 Rename the section of the current branch, now that it has
4630 been cut.
4631
4632 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4633
4634 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4635 * version.in: Bump version to 11.0.50.DATE-git.
4636
4637 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4638
4639 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4640
4641 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4642 Felix Willgerodt <Felix.Willgerodt@intel.com>
4643
4644 * gdbarch.sh: Added bfloat16 type.
4645 * gdbarch.c: Regenerated.
4646 * gdbarch.h: Regenerated.
4647 * gdbtypes.c (floatformats_bfloat16): New struct.
4648 (gdbtypes_post_init): Add builtin_bfloat16.
4649 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4650 (floatformats_bfloat16): New struct.
4651 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4652 (i386_ymm_type): Add field "v16_bfloat16"
4653 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4654 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4655 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4656 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4657 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4658 * features/i386/64bit-avx512.c: Regenerated.
4659 * features/i386/64bit-sse.xml: Add bfloat16 type.
4660 * features/i386/64bit-sse.c: Regenerated.
4661
4662 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4663
4664 * i386-tdep.c (i386_zmm_type): Fix field names.
4665 (i386_ymm_type): Fix field names.
4666
4667 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4668
4669 * breakpoint.c: Fix typo in the help message of the
4670 "set breakpoint condition-evaluation" command.
4671
4672 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4673
4674 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4675 * (nbsd_nat_target::pid_to_exec_file)
4676 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4677 (nbsd_nat_target::post_startup_inferior)
4678 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4679 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4680 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4681 * (nbsd_thread_lister): Remove.
4682
4683 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4684
4685 * fork-inferior.c (startup_inferior): Avoid double free.
4686
4687 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4688
4689 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4690 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4691
4692 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4693
4694 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4695 * netbsd-nat.c: Include <sys/ptrace.h>.
4696 * (netbsd_nat::enable_proc_events): Add.
4697
4698 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4699
4700 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4701 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4702 (netbsd_nat::for_each_thread): Add.
4703 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4704 "gdbsupport/common-debug.h".
4705 * (netbsd_nat::netbsd_thread_lister)
4706 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4707 (netbsd_nat::for_each_thread): Add.
4708
4709 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4710
4711 * netbsd-nat.h: Include <unistd.h>.
4712 * (netbsd_nat::pid_to_exec_file): Add.
4713 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4714 * (netbsd_nat::pid_to_exec_file) Add.
4715
4716 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4717
4718 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4719
4720 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4721
4722 * netbsd-nat.h: New file.
4723 * netbsd-nat.c: Likewise.
4724
4725 2020-09-09 Tom Tromey <tromey@adacore.com>
4726
4727 * ada-lang.c (remove_extra_symbols): Do not increment when
4728 removing an element
4729
4730 2020-09-08 Tom Tromey <tromey@adacore.com>
4731
4732 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4733
4734 2020-09-08 Tom Tromey <tromey@adacore.com>
4735
4736 PR win32/25302:
4737 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4738 (gdb_bfd_init_data): New function.
4739 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4740
4741 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4742
4743 * infrun.c (fetch_inferior_event): Use
4744 `switch_to_target_no_thread` to switch the target.
4745
4746 2020-09-06 Tom Tromey <tom@tromey.com>
4747
4748 * symfile.h (dwarf2_free_objfile): Don't declare.
4749
4750 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4751
4752 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4753 to match 16 byte real/complex type generated by Flang compiler.
4754
4755 2020-09-03 Tom de Vries <tdevries@suse.de>
4756
4757 PR breakpoint/26546
4758 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4759 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4760
4761 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * maint.c (index_digits): New function.
4764 (struct maint_print_section_data): Remove.
4765 (print_bfd_section_info): Remove print_data parameter, add arg
4766 and index_digits.
4767 (print_objfile_section_info): Likewise.
4768 (print_bfd_section_info_maybe_relocated): Likewise (plus
4769 objfile).
4770 (maintenance_info_sections): Adjust calls.
4771
4772 2020-09-02 Tom Tromey <tromey@adacore.com>
4773
4774 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4775 for null pointers.
4776 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4777
4778 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4779
4780 * bcache.h (struct bcache) <insert>: Change type of `added` to
4781 pointer to bool.
4782 * bcache.c (bcache::insert): Likewise.
4783 * gdbtypes.c (check_types_worklist): Adjust.
4784 * psymtab.c (add_psymbol_to_bcache): Adjust.
4785
4786 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4787
4788 * corelow.c (unordered_set): Include.
4789 (class core_target): Add field 'm_core_unavailable_mappings'.
4790 (core_target::build_file_mappings): Print only one warning
4791 per inaccessible file. Add unavailable/broken mappings
4792 to m_core_unavailable_mappings.
4793 (core_target::xfer_partial): Call...
4794 (core_target::xfer_memory_via_mappings): New method.
4795
4796 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4799 type to bool.
4800
4801 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4802
4803 * dwarf2/read.c (struct field_info): Fix indentation.
4804
4805 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4806
4807 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4808 ordering in comment.
4809 * frame.c (frame_id_eq): Fix indentation.
4810
4811 2020-08-31 Scott Linder <scott@scottlinder.com>
4812 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4815 inline frame ids in outer frame.
4816
4817 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4820 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4821 (outer_frame_id): Use FID_STACK_OUTER instead of
4822 FID_STACK_INVALID.
4823 (frame_id_p): Don't check for outer_frame_id.
4824
4825 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4828 regnum/frame in value. Call allocate_value_lazy.
4829 * frame.c (frame_unwind_register_value): Use
4830 val_print_not_saved.
4831
4832 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4835
4836 2020-08-29 Pedro Alves <pedro@palves.net>
4837
4838 * progspace.c (print_program_space): Use all_inferiors. Switch to
4839 the inferior before calling target_pid_to_str.
4840
4841 2020-08-28 Tom Tromey <tom@tromey.com>
4842
4843 * xcoffread.c (xcoff_end_psymtab): Update comment.
4844 * dbxread.c (dbx_end_psymtab): Update comment.
4845
4846 2020-08-28 Tom de Vries <tdevries@suse.de>
4847
4848 PR breakpoint/26544
4849 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4850 event_location.
4851 (create_breakpoint): Same.
4852 (base_breakpoint_decode_location): Same.
4853 (bkpt_create_sals_from_location): Same.
4854 (bkpt_decode_location): Same.
4855 (bkpt_probe_create_sals_from_location): Same.
4856 (bkpt_probe_decode_location): Same.
4857 (tracepoint_create_sals_from_location): Same.
4858 (tracepoint_decode_location): Same.
4859 (tracepoint_probe_decode_location): Same.
4860 (strace_marker_create_sals_from_location): Same.
4861 (strace_marker_decode_location): Same.
4862 (create_sals_from_location_default): Same.
4863 (decode_location_default): Same.
4864 * breakpoint.h (struct breakpoint_ops): Same.
4865 (create_breakpoint): Same.
4866 * linespec.h (decode_line_full): Same.
4867 * linespec.c (decode_line_full): Same. Throw error if
4868 result.size () == 0.
4869
4870 2020-08-27 Pedro Alves <pedro@palves.net>
4871
4872 PR gdb/26524
4873 * breakpoint.c (until_break_fsm) <location_breakpoint,
4874 caller_breakpoint>: Delete fields.
4875 <breakpoints>: New field.
4876 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4877 two individual breakpoints.
4878 (until_break_fsm::should_stop): Loop over breakpoints in the
4879 breakpoint vector.
4880 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4881 vector.
4882 (until_break_command): Handle location expanding into multiple
4883 sals.
4884
4885 2020-08-27 Pedro Alves <pedro@palves.net>
4886
4887 PR gdb/26523
4888 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4889 bp_until breakpoints user-specified locations. Update intro
4890 comment.
4891
4892 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4893
4894 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4895 gdb_bfd_sections): New.
4896 * maint.c (print_bfd_section_info): Change param type to
4897 maint_print_section_data.
4898 (print_objfile_section_info): Likewise.
4899 (print_bfd_section_info_maybe_relocated): Likewise.
4900 (maintenance_info_sections): Use gdb_bfd_sections.
4901
4902 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4903
4904 * MAINTAINERS: Add ARC target and maintainer.
4905
4906 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4907
4908 * configure.tgt: ARC support for GNU/Linux.
4909 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4910 * arc-linux-tdep.c: New file.
4911 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4912 * arc-tdep.c (arc_write_pc): Use it.
4913
4914 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4915
4916 * arc-tdep.c (arc_check_for_hardware_loop): New.
4917 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4918
4919 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4920
4921 * arc-tdep.h: Include "gdbarch.h".
4922
4923 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4924
4925 * arch/arc.h
4926 (arc_gdbarch_features): New class to stir the selection of target XML.
4927 (arc_create_target_description): Use FEATURES to choose XML target.
4928 (arc_lookup_target_description): Use arc_create_target_description
4929 to create _new_ target descriptions or return the already created
4930 ones if the FEATURES is the same.
4931 * arch/arc.c: Implementation of prototypes described above.
4932 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4933 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4934 * arc-tdep.c (*_feature_name): Make feature names consistent.
4935 (arc_register_feature): A new struct to hold information about
4936 registers of a particular target/feature.
4937 (arc_check_tdesc_feature): Check if XML provides registers in
4938 compliance with ARC_REGISTER_FEATURE structs.
4939 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4940 (determine_*_reg_feature_set): Which feature name to look for.
4941 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4942 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4943 to expected ISA enums to be used in arc_gdbarch_features structs.
4944 * features/Makefile (FEATURE_XMLFILES): Add new files.
4945 * gdb/features/arc/v1-aux.c: New file.
4946 * gdb/features/arc/v1-aux.xml: Likewise.
4947 * gdb/features/arc/v1-core.c: Likewise.
4948 * gdb/features/arc/v1-core.xml: Likewise.
4949 * gdb/features/arc/v2-aux.c: Likewise.
4950 * gdb/features/arc/v2-aux.xml: Likewise.
4951 * gdb/features/arc/v2-core.c: Likewise.
4952 * gdb/features/arc/v2-core.xml: Likewise.
4953 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4954
4955 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4956 Andrew Burgess <andrew.burgess@embecosm.com>
4957
4958 PR m2/26372
4959 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4960 an assert. Remove single element array indexing pattern as the
4961 MULTI_SUBSCRIPT support will handle this case too.
4962
4963 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4964
4965 * value.h (valprint_check_validity): Move declaration from
4966 here...
4967 * valprint.h (valprint_check_validity): ... to here.
4968
4969 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * debug.h: New file.
4972 * debug.c (debug_prefixed_vprintf): New function.
4973 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4974 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4975
4976 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * infrun.h (infrun_debug_printf_1): New function declaration.
4979 (infrun_debug_printf): New macro.
4980 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4981 throughout.
4982 (infrun_debug_printf): New function.
4983 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4984 (handle_jit_event): Likewise.
4985
4986 2020-08-21 Mark Wielaard <mark@klomp.org>
4987
4988 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4989
4990 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * frame.c (enum class frame_id_status): New.
4993 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4994 (fprintf_frame): Update.
4995 (compute_frame_id): Set frame id status to "computing" on entry.
4996 Set it back to "not_computed" on failure and to "computed" on
4997 success.
4998 (get_frame_id): Assert the frame id is not being computed.
4999 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5000 (create_new_frame): Likewise.
5001 (frame_cleanup_after_sniffer): Update assert.
5002
5003 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * regcache.c (pid_ptid_regcache_map): New type.
5006 (target_ptid_regcache_map): Remove.
5007 (target_pid_ptid_regcache_map): New type.
5008 (regcaches): Change type to target_pid_ptid_regcache_map.
5009 (get_thread_arch_aspace_regcache): Update.
5010 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5011 case.
5012 (regcaches_size): Update.
5013 (regcache_count): Update.
5014 (registers_changed_ptid_target_pid_test): New.
5015 (_initialize_regcache): Register new test.
5016
5017 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * regcache.c (regcache_count): New.
5020 (struct regcache_test_data): New.
5021 (regcache_test_data_up): New.
5022 (populate_regcaches_for_test): New.
5023 (regcaches_test): Remove.
5024 (get_thread_arch_aspace_regcache_test): New.
5025 (registers_changed_ptid_all_test): New.
5026 (registers_changed_ptid_target_test): New.
5027 (registers_changed_ptid_target_ptid_test): New.
5028 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5029 (_initialize_regcache): Register new tests.
5030
5031 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5032
5033 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5034 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5035 gdbarch and aspace parameter. Use current inferior's aspace.
5036 Validate regcache's arch value.
5037 (regcaches_test): Update.
5038
5039 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5040
5041 * regcache.c (regcaches_test): Call registers_changed.
5042
5043 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5044
5045 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5046
5047 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5048
5049 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5050 to find the end of prologue for flang compiled binaries.
5051 * arm-tdep.c (arm_skip_prologue): Likewise.
5052 * i386-tdep.c (i386_skip_prologue): Likewise.
5053 * producer.c (producer_is_llvm): New function.
5054 (producer_parsing_tests): Added new tests for clang/flang.
5055 * producer.h (producer_is_llvm): New declaration.
5056
5057 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5058
5059 * linux-nat.c (linux_nat_debug_printf): New function.
5060 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5061
5062 2020-08-18 Aaron Merey <amerey@redhat.com>
5063
5064 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5065 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5066 (CLIBS): Add DEBUGINFOD_LIBS.
5067
5068 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5069
5070 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5071 'gdbarch_num_regs'.
5072
5073 2020-08-17 Tom Tromey <tromey@adacore.com>
5074
5075 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5076 ada_get_decoded_value returns NULL.
5077
5078 2020-08-17 Tom Tromey <tromey@adacore.com>
5079
5080 * python/py-inferior.c (infpy_search_memory): Use
5081 gdb_py_object_from_ulongest.
5082 * python/py-infevents.c (create_inferior_call_event_object)
5083 (create_memory_changed_event_object): Use
5084 gdb_py_object_from_ulongest.
5085 * python/py-linetable.c (ltpy_entry_get_pc): Use
5086 gdb_py_object_from_ulongest.
5087
5088 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * loc.c (class symbol_needs_eval_context): Fix indentation.
5091
5092 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5095 bool.
5096
5097 2020-08-17 Tom de Vries <tdevries@suse.de>
5098
5099 PR gdb/26393
5100 * gdbtypes.c (dump_dynamic_prop): New function.
5101 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5102
5103 2020-08-15 Tom de Vries <tdevries@suse.de>
5104
5105 PR backtrace/26390
5106 * stack.c (print_frame_args): Temporarily set the selected
5107 frame to FRAME while printing the frame's arguments.
5108
5109 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5110
5111 PR breakpoints/26385
5112 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5113 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5114
5115 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5116
5117 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5118 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5119 and >= to check return value instead of == -1 and != -1.
5120
5121 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5122
5123 * utils.h (class gdb_argv) <as_array_view>: New method.
5124 * utils.c (gdb_argv_as_array_view_test): New.
5125 (_initialize_utils): Register selftest.
5126 * maint.c (maintenance_selftest): Use the new method.
5127
5128 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5129
5130 * target.h (supports_dumpcore, dumpcore): New
5131 function declarations.
5132 * target.c (supports_dumpcore, dumpcore): New
5133 functions.
5134 * target-delegates.c: Rebuild.
5135 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5136 and target_dumpcore ().
5137
5138 2020-08-13 Aaron Merey <amerey@redhat.com>
5139
5140 * debuginfod-support.c: Replace global variables with user_data.
5141
5142 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5143
5144 * maint.c (maintenance_selftest): Split args and pass array_view
5145 to run_tests.
5146
5147 2020-08-12 Luis Machado <luis.machado@linaro.org>
5148
5149 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5150 type's length.
5151 Use %s and pulongest to print the length.
5152
5153 2020-08-12 Pedro Alves <palves@redhat.com>
5154
5155 * NEWS: Move "Multi-target debugging support" item to the
5156 "Changes since GDB 9" section.
5157
5158 2020-08-12 Pedro Alves <palves@redhat.com>
5159
5160 PR gdb/26336
5161 * progspace.c (program_space::remove_objfile): Invalidate the
5162 frame cache.
5163
5164 2020-08-11 Tom de Vries <tdevries@suse.de>
5165
5166 * MAINTAINERS: Mark ms1 as deleted.
5167
5168 2020-08-10 Luis Machado <luis.machado@linaro.org>
5169
5170 PR gdb/26310
5171
5172 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5173 act accordingly.
5174 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5175 movz/str/stur/stp skipping behavior.
5176
5177 2020-08-10 Luis Machado <luis.machado@linaro.org>
5178
5179 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5180 struct user_sve_header instead of struct sve_context.
5181
5182 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5183
5184 * read.h (dwarf2_fetch_die_loc_sect_off,
5185 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5186 `void *` parameter with function_view.
5187 * read.c (dwarf2_fetch_die_loc_sect_off,
5188 dwarf2_fetch_die_loc_cu_off): Likewise.
5189 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5190 (per_cu_dwarf_call): Adjust.
5191 (get_frame_address_in_block_wrapper): Remove.
5192 (indirect_synthetic_pointer): Adjust.
5193 (get_ax_pc): Remove.
5194 (dwarf2_compile_expr_to_ax): Adjust.
5195
5196 2020-08-08 Tom de Vries <tdevries@suse.de>
5197
5198 PR build/26344
5199 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5200 constructor.
5201 * regcache.c (get_thread_arch_aspace_regcache): Same.
5202
5203 2020-08-07 Tom Tromey <tromey@adacore.com>
5204
5205 * ravenscar-thread.c
5206 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5207 New method.
5208 (ravenscar_thread_target::wait): Check
5209 runtime_initialized.
5210 (ravenscar_thread_target::prepare_to_store)
5211 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5212 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5213 (ravenscar_thread_target::stopped_by_watchpoint)
5214 (ravenscar_thread_target::stopped_data_address)
5215 (ravenscar_thread_target::core_of_thread): Use
5216 scoped_restore_current_thread and
5217 set_base_thread_from_ravenscar_task.
5218
5219 2020-08-07 Tom Tromey <tromey@adacore.com>
5220
5221 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5222
5223 2020-08-07 Tom Tromey <tromey@adacore.com>
5224
5225 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5226 update_inferior_ptid before update_thread_list.
5227 (temporarily_change_regcache_ptid): New class.
5228 (ravenscar_thread_target::fetch_registers)
5229 (ravenscar_thread_target::store_registers)
5230 (ravenscar_thread_target::prepare_to_store): Use base thread when
5231 forwarding operation.
5232
5233 2020-08-07 Tom Tromey <tromey@adacore.com>
5234
5235 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5236 "is_pid" case.
5237
5238 2020-08-07 Tom Tromey <tromey@adacore.com>
5239
5240 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5241 New methods.
5242 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5243 first.
5244 (ravenscar_thread_target::add_thread): Rename from
5245 ravenscar_add_thread.
5246 (ravenscar_thread_target::update_thread_list): Use a lambda.
5247 (ravenscar_thread_target::xfer_partial): New method.
5248
5249 2020-08-07 Tom Tromey <tromey@adacore.com>
5250
5251 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5252 gdb::function_view.
5253 (iterate_over_live_ada_tasks): Change type of argument.
5254 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5255 of argument.
5256
5257 2020-08-07 Tom Tromey <tromey@adacore.com>
5258
5259 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5260 Remove.
5261 (ravenscar_thread_target::extra_thread_info): Remove.
5262 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5263 defer to target beneath for non-Ravenscar threads.
5264
5265 2020-08-07 Tom Tromey <tromey@adacore.com>
5266
5267 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5268 get_base_thread_from_ravenscar_task>: Now methods.
5269 <m_cpu_map>: New member.
5270 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5271 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5272 (ravenscar_thread_target::task_is_currently_active): Update.
5273 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5274 Now a method.
5275 (ravenscar_thread_target::add_active_thread): Put initial thread
5276 into the m_cpu_map.
5277
5278 2020-08-07 Tom Tromey <tromey@adacore.com>
5279
5280 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5281 event_ptid.
5282
5283 2020-08-07 Tom Tromey <tromey@adacore.com>
5284
5285 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5286 runtime_initialized.
5287
5288 2020-08-07 Tom Tromey <tromey@adacore.com>
5289
5290 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5291 add_active_thread.
5292 (ravenscar_thread_target::add_active_thread): Now public.
5293 (ravenscar_inferior_created): Call add_active_thread after pushing
5294 the target.
5295
5296 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * regcache.c (ptid_regcache_map): New type.
5299 (target_ptid_regcache_map): New type.
5300 (regcaches): Change type to target_ptid_regcache_map.
5301 (get_thread_arch_aspace_regcache): Update to regcaches' new
5302 type.
5303 (regcache_thread_ptid_changed): Likewise.
5304 (registers_changed_ptid): Likewise.
5305 (regcaches_size): Likewise.
5306 (regcaches_test): Update.
5307 (regcache_thread_ptid_changed): Update.
5308 * regcache.h (regcache_up): New type.
5309 * gdbsupport/ptid.h (hash_ptid): New struct.
5310
5311 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * observable.h (thread_ptid_changed): Add parameter
5314 `process_stratum_target *`.
5315 * infrun.c (infrun_thread_ptid_changed): Add parameter
5316 `process_stratum_target *` and use it.
5317 (selftests): New namespace.
5318 (infrun_thread_ptid_changed): New function.
5319 (_initialize_infrun): Register selftest.
5320 * regcache.c (regcache_thread_ptid_changed): Add parameter
5321 `process_stratum_target *` and use it.
5322 (regcache_thread_ptid_changed): New function.
5323 (_initialize_regcache): Register selftest.
5324 * thread.c (thread_change_ptid): Pass target to
5325 thread_ptid_changed observable.
5326
5327 2020-08-06 Caroline Tice <cmtice@google.com>
5328
5329 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5330 (struct dwp_sections): Update field comments. Add loclists and
5331 rnglists fields.
5332 (struct virtual_v2_dwo_sections): Rename struct to
5333 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5334 size & offset fields for loclists and rnglists.
5335 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5336 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5337 skipping dummy type units.
5338 (create_dwp_hash_table): Update the large comment above the function to
5339 discuss Version 5 DWP files as well, with references. Update all the
5340 version checks in the function to check for version 5 as well. Add new
5341 section at the end to create dwp hash table for version 5.
5342 (create_dwp_v2_section): Rename function to
5343 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5344 Add V5 to error message text.
5345 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5346 into calls to create_dwp_v2_or_v5_section.
5347 (create_dwo_unit_in_dwp_v5): New function.
5348 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5349 check for version2; add else clause to handle version 5.
5350 (open_and_init_dwo_file): Add code to check dwarf version & only call
5351 create_debug_types_hash_table (with sections.types) if version is not 5;
5352 else call create_debug_type_hash_table, with sections.info.
5353 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5354 version 5.
5355 (dwarf2_locate_v5_dwp_sections): New function.
5356 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5357 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5358
5359 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * regcache.h (class regcache): Remove friend
5362 registers_changed_ptid.
5363 <regcache_thread_ptid_changed>: Remove.
5364 <regcaches>: Remove.
5365 * regcache.c (regcache::regcaches): Rename to...
5366 (regcaches): ... this. Make static.
5367 (get_thread_arch_aspace_regcache): Update.
5368 (regcache::regcache_thread_ptid_changed): Rename to...
5369 (regcache_thread_ptid_changed): ... this. Update.
5370 (class regcache_access): Remove.
5371 (regcaches_test): Update.
5372 (_initialize_regcache): Update.
5373 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5374 <forward_list>.
5375
5376 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * regcache.h (class regcache) <current_regcache>: Rename to...
5379 <regcaches>: ... this. Move doc here.
5380 * regcache.c (regcache::current_regcache) Rename to...
5381 (regcache::regcaches): ... this. Move doc to header.
5382 (get_thread_arch_aspace_regcache): Update.
5383 (regcache::regcache_thread_ptid_changed): Update.
5384 (registers_changed_ptid): Update.
5385 (class regcache_access) <current_regcache_size>: Rename to...
5386 <regcaches_size>: ... this.
5387 (current_regcache_test): Rename to...
5388 (regcaches_test): ... this.
5389 (_initialize_regcache): Update.
5390
5391 2020-08-06 Victor Collod <vcollod@nvidia.com>
5392
5393 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5394
5395 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5396
5397 * corelow.c (core_target::build_file_mappings): Don't output
5398 null pathname in warning.
5399
5400 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5403 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5404 gdb.dwarf2/dw2-single-line-discriminators.exp,
5405 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5406
5407 2020-08-05 Tom Tromey <tromey@adacore.com>
5408
5409 PR rust/26197:
5410 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5411 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5412 Fix off-by-one and type size errors in ordinary case.
5413
5414 2020-08-05 Tom de Vries <tdevries@suse.de>
5415
5416 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5417 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5418
5419 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * frame.h (frame_id_p): Return bool.
5422 (frame_id_artificial_p): Return bool.
5423 (frame_id_eq): Return bool.
5424 (has_stack_frames): Return bool.
5425 (get_selected_frame): Fix typo in comment.
5426 (get_frame_pc_if_available): Return bool.
5427 (get_frame_address_in_block_if_available): Return bool.
5428 (get_frame_func_if_available): Return bool.
5429 (read_frame_register_unsigned): Return bool.
5430 (get_frame_register_bytes): Return bool.
5431 (safe_frame_unwind_memory): Return bool.
5432 (deprecated_frame_register_read): Return bool.
5433 (frame_unwinder_is): Return bool.
5434 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5435 bool.
5436 <this_id::p>: Likewise.
5437 <prev_p>: Likewise.
5438 (frame_stash_add): Return bool.
5439 (get_frame_id): Use bool.
5440 (frame_id_build_special) Use bool.
5441 (frame_id_build_unavailable_stack): Use bool.
5442 (frame_id_build): Use bool.
5443 (frame_id_p): Return bool, use true/false instead of 1/0.
5444 (frame_id_artificial_p): Likewise.
5445 (frame_id_eq): Likewise.
5446 (frame_id_inner): Likewise.
5447 (get_frame_func_if_available): Likewise.
5448 (read_frame_register_unsigned): Likewise.
5449 (deprecated_frame_register_read): Likewise.
5450 (get_frame_register_bytes): Likewise.
5451 (has_stack_frames): Likewise.
5452 (inside_main_func): Likewise.
5453 (inside_entry_func): Likewise.
5454 (get_frame_pc_if_available): Likewise.
5455 (get_frame_address_in_block_if_available): Likewise.
5456 (frame_unwinder_is): Likewise.
5457 (safe_frame_unwind_memory): Likewise.
5458 (frame_unwind_arch): Likewise.
5459
5460 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5461
5462 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5463 type to cached_copy_status.
5464 (fprintf_frame): Adjust.
5465 (get_frame_func_if_available): Adjust.
5466 (frame_cleanup_after_sniffer): Adjust.
5467
5468 2020-08-04 Mark Wielaard <mark@klomp.org>
5469
5470 * MAINTAINERS (Write After Approval): Update email address.
5471
5472 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5473
5474 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5475 dynamic_prop::const_val.
5476
5477 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5480 dynamic_prop::kind.
5481
5482 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5483
5484 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5485
5486 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5487
5488 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5489
5490 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5491 Jose E. Marchesi <jose.marchesi@oracle.com>
5492
5493 * configure.tgt: Add entry for bpf-*-*.
5494 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5495 (ALLDEPFILES): Add bpf-tdep.c.
5496 * bpf-tdep.c: New file.
5497 * MAINTAINERS: Add bpf target and maintainer.
5498 * NEWS: Mention the support for the new target.
5499
5500 2020-08-04 Tom de Vries <tdevries@suse.de>
5501
5502 PR symtab/23270
5503 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5504 Error.
5505
5506 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5507
5508 * syscalls/freebsd.xml: Regenerate.
5509
5510 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5511
5512 * syscalls/update-freebsd.sh: Fix usage and year range.
5513
5514 2020-08-03 Tom de Vries <tdevries@suse.de>
5515
5516 PR symtab/26333
5517 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5518 DW_LNE_lo_user/DW_LNE_hi_user range.
5519
5520 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 PR ada/26318
5523 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5524 kind.
5525
5526 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5527
5528 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5529
5530 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5531
5532 * breakpoint.c (set_breakpoint_condition): Update the condition
5533 expressions after checking that the input condition string parses
5534 successfully and does not contain junk at the end.
5535
5536 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5537
5538 * breakpoint.c (set_breakpoint_condition): Update the
5539 condition string after parsing the new condition successfully.
5540
5541 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5542
5543 * proc-api.c (_STRUCTURED_PROC): Don't define.
5544 * proc-events.c: Likewise.
5545 * proc-flags.c: Likewise.
5546 * proc-why.c: Likewise.
5547 * procfs.c: Likewise.
5548
5549 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5550 * configure, config.in: Regenerate.
5551
5552 2020-07-30 Tom de Vries <tdevries@suse.de>
5553
5554 PR build/26320
5555 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5556 m_red/m_green/m_blue in a union.
5557
5558 2020-07-29 Tom de Vries <tdevries@suse.de>
5559
5560 PR tdep/26280
5561 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5562
5563 2020-07-28 Tom Tromey <tromey@adacore.com>
5564
5565 PR symtab/26270:
5566 * symtab.h (find_pc_partial_function_sym): Declare.
5567 * cli/cli-cmds.c (disassemble_command): Use
5568 find_pc_partial_function_sym. Check asm_demangle.
5569 * blockframe.c (cache_pc_function_sym): New global.
5570 (cache_pc_function_name): Remove.
5571 (clear_pc_function_cache): Update.
5572 (find_pc_partial_function_sym): New function, from
5573 find_pc_partial_function.
5574 (find_pc_partial_function): Rewrite using
5575 find_pc_partial_function_sym.
5576
5577 2020-07-28 Tom Tromey <tromey@adacore.com>
5578
5579 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5580 help. Add usage.
5581
5582 2020-07-28 Tom Tromey <tromey@adacore.com>
5583
5584 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5585 <DW_OP_GNU_variable_value>: Cast to address type.
5586
5587 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5588
5589 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5590 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5591 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5592 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5593 (nbsd_get_siginfo_type): New.
5594 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5595 (_initialize_nbsd_tdep): New.
5596
5597 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5598
5599 PR binutils/26301
5600 * configure: Regenerated.
5601
5602 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5603
5604 PR binutils/26301
5605 * configure: Regenerated.
5606
5607 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5608
5609 * python/py-frame.c: Remove 'user-regs.h' include.
5610 (frapy_read_register): Rewrite to make use of
5611 gdbpy_parse_register_id.
5612 * python/py-registers.c (gdbpy_parse_register_id): New function,
5613 moved here from python/py-unwind.c. Updated the return type, and
5614 also accepts register descriptor objects.
5615 * python/py-unwind.c: Remove 'user-regs.h' include.
5616 (pyuw_parse_register_id): Moved to python/py-registers.c.
5617 (unwind_infopy_add_saved_register): Update to use
5618 gdbpy_parse_register_id.
5619 (pending_framepy_read_register): Likewise.
5620 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5621
5622 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * python/py-registers.c: Add 'user-regs.h' include.
5625 (register_descriptor_iter_find): New function.
5626 (register_descriptor_iterator_object_methods): New static global
5627 methods array.
5628 (register_descriptor_iterator_object_type): Add pointer to methods
5629 array.
5630
5631 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5632
5633 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5634 for all architectures on FreeBSD 11.3 and later.
5635
5636 2020-07-27 Tom Tromey <tromey@adacore.com>
5637
5638 * gcore.h (load_corefile): Don't declare.
5639
5640 2020-07-27 Tom de Vries <tdevries@suse.de>
5641
5642 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5643 * config.in: Regenerate.
5644 * configure: Regenerate.
5645
5646 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5647
5648 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5649 ws2tcpip.h. When checking whether socklen_t type is defined, use
5650 ws2tcpip.h if it is available and sys/socket.h isn't.
5651 * configure: Regenerate.
5652 * config.in: Regenerate.
5653
5654 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 PR fortran/23051
5657 PR fortran/26139
5658 * valops.c (value_ind): Pass address to
5659 readjust_indirect_value_type.
5660 * value.c (readjust_indirect_value_type): Make parameter
5661 non-const, and add extra address parameter. Resolve original type
5662 before using it.
5663 * value.h (readjust_indirect_value_type): Update function
5664 signature and comment.
5665
5666 2020-07-25 Tom de Vries <tdevries@suse.de>
5667
5668 PR symtab/26243
5669 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5670 entries.
5671
5672 2020-07-24 Aaron Merey <amerey@redhat.com>
5673
5674 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5675 * configure: Rebuild.
5676
5677 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5678
5679 PR corefiles/26294
5680 * corelow.c (_initialize_corelow): Add period to help text
5681 for "maintenance print core-file-backed-mappings".
5682
5683 2020-07-23 Pedro Alves <pedro@palves.net>
5684
5685 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5686 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5687 meanwhile.
5688 * frame.c (frame_cache_generation, get_frame_cache_generation):
5689 New.
5690 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5691 (get_prev_frame_if_no_cycle): On exception, don't touch
5692 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5693 * frame.h (get_frame_cache_generation): Declare.
5694
5695 2020-07-23 Tom de Vries <tdevries@suse.de>
5696
5697 PR tui/26282
5698 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5699 New default constructor.
5700
5701 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5704 exclude non-statement entries.
5705
5706 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5707
5708 * NEWS (New commands): Mention new command
5709 "maintenance print core-file-backed-mappings".
5710
5711 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5712
5713 * corelow.c (gdbcmd.h): Include.
5714 (core_target::info_proc_mappings): New method.
5715 (get_current_core_target): New function.
5716 (maintenance_print_core_file_backed_mappings): New function.
5717 (_initialize_corelow): Add core-file-backed-mappings to
5718 "maint print" commands.
5719
5720 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5721
5722 * linux-tdep.c (dump_note_entry_p): New function.
5723 (linux_dump_mapping_p_ftype): New typedef.
5724 (linux_find_memory_regions_full): Add new parameter,
5725 should_dump_mapping_p.
5726 (linux_find_memory_regions): Adjust call to
5727 linux_find_memory_regions_full.
5728 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5729 call to linux_find_memory_regions_full.
5730
5731 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5732
5733 * corelow.c (solist.h, unordered_map): Include.
5734 (class core_target): Add field m_core_file_mappings and
5735 method build_file_mappings.
5736 (core_target::core_target): Call build_file_mappings.
5737 (core_target::~core_target): Free memory associated with
5738 m_core_file_mappings.
5739 (core_target::build_file_mappings): New method.
5740 (core_target::xfer_partial): Use m_core_file_mappings
5741 for memory transfers.
5742 * linux-tdep.c (linux_read_core_file_mappings): New
5743 function.
5744 (linux_core_info_proc_mappings): Rewrite to use
5745 linux_read_core_file_mappings.
5746 (linux_init_abi): Register linux_read_core_file_mappings.
5747
5748 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5749
5750 * arch-utils.c (default_read_core_file_mappings): New function.
5751 * arch-utils.c (default_read_core_file_mappings): Declare.
5752 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5753 * gdbarch.h, gdbarch.c: Regenerate.
5754
5755 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5756
5757 PR corefiles/25631
5758 * corelow.c (core_target:xfer_partial): Revise
5759 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5760 case after first checking the stratum beneath the core
5761 target.
5762 (has_all_memory): Return true.
5763 * target.c (raw_memory_xfer_partial): Revise comment
5764 regarding use of has_all_memory.
5765
5766 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5767
5768 * exec.h (section_table_xfer_memory): Revise declaration,
5769 replacing section name parameter with an optional callback
5770 predicate.
5771 * exec.c (section_table_xfer_memory): Likewise.
5772 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5773 of section_table_xfer_memory.
5774
5775 2020-07-22 Tom Tromey <tromey@adacore.com>
5776
5777 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5778 lookup_symbol_search_name.
5779
5780 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5781
5782 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5783 redundant local variable.
5784 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5785 reference, not pointer, update code accordingly.
5786
5787 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5788 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5789
5790 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5791 * jit.c (jit_breakpoint_re_set_internal): Use the
5792 `skip_jit_symbol_lookup` field.
5793
5794 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5795 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5796
5797 * jit.c (jit_read_descriptor): Define the descriptor address once,
5798 use twice.
5799 (jit_breakpoint_deleted): Move the declaration of the loop variable
5800 `iter` into the loop header.
5801 (jit_breakpoint_re_set_internal): Move the declaration of the local
5802 variable `objf_data` to the first point of definition.
5803 (jit_event_handler): Move the declaration of local variables
5804 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5805 Rename `objf` to `jited`.
5806
5807 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5808
5809 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5810 Remove.
5811 * jit.c (get_jiter_objfile_data): Update.
5812
5813 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5814 Simon Marchi <simon.marchi@polymtl.ca>
5815
5816 * jit.c (struct jit_program_space_data): Remove.
5817 (jit_program_space_key): Remove.
5818 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5819 stuff.
5820 (get_jit_program_space_data): Remove.
5821 (jit_breakpoint_deleted): Iterate on all of the program space's
5822 objfiles.
5823 (jit_inferior_init): Likewise.
5824 (jit_breakpoint_re_set_internal): Likewise. Also change return
5825 type to void.
5826 (jit_breakpoint_re_set): Pass current_program_space to
5827 jit_breakpoint_re_set_internal.
5828
5829 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * jit.h (struct jiter_objfile_data) <cached_code_address,
5832 jit_breakpoint>: Move to here from ...
5833 * jit.c (jit_program_space_data): ... here.
5834 (jiter_objfile_data::~jiter_objfile_data): Update.
5835 (jit_breakpoint_deleted): Update.
5836 (jit_breakpoint_re_set_internal): Update.
5837
5838 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5839
5840 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5841 checks.
5842 (jit_read_descriptor): Remove NULL check.
5843 (jit_event_handler): Add an assertion.
5844
5845 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5846
5847 * jit.h (struct jit_objfile_data): Split into...
5848 (struct jiter_objfile_data): ... this ...
5849 (struct jited_objfile_data): ... and this.
5850 * objfiles.h (struct objfile) <jit_data>: Remove.
5851 <jiter_data, jited_data>: New fields.
5852 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5853 (jiter_objfile_data::~jiter_objfile_data): ... this.
5854 (get_jit_objfile_data): Rename to ...
5855 (get_jiter_objfile_data): ... this.
5856 (add_objfile_entry): Update.
5857 (jit_read_descriptor): Use get_jiter_objfile_data.
5858 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5859 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5860 (jit_inferior_exit_hook): Use objfile's jited_data field.
5861
5862 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * jit.h: Forward-declare `struct minimal_symbol`.
5865 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5866 constructor, destructor, and an objfile* field.
5867 * jit.c (jit_objfile_data): Remove.
5868 (struct jit_objfile_data): Migrate from here to jit.h.
5869 (jit_objfile_data::~jit_objfile_data): New destructor
5870 implementation with code moved from free_objfile_data.
5871 (free_objfile_data): Delete.
5872 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5873 (jit_find_objf_with_entry_addr): Ditto.
5874 (jit_inferior_exit_hook): Ditto.
5875 (_initialize_jit): Remove the call to
5876 register_objfile_data_with_cleanup.
5877 * objfiles.h (struct objfile) <jit_data>: New field.
5878
5879 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5880
5881 * jit.h: Forward-declare `struct objfile`.
5882 (jit_event_handler): Add a second parameter, the JITer objfile.
5883 * jit.c (jit_read_descriptor): Change the signature to take the
5884 JITer objfile as an argument instead of the jit_program_space_data.
5885 (jit_inferior_init): Update the call to jit_read_descriptor.
5886 (jit_event_handler): Use the new JITer objfile argument when calling
5887 jit_read_descriptor.
5888 * breakpoint.c (handle_jit_event): Update the call to
5889 jit_event_handler to pass the JITer objfile.
5890
5891 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5892
5893 * gdbarch.c: Regenerate.
5894 * gdbarch.h: Regenerate.
5895 * gdbarch.sh (handle_segmentation_fault): Remove method.
5896 * infrun.c (handle_segmentation_fault): Remove.
5897 (print_signal_received_reason): Remove call to
5898 handle_segmentation_fault.
5899
5900 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5901
5902 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5903 Rename to sparc64_linux_report_signal_info and add siggnal
5904 argument.
5905 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5906 instead of sparc64_linux_handle_segmentation_fault.
5907
5908 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5909
5910 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5911 i386_linux_report_signal_info instead of
5912 i386_linux_handle_segmentation_fault.
5913 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5914 to i386_linux_report_signal_info and add siggnal argument.
5915 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5916 of i386_linux_handle_segmentation_fault.
5917 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5918 to i386_linux_report_signal_info and add siggnal argument.
5919
5920 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5921
5922 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5923 hook if present.
5924
5925 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5926
5927 * gdbarch.c: Regenerate.
5928 * gdbarch.h: Regenerate.
5929 * gdbarch.sh (report_signal_info): New method.
5930 * infrun.c (print_signal_received_reason): Invoke gdbarch
5931 report_signal_info hook if present.
5932
5933 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5934
5935 * python/py-registers.c : Add 'unordered_map' include.
5936 (gdbpy_new_reggroup): Renamed to...
5937 (gdbpy_get_reggroup): ...this. Update to only create register
5938 group descriptors when needed.
5939 (gdbpy_reggroup_iter_next): Update.
5940
5941 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 * python/py-registers.c (gdbpy_register_object_data): New static
5944 global.
5945 (gdbpy_register_object_data_init): New function.
5946 (gdbpy_new_register_descriptor): Renamed to...
5947 (gdbpy_get_register_descriptor): ...this, and update to reuse
5948 existing register descriptors where possible.
5949 (gdbpy_register_descriptor_iter_next): Update.
5950 (gdbpy_initialize_registers): Register new gdbarch data.
5951
5952 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5953
5954 * linux-nat.c (stopped_pids): Make static.
5955
5956 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5957
5958 PR ada/26235
5959 * gdbtypes.c (ada_discrete_type_low_bound,
5960 ada_discrete_type_high_bound): Handle undefined bounds.
5961
5962 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5963
5964 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5965 declaration.
5966 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5967 function.
5968
5969 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5970
5971 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5972 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5973 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5974 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5975 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5976 method.
5977
5978 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5979
5980 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5981 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5982 which are deprecated in Guile 3.0.
5983 * configure.ac (try_guile_versions): Add "guile-3.0".
5984 * configure (try_guile_versions): Regenerate.
5985 * NEWS: Update entry.
5986
5987 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5988 Doug Evans <dje@google.com>
5989
5990 PR gdb/21104
5991 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5992 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5993 USING_GUILE_BEFORE_2_2.
5994 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5995 Change type to 'scm_t_port_type *'.
5996 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5997 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5998 parameter and honor it. Update callers.
5999 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6000 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6001 functions.
6002 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6003 USING_GUILE_BEFORE_2_2.
6004 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6005 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6006 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6007 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6008 and 'SCM_PORT_TYPE'.
6009 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6010 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6011 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6012 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6013 [!USING_GUILE_BEFORE_2_2]: New functions.
6014 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6015 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6016 'gdbscm_memory_port_read'.
6017 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6018 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6019 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6020 function.
6021 (ioscm_init_memory_port): Remove.
6022 (ioscm_init_memory_port_stream): New function
6023 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6024 function.
6025 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6026 Return scm_from_uint (0).
6027 (gdbscm_set_memory_port_read_buffer_size_x)
6028 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6029 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6030 Return scm_from_uint (0).
6031 (gdbscm_set_memory_port_write_buffer_size_x)
6032 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6033 * configure.ac (try_guile_versions): Add "guile-2.2".
6034 * configure: Regenerate.
6035 * NEWS: Add entry.
6036
6037 2020-07-18 Tom Tromey <tom@tromey.com>
6038
6039 * linux-nat.c (linux_multi_process): Remove.
6040 (linux_nat_target::supports_multi_process): Return true.
6041
6042 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6045 (riscv_lookup_target_description): Return pointer out of
6046 unique_ptr.
6047 * target-descriptions.c (allocate_target_description): Add
6048 comment.
6049 (target_desc_deleter::operator()): Likewise.
6050 * target-descriptions.h (struct target_desc_deleter): Moved to
6051 gdbsupport/tdesc.h.
6052 (target_desc_up): Likewise.
6053
6054 2020-07-17 Tom Tromey <tromey@adacore.com>
6055
6056 * linux-nat.c (linux_nat_target::supports_non_stop)
6057 (linux_nat_target::always_non_stop_p): Use "true".
6058 (linux_nat_target::supports_disable_randomization): Use "true" and
6059 "false".
6060
6061 2020-07-16 Caroline Tice <cmtice@google.com>
6062
6063 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6064 (RNGLIST_HEADER_SIZE64): New constant definition.
6065 (struct dwop_section_names): Add rnglists_dwo.
6066 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6067 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6068 (struct dwo_sections): Add rnglists field.
6069 (read_attribut_reprocess): Add tag parameter.
6070 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6071 (cu_debug_rnglists_section): New function (decl & definition).
6072 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6073 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6074 die whose range is being checked; get rnglist section from
6075 cu_debug_rnglists_section, to get from either objfile or dwo file as
6076 appropriate. Add cases for DW_RLE_base_addressx,
6077 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6078 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6079 test inside if-condition and updating complaint message.
6080 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6081 dwarf2_rnglists_process.
6082 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6083 dwarf2_ranges_process.
6084 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6085 need_ranges_base and update comment appropriately. Also pass die tag
6086 to dwarf2_ranges_read.
6087 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6088 need_ranges_base and update comment appropriately. Also pass die tag
6089 to dwarf2_ranges_process.
6090 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6091 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6092 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6093 need_ranges_base and update comment appropriately. Also pass die tag
6094 to read_attribute_reprocess and dwarf2_ranges_read.
6095 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6096 and update function comment appropriately.
6097 (read_loclist_index): Call read_loclists_rnglists_header instead of
6098 read_loclist_header.
6099 (read_rnglist_index): New function.
6100 (read_attribute_reprocess): Add tag parameter. Add code for
6101 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6102 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6103
6104 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6105
6106 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6107 being resolved.
6108
6109 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6110
6111 * arch-utils.c (show_architecture): Update formatting of messages.
6112
6113 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6114
6115 * gdbtypes.h (struct type) <bounds>: Handle array and string
6116 types.
6117 * ada-lang.c (assign_aggregate): Use type::bounds on
6118 array/string type.
6119 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6120 * c-varobj.c (c_number_of_children): Likewise.
6121 (c_describe_child): Likewise.
6122 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6123 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6124 (f_type_print_base): Likewise.
6125 * f-valprint.c (f77_array_offset_tbl): Likewise.
6126 (f77_get_upperbound): Likewise.
6127 (f77_print_array_1): Likewise.
6128 * guile/scm-type.c (gdbscm_type_range): Likewise.
6129 * m2-typeprint.c (m2_array): Likewise.
6130 (m2_is_long_set_of_type): Likewise.
6131 * m2-valprint.c (get_long_set_bounds): Likewise.
6132 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6133 * python/py-type.c (typy_range): Likewise.
6134 * rust-lang.c (rust_internal_print_type): Likewise.
6135 * type-stack.c (type_stack::follow_types): Likewise.
6136 * valarith.c (value_subscripted_rvalue): Likewise.
6137 * valops.c (value_cast): Likewise.
6138
6139 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6142 callers to use the equivalent accessor methods.
6143
6144 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6147 (struct type) <bit_stride>: New method.
6148 (TYPE_BIT_STRIDE): Remove.
6149 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6150
6151 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6154 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6155 callers to use the equivalent accessor methods instead.
6156
6157 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6158
6159 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6160 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6161 callers to use the equivalent accessor methods instead.
6162
6163 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6164
6165 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6166 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6167 to use dynamic_prop::kind.
6168
6169 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6170
6171 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6172 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6173 to get the bound property's kind and check against
6174 PROP_UNDEFINED.
6175
6176 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6177
6178 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6179 all callers to use type::range_bounds followed by
6180 dynamic_prop::{low,high}.
6181
6182 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6185 const_val, set_const_val, baton, set_locexpr, set_loclist,
6186 set_addr_offset, variant_parts, set_variant_parts,
6187 original_type, set_original_type>: New methods.
6188 <kind>: Rename to...
6189 <m_kind>: ... this. Update all users to use the new methods
6190 instead.
6191 <data>: Rename to...
6192 <m_data>: ... this. Update all users to use the new methods
6193 instead.
6194
6195 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6196
6197 * gdbtypes.c (get_discrete_bounds): Return failure if
6198 the range type's bounds are not both defined and constant
6199 values.
6200 (get_array_bounds): Update comment. Remove undefined bound check.
6201
6202 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6205 the type::bounds method directly.
6206
6207 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6210 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6211 are used to set the range type's bounds to use set_bounds.
6212
6213 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6214
6215 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6216
6217 2020-07-10 Pedro Alves <pedro@palves.net>
6218
6219 * gdbthread.h (inferior_ref): Define.
6220 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6221 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6222 * thread.c
6223 (scoped_restore_current_thread::restore):
6224 Adjust to gdb::ref_ptr.
6225 (scoped_restore_current_thread::~scoped_restore_current_thread):
6226 Remove manual decref handling.
6227 (scoped_restore_current_thread::scoped_restore_current_thread):
6228 Adjust to use
6229 inferior_ref::new_reference/thread_info_ref::new_reference.
6230 Incref the thread before calling get_frame_id instead of after.
6231 Let TARGET_CLOSE_ERROR propagate.
6232
6233 2020-07-10 Pedro Alves <pedro@palves.net>
6234
6235 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6236 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6237 NOT_AVAILABLE_ERROR.
6238 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6239 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6240
6241 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6242 Pedro Alves <pedro@palves.net>
6243
6244 PR gdb/26199
6245 * infrun.c (threads_are_resumed_pending_p): Delete.
6246 (do_target_wait): Remove threads_are_executing and
6247 threads_are_resumed_pending_p checks from the inferior_matches
6248 lambda. Update comments.
6249
6250 2020-07-10 Pedro Alves <pedro@palves.net>
6251
6252 PR gdb/26199
6253 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6254 executing threads.
6255
6256 2020-07-10 Pedro Alves <pedro@palves.net>
6257
6258 PR gdb/26199
6259 * infrun.c (handle_no_resumed): Handle multiple targets.
6260
6261 2020-07-10 Pedro Alves <pedro@palves.net>
6262
6263 PR gdb/26199
6264 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6265 target_is_async_p.
6266
6267 2020-07-10 Pedro Alves <pedro@palves.net>
6268
6269 PR gdb/26199
6270 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6271 threads, not all threads.
6272
6273 2020-07-10 Pedro Alves <pedro@palves.net>
6274
6275 PR gdb/26199
6276 * remote.c (remote_target::open_1): Pass remote target pointer as
6277 data to create_async_event_handler.
6278 (remote_async_inferior_event_handler): Mark async event handler
6279 before returning if the remote target still has either pending
6280 events or unacknowledged notifications.
6281
6282 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6283
6284 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6285 declaration.
6286 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6287 function.
6288
6289 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6290
6291 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6292 inferior_ptid.
6293
6294 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6295
6296 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6297 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6298 AT_FREEBSD_PS_STRINGS.
6299
6300 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6301
6302 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6303 of debugfile path on Windows.
6304
6305 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6306
6307 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6308 argument to 'data'.
6309
6310 2020-07-08 Tom Tromey <tromey@adacore.com>
6311
6312 * ada-lang.c (ada_exception_message_1): Use read_memory.
6313
6314 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 PR python/22748
6317 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6318 special handling for inline frames.
6319 * findvar.c (value_of_register_lazy): Skip inline frames when
6320 creating lazy register values.
6321 * frame.c (frame_id_computed_p): Delete definition.
6322 * frame.h (frame_id_computed_p): Delete declaration.
6323
6324 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * NEWS: Mention additions to Python API.
6327 * python/py-arch.c (archpy_register_groups): New function.
6328 (arch_object_methods): Add 'register_groups' method.
6329 * python/py-registers.c (reggroup_iterator_object): New struct.
6330 (reggroup_object): New struct.
6331 (gdbpy_new_reggroup): New function.
6332 (gdbpy_reggroup_to_string): New function.
6333 (gdbpy_reggroup_name): New function.
6334 (gdbpy_reggroup_iter): New function.
6335 (gdbpy_reggroup_iter_next): New function.
6336 (gdbpy_new_reggroup_iterator): New function
6337 (gdbpy_initialize_registers): Register new types.
6338 (reggroup_iterator_object_type): Define new Python type.
6339 (gdbpy_reggroup_getset): New static global.
6340 (reggroup_object_type): Define new Python type.
6341 * python/python-internal.h
6342
6343 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6344
6345 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6346 * python/py-arch.c (archpy_registers): New function.
6347 (arch_object_methods): Add 'registers' method.
6348 * python/py-registers.c: New file.
6349 * python/python-internal.h
6350 (gdbpy_new_register_descriptor_iterator): Declare.
6351 (gdbpy_initialize_registers): Declare.
6352 * python/python.c (do_start_initialization): Call
6353 gdbpy_initialize_registers.
6354 * NEWS: Mention additions to the Python API.
6355
6356 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * NEWS: Mention new Python API method.
6359 * python/py-unwind.c (pending_framepy_architecture): New function.
6360 (pending_frame_object_methods): Add architecture method.
6361
6362 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6363
6364 * gdbarch.c: Regenerate.
6365 * gdbarch.h: Regenerate.
6366 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6367 (gdbarch_data): Use internal_error for the case where
6368 deprecated_set_gdbarch_data was originally needed.
6369 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6370 and use passed in obstack.
6371 (libunwind_frame_set_descr): Should no longer get back NULL from
6372 gdbarch_data.
6373 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6374 type.
6375 * user-regs.c (user_regs_init): Update parameters, and use passed
6376 in obstack.
6377 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6378 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6379
6380 2020-07-06 Tom de Vries <tdevries@suse.de>
6381
6382 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6383 End-Of-Sequence in lte_is_less_than.
6384 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6385 "gdb: Don't reorder line table entries too much when sorting".
6386
6387 2020-07-06 Tom de Vries <tdevries@suse.de>
6388
6389 PR tui/26205
6390 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6391
6392 2020-07-05 Tom de Vries <tdevries@suse.de>
6393
6394 PR build/26187
6395 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6396 std::uncaught_exceptions instead of deprecated
6397 std::uncaught_exception.
6398
6399 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6400
6401 * macroexp.h (macro_stringify): Return
6402 gdb::unique_xmalloc_ptr<char>.
6403 * macroexp.c (macro_stringify): Likewise.
6404 * macrotab.c (fixup_definition): Update.
6405
6406 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6409 (lex_one_token): Update.
6410 * macroexp.c (struct macro_buffer) <release>: Return
6411 gdb::unique_xmalloc_ptr<char>.
6412 (macro_stringify): Update.
6413 (macro_expand): Update.
6414 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6415 * macroexp.h (macro_expand_next): Likewise.
6416
6417 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6418
6419 * macroexp.h (macro_lookup_ftype): Remove.
6420 (macro_expand, macro_expand_once, macro_expand_next): Remove
6421 lookup function parameters, add scope parameter.
6422 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6423 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6424 * macroscope.h (standard_macro_lookup): Change parameter type
6425 to macro_scope.
6426 * macroscope.c (standard_macro_lookup): Likewise.
6427 * c-exp.y (lex_one_token): Update.
6428 * macrocmd.c (macro_expand_command): Likewise.
6429 (macro_expand_once_command): Likewise.
6430
6431 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6432
6433 * inf-loop.c (inferior_event_handler): Remove client_data param.
6434 * inf-loop.h (inferior_event_handler): Likewise.
6435 * infcmd.c (step_1): Adjust.
6436 * infrun.c (proceed): Adjust.
6437 (fetch_inferior_event): Remove client_data param.
6438 (infrun_async_inferior_event_handler): Adjust.
6439 * infrun.h (fetch_inferior_event): Remove `void *` param.
6440 * linux-nat.c (handle_target_event): Adjust.
6441 * record-btrace.c (record_btrace_handle_async_inferior_event):
6442 Adjust.
6443 * record-full.c (record_full_async_inferior_event_handler):
6444 Adjust.
6445 * remote.c (remote_async_inferior_event_handler): Adjust.
6446
6447 2020-07-01 Tom Tromey <tom@tromey.com>
6448
6449 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6450 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6451
6452 2020-07-01 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6455 tui_gen_win_info.
6456 (tui_win_info::make_window): Merge with
6457 tui_gen_win_info::make_window.
6458 (tui_win_info::make_visible): Move from tui_gen_win_info.
6459 * tui/tui-win.c (tui_win_info::max_width): Move from
6460 tui_gen_win_info.
6461 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6462 type.
6463 <window_factory>: Likewise.
6464 * tui/tui-layout.c (tui_win_info::resize): Move from
6465 tui_gen_win_info.
6466 (make_standard_window): Change return type.
6467 (get_locator_window, tui_get_window_by_name): Likewise.
6468 (tui_layout_window::apply): Remove a cast.
6469 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6470 (struct tui_win_info): Merge with tui_gen_win_info.
6471 (struct tui_gen_win_info): Remove.
6472
6473 2020-07-01 Tom Tromey <tom@tromey.com>
6474
6475 * tui/tui-stack.h (struct tui_locator_window): Derive from
6476 tui_win_info.
6477 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6478 <can_box>: New method.
6479
6480 2020-07-01 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6483
6484 2020-07-01 Tom Tromey <tom@tromey.com>
6485
6486 * tui/tui-regs.c (tui_data_window::display_registers_from)
6487 (tui_data_window::display_registers_from)
6488 (tui_data_window::first_data_item_displayed)
6489 (tui_data_window::delete_data_content_windows): Update.
6490 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6491 Remove.
6492 (tui_data_window::check_register_values): Update.
6493 (tui_data_item_window::rerender): Add parameters. Update.
6494 (tui_data_item_window::refresh_window): Remove.
6495 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6496 virtual.
6497 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6498 tui_gen_win_info.
6499 <refresh_window, max_height, min_height>: Remove.
6500 <rerender>: Add parameters.
6501 <x, y, visible>: New members.
6502 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6503 <m_item_width>: New member.
6504
6505 2020-07-01 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-regs.c (tui_data_window::show_register_group)
6508 (tui_data_window::check_register_values): Update.
6509 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6510 from item_no.
6511
6512 2020-07-01 Tom Tromey <tom@tromey.com>
6513
6514 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6515 useless "if".
6516
6517 2020-07-01 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6520 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6521
6522 2020-07-01 Tom Tromey <tom@tromey.com>
6523
6524 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6525 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6526 (struct tui_line_or_address): Move from tui-data.h.
6527 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6528 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6529 (tui_cmd_window, tui_source_window_base, tui_source_window)
6530 (tui_disasm_window): Don't declare.
6531 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6532 to tui-winsource.h.
6533 (SINGLE_KEY): Move to tui-stack.c.
6534
6535 2020-07-01 Tom Tromey <tom@tromey.com>
6536
6537 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6538 std::string.
6539 * tui/tui-regs.c (class tab_expansion_file): New.
6540 (tab_expansion_file::write): New method.
6541 (tui_register_format): Change return type. Use
6542 tab_expansion_file.
6543 (tui_get_register, tui_data_window::display_registers_from)
6544 (tui_data_item_window::rerender): Update.
6545 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6546 * tui/tui-io.c (tui_expand_tabs): Remove.
6547
6548 2020-07-01 Tom Tromey <tom@tromey.com>
6549
6550 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6551
6552 2020-07-01 Fangrui Song <maskray@google.com>
6553
6554 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6555
6556 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6557
6558 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6559 forms for DW_AT_associated and DW_AT_allocated attributes,
6560 which is already checked in function attr_to_dynamic_prop.
6561
6562 2020-06-30 Tom Tromey <tromey@adacore.com>
6563
6564 * dwarf2/read.c (quirk_rust_enum): Correctly call
6565 alloc_rust_variant for default-less enum.
6566
6567 2020-06-30 Tom Tromey <tromey@adacore.com>
6568
6569 PR build/26183:
6570 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6571 gdb::to_string.
6572
6573 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6576 * gdbarch.h: Re-generate.
6577
6578 2020-06-28 Tom Tromey <tom@tromey.com>
6579
6580 * command.h (cmd_types): Remove.
6581 (cmd_type): Don't declare.
6582 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6583 typedef.
6584 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6585 * cli/cli-decode.c (cmd_type): Remove.
6586
6587 2020-06-27 Pedro Alves <palves@redhat.com>
6588
6589 * fork-child.c (prefork_hook): Adjust.
6590 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6591 Delete.
6592 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6593 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6594 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6595 Remove declarations.
6596 (struct inferior) <set_tty, tty>: New methods.
6597 (struct inferior) <terminal>: Rename to ...
6598 (struct inferior) <m_terminal>: ... this and make private.
6599 * main.c (captured_main_1): Adjust.
6600 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6601 (mi_cmd_inferior_tty_show): Adjust.
6602 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6603 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6604
6605 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6606
6607 * configure.ac: Add --enable-libctf: handle --disable-static
6608 properly.
6609 * acinclude.m4: sinclude ../config/enable.m4.
6610 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6611 (LIBCTF): Substitute in.
6612 (CTF_DEPS): New, likewise.
6613 (CLIBS): libctf needs symbols from libbfd: move earlier.
6614 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6615 flags.
6616 * ctfread.c: Surround in ENABLE_LIBCTF.
6617 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6618 * configure: Regenerate.
6619 * config.in: Likewise.
6620
6621 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6622
6623 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6624
6625 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6626
6627 * inferior.h (struct inferior) <terminal>: Change type to
6628 gdb::unique_xmalloc_ptr<char>.
6629 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6630 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6631 field, adjust to unique pointer.
6632 (get_inferior_io_terminal): Adjust to unique pointer.
6633
6634 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6637 registers, not just the known core set of registers.
6638
6639 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6642 fflags, frm, and fcsr registers.
6643 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6644 restore groups.
6645 (riscv_tdesc_unknown_reg): New function.
6646 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6647 tdesc_use_registers.
6648 * riscv-tdep.h (struct gdbarch_tdep): Add
6649 unknown_csrs_first_regnum, unknown_csrs_count,
6650 duplicate_fflags_regnum, duplicate_frm_regnum, and
6651 duplicate_fcsr_regnum fields.
6652
6653 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6656 callback, use the callback (when not null) to help number unknown
6657 registers.
6658 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6659 (tdesc_use_registers): Add extra parameter to declaration.
6660
6661 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6664 in the file.
6665 (class riscv_pending_register_alias): Likewise.
6666 (riscv_register_feature::register_info): Change 'required_p' field
6667 to 'required', and change its type. Add 'check' member function.
6668 (riscv_register_feature::register_info::check): Define new member
6669 function.
6670 (riscv_xreg_feature): Change initialisation of 'required' field.
6671 (riscv_freg_feature): Likewise.
6672 (riscv_virtual_feature): Likewise.
6673 (riscv_csr_feature): Likewise.
6674 (riscv_check_tdesc_feature): Take extra parameter, the csr
6675 tdesc_feature, rewrite the function to use the new
6676 riscv_register_feature::register_info::check function.
6677 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6678
6679 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6680
6681 * features/Makefile: Remove all references to the deleted files
6682 below.
6683 * features/riscv/32bit-csr.c: Deleted.
6684 * features/riscv/32bit-csr.xml: Deleted.
6685 * features/riscv/64bit-csr.c: Deleted.
6686 * features/riscv/64bit-csr.xml: Deleted.
6687 * features/riscv/rebuild-csr-xml.sh: Deleted.
6688
6689 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6692 whitespace error for declaration of names member variable.
6693 (struct riscv_register_feature): Add new prefer_first_name member
6694 variable, and fix whitespace error in declaration of registers.
6695 (riscv_xreg_feature): Initialize prefer_first_name field.
6696 (riscv_freg_feature): Likewise.
6697 (riscv_virtual_feature): Likewise.
6698 (riscv_csr_feature): Likewise.
6699 (riscv_register_name): Expand on comments. Remove register name
6700 modifications for CSR and virtual registers.
6701
6702 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6705 errors.
6706
6707 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6710 riscv-opc.h.
6711 (class riscv_pending_register_alias): New class.
6712 (riscv_check_tdesc_feature): Take vector of pending aliases and
6713 populate it as appropriate.
6714 (riscv_setup_register_aliases): Delete.
6715 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6716 to riscv_check_tdesc_feature in all cases. Use the vector to
6717 create the register aliases.
6718
6719 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6720
6721 * sol2-tdep.c (sol2_static_transform_name): Remove.
6722 (sol2_init_abi): Don't register it.
6723 * gdbarch.sh (static_transform_name): Remove.
6724 * gdbarch.c, gdbarch.h: Regenerate.
6725
6726 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6727 gdbarch_static_transform_name.
6728 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6729 * stabsread.c (define_symbol) <'X'>: Remove.
6730 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6731 handling.
6732 <'V'>: Likewise.
6733 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6734 <'S'>: Remove call to gdbarch_static_transform_name.
6735
6736 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6737
6738 * procfs.c (procfs_pre_trace): New function.
6739 (procfs_target::create_inferior): Pass it to fork_inferior.
6740
6741 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6742
6743 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6744 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6745 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6746 sol2-tdep.o, sparc-sol2-tdep.o.
6747 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6748 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6749 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6750 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6751
6752 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6753
6754 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6755 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6756 Call sol2_init_abi.
6757 Remove calls to set_gdbarch_skip_solib_resolver,
6758 set_gdbarch_core_pid_to_str.
6759 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6760 (i386_sol2_static_transform_name): Remove.
6761 (i386_sol2_init_abi): Call sol2_init_abi.
6762 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6763 set_gdbarch_static_transform_name,
6764 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6765 Use sol2_sigtramp_p.
6766 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6767 (sol2_sigtramp_p): New function.
6768 (sol2_static_transform_name): New function.
6769 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6770 (sol2_init_abi): New function.
6771 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6772 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6773 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6774 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6775 (sparc_sol2_static_transform_name): Remove.
6776 (sparc32_sol2_init_abi): Call sol2_init_abi.
6777 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6778 set_gdbarch_static_transform_name,
6779 set_gdbarch_skip_solib_resolver,
6780 set_gdbarch_core_pid_to_str.
6781 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6782 (sparc_sol2_static_transform_name): Remove
6783 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6784 call sol2_sigtramp_p.
6785 (sparc64_sol2_init_abi): Call sol2_init_abi.
6786 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6787 set_gdbarch_static_transform_name,
6788 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6789
6790 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6791
6792 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6793 * exec.c (validate_exec_file): If from_tty, set both
6794 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6795 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6796 and from_tty, unconditionally ask a confirmation.
6797
6798 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * target-descriptions.c (tdesc_architecture_name): Protect against
6801 NULL pointer dereference.
6802 (maint_print_xml_tdesc_cmd): New function.
6803 (_initialize_target_descriptions): Register new 'maint print
6804 xml-tdesc' command and give it the filename completer.
6805 * NEWS: Mention new 'maint print xml-tdesc' command.
6806
6807 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6808
6809 * target-descriptions.c (class tdesc_compatible_info): New class.
6810 (struct target_desc): Change type of compatible vector.
6811 (tdesc_compatible_p): Update for change in type of
6812 target_desc::compatible.
6813 (tdesc_compatible_info_list): New function.
6814 (tdesc_compatible_info_arch_name): New function.
6815 (tdesc_add_compatible): Update for change in type of
6816 target_desc::compatible.
6817 (print_c_tdesc::visit_pre): Likewise.
6818
6819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6822 whitespace to underscore.
6823 (maint_print_c_tdesc_cmd): Use fake filename for target
6824 descriptions that came from the target.
6825 (_initialize_target_descriptions): Add filename command completion
6826 for 'maint print c-tdesc'.
6827
6828 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6831 lines.
6832
6833 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6834
6835 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6836 lines.
6837 (dwarf2_find_location_expression): Likewise.
6838 (call_site_parameter_matches): Likewise.
6839 (dwarf2_compile_expr_to_ax): Likewise.
6840 (disassemble_dwarf_expression): Likewise.
6841 (loclist_describe_location): Likewise.
6842
6843 2020-06-23 Pedro Alves <palves@redhat.com>
6844
6845 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6846 progspace-and-thread.h. Include scoped-mock-context.h instead.
6847 (register_to_value_test): Use scoped_mock_context.
6848 * regcache.c: Include "scoped-mock-context.h".
6849 (cooked_read_test): Don't error out if a target is already pushed.
6850 Use scoped_mock_context. Adjust.
6851 * scoped-mock-context.h: New file.
6852
6853 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6856 initializer.
6857 (ada_language::is_string_type_p): New member function.
6858 * c-lang.c (c_language_data): Delete la_is_string_type_p
6859 initializer.
6860 (cplus_language_data): Likewise.
6861 (asm_language_data): Likewise.
6862 (minimal_language_data): Likewise.
6863 * d-lang.c (d_language_data): Likewise.
6864 * f-lang.c (f_is_string_type_p): Delete function, implementation
6865 moved to f_language::is_string_type_p.
6866 (f_language_data): Delete la_is_string_type_p initializer.
6867 (f_language::is_string_type_p): New member function,
6868 implementation from f_is_string_type_p.
6869 * go-lang.c (go_is_string_type_p): Delete function, implementation
6870 moved to go_language::is_string_type_p.
6871 (go_language_data): Delete la_is_string_type_p initializer.
6872 (go_language::is_string_type_p): New member function,
6873 implementation from go_is_string_type_p.
6874 * language.c (language_defn::is_string_type_p): Define new member
6875 function.
6876 (default_is_string_type_p): Make static, add comment copied from
6877 header file.
6878 (unknown_language_data): Delete la_is_string_type_p initializer.
6879 (unknown_language::is_string_type_p): New member function.
6880 (auto_language_data): Delete la_is_string_type_p initializer.
6881 (auto_language::is_string_type_p): New member function.
6882 * language.h (language_data): Delete la_is_string_type_p field.
6883 (language_defn::is_string_type_p): Declare new function.
6884 (default_is_string_type_p): Delete desclaration, move comment to
6885 definition.
6886 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6887 moved to m2_language::is_string_type_p.
6888 (m2_language_data): Delete la_is_string_type_p initializer.
6889 (m2_language::is_string_type_p): New member function,
6890 implementation from m2_is_string_type_p.
6891 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6892 initializer.
6893 * opencl-lang.c (opencl_language_data): Likewise.
6894 * p-lang.c (pascal_is_string_type_p): Delete function,
6895 implementation moved to pascal_language::is_string_type_p.
6896 (pascal_language_data): Delete la_is_string_type_p initializer.
6897 (pascal_language::is_string_type_p): New member function,
6898 implementation from pascal_is_string_type_p.
6899 * rust-lang.c (rust_is_string_type_p): Delete function,
6900 implementation moved to rust_language::is_string_type_p.
6901 (rust_language_data): Delete la_is_string_type_p initializer.
6902 (rust_language::is_string_type_p): New member function,
6903 implementation from rust_is_string_type_p.
6904 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6905 is_string_type_p.
6906
6907 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6908
6909 * ada-lang.c (ada_language_data): Delete la_print_typedef
6910 initializer.
6911 (ada_language::print_typedef): New member function.
6912 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6913 (cplus_language_data): Likewise.
6914 (asm_language_data): Likewise.
6915 (minimal_language_data): Likewise.
6916 * d-lang.c (d_language_data): Likewise.
6917 * f-lang.c (f_language_data): Likewise.
6918 (f_language::print_typedef): New member function.
6919 * go-lang.c (go_language_data): Delete la_print_typedef
6920 initializer.
6921 * language.c (language_defn::print_typedef): Define member
6922 function.
6923 (unknown_language_data): Delete la_print_typedef initializer.
6924 (unknown_language::print_typedef): New member function.
6925 (auto_language_data): Delete la_print_typedef initializer.
6926 (auto_language::print_typedef): New member function.
6927 * language.h (language_data): Delete la_print_typedef field.
6928 (language_defn::print_typedef): Declare new member function.
6929 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6930 (default_print_typedef): Delete declaration.
6931 * m2-lang.c (m2_language_data): Delete la_print_typedef
6932 initializer.
6933 (m2_language::print_typedef): New member function.
6934 * objc-lang.c (objc_language_data): Delete la_print_typedef
6935 initializer.
6936 * opencl-lang.c (opencl_language_data): Likewise.
6937 * p-lang.c (pascal_language_data): Likewise.
6938 (pascal_language::print_typedef): New member function.
6939 * rust-lang.c (rust_print_typedef): Delete function,
6940 implementation moved to rust_language::print_typedef.
6941 (rust_language): Delete la_print_typedef initializer.
6942 (rust_language::print_typedef): New member function,
6943 implementation from rust_print_typedef.
6944 * typeprint.c (default_print_typedef): Delete.
6945
6946 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6949 (ada_language::printstr): New member function.
6950 * c-lang.c (c_language_data): Delete la_printstr initializer.
6951 (cplus_language_data): Likewise.
6952 (asm_language_data): Likewise.
6953 (minimal_language_data): Likewise.
6954 * d-lang.c (d_language_data): Likewise.
6955 * f-lang.c (f_printstr): Rename to f_language::printstr.
6956 (f_language_data): Delete la_printstr initializer.
6957 (f_language::printstr): New member function, implementation from
6958 f_printstr.
6959 * go-lang.c (go_language_data): Delete la_printstr initializer.
6960 * language.c (language_defn::printstr): Define new member
6961 function.
6962 (unk_lang_printstr): Delete.
6963 (unknown_language_data): Delete la_printstr initializer.
6964 (unknown_language::printstr): New member function.
6965 (auto_language_data): Delete la_printstr initializer.
6966 (auto_language::printstr): New member function.
6967 * language.h (language_data): Delete la_printstr field.
6968 (language_defn::printstr): Declare new member function.
6969 (LA_PRINT_STRING): Update call to printstr.
6970 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6971 (m2_language_data): Delete la_printstr initializer.
6972 (m2_language::printstr): New member function, implementation from
6973 m2_printstr.
6974 * objc-lang.c (objc_language_data): Delete la_printstr
6975 initializer.
6976 * opencl-lang.c (opencl_language_data): Likewise.
6977 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6978 (pascal_language_data): Delete la_printstr initializer.
6979 (pascal_language::printstr): New member function, implementation
6980 from pascal_printstr.
6981 * p-lang.h (pascal_printstr): Delete declaration.
6982 * rust-lang.c (rust_printstr): Update header comment.
6983 (rust_language_data): Delete la_printstr initializer.
6984 (rust_language::printstr): New member function.
6985
6986 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6989 (ada_language::printchar): New member function.
6990 * c-lang.c (c_language_data): Delete la_printchar initializer.
6991 (cplus_language_data): Likewise.
6992 (asm_language_data): Likewise.
6993 (minimal_language_data): Likewise.
6994 * d-lang.c (d_language_data): Likewise.
6995 * f-lang.c (f_printchar): Rename to f_language::printchar.
6996 (f_language_data): Delete la_printchar initializer.
6997 (f_language::printchar): New member function, implementation from
6998 f_printchar.
6999 * go-lang.c (go_language_data): Delete la_printchar initializer.
7000 * language.c (unk_lang_printchar): Delete.
7001 (language_defn::printchar): Define new member function.
7002 (unknown_language_data): Delete la_printchar initializer.
7003 (unknown_language::printchar): New member function.
7004 (auto_language_data): Delete la_printchar initializer.
7005 (auto_language::printchar): New member function.
7006 * language.h (language_data): Delete la_printchar field.
7007 (language_defn::printchar): Declare new member function.
7008 (LA_PRINT_CHAR): Update call to printchar.
7009 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7010 (m2_language::printchar): New member function.
7011 * objc-lang.c (objc_language_data): Delete la_printchar
7012 initializer.
7013 * opencl-lang.c (opencl_language_data): Likewise.
7014 * p-lang.c (pascal_language_data): Delete la_printchar
7015 initializer.
7016 (pascal_language::printchar): New member function.
7017 * rust-lang.c (rust_printchar): Rename to
7018 rust_language::printchar.
7019 (rust_language_data): Delete la_printchar initializer.
7020 (rust_language::printchar): New member function, implementation
7021 from rust_printchar.
7022
7023 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7026 (ada_language_data): Delete la_emitchar initializer.
7027 (ada_language::emitchar): New member function, implementation from
7028 emit_char.
7029 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7030 (cplus_language_data): Likewise.
7031 (asm_language_data): Likewise.
7032 (minimal_language_data): Likewise.
7033 * d-lang.c (d_language_data): Likewise.
7034 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7035 (f_language_data): Delete la_emitchar initializer.
7036 (f_language::emitchar): New member function, implementation from
7037 f_emit_char.
7038 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7039 * language.c (unk_lang_emit_char): Delete.
7040 (language_defn::emitchar): New member function definition.
7041 (unknown_language_data): Delete la_emitchar initializer.
7042 (unknown_language::emitchar): New member function.
7043 (auto_language_data): Delete la_emitchar initializer.
7044 (auto_language::emitchar): New member function.
7045 * language.h (language_data): Delete la_emitchar field.
7046 (language_defn::emitchar): New member field declaration.
7047 (LA_EMIT_CHAR): Update call to emitchar.
7048 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7049 (m2_language_data): Delete la_emitchar initializer.
7050 (m2_language::emitchar): New member function, implementation from
7051 m2_emit_char.
7052 * objc-lang.c (objc_language_data): Delete la_emitchar
7053 initializer.
7054 * opencl-lang.c (opencl_language_data): Likewise.
7055 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7056 (pascal_language_data): Delete la_emitchar initializer.
7057 (pascal_language::emitchar): New member function, implementation
7058 from pascal_emit_char.
7059 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7060 (rust_language_data): Delete la_emitchar initializer.
7061 (rust_language::emitchar): New member function, implementation
7062 from rust_emitchar.
7063
7064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7067 (ada_language_data): Delete la_post_parser initializer.
7068 (ada_language::post_parser): New member function.
7069 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7070 (cplus_language_data): Likewise.
7071 (asm_language_data): Likewise.
7072 (minimal_language_data): Likewise.
7073 * d-lang.c (d_language_data): Likewise.
7074 * f-lang.c (f_language_data): Likewise.
7075 * go-lang.c (go_language_data): Likewise.
7076 * language.c (unknown_language_data): Likewise.
7077 (auto_language_data): Likewise.
7078 * language.h (language_data): Delete la_post_parser field.
7079 (language_defn::post_parser): New member function.
7080 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7081 * objc-lang.c (objc_language_data): Likewise.
7082 * opencl-lang.c (opencl_language_data): Likewise.
7083 * p-lang.c (pascal_language_data): Likewise.
7084 * parse.c (parse_exp_in_context): Update call to post_parser.
7085 (null_post_parser): Delete definition.
7086 * parser-defs.h (null_post_parser): Delete declaration.
7087 * rust-lang.c (rust_language_data): Delete la_post_parser
7088 initializer.
7089
7090 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * ada-lang.c (parse): Rename to ada_language::parser.
7093 (ada_language_data): Delete la_parser initializer.
7094 (ada_language::parser): New member function, implementation from
7095 parse.
7096 * c-lang.c (c_language_data): Delete la_parser initializer.
7097 (cplus_language_data): Likewise.
7098 (asm_language_data): Likewise.
7099 (minimal_language_data): Likewise.
7100 * d-lang.c (d_language_data): Likewise.
7101 (d_language::parser): New member function.
7102 * f-lang.c (f_language_data): Delete la_parser initializer.
7103 (f_language::parser): New member function.
7104 * go-lang.c (go_language_data): Delete la_parser initializer.
7105 (go_language::parser): New member function.
7106 * language.c (unk_lang_parser): Delete.
7107 (language_defn::parser): Define new member function.
7108 (unknown_language_data): Delete la_parser initializer.
7109 (unknown_language::parser): New member function.
7110 (auto_language_data): Delete la_parser initializer.
7111 (auto_language::parser): New member function.
7112 * language.h (language_data): Delete la_parser field.
7113 (language_defn::parser): Declare new member function.
7114 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7115 (m2_language::parser): New member function.
7116 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7117 * opencl-lang.c (opencl_language_data): Likewise.
7118 * p-lang.c (pascal_language_data): Likewise.
7119 (pascal_language::parser): New member function.
7120 * parse.c (parse_exp_in_context): Update call to parser.
7121 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7122 (rust_language::parser): New member function.
7123
7124 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * top.c (print_gdb_configuration): Print --with-python-libdir
7127 configuration value.
7128
7129 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7130
7131 * NEWS: Mention change to the alias command.
7132
7133 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7134
7135 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7136 (alias_command_completer)
7137 (make_alias_options_def_group): New functions.
7138 (alias_opts, alias_option_defs): New struct and array.
7139 (alias_usage_error): Update usage.
7140 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7141 Use option framework.
7142 (_initialize_cli_cmds): Update alias command help.
7143 Update aliases command help.
7144 (show_user):
7145 Add NULL for new default_args lookup_cmd argument.
7146 (valid_command_p): Rename to validate_aliased_command.
7147 Add NULL for new default_args lookup_cmd argument. Verify that the
7148 aliased_command has no default args.
7149 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7150 (lookup_cmd_1, lookup_cmd): New argument default_args.
7151 (add_alias_cmd):
7152 Add NULL for new default_args lookup_cmd argument.
7153 (print_help_for_command): Show default args under the layout
7154 alias some_alias = some_aliased_cmd some_alias_default_arg.
7155 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7156 xfree default_args in destructor.
7157 * cli/cli-script.c (process_next_line, do_define_command):
7158 Add NULL for new default_args lookup_cmd argument.
7159 * command.h: Declare new default_args argument in lookup_cmd
7160 and lookup_cmd_1.
7161 * completer.c (complete_line_internal_1):
7162 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7163 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7164 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7165 Likewise.
7166 * infcmd.c (_initialize_infcmd): Likewise.
7167 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7168 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7169 * python/py-param.c (add_setshow_generic): Likewise.
7170 * remote.c (_initialize_remote): Likewise.
7171 * top.c (execute_command): Prepend default_args if command has some.
7172 (set_verbose):
7173 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7174 * tracepoint.c (validate_actionline, encode_actions_1):
7175 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7176
7177 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7178
7179 * jit.c (jit_read_descriptor): Use bool as the return type.
7180 (jit_breakpoint_re_set_internal): Use bool as the return type.
7181 Invert the return value logic; return true if the jit breakpoint
7182 has been successfully initialized.
7183 (jit_inferior_init): Update the call to
7184 jit_breakpoint_re_set_internal.
7185
7186 2020-06-22 Pedro Alves <palves@redhat.com>
7187
7188 PR gdb/25939
7189 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7190 Use the current inferior instead. Don't return
7191 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7192 wait again.
7193 * sol-thread.c (sol_thread_target::wait): Don't reference
7194 inferior_ptid.
7195 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7196 (sol_update_thread_list_callback): Use the current inferior's pid
7197 instead of inferior_ptid.
7198
7199 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7200
7201 * procfs.c: Cleanup many comments.
7202
7203 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7204 (AFTER_WATCHFLAG): Replace by value.
7205
7206 (MAIN_PROC_NAME_FORMAT): Inline ...
7207 (create_procinfo): ... here.
7208
7209 (procfs_debug_inferior): Remove SYS_exec handling.
7210 (syscall_is_exec): Likewise.
7211 (procfs_set_exec_trap): Likewise.
7212
7213 (syscall_is_lwp_exit): Inline in callers.
7214 (syscall_is_exit): Likewise.
7215 (syscall_is_exec): Likewise.
7216 (syscall_is_lwp_create): Likewise.
7217
7218 (invalidate_cache): Remove #if 0 code.
7219
7220 (make_signal_thread_runnable): Remove.
7221 (procfs_target::resume): Remove #if 0 code.
7222
7223 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7224
7225 PR gdb/25939
7226 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7227 call ...
7228 (procfs_target::create_inferior): ... here.
7229
7230 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7231
7232 * exec.c (validate_exec_file): Ensure the build-id is up to
7233 date by calling reopen_exec_file (that checks file timestamp
7234 to decide to re-read the file).
7235
7236 2020-06-18 Pedro Alves <palves@redhat.com>
7237
7238 PR gdb/25412
7239 * gdbthread.h (delete_thread, delete_thread_silent)
7240 (find_thread_ptid): Update comments.
7241 * thread.c (current_thread_): New global.
7242 (is_current_thread): Move higher, and reimplement.
7243 (inferior_thread): Reimplement.
7244 (set_thread_exited): Use bool. Add assertions.
7245 (add_thread_silent): Simplify thread-reuse handling by always
7246 calling delete_thread.
7247 (delete_thread): Remove intro comment.
7248 (find_thread_ptid): Skip exited threads.
7249 (switch_to_thread_no_regs): Write to current_thread_.
7250 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7251 INFERIOR_PTID. Clear current_thread_.
7252
7253 2020-06-18 Pedro Alves <palves@redhat.com>
7254
7255 * aix-thread.c (pd_update): Use switch_to_thread.
7256
7257 2020-06-18 Pedro Alves <palves@redhat.com>
7258
7259 * ravenscar-thread.c (ravenscar_thread_target): Update.
7260 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7261 (ravenscar_thread_target::add_active_thread): ... this. Don't
7262 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7263 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7264
7265 2020-06-18 Pedro Alves <palves@redhat.com>
7266
7267 * nat/windows-nat.c (current_windows_thread): Remove.
7268 * nat/windows-nat.h (current_windows_thread): Remove.
7269 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7270 Adjust.
7271 (display_selectors): Adjust to fetch the current
7272 windows_thread_info based on inferior_ptid.
7273 (fake_create_process): No longer write to current_windows_thread.
7274 (windows_nat_target::get_windows_debug_event):
7275 Don't set inferior_ptid or current_windows_thread.
7276 (windows_nat_target::wait): Adjust to not rely on
7277 current_windows_thread.
7278 (do_initial_windows_stuff): Now a method of windows_nat_target.
7279 Switch to the last_ptid thread.
7280 (windows_nat_target::attach): Adjust.
7281 (windows_nat_target::detach): Use switch_to_no_thread instead of
7282 writing to inferior_ptid directly.
7283 (windows_nat_target::create_inferior): Adjust.
7284
7285 2020-06-18 Pedro Alves <palves@redhat.com>
7286
7287 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7288
7289 2020-06-18 Pedro Alves <palves@redhat.com>
7290
7291 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7292 after creating it, instead of writing to inferior_ptid. Don't
7293 write to inferior_ptid.
7294
7295 2020-06-18 Pedro Alves <palves@redhat.com>
7296
7297 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7298
7299 2020-06-18 Pedro Alves <palves@redhat.com>
7300
7301 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7302 it, instead of writing to inferior_ptid.
7303
7304 2020-06-18 Pedro Alves <palves@redhat.com>
7305
7306 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7307 to inferior_ptid.
7308
7309 2020-06-18 Pedro Alves <palves@redhat.com>
7310
7311 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7312 instead of writing to inferior_ptid directly.
7313
7314 2020-06-18 Pedro Alves <palves@redhat.com>
7315
7316 * corelow.c (core_target::close): Use switch_to_no_thread instead
7317 of writing to inferior_ptid directly.
7318 (add_to_thread_list, core_target_open): Use switch_to_thread
7319 instead of writing to inferior_ptid directly.
7320
7321 2020-06-18 Pedro Alves <palves@redhat.com>
7322
7323 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7324 inferior_ptid.
7325 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7326 inferior_ptid.
7327 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7328 inferior_ptid directly.
7329 (darwin_nat_target::init_thread_list): Switch to thread, instead
7330 of writing to inferior_ptid.
7331 (darwin_nat_target::attach): Don't write to inferior_ptid.
7332 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7333
7334 2020-06-18 Pedro Alves <palves@redhat.com>
7335
7336 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7337 thread.
7338 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7339 Instead use switch_to_thread.
7340 (gnu_nat_target::detach): Use switch_to_no_thread
7341 instead of writing to inferior_ptid directly. Used passed-in
7342 inferior instead of looking up the inferior by pid.
7343
7344 2020-06-18 Pedro Alves <palves@redhat.com>
7345
7346 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7347 inferior_ptid.
7348
7349 2020-06-18 Pedro Alves <palves@redhat.com>
7350
7351 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7352 inferior_ptid.
7353 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7354 thread.
7355 (nto_procfs_target::detach): Avoid referencing
7356 inferior_ptid. Use switch_to_no_thread instead of writing to
7357 inferior_ptid directly.
7358 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7359 instead of writing to inferior_ptid directly.
7360 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7361 to thread.
7362
7363 2020-06-18 Pedro Alves <palves@redhat.com>
7364
7365 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7366 after creating it, instead of writing to inferior_ptid.
7367 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7368 to inferior_ptid directly.
7369 (gdbsim_target::wait): Don't write to inferior_ptid.
7370
7371 2020-06-18 Pedro Alves <palves@redhat.com>
7372
7373 * remote.c (remote_target::remote_notice_new_inferior): Use
7374 switch_to_thread instead of writing to inferior_ptid directly.
7375 (remote_target::add_current_inferior_and_thread): Use
7376 switch_to_no_thread instead of writing to inferior_ptid directly.
7377 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7378 and switch_to_thread instead of using set_current_inferior or
7379 writing to inferior_ptid directly.
7380
7381 2020-06-18 Pedro Alves <palves@redhat.com>
7382
7383 * tracectf.c (ctf_target_open): Switch to added thread instead of
7384 writing to inferior_ptid directly.
7385 (ctf_target::close): Use switch_to_no_thread instead of writing to
7386 inferior_ptid directly.
7387
7388 2020-06-18 Pedro Alves <palves@redhat.com>
7389
7390 * tracefile-tfile.c (tfile_target_open): Don't write to
7391 inferior_ptid directly, instead switch to added thread.
7392 (tfile_target::close): Use switch_to_no_thread instead of writing
7393 to inferior_ptid directly.
7394
7395 2020-06-18 Pedro Alves <palves@redhat.com>
7396
7397 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7398 (procfs_target::detach): Use switch_to_no_thread
7399 instead of writing to inferior_ptid directly.
7400 (do_attach): Change return type to void. Switch to the added
7401 thread.
7402 (procfs_target::create_inferior): Switch to the added thread.
7403 (procfs_do_thread_registers): Don't write to inferior_ptid.
7404
7405 2020-06-18 Pedro Alves <palves@redhat.com>
7406
7407 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7408 of writing to inferior_ptid.
7409 (scoped_restore_exited_inferior): Delete.
7410 (handle_vfork_child_exec_or_exit): Simplify using
7411 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7412 instead of writing to inferior_ptid.
7413 (THREAD_STOPPED_BY): Delete.
7414 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7415 (thread_stopped_by_hw_breakpoint): Delete.
7416 (save_waitstatus): Use
7417 scoped_restore_current_thread+switch_to_thread, and call
7418 target_stopped_by_watchpoint instead of
7419 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7420 instead of thread_stopped_by_sw_breakpoint, and
7421 target_stopped_by_hw_breakpoint instead of
7422 thread_stopped_by_hw_breakpoint.
7423 (handle_inferior_event)
7424 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7425 inferior_ptid directly, nor
7426 set_current_inferior/set_current_program_space. Use
7427 switch_to_thread / switch_to_inferior_no_thread instead.
7428
7429 2020-06-18 Pedro Alves <palves@redhat.com>
7430
7431 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7432 instead of writing to inferior_ptid.
7433
7434 2020-06-18 Pedro Alves <palves@redhat.com>
7435
7436 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7437 added thread.
7438 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7439 to the added thread.
7440 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7441 instead of writing to inferior_ptid.
7442
7443 2020-06-18 Pedro Alves <palves@redhat.com>
7444
7445 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7446 (register_to_value_test): Mock a program_space too. Heap-allocate
7447 the address space. Don't write to inferior_ptid. Use
7448 switch_to_thread instead.
7449
7450 2020-06-18 Pedro Alves <palves@redhat.com>
7451
7452 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7453 Delete.
7454 (find_signalled_thread()): New, factored out from
7455 linux_make_corefile_notes and adjusted to handle exited threads.
7456 (linux_make_corefile_notes): Adjust to use the new
7457 find_signalled_thread.
7458
7459 2020-06-18 Pedro Alves <palves@redhat.com>
7460
7461 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7462 of saving/restoring inferior_ptid.
7463
7464 2020-06-17 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7467 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7468 declare.
7469 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7470
7471 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7472
7473 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7474 of partial symtabs.
7475
7476 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * regformats/reg-arm.dat: Remove.
7479 * regformats/reg-bfin.dat: Remove.
7480 * regformats/reg-cris.dat: Remove.
7481 * regformats/reg-crisv32.dat: Remove.
7482 * regformats/reg-m32r.dat: Remove.
7483 * regformats/reg-tilegx.dat: Remove.
7484 * regformats/reg-tilegx32.dat: Remove.
7485
7486 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * features/Makefile (WHICH): Remove arm files.
7489 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7490 * regformats/arm/arm-with-neon.dat: Remove.
7491 * regformats/arm/arm-with-vfpv2.dat: Remove.
7492 * regformats/arm/arm-with-vfpv3.dat: Remove.
7493
7494 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7495
7496 * features/Makefile (XMLTOC): Remove rx.xml.
7497
7498 2020-06-17 Pedro Alves <palves@redhat.com>
7499
7500 * gdbthread.h (thread_control_state) <trap_expected> Update
7501 comments.
7502
7503 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7504
7505 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7506 ada_language::lookup_symbol_nonlocal.
7507 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7508 (ada_language::lookup_symbol_nonlocal): New member function,
7509 implementation from ada_lookup_symbol_nonlocal.
7510 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7511 initializer.
7512 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7513 initializer.
7514 (cplus_language::lookup_symbol_nonlocal): New member function.
7515 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7516 (minimal_language_data) Likewise.
7517 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7518 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7519 initializer.
7520 (d_language::lookup_symbol_nonlocal): New member function.
7521 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7522 initializer.
7523 (f_language::lookup_symbol_nonlocal): New member function.
7524 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7525 initializer.
7526 * language.c (unknown_language_data): Likewise.
7527 (auto_language_data): Likewise.
7528 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7529 field.
7530 (language_defn::lookup_symbol_nonlocal): New member function.
7531 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7532 initializer.
7533 * objc-lang.c (objc_language_data): Likewise.
7534 * opencl-lang.c (opencl_language_data): Likewise.
7535 * p-lang.c (pascal_language_data): Likewise.
7536 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7537 rust_language::lookup_symbol_nonlocal.
7538 (rust_language_data): Delete la_lookup_symbol_nonlocal
7539 initializer.
7540 (rust_language::lookup_symbol_nonlocal): New member function,
7541 implementation from rust_lookup_symbol_nonlocal.
7542 * symtab.c (lookup_symbol_aux): Update call to
7543 lookup_symbol_nonlocal.
7544 (basic_lookup_symbol_nonlocal): Rename to...
7545 (language_defn::lookup_symbol_nonlocal): ...this, and update
7546 header comment. Remove language_defn parameter, and replace with
7547 uses of `this'.
7548 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7549
7550 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7551
7552 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7553 initializer.
7554 (ada_language::value_print_inner): New member function.
7555 * c-lang.c (c_language_data): Delete la_value_print_inner
7556 initializer.
7557 (cplus_language_data): Likewise.
7558 (asm_language_data): Likewise.
7559 (minimal_language_data): Likewise.
7560 * d-lang.c (d_language_data): Likewise.
7561 (d_language::value_print_inner): New member function.
7562 * f-lang.c (f_language_data): Delete la_value_print_inner
7563 initializer.
7564 (f_language::value_print_inner): New member function.
7565 * f-lang.h (f_value_print_innner): Rename to...
7566 (f_value_print_inner): ...this (note spelling of 'inner').
7567 * f-valprint.c (f_value_print_innner): Rename to...
7568 (f_value_print_inner): ...this (note spelling of 'inner').
7569 * go-lang.c (go_language_data): Delete la_value_print_inner
7570 initializer.
7571 (go_language::value_print_inner): New member function.
7572 * language.c (language_defn::value_print_inner): Define new member
7573 function.
7574 (unk_lang_value_print_inner): Delete.
7575 (unknown_language_data): Delete la_value_print_inner initializer.
7576 (unknown_language::value_print_inner): New member function.
7577 (auto_language_data): Delete la_value_print_inner initializer.
7578 (auto_language::value_print_inner): New member function.
7579 * language.h (language_data): Delete la_value_print_inner field.
7580 (language_defn::value_print_inner): Delcare new member function.
7581 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7582 initializer.
7583 (m2_language::value_print_inner): New member function.
7584 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7585 initializer.
7586 * opencl-lang.c (opencl_language_data): Likewise.
7587 * p-lang.c (pascal_language_data): Likewise.
7588 (pascal_language::value_print_inner): New member function.
7589 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7590 initializer.
7591 (rust_language::value_print_inner): New member function.
7592 * valprint.c (do_val_print): Update call to value_print_inner.
7593
7594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * ada-lang.c (ada_language_data): Delete la_value_print
7597 initializer.
7598 (ada_language::value_print): New member function.
7599 * c-lang.c (c_language_data): Delete la_value_print initializer.
7600 (cplus_language_data): Likewise.
7601 (asm_language_data): Likewise.
7602 (minimal_language_data): Likewise.
7603 * d-lang.c (d_language_data): Likewise.
7604 * f-lang.c (f_language_data): Likewise.
7605 * go-lang.c (go_language_data): Likewise.
7606 * language.c (unk_lang_value_print): Delete.
7607 (language_defn::value_print): Define new member function.
7608 (unknown_language_data): Delete la_value_print initializer.
7609 (unknown_language::value_print): New member function.
7610 (auto_language_data): Delete la_value_print initializer.
7611 (auto_language::value_print): New member function.
7612 * language.h (language_data): Delete la_value_print field.
7613 (language_defn::value_print): Declare new member function.
7614 (LA_VALUE_PRINT): Update call to value_print.
7615 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7616 * objc-lang.c (objc_language_data): Likewise.
7617 * opencl-lang.c (opencl_language_data): Likewise.
7618 * p-lang.c (pascal_language_data): Likewise.
7619 (pascal_language::value_print): New member function.
7620 * rust-lang.c (rust_language_data): Delete la_value_print
7621 initializer.
7622
7623 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7624
7625 * ada-lang.c (ada_watch_location_expression): Rename to
7626 ada_language::watch_location_expression.
7627 (ada_language_data): Delete la_watch_location_expression
7628 initializer.
7629 (ada_language::watch_location_expression): New member function,
7630 implementation from ada_watch_location_expression.
7631 * breakpoint.c (watch_command_1): Update call to
7632 watch_location_expression.
7633 * c-lang.c (c_watch_location_expression): Rename to
7634 language_defn::watch_location_expression.
7635 (c_language_data): Delete la_watch_location_expression
7636 initializer.
7637 (cplus_language_data): Likewise.
7638 (asm_language_data): Likewise.
7639 (minimal_language_data): Likewise.
7640 * c-lang.h (c_watch_location_expression): Delete declaration.
7641 * d-lang.c (d_language_data): Delete la_watch_location_expression
7642 initializer.
7643 * f-lang.c (f_language_data): Likewise.
7644 * go-lang.c (go_language_data): Likewise.
7645 * language.c (language_defn::watch_location_expression): Member
7646 function implementation from c_watch_location_expression.
7647 (unknown_language_data): Delete la_watch_location_expression
7648 initializer.
7649 (auto_language_data): Likewise.
7650 * language.h (language_data): Delete la_watch_location_expression
7651 field.
7652 (language_defn::watch_location_expression): Declare new member
7653 function.
7654 * m2-lang.c (m2_language_data): Delete
7655 la_watch_location_expression initializer.
7656 * objc-lang.c (objc_language_data): Likewise.
7657 * opencl-lang.c (opencl_language_data): Likewise.
7658 * p-lang.c (pascal_language_data): Likewise.
7659 * rust-lang.c (rust_watch_location_expression): Rename to
7660 rust_language::watch_location_expression.
7661 (rust_language_data): Delete la_watch_location_expression
7662 initializer.
7663 (rust_language::watch_location_expression): New member function,
7664 implementation from rust_watch_location_expression.
7665
7666 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7669 ada_language::collect_symbol_completion_matches.
7670 (ada_language_data): Delete la_collect_symbol_completion_matches
7671 initializer.
7672 (ada_language::collect_symbol_completion_matches): New member
7673 function, implementation from
7674 ada_collect_symbol_completion_matches.
7675 * c-lang.c (c_language_data): Delete
7676 la_collect_symbol_completion_matches initializer.
7677 (cplus_language_data): Likewise.
7678 (asm_language_data): Likewise.
7679 (minimal_language_data): Likewise.
7680 * d-lang.c (d_language_data): Likewise.
7681 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7682 f_language::collect_symbol_completion_matches.
7683 (f_language_data): Delete la_collect_symbol_completion_matches
7684 initializer.
7685 (f_language::collect_symbol_completion_matches) New member
7686 function, implementation from f_collect_symbol_completion_matches.
7687 * go-lang.c (go_language_data): Delete
7688 la_collect_symbol_completion_matches initializer.
7689 * language.c (unknown_language_data): Likewise.
7690 (auto_language_data): Likewise.
7691 * language.h (language_data): Delete
7692 la_collect_symbol_completion_matches field.
7693 (language_defn::collect_symbol_completion_matches): New member
7694 function.
7695 * m2-lang.c (m2_language_data): Delete
7696 la_collect_symbol_completion_matches initializer.
7697 * objc-lang.c (objc_language_data): Likewise.
7698 * opencl-lang.c (opencl_language_data): Likewise.
7699 * p-lang.c (pascal_language_data): Likewise.
7700 * rust-lang.c (rust_language_data): Likewise.
7701 * symtab.c (default_collect_symbol_completion_matches): Delete.
7702 (collect_symbol_completion_matches): Update call to
7703 collect_symbol_completion_matches.
7704 (collect_symbol_completion_matches_type): Likewise.
7705 * symtab.h (default_collect_symbol_completion_matches): Delete
7706 declaration.
7707
7708 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7711 (ada_language_data): Delete la_word_break_characters initializer.
7712 (ada_language::word_break_characters): New member function.
7713 * c-lang.c (c_language_data): Delete la_word_break_characters
7714 initializer.
7715 (cplus_language_data): Likewise.
7716 (asm_language_data): Likewise.
7717 (minimal_language_data): Likewise.
7718 * completer.c: Update global comment.
7719 (advance_to_expression_complete_word_point): Update call to
7720 word_break_characters.
7721 (complete_files_symbols): Likewise.
7722 (complete_line_internal_1): Likewise.
7723 (default_completer_handle_brkchars): Likewise.
7724 (skip_quoted_chars): Likewise.
7725 * d-lang.c (d_language_data): Delete la_word_break_characters
7726 initializer.
7727 * f-lang.c (f_word_break_characters): Delete.
7728 (f_language_data): Delete la_word_break_characters initializer.
7729 (f_language::word_break_characters): New member function.
7730 * go-lang.c (go_language_data): Delete la_word_break_characters
7731 initializer.
7732 * language.c (unknown_language_data): Likewise.
7733 (auto_language_data): Likewise.
7734 * language.h (default_word_break_characters): Move declaration to
7735 earlier in the file.
7736 (language_data): Delete la_word_break_characters field.
7737 (language_defn::word_break_characters): New member function.
7738 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7739 initializer.
7740 * objc-lang.c (objc_language_data): Likewise.
7741 * opencl-lang.c (opencl_language_data): Likewise.
7742 * p-lang.c (pascal_language_data): Likewise.
7743 * rust-lang.c (rust_language_data): Likewise.
7744
7745 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7746
7747 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7748 (ada_language_data): Delete la_get_symbol_name_matcher
7749 initializer.
7750 (language_defn::get_symbol_name_matcher_inner): New member
7751 function.
7752 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7753 initializer.
7754 (cplus_language_data): Likewise.
7755 (cplus_language::get_symbol_name_matcher_inner): New member
7756 function.
7757 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7758 (minimal_language_data): Likewise.
7759 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7760 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7761 initializer.
7762 * dictionary.c (iter_match_first_hashed): Update call to
7763 get_symbol_name_matcher.
7764 (iter_match_next_hashed): Likewise.
7765 (iter_match_next_linear): Likewise.
7766 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7767 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7768 initializer.
7769 (f_language::get_symbol_name_matcher_inner): New member function.
7770 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7771 initializer.
7772 * language.c (default_symbol_name_matcher): Update header comment,
7773 make static.
7774 (language_defn::get_symbol_name_matcher): New definition.
7775 (language_defn::get_symbol_name_matcher_inner): Likewise.
7776 (get_symbol_name_matcher): Delete.
7777 (unknown_language_data): Delete la_get_symbol_name_matcher
7778 initializer.
7779 (auto_language_data): Likewise.
7780 * language.h (language_data): Delete la_get_symbol_name_matcher
7781 field.
7782 (language_defn::get_symbol_name_matcher): New member function.
7783 (language_defn::get_symbol_name_matcher_inner): Likewise.
7784 (default_symbol_name_matcher): Delete declaration.
7785 * linespec.c (find_methods): Update call to
7786 get_symbol_name_matcher.
7787 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7788 initializer.
7789 * minsyms.c (lookup_minimal_symbol): Update call to
7790 get_symbol_name_matcher.
7791 (iterate_over_minimal_symbols): Likewise.
7792 * objc-lang.c (objc_language_data): Delete
7793 la_get_symbol_name_matcher initializer.
7794 * opencl-lang.c (opencl_language_data): Likewise.
7795 * p-lang.c (pascal_language_data): Likewise.
7796 * psymtab.c (psymbol_name_matches): Update call to
7797 get_symbol_name_matcher.
7798 * rust-lang.c (rust_language_data): Delete
7799 la_get_symbol_name_matcher initializer.
7800 * symtab.c (symbol_matches_search_name): Update call to
7801 get_symbol_name_matcher.
7802 (compare_symbol_name): Likewise.
7803
7804 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * ada-lang.c (ada_language_data): Delete la_compute_program
7807 initializer.
7808 * c-lang.c (c_language_data): Likewise.
7809 (c_language::compute_program): New member function.
7810 (cplus_language_data): Delete la_compute_program initializer.
7811 (cplus_language::compute_program): New member function.
7812 (asm_language_data): Delete la_compute_program initializer.
7813 (minimal_language_data): Likewise.
7814 * c-lang.h (c_compute_program): Update comment.
7815 (cplus_compute_program): Likewise.
7816 * compile/compile-c-support.c (c_compute_program): Likewise.
7817 (cplus_compute_program): Likewise.
7818 * compile/compile.c (compile_to_object): Update call to
7819 la_compute_program.
7820 * d-lang.c (d_language_data): Delete la_compute_program
7821 initializer.
7822 * f-lang.c (f_language_data): Likewise.
7823 * go-lang.c (go_language_data): Likewise.
7824 * language.c (unknown_language_data): Likewise.
7825 (auto_language_data): Likewise.
7826 * language.h (language_data): Delete la_compute_program field.
7827 (language_defn::compute_program): New member function.
7828 * m2-lang.c (m2_language_data): Delete la_compute_program
7829 initializer.
7830 * objc-lang.c (objc_language_data): Likewise.
7831 * opencl-lang.c (opencl_language_data): Likewise.
7832 * p-lang.c (pascal_language_data): Likewise.
7833 * rust-lang.c (rust_language_data): Likewise.
7834
7835 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7836
7837 * ada-lang.c (ada_language_data) Delete
7838 la_class_name_from_physname initializer.
7839 * c-lang.c (c_language_data): Likewise.
7840 (cplus_language_data): Likewise.
7841 (cplus_language::class_name_from_physname): New member function.
7842 (asm_language_data): Delete la_class_name_from_physname
7843 initializer.
7844 (minimal_language_data): Likewise.
7845 * d-lang.c (d_language_data): Likewise.
7846 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7847 method on language_defn class.
7848 (guess_full_die_structure_name): Likewise.
7849 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7850 initializer.
7851 * go-lang.c (go_language_data): Likewise.
7852 * language.c (language_class_name_from_physname): Delete.
7853 (unk_lang_class_name): Delete.
7854 (unknown_language_data): Delete la_class_name_from_physname
7855 initializer.
7856 (auto_language_data): Likewise.
7857 * language.h (language_data): Delete la_class_name_from_physname
7858 field.
7859 (language_defn::class_name_from_physname): New function.
7860 (language_class_name_from_physname): Delete declaration.
7861 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7862 initializer.
7863 * objc-lang.c (objc_language_data): Likewise.
7864 * opencl-lang.c (opencl_language_data): Likewise.
7865 * p-lang.c (pascal_language_data): Likewise.
7866 * rust-lang.c (rust_language_data): Likewise.
7867
7868 2020-06-16 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-data.h (STATUS_NAME): New macro.
7871 * tui/tui-layout.c (tui_remove_some_windows)
7872 (initialize_known_windows, tui_register_window)
7873 (tui_layout_split::remove_windows, initialize_layouts)
7874 (tui_new_layout_command): Don't use hard-coded window names.
7875
7876 2020-06-16 Tom Tromey <tom@tromey.com>
7877
7878 PR tui/25348:
7879 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7880 tui_initialize_readline. Only run once. Call rl_initialize.
7881 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7882 tui_initialize_readline.
7883 * tui/tui-io.c (tui_setup_io): Call
7884 tui_ensure_readline_initialized.
7885 * tui/tui-interp.c (tui_interp::init): Update.
7886
7887 2020-06-16 Tom Tromey <tom@tromey.com>
7888
7889 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7890 Also preserve the status window.
7891
7892 2020-06-16 Tom Tromey <tom@tromey.com>
7893
7894 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7895 where m_window==nullptr.
7896
7897 2020-06-15 Tom Tromey <tromey@adacore.com>
7898
7899 * windows-nat.c (windows_nat::handle_output_debug_string):
7900 Update.
7901 (windows_nat::handle_ms_vc_exception): Update.
7902 * target.h (target_read_string): Change API.
7903 * target.c (target_read_string): Change API.
7904 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7905 Update.
7906 * solib-frv.c (frv_current_sos): Update.
7907 * solib-dsbt.c (dsbt_current_sos): Update.
7908 * solib-darwin.c (darwin_current_sos): Update.
7909 * linux-thread-db.c (inferior_has_bug): Update.
7910 * expprint.c (print_subexp_standard): Update.
7911 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7912 (ada_exception_message_1): Update.
7913
7914 2020-06-15 Tom Tromey <tromey@adacore.com>
7915
7916 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7917
7918 2020-06-15 Tom Tromey <tromey@adacore.com>
7919
7920 * valprint.c (read_string): Update comment.
7921 * target.c (MIN): Remove.
7922 (target_read_string): Rewrite.
7923
7924 2020-06-15 Tom Tromey <tromey@adacore.com>
7925
7926 * corefile.c (read_memory_string): Remove.
7927 * ada-valprint.c (ada_value_print_ptr): Update.
7928 * ada-lang.h (ada_tag_name): Change return type.
7929 * ada-lang.c (type_from_tag): Update.
7930 (ada_tag_name_from_tsd): Change return type. Use
7931 target_read_string.
7932 (ada_tag_name): Likewise.
7933 * gdbcore.h (read_memory_string): Don't declare.
7934
7935 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7936
7937 * symtab.c (rbreak_command): Ignore Windows drive colon.
7938
7939 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * NEWS: Mention removed GDBserver host support.
7942
7943 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7944
7945 * features/riscv/rebuild-csr-xml.sh: Updated.
7946
7947 2020-06-11 Tom Tromey <tom@tromey.com>
7948
7949 PR gdb/18318:
7950 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7951
7952 2020-06-09 Jonny Grant <jg@jguk.org>
7953 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7954
7955 * main.c (captured_main_1): Don't print new line after help.
7956 (print_gdb_help): add mailing list and IRC channel information
7957 to --help. Add new lines between items in the footer. Remove
7958 quotes around bug url.
7959
7960 2020-06-11 Keith Seitz <keiths@redhat.com>
7961
7962 PR gdb/21356
7963 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7964 Resolve typedefs for type length calculations.
7965
7966 2020-06-10 Tom de Vries <tdevries@suse.de>
7967
7968 PR ada/24713
7969 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7970 (write_psymbols): Enable .gdb_index for ada.
7971 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7972 ada.
7973
7974 2020-06-10 Tom de Vries <tdevries@suse.de>
7975
7976 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7977 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7978 namei" instead of "const char *name" argument.
7979 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7980 dw2_symtab_iter_init.
7981
7982 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7985 to use type::field and field::type instead.
7986
7987 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7990 to use field::type instead.
7991
7992 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * gdbtypes.h (struct field) <type, set_type>: New methods.
7995 Rename `type` field to...
7996 <m_type>: ... this. Change references throughout to use type or
7997 set_type methods.
7998 (FIELD_TYPE): Use field::type. Change call sites that modify
7999 the field's type to use field::set_type instead.
8000
8001 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8002
8003 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8004 to use type::index_type instead.
8005
8006 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8007
8008 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8009 methods.
8010 (TYPE_INDEX_TYPE): Use type::index_type.
8011 * gdbtypes.c (create_array_type_with_stride): Likewise.
8012
8013 2020-06-07 Tom Tromey <tom@tromey.com>
8014
8015 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8016 parameter.
8017 (generic_value_print): Update.
8018
8019 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8020
8021 Revert commit 982a38f60b0.
8022 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8023
8024 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8025
8026 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8027 avoid use after free.
8028
8029 2020-06-05 Tom de Vries <tdevries@suse.de>
8030
8031 * NEWS: Fix typos.
8032
8033 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8034
8035 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8036 the per_bfd object.
8037 (dwarf2_read_debug_names): Likewise.
8038 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8039 object when re-using a per_bfd object with an index.
8040
8041 2020-06-03 Tom de Vries <tdevries@suse.de>
8042
8043 PR symtab/26046
8044 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8045 children for C++.
8046 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8047 DW_TAG_subprogram.
8048
8049 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * ada-lang.c (ada_language_data): Delete skip_trampoline
8052 initializer.
8053 * c-lang.c (c_language_data): Likewise.
8054 (cplus_language_data): Likewise.
8055 (cplus_language::skip_trampoline): New member function.
8056 (asm_language_data): Delete skip_trampoline initializer.
8057 (minimal_language_data): Likewise.
8058 * d-lang.c (d_language_data): Likewise.
8059 * f-lang.c (f_language_data): Likewise.
8060 * go-lang.c (go_language_data): Likewise.
8061 * language.c (unk_lang_trampoline): Delete function.
8062 (skip_language_trampoline): Update.
8063 (unknown_language_data): Delete skip_trampoline initializer.
8064 (auto_language_data): Likewise.
8065 * language.h (language_data): Delete skip_trampoline field.
8066 (language_defn::skip_trampoline): New function.
8067 * m2-lang.c (m2_language_data): Delete skip_trampoline
8068 initializer.
8069 * objc-lang.c (objc_skip_trampoline): Delete function, move
8070 implementation to objc_language::skip_trampoline.
8071 (objc_language_data): Delete skip_trampoline initializer.
8072 (objc_language::skip_trampoline): New member function with
8073 implementation from objc_skip_trampoline.
8074 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8075 initializer.
8076 * p-lang.c (pascal_language_data): Likewise.
8077 * rust-lang.c (rust_language_data): Likewise.
8078
8079 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8080
8081 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8082 (ada_language::demangle): New member function.
8083 * c-lang.c (c_language_data): Delete la_demangle initializer.
8084 (cplus_language_data): Delete la_demangle initializer.
8085 (cplus_language::demangle): New member function.
8086 (asm_language_data): Delete la_demangle initializer.
8087 (minimal_language_data): Delete la_demangle initializer.
8088 * d-lang.c (d_language_data): Delete la_demangle initializer.
8089 (d_language::demangle): New member function.
8090 * f-lang.c (f_language_data): Delete la_demangle initializer.
8091 (f_language::demangle): New member function.
8092 * go-lang.c (go_language_data): Delete la_demangle initializer.
8093 (go_language::demangle): New member function.
8094 * language.c (language_demangle): Update.
8095 (unk_lang_demangle): Delete.
8096 (unknown_language_data): Delete la_demangle initializer.
8097 (unknown_language::demangle): New member function.
8098 (auto_language_data): Delete la_demangle initializer.
8099 (auto_language::demangle): New member function.
8100 * language.h (language_data): Delete la_demangle field.
8101 (language_defn::demangle): New function.
8102 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8103 * objc-lang.c (objc_language_data): Delete la_demangle
8104 initializer.
8105 (objc_language::demangle): New member function.
8106 * opencl-lang.c (opencl_language_data): Delete la_demangle
8107 initializer.
8108 * p-lang.c (pascal_language_data): Likewise.
8109 * rust-lang.c (rust_language_data): Likewise.
8110 (rust_language::demangle): New member function.
8111
8112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8113
8114 * ada-lang.c (ada_language_data): Delete la_print_type
8115 initializer.
8116 (ada_language::print_type): New member function.
8117 * c-lang.c (c_language_data): Delete la_print_type initializer.
8118 (c_language::print_type): New member function.
8119 (cplus_language_data): Delete la_print_type initializer.
8120 (cplus_language::print_type): New member function.
8121 (asm_language_data): Delete la_print_type initializer.
8122 (asm_language::print_type): New member function.
8123 (minimal_language_data): Delete la_print_type initializer.
8124 (minimal_language::print_type): New member function.
8125 * d-lang.c (d_language_data): Delete la_print_type initializer.
8126 (d_language::print_type): New member function.
8127 * f-lang.c (f_language_data): Delete la_print_type initializer.
8128 (f_language::print_type): New member function.
8129 * go-lang.c (go_language_data): Delete la_print_type initializer.
8130 (go_language::print_type): New member function.
8131 * language.c (unk_lang_print_type): Delete.
8132 (unknown_language_data): Delete la_print_type initializer.
8133 (unknown_language::print_type): New member function.
8134 (auto_language_data): Delete la_print_type initializer.
8135 (auto_language::print_type): New member function.
8136 * language.h (language_data): Delete la_print_type field.
8137 (language_defn::print_type): New function.
8138 (LA_PRINT_TYPE): Update.
8139 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8140 (m2_language::print_type): New member function.
8141 * objc-lang.c (objc_language_data): Delete la_print_type
8142 initializer.
8143 (objc_language::print_type): New member function.
8144 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8145 to opencl_language::print_type.
8146 (opencl_language_data): Delete la_print_type initializer.
8147 (opencl_language::print_type): New member function, implementation
8148 from opencl_print_type.
8149 * p-lang.c (pascal_language_data): Delete la_print_type
8150 initializer.
8151 (pascal_language::print_type): New member function.
8152 * rust-lang.c (rust_print_type): Delete, implementation moved to
8153 rust_language::print_type.
8154 (rust_language_data): Delete la_print_type initializer.
8155 (rust_language::print_type): New member function, implementation
8156 from rust_print_type.
8157
8158 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8161 implementation moves to...
8162 (ada_language::sniff_from_mangled_name): ...here. Update return
8163 type.
8164 (ada_language_data): Delete la_sniff_from_mangled_name
8165 initializer.
8166 * c-lang.c (c_language_data): Likewise.
8167 (cplus_language_data): Likewise.
8168 (cplus_language::sniff_from_mangled_name): New member function,
8169 implementation taken from gdb_sniff_from_mangled_name.
8170 (asm_language_data): Delete la_sniff_from_mangled_name
8171 initializer.
8172 (minimal_language_data): Likewise.
8173 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8174 implementation moves to cplus_language::sniff_from_mangled_name.
8175 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8176 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8177 moves to...
8178 (d_language::sniff_from_mangled_name): ...here.
8179 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8180 * f-lang.c (f_language_data): Likewise.
8181 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8182 moves to...
8183 (go_language::sniff_from_mangled_name): ...here.
8184 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8185 * language.c (language_sniff_from_mangled_name): Delete.
8186 (unknown_language_data): Delete la_sniff_from_mangled_name
8187 initializer.
8188 (auto_language_data): Likewise.
8189 * language.h (language_data): Delete la_sniff_from_mangled_name
8190 field.
8191 (language_defn::sniff_from_mangled_name): New function.
8192 (language_sniff_from_mangled_name): Delete declaration.
8193 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8194 field.
8195 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8196 implementation moves to...
8197 (objc_language::sniff_from_mangled_name): ...here.
8198 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8199 * opencl-lang.c (opencl_language_data): Likewise.
8200 * p-lang.c (pascal_language_data): Likewise.
8201 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8202 implementation moves to...
8203 (rust_language::sniff_from_mangled_name): ...here.
8204 (rust_language_data): Delete la_sniff_from_mangled_name
8205 initializer.
8206 * symtab.c (symbol_find_demangled_name): Call
8207 sniff_from_mangled_name member function.
8208
8209 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8212 initializer.
8213 * c-lang.c (c_language_data): Likewise.
8214 (cplus_language_data): Likewise.
8215 (cplus_language::search_name_hash): New member function.
8216 (asm_language_data): Delete la_search_name_hash initializer.
8217 (minimal_language_data): Likewise.
8218 * d-lang.c (d_language_data): Likewise.
8219 * dictionary.c (default_search_name_hash): Rename to...
8220 (language_defn::search_name_hash): ...this.
8221 * f-lang.c (f_language_data): Likewise.
8222 (f_language::search_name_hash): New member function.
8223 * go-lang.c (go_language_data): Delete la_search_name_hash
8224 initializer.
8225 * language.c (unknown_language_data): Likewise.
8226 (auto_language_data): Likewise.
8227 * language.h (struct language_data): Delete la_search_name_hash
8228 field.
8229 (language_defn::search_name_hash): Declare new member function.
8230 (default_search_name_hash): Delete declaration.
8231 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8232 initializer.
8233 * objc-lang.c (objc_language_data): Likewise.
8234 * opencl-lang.c (opencl_language_data): Likewise.
8235 * p-lang.c (pascal_language_data): Likewise.
8236 * rust-lang.c (rust_language_data): Likewise.
8237 * symtab.c (search_name_hash): Update call.
8238
8239 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8242 initializer.
8243 * c-lang.c (class compile_instance): Declare.
8244 (c_language_data): Delete la_get_compile_instance initializer.
8245 (c_language::get_compile_instance): New member function.
8246 (cplus_language_data): Delete la_get_compile_instance initializer.
8247 (cplus_language::get_compile_instance): New member function.
8248 (asm_language_data): Delete la_get_compile_instance initializer.
8249 (minimal_language_data): Likewise.
8250 * c-lang.h (c_get_compile_context): Update comment.
8251 (cplus_get_compile_context): Update comment.
8252 * compile/compile.c (compile_to_object): Update calls, don't rely
8253 on function pointer being NULL.
8254 * d-lang.c (d_language_data): Delete la_get_compile_instance
8255 initializer.
8256 * f-lang.c (f_language_data): Likewise.
8257 * go-lang.c (go_language_data): Likewise.
8258 * language.c (unknown_language_data): Likewise.
8259 (auto_language_data): Likewise.
8260 * language.h (language_data): Delete la_get_compile_instance field.
8261 (language_defn::get_compile_instance): New member function.
8262 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8263 initializer.
8264 * objc-lang.c (objc_language_data): Likewise.
8265 * opencl-lang.c (opencl_language_data): Likewise.
8266 * p-lang.c (pascal_language_data): Likewise.
8267 * rust-lang.c (rust_language_data): Likewise.
8268
8269 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8270
8271 * ada-lang.c (ada_add_all_symbols): Update comment.
8272 (ada_iterate_over_symbols): Delete, move implementation to...
8273 (ada_language::iterate_over_symbols): ...here, a new member
8274 function, rewrite to use range based for loop.
8275 (ada_language_data): Delete la_iterate_over_symbols initializer.
8276 * c-lang.c (c_language_data): Likewise.
8277 (cplus_language_data): Likewise.
8278 (asm_language_data): Likewise.
8279 (minimal_language_data): Likewise.
8280 * d-lang.c (d_language_data): Likewise.
8281 * f-lang.c (f_language_data): Likewise.
8282 * go-lang.c (go_language_data): Likewise.
8283 * language.c (unknown_language_data): Likewise.
8284 (auto_language_data): Likewise.
8285 * language.h (language_data): Delete la_iterate_over_symbols field.
8286 (language_defn::iterate_over_symbols): New member function.
8287 (LA_ITERATE_OVER_SYMBOLS): Update.
8288 * linespec.c (iterate_over_all_matching_symtabs): Update.
8289 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8290 initializer.
8291 * objc-lang.c (objc_language_data): Likewise.
8292 * opencl-lang.c (opencl_language_data): Likewise.
8293 * p-lang.c (pascal_language_data): Likewise.
8294 * rust-lang.c (rust_language_data): Likewise.
8295
8296 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8297
8298 * ada-lang.c (ada_language_data): Delete
8299 la_lookup_transparent_type initializer.
8300 * c-lang.c (c_language_data): Likewise.
8301 (cplus_language_data): Likewise.
8302 (cplus_language::lookup_transparent_type): New member function.
8303 (asm_language_data): Delete la_lookup_transparent_type
8304 initializer.
8305 (minimal_language_data): Likewise.
8306 * d-lang.c (d_language_data): Likewise.
8307 * f-lang.c (f_language_data): Likewise.
8308 * go-lang.c (go_language_data): Likewise.
8309 * language.c (unknown_language_data): Likewise.
8310 (auto_language_data): Likewise.
8311 * language.h (struct language_data): Delete
8312 la_lookup_transparent_type field.
8313 (language_defn::lookup_transparent_type): New member function.
8314 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8315 initializer.
8316 * objc-lang.c (objc_language_data): Likewise.
8317 * opencl-lang.c (opencl_language_data): Likewise.
8318 * p-lang.c (pascal_language_data): Likewise.
8319 * rust-lang.c (rust_language_data): Likewise.
8320 * symtab.c (symbol_matches_domain): Update call.
8321
8322 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8323
8324 * ada-lang.c (ada_language_arch_info): Delete function, move
8325 implementation to...
8326 (ada_language::language_arch_info): ...here, a new member
8327 function.
8328 (ada_language_data): Delete la_language_arch_info.
8329 * c-lang.c (c_language_data): Likewise.
8330 (c_language::language_arch_info): New member function.
8331 (cplus_language_arch_info): Delete function, move
8332 implementation to...
8333 (cplus_language::language_arch_info): ...here, a new member
8334 function.
8335 (cplus_language_data): Delete la_language_arch_info.
8336 (asm_language_data): Likewise.
8337 (asm_language::language_arch_info): New member function.
8338 (minimal_language_data): Delete la_language_arch_info.
8339 (minimal_language::language_arch_info): New member function.
8340 * d-lang.c (d_language_arch_info): Delete function, move
8341 implementation to...
8342 (d_language::language_arch_info): ...here, a new member
8343 function.
8344 (d_language_data): Delete la_language_arch_info.
8345 * f-lang.c (f_language_arch_info): Delete function, move
8346 implementation to...
8347 (f_language::language_arch_info): ...here, a new member
8348 function.
8349 (f_language_data): Delete la_language_arch_info.
8350 * go-lang.c (go_language_arch_info): Delete function, move
8351 implementation to...
8352 (go_language::language_arch_info): ...here, a new member
8353 function.
8354 (go_language_data): Delete la_language_arch_info.
8355 * language.c (unknown_language_data): Likewise.
8356 (unknown_language::language_arch_info): New member function.
8357 (auto_language_data): Delete la_language_arch_info.
8358 (auto_language::language_arch_info): New member function.
8359 (language_gdbarch_post_init): Update call to
8360 la_language_arch_info.
8361 * language.h (language_data): Delete la_language_arch_info
8362 function pointer.
8363 (language_defn::language_arch_info): New function.
8364 * m2-lang.c (m2_language_arch_info): Delete function, move
8365 implementation to...
8366 (m2_language::language_arch_info): ...here, a new member
8367 function.
8368 (m2_language_data): Delete la_language_arch_info.
8369 * objc-lang.c (objc_language_arch_info): Delete function, move
8370 implementation to...
8371 (objc_language::language_arch_info): ...here, a new member
8372 function.
8373 (objc_language_data): Delete la_language_arch_info.
8374 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8375 implementation to...
8376 (opencl_language::language_arch_info): ...here, a new member
8377 function.
8378 (opencl_language_data): Delete la_language_arch_info.
8379 * p-lang.c (pascal_language_arch_info): Delete function, move
8380 implementation to...
8381 (pascal_language::language_arch_info): ...here, a new member
8382 function.
8383 (pascal_language_data): Delete la_language_arch_info.
8384 * rust-lang.c (rust_language_arch_info): Delete function, move
8385 implementation to...
8386 (rust_language::language_arch_info): ...here, a new member
8387 function.
8388 (rust_language_data): Delete la_language_arch_info.
8389
8390 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8391
8392 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8393 initializer.
8394 * c-lang.c (c_language_data): Likewise.
8395 (cplus_language_data): Likewise.
8396 (cplus_language::pass_by_reference_info): New method.
8397 (asm_language_data): Delete la_pass_by_reference initializer.
8398 (minimal_language_data): Likewise.
8399 * cp-abi.c (cp_pass_by_reference): Remove use of
8400 default_pass_by_reference.
8401 * d-lang.c (d_language_data): Likewise.
8402 * f-lang.c (f_language_data): Likewise.
8403 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8404 default_pass_by_reference.
8405 * go-lang.c (go_language_data): Likewise.
8406 * language.c (language_pass_by_reference): Update.
8407 (default_pass_by_reference): Delete.
8408 (unknown_language_data): Delete la_pass_by_reference
8409 initializer.
8410 (auto_language_data): Likewise.
8411 * language.h (struct language_data): Delete la_pass_by_reference
8412 field.
8413 (language_defn::pass_by_reference_info): New member function.
8414 (default_pass_by_reference): Delete declaration.
8415 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8416 initializer.
8417 * objc-lang.c (objc_language_data): Likewise.
8418 * opencl-lang.c (opencl_language_data): Likewise.
8419 * p-lang.c (pascal_language_data): Likewise.
8420 * rust-lang.c (rust_language_data): Likewise.
8421
8422 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8423
8424 * ada-lang.c (ada_read_var_value): Delete function, move
8425 implementation to...
8426 (ada_language::read_var_value): ...here.
8427 (ada_language_data): Delete la_read_var_value initializer.
8428 * c-lang.c (c_language_data): Likewise.
8429 (cplus_language_data): Likewise.
8430 (minimal_language_data): Likewise.
8431 * d-lang.c (d_language_data): Likewise.
8432 * f-lang.c (f_language_data): Likewise.
8433 * findvar.c (default_read_var_value): Rename to...
8434 (language_defn::read_var_value): ...this.
8435 * findvar.c (read_var_value): Update header comment, and change to
8436 call member function instead of function pointer.
8437 * go-lang.c (go_language_data): Likewise.
8438 * language.c (unknown_language_data): Delete la_read_var_value
8439 initializer.
8440 (auto_language_data): Likewise.
8441 * language.h (struct language_data): Delete la_read_var_value
8442 field.
8443 (language_defn::read_var_value): New member function.
8444 (default_read_var_value): Delete declaration.
8445 * m2-lang.c (m2_language_data): Delete la_read_var_value
8446 initializer.
8447 * objc-lang.c (objc_language_data): Likewise.
8448 * opencl-lang.c (opencl_language_data): Likewise.
8449 * p-lang.c (pascal_language_data): Likewise.
8450 * rust-lang.c (rust_language_data): Likewise.
8451 * value.h (default_read_var_value): Delete declaration.
8452
8453 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * ada-lang.c (ada_print_array_index): Delete function, move
8456 implementation to...
8457 (ada_language::print_array_index): ...here.
8458 (ada_language_data): Delete la_print_array_index initializer.
8459 * c-lang.c (c_language_data): Likewise.
8460 (cplus_language_data): Likewise.
8461 (minimal_language_data): Likewise.
8462 * d-lang.c (d_language_data): Likewise.
8463 * f-lang.c (f_language_data): Likewise.
8464 * go-lang.c (go_language_data): Likewise.
8465 * language.c (default_print_array_index): Delete function, move
8466 implementation to...
8467 (language_defn::print_array_index): ...here.
8468 (unknown_language_data): Delete la_print_array_index initializer.
8469 (auto_language_data): Likewise.
8470 * language.h (struct language_data): Delete la_print_array_index
8471 field.
8472 (language_defn::print_array_index): New member function.
8473 (LA_PRINT_ARRAY_INDEX): Update.
8474 (default_print_array_index): Delete declaration.
8475 * m2-lang.c (m2_language_data): Delete la_print_array_index
8476 initializer.
8477 * objc-lang.c (objc_language_data): Likewise.
8478 * opencl-lang.c (opencl_language_data): Likewise.
8479 * p-lang.c (pascal_language_data): Likewise.
8480 * rust-lang.c (rust_language_data): Likewise.
8481
8482 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8483
8484 * gdb/ada-lang.c (ada_language_defn): Convert to...
8485 (ada_language_data): ...this.
8486 (class ada_language): New class.
8487 (ada_language_defn): New static global.
8488 * gdb/c-lang.c (c_language_defn): Convert to...
8489 (c_language_data): ...this.
8490 (class c_language): New class.
8491 (c_language_defn): New static global.
8492 (cplus_language_defn): Convert to...
8493 (cplus_language_data): ...this.
8494 (class cplus_language): New class.
8495 (cplus_language_defn): New static global.
8496 (asm_language_defn): Convert to...
8497 (asm_language_data): ...this.
8498 (class asm_language): New class.
8499 (asm_language_defn): New static global.
8500 (minimal_language_defn): Convert to...
8501 (minimal_language_data): ...this.
8502 (class minimal_language): New class.
8503 (minimal_language_defn): New static global.
8504 * gdb/d-lang.c (d_language_defn): Convert to...
8505 (d_language_data): ...this.
8506 (class d_language): New class.
8507 (d_language_defn): New static global.
8508 * gdb/f-lang.c (f_language_defn): Convert to...
8509 (f_language_data): ...this.
8510 (class f_language): New class.
8511 (f_language_defn): New static global.
8512 * gdb/go-lang.c (go_language_defn): Convert to...
8513 (go_language_data): ...this.
8514 (class go_language): New class.
8515 (go_language_defn): New static global.
8516 * gdb/language.c (unknown_language_defn): Remove declaration.
8517 (current_language): Initialize to nullptr, real initialization is
8518 moved to _initialize_language.
8519 (languages): Delete global.
8520 (language_defn::languages): Define.
8521 (set_language_command): Use language_defn::languages.
8522 (set_language): Likewise.
8523 (range_error): Likewise.
8524 (language_enum): Likewise.
8525 (language_def): Likewise.
8526 (add_set_language_command): Use language_def::languages for the
8527 language list, and language_def to lookup language pointers.
8528 (skip_language_trampoline): Use language_defn::languages.
8529 (unknown_language_defn): Convert to...
8530 (unknown_language_data): ...this.
8531 (class unknown_language): New class.
8532 (unknown_language_defn): New static global.
8533 (auto_language_defn): Convert to...
8534 (auto_language_data): ...this.
8535 (class auto_language): New class.
8536 (auto_language_defn): New static global.
8537 (language_gdbarch_post_init): Use language_defn::languages.
8538 (_initialize_language): Initialize current_language.
8539 * gdb/language.h (struct language_defn): Rename to...
8540 (struct language_data): ...this.
8541 (struct language_defn): New.
8542 (auto_language_defn): Delete.
8543 (unknown_language_defn): Delete.
8544 (minimal_language_defn): Delete.
8545 (ada_language_defn): Delete.
8546 (asm_language_defn): Delete.
8547 (c_language_defn): Delete.
8548 (cplus_language_defn): Delete.
8549 (d_language_defn): Delete.
8550 (f_language_defn): Delete.
8551 (go_language_defn): Delete.
8552 (m2_language_defn): Delete.
8553 (objc_language_defn): Delete.
8554 (opencl_language_defn): Delete.
8555 (pascal_language_defn): Delete.
8556 (rust_language_defn): Delete.
8557 * gdb/m2-lang.c (m2_language_defn): Convert to...
8558 (m2_language_data): ...this.
8559 (class m2_language): New class.
8560 (m2_language_defn): New static global.
8561 * gdb/objc-lang.c (objc_language_defn): Convert to...
8562 (objc_language_data): ...this.
8563 (class objc_language): New class.
8564 (objc_language_defn): New static global.
8565 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8566 (opencl_language_data): ...this.
8567 (class opencl_language): New class.
8568 (opencl_language_defn): New static global.
8569 * gdb/p-lang.c (pascal_language_defn): Convert to...
8570 (pascal_language_data): ...this.
8571 (class pascal_language): New class.
8572 (pascal_language_defn): New static global.
8573 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8574 language pointer, update comment format.
8575 * gdb/rust-lang.c (rust_language_defn): Convert to...
8576 (rust_language_data): ...this.
8577 (class rust_language): New class.
8578 (rust_language_defn): New static global.
8579
8580 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8581
8582 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8583 member variable.
8584 <m_stmt_at_address>: New member variable.
8585 (lnp_state_machine::record_line): Don't record some lines, update
8586 tracking of is_stmt at the same address.
8587 (lnp_state_machine::lnp_state_machine): Initialise new member
8588 variables.
8589
8590 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8591
8592 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8593 "-include gnu-nat-mig.h".
8594 * gnu-nat-mig.h: New file.
8595 * gnu-nat.c: Include "gnu-nat-mig.h".
8596 (exc_server, msg_reply_server, notify_server,
8597 process_reply_server): Remove declarations.
8598
8599 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8600
8601 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8602 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8603 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8604 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8605 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8606 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8607 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8608 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8609 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8610 to gnu_nat_target class.
8611 * gnu-nat.c: Likewise.
8612 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8613 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8614 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8615 object.
8616 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8617 instead of `gnu_target'.
8618
8619 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8620
8621 * i386-gnu-tdep.c: Include "gdbcore.h"
8622 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8623 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8624 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8625 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8626 i386_gnu_sigcontext_addr): New functions
8627 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8628 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8629 tdep.
8630
8631 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8632
8633 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8634 before fork_inferior call. Avoid calling it if target_is_pushed returns
8635 true.
8636
8637 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8638
8639 * gnu-nat.h (gnu_target): New variable declaration.
8640 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8641 gnu_target.
8642 * gnu-nat.c (gnu_target): New variable.
8643 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8644 add_thread_silent, and add_thread calls.
8645 (gnu_nat_target::create_inferior): Pass gnu_target to
8646 add_thread_silent, thread_change_ptid call.
8647 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8648 call.
8649
8650 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8651
8652 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8653 (gnu_nat_target::find_memory_regions): Remove unused
8654 `old_address' variable.
8655
8656 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8657
8658 * gnu-nat.c: Include "gdbarch.h".
8659
8660 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8661
8662 * reply_mig_hack.awk (Error return): Cast function through
8663 void *, to bypass compiler function call check.
8664
8665 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8666
8667 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8668 $(srcdir)/reply_mig_hack.awk.
8669
8670 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8671
8672 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8673
8674 2020-05-30 Jonny Grant <jg@jguk.org>
8675
8676 * configure.ac (ACX_BUGURL): change bug URL to https.
8677
8678 2020-05-30 Pedro Alves <palves@redhat.com>
8679
8680 * cp-support.c (replace_typedefs_template): New.
8681 (replace_typedefs_qualified_name): Handle
8682 DEMANGLE_COMPONENT_TEMPLATE.
8683
8684 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8685
8686 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8687 dwarf2/index-cache.h, dwarf2/index-write.c,
8688 dwarf2/index-write.h, dwarf2/line-header.c,
8689 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8690 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8691 variables and fields from `dwarf2_per_objfile` to just
8692 `per_objfile` throughout.
8693
8694 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8695
8696 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8697 <push_dwarf_reg_entry_value>: Add comment.
8698
8699 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8700 Keith Seitz <keiths@redhat.com>
8701
8702 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8703 instead of PyEval_ReleaseLock.
8704 (class gdbpy_gil): Move to earlier in file.
8705 (finalize_python): Set gdb_python_initialized.
8706 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8707 when not initialized.
8708
8709 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8712 <push_dwarf_reg_entry_value>: Remove assert. Override
8713 per_objfile with caller_per_objfile.
8714
8715 2020-05-28 Tom de Vries <tdevries@suse.de>
8716
8717 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8718 PR gold/15646 workaround to symbol kind "type".
8719
8720 2020-05-27 Tom Tromey <tromey@adacore.com>
8721
8722 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8723
8724 2020-05-27 Tom Tromey <tromey@adacore.com>
8725
8726 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8727 Use htab_find_with_hash.
8728 <add_abbrev>: Remove "abbrev_number" parameter.
8729 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8730 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8731 (hash_abbrev): Add comment.
8732 (abbrev_table::lookup_abbrev): Move to header file.
8733 (abbrev_table::read): Update.
8734
8735 2020-05-27 Tom Tromey <tromey@adacore.com>
8736
8737 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8738 method.
8739 <canonical_name>: New member.
8740 <raw_name>: Rename from "name".
8741 (partial_die_info): Initialize canonical_name.
8742 (scan_partial_symbols): Check raw_name.
8743 (partial_die_parent_scope, partial_die_full_name)
8744 (add_partial_symbol, add_partial_subprogram)
8745 (add_partial_enumeration, load_partial_dies): Use "name" method.
8746 (partial_die_info::name): New method.
8747 (partial_die_info::read, guess_partial_die_structure_name)
8748 (partial_die_info::fixup): Update.
8749
8750 2020-05-27 Tom Tromey <tromey@adacore.com>
8751
8752 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8753 <get_ref_die_offset>: Inline.
8754 <get_ref_die_offset_complaint>: New method.
8755 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8756 (attribute::get_ref_die_offset_complaint): Rename from
8757 get_ref_die_offset. Just issue complaint.
8758
8759 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8760
8761 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8762
8763 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8764
8765 * exec.c (exec_file_attach): Use errno value of first openp failure.
8766
8767 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8768
8769 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8770 Don't close thread handle.
8771
8772 2020-05-27 Tom Tromey <tom@tromey.com>
8773 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8776 shared_ptr.
8777 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8778 member.
8779 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8780 dwarf2_per_bfd_objfile_data_key>: New globals.
8781 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8782 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8783 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8784 shared.
8785 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8786 short-circuit when sharing.
8787 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8788 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8789
8790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8793 to...
8794 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8795 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8796
8797 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8798
8799 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8800 build_name_components, find_name_components_bounds>:
8801 Add per_objfile parameter.
8802 (struct mapped_index) <symbol_name_at>: Likewise.
8803 (struct mapped_debug_names): Remove constructor.
8804 <dwarf2_per_objfile>: Remove field.
8805 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8806 (mapped_index_base::find_name_components_bounds,
8807 mapped_index_base::build_name_components,
8808 dw2_expand_symtabs_matching_symbol): Likewise.
8809 (class mock_mapped_index) <symbol_name_at>: Likewise.
8810 (check_match): Likewise.
8811 (check_find_bounds_finds): Likewise.
8812 (test_mapped_index_find_name_component_bounds): Update.
8813 (CHECK_MATCH): Update.
8814 (dw2_expand_symtabs_matching): Update.
8815 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8816 per_objfile parameter.
8817 <find_vec_in_debug_names>: Likewise.
8818 <m_per_objfile>: New field.
8819 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8820 parameter.
8821 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8822 (dw2_debug_names_iterator::next): Update.
8823 (dw2_debug_names_lookup_symbol): Update.
8824 (dw2_debug_names_expand_symtabs_for_function): Update.
8825 (dw2_debug_names_map_matching_symbols): Update.
8826 (dw2_debug_names_expand_symtabs_matching): Update.
8827 (dwarf2_read_debug_names): Update.
8828
8829 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8832 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8833 move to dwarf2_per_objfile.
8834 <read_in_chain>: Remove.
8835 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8836 remove_all_cus, age_comp_units>: New methods.
8837 <m_dwarf2_cus>: New member.
8838 (struct dwarf2_per_cu_data) <cu>: Remove.
8839 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8840 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8841 moved to methods of dwarf2_per_objfile.
8842 (dwarf2_clear_marks): Remove.
8843 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8844 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8845 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8846 (dwarf2_per_objfile::remove_all_cus): New.
8847 (class free_cached_comp_units) <~free_cached_comp_units>:
8848 Update.
8849 (load_cu): Update.
8850 (dw2_do_instantiate_symtab): Adjust.
8851 (fill_in_sig_entry_from_dwo_entry): Adjust.
8852 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8853 (cutu_reader::cutu_reader): Likewise.
8854 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8855 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8856 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8857 and dwarf2_per_objfile::age_comp_units.
8858 (load_partial_comp_unit): Update.
8859 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8860 (process_queue): Likewise.
8861 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8862 backlink.
8863 (dwarf2_read_addr_index): Likewise.
8864 (follow_die_offset): Likewise.
8865 (dwarf2_fetch_die_loc_sect_off): Likewise.
8866 (dwarf2_fetch_constant_bytes): Likewise.
8867 (dwarf2_fetch_die_type_sect_off): Likewise.
8868 (follow_die_sig_1): Likewise.
8869 (load_full_type_unit): Likewise.
8870 (read_signatured_type): Likewise.
8871 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8872 (dwarf2_cu::~dwarf2_cu): Remove.
8873 (dwarf2_per_objfile::get_cu): New.
8874 (dwarf2_per_objfile::set_cu): New.
8875 (age_cached_comp_units): Rename to...
8876 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8877 to std::unordered_map.
8878 (free_one_cached_comp_unit): Rename to...
8879 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8880 to std::unordered_map.
8881 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8882 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8883 a dwarf2_per_objfile in data.
8884 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8885 (dwarf2_clear_marks): Remove.
8886
8887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8888
8889 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8890 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8891 (init_tu_and_read_dwo_dies): Likewise.
8892 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8893 (cutu_reader::cutu_reader): Likewise.
8894 (load_partial_comp_unit): Likewise.
8895 (process_psymtab_comp_unit): Update.
8896 (build_type_psymtabs_1): Update.
8897 (process_skeletonless_type_unit): Update.
8898 (load_full_comp_unit): Update.
8899 (find_partial_die): Update.
8900 (dwarf2_read_addr_index): Update.
8901 (read_signatured_type): Update.
8902
8903 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8904
8905 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8906 m_header_read_in>: New fields.
8907 <get_header>: New method.
8908 * dwarf2/read.c (per_cu_header_read_in): Remove.
8909 (dwarf2_per_cu_data::get_header): New.
8910 (dwarf2_per_cu_data::addr_size): Update.
8911 (dwarf2_per_cu_data::offset_size): Update.
8912 (dwarf2_per_cu_data::ref_addr_size): Update.
8913
8914 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8915
8916 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8917 (dw2_do_instantiate_symtab): Update.
8918 (queue_and_load_all_dwo_tus): Change parameter from
8919 dwarf2_per_cu_data to dwarf2_cu.
8920 (dwarf2_fetch_die_loc_sect_off): Update.
8921 (dwarf2_fetch_constant_bytes): Update.
8922 (dwarf2_fetch_die_type_sect_off): Update.
8923
8924 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8925
8926 * dwarf2/read.c (process_full_comp_unit,
8927 process_full_type_unit): Remove per_cu, per_objfile paramters.
8928 Add dwarf2_cu parameter.
8929 (process_queue): Update.
8930
8931 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8932
8933 * dwarf2/read.c (create_cu_from_index_list): Replace
8934 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8935 (create_cus_from_index_list): Likewise.
8936 (create_cus_from_index): Likewise.
8937 (create_signatured_type_table_from_index): Likewise.
8938 (create_cus_from_debug_names_list): Likewise.
8939 (create_cus_from_debug_names): Likewise.
8940 (dwarf2_read_gdb_index): Update.
8941 (dwarf2_read_debug_names): Update.
8942
8943 2020-05-27 Tom Tromey <tom@tromey.com>
8944 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * dwarf2/read.h (struct dwarf2_per_objfile)
8947 <get_type_for_signatured_type, set_type_for_signatured_type>:
8948 New methods.
8949 <m_type_map>: New member.
8950 (struct signatured_type) <type>: Remove.
8951 * dwarf2/read.c
8952 (dwarf2_per_objfile::get_type_for_signatured_type,
8953 dwarf2_per_objfile::set_type_for_signatured_type): New.
8954 (get_signatured_type): Use new methods.
8955
8956 2020-05-27 Tom Tromey <tom@tromey.com>
8957 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8960 (struct dwarf2_per_objfile) <type_units>: New member.
8961 <get_type_unit_group_unshareable>: New method.
8962 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8963 num_symtabs, symtabs>: Remove; move to
8964 type_unit_group_unshareable.
8965 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8966 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8967 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8968
8969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * dwarf2/read.h (struct dwarf2_per_cu_data):
8972 <dwarf2_per_objfile>: Remove.
8973 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8974 dwarf2_per_objfile.
8975 (create_signatured_type_table_from_index): Likewise.
8976 (create_signatured_type_table_from_debug_names): Likewise.
8977 (create_debug_type_hash_table): Likewise.
8978 (fill_in_sig_entry_from_dwo_entry): Likewise.
8979 (create_type_unit_group): Likewise.
8980 (read_comp_units_from_section): Likewise.
8981 (create_cus_hash_table): Likewise.
8982
8983 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8984
8985 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8986 dwarf2_per_cu_data::dwarf2_per_objfile.
8987 (compute_compunit_symtab_includes): Likewise.
8988 (dwarf2_cu::start_symtab): Likewise.
8989
8990 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8991
8992 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8993 parameter.
8994 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8995 (read_namespace_alias): Update.
8996 (lookup_die_type): Update.
8997 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8998 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8999 Update.
9000 (disassemble_dwarf_expression): Update.
9001
9002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * dwarf2/read.h (struct dwarf2_queue_item): Add
9005 dwarf2_per_objfile parameter, assign new parameter.
9006 <per_objfile>: New field.
9007 * dwarf2/read.c (free_one_cached_comp_unit): Add
9008 dwarf2_per_objfile parameter.
9009 (queue_comp_unit): Likewise.
9010 (dw2_do_instantiate_symtab): Update.
9011 (process_psymtab_comp_unit): Update.
9012 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9013 (process_imported_unit_die): Update.
9014 (queue_and_load_dwo_tu): Update.
9015 (follow_die_offset): Update.
9016 (follow_die_sig_1): Update.
9017
9018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9019
9020 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9021 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9022 (read_call_site_scope): Assign per_objfile.
9023 (dwarf2_per_cu_data::objfile): Remove.
9024 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9025 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9026 dwarf2_per_objfile parameter.
9027 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9028 dwarf2_per_objfile parameter.
9029 (dwarf_expr_reg_to_entry_parameter): Add output
9030 dwarf2_per_objfile parameter.
9031 (locexpr_get_frame_base): Update.
9032 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9033 <push_dwarf_reg_entry_value>: Update.
9034 <call_site_to_target_addr>: Update.
9035 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9036 parameter.
9037 (value_of_dwarf_reg_entry): Update.
9038 (rw_pieced_value): Update.
9039 (indirect_synthetic_pointer): Update.
9040 (dwarf2_evaluate_property): Update.
9041 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9042 parameter.
9043 (locexpr_read_variable): Update.
9044 (locexpr_get_symbol_read_needs): Update.
9045 (loclist_read_variable): Update.
9046
9047 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9050 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9051 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9052 parameter.
9053 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9054 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9055 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9056 parameter.
9057 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9058 sect_variable_value): Add dwarf2_per_objfile parameter.
9059 (class dwarf_evaluate_loc_desc) <dwarf_call,
9060 dwarf_variable_value>: Update.
9061 (fetch_const_value_from_synthetic_pointer): Add
9062 dwarf2_per_objfile parameter.
9063 (fetch_const_value_from_synthetic_pointer): Update.
9064 (coerced_pieced_ref): Update.
9065 (class symbol_needs_eval_context) <dwarf_call,
9066 dwarf_variable_value>: Update.
9067 (dwarf2_compile_expr_to_ax): Update.
9068
9069 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9072 parameter.
9073 (dwarf2_evaluate_loc_desc_full): Update.
9074
9075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9078 parameter.
9079 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9080 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9081 dwarf2_per_objfile parameter.
9082 (decode_debug_loc_dwo_addresses): Likewise.
9083 (dwarf2_find_location_expression): Update.
9084 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9085 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9086 parameter.
9087 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9088 parameter.
9089 (locexpr_describe_location_1): Likewise.
9090 (locexpr_describe_location): Update.
9091
9092 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9095 Remove.
9096 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9097 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9098 (dwarf2_compile_property_to_c): Update.
9099 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9100 use text offset from objfile.
9101 (locexpr_tracepoint_var_ref): Update.
9102 (locexpr_generate_c_location): Update.
9103 (loclist_describe_location): Update.
9104 (loclist_tracepoint_var_ref): Update.
9105 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9106 dwarf2_per_objfile parameter.
9107 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9108 use text offset from objfile.
9109 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9110
9111 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9112
9113 * dwarf2/expr.h (struct dwarf_expr_context)
9114 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9115 <offset>: Remove.
9116 <per_objfile>: New member.
9117 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9118 dwarf2_per_objfile parameter. Don't set offset, set
9119 per_objfile.
9120 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9121 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9122 a dwarf2_per_objfile object instead of an offset.
9123 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9124 constructor.
9125 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9126 to dwarf2_expr_executor constructor. Don't set offset.
9127 (dwarf2_fetch_cfa_info): Update.
9128 (struct dwarf2_frame_cache) <text_offset>: Remove.
9129 <per_objfile>: New field.
9130 (dwarf2_frame_cache): Update.
9131 (dwarf2_frame_prev_register): Update.
9132 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9133 <dwarf_evaluate_loc_desc>: Add constructor.
9134 (dwarf2_evaluate_loc_desc_full): Update.
9135 (dwarf2_locexpr_baton_eval): Update.
9136 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9137 Add constructor.
9138 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9139
9140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9143 addr_sized_int_type>: Move to dwarf2_cu.
9144 <int_type>: Move to dwarf2_per_objfile.
9145 (struct dwarf2_per_objfile) <int_type>: Move here.
9146 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9147 addr_sized_int_type>: Move here.
9148 (read_func_scope): Update.
9149 (read_array_type): Update.
9150 (read_tag_string_type): Update.
9151 (attr_to_dynamic_prop): Update.
9152 (dwarf2_per_cu_data::int_type): Rename to...
9153 (dwarf2_per_objfile::int_type): ... this.
9154 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9155 (dwarf2_cu::addr_sized_int_type): ... this.
9156 (read_subrange_type): Update.
9157 (dwarf2_per_cu_data::addr_type): Rename to...
9158 (dwarf2_cu::addr_type): ... this.
9159 (set_die_type): Update.
9160
9161 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9164 data through per_cu->cu.
9165
9166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9169 dwarf2_per_cu_data parameter fo dwarf2_cu.
9170 (lookup_dwo_type_unit): Likewise.
9171 (read_cutu_die_from_dwo): Likewise.
9172 (lookup_dwo_unit): Likewise.
9173 (open_and_init_dwo_file): Likewise.
9174 (lookup_dwo_cutu): Likewise.
9175 (lookup_dwo_comp_unit): Likewise.
9176 (lookup_dwo_type_unit): Likewise.
9177 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9178 (cutu_reader::cutu_reader): Update.
9179
9180 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9183 parameter.
9184 (process_full_type_unit): Likewise.
9185 (process_queue): Update.
9186
9187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * dwarf2/read.c (recursively_compute_inclusions): Add
9190 dwarf2_per_objfile parameter.
9191 (compute_compunit_symtab_includes): Likewise.
9192 (process_cu_includes): Update.
9193
9194 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9195
9196 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9197 parameter.
9198 (create_type_unit_group): Update.
9199 (process_psymtab_comp_unit_reader): Update.
9200 (build_type_psymtabs_reader): Update.
9201
9202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9205 object through m_this_cu->cu.
9206
9207 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9208
9209 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9210 the info parameter.
9211 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9212
9213 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9214
9215 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9216 per_objfile parameter.
9217 (load_full_type_unit): Add per_objfile parameter.
9218 (read_signatured_type): Likewise.
9219 (load_full_comp_unit): Likewise.
9220 (load_cu): Likewise.
9221 (dw2_do_instantiate_symtab): Likewise.
9222 (dw2_get_file_names): Likewise.
9223 (dw2_map_symtabs_matching_filename): Update.
9224 (dw_expand_symtabs_matching_file_matcher): Update.
9225 (dw2_map_symbol_filenames): Update.
9226 (process_psymtab_comp_unit): Add per_objfile parameter.
9227 (build_type_psymtabs_1): Update.
9228 (process_skeletonless_type_unit): Update.
9229 (dwarf2_build_psymtabs_hard): Update.
9230 (load_partial_comp_unit): Add per_objfile parameter.
9231 (scan_partial_symbols): Update.
9232 (load_full_comp_unit): Add per_objfile parameter.
9233 (process_imported_unit_die): Update.
9234 (create_cus_hash_table): Update.
9235 (find_partial_die): Update.
9236 (dwarf2_read_addr_index): Update.
9237 (follow_die_offset): Update.
9238 (dwarf2_fetch_die_loc_sect_off): Update.
9239 (dwarf2_fetch_constant_bytes): Update.
9240 (dwarf2_fetch_die_type_sect_off): Update.
9241 (follow_die_sig_1): Update.
9242 (load_full_type_unit): Add per_objfile parameter.
9243 (read_signatured_type): Likewise.
9244
9245 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9248 of objfile_name.
9249
9250 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9251
9252 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9253 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9254 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9255 field.
9256 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9257 (create_cus_from_index): Update.
9258 (dwarf2_read_gdb_index): Update.
9259 (create_cus_from_debug_names): Update.
9260 (dwarf2_read_debug_names): Update.
9261 (get_abbrev_section_for_cu): Update.
9262 (create_all_comp_units): Update.
9263 (read_attribute_value): Update.
9264 (get_debug_line_section): Update.
9265 * dwarf2/index-cache.c (index_cache::store): Update.
9266 * dwarf2/index-write.c (save_gdb_index_command): Update.
9267 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9268
9269 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9270
9271 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9272 member.
9273 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9274 dwarf2_per_cu_data::per_bfd.
9275 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9276 (create_type_unit_group): Likewise.
9277 (queue_comp_unit): Remove reference to
9278 per_cu->dwarf2_per_objfile.
9279 (maybe_queue_comp_unit): Likewise.
9280 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9281 (create_cus_hash_table): Assign new field.
9282
9283 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * dwarf2/read.c: Replace
9286 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9287 dwarf2_cu->per_objfile throughout.
9288
9289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9292 parameter, don't use per_cu->dwarf2_per_objfile.
9293 (dw2_instantiate_symtab): Likewise.
9294 (dw2_find_last_source_symtab): Update.
9295 (dw2_map_expand_apply): Update.
9296 (dw2_lookup_symbol): Update.
9297 (dw2_expand_symtabs_for_function): Update.
9298 (dw2_expand_all_symtabs): Update.
9299 (dw2_expand_symtabs_with_fullname): Update.
9300 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9301 don't use per_cu->dwarf2_per_objfile.
9302 (dw2_expand_marked_cus): Update.
9303 (dw2_find_pc_sect_compunit_symtab): Update.
9304 (dw2_debug_names_lookup_symbol): Update.
9305 (dw2_debug_names_expand_symtabs_for_function): Update.
9306 (dw2_debug_names_map_matching_symbols): Update.
9307 (dwarf2_psymtab::expand_psymtab): Update.
9308
9309 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9312 <per_objfile>: New member.
9313 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9314 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9315 call to dwarf2_cu.
9316 (cutu_reader::cutu_reader): Update.
9317 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9318
9319 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9322 struct dwarf2_per_objfile.
9323 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9324 dwarf2_per_bfd.
9325 * dwarf2/read.c (set_die_type): Update.
9326 (get_die_type_at_offset): Update.
9327
9328 2020-05-27 Tom Tromey <tom@tromey.com>
9329 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9332 method.
9333 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9334 get_symtab, set_symtab>: New methods.
9335 <m_symtabs>: New field.
9336 (struct dwarf2_psymtab): Derive from partial_symtab.
9337 <readin_p, get_compunit_symtab>: Declare methods.
9338 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9339 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9340 New methods.
9341 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9342 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9343 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9344 (dw2_symtab_iter_next, dw2_print_stats)
9345 (dw2_expand_symtabs_with_fullname)
9346 (dw2_expand_symtabs_matching_one)
9347 (dw_expand_symtabs_matching_file_matcher)
9348 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9349 (dw2_debug_names_iterator::next)
9350 (dw2_debug_names_map_matching_symbols)
9351 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9352 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9353 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9354 New methods.
9355 (get_compunit_symtab, process_full_comp_unit)
9356 (process_full_type_unit): Update.
9357 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9358
9359 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9360
9361 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9362 then introduce a new dwarf2_per_objfile type.
9363 <read_line_string>: Move to the new dwarf2_per_objfile type.
9364 <objfile>: Likewise.
9365 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9366 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9367 dwarf2_per_objfile->per_bfd.
9368 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9369 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9370 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9371 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9372 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9373 (dwarf2_per_objfile::locate_sections): Rename to...
9374 (dwarf2_per_bfd::locate_sections): ... this.
9375 (dwarf2_per_objfile::get_cutu): Rename to...
9376 (dwarf2_per_bfd::get_cutu): ... this.
9377 (dwarf2_per_objfile::get_cu): Rename to...
9378 (dwarf2_per_bfd::get_cu): ... this.
9379 (dwarf2_per_objfile::get_tu): Rename to...
9380 (dwarf2_per_bfd::get_tu): ... this.
9381 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9382 (dwarf2_per_bfd::allocate_per_cu): ... this.
9383 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9384 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9385 (get_gdb_index_contents_ftype): Change parameter from
9386 dwarf2_per_objfile to dwarf2_per_bfd.
9387 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9388 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9389
9390 2020-05-27 Tom Tromey <tom@tromey.com>
9391 Simon Marchi <simon.marchi@efficios.com>
9392
9393 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9394 (allocate_piece_closure): Set "per_objfile" member.
9395 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9396 (locexpr_describe_location, loclist_describe_location): Use new
9397 member.
9398 * dwarf2/read.c (read_call_site_scope)
9399 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9400 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9401 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9402 handle_data_member_location): Set per_objfile member.
9403 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9404 member.
9405 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9406
9407 2020-05-27 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9410 allocate_signatured_type>: Declare new methods.
9411 <m_num_psymtabs>: New member.
9412 (struct dwarf2_per_cu_data) <index>: New member.
9413 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9414 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9415 (create_cu_from_index_list): Use allocate_per_cu.
9416 (create_signatured_type_table_from_index)
9417 (create_signatured_type_table_from_debug_names)
9418 (create_debug_type_hash_table, add_type_unit)
9419 (read_comp_units_from_section): Use allocate_signatured_type.
9420
9421 2020-05-27 Tom Tromey <tom@tromey.com>
9422
9423 * psymtab.c (partial_map_expand_apply)
9424 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9425 (psym_lookup_global_symbol_language)
9426 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9427 (psym_print_stats, psym_expand_symtabs_for_function)
9428 (psym_map_symbol_filenames, psym_map_matching_symbols)
9429 (psym_expand_symtabs_matching)
9430 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9431 (maintenance_check_psymtabs): Update.
9432 * psympriv.h (struct partial_symtab) <readin_p,
9433 get_compunit_symtab>: Add objfile parameter.
9434 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9435 Likewise.
9436 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9437 get_compunit_symtab>: Likewise.
9438 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9439
9440 2020-05-27 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9443 member.
9444 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9445 (create_cu_from_index_list)
9446 (create_signatured_type_table_from_index)
9447 (create_signatured_type_table_from_debug_names)
9448 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9449 (dwarf2_create_include_psymtab)
9450 (create_debug_type_hash_table, add_type_unit)
9451 (create_type_unit_group, read_comp_units_from_section)
9452 (dwarf2_compute_name, create_cus_hash_table)
9453 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9454 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9455 obstack.
9456 (dw2_get_real_path): Likewise. Change argument to
9457 dwarf2_per_objfile.
9458
9459 2020-05-27 Luis Machado <luis.machado@linaro.org>
9460
9461 PR tdep/26000
9462 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9463 for ldrd (immediate).
9464
9465 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9466
9467 * command.h: Add comment giving the name of class_tui.
9468 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9469 create the fake command for the help for class_tui.
9470
9471 2020-05-26 Tom Tromey <tromey@adacore.com>
9472
9473 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9474 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9475 (val_atr): New function.
9476 (value_val_atr): Use it.
9477 * ada-valprint.c (print_optional_low_bound): Change low bound
9478 handling for enums.
9479 (val_print_packed_array_elements): Don't call discrete_position.
9480 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9481 discrete_position for enum types.
9482 * language.c (default_print_array_index): Change type.
9483 * language.h (struct language_defn) <la_print_array_index>: Add
9484 index_type parameter, change type of index_value.
9485 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9486 (default_print_array_index): Update.
9487 * valprint.c (maybe_print_array_index): Don't call
9488 value_from_longest. Update.
9489 (value_print_array_elements): Don't call discrete_position.
9490
9491 2020-05-26 Tom Tromey <tromey@adacore.com>
9492
9493 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9494 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9495
9496 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9497
9498 PR gdb/13519
9499 * avr-tdep.c (avr_integer_to_address): Return data or code
9500 address accordingly to the second 'type' argument of the
9501 function.
9502
9503 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9504
9505 * infcmd.c, inferior.h: (construct_inferior_arguments):
9506 Moved function from here to gdbsupport/common-inferior.{h,cc}
9507
9508 2020-05-23 Tom Tromey <tom@tromey.com>
9509
9510 Revert commit eca1f90c:
9511 * NEWS: Remove entry for completion styling.
9512 * completer.c (_rl_completion_prefix_display_length): Move
9513 declaration later.
9514 (gdb_fnprint): Revert.
9515 (gdb_display_match_list_1): Likewise.
9516 * cli/cli-style.c (completion_prefix_style)
9517 (completion_difference_style, completion_suffix_style): Remove.
9518 (_initialize_cli_style): Revert.
9519 * cli/cli-style.h (completion_prefix_style)
9520 (completion_difference_style, completion_suffix_style): Don't
9521 declare.
9522
9523 2020-05-24 Pedro Alves <palves@redhat.com>
9524
9525 * symtab.c (completion_list_add_name): Return boolean indication
9526 of whether the symbol matched.
9527 (completion_list_add_symbol): Don't try to remove C++ aliases if
9528 the symbol didn't match in the first place.
9529 * symtab.h (completion_list_add_name): Return bool.
9530
9531 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9532
9533 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9534 type::field.
9535
9536 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9537
9538 GDB 9.2 released.
9539
9540 2020-05-23 Tom Tromey <tom@tromey.com>
9541
9542 * NEWS: Add entry for completion styling.
9543 * completer.c (_rl_completion_prefix_display_length): Move
9544 declaration earlier.
9545 (gdb_fnprint): Use completion_style.
9546 (gdb_display_match_list_1): Likewise.
9547 * cli/cli-style.c (completion_prefix_style)
9548 (completion_difference_style, completion_suffix_style): New
9549 globals.
9550 (_initialize_cli_style): Register new globals.
9551 * cli/cli-style.h (completion_prefix_style)
9552 (completion_difference_style, completion_suffix_style): Declare.
9553
9554 2020-05-23 Pedro Alves <palves@redhat.com>
9555
9556 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9557 (parse_escape): Use ISDIGIT instead of isdigit.
9558 (puts_debug): Use gdb_isprint instead of isprint.
9559 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9560 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9561 ISSPACE instead of isspace.
9562 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9563 instead of isspace.
9564 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9565 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9566 instead of isxdigit and ISDIGIT instead of isdigit.
9567
9568 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9569
9570 * gdbtypes.h (struct type) <field>: New method.
9571 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9572 or type::field.
9573
9574 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9575
9576 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9577 (TYPE_FIELDS): Use type::fields. Change all call sites that
9578 modify the propery to use type::set_fields instead.
9579
9580 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9583 type::num_fields instead.
9584
9585 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9586
9587 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9588 methods.
9589 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9590 that modify the number of fields to use type::set_num_fields
9591 instead.
9592
9593 2020-05-22 Tom Tromey <tromey@adacore.com>
9594
9595 * compile/compile-object-load.h (munmap_list_free): Don't
9596 declare.
9597
9598 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9599
9600 * annotate.c (annotate_source_line): Update return type, add call
9601 to update current symtab and line.
9602 * annotate.h (annotate_source_line): Update return type, and
9603 extend header comment.
9604 * source.c (info_line_command): Check annotation_level before
9605 calling annotate_source_line.
9606 * stack.c (print_frame_info): If calling annotate_source_line
9607 returns true, then don't print any other source line information.
9608
9609 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9610
9611 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9612
9613 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * coffread.c (patch_type): Remove NULL check before xfree.
9616 * corefile.c (set_gnutarget): Likewise.
9617 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9618 * exec.c (build_section_table): Likewise.
9619 * remote.c (remote_target::pass_signals): Likewise.
9620 * utils.c (n_spaces): Likewise.
9621 * cli/cli-script.c (document_command): Likewise.
9622 * i386-windows-tdep.c (core_process_module_section): Likewise.
9623 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9624
9625 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * symfile.c (reread_symbols): Clear objfile's section_offsets
9628 vector and section indices, re-compute them by calling
9629 sym_offsets.
9630
9631 2020-05-20 Tom Tromey <tromey@adacore.com>
9632
9633 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9634 (desc_one_bound, desc_index_type): Compute field name.
9635
9636 2020-05-20 Tom de Vries <tdevries@suse.de>
9637
9638 PR symtab/25833
9639 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9640
9641 2020-05-20 Alan Modra <amodra@gmail.com>
9642
9643 PR 25993
9644 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9645 bfd_set_filename.
9646 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9647 passed to bfd_set_filename.
9648 * symfile-mem.c (add_vsyscall_page): Likewise for string
9649 passed to symbol_file_add_from_memory.
9650 (symbol_file_add_from_memory): Make name param a const char* and
9651 don't strdup.
9652
9653 2020-05-20 Alan Modra <amodra@gmail.com>
9654
9655 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9656 rather than accessing bfd->filename directly.
9657 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9658 and use bfd_section_name.
9659 * dwarf2/frame.c (decode_frame_entry): Likewise.
9660 * exec.c (exec_set_section_address): Likewise.
9661 * solib-aix.c (solib_aix_bfd_open): Likewise.
9662 * stap-probe.c (get_stap_base_address): Likewise.
9663 * symfile.c (reread_symbols): Likewise.
9664
9665 2020-05-19 Tom Tromey <tromey@adacore.com>
9666
9667 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9668
9669 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9672
9673 2020-05-19 Pedro Alves <palves@redhat.com>
9674
9675 * NEWS (set exec-file-mismatch): Adjust entry.
9676 * exec.c: Include "build-id.h".
9677 (validate_exec_file): Try to match build IDs instead of filenames.
9678 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9679 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9680 and pass down 'warn_if_slow'.
9681 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9682 gdb_bfd_open_closure to pass it down.
9683 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9684
9685 2020-05-19 Pedro Alves <palves@redhat.com>
9686
9687 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9688 * target.c (target_fileio_open_1): Rename to target_fileio_open
9689 and make extern. Use bool.
9690 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9691 (target_fileio_read_alloc_1): Adjust.
9692 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9693 (target_fileio_open_warn_if_slow): Delete declaration.
9694
9695 2020-05-19 Pedro Alves <palves@redhat.com>
9696
9697 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9698 Adjust all callers.
9699
9700 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9701
9702 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9703 whether disp is negative.
9704
9705 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * symfile.h (struct symfile_segment_data)
9708 <~symfile_segment_data>: Remove.
9709 <segment_info>: Change to std::vector.
9710 * symfile.c (default_symfile_segments): Update.
9711 * elfread.c (elf_symfile_segments): Update.
9712
9713 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9714
9715 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9716 <segments>: New.
9717 <segment_bases, segment_sizes>: Remove.
9718 * symfile.c (default_symfile_segments): Update.
9719 * elfread.c (elf_symfile_segments): Update.
9720 * remote.c (remote_target::get_offsets): Update.
9721 * solib-target.c (solib_target_relocate_section_addresses):
9722 Update.
9723
9724 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9725
9726 * symfile.h (struct symfile_segment_data): Initialize fields.
9727 <~symfile_segment_data>: Add.
9728 (symfile_segment_data_up): New.
9729 (struct sym_fns) <sym_segments>: Return a
9730 symfile_segment_data_up.
9731 (default_symfile_segments): Return a symfile_segment_data_up.
9732 (free_symfile_segment_data): Remove.
9733 (get_symfile_segment_data): Return a symfile_segment_data_up.
9734 * symfile.c (default_symfile_segments): Likewise.
9735 (get_symfile_segment_data): Likewise.
9736 (free_symfile_segment_data): Remove.
9737 (symfile_find_segment_sections): Update.
9738 * elfread.c (elf_symfile_segments): Return a
9739 symfile_segment_data_up.
9740 * remote.c (remote_target::get_offsets): Update.
9741 * solib-target.c (solib_target_relocate_section_addresses):
9742 Update.
9743 * symfile-debug.c (debug_sym_segments): Return a
9744 symfile_segment_data_up.
9745
9746 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9747
9748 PR build/25981
9749 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9750 Hardcode register numbers.
9751
9752 PR build/25981
9753 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9754 procfs_find_LDT_entry): Remove.
9755 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9756 procfs_find_LDT_entry): Remove.
9757 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9758 Remove.
9759
9760 2020-05-17 Pedro Alves <palves@redhat.com>
9761 Andrew Burgess <andrew.burgess@embecosm.com>
9762 Keno Fischer <keno@juliacomputing.com>
9763
9764 PR gdb/25741
9765 * breakpoint.c (build_target_condition_list): Update comments.
9766 (build_target_command_list): Update comments and skip matching
9767 locations.
9768 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9769 a separate function. Simplify "set breakpoint auto-hw off"
9770 handling.
9771 (insert_breakpoints): Update comment.
9772 (tracepoint_locations_match): New parameter. For breakpoints,
9773 compare location types too, if the caller wants to.
9774 (handle_automatic_hardware_breakpoints): New functions.
9775 (bp_location_is_less_than): Also sort by location type and
9776 hardware breakpoint length.
9777 (update_global_location_list): Handle "set breakpoint auto-hw on"
9778 here.
9779 (update_breakpoint_locations): Ask breakpoint_locations_match to
9780 ignore location types.
9781
9782 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9785 type::name instead.
9786
9787 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * gdbtypes.h (struct type) <name, set_name>: New methods.
9790 (TYPE_CODE): Use type::name. Change all call sites used to set
9791 the name to use type::set_name instead.
9792
9793 2020-05-16 Tom Tromey <tom@tromey.com>
9794
9795 * top.c (quit_force): Update.
9796 * infrun.c (handle_no_resumed): Update.
9797 * top.h (all_uis): New function.
9798 (ALL_UIS): Remove.
9799
9800 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9803
9804 2020-05-16 Pedro Alves <palves@redhat.com>
9805
9806 * ia64-linux-nat.c
9807 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9808 Declare method.
9809 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9810
9811 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9814 (sparc64_adi_info): Likewise.
9815
9816 2020-05-15 Tom Tromey <tom@tromey.com>
9817
9818 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9819 block_objfile.
9820 (lookup_objfile_from_block): Remove.
9821 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9822 (lookup_global_symbol): Use block_objfile.
9823 * symtab.h (lookup_objfile_from_block): Don't declare.
9824 * printcmd.c (clear_dangling_display_expressions): Use
9825 block_objfile.
9826 * parse.c (operator_check_standard): Use block_objfile.
9827
9828 2020-05-15 Tom Tromey <tom@tromey.com>
9829
9830 * language.c (language_alloc_type_symbol): Set
9831 SYMBOL_SECTION.
9832 * symtab.c (initialize_objfile_symbol): Remove.
9833 (allocate_symbol): Remove.
9834 (allocate_template_symbol): Remove.
9835 * dwarf2/read.c (fixup_go_packaging): Use "new".
9836 (new_symbol): Use "new".
9837 (read_variable): Don't call initialize_objfile_symbol. Use
9838 "new".
9839 (read_func_scope): Use "new".
9840 * xcoffread.c (process_xcoff_symbol): Don't call
9841 initialize_objfile_symbol.
9842 (SYMBOL_DUP): Remove.
9843 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9844 "new".
9845 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9846 (allocate_template_symbol): Don't declare.
9847 (struct symbol): Add copy constructor. Change defaults.
9848 * jit.c (finalize_symtab): Use "new".
9849 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9850 Use "new".
9851 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9852 (common_block_end): Use "new".
9853 * mdebugread.c (parse_symbol): Use "new".
9854 (new_symbol): Likewise.
9855
9856 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9857
9858 * NEWS: Mention changes to help and apropos.
9859
9860 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9861
9862 * command.h (enum command_class): Improve comments, document
9863 that class_alias is for user-defined aliases, give the class
9864 name for each class, remove unused class_xdb.
9865 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9866 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9867 by a precise class.
9868 * infcmd.c (_initialize_infcmd): Likewise.
9869 * reverse.c (_initialize_reverse): Likewise.
9870 * stack.c (_initialize_stack): Likewise.
9871 * symfile.c (_initialize_symfile): Likewise.
9872 * tracepoint.c (_initialize_tracepoint): Likewise.
9873
9874 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9875
9876 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9877 when their aliased command is traversed.
9878 (help_cmd): Add fput_command_names_styled call to
9879 output command name and aliases when command has an alias.
9880
9881 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9882
9883 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9884 * cli/cli-decode.c (help_cmd_list): Declare as static,
9885 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9886 a command together with the command.
9887 (fput_command_name_styled, fput_command_names_styled): New functions.
9888 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9889 fput_command_name_styled.
9890 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9891 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9892
9893 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9894
9895 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9896 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9897 * command.h (cmd_show_list): Likewise.
9898 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9899 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9900
9901 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9902
9903 * unittests/command-def-selftests.c (traverse_command_structure):
9904 Verify all commands of a list have the same prefix command and
9905 that only the top cmdlist commands have a null prefix.
9906
9907 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9908
9909 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9910 as prefix, not one of its aliases.
9911 (set_cmd_prefix): Remove.
9912 (do_add_cmd): Centralize the setting of the prefix of a command, when
9913 command is defined after its full chain of prefix commands.
9914 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9915 (add_setshow_cmd_full): Likewise.
9916 (update_prefix_field_of_prefixed_commands): New function.
9917 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9918 update_prefix_field_of_prefixed_commands.
9919 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9920 addresses of remote_set_cmdlist and remote_show_cmdlist given
9921 as argument, not the address of an argument.
9922 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9923 * gdb/remote.c (_initialize_remote): Likewise.
9924
9925 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9926
9927 * cli/cli-cmds.c (alias_command): Check for an existing alias
9928 using lookup_cmd_composition, as valid_command_p is too strict
9929 and forbids aliases that are the prefix of an existing alias
9930 or command.
9931 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9932 command is properly recognised as a valid command.
9933
9934 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9935
9936 * unittests/help-doc-selftests.c: Rename to
9937 unittests/command-def-selftests.c
9938 * unittests/command-def-selftests.c (help_doc_tests): Update some
9939 comments.
9940 (command_structure_tests, traverse_command_structure): New namespace
9941 and function.
9942 (command_structure_invariants_tests): New function.
9943 (_initialize_command_def_selftests) Renamed from
9944 _initialize_help_doc_selftests, register command_structure_invariants
9945 selftest.
9946
9947 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9948
9949 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9950 an alias of 'show'.
9951
9952 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9953
9954 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9955 ada_is_fixed_point_type. Update all callers.
9956 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9957 all callers.
9958 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9959 Update all callers.
9960 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9961 print_fixed_point_type. Update all callers.
9962 * ada-valprint.c (ada_value_print_num): Replace call to
9963 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9964
9965 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9966
9967 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9968 processors.
9969 (cpu_supports_bts): Add CV_AMD case.
9970
9971 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9972 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * infrun.c (stop_all_threads): Collect multiple wait events at
9975 each pass.
9976
9977 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9980 type::code instead.
9981
9982 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * gdbtypes.h (struct type) <code, set_code>: New methods.
9985 (TYPE_CODE): Use type::code. Change all call sites used to set
9986 the code to use type::set_code instead.
9987
9988 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9989 Tom de Vries <tdevries@suse.de>
9990 Pedro Alves <palves@redhat.com>
9991
9992 PR threads/25478
9993 * infrun.c (stop_all_threads): Do NOT ignore
9994 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9995 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9996 received.
9997 (handle_no_resumed): Remove code handling a live inferior with no
9998 threads.
9999 * remote.c (has_single_non_exited_thread): New.
10000 (remote_target::update_thread_list): Do not delete a thread if is
10001 the last thread of the process.
10002 * thread.c (thread_select): Call delete_exited_threads instead of
10003 prune_threads.
10004
10005 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10006
10007 * infrun.c (stop_all_threads): Enable/disable thread events of all
10008 targets. Move a debug message denoting the end of the function
10009 into the SCOPED_EXIT block.
10010
10011 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10012
10013 * process-stratum-target.h: Include <set>.
10014 (all_non_exited_process_targets, switch_to_target_no_thread): New
10015 function declarations.
10016 * process-stratum-target.c (all_non_exited_process_targets)
10017 (switch_to_target_no_thread): New function implementations.
10018
10019 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10020
10021 * infrun.c (handle_inferior_event): Extract out a piece of code
10022 into...
10023 (mark_non_executing_threads): ...this new function.
10024
10025 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10026
10027 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10028 use.
10029
10030 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10031
10032 * regcache.c (regcache_read_pc_protected): New function
10033 implementation that returns 0 if the PC cannot read via
10034 'regcache_read_pc'.
10035 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10036 instead of 'regcache_read_pc'.
10037 (keep_going_pass_signal): Ditto.
10038
10039 2020-05-13 Tom Tromey <tromey@adacore.com>
10040
10041 * ada-lang.c (align_value): Remove.
10042 (ada_template_to_fixed_record_type_1): Use align_up.
10043
10044 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10045
10046 * async-event.c: Update the copyright year.
10047 * async-event.h: Update the copyright year.
10048
10049 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * objfiles.h (is_addr_in_objfile,
10052 shared_objfile_contains_address_p): Return bool.
10053 * objfile.c (is_addr_in_objfile,
10054 shared_objfile_contains_address_p): Return bool.
10055
10056 2020-05-11 Tom Tromey <tromey@adacore.com>
10057
10058 * cli/cli-cmds.c (info_command): Restore.
10059 (_initialize_cli_cmds): Use add_prefix_command for "info".
10060 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10061
10062 2020-05-11 Tom Tromey <tromey@adacore.com>
10063
10064 * ada-lang.c (ada_value_primitive_field): Now public.
10065 * ada-lang.h (ada_value_primitive_field): Declare.
10066 * ada-valprint.c (print_field_values): Use
10067 ada_value_primitive_field for wrapper fields.
10068
10069 2020-05-11 Tom de Vries <tdevries@suse.de>
10070
10071 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10072 MODULE_DOMAIN.
10073
10074 2020-05-11 Tom de Vries <tdevries@suse.de>
10075
10076 PR symtab/25941
10077 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10078 with length 0, if not gdb-produced.
10079 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10080
10081 2020-05-09 Tom de Vries <tdevries@suse.de>
10082
10083 PR gdb/25955
10084 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10085 calculation.
10086
10087 2020-05-09 Tom Tromey <tom@tromey.com>
10088
10089 * top.c (server_command): Now bool.
10090 * top.h (server_command): Now bool.
10091
10092 2020-05-08 Tom Tromey <tromey@adacore.com>
10093
10094 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10095 already being processed.
10096
10097 2020-05-08 Tom Tromey <tom@tromey.com>
10098
10099 * printcmd.c (struct display) <next>: Remove.
10100 <display>: New constructor.
10101 <exp_string>: Now a std::string.
10102 <enabled_p>: Now a bool.
10103 (display_number): Move definition earlier.
10104 (displays): Rename from display_chain. Now a std::vector.
10105 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10106 (display_command): Update.
10107 (do_one_display, disable_display)
10108 (enable_disable_display_command, do_enable_disable_display):
10109 Update.
10110 (free_display): Remove.
10111 (clear_displays): Rewrite.
10112 (delete_display): Update.
10113 (map_display_numbers): Use function_view. Remove "data"
10114 parameter. Update.
10115 (do_delete_display): Remove.
10116 (undisplay_command): Update.
10117 (do_one_display, do_displays, disable_display)
10118 (info_display_command): Update.
10119 (do_enable_disable_display): Remove.
10120 (enable_disable_display_command)
10121 (clear_dangling_display_expressions): Update.
10122
10123 2020-05-08 Tom Tromey <tom@tromey.com>
10124
10125 * symtab.c (set_symbol_cache_size)
10126 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10127 (maintenance_print_symbol_cache_statistics): Update.
10128 * symmisc.c (print_symbol_bcache_statistics)
10129 (print_objfile_statistics, maintenance_print_objfiles)
10130 (maintenance_info_symtabs, maintenance_check_symtabs)
10131 (maintenance_expand_symtabs, maintenance_info_line_tables):
10132 Update.
10133 * symfile-debug.c (set_debug_symfile): Update.
10134 * source.c (forget_cached_source_info): Update.
10135 * python/python.c (gdbpy_progspaces): Update.
10136 * psymtab.c (maintenance_info_psymtabs): Update.
10137 * probe.c (parse_probes): Update.
10138 * linespec.c (iterate_over_all_matching_symtabs)
10139 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10140 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10141 * exec.c (exec_target::close): Update.
10142 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10143 * breakpoint.c (print_one_breakpoint_location)
10144 (create_longjmp_master_breakpoint)
10145 (create_std_terminate_master_breakpoint): Update.
10146 * progspace.c (program_spaces): Now a std::vector.
10147 (maybe_new_address_space): Update.
10148 (add_program_space): Remove.
10149 (program_space::program_space): Update.
10150 (remove_program_space): Update.
10151 (number_of_program_spaces): Remove.
10152 (print_program_space, update_address_spaces): Update.
10153 * progspace.h (program_spaces): Change type.
10154 (ALL_PSPACES): Remove.
10155 (number_of_program_spaces): Don't declare.
10156 (struct program_space) <next>: Remove.
10157
10158 2020-05-08 Tom Tromey <tom@tromey.com>
10159
10160 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10161 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10162 (enable_break): Update.
10163 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10164 (frv_fdpic_find_canonical_descriptor): Update.
10165 (frv_fetch_objfile_link_map): Update.
10166 * progspace.c (program_space::free_all_objfiles): Update.
10167 (program_space::solibs): New method.
10168 * progspace.h (struct program_space) <solibs>: New method.
10169 * solist.h (master_so_list): Don't declare.
10170 (ALL_SO_LIBS): Remove.
10171 * solib.h (so_list_head): Remove.
10172 (update_solib_list): Update comment.
10173 * solib.c (master_so_list): Remove.
10174 (solib_used, update_solib_list, solib_add)
10175 (info_sharedlibrary_command, clear_solib)
10176 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10177
10178 2020-05-08 Tom Tromey <tom@tromey.com>
10179
10180 * extension.c (extension_languages): Now a std::array.
10181 (ALL_EXTENSION_LANGUAGES): Remove.
10182 (get_ext_lang_defn, get_ext_lang_of_file)
10183 (eval_ext_lang_from_control_command): Update.
10184 (finish_ext_lang_initialization)
10185 (auto_load_ext_lang_scripts_for_objfile)
10186 (ext_lang_type_printers::ext_lang_type_printers)
10187 (apply_ext_lang_type_printers)
10188 (ext_lang_type_printers::~ext_lang_type_printers)
10189 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10190 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10191 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10192 (get_matching_xmethod_workers, ext_lang_colorize)
10193 (ext_lang_before_prompt): Update.
10194 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10195
10196 2020-05-08 Tom Tromey <tom@tromey.com>
10197
10198 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10199 overload.
10200 <swap_string, m_string>: Remove.
10201 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10202 Update.
10203 * stabsread.c (define_symbol, read_type): Update.
10204 * linespec.c (find_linespec_symbols): Update.
10205 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10206 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10207 * dbxread.c (read_dbx_symtab): Update.
10208 * cp-support.h (cp_canonicalize_string_full)
10209 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10210 Return unique_xmalloc_ptr.
10211 * cp-support.c (inspect_type): Update.
10212 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10213 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10214 Likewise.
10215 * c-typeprint.c (print_name_maybe_canonical): Update.
10216 * break-catch-throw.c (check_status_exception_catchpoint):
10217 Update.
10218
10219 2020-05-08 Tom de Vries <tdevries@suse.de>
10220
10221 * infrun.c (follow_fork): Copy current_line and current_symtab to
10222 child thread.
10223
10224 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * async-event.c (struct async_signal_handler, struct
10227 async_event_handler): Reformat, remove typedef.
10228
10229 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10232 access thistype->main_type->dyn_prop_list directly.
10233
10234 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10237 (remove_dyn_prop): Remove. Update all users to use
10238 type::remove_dyn_prop.
10239 * gdbtypes.c (remove_dyn_prop): Rename to...
10240 (type::remove_dyn_prop): ... this.
10241
10242 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10243
10244 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10245 (add_dyn_prop): Remove. Update all users to use
10246 type::add_dyn_prop.
10247 * gdbtypes.c (add_dyn_prop): Rename to...
10248 (type::add_dyn_prop): ... this.
10249
10250 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10253 (get_dyn_prop): Remove. Update all users to use
10254 type::dyn_prop.
10255 * gdbtypes.c (get_dyn_prop): Rename to...
10256 (type::dyn_prop): ... this.
10257
10258 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10261
10262 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10265 instruction, skip it if it's there.
10266
10267 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10270
10271 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10274 * gdbtypes.c (recursive_dump_type): Remove use of
10275 TYPE_INCOMPLETE.
10276
10277 2020-05-03 Tom Tromey <tom@tromey.com>
10278
10279 * breakpoint.c (catch_command, tcatch_command): Remove.
10280 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10281 add_show_prefix_cmd.
10282 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10283 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10284 Remove.
10285 (add_internal_problem_command): Use add_basic_prefix_cmd,
10286 add_show_prefix_cmd.
10287 * mips-tdep.c (set_mipsfpu_command): Remove.
10288 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10289 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10290 (_initialize_index_cache): Use add_basic_prefix_cmd.
10291 * memattr.c (dummy_cmd): Remove.
10292 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10293 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10294 (_initialize_tui_win): Use add_basic_prefix_cmd,
10295 add_show_prefix_cmd.
10296 * cli/cli-logging.c (set_logging_command): Remove.
10297 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10298 add_show_prefix_cmd.
10299 (show_logging_command): Remove.
10300 * target.c (target_command): Remove.
10301 (add_target): Use add_basic_prefix_cmd.
10302
10303 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10304
10305 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10306
10307 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10308
10309 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10310 info_command.
10311
10312 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10313
10314 * nbsd-nat.c (nbsd_enable_proc_events)
10315 (nbsd_nat_target::post_startup_inferior): Add.
10316 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10317 (nbsd_nat_target::update_thread_list): Rewrite.
10318 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10319 "PTRACE_LWP_CREATE".
10320 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10321
10322 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10323
10324 * stack.c (_initialize_stack): Remove duplicated creation
10325 of "frame" command and "f" alias.
10326
10327 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10328
10329 PR gdb/18706
10330 * gdbtypes.c (check_typedef): Calculate size of array of
10331 stubbed type.
10332
10333 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10334
10335 PR gdb/15559
10336 * i386-tdep.c (i386_push_dummy_call): Call
10337 i386_thiscall_push_dummy_call.
10338 (i386_thiscall_push_dummy_call): New function.
10339 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10340 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10341 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10342
10343 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * gdbarch.sh (do_read): Add shellcheck disable directive for
10346 warning SC2162.
10347
10348 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10351 "referenced but not assigned" warning.
10352
10353 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * gdbarch.sh: Remove code that sets fallbackdefault.
10356
10357 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10358
10359 * gdbarch.sh: Use shell operators && and || instead of
10360 -a and -o.
10361
10362 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10363
10364 * gdbarch.sh: Use $(...) instead of `...`.
10365
10366 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * gdbarch.sh: Use double quotes around variables.
10369
10370 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10371
10372 * gdbarch.sh: Use %s with printf, instead of variables in the
10373 format string.
10374
10375 2020-04-29 Tom Tromey <tromey@adacore.com>
10376
10377 PR ada/25875:
10378 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10379 type fields here.
10380 (read_enumeration_type): Call
10381 update_enumeration_type_from_children later. Update comments.
10382 (process_enumeration_scope): Don't create type fields.
10383
10384 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10385
10386 * nbsd-tdep.c: Include "xml-syscall.h".
10387 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10388
10389 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10390
10391 * nbsd-nat.c: Include "sys/wait.h".
10392 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10393 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10394 (nbsd_nat_target::remove_exec_catchpoint)
10395 (nbsd_nat_target::set_syscall_catchpoint): Add.
10396 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10397 (nbsd_nat_target::insert_exec_catchpoint)
10398 (nbsd_nat_target::remove_exec_catchpoint)
10399 (nbsd_nat_target::set_syscall_catchpoint): Add.
10400 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10401 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10402 `nbsd_get_syscall_number'.
10403
10404 2020-04-29 Tom Tromey <tom@tromey.com>
10405
10406 * stack.c (print_block_frame_labels): Remove.
10407
10408 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10409
10410 PR gdb/17320
10411 * ada-valprint.c (val_print_packed_array_elements): Move array
10412 end bracket to new line.
10413 (ada_val_print_string): Remove extra spaces before first array
10414 element.
10415 * c-valprint.c (c_value_print_array): Likewise.
10416 * m2-valprint.c (m2_print_array_contents): Likewise.
10417 (m2_value_print_inner): Likewise.
10418 * p-valprint.c (pascal_value_print_inner): Likewise.
10419 * valprint.c (generic_val_print_array): Likewise.
10420 (value_print_array_elements): Move first array element and array
10421 end bracket to new line.
10422
10423 2020-04-29 Tom de Vries <tdevries@suse.de>
10424
10425 PR symtab/25889
10426 * linespec.c (find_method): Fix ix calculation.
10427
10428 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10429
10430 * syscalls/update-netbsd.sh: New file.
10431 * syscalls/netbsd.xml: Regenerate.
10432 * data-directory/Makefile.in: Register `netbsd.xml' in
10433 `SYSCALLS_FILES'.
10434
10435 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * syscalls/update-freebsd.sh: Add double quotes.
10438
10439 2020-04-28 Tom Tromey <tom@tromey.com>
10440
10441 * NEWS: Update.
10442 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10443 (cmdpy_init): Allow class_tui.
10444
10445 2020-04-28 Mark Williams <mark@myosotissp.com>
10446
10447 PR gdb/24480
10448 * dwarf2read.c: Add missing assingments to list_in_scope when
10449 start_symtab was already called.
10450
10451 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10452
10453 PR gdb/25881
10454 * dwarf2/read.c (offset_map_type): Use
10455 gdb:hash_enum<sect_offset> as hash function.
10456
10457 2020-04-28 Tom de Vries <tdevries@suse.de>
10458
10459 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10460 with DW_AT_signature.
10461
10462 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10463
10464 * configure.ac: Remove check for fs_base/gs_base in
10465 user_regs_struct.
10466 * configure: Re-generate.
10467 * config.in: Re-generate.
10468 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10469 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10470 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10471
10472 2020-04-27 Luis Machado <luis.machado@linaro.org>
10473
10474 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10475 problematic inline frame unwinding situation.
10476 * frame.c (frame_id_computed_p): New function.
10477 * frame.h (frame_id_computed_p): New prototype.
10478
10479 2020-04-26 Tom Tromey <tom@tromey.com>
10480
10481 * command.h (enum command_class) <class_pseudo>: Remove.
10482
10483 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10484
10485 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10486 and whitespace.
10487
10488 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10489
10490 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10491 `PT_GET_PROCESS_STATE' block.
10492
10493 2020-04-24 Tom Tromey <tom@tromey.com>
10494
10495 * symtab.h (symbol_get_demangled_name): Don't declare.
10496 * symtab.c (symbol_get_demangled_name): Remove.
10497 (general_symbol_info::natural_name)
10498 (general_symbol_info::demangled_name): Update.
10499
10500 2020-04-24 Tom Tromey <tom@tromey.com>
10501
10502 PR rust/25025:
10503 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10504
10505 2020-04-24 Tom Tromey <tom@tromey.com>
10506
10507 PR symtab/12707:
10508 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10509 exists.
10510 (new_symbol): Likewise.
10511 * compile/compile-object-load.c (get_out_value_type): Use
10512 symbol_matches_search_name.
10513
10514 2020-04-24 Tom Tromey <tom@tromey.com>
10515
10516 * dwarf2/read.c (add_partial_symbol): Do not call
10517 compute_and_set_names.
10518
10519 2020-04-24 Tom Tromey <tom@tromey.com>
10520
10521 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10522 overload.
10523
10524 2020-04-24 Tom Tromey <tom@tromey.com>
10525
10526 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10527 (add_psymbol_to_list): New overload. Make old overload call new
10528 one.
10529 * psympriv.h (add_psymbol_to_list): New overload.
10530
10531 2020-04-24 Tom Tromey <tom@tromey.com>
10532
10533 * dwarf2/read.c (partial_die_info::read) <case
10534 DW_AT_linkage_name>: Use value_as_string.
10535 (dwarf2_string_attr): Use value_as_string.
10536 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10537 method.
10538 * dwarf2/attribute.c (attribute::value_as_string): New method.
10539
10540 2020-04-24 Tom Tromey <tom@tromey.com>
10541
10542 * symtab.c (general_symbol_info::natural_name)
10543 (general_symbol_info::demangled_name): Check for language_rust.
10544
10545 2020-04-24 Tom Tromey <tom@tromey.com>
10546
10547 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10548 (dwarf2_physname): ... from here.
10549 (partial_die_info::read): Add Rust "{" hack.
10550
10551 2020-04-24 Tom Tromey <tom@tromey.com>
10552
10553 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10554 method.
10555 (symbol_set_demangled_name): Don't declare.
10556 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10557 symbol_set_demangled_name.
10558 (general_symbol_info::set_language)
10559 (general_symbol_info::compute_and_set_names): Update.
10560 * minsyms.c (minimal_symbol_reader::install): Update.
10561 * dwarf2/read.c (new_symbol): Update.
10562
10563 2020-04-24 Tom Tromey <tromey@adacore.com>
10564
10565 PR python/23662:
10566 * python/py-type.c (convert_field): Handle
10567 FIELD_LOC_KIND_DWARF_BLOCK.
10568 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10569 (typy_get_dynamic): Nw function.
10570 (type_object_getset): Add "dynamic".
10571 * NEWS: Add entry.
10572
10573 2020-04-24 Tom Tromey <tromey@adacore.com>
10574
10575 * ada-typeprint.c (print_choices, print_variant_part)
10576 (print_record_field_types_dynamic): New functions.
10577 (print_record_field_types): Use print_record_field_types_dynamic.
10578
10579 2020-04-24 Tom Tromey <tromey@adacore.com>
10580
10581 * dwarf2/read.c (handle_data_member_location): New overload.
10582 (dwarf2_add_field): Use it.
10583 (decode_locdesc): Add "computed" parameter. Update comment.
10584 * gdbtypes.c (is_dynamic_type_internal): Also look for
10585 FIELD_LOC_KIND_DWARF_BLOCK.
10586 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10587 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10588 virtual base classes.
10589 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10590 FIELD_LOC_KIND_DWARF_BLOCK.
10591
10592 2020-04-24 Tom Tromey <tromey@adacore.com>
10593
10594 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10595 * gdbtypes.c (is_dynamic_type_internal): Check
10596 TYPE_HAS_DYNAMIC_LENGTH.
10597 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10598 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10599 New macros.
10600 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10601 constant.
10602
10603 2020-04-24 Tom Tromey <tromey@adacore.com>
10604
10605 * dwarf2/read.c (struct variant_field): Rewrite.
10606 (struct variant_part_builder): New.
10607 (struct nextfield): Remove "variant" field. Add "offset".
10608 (struct field_info): Add "current_variant_part" and
10609 "variant_parts".
10610 (alloc_discriminant_info): Remove.
10611 (alloc_rust_variant): New function.
10612 (quirk_rust_enum): Update.
10613 (dwarf2_add_field): Set "offset" member. Don't handle
10614 DW_TAG_variant_part.
10615 (offset_map_type): New typedef.
10616 (convert_variant_range, create_one_variant)
10617 (create_one_variant_part, create_variant_parts)
10618 (add_variant_property): New functions.
10619 (dwarf2_attach_fields_to_type): Call add_variant_property.
10620 (read_structure_type): Don't handle DW_TAG_variant_part.
10621 (handle_variant_part, handle_variant): New functions.
10622 (handle_struct_member_die): Use them.
10623 (process_structure_scope): Don't handle variant parts.
10624 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10625 (struct discriminant_info): Remove.
10626 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10627 (struct main_type) <flag_discriminated_union>: Remove.
10628 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10629 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10630 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10631 Update.
10632 * valops.c (value_union_variant): Remove.
10633 * value.h (value_union_variant): Don't declare.
10634
10635 2020-04-24 Tom Tromey <tromey@adacore.com>
10636
10637 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10638 (ada_value_primitive_packed_val): Update.
10639 * ada-valprint.c (ada_value_print_1): Update.
10640 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10641 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10642 just an address. Use evaluate_for_locexpr_baton.
10643 (dwarf2_evaluate_property): Update.
10644 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10645 array_view.
10646 * findvar.c (default_read_var_value): Update.
10647 * gdbtypes.c (compute_variant_fields_inner)
10648 (resolve_dynamic_type_internal): Update.
10649 (resolve_dynamic_type): Change type of valaddr parameter.
10650 * gdbtypes.h (resolve_dynamic_type): Update.
10651 * valarith.c (value_subscripted_rvalue): Update.
10652 * value.c (value_from_contents_and_address): Update.
10653
10654 2020-04-24 Tom Tromey <tromey@adacore.com>
10655
10656 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10657 "push_initial_value" parameter.
10658 (dwarf2_evaluate_property): Likewise.
10659 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10660
10661 2020-04-24 Tom Tromey <tromey@adacore.com>
10662
10663 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10664 (variant::matches, compute_variant_fields_recurse)
10665 (compute_variant_fields_inner, compute_variant_fields): New
10666 functions.
10667 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10668 Use resolved_type after type is made.
10669 (operator==): Add new cases.
10670 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10671 (struct discriminant_range, struct variant, struct variant_part):
10672 New.
10673 (union dynamic_prop_data) <variant_parts, original_type>: New
10674 members.
10675 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10676 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10677 constants.
10678 * value.c (unpack_bits_as_long): Now public.
10679 * value.h (unpack_bits_as_long): Declare.
10680
10681 2020-04-24 Tom Tromey <tromey@adacore.com>
10682
10683 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10684 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10685
10686 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10687
10688 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10689
10690 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10691
10692 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10693 (remove_fork_catchpoint, post_startup_inferior)
10694 (post_attach): Move...
10695 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10696 (remove_fork_catchpoint, post_startup_inferior)
10697 (post_attach): ...here.
10698 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10699 (remove_fork_catchpoint, post_startup_inferior)
10700 (post_attach): Move...
10701 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10702 (remove_fork_catchpoint, post_startup_inferior)
10703 (post_attach): ...here.
10704
10705 2020-04-24 Tom Tromey <tromey@adacore.com>
10706
10707 * nat/windows-nat.h (struct windows_thread_info)
10708 <pc_adjusted>: New member.
10709 * windows-nat.c (windows_fetch_one_register): Check
10710 pc_adjusted.
10711 (windows_nat_target::get_windows_debug_event)
10712 (windows_nat_target::wait): Set pc_adjusted.
10713
10714 2020-04-24 Tom de Vries <tdevries@suse.de>
10715
10716 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10717 Run gdb-add-index inside temp dir.
10718
10719 2020-04-23 Tom Tromey <tromey@adacore.com>
10720
10721 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10722 in loop.
10723
10724 2020-04-23 Luis Machado <luis.machado@linaro.org>
10725
10726 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10727 get_frame_register instead of gdbarch_unwind_pc.
10728
10729 2020-04-23 Tom de Vries <tdevries@suse.de>
10730
10731 * symtab.c (lookup_global_symbol): Prefer def over decl.
10732
10733 2020-04-23 Tom de Vries <tdevries@suse.de>
10734
10735 PR symtab/25807
10736 * block.c (best_symbol, better_symbol): Promote to external.
10737 * block.h (best_symbol, better_symbol): Declare.
10738 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10739 decl.
10740
10741 2020-04-23 Tom Tromey <tromey@adacore.com>
10742
10743 PR ada/25837:
10744 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10745 "const char *", not a "const std::string &".
10746 <name_and_matcher::operator==>: Update.
10747 * unittests/lookup_name_info-selftests.c: Change type of
10748 "result".
10749
10750 2020-04-23 Tom Tromey <tom@tromey.com>
10751
10752 * inferior.h (iterate_over_inferiors): Don't declare.
10753 * inferior.c (iterate_over_inferiors): Remove.
10754 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10755 Remove.
10756 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10757 use iterate_over_inferiors.
10758 (darwin_resume_inferior_it)
10759 (struct resume_inferior_threads_param)
10760 (darwin_resume_inferior_threads_it): Remove.
10761 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10762
10763 2020-04-23 Tom de Vries <tdevries@suse.de>
10764
10765 * blockframe.c (find_pc_partial_function): Use
10766 find_pc_sect_compunit_symtab rather than
10767 objfile->sf->qf->find_pc_sect_compunit_symtab.
10768
10769 2020-04-22 Tom de Vries <tdevries@suse.de>
10770
10771 PR symtab/25764
10772 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10773 in psymtabs.
10774
10775 2020-04-22 Tom de Vries <tdevries@suse.de>
10776
10777 PR symtab/25801
10778 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10779 symtabs.
10780
10781 2020-04-22 Tom de Vries <tdevries@suse.de>
10782
10783 PR symtab/25700
10784 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10785 CU if already created.
10786
10787 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10788
10789 * infrun.c (displaced_step_fixup): Switch to the event_thread
10790 before calling displaced_step_restore, not after.
10791
10792 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10793
10794 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10795 its inferior is not recorded by us.
10796 (record_btrace_target_open): Replace call to
10797 all_non_exited_threads () with call to current_inferior
10798 ()->non_exited_threads ().
10799 (record_btrace_target::stop_recording): Likewise.
10800 (record_btrace_target::close): Likewise.
10801 (record_btrace_target::wait): Likewise.
10802 (record_btrace_target::record_stop_replaying): Likewise.
10803
10804 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10805
10806 * btrace.c (btrace_enable): Throw an error on double enables and
10807 when enabling recording fails.
10808 (btrace_disable): Throw an error if the thread is not recorded.
10809
10810 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10811
10812 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10813 request if we do not have a thread_info.
10814
10815 2020-04-21 Tom de Vries <tdevries@suse.de>
10816
10817 PR gdb/25471
10818 * thread.c
10819 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10820 exception in get_frame_id.
10821
10822 2020-04-20 Tom Tromey <tromey@adacore.com>
10823
10824 * python/python.c (struct gdbpy_event): Mark move constructor as
10825 noexcept.
10826 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10827 constructor as noexcept.
10828 * completer.h (struct completion_result): Mark move constructor as
10829 noexcept.
10830 * completer.c (completion_result::completion_result): Use
10831 initialization style. Don't call reset_match_list.
10832
10833 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10834
10835 * MAINTAINERS (Write After Approval): Add myself.
10836
10837 2020-04-18 Tom Tromey <tom@tromey.com>
10838
10839 * windows-tdep.c (init_w32_command_list)
10840 (w32_prefix_command_valid): Restore.
10841 (_initialize_windows_tdep): Call init_w32_command_list.
10842
10843 2020-04-18 Tom Tromey <tom@tromey.com>
10844
10845 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10846 * value.c (value_fn_field): Update.
10847 * valops.c (find_function_in_inferior)
10848 (value_allocate_space_in_inferior): Update.
10849 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10850 Update.
10851 * tui/tui-source.c (tui_source_window::set_contents): Update.
10852 * symtab.c (lookup_global_or_static_symbol)
10853 (find_function_start_sal_1, skip_prologue_sal)
10854 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10855 * symmisc.c (dump_msymbols, dump_symtab_1)
10856 (maintenance_print_one_line_table): Update.
10857 * symfile.c (init_entry_point_info, section_is_mapped)
10858 (list_overlays_command, simple_read_overlay_table)
10859 (simple_overlay_update_1): Update.
10860 * stap-probe.c (handle_stap_probe): Update.
10861 * stabsread.c (dbx_init_float_type, define_symbol)
10862 (read_one_struct_field, read_enum_type, read_range_type): Update.
10863 * source.c (info_line_command): Update.
10864 * python/python.c (gdbpy_source_objfile_script)
10865 (gdbpy_execute_objfile_script): Update.
10866 * python/py-type.c (save_objfile_types): Update.
10867 * python/py-objfile.c (py_free_objfile): Update.
10868 * python/py-inferior.c (python_new_objfile): Update.
10869 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10870 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10871 (maintenance_check_psymtabs): Update.
10872 * printcmd.c (info_address_command): Update.
10873 * objfiles.h (struct objfile) <arch>: New method, from
10874 get_objfile_arch.
10875 (get_objfile_arch): Don't declare.
10876 * objfiles.c (get_objfile_arch): Remove.
10877 (filter_overlapping_sections): Update.
10878 * minsyms.c (msymbol_is_function): Update.
10879 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10880 (output_nondebug_symbol): Update.
10881 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10882 (mdebug_expand_psymtab): Update.
10883 * machoread.c (macho_add_oso_symfile): Update.
10884 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10885 Update.
10886 * linux-fork.c (checkpoint_command): Update.
10887 * linespec.c (convert_linespec_to_sals): Update.
10888 * jit.c (finalize_symtab): Update.
10889 * infrun.c (insert_exception_resume_from_probe): Update.
10890 * ia64-tdep.c (ia64_find_unwind_table): Update.
10891 * hppa-tdep.c (internalize_unwinds): Update.
10892 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10893 Update.
10894 * gcore.c (call_target_sbrk): Update.
10895 * elfread.c (record_minimal_symbol, elf_symtab_read)
10896 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10897 (elf_gnu_ifunc_resolve_by_got): Update.
10898 * dwarf2/read.c (create_addrmap_from_index)
10899 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10900 (read_debug_names_from_section)
10901 (process_psymtab_comp_unit_reader, add_partial_symbol)
10902 (add_partial_subprogram, process_full_comp_unit)
10903 (read_file_scope, read_func_scope, read_lexical_block_scope)
10904 (read_call_site_scope, dwarf2_ranges_read)
10905 (dwarf2_record_block_ranges, dwarf2_add_field)
10906 (mark_common_block_symbol_computed, read_tag_pointer_type)
10907 (read_tag_string_type, dwarf2_init_float_type)
10908 (dwarf2_init_complex_target_type, read_base_type)
10909 (partial_die_info::read, partial_die_info::read)
10910 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10911 (dwarf2_fetch_die_loc_sect_off): Update.
10912 * dwarf2/loc.c (dwarf2_find_location_expression)
10913 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10914 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10915 (dwarf2_loc_desc_get_symbol_read_needs)
10916 (locexpr_describe_location_piece, locexpr_describe_location_1)
10917 (loclist_describe_location): Update.
10918 * dwarf2/index-write.c (write_debug_names): Update.
10919 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10920 * dtrace-probe.c (dtrace_process_dof): Update.
10921 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10922 (process_one_symbol): Update.
10923 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10924 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10925 (coff_read_enum_type): Update.
10926 * cli/cli-cmds.c (edit_command, list_command): Update.
10927 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10928 * breakpoint.c (create_overlay_event_breakpoint)
10929 (create_longjmp_master_breakpoint)
10930 (create_std_terminate_master_breakpoint)
10931 (create_exception_master_breakpoint, get_sal_arch): Update.
10932 * block.c (block_gdbarch): Update.
10933 * annotate.c (annotate_source_line): Update.
10934
10935 2020-04-17 Tom Tromey <tromey@adacore.com>
10936
10937 * auto-load.c (show_auto_load_cmd): Remove.
10938 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10939 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10940 (maintenance_print_arc_command): Remove.
10941 * tui/tui-win.c (tui_command): Remove.
10942 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10943 * tui/tui-layout.c (tui_layout_command): Remove.
10944 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10945 * python/python.c (user_set_python, user_show_python): Remove.
10946 (_initialize_python): Use add_basic_prefix_cmd,
10947 add_show_prefix_cmd.
10948 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10949 (install_gdb_commands): Use add_basic_prefix_cmd,
10950 add_show_prefix_cmd.
10951 (info_guile_command): Remove.
10952 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10953 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10954 add_show_prefix_cmd.
10955 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10956 Remove do_set and do_show parameters.
10957 * cli/cli-style.c (set_style, show_style): Remove.
10958 (_initialize_cli_style): Use add_basic_prefix_cmd,
10959 add_show_prefix_cmd.
10960 (cli_style_option::add_setshow_commands): Remove do_set and
10961 do_show parameters.
10962 (cli_style_option::add_setshow_commands): Use
10963 add_basic_prefix_cmd, add_show_prefix_cmd.
10964 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10965 (set_style_name): Remove.
10966 * cli/cli-dump.c (dump_command, append_command): Remove.
10967 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10968 (tekhex_dump_command, binary_dump_command)
10969 (binary_append_command): Remove.
10970 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10971 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10972 (init_w32_command_list): Remove; move into ...
10973 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10974 * valprint.c (set_print, show_print, set_print_raw)
10975 (show_print_raw): Remove.
10976 (_initialize_valprint): Use add_basic_prefix_cmd,
10977 add_show_prefix_cmd.
10978 * typeprint.c (set_print_type, show_print_type): Remove.
10979 (_initialize_typeprint): Use add_basic_prefix_cmd,
10980 add_show_prefix_cmd.
10981 * record.c (set_record_command, show_record_command): Remove.
10982 (_initialize_record): Use add_basic_prefix_cmd,
10983 add_show_prefix_cmd.
10984 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10985 add_show_prefix_cmd.
10986 (info_command, show_command, set_debug, show_debug): Remove.
10987 * top.h (set_history, show_history): Don't declare.
10988 * top.c (set_history, show_history): Remove.
10989 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10990 (unset_tdesc_cmd): Remove.
10991 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10992 add_show_prefix_cmd.
10993 * symtab.c (info_module_command): Remove.
10994 (_initialize_symtab): Use add_basic_prefix_cmd.
10995 * symfile.c (overlay_command): Remove.
10996 (_initialize_symfile): Use add_basic_prefix_cmd.
10997 * sparc64-tdep.c (info_adi_command): Remove.
10998 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10999 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11000 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11001 add_show_prefix_cmd.
11002 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11003 (_initialize_serial): Use add_basic_prefix_cmd,
11004 add_show_prefix_cmd.
11005 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11006 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11007 add_show_prefix_cmd.
11008 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11009 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11010 add_show_prefix_cmd.
11011 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11012 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11013 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11014 add_show_prefix_cmd.
11015 * remote.c (remote_command, set_remote_cmd): Remove.
11016 (_initialize_remote): Use add_basic_prefix_cmd.
11017 * record-full.c (set_record_full_command)
11018 (show_record_full_command): Remove.
11019 (_initialize_record_full): Use add_basic_prefix_cmd,
11020 add_show_prefix_cmd.
11021 * record-btrace.c (cmd_set_record_btrace)
11022 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11023 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11024 (cmd_show_record_btrace_pt): Remove.
11025 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11026 add_show_prefix_cmd.
11027 * ravenscar-thread.c (set_ravenscar_command)
11028 (show_ravenscar_command): Remove.
11029 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11030 add_show_prefix_cmd.
11031 * mips-tdep.c (show_mips_command, set_mips_command)
11032 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11033 add_show_prefix_cmd.
11034 * maint.c (maintenance_command, maintenance_info_command)
11035 (maintenance_check_command, maintenance_print_command)
11036 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11037 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 (show_per_command_cmd): Remove.
11040 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11041 Remove.
11042 (maintenance_show_test_settings_cmd): Remove.
11043 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11044 add_show_prefix_cmd.
11045 * maint-test-options.c (maintenance_test_options_command):
11046 Remove.
11047 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11048 * macrocmd.c (macro_command): Remove
11049 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11050 * language.c (set_check, show_check): Remove.
11051 (_initialize_language): Use add_basic_prefix_cmd,
11052 add_show_prefix_cmd.
11053 * infcmd.c (unset_command): Remove.
11054 (_initialize_infcmd): Use add_basic_prefix_cmd.
11055 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11056 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11057 add_show_prefix_cmd.
11058 * go32-nat.c (go32_info_dos_command): Remove.
11059 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11060 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11061 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11062 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11063 (_initialize_frame): Use add_basic_prefix_cmd,
11064 add_show_prefix_cmd.
11065 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11066 (_initialize_dcache): Use add_basic_prefix_cmd,
11067 add_show_prefix_cmd.
11068 * cp-support.c (maint_cplus_command): Remove.
11069 (_initialize_cp_support): Use add_basic_prefix_cmd.
11070 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11071 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11072 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11073 add_basic_prefix_cmd, add_show_prefix_cmd.
11074 * breakpoint.c (save_command): Remove.
11075 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11076 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11077 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11078 add_show_prefix_cmd.
11079 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11080 (set_ada_command, show_ada_command): Remove.
11081 (_initialize_ada_language): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11084
11085 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11086
11087 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11088 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11089
11090 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11091
11092 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11093 warning messages.
11094
11095 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11096
11097 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11098 import table is not at beginning of .idata section.
11099
11100 2020-04-16 Pedro Alves <palves@redhat.com>
11101
11102 * inferior.c (delete_inferior): Use delete operator directly
11103 instead of delete_program_space.
11104 * progspace.c (add_program_space): New, factored out from
11105 program_space::program_space.
11106 (remove_program_space): New, factored out from
11107 delete_program_space.
11108 (program_space::program_space): Remove intro comment. Rewrite.
11109 (program_space::~program_space): Remove intro comment. Call
11110 remove_program_space.
11111 (delete_program_space): Delete.
11112 * progspace.h (program_space::program_space): Make explicit. Move
11113 intro comment here, adjusted.
11114 (program_space::~program_space): Move intro comment here,
11115 adjusted.
11116 (delete_program_space): Remove.
11117
11118 2020-04-16 Tom Tromey <tromey@adacore.com>
11119
11120 * windows-nat.c (windows_nat::handle_access_violation): New
11121 function.
11122 * nat/windows-nat.h (handle_access_violation): Declare.
11123 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11124 windows-nat.c. Call handle_access_violation.
11125
11126 2020-04-16 Tom de Vries <tdevries@suse.de>
11127
11128 PR symtab/25791
11129 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11130 CUs without psymtab.
11131
11132 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11133
11134 * python/python.c (do_start_initialization): Don't call
11135 PyEval_InitThreads for Python 3.9 and beyond.
11136
11137 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11138
11139 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11140 thread functions.
11141 (obsd_nat_target::wait): Likewise.
11142
11143 2020-04-15 Tom Tromey <tromey@adacore.com>
11144
11145 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11146 (DEBUG_EXCEPT): Use debug_printf.
11147
11148 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * completer.c (class completion_tracker::completion_hash_entry)
11151 <hash_name>: New member function.
11152 (completion_tracker::discard_completions): New callback to hash a
11153 completion_hash_entry, pass this to htab_create_alloc.
11154
11155 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11156
11157 * windows-nat.c (windows_make_so): Warn rather than stopping with
11158 an error if realpath() fails.
11159
11160 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11161
11162 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11163 (nbsd_nat_target::info_proc): Add do_status.
11164
11165 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11166 Tom de Vries <tdevries@suse.de>
11167
11168 PR symtab/25718
11169 * psympriv.h (struct partial_symtab::read_symtab)
11170 (struct partial_symtab::expand_psymtab)
11171 (struct partial_symtab::read_dependencies): Update comments.
11172 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11173 read_symtab for includer.
11174 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11175 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11176 (struct dwarf2_include_psymtab::m_readin): Remove.
11177 (struct dwarf2_include_psymtab::includer): New member function.
11178 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11179
11180 2020-04-14 Tom de Vries <tdevries@suse.de>
11181
11182 PR symtab/25720
11183 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11184 with NULL symbol_matcher and lookup_name.
11185 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11186 and lookup_name.
11187 * dwarf2/read.c (dw2_expand_symtabs_matching)
11188 (dw2_debug_names_expand_symtabs_matching): Same.
11189 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11190 Make lookup_name a pointer. Update comment.
11191 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11192 lookup_name being a pointer.
11193 * symfile.c (expand_symtabs_matching): Same.
11194 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11195 * linespec.c (iterate_over_all_matching_symtabs): Same.
11196
11197 2020-04-13 Tom Tromey <tom@tromey.com>
11198
11199 * run-on-main-thread.c: Update include.
11200 * unittests/main-thread-selftests.c: Update include.
11201 * tui/tui-win.c: Update include.
11202 * tui/tui-io.c: Update include.
11203 * tui/tui-interp.c: Update include.
11204 * tui/tui-hooks.c: Update include.
11205 * top.h: Update include.
11206 * top.c: Update include.
11207 * ser-base.c: Update include.
11208 * remote.c: Update include.
11209 * remote-notif.c: Update include.
11210 * remote-fileio.c: Update include.
11211 * record-full.c: Update include.
11212 * record-btrace.c: Update include.
11213 * python/python.c: Update include.
11214 * posix-hdep.c: Update include.
11215 * mingw-hdep.c: Update include.
11216 * mi/mi-main.c: Update include.
11217 * mi/mi-interp.c: Update include.
11218 * main.c: Update include.
11219 * linux-nat.c: Update include.
11220 * interps.c: Update include.
11221 * infrun.c: Update include.
11222 * inf-loop.c: Update include.
11223 * event-top.c: Update include.
11224 * event-loop.c: Move to ../gdbsupport/.
11225 * event-loop.h: Move to ../gdbsupport/.
11226 * async-event.h: Update include.
11227 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11228
11229 2020-04-13 Tom Tromey <tom@tromey.com>
11230
11231 * tui/tui-win.c: Include async-event.h.
11232 * remote.c: Include async-event.h.
11233 * remote-notif.c: Include async-event.h.
11234 * record-full.c: Include async-event.h.
11235 * record-btrace.c: Include async-event.h.
11236 * infrun.c: Include async-event.h.
11237 * event-top.c: Include async-event.h.
11238 * event-loop.h: Move some declarations to async-event.h.
11239 * event-loop.c: Don't include ser-event.h or top.h. Move some
11240 code to async-event.c.
11241 * async-event.h: New file.
11242 * async-event.c: New file.
11243 * Makefile.in (COMMON_SFILES): Add async-event.c.
11244 (HFILES_NO_SRCDIR): Add async-event.h.
11245
11246 2020-04-13 Tom Tromey <tom@tromey.com>
11247
11248 * utils.c (flush_streams): New function.
11249 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11250
11251 2020-04-13 Tom Tromey <tom@tromey.com>
11252
11253 * event-loop.c (handle_file_event): Use warning, not
11254 printf_unfiltered.
11255
11256 2020-04-13 Tom Tromey <tom@tromey.com>
11257
11258 * event-loop.c: Include <chrono>.
11259
11260 2020-04-13 Tom Tromey <tom@tromey.com>
11261
11262 * gdb_select.h: Move to ../gdbsupport/.
11263 * event-loop.c: Update include path.
11264 * top.c: Update include path.
11265 * ser-base.c: Update include path.
11266 * ui-file.c: Update include path.
11267 * ser-tcp.c: Update include path.
11268 * guile/scm-ports.c: Update include path.
11269 * posix-hdep.c: Update include path.
11270 * ser-unix.c: Update include path.
11271 * gdb_usleep.c: Update include path.
11272 * mingw-hdep.c: Update include path.
11273 * inflow.c: Update include path.
11274 * infrun.c: Update include path.
11275 * event-top.c: Update include path.
11276
11277 2020-04-13 Tom Tromey <tom@tromey.com>
11278
11279 * configure: Rebuild.
11280 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11281
11282 2020-04-13 Tom Tromey <tom@tromey.com>
11283
11284 * event-loop.h (start_event_loop): Don't declare.
11285 * event-loop.c (start_event_loop): Move...
11286 * main.c (start_event_loop): ...here. Now static.
11287
11288 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11289
11290 * MAINTAINERS: Update my email address.
11291
11292 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11293
11294 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11295 IP_ALL.
11296
11297 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11298
11299 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11300 (nbsd_nat_target::info_proc): Add do_cmdline.
11301
11302 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11303
11304 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11305 (nbsd_nat_target::info_proc): Add do_cwd.
11306
11307 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11308
11309 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11310
11311 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11312
11313 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11314 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11315 (nbsd_nat_target::info_proc): New functions.
11316 * nbsd-nat.c (kinfo_get_vmmap): New function.
11317 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11318 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11319 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11320 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11321 functions.
11322 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11323 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11324 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11325 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11326 (KINFO_VME_FLAG_GROWS_DOWN): New.
11327
11328 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11329
11330 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11331 bit shift.
11332
11333 2020-04-10 Tom Tromey <tromey@adacore.com>
11334
11335 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11336
11337 2020-04-10 Tom Tromey <tromey@adacore.com>
11338
11339 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11340 separate debug files.
11341
11342 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11343
11344 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11345 Move to...
11346 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11347 ... here.
11348 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11349 Check for STATUS_WX86_BREAKPOINT.
11350 (windows_nat_target::wait): Same.
11351
11352 2020-04-10 Tom de Vries <tdevries@suse.de>
11353
11354 PR cli/25808
11355 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11356
11357 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11358
11359 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11360 (Write After Approval): Remove Tom de Vries.
11361
11362 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11363
11364 revert partially:
11365 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11366
11367 * buildsym.c (record_line): Fix undefined behavior and preserve
11368 lines at eof.
11369
11370 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11371
11372 * auxv.h (svr4_auxv_parse): New.
11373 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11374 and generic_auxv_parse.
11375 (svr4_auxv_parse): Add.
11376 * obsd-tdep.c: Include "auxv.h".
11377 (obsd_auxv_parse): Remove.
11378 (obsd_init_abi): Remove comment.
11379 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11380 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11381 * nbsd-tdep.c: Include "auxv.h".
11382 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11383
11384 2020-04-08 Tom Tromey <tromey@adacore.com>
11385
11386 * nat/windows-nat.h (last_wait_event): Don't declare.
11387 (wait_for_debug_event): Update comment.
11388 * nat/windows-nat.c (last_wait_event): Now static.
11389
11390 2020-04-08 Tom Tromey <tromey@adacore.com>
11391
11392 * windows-nat.c (wait_for_debug_event): Move to
11393 nat/windows-nat.c.
11394 * nat/windows-nat.h (wait_for_debug_event): Declare.
11395 * nat/windows-nat.c (wait_for_debug_event): Move from
11396 windows-nat.c. No longer static.
11397
11398 2020-04-08 Tom Tromey <tromey@adacore.com>
11399
11400 * windows-nat.c (get_windows_debug_event): Use
11401 fetch_pending_stop.
11402 * nat/windows-nat.h (fetch_pending_stop): Declare.
11403 * nat/windows-nat.c (fetch_pending_stop): New function.
11404
11405 2020-04-08 Tom Tromey <tromey@adacore.com>
11406
11407 * windows-nat.c (windows_continue): Use matching_pending_stop and
11408 continue_last_debug_event.
11409 * nat/windows-nat.h (matching_pending_stop)
11410 (continue_last_debug_event): Declare.
11411 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11412 (matching_pending_stop, continue_last_debug_event): New
11413 functions.
11414
11415 2020-04-08 Tom Tromey <tromey@adacore.com>
11416
11417 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11418 (handle_exception_result): Move to nat/windows-nat.h.
11419 (DEBUG_EXCEPTION_SIMPLE): Remove.
11420 (windows_nat::handle_ms_vc_exception): New function.
11421 (handle_exception): Move to nat/windows-nat.c.
11422 (get_windows_debug_event): Update.
11423 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11424 nat/windows-nat.c.
11425 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11426 (handle_exception_result): Move from windows-nat.c.
11427 (handle_exception): Declare.
11428 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11429 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11430 windows-nat.c.
11431
11432 2020-04-08 Tom Tromey <tromey@adacore.com>
11433
11434 * windows-nat.c (exception_count, event_count): Remove.
11435 (handle_exception, get_windows_debug_event)
11436 (do_initial_windows_stuff): Update.
11437
11438 2020-04-08 Tom Tromey <tromey@adacore.com>
11439
11440 * windows-nat.c (windows_nat::handle_load_dll)
11441 (windows_nat::handle_unload_dll): Rename. No longer static.
11442 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11443 Declare.
11444
11445 2020-04-08 Tom Tromey <tromey@adacore.com>
11446
11447 * complaints.h (stop_whining): Declare at top-level.
11448 (complaint): Don't declare stop_whining.
11449
11450 2020-04-08 Tom Tromey <tromey@adacore.com>
11451
11452 * windows-nat.c (windows_nat::handle_output_debug_string):
11453 Rename. No longer static.
11454 * nat/windows-nat.h (handle_output_debug_string): Declare.
11455
11456 2020-04-08 Tom Tromey <tromey@adacore.com>
11457
11458 * windows-nat.c (current_process_handle, current_process_id)
11459 (main_thread_id, last_sig, current_event, last_wait_event)
11460 (current_windows_thread, desired_stop_thread_id, pending_stops)
11461 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11462 (display_selectors, fake_create_process)
11463 (get_windows_debug_event): Update.
11464 * nat/windows-nat.h (current_process_handle, current_process_id)
11465 (main_thread_id, last_sig, current_event, last_wait_event)
11466 (current_windows_thread, desired_stop_thread_id, pending_stops)
11467 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11468 * nat/windows-nat.c (current_process_handle, current_process_id)
11469 (main_thread_id, last_sig, current_event, last_wait_event)
11470 (current_windows_thread, desired_stop_thread_id, pending_stops)
11471 (siginfo_er): New globals. Move from windows-nat.c.
11472
11473 2020-04-08 Tom Tromey <tromey@adacore.com>
11474
11475 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11476 (handle_load_dll): Update.
11477 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11478
11479 2020-04-08 Tom Tromey <tromey@adacore.com>
11480
11481 * windows-nat.c (enum thread_disposition_type): Move to
11482 nat/windows-nat.h.
11483 (windows_nat::thread_rec): Rename from thread_rec. No longer
11484 static.
11485 (windows_add_thread, windows_nat_target::fetch_registers)
11486 (windows_nat_target::store_registers, handle_exception)
11487 (windows_nat_target::resume, get_windows_debug_event)
11488 (windows_nat_target::get_tib_address)
11489 (windows_nat_target::thread_name)
11490 (windows_nat_target::thread_alive): Update.
11491 * nat/windows-nat.h (enum thread_disposition_type): Move from
11492 windows-nat.c.
11493 (thread_rec): Declare.
11494
11495 2020-04-08 Tom Tromey <tromey@adacore.com>
11496
11497 * windows-nat.c: Add "using namespace".
11498 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11499 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11500
11501 2020-04-08 Tom Tromey <tromey@adacore.com>
11502
11503 * nat/windows-nat.h (struct windows_thread_info): Declare
11504 destructor.
11505 * nat/windows-nat.c (~windows_thread_info): New.
11506
11507 2020-04-08 Tom Tromey <tromey@adacore.com>
11508
11509 PR gdb/22992
11510 * windows-nat.c (current_event): Update comment.
11511 (last_wait_event, desired_stop_thread_id): New globals.
11512 (struct pending_stop): New.
11513 (pending_stops): New global.
11514 (windows_nat_target) <stopped_by_sw_breakpoint>
11515 <supports_stopped_by_sw_breakpoint>: New methods.
11516 (windows_fetch_one_register): Add assertions. Adjust PC.
11517 (windows_continue): Handle pending stops. Suspend other threads
11518 when stepping. Use last_wait_event
11519 (wait_for_debug_event): New function.
11520 (get_windows_debug_event): Use wait_for_debug_event. Handle
11521 pending stops. Queue spurious stops.
11522 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11523 (windows_nat_target::kill): Use wait_for_debug_event.
11524 * nat/windows-nat.h (struct windows_thread_info)
11525 <stopped_at_software_breakpoint>: New field.
11526 * nat/windows-nat.c (windows_thread_info::resume): Clear
11527 stopped_at_software_breakpoint.
11528
11529 2020-04-08 Tom Tromey <tromey@adacore.com>
11530
11531 * windows-nat.c (enum thread_disposition_type): New.
11532 (thread_rec): Replace "get_context" parameter with "disposition";
11533 change type.
11534 (windows_add_thread, windows_nat_target::fetch_registers)
11535 (windows_nat_target::store_registers, handle_exception)
11536 (windows_nat_target::resume, get_windows_debug_event)
11537 (windows_nat_target::get_tib_address)
11538 (windows_nat_target::thread_name)
11539 (windows_nat_target::thread_alive): Update.
11540
11541 2020-04-08 Tom Tromey <tromey@adacore.com>
11542
11543 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11544 (windows_continue): Use windows_continue::resume.
11545 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11546 resume>: Declare new methods.
11547 * nat/windows-nat.c: New file.
11548 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11549
11550 2020-04-08 Tom Tromey <tromey@adacore.com>
11551
11552 * windows-nat.c (windows_add_thread, windows_delete_thread)
11553 (windows_nat_target::fetch_registers)
11554 (windows_nat_target::store_registers, fake_create_process)
11555 (windows_nat_target::resume, windows_nat_target::resume)
11556 (get_windows_debug_event, windows_nat_target::wait)
11557 (windows_nat_target::pid_to_str)
11558 (windows_nat_target::get_tib_address)
11559 (windows_nat_target::get_ada_task_ptid)
11560 (windows_nat_target::thread_name)
11561 (windows_nat_target::thread_alive): Use lwp, not tid.
11562
11563 2020-04-08 Tom Tromey <tromey@adacore.com>
11564
11565 * windows-nat.c (handle_exception)
11566 (windows_nat_target::thread_name): Update.
11567 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11568 <name>: Now unique_xmalloc_ptr.
11569
11570 2020-04-08 Tom Tromey <tromey@adacore.com>
11571
11572 * windows-nat.c (thread_rec)
11573 (windows_nat_target::fetch_registers): Update.
11574 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11575 Update comment.
11576 <debug_registers_changed, reload_context>: Now bool.
11577
11578 2020-04-08 Tom Tromey <tromey@adacore.com>
11579
11580 * windows-nat.c (windows_add_thread): Use new.
11581 (windows_init_thread_list, windows_delete_thread): Use delete.
11582 (get_windows_debug_event): Update.
11583 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11584 destructor, and initializers.
11585
11586 2020-04-08 Tom Tromey <tromey@adacore.com>
11587
11588 * windows-nat.c (struct windows_thread_info): Remove.
11589 * nat/windows-nat.h: New file.
11590
11591 2020-04-08 Tom Tromey <tromey@adacore.com>
11592
11593 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11594 (thread_rec, windows_add_thread, windows_delete_thread)
11595 (windows_continue): Update.
11596
11597 2020-04-08 Tom Tromey <tromey@adacore.com>
11598
11599 * windows-nat.c (struct windows_thread_info): Remove typedef.
11600 (thread_head): Remove.
11601 (thread_list): New global.
11602 (thread_rec, windows_add_thread, windows_init_thread_list)
11603 (windows_delete_thread, windows_continue): Update.
11604
11605 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11606
11607 * windows-tdep.h (windows_init_abi): Add comment.
11608 (cygwin_init_abi): New declaration.
11609 * windows-tdep.c: Split signal enumeration in two, one for
11610 Windows and one for Cygwin.
11611 (windows_gdb_signal_to_target): Only deal with signal of the
11612 Windows OS ABI.
11613 (cygwin_gdb_signal_to_target): New function.
11614 (windows_init_abi): Rename to windows_init_abi_common, don't set
11615 gdb_signal_to_target gdbarch method. Add new new function with
11616 this name.
11617 (cygwin_init_abi): New function.
11618 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11619 comment. Don't call windows_init_abi.
11620 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11621 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11622 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11623 i386_windows_init_abi_common, don't call windows_init_abi. Add
11624 a new function of this name.
11625 (i386_cygwin_init_abi): New function.
11626 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11627 OS ABI Cygwin.
11628
11629 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11630
11631 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11632 parameter.c.
11633 (dwarf2_read_gdb_index): Update.
11634
11635 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11636
11637 * nbsd-tdep.c: Include "objfiles.h".
11638 (nbsd_skip_solib_resolver): New.
11639 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11640
11641 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11642
11643 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11644 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11645 with DW_LLE_base_addressx are being emitted in DWARFv5.
11646 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11647 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11648 unsigned integer.
11649
11650 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11651
11652 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11653 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11654 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11655 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11656 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11657 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11658 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11659
11660
11661 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11662
11663 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11664 (read_loclist_index): New function definition.
11665 (lookup_loclist_base): New function definition.
11666 (read_loclist_header): New function definition.
11667 (dwarf2_cu): Add loclist_base and loclist_header field.
11668 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11669 (read_full_die_1): Read the value of DW_AT_loclists_base.
11670 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11671 (read_attribute_value): Handle DW_FORM_loclistx.
11672 (skip_one_die): Handle DW_FORM_loclistx.
11673 (loclist_header): New structure declaration.
11674 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11675
11676 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11677
11678 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11679 constructor. Remove `addr` parameter from other constructor and
11680 add `per_cu` parameter.
11681 * dwarf2/read.c (create_partial_symtab): Update.
11682
11683 2020-04-07 Tom de Vries <tdevries@suse.de>
11684
11685 PR symtab/25796
11686 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11687 (partial_die_info::fixup): Inherit has_const_value.
11688
11689 2020-04-07 Tom de Vries <tdevries@suse.de>
11690
11691 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11692 symbols without address.
11693
11694 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11695
11696 * nbsd-nat.h (struct thread_info): Add forward declaration.
11697 (nbsd_nat_target::thread_alive): Add.
11698 (nbsd_nat_target::thread_name): Likewise.
11699 (nbsd_nat_target::update_thread_list): Likewise.
11700 (update_thread_list::post_attach): Likewise.
11701 (post_attach::pid_to_str): Likewise.
11702 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11703 (nbsd_thread_lister): Add.
11704 (nbsd_nat_target::thread_alive): Likewise.
11705 (nbsd_nat_target::thread_name): Likewise.
11706 (nbsd_add_threads): Likewise.
11707 (update_thread_list::post_attach): Likewise.
11708 (nbsd_nat_target::update_thread_list): Likewise.
11709 (post_attach::pid_to_str): Likewise.
11710
11711 2020-04-06 Tom Tromey <tromey@adacore.com>
11712
11713 * ada-valprint.c (print_variant_part): Extract the variant field.
11714 (print_field_values): Use the field as the outer value when
11715 recursing.
11716
11717 2020-04-06 Tom Tromey <tromey@adacore.com>
11718
11719 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11720 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11721 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11722 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11723 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11724
11725 2020-04-06 Tom Tromey <tromey@adacore.com>
11726
11727 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11728 TYPE_CODE_ERROR.
11729
11730 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11731
11732 * nbsd-tdep.c: Include "gdbarch.h".
11733 Define enum with NetBSD signal numbers.
11734 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11735 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11736 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11737 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11738 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11739 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11740 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11741 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11742 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11743 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11744 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11745 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11746
11747 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11748
11749 PR gdb/25325
11750 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11751
11752 2020-04-03 Tom Tromey <tromey@adacore.com>
11753
11754 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11755 Read constant block.
11756
11757 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11758
11759 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11760 (gdb_bfd_get_full_section_contents): New declaration.
11761 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11762 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11763 gdb_bfd_get_full_section_contents.
11764
11765 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11766
11767 * exec.c (build_section_table): Replace internal_error with
11768 gdb_assert.
11769 (section_table_xfer_memory_partial): Likewise.
11770 * mdebugread.c (parse_partial_symbols): Likewise.
11771 * psymtab.c (lookup_partial_symbol): Likewise.
11772 * utils.c (wrap_here): Likewise.
11773
11774 2020-04-02 Tom Tromey <tromey@adacore.com>
11775
11776 * f-lang.c (build_fortran_types): Use arch_type to initialize
11777 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11778
11779 2020-04-02 Tom Tromey <tromey@adacore.com>
11780
11781 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11782 of attributes.
11783
11784 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11785 Bernd Edlinger <bernd.edlinger@hotmail.de>
11786 Tom Tromey <tromey@adacore.com>
11787
11788 * buildsym.c (buildsym_compunit::record_line): Remove
11789 deduplication code.
11790
11791 2020-04-02 Tom de Vries <tdevries@suse.de>
11792
11793 PR ada/24671
11794 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11795
11796 2020-04-02 Tom de Vries <tdevries@suse.de>
11797
11798 * dwarf2/read.c (dwarf2_gdb_index_functions,
11799 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11800 NULL.
11801 * psymtab.c (psym_lookup_global_symbol_language): New function.
11802 (psym_functions): Init psym_lookup_global_symbol_language with
11803 psym_lookup_global_symbol_language.
11804 * symfile-debug.c (debug_sym_quick_functions): Init
11805 lookup_global_symbol_language with NULL.
11806 * symfile.c (set_initial_language): Remove fixme comment.
11807 * symfile.h (struct quick_symbol_functions): Add
11808 lookup_global_symbol_language.
11809 * symtab.c (find_quick_global_symbol_language): New function.
11810 (find_main_name): Use find_quick_global_symbol_language.
11811
11812 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11813
11814 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11815
11816 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11817
11818 * buildsym.c (record_line): Fix undefined behavior and preserve
11819 lines at eof.
11820
11821 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11822
11823 * buildsym.c (record_line): Fix the resizing condition.
11824
11825 2020-04-01 Tom Tromey <tom@tromey.com>
11826
11827 * value.h (value_literal_complex): Add comment.
11828 * valops.c (value_literal_complex): Refer to value.h.
11829
11830 2020-04-01 Tom Tromey <tom@tromey.com>
11831
11832 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11833 (scalar_type): New rule, from typebase.
11834 (typebase): Use scalar_type. Recognize complex types.
11835 (field_name): Handle FLOAT_KEYWORD.
11836 (ident_tokens): Add _Complex and __complex__.
11837
11838 2020-04-01 Tom Tromey <tom@tromey.com>
11839
11840 PR exp/25299:
11841 * valarith.c (promotion_type, complex_binop): New functions.
11842 (scalar_binop): Handle complex numbers. Use promotion_type.
11843 (value_pos, value_neg, value_complement): Handle complex numbers.
11844
11845 2020-04-01 Tom Tromey <tom@tromey.com>
11846
11847 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11848 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11849 (parse_number): Handle complex numbers.
11850
11851 2020-04-01 Tom Tromey <tom@tromey.com>
11852
11853 * c-valprint.c (c_decorations): Change complex suffix to "i".
11854
11855 2020-04-01 Tom Tromey <tom@tromey.com>
11856
11857 * valprint.c (generic_value_print_complex): Use accessors.
11858 * value.h (value_real_part, value_imaginary_part): Declare.
11859 * valops.c (value_real_part, value_imaginary_part): New
11860 functions.
11861 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11862
11863 2020-04-01 Tom Tromey <tom@tromey.com>
11864
11865 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11866 (read_range_type): Update.
11867 * mdebugread.c (basic_type): Update.
11868 * go-lang.c (build_go_types): Use init_complex_type.
11869 * gdbtypes.h (struct main_type) <complex_type>: New member.
11870 (init_complex_type): Update.
11871 (arch_complex_type): Don't declare.
11872 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11873 Make name if none given. Use alloc_type_copy. Look for cached
11874 complex type.
11875 (arch_complex_type): Remove.
11876 (gdbtypes_post_init): Use init_complex_type.
11877 * f-lang.c (build_fortran_types): Use init_complex_type.
11878 * dwarf2/read.c (read_base_type): Update.
11879 * d-lang.c (build_d_types): Use init_complex_type.
11880 * ctfread.c (read_base_type): Update.
11881
11882 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11883
11884 * infrun.c (stop_all_threads): Update assertion, plus when
11885 stopping threads, take into account that we might be trying
11886 to stop an all-stop target.
11887 (stop_waiting): Call 'stop_all_threads' if there exists a
11888 non-stop target.
11889
11890 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11891
11892 * target.h (exists_non_stop_target): New function declaration.
11893 * target.c (exists_non_stop_target): New function.
11894
11895 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11896
11897 PR gdb/24789
11898 * eval.c (is_integral_or_integral_reference): New function.
11899 (evaluate_subexp_standard): Allow integer references in
11900 pointer arithmetic.
11901
11902 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11903
11904 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11905 check for no ptid in the stop reply when the target is non-stop.
11906
11907 2020-04-01 Tom Tromey <tromey@adacore.com>
11908
11909 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11910 "name" parameter to rvalue reference. Initialize m_name_holder.
11911 <lookup_name_info>: New overloads.
11912 <name>: Return gdb::string_view.
11913 <c_str>: New method.
11914 <make_ignore_params>: Update.
11915 <search_name_hash>: Update.
11916 <language_lookup_name>: Return const char *.
11917 <m_name>: Change type.
11918 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11919 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11920 (lookup_name_info::match_any): Update.
11921 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11922 Update.
11923 * minsyms.c (linkage_name_str): Update.
11924 * language.c (default_symbol_name_matcher): Update.
11925 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11926 Update.
11927 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11928 (ada_lookup_name_info::ada_lookup_name_info): Update.
11929 (literal_symbol_name_matcher): Update.
11930
11931 2020-04-01 Tom Tromey <tromey@adacore.com>
11932
11933 * psymtab.c (psymtab_search_name): Remove function.
11934 (psym_lookup_symbol): Create search name and lookup name here.
11935 (lookup_partial_symbol): Remove "name" parameter; add
11936 lookup_name.
11937 (psym_expand_symtabs_for_function): Update.
11938
11939 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11940
11941 PR tui/25597:
11942 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11943
11944 2020-03-31 Tom Tromey <tromey@adacore.com>
11945
11946 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11947 memcpy.
11948
11949 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11950
11951 * features/riscv/32bit-csr.xml: Regenerated.
11952 * features/riscv/64bit-csr.xml: Regenerated.
11953
11954 2020-03-30 Tom Tromey <tromey@adacore.com>
11955
11956 * ada-valprint.c (print_variant_part): Update.
11957 * ada-lang.h (ada_which_variant_applies): Update.
11958 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11959 outer_valaddr parameters; replace with "outer" value parameter.
11960 (to_fixed_variant_branch_type): Update.
11961
11962 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11963
11964 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11965 <list>. Remove inclusion of observable.h.
11966 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11967 (struct arch_lwp_info): New struct.
11968 (class ppc_linux_dreg_interface): New class.
11969 (struct ppc_linux_process_info): New struct.
11970 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11971 <low_new_clone, low_forget_process, low_prepare_to_resume>
11972 <copy_thread_dreg_state, mark_thread_stale>
11973 <mark_debug_registers_changed, register_hw_breakpoint>
11974 <clear_hw_breakpoint, register_wp, clear_wp>
11975 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11976 <num_memory_accesses, get_trigger_type>
11977 <create_watchpoint_request, hwdebug_point_cmp>
11978 <init_arch_lwp_info, get_arch_lwp_info>
11979 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11980 methods.
11981 <struct ptid_hash>: New inner struct.
11982 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11983 members.
11984 (saved_dabr_value, hwdebug_info, max_slots_number)
11985 (struct hw_break_tuple, struct thread_points, ppc_threads)
11986 (have_ptrace_hwdebug_interface)
11987 (hwdebug_find_thread_points_by_tid)
11988 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11989 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11990 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11991 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11992 use m_dreg_interface.
11993 (hwdebug_point_cmp): Change to...
11994 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11995 reference arguments instead of pointers.
11996 (ppc_linux_nat_target::ranged_break_num_registers): Use
11997 m_dreg_interface.
11998 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11999 m_dreg_interface. Call register_hw_breakpoint.
12000 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12001 m_dreg_interface. Call clear_hw_breakpoint.
12002 (get_trigger_type): Change to...
12003 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12004 comment.
12005 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12006 use m_dreg_interface. Call register_hw_breakpoint.
12007 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12008 use m_dreg_interface. Call clear_hw_breakpoint.
12009 (can_use_watchpoint_cond_accel): Change to...
12010 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12011 method. Update comment, use m_dreg_interface and
12012 m_process_info.
12013 (calculate_dvc): Change to...
12014 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12015 m_dreg_interface.
12016 (num_memory_accesses): Change to...
12017 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12018 (check_condition): Change to...
12019 (ppc_linux_nat_target::check_condition): ...this method.
12020 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12021 comment, use m_dreg_interface.
12022 (create_watchpoint_request): Change to...
12023 (ppc_linux_nat_target::create_watchpoint_request): ...this
12024 method. Use m_dreg_interface.
12025 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12026 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12027 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12028 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12029 (ppc_linux_nat_target::low_forget_process)
12030 (ppc_linux_nat_target::low_new_fork)
12031 (ppc_linux_nat_target::low_new_clone)
12032 (ppc_linux_nat_target::low_delete_thread)
12033 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12034 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12035 only call mark_thread_stale.
12036 (ppc_linux_thread_exit): Remove.
12037 (ppc_linux_nat_target::stopped_data_address): Change to...
12038 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12039 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12040 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12041 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12042 comment. Call low_stopped_data_address.
12043 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12044 m_dreg_interface.
12045 (ppc_linux_nat_target::masked_watch_num_registers): Use
12046 m_dreg_interface.
12047 (ppc_linux_nat_target::copy_thread_dreg_state)
12048 (ppc_linux_nat_target::mark_thread_stale)
12049 (ppc_linux_nat_target::mark_debug_registers_changed)
12050 (ppc_linux_nat_target::register_hw_breakpoint)
12051 (ppc_linux_nat_target::clear_hw_breakpoint)
12052 (ppc_linux_nat_target::register_wp)
12053 (ppc_linux_nat_target::clear_wp)
12054 (ppc_linux_nat_target::init_arch_lwp_info)
12055 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12056 (_initialize_ppc_linux_nat): Remove observer callback.
12057
12058 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12059
12060 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12061 (ppc_linux_nat_target::auxv_parse)
12062 (ppc_linux_nat_target::read_description)
12063 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12064 Move up.
12065
12066 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12067
12068 * linux-nat.h (low_new_clone): New method.
12069 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12070
12071 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12072
12073 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12074 (dbx_expand_psymtab): ... this.
12075 (start_psymtab): Update.
12076 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12077 (mdebug_expand_psymtab): ... this.
12078 (parse_partial_symbols): Update.
12079 (new_psymtab): Update.
12080 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12081 (xcoff_expand_psymtab): ... this.
12082 (xcoff_start_psymtab): Update.
12083
12084 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12085
12086 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12087 <expand_dependencies>: ... this.
12088 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12089 (partial_symtab::expand_dependencies): ... this.
12090 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12091 Update.
12092 (dwarf2_psymtab::expand_psymtab): Update.
12093 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12094 * mdebugread.c (psymtab_to_symtab_1): Update.
12095 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12096
12097 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12098
12099 * psympriv.h (discard_psymtab): Remove.
12100 * dbxread.c (dbx_end_psymtab): Update.
12101 * xcoffread.c (xcoff_end_psymtab): Update.
12102
12103 2020-03-28 Tom Tromey <tom@tromey.com>
12104
12105 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12106 comment.
12107
12108 2020-03-28 Tom Tromey <tom@tromey.com>
12109
12110 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12111
12112 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12113
12114 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12115
12116 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12117
12118 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12119
12120 2020-03-26 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12123 (mark_common_block_symbol_computed, read_tag_string_type)
12124 (attr_to_dynamic_prop, read_subrange_type): Update.
12125 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12126 to be methods on struct attribute.
12127 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12128 (read_call_site_scope, partial_die_info::read)
12129 (partial_die_info::read, lookup_die_type, follow_die_ref):
12130 Update.
12131 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12132 from dwarf2_get_ref_die_offset.
12133 (attribute::constant_value): New method, from
12134 dwarf2_get_attr_constant_value.
12135 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12136 Declare method.
12137 <constant_value>: New method.
12138
12139 2020-03-26 Tom Tromey <tom@tromey.com>
12140
12141 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12142 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12143 (dwarf_type_encoding_name): Move to stringify.c.
12144 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12145 * dwarf2/stringify.c: New file.
12146 * dwarf2/stringify.h: New file.
12147
12148 2020-03-26 Tom Tromey <tom@tromey.com>
12149
12150 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12151 Rewrite.
12152
12153 2020-03-26 Tom Tromey <tom@tromey.com>
12154
12155 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12156 methods.
12157 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12158 (lookup_ranges_base): Likewise.
12159 (read_cutu_die_from_dwo, read_full_die_1): Update.
12160
12161 2020-03-26 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2/read.c (read_import_statement, read_file_scope)
12164 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12165 (read_lexical_block_scope, read_call_site_scope)
12166 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12167 (handle_struct_member_die, process_structure_scope)
12168 (update_enumeration_type_from_children)
12169 (process_enumeration_scope, read_array_type, read_common_block)
12170 (read_namespace, read_module, read_subroutine_type): Update.
12171 (sibling_die): Remove.
12172
12173 2020-03-26 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12176 (build_type_psymtabs_reader, read_structure_type)
12177 (read_enumeration_type, read_full_die_1): Update.
12178 (dwarf2_attr_no_follow): Move to die.h.
12179 * dwarf2/die.h (struct die_info) <attr>: New method.
12180
12181 2020-03-26 Tom Tromey <tom@tromey.com>
12182
12183 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12184 <base_address>: Now an optional.
12185 (dwarf2_find_base_address, dwarf2_rnglists_process)
12186 (dwarf2_ranges_process, fill_in_loclist_baton)
12187 (dwarf2_symbol_mark_computed): Update.
12188
12189 2020-03-26 Tom Tromey <tom@tromey.com>
12190
12191 * dwarf2/read.c (struct die_info): Move to die.h.
12192 * dwarf2/die.h: New file.
12193
12194 2020-03-26 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12197 * dwarf2/read.c
12198 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12199 Move to line-header.c.
12200 (read_checked_initial_length_and_offset, read_formatted_entries):
12201 Likewise.
12202 (dwarf_decode_line_header): Split into two.
12203 * dwarf2/line-header.c
12204 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12205 Move from read.c.
12206 (read_checked_initial_length_and_offset, read_formatted_entries):
12207 Likewise.
12208 (dwarf_decode_line_header): New function, split from read.c.
12209
12210 2020-03-26 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12213 Declare method.
12214 * dwarf2/read.c (read_attribute_value): Update.
12215 (dwarf2_per_objfile::read_line_string): Rename from
12216 read_indirect_line_string.
12217 (read_formatted_entries): Update.
12218
12219 2020-03-26 Tom Tromey <tom@tromey.com>
12220
12221 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12222 variable.
12223
12224 2020-03-26 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12227 const.
12228 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12229 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12230 parameter const.
12231
12232 2020-03-26 Tom Tromey <tom@tromey.com>
12233
12234 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12235 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12236 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12237 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12238
12239 2020-03-26 Tom Tromey <tom@tromey.com>
12240
12241 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12242 file_names_size, file_full_name, file_file_name>: Use const.
12243 <file_name_at, file_names>: Add const overload.
12244 * dwarf2/line-header.c (line_header::file_file_name)
12245 (line_header::file_full_name): Update.
12246
12247 2020-03-26 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12250 (macro_start_file, consume_improper_spaces)
12251 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12252 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12253 (dwarf_decode_macros): Move to macro.c.
12254 * dwarf2/macro.c: New file.
12255 * dwarf2/macro.h: New file.
12256 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12257
12258 2020-03-26 Tom Tromey <tom@tromey.com>
12259
12260 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12261 method.
12262 * dwarf2/section.c: New method. From
12263 read_indirect_string_at_offset_from.
12264 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12265 (read_indirect_string_at_offset_from): Move to section.c.
12266 (read_indirect_string_at_offset): Rewrite.
12267 (read_indirect_line_string_at_offset): Remove.
12268 (read_indirect_string, read_indirect_line_string)
12269 (dwarf_decode_macro_bytes): Update.
12270
12271 2020-03-26 Tom Tromey <tom@tromey.com>
12272
12273 * dwarf2/section.h (struct dwarf2_section_info)
12274 <overload_complaint>: Declare.
12275 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12276 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12277 Rename from dwarf2_section_buffer_overflow_complaint.
12278 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12279 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12280
12281 2020-03-26 Tom Tromey <tom@tromey.com>
12282
12283 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12284 Declare.
12285 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12286 Move from read.c.
12287 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12288 to section.c.
12289
12290 2020-03-26 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12293
12294 2020-03-26 Tom Tromey <tom@tromey.com>
12295
12296 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12297 "builder".
12298 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12299 parameter.
12300 (dwarf_decode_macros): Update.
12301
12302 2020-03-26 Tom Tromey <tom@tromey.com>
12303
12304 * dwarf2/read.c (read_attribute_value): Update.
12305 (read_indirect_string_from_dwz): Move to dwz.c; change into
12306 method.
12307 (dwarf_decode_macro_bytes): Update.
12308 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12309 * dwarf2/dwz.c: New file.
12310 * Makefile.in (COMMON_SFILES): Add dwz.c.
12311
12312 2020-03-26 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12315 * dwarf2/read.c: Add include.
12316 * dwarf2/index-write.c: Add include.
12317 * dwarf2/index-cache.c: Add include.
12318 * dwarf2/dwz.h: New file.
12319
12320 2020-03-25 Tom Tromey <tom@tromey.com>
12321
12322 * compile/compile-object-load.c (get_out_value_type): Mention
12323 correct symbol name in error message.
12324
12325 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12326
12327 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12328
12329 2020-03-25 Tom de Vries <tdevries@suse.de>
12330
12331 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12332 * symmisc.c (dump_symtab_1): Print user and includes fields.
12333 (maintenance_info_symtabs): Same.
12334
12335 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12336
12337 PR gdb/25534
12338 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12339 (riscv_regcache_cooked_write): New function.
12340 (riscv_push_dummy_call): Use new function.
12341 (riscv_return_value): Likewise.
12342
12343 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12344
12345 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12346 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12347 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12348 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12349 * infrun.c (follow_fork): Likewise.
12350 (follow_fork_inferior): Likewise.
12351 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12352 * linux-nat.h (class linux_nat_target): Likewise.
12353 * remote.c (class remote_target) <follow_fork>: Likewise.
12354 (remote_target::follow_fork): Likewise.
12355 * target-delegates.c: Re-generate.
12356 * target.c (default_follow_fork): Likewise.
12357 (target_follow_fork): Likewise.
12358 * target.h (struct target_ops) <follow_fork>: Likewise.
12359 (target_follow_fork): Likewise.
12360
12361 2020-03-24 Tom de Vries <tdevries@suse.de>
12362
12363 * psymtab.c (maintenance_info_psymtabs): Print user field.
12364
12365 2020-03-20 Tom Tromey <tromey@adacore.com>
12366
12367 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12368 const.
12369 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12370 const.
12371
12372 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12373
12374 * ptrace.m4: Don't check for ptrace declaration.
12375 * config.in: Re-generate.
12376 * configure: Re-generate.
12377 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12378 not defined.
12379
12380 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12381
12382 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12383 `PTRACE_TYPE_RET'.
12384 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12385 * sparc-nat.c (gdb_ptrace): Likewise.
12386 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12387
12388 2020-03-20 Tom Tromey <tromey@adacore.com>
12389
12390 * c-exp.y (lex_one_token): Fix assert.
12391
12392 2020-03-20 Tom Tromey <tromey@adacore.com>
12393
12394 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12395 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12396 strncpy call.
12397
12398 2020-03-20 Tom Tromey <tromey@adacore.com>
12399
12400 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12401
12402 2020-03-20 Tom Tromey <tromey@adacore.com>
12403
12404 * ada-valprint.c (print_variant_part): Remove parameters; switch
12405 to value-based API.
12406 (print_field_values): Likewise.
12407 (ada_val_print_struct_union): Likewise.
12408 (ada_value_print_1): Update.
12409
12410 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12411
12412 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12413 nbsd_nat_target instead of inf_ptrace_target.
12414 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12415 nbsd_nat_target.
12416
12417 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12418
12419 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12420 it to the ptrace call.
12421 * (store_registers): Likewise.
12422
12423 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12424
12425 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12426 it to the ptrace call.
12427 * (store_registers): Likewise.
12428
12429 2020-03-19 Luis Machado <luis.machado@linaro.org>
12430
12431 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12432 valid, fetch vg value from ptrace.
12433
12434 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12435 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12436 * inf-ptrace.c: Likewise.
12437 * (gdb_ptrace): Add.
12438 * (inf_ptrace_target::resume): Update.
12439 * (inf_ptrace_target::xfer_partial): Likewise.
12440 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12441 * (inf_ptrace_peek_poke): Update.
12442
12443 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12444
12445 * x86-bsd-nat.c (gdb_ptrace): New.
12446 * (x86bsd_dr_set): Add new argument `ptid'.
12447 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12448 x86bsd_dr_set_addr): Update.
12449
12450 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * remote.c (remote_target::process_stop_reply): Handle events for
12453 all threads differently.
12454
12455 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12456
12457 * completer.c (completion_tracker::remove_completion): Define new
12458 function.
12459 * completer.h (completion_tracker::remove_completion): Declare new
12460 function.
12461 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12462 when adding a C++ function symbol.
12463
12464 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12465
12466 * completer.c (completion_tracker::completion_hash_entry): Define
12467 new class.
12468 (advance_to_filename_complete_word_point): Call
12469 recompute_lowest_common_denominator.
12470 (completion_tracker::completion_tracker): Call discard_completions
12471 to setup the hash table.
12472 (completion_tracker::discard_completions): Allow for being called
12473 from the constructor, pass new equal function, and element deleter
12474 when constructing the hash table. Initialise new class member
12475 variables.
12476 (completion_tracker::maybe_add_completion): Remove use of
12477 m_entries_vec, and store more information into m_entries_hash.
12478 (completion_tracker::recompute_lcd_visitor): New function, most
12479 content taken from...
12480 (completion_tracker::recompute_lowest_common_denominator):
12481 ...here, this now just visits each item in the hash calling the
12482 above visitor.
12483 (completion_tracker::build_completion_result): Remove use of
12484 m_entries_vec, call recompute_lowest_common_denominator.
12485 * completer.h (completion_tracker::have_completions): Remove use
12486 of m_entries_vec.
12487 (completion_tracker::completion_hash_entry): Declare new class.
12488 (completion_tracker::recompute_lowest_common_denominator): Change
12489 function signature.
12490 (completion_tracker::recompute_lcd_visitor): Declare new function.
12491 (completion_tracker::m_entries_vec): Delete.
12492 (completion_tracker::m_entries_hash): Initialize to NULL.
12493 (completion_tracker::m_lowest_common_denominator_valid): New
12494 member variable.
12495 (completion_tracker::m_lowest_common_denominator_max_length): New
12496 member variable.
12497
12498 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12499
12500 * regformats/regdef.h: Put reg in gdb namespace.
12501
12502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12503
12504 * i386-bsd-nat.c (gdb_ptrace): New.
12505 * (i386bsd_fetch_inferior_registers,
12506 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12507 * (i386bsd_fetch_inferior_registers,
12508 i386bsd_store_inferior_registers) Use gdb_ptrace.
12509
12510 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12511
12512 * amd64-bsd-nat.c (gdb_ptrace): New.
12513 * (amd64bsd_fetch_inferior_registers,
12514 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12515 * (amd64bsd_fetch_inferior_registers,
12516 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12517
12518 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12519
12520 * user-regs.c (user_reg::read): Rename to...
12521 (user_reg::xread): ...this.
12522 * (append_user_reg): Rename argument `read' to `xread'.
12523 * (user_reg_add_builtin): Likewise.
12524 * (user_reg_add): Likewise.
12525 * (value_of_user_reg): Likewise.
12526
12527 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12528
12529 * sparc-nat.c (gdb_ptrace): New.
12530 * sparc-nat.c (sparc_fetch_inferior_registers)
12531 (sparc_store_inferior_registers) Remove obsolete comment.
12532 * sparc-nat.c (sparc_fetch_inferior_registers)
12533 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12534 * sparc-nat.c (sparc_fetch_inferior_registers)
12535 (sparc_store_inferior_registers) Use gdb_ptrace.
12536
12537 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12538
12539 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12540 it to the ptrace call.
12541 * sh-nbsd-nat.c (store_registers): Likewise.
12542
12543 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12544
12545 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12546 nbsd_nat_target instead of inf_ptrace_target.
12547 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12548 nbsd_nat_target.
12549
12550 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12551
12552 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12553
12554 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12555
12556 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12557 <sys/sysctl.h>.
12558 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12559
12560 2020-03-17 Tom de Vries <tdevries@suse.de>
12561
12562 PR gdb/23710
12563 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12564 fields.
12565 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12566 fields.
12567 (process_imported_unit_die): Skip import of c++ CUs.
12568
12569 2020-03-16 Tom Tromey <tom@tromey.com>
12570
12571 * p-valprint.c (pascal_object_print_value): Initialize
12572 base_value.
12573
12574 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12575 Shahab Vahedi <shahab@synopsys.com>
12576
12577 * Makefile.in: Add arch/arc.o
12578 * configure.tgt: Likewise.
12579 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12580 (_initialize_arc_tdep): Don't initialize old target descriptions.
12581 (arc_read_description): New function to cache target descriptions.
12582 * arc-tdep.h (arc_read_description): Add proto type.
12583 * arch/arc.c: New file.
12584 * arch/arc.h: Likewise.
12585 * features/Makefile: Replace old target descriptions with new.
12586 * features/arc-arcompact.c: Remove.
12587 * features/arc-arcompact.xml: Likewise.
12588 * features/arc-v2.c: Likewise
12589 * features/arc-v2.xml: Likewise
12590 * features/arc/aux-arcompact.xml: New file.
12591 * features/arc/aux-v2.xml: Likewise.
12592 * features/arc/core-arcompact.xml: Likewise.
12593 * features/arc/core-v2.xml: Likewise.
12594 * features/arc/aux-arcompact.c: Generate.
12595 * features/arc/aux-v2.c: Likewise.
12596 * features/arc/core-arcompact.c: Likewise.
12597 * features/arc/core-v2.c: Likewise.
12598 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12599
12600 2020-03-16 Tom Tromey <tromey@adacore.com>
12601
12602 PR gdb/25663:
12603 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12604 putting value into bcache.
12605
12606 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12607
12608 PR gdb/21500
12609 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12610 to...
12611 (amd64_windows_init_abi_common): ... this. Don't set size of
12612 long type.
12613 (amd64_windows_init_abi): New function.
12614 (amd64_cygwin_init_abi): New function.
12615 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12616 the Cygwin OS ABI.
12617 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12618 comment.
12619
12620 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12621
12622 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12623 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12624 (pe_import_directory_entry): New struct type.
12625 (is_linked_with_cygwin_dll): New function.
12626 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12627 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12628 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12629
12630 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12631
12632 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12633 i386_cygwin_core_osabi_sniffer.
12634
12635 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12636
12637 * i386-cygwin-tdep.c: Rename to...
12638 * i386-windows-tdep.c: ... this.
12639 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12640 i386-windows-tdep.c.
12641 * configure.tgt: Likewise.
12642
12643 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12644
12645 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12646 * osabi.c (gdb_osabi_names): Add "Windows".
12647 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12648 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12649 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12650 i386_cygwin_osabi_sniffer.
12651 (_initialize_i386_cygwin_tdep): Register OS ABI
12652 GDB_OSABI_WINDOWS for i386.
12653 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12654 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12655 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12656 for x86-64.
12657 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12658 when the target matches '*-*-mingw*'.
12659
12660 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12661
12662 * defs.h (enum gdb_osabi): Move to...
12663 * osabi.h (enum gdb_osabi): ... here.
12664 * gdbarch.sh: Include osabi.h in gdbarch.h.
12665 * gdbarch.h: Re-generate.
12666
12667 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12668
12669 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12670 function.
12671 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12672
12673 2020-03-14 Tom Tromey <tom@tromey.com>
12674
12675 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12676 for C++.
12677 (c_type_print_modifier): Likewise. Add "language" parameter.
12678 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12679 (c_type_print_base_1): Update.
12680 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12681 constants.
12682 * type-stack.c (type_stack::insert): Handle tp_atomic and
12683 tp_restrict.
12684 (type_stack::follow_type_instance_flags): Likewise.
12685 (type_stack::follow_types): Likewise. Merge type-following code.
12686 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12687 (space_identifier, cv_with_space_id)
12688 (const_or_volatile_or_space_identifier_noopt)
12689 (const_or_volatile_or_space_identifier): Remove.
12690 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12691 rules.
12692 (ptr_operator, typebase): Update.
12693 (enum token_flag) <FLAG_C>: New constant.
12694 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12695 "_Atomic".
12696 (lex_one_token): Handle FLAG_C.
12697
12698 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12699
12700 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12701 it to the ptrace call.
12702 * m68k-bsd-nat.c (store_registers): Likewise.
12703
12704 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12705
12706 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12707 gdb_byte *.
12708 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12709 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12710 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12711
12712 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12713
12714 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12715 nbsd_nat_target instead of inf_ptrace_target.
12716 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12717 nbsd_nat_target.
12718
12719 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12720
12721 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12722 register_t.
12723
12724 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12725
12726 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12727 it to the ptrace call.
12728 * alpha-bsd-nat.c (store_registers): Likewise.
12729
12730 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12731
12732 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12733 includes.
12734 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12735 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12736 fill_fpregset): Likewise.
12737
12738 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12739
12740 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12741 nbsd_nat_target instead of inf_ptrace_target.
12742 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12743 nbsd_nat_target.
12744
12745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12746
12747 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12748 register_t.
12749
12750 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12751
12752 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12753 it to the ptrace call.
12754 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12755 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12756 * arm-nbsd-nat.c (store_register): Likewise.
12757 * arm-nbsd-nat.c (store_regs): Likewise.
12758 * arm-nbsd-nat.c (store_fp_register): Likewise.
12759 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12760
12761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12762
12763 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12764 nbsd_nat_target instead of inf_ptrace_target.
12765 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12766 nbsd_nat_target.
12767
12768 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12769
12770 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12771 it to the ptrace call.
12772 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12773
12774 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12775
12776 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12777 it to the ptrace call.
12778 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12779
12780 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12781
12782 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12783 gdb_byte *.
12784 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12785
12786 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12787
12788 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12789 instead of inf_ptrace_target.
12790 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12791 nbsd_nat_target.
12792
12793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12794
12795 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12796 register_t.
12797
12798 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12799
12800 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12801 register_t.
12802
12803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12804
12805 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12806 register_t.
12807
12808 2020-03-13 Tom Tromey <tom@tromey.com>
12809
12810 * value.h (val_print): Don't declare.
12811 * valprint.h (val_print_array_elements)
12812 (val_print_scalar_formatted, generic_val_print): Don't declare.
12813 * valprint.c (generic_val_print_array): Take a struct value.
12814 (generic_val_print_ptr, generic_val_print_memberptr)
12815 (generic_val_print_bool, generic_val_print_int)
12816 (generic_val_print_char, generic_val_print_complex)
12817 (generic_val_print): Remove.
12818 (generic_value_print): Update.
12819 (do_val_print): Remove unused parameters. Don't call
12820 la_val_print.
12821 (val_print): Remove.
12822 (common_val_print): Update. Don't call value_check_printable.
12823 (val_print_scalar_formatted, val_print_array_elements): Remove.
12824 * rust-lang.c (rust_val_print): Remove.
12825 (rust_language_defn): Update.
12826 * p-valprint.c (pascal_val_print): Remove.
12827 (pascal_value_print_inner): Update.
12828 (pascal_object_print_val_fields, pascal_object_print_val):
12829 Remove.
12830 (pascal_object_print_static_field): Update.
12831 * p-lang.h (pascal_val_print): Don't declare.
12832 * p-lang.c (pascal_language_defn): Update.
12833 * opencl-lang.c (opencl_language_defn): Update.
12834 * objc-lang.c (objc_language_defn): Update.
12835 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12836 * m2-lang.h (m2_val_print): Don't declare.
12837 * m2-lang.c (m2_language_defn): Update.
12838 * language.h (struct language_defn) <la_val_print>: Remove.
12839 * language.c (unk_lang_value_print_inner): Rename. Change
12840 argument types.
12841 (unknown_language_defn, auto_language_defn): Update.
12842 * go-valprint.c (go_val_print): Remove.
12843 * go-lang.h (go_val_print): Don't declare.
12844 * go-lang.c (go_language_defn): Update.
12845 * f-valprint.c (f_val_print): Remove.
12846 * f-lang.h (f_value_print): Don't declare.
12847 * f-lang.c (f_language_defn): Update.
12848 * d-valprint.c (d_val_print): Remove.
12849 * d-lang.h (d_value_print): Don't declare.
12850 * d-lang.c (d_language_defn): Update.
12851 * cp-valprint.c (cp_print_value_fields)
12852 (cp_print_value_fields_rtti, cp_print_value): Remove.
12853 (cp_print_static_field): Update.
12854 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12855 (c_val_print_struct, c_val_print_union, c_val_print_int)
12856 (c_val_print_memberptr, c_val_print): Remove.
12857 * c-lang.h (c_val_print_array, cp_print_value_fields)
12858 (cp_print_value_fields_rtti): Don't declare.
12859 * c-lang.c (c_language_defn, cplus_language_defn)
12860 (asm_language_defn, minimal_language_defn): Update.
12861 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12862 (ada_val_print_enum): Take a struct value.
12863 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12864 (ada_val_print): Remove.
12865 (ada_value_print_1): Update.
12866 (printable_val_type): Remove.
12867 * ada-lang.h (ada_val_print): Don't declare.
12868 * ada-lang.c (ada_language_defn): Update.
12869
12870 2020-03-13 Tom Tromey <tom@tromey.com>
12871
12872 * valprint.c (do_val_print): Update.
12873 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12874 a struct value.
12875 (value_to_value_object_no_release): Declare.
12876 * python/py-value.c (value_to_value_object_no_release): New
12877 function.
12878 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12879 struct value.
12880 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12881 function.
12882 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12883 a struct value.
12884 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12885 Declare.
12886 (gdbscm_apply_val_pretty_printer): Take a struct value.
12887 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12888 value.
12889 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12890 value.
12891 * extension-priv.h (struct extension_language_ops)
12892 <apply_val_pretty_printer>: Take a struct value.
12893 * cp-valprint.c (cp_print_value): Create a struct value.
12894 (cp_print_value): Update.
12895
12896 2020-03-13 Tom Tromey <tom@tromey.com>
12897
12898 * ada-valprint.c (print_field_values): Call common_val_print.
12899
12900 2020-03-13 Tom Tromey <tom@tromey.com>
12901
12902 * ada-valprint.c (val_print_packed_array_elements): Remove
12903 bitoffset and val parameters. Call common_val_print.
12904 (ada_val_print_string): Remove offset, address, and original_value
12905 parameters.
12906 (ada_val_print_array): Update.
12907 (ada_value_print_array): New function.
12908 (ada_value_print_1): Call it.
12909
12910 2020-03-13 Tom Tromey <tom@tromey.com>
12911
12912 * ada-valprint.c (ada_value_print): Use common_val_print.
12913
12914 2020-03-13 Tom Tromey <tom@tromey.com>
12915
12916 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12917
12918 2020-03-13 Tom Tromey <tom@tromey.com>
12919
12920 * ada-valprint.c (ada_value_print_num): New function.
12921 (ada_value_print_1): Use it.
12922
12923 2020-03-13 Tom Tromey <tom@tromey.com>
12924
12925 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12926
12927 2020-03-13 Tom Tromey <tom@tromey.com>
12928
12929 * ada-valprint.c (ada_value_print_ptr): New function.
12930 (ada_value_print_1): Use it.
12931
12932 2020-03-13 Tom Tromey <tom@tromey.com>
12933
12934 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12935 call common_val_print.
12936 (ada_val_print_1): Update.
12937 (ada_value_print_1): New function.
12938 (ada_value_print_inner): Rewrite.
12939
12940 2020-03-13 Tom Tromey <tom@tromey.com>
12941
12942 * cp-valprint.c (cp_print_value_fields): Update.
12943 (cp_print_value): New function.
12944
12945 2020-03-13 Tom Tromey <tom@tromey.com>
12946
12947 * m2-valprint.c (m2_value_print_inner): Use
12948 cp_print_value_fields.
12949 * cp-valprint.c (cp_print_value_fields): New function.
12950 * c-valprint.c (c_value_print_struct): New function.
12951 (c_value_print_inner): Use c_value_print_struct.
12952 * c-lang.h (cp_print_value_fields): Declare.
12953
12954 2020-03-13 Tom Tromey <tom@tromey.com>
12955
12956 * c-valprint.c (c_value_print_array): New function.
12957 (c_value_print_inner): Use it.
12958
12959 2020-03-13 Tom Tromey <tom@tromey.com>
12960
12961 * c-valprint.c (c_value_print_memberptr): New function.
12962 (c_value_print_inner): Use it.
12963
12964 2020-03-13 Tom Tromey <tom@tromey.com>
12965
12966 * c-valprint.c (c_value_print_int): New function.
12967 (c_value_print_inner): Use it.
12968
12969 2020-03-13 Tom Tromey <tom@tromey.com>
12970
12971 * c-valprint.c (c_value_print_ptr): New function.
12972 (c_value_print_inner): Use it.
12973
12974 2020-03-13 Tom Tromey <tom@tromey.com>
12975
12976 * c-valprint.c (c_value_print_inner): Rewrite.
12977
12978 2020-03-13 Tom Tromey <tom@tromey.com>
12979
12980 * valprint.c (generic_value_print_complex): New function.
12981 (generic_value_print): Use it.
12982
12983 2020-03-13 Tom Tromey <tom@tromey.com>
12984
12985 * valprint.c (generic_val_print_float): Don't call
12986 val_print_scalar_formatted.
12987 (generic_val_print, generic_value_print): Update.
12988
12989 2020-03-13 Tom Tromey <tom@tromey.com>
12990
12991 * valprint.c (generic_value_print_char): New function
12992 (generic_value_print): Use it.
12993
12994 2020-03-13 Tom Tromey <tom@tromey.com>
12995
12996 * valprint.c (generic_value_print_int): New function.
12997 (generic_value_print): Use it.
12998
12999 2020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * valprint.c (generic_value_print_bool): New function.
13002 (generic_value_print): Use it.
13003
13004 2020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * valprint.c (generic_val_print_func): Simplify.
13007 (generic_val_print, generic_value_print): Update.
13008
13009 2020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * valprint.c (generic_val_print_flags): Remove.
13012 (generic_val_print, generic_value_print): Update.
13013 (val_print_type_code_flags): Add original_value parameter.
13014
13015 2020-03-13 Tom Tromey <tom@tromey.com>
13016
13017 * valprint.c (generic_val_print): Update.
13018 (generic_value_print): Update.
13019 * valprint.c (generic_val_print_enum): Don't call
13020 val_print_scalar_formatted.
13021
13022 2020-03-13 Tom Tromey <tom@tromey.com>
13023
13024 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13025 * valprint.c (generic_value_print_ptr): New function.
13026
13027 2020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * valprint.c (generic_value_print): Rewrite.
13030
13031 2020-03-13 Tom Tromey <tom@tromey.com>
13032
13033 * p-valprint.c (pascal_object_print_value_fields)
13034 (pascal_object_print_value): New functions.
13035
13036 2020-03-13 Tom Tromey <tom@tromey.com>
13037
13038 * p-valprint.c (pascal_value_print_inner): Rewrite.
13039
13040 2020-03-13 Tom Tromey <tom@tromey.com>
13041
13042 * f-valprint.c (f_value_print_innner): Rewrite.
13043
13044 2020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * m2-valprint.c (m2_print_unbounded_array): New overload.
13047 (m2_print_unbounded_array): Update.
13048 (m2_print_array_contents): Take a struct value.
13049 (m2_value_print_inner): Rewrite.
13050
13051 2020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13054 (d_value_print_inner): New function.
13055 * d-lang.h (d_value_print_inner): Declare.
13056 * d-lang.c (d_language_defn): Use d_value_print_inner.
13057
13058 2020-03-13 Tom Tromey <tom@tromey.com>
13059
13060 * go-valprint.c (go_value_print_inner): New function.
13061 * go-lang.h (go_value_print_inner): Declare.
13062 * go-lang.c (go_language_defn): Use go_value_print_inner.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13067 API.
13068 (rust_val_print): Rewrite.
13069 (rust_value_print_inner): New function, from rust_val_print.
13070 (rust_language_defn): Use rust_value_print_inner.
13071
13072 2020-03-13 Tom Tromey <tom@tromey.com>
13073
13074 * ada-valprint.c (ada_value_print_inner): New function.
13075 * ada-lang.h (ada_value_print_inner): Declare.
13076 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13077
13078 2020-03-13 Tom Tromey <tom@tromey.com>
13079
13080 * f-valprint.c (f_value_print_innner): New function.
13081 * f-lang.h (f_value_print_innner): Declare.
13082 * f-lang.c (f_language_defn): Use f_value_print_innner.
13083
13084 2020-03-13 Tom Tromey <tom@tromey.com>
13085
13086 * p-valprint.c (pascal_value_print_inner): New function.
13087 * p-lang.h (pascal_value_print_inner): Declare.
13088 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13089
13090 2020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * m2-valprint.c (m2_value_print_inner): New function.
13093 * m2-lang.h (m2_value_print_inner): Declare.
13094 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13099 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13100 * c-valprint.c (c_value_print_inner): New function.
13101 * c-lang.h (c_value_print_inner): Declare.
13102 * c-lang.c (c_language_defn, cplus_language_defn)
13103 (asm_language_defn, minimal_language_defn): Use
13104 c_value_print_inner.
13105
13106 2020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * p-valprint.c (pascal_object_print_value_fields): Now static.
13109 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13110
13111 2020-03-13 Tom Tromey <tom@tromey.com>
13112
13113 * c-valprint.c (c_val_print_array): Simplify.
13114
13115 2020-03-13 Tom Tromey <tom@tromey.com>
13116
13117 * valprint.c (value_print_array_elements): New function.
13118 * valprint.h (value_print_array_elements): Declare.
13119
13120 2020-03-13 Tom Tromey <tom@tromey.com>
13121
13122 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13123 * mips-tdep.c (mips_print_register): Use
13124 value_print_scalar_formatted.
13125
13126 2020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * valprint.h (value_print_scalar_formatted): Declare.
13129 * valprint.c (value_print_scalar_formatted): New function.
13130
13131 2020-03-13 Tom Tromey <tom@tromey.com>
13132
13133 * valprint.h (generic_value_print): Declare.
13134 * valprint.c (generic_value_print): New function.
13135
13136 2020-03-13 Tom Tromey <tom@tromey.com>
13137
13138 * valprint.c (do_val_print): Call la_value_print_inner, if
13139 available.
13140 * rust-lang.c (rust_language_defn): Update.
13141 * p-lang.c (pascal_language_defn): Update.
13142 * opencl-lang.c (opencl_language_defn): Update.
13143 * objc-lang.c (objc_language_defn): Update.
13144 * m2-lang.c (m2_language_defn): Update.
13145 * language.h (struct language_defn) <la_value_print_inner>: New
13146 member.
13147 * language.c (unknown_language_defn, auto_language_defn): Update.
13148 * go-lang.c (go_language_defn): Update.
13149 * f-lang.c (f_language_defn): Update.
13150 * d-lang.c (d_language_defn): Update.
13151 * c-lang.c (c_language_defn, cplus_language_defn)
13152 (asm_language_defn, minimal_language_defn): Update.
13153 * ada-lang.c (ada_language_defn): Update.
13154
13155 2020-03-13 Tom Tromey <tom@tromey.com>
13156
13157 * c-valprint.c (c_value_print): Use common_val_print.
13158
13159 2020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13162
13163 2020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * f-valprint.c (f77_print_array_1, f_val_print): Use
13166 common_val_print.
13167
13168 2020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * riscv-tdep.c (riscv_print_one_register_info): Use
13171 common_val_print.
13172
13173 2020-03-13 Tom Tromey <tom@tromey.com>
13174
13175 * mi/mi-main.c (output_register): Use common_val_print.
13176
13177 2020-03-13 Tom Tromey <tom@tromey.com>
13178
13179 * infcmd.c (default_print_one_register_info): Use
13180 common_val_print.
13181
13182 2020-03-13 Tom Tromey <tom@tromey.com>
13183
13184 * valprint.h (common_val_print_checked): Declare.
13185 * valprint.c (common_val_print_checked): New function.
13186 * stack.c (print_frame_arg): Use common_val_print_checked.
13187
13188 2020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * valprint.c (do_val_print): New function, from val_print.
13191 (val_print): Use do_val_print.
13192 (common_val_print): Use do_val_print.
13193
13194 2020-03-13 Tom Tromey <tom@tromey.com>
13195
13196 * valprint.c (value_print): Use scoped_value_mark.
13197
13198 2020-03-13 Tom de Vries <tdevries@suse.de>
13199
13200 PR symtab/25646
13201 * psymtab.c (partial_symtab::partial_symtab): Don't set
13202 globals_offset and statics_offset. Push element onto
13203 current_global_psymbols and current_static_psymbols stacks.
13204 (concat): New function.
13205 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13206 element from current_global_psymbols and current_static_psymbols
13207 stacks. Concat popped elements to global_psymbols and
13208 static_symbols.
13209 (add_psymbol_to_list): Use current_global_psymbols and
13210 current_static_psymbols stacks.
13211 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13212 current_static_psymbols fields.
13213
13214 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13215
13216 * corelow.c (sniff_core_bfd): Remove.
13217 (class core_target) <m_core_vec>: Remove.
13218 (core_target::core_target): Update.
13219 (core_file_fns): Remove.
13220 (deprecated_add_core_fns): Remove.
13221 (default_core_sniffer): Remove.
13222 (sniff_core_bfd): Remove.
13223 (default_check_format): Remove.
13224 (gdb_check_format): Remove.
13225 (core_target_open): Update.
13226 (core_target::get_core_register_section): Update.
13227 (get_core_registers_cb): Update.
13228 (core_target::fetch_registers): Update.
13229 * gdbcore.h (struct core_fns): Remove.
13230 (deprecated_add_core_fns): Remove.
13231 (default_core_sniffer): Remove.
13232 (default_check_format): Remove.
13233
13234 2020-03-12 Tom Tromey <tom@tromey.com>
13235
13236 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13237 CORE_ADDR.
13238 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13239
13240 2020-03-12 Tom Tromey <tom@tromey.com>
13241
13242 * remote.c (remote_target::download_tracepoint)
13243 (remote_target::enable_tracepoint)
13244 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13245 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13246 sprintf_vma.
13247
13248 2020-03-12 Tom Tromey <tom@tromey.com>
13249
13250 * symfile-mem.c: Update CORE_ADDR size assert.
13251
13252 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13253
13254 * selftest.m4: Move to gdbsupport/.
13255 * acinclude.m4: Update path to selftest.m4.
13256
13257 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13260 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13261 gdbarch-selfselftests.c and selftest-arch.c.
13262 (SUBDIR_UNITTESTS_OBS): Rename to...
13263 (SELFTESTS_OBS): ... this.
13264 (COMMON_SFILES): Remove disasm-selftests.c and
13265 gdbarch-selftests.c.
13266 * configure.ac: Don't add selftest-arch.{c,o} to
13267 CONFIG_{SRCS,OBS}.
13268 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13269 preprocessor conditions.
13270
13271 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13272
13273 * configure.ac: Don't source bfd/development.sh.
13274 * selftest.m4: Modify comment.
13275 * configure: Re-generate.
13276
13277 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13278
13279 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13280 not "true" or "false".
13281 * configure: Re-generate.
13282
13283 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13284
13285 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13286 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13287 renamed to arm_nbsd_supply_gregset.
13288 (fetch_register): Update to call arm_nbsd_supply_gregset.
13289 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13290 (arm_netbsd_nat_target::fetch_registers): Update.
13291 (fetch_elfcore_registers): Removed.
13292 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13293 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13294 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13295 not require NetBSD system headers.
13296 (arm_nbsd_regset): New struct.
13297 (arm_nbsd_iterate_over_regset_sections): New function.
13298 (arm_netbsd_init_abi_common): Updated to call
13299 set_gdbarch_iterate_over_regset_sections.
13300 * arm-nbsd-tdep.h: New file.
13301
13302 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13303
13304 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13305 recursion.
13306
13307 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13308
13309 * configure: Re-generate.
13310
13311 2020-03-11 Tom Tromey <tromey@adacore.com>
13312
13313 * ada-typeprint.c (print_choices): Fix comment.
13314
13315 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13316
13317 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13318 previous item in the list, when the list has no items.
13319
13320 2020-03-11 Tom de Vries <tdevries@suse.de>
13321
13322 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13323 PROP_LOCLIST handling code.
13324
13325 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13326
13327 * buildsym-legacy.c (record_line): Pass extra parameter to
13328 record_line.
13329 * buildsym.c (buildsym_compunit::record_line): Take an extra
13330 parameter, reduce duplication in the line table, and record the
13331 is_stmt flag in the line table.
13332 * buildsym.h (buildsym_compunit::record_line): Add extra
13333 parameter.
13334 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13335 non-statement lines.
13336 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13337 this to the symtab builder.
13338 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13339 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13340 through to dwarf_record_line_1.
13341 * infrun.c (process_event_stop_test): When stepping, don't stop at
13342 a non-statement instruction, and only refresh the step info when
13343 we land in the middle of a line's range. Also add an extra
13344 comment.
13345 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13346 field.
13347 * record-btrace.c (btrace_find_line_range): Only record lines
13348 marked as is-statement.
13349 * stack.c (frame_show_address): Show the frame address if we are
13350 in a non-statement sal.
13351 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13352 (maintenance_print_one_line_table): Print a header for the is_stmt
13353 column, and include is_stmt information in the output.
13354 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13355 preference to non-statements.
13356 (find_pcs_for_symtab_line): Prefer is-statement entries.
13357 (find_line_common): Likewise.
13358 * symtab.h (struct linetable_entry): Add is_stmt field.
13359 (struct symtab_and_line): Likewise.
13360 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13361 arranging the line table.
13362
13363 2020-03-07 Tom de Vries <tdevries@suse.de>
13364
13365 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13366 DIE.
13367
13368 2020-03-07 Tom Tromey <tom@tromey.com>
13369
13370 * valops.c (value_literal_complex): Remove obsolete comment.
13371 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13372 comment.
13373
13374 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13375
13376 * infrun.h: Forward-declare thread_info.
13377 (set_step_info): Add thread_info parameter, add doc.
13378 * infrun.c (set_step_info): Add thread_info parameter, move doc
13379 to header.
13380 * infrun.c (process_event_stop_test): Pass thread to
13381 set_step_info call.
13382 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13383 set_step_info.
13384 (prepare_one_step): Add thread_info parameter, pass it to
13385 set_step_frame and prepare_one_step (recursive) call.
13386 (step_1): Pass thread to prepare_one_step call.
13387 (step_command_fsm::should_stop): Pass thread to
13388 prepare_one_step.
13389 (until_next_fsm): Pass thread to set_step_frame call.
13390 (finish_command): Pass thread to set_step_info call.
13391
13392 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13393
13394 * windows-tdep.c (windows_solib_create_inferior_hook):
13395 Check if inferior is running.
13396
13397 2020-03-06 Tom de Vries <tdevries@suse.de>
13398
13399 * NEWS: Fix "the the".
13400 * ctfread.c: Same.
13401
13402 2020-03-06 Tom de Vries <tdevries@suse.de>
13403
13404 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13405
13406 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13407
13408 * .dir-locals.el: Add a comment referencing the other copies of
13409 this file.
13410
13411 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13412
13413 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13414 psargs.
13415
13416 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13417
13418 * .gitattributes: New file.
13419
13420 2020-03-04 Tom Tromey <tom@tromey.com>
13421
13422 * symmisc.c (print_symbol_bcache_statistics)
13423 (print_objfile_statistics): Update.
13424 * symfile.c (allocate_symtab): Use intern.
13425 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13426 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13427 macro_cache>: Remove.
13428 <string_cache>: New member.
13429 (struct objfile) <intern>: New methods.
13430 * elfread.c (elf_symtab_read): Use intern.
13431 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13432 (dwarf2_compute_name, dwarf2_physname)
13433 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13434 names.
13435 (guess_partial_die_structure_name): Update.
13436 (partial_die_info::fixup): Intern name.
13437 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13438 name.
13439 (dwarf2_name): Intern name. Update.
13440 * buildsym.c (buildsym_compunit::get_macro_table): Use
13441 string_cache.
13442
13443 2020-03-04 Tom Tromey <tom@tromey.com>
13444
13445 * jit.c (bfd_open_from_target_memory): Make "target" const.
13446 * corefile.c (gnutarget): Now const.
13447 * gdbcore.h (gnutarget): Now const.
13448
13449 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13450
13451 * NEWS: Mention support for WOW64 processes.
13452 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13453 (amd64_windows_segment_register_p): Remove static.
13454 (_initialize_amd64_windows_nat): Update.
13455 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13456 * i386-windows-nat.c (context_offset): Update.
13457 (i386_mappings): Rename and remove static.
13458 (i386_windows_segment_register_p): Remove static.
13459 (_initialize_i386_windows_nat): Update.
13460 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13461 (STATUS_WX86_SINGLE_STEP): New macro.
13462 (EnumProcessModulesEx): New macro.
13463 (Wow64SuspendThread): New macro.
13464 (Wow64GetThreadContext): New macro.
13465 (Wow64SetThreadContext): New macro.
13466 (Wow64GetThreadSelectorEntry): New macro.
13467 (windows_set_context_register_offsets): Add static.
13468 (windows_set_segment_register_p): Likewise.
13469 (windows_add_thread): Adapt for WOW64 processes.
13470 (windows_fetch_one_register): Likewise.
13471 (windows_nat_target::fetch_registers): Likewise.
13472 (windows_store_one_register): Likewise.
13473 (display_selector): Likewise.
13474 (display_selectors): Likewise.
13475 (handle_exception): Likewise.
13476 (windows_continue): Likewise.
13477 (windows_nat_target::resume): Likewise.
13478 (windows_add_all_dlls): Likewise.
13479 (do_initial_windows_stuff): Likewise.
13480 (windows_nat_target::attach): Likewise.
13481 (windows_get_exec_module_filename): Likewise.
13482 (windows_nat_target::create_inferior): Likewise.
13483 (windows_xfer_siginfo): Likewise.
13484 (_initialize_loadable): Initialize Wow64SuspendThread,
13485 Wow64GetThreadContext, Wow64SetThreadContext,
13486 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13487 * windows-nat.h (windows_set_context_register_offsets):
13488 Remove declaration.
13489 (windows_set_segment_register_p): Likewise.
13490 (i386_windows_segment_register_p): Add declaration.
13491 (amd64_windows_segment_register_p): Likewise.
13492
13493 2020-03-04 Luis Machado <luis.machado@linaro.org>
13494
13495 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13496 in "info registers" for AArch64/ARM.
13497
13498 The change caused "info registers" to not print GPR's.
13499
13500 gdb/ChangeLog:
13501
13502 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13503
13504 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13505 when reg->group is empty and reggroup is not.
13506
13507 2020-03-03 Tom Tromey <tromey@adacore.com>
13508
13509 * dwarf2/frame.c (struct dwarf2_frame_cache)
13510 <checked_tailcall_bottom, entry_cfa_sp_offset,
13511 entry_cfa_sp_offset_p>: Remove members.
13512 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13513 (dwarf2_frame_prev_register): Don't call
13514 dwarf2_tailcall_sniffer_first.
13515 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13516 * frame-unwind.c (add_unwinder): New fuction.
13517 (frame_unwind_init): Use it. Add tailcall unwinder.
13518
13519 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13520 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13521
13522 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13523 value should be printed as true.
13524
13525 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13526
13527 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13528 (windows_init_abi): Set and use windows_so_ops.
13529
13530 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13531
13532 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13533 when verifying if dealing with a convenience variable.
13534
13535 2020-03-03 Luis Machado <luis.machado@linaro.org>
13536
13537 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13538
13539 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13540
13541 * infrun.c (gdbarch_supports_displaced_stepping): New.
13542 (use_displaced_stepping): Break up conditions in smaller pieces.
13543 Use gdbarch_supports_displaced_stepping.
13544 (displaced_step_prepare_throw): Use
13545 gdbarch_supports_displaced_stepping.
13546
13547 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * NEWS: Mention new behaviour of the history filename.
13550 * top.c (write_history_p): Add comment.
13551 (show_write_history_p): Add header comment, give a different
13552 message when history writing is on, but the history filename is
13553 empty.
13554 (history_filename): Add comment.
13555 (history_filename_empty): New function.
13556 (show_history_filename): Add header comment, give a different
13557 message when the filename is empty.
13558 (init_history): Compare history_filename against nullptr, and only
13559 read history if the filename is not empty.
13560 (set_history_filename): Add header comment, and only make
13561 non-empty filenames absolute.
13562 (init_main): Make the filename argument to 'set history filename'
13563 optional.
13564
13565 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13566
13567 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13568 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13569 (fetch_fp_register): Update.
13570 (fetch_fp_regs): Update.
13571 (store_fp_register): Update.
13572 (store_fp_regs): Update.
13573 (arm_netbsd_nat_target::read_description): New function.
13574 (fetch_elfcore_registers): Update.
13575
13576 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13577
13578 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13579 general_thread if the stop reply is missing a thread-id.
13580 (remote_target::process_stop_reply): Use the first non-exited
13581 thread if the target didn't pass a thread-id.
13582 * infrun.c (do_target_wait): Move call to
13583 switch_to_inferior_no_thread to ....
13584 (do_target_wait_1): ... here.
13585
13586 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13587
13588 * debuginfod-support.c: Include defs.h first.
13589
13590 2020-02-28 Tom de Vries <tdevries@suse.de>
13591
13592 * symfile.c (set_initial_language): Use default language for lookup.
13593
13594 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13595
13596 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13597 reader variable, pass `this` to read_cutu_die_from_dwo.
13598
13599 2020-02-27 Aaron Merey <amerey@redhat.com>
13600
13601 * source.c (open_source_file): Check for nullptr when computing
13602 srcpath.
13603
13604 2020-02-27 Tom Tromey <tromey@adacore.com>
13605
13606 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13607 member.
13608 (dwarf2_add_field): Don't update nfields.
13609 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13610
13611 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13612
13613 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13614 abs.
13615
13616 2020-02-26 Tom Tromey <tom@tromey.com>
13617
13618 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13619 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13620 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13621 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13622 per_cu_data.
13623
13624 2020-02-26 Tom Tromey <tom@tromey.com>
13625
13626 * dwarf2/index-write.c (psym_index_map): Change type.
13627 (add_address_entry_worker, write_one_signatured_type)
13628 (recursively_count_psymbols, recursively_write_psymbols)
13629 (class debug_names, psyms_seen_size, write_gdbindex)
13630 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13631
13632 2020-02-26 Aaron Merey <amerey@redhat.com>
13633
13634 * Makefile.in: Handle optional debuginfod support.
13635 * NEWS: Update.
13636 * README: Add --with-debuginfod summary.
13637 * config.in: Regenerate.
13638 * configure: Regenerate.
13639 * configure.ac: Handle optional debuginfod support.
13640 * debuginfod-support.c: debuginfod helper functions.
13641 * debuginfod-support.h: Ditto.
13642 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13643 summary.
13644 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13645 when a dwz file cannot be found.
13646 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13647 debuginfo file cannot be found.
13648 * source.c (open_source_file): Query debuginfod servers when a
13649 source file cannot be found.
13650 * top.c (print_gdb_configuration): Include
13651 --{with,without}-debuginfod in the output.
13652
13653 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13654
13655 * thread.c (thr_try_catch_cmd): Print thread name.
13656
13657 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13658
13659 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13660 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13661 dwarf2_fetch_die_type_sect_off): Move to...
13662 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13663 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13664 dwarf2_fetch_die_type_sect_off): ... here.
13665 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13666 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13667 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13668
13669 2020-02-26 Tom de Vries <tdevries@suse.de>
13670
13671 PR gdb/25603
13672 * symfile.c (set_initial_language): Exit-early if
13673 language_mode == language_mode_manual.
13674
13675 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13676
13677 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13678 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13679 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13680
13681 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * gdbtypes.c (create_array_type_with_stride): Handle negative
13684 array strides.
13685 * valarith.c (value_subscripted_rvalue): Likewise.
13686
13687 2020-02-25 Luis Machado <luis.machado@linaro.org>
13688
13689 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13690
13691 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13692
13693 * loc.h (dwarf2_get_die_type): Move to...
13694 * read.h (dwarf2_get_die_type): ... here.
13695 * read.c (dwarf2_get_die_type): Move doc to header.
13696
13697 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13698
13699 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13700 'gnulib/Makefile.in' to the list.
13701
13702 2020-02-24 Tom Tromey <tom@tromey.com>
13703
13704 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13705 Remove.
13706 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13707 XOBNEWVEC.
13708
13709 2020-02-24 Tom Tromey <tom@tromey.com>
13710
13711 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13712 New method.
13713 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13714 (dw2_do_instantiate_symtab, dw2_get_file_names)
13715 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13716
13717 2020-02-24 Tom Tromey <tom@tromey.com>
13718
13719 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13720 make_scoped_restore.
13721 (dwarf2_psymtab::read_symtab): Don't clear
13722 reading_partial_symbols.
13723
13724 2020-02-24 Tom de Vries <tdevries@suse.de>
13725
13726 PR gdb/25592
13727 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13728
13729 2020-02-24 Tom de Vries <tdevries@suse.de>
13730
13731 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13732 commands layout next/prev/regs.
13733
13734 2020-02-22 Tom Tromey <tom@tromey.com>
13735
13736 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13737 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13738
13739 2020-02-22 Tom Tromey <tom@tromey.com>
13740
13741 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13742
13743 2020-02-22 Tom Tromey <tom@tromey.com>
13744
13745 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13746 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13747 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13748 * tui/tui.c (_initialize_tui): Add usage text.
13749
13750 2020-02-22 Tom Tromey <tom@tromey.com>
13751
13752 * tui/tui-win.c (tui_set_focus_command)
13753 (tui_set_win_height_command): Use error_no_arg.
13754 (_initialize_tui_win): Update help text.
13755 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13756
13757 2020-02-22 Tom Tromey <tom@tromey.com>
13758
13759 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13760 * tui/tui-disasm.h (struct tui_disasm_window)
13761 <display_start_addr>: Declare.
13762 * tui/tui-source.h (struct tui_source_window)
13763 <display_start_addr>: Declare.
13764 * tui/tui-winsource.h (struct tui_source_window_base)
13765 <show_source_line, display_start_addr>: New methods.
13766 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13767 Rename and move to protected section.
13768 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13769 (tui_source_window_base::do_erase_source_content): Update.
13770 (tui_source_window_base::show_source_line): Now a method.
13771 (tui_source_window_base::show_source_content)
13772 (tui_source_window_base::tui_source_window_base)
13773 (tui_source_window_base::rerender)
13774 (tui_source_window_base::refill)
13775 (tui_source_window_base::do_scroll_horizontal)
13776 (tui_source_window_base::set_is_exec_point_at)
13777 (tui_source_window_base::update_breakpoint_info)
13778 (tui_source_window_base::update_exec_info): Update.
13779 * tui/tui-source.c (tui_source_window::set_contents)
13780 (tui_source_window::showing_source_p)
13781 (tui_source_window::do_scroll_vertical)
13782 (tui_source_window::location_matches_p)
13783 (tui_source_window::line_is_displayed): Update.
13784 (tui_source_window::display_start_addr): New method.
13785 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13786 (tui_disasm_window::do_scroll_vertical)
13787 (tui_disasm_window::location_matches_p): Update.
13788 (tui_disasm_window::display_start_addr): New method.
13789
13790 2020-02-22 Tom Tromey <tom@tromey.com>
13791
13792 * NEWS: Add entry for gdb.register_window_type.
13793 * tui/tui-layout.h (window_factory): New typedef.
13794 (tui_register_window): Declare.
13795 * tui/tui-layout.c (saved_tui_windows): New global.
13796 (tui_apply_current_layout): Use it.
13797 (tui_register_window): New function.
13798 * python/python.c (do_start_initialization): Call
13799 gdbpy_initialize_tui.
13800 (python_GdbMethods): Add "register_window_type" function.
13801 * python/python-internal.h (gdbpy_register_tui_window)
13802 (gdbpy_initialize_tui): Declare.
13803 * python/py-tui.c: New file.
13804 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13805
13806 2020-02-22 Tom Tromey <tom@tromey.com>
13807
13808 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13809
13810 2020-02-22 Tom Tromey <tom@tromey.com>
13811
13812 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13813 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13814 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13815 (tui_set_win_focus_to): Move from tui-win.c.
13816
13817 2020-02-22 Tom Tromey <tom@tromey.com>
13818
13819 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13820 functions.
13821 (known_window_types): New global.
13822 (tui_get_window_by_name): Reimplement.
13823 (initialize_known_windows): New function.
13824 (validate_window_name): Rewrite.
13825 (_initialize_tui_layout): Call initialize_known_windows.
13826
13827 2020-02-22 Tom Tromey <tom@tromey.com>
13828
13829 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13830 Remove constants.
13831 * tui/tui-winsource.h (struct tui_source_window_base)
13832 <tui_source_window_base>: Remove parameter.
13833 * tui/tui-winsource.c
13834 (tui_source_window_base::tui_source_window_base): Remove
13835 parameter.
13836 (tui_source_window_base::refill): Update.
13837 * tui/tui-stack.h (struct tui_locator_window)
13838 <tui_locator_window>: Update.
13839 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13840 Default the constructor.
13841 * tui/tui-regs.h (struct tui_data_item_window)
13842 <tui_data_item_window>: Default the constructor.
13843 (struct tui_data_window) <tui_data_window>: Likewise.
13844 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13845 Default the constructor.
13846 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13847 Default the constructor.
13848 <type>: Remove.
13849 (struct tui_win_info) <tui_win_info>: Default the constructor.
13850 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13851 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13852 Default the constructor.
13853
13854 2020-02-22 Tom Tromey <tom@tromey.com>
13855
13856 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13857 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13858 * tui/tui-win.c (tui_resize_all): Don't call
13859 tui_delete_invisible_windows.
13860 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13861 done.
13862 (tui_set_layout): Update.
13863 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13864 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13865 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13866
13867 2020-02-22 Tom Tromey <tom@tromey.com>
13868
13869 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13870 correctly.
13871
13872 2020-02-22 Tom Tromey <tom@tromey.com>
13873
13874 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13875
13876 2020-02-22 Tom Tromey <tom@tromey.com>
13877
13878 * tui/tui-winsource.h (struct tui_source_window_iterator)
13879 <inner_iterator>: New etytypedef.
13880 <tui_source_window_iterator>: Take "end" parameter.
13881 <tui_source_window_iterator>: Take iterator.
13882 <operator*, advance>: Update.
13883 <m_iter>: Change type.
13884 <m_end>: New field.
13885 (struct tui_source_windows) <begin, end>: Update.
13886 * tui/tui-layout.c (tui_windows): New global.
13887 (tui_apply_current_layout): Clear tui_windows.
13888 (tui_layout_window::apply): Update tui_windows.
13889 * tui/tui-data.h (tui_windows): Declare.
13890 (all_tui_windows): Now inline function.
13891 (class tui_window_iterator, struct all_tui_windows): Remove.
13892
13893 2020-02-22 Tom Tromey <tom@tromey.com>
13894
13895 PR tui/17850:
13896 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13897 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13898 "height" argument.
13899 (class tui_layout_window) <get_sizes>: Likewise.
13900 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13901 argument.
13902 <get_sizes>: Add "height" argument.
13903 <m_vertical>: New field.
13904 * tui/tui-layout.c (tui_layout_split::clone): Update.
13905 (tui_layout_split::get_sizes): Add "height" argument.
13906 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13907 (tui_new_layout_command): Parse "-horizontal".
13908 (_initialize_tui_layout): Update help string.
13909 (tui_layout_split::specification): Add "-horizontal" when needed.
13910 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13911 argument.
13912 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13913 New methods.
13914
13915 2020-02-22 Tom Tromey <tom@tromey.com>
13916
13917 * tui/tui-layout.h (enum tui_adjust_result): New.
13918 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13919 (class tui_layout_window) <adjust_size>: Return
13920 tui_adjust_result. Rewrite.
13921 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13922 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13923
13924 2020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13927 parameter and return types.
13928 (class tui_layout_base) <specification>: Add "depth".
13929 (class tui_layout_window) <specification>: Add "depth".
13930 (class tui_layout_split) <specification>: Add "depth".
13931 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13932 and return types.
13933 (tui_new_layout_command): Parse sub-layouts.
13934 (_initialize_tui_layout): Update help string.
13935 (tui_layout_window::specification): Add "depth".
13936 (add_layout_command): Update.
13937
13938 2020-02-22 Tom Tromey <tom@tromey.com>
13939
13940 * NEWS: Add "tui new-layout" item.
13941 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13942 Add new-layout command to help text.
13943 (validate_window_name): New function.
13944 (tui_new_layout_command): New function.
13945 (_initialize_tui_layout): Register "new-layout".
13946 (tui_layout_window::specification): New method.
13947 (tui_layout_window::specification): New method.
13948 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13949 method.
13950 (class tui_layout_window) <specification>: New method.
13951 (class tui_layout_split) <specification>: New method.
13952
13953 2020-02-22 Tom Tromey <tom@tromey.com>
13954
13955 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13956 * tui/tui-win.c (window_name_completer): Update comment.
13957 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13958 Declare method.
13959 (class tui_layout_window) <replace_window>: Likewise.
13960 (class tui_layout_split) <replace_window>: Likewise.
13961 (tui_set_layout): Don't declare.
13962 (tui_set_initial_layout): Declare function.
13963 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13964 (asm_regs_layout): New globals.
13965 (tui_current_layout, show_layout): Remove.
13966 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13967 (find_layout, tui_apply_layout): New function.
13968 (layout_completer): Remove.
13969 (tui_next_layout): Reimplement.
13970 (tui_next_layout_command): New function.
13971 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13972 (tui_regs_layout): Reimplement.
13973 (tui_regs_layout_command): New function.
13974 (extract_display_start_addr): Rewrite.
13975 (next_layout, prev_layout): Remove.
13976 (tui_layout_window::replace_window): New method.
13977 (tui_layout_split::replace_window): New method.
13978 (destroy_layout): New function.
13979 (layout_list): New global.
13980 (add_layout_command): New function.
13981 (initialize_layouts): Update.
13982 (tui_layout_command): New function.
13983 (_initialize_tui_layout): Install "layout" commands.
13984 * tui/tui-data.h (enum tui_layout_type): Remove.
13985 (tui_current_layout): Don't declare.
13986
13987 2020-02-22 Tom Tromey <tom@tromey.com>
13988
13989 * tui/tui-regs.c (tui_reg_layout): Remove.
13990 (tui_reg_command): Use tui_regs_layout.
13991 * tui/tui-layout.h (tui_reg_command): Declare.
13992 * tui/tui-layout.c (tui_reg_command): New function.
13993
13994 2020-02-22 Tom Tromey <tom@tromey.com>
13995
13996 * tui/tui.c (tui_rl_delete_other_windows): Call
13997 tui_remove_some_windows.
13998 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13999 Declare method.
14000 (class tui_layout_window) <remove_windows>: New method.
14001 (class tui_layout_split) <remove_windows>: Declare.
14002 (tui_remove_some_windows): Declare.
14003 * tui/tui-layout.c (tui_remove_some_windows): New function.
14004 (tui_layout_split::remove_windows): New method.
14005
14006 2020-02-22 Tom Tromey <tom@tromey.com>
14007
14008 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14009 * tui/tui-layout.h (tui_next_layout): Declare.
14010 * tui/tui-layout.c (tui_next_layout): New function.
14011
14012 2020-02-22 Tom Tromey <tom@tromey.com>
14013
14014 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14015 correct coordinates.
14016
14017 2020-02-22 Tom Tromey <tom@tromey.com>
14018
14019 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14020 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14021 DATA_WIN case.
14022
14023 2020-02-22 Tom Tromey <tom@tromey.com>
14024
14025 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14026 TUI_DISASM_WIN, not tui_win_list.
14027
14028 2020-02-22 Tom Tromey <tom@tromey.com>
14029
14030 * valprint.c (generic_val_print_enum_1)
14031 (val_print_type_code_flags): Style member names.
14032 * rust-lang.c (val_print_struct, rust_print_enum)
14033 (rust_print_struct_def, rust_internal_print_type): Style member
14034 names.
14035 * p-valprint.c (pascal_object_print_value_fields): Style member
14036 names. Only call fprintf_symbol_filtered for static members.
14037 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14038 * f-valprint.c (f_val_print): Style member names.
14039 * f-typeprint.c (f_type_print_base): Style member names.
14040 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14041 call fprintf_symbol_filtered for static members.
14042 (cp_print_class_member): Style member names.
14043 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14044 member names.
14045 * ada-valprint.c (ada_print_scalar): Style enum names.
14046 (ada_val_print_enum): Likewise.
14047 * ada-typeprint.c (print_enum_type): Style enum names.
14048
14049 2020-02-21 Tom Tromey <tom@tromey.com>
14050
14051 * psympriv.h (struct partial_symtab): Update comment.
14052
14053 2020-02-21 Tom Tromey <tromey@adacore.com>
14054
14055 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14056 type is CORE_ADDR.
14057
14058 2020-02-21 Tom de Vries <tdevries@suse.de>
14059
14060 PR gdb/25534
14061 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14062 if dependencies[i]->user != NULL.
14063
14064 2020-02-21 Ali Tamur <tamur@google.com>
14065
14066 * dwarf2/read.c (dwarf2_name): Add null check.
14067
14068 2020-02-20 Tom Tromey <tom@tromey.com>
14069
14070 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14071 ">=", in binary search.
14072 (dwarf2_find_containing_comp_unit): New overload.
14073 (run_test): New self-test.
14074 (_initialize_dwarf2_read): Register new test.
14075
14076 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14077
14078 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14079 * riscv-tdep.h: Likewise.
14080 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14081 rv32-only CSR.
14082 * features/riscv/64bit-csr.xml: Regenerated.
14083
14084 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14085 Tom Tromey <tom@tromey.com>
14086
14087 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14088 of 'fputc_unfiltered'.
14089 (putchar_unfiltered): Call 'fputc_unfiltered'.
14090 (fputc_unfiltered): Call 'fputs_unfiltered'.
14091
14092 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14093
14094 * config.in: Regenerate.
14095 * configure: Regenerate.
14096 * configure.ac: Add --with-python-libdir option.
14097 * main.c: Use WITH_PYTHON_LIBDIR.
14098
14099 2020-02-19 Tom Tromey <tom@tromey.com>
14100
14101 * symtab.c (general_symbol_info::compute_and_set_names): Use
14102 obstack_strndup. Simplify call to symbol_set_demangled_name.
14103
14104 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14105
14106 * dwarf2/read.c (allocate_signatured_type_table,
14107 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14108 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14109 Remove objfile parameter, update all callers.
14110
14111 2020-02-19 Doug Evans <dje@google.com>
14112
14113 PR rust/25535
14114 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14115 rust_enum_variant calculation.
14116
14117 2020-02-19 Tom Tromey <tromey@adacore.com>
14118
14119 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14120
14121 2020-02-19 Tom Tromey <tromey@adacore.com>
14122
14123 * ada-lang.c (cache_symbol): Use obstack_strdup.
14124
14125 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14126
14127 * configure: Regenerate.
14128
14129 2020-02-19 Tom Tromey <tromey@adacore.com>
14130
14131 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14132 NULL check.
14133
14134 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14135
14136 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14137
14138 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14139
14140 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14141 if GDBSERVER is not defined.
14142 (riscv_tdesc_cache): Likewise, also store const target_desc.
14143 (STATIC_IN_GDB): Define.
14144 (riscv_create_target_description): Update declaration with
14145 STATIC_IN_GDB.
14146 (riscv_lookup_target_description): New function, only define if
14147 GDBSERVER is not defined.
14148 * arch/riscv.h (riscv_create_target_description): Declare only
14149 when GDBSERVER is defined.
14150 (riscv_lookup_target_description): New declaration when GDBSERVER
14151 is not defined.
14152 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14153 (riscv_linux_read_features): ...this, and return
14154 riscv_gdbarch_features instead of target_desc.
14155 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14156 (riscv_linux_read_description): Rename to...
14157 (riscv_linux_read_features): ...this.
14158 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14159 Update to use riscv_gdbarch_features and
14160 riscv_lookup_target_description.
14161 * riscv-tdep.c (riscv_find_default_target_description): Use
14162 riscv_lookup_target_description instead of
14163 riscv_create_target_description.
14164
14165 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14166
14167 * valprint.c (generic_val_print_enum_1): When printing a flag
14168 enum with value 0 and there is no enumerator with value 0, print
14169 just "0" instead of "(unknown: 0x0)".
14170
14171 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14172
14173 * valprint.c (generic_val_print_enum_1): Print unknown part of
14174 flag enum in hex.
14175
14176 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14177
14178 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14179 flag enums to contain duplicate enumerators.
14180 * valprint.c (generic_val_print_enum_1): Update comment.
14181
14182 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14183
14184 * dwarf2/read.c: Include "count-one-bits.h".
14185 (update_enumeration_type_from_children): If an enumerator has
14186 multiple bits set, don't treat the enumeration as a "flag enum".
14187 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14188 of flag enums have 0 or 1 bit set.
14189
14190 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14191
14192 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14193 conversion.
14194 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14195 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14196 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14197 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14198 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14199
14200 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14201
14202 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14203
14204 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14205
14206 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14207 displaced_step_closure_up.
14208 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14209 (struct displaced_step_closure_up):
14210 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14211 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14212 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14213 Likewise.
14214 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14215 * gdbarch.c, gdbarch.h: Re-generate.
14216 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14217 displaced_step_closure_up.
14218 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14219 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14220 * infrun.h (displaced_step_closure_up): New type alias.
14221 (struct displaced_step_inferior_state) <step_closure>: Change
14222 type to displaced_step_closure_up.
14223 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14224 displaced_step_closure_up.
14225 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14226
14227 2020-02-14 Tom Tromey <tom@tromey.com>
14228
14229 * minidebug.c (gnu_debug_key): New global.
14230 (find_separate_debug_file_in_section): Use it.
14231
14232 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14233
14234 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14235 std::unique_ptr.
14236 * gdbarch.c: Re-generate.
14237 * gdbarch.h: Re-generate.
14238 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14239 change.
14240 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14241 type to std::unique_ptr.
14242 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14243 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14244 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14245 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14246 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14247 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14248 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14249 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14250 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14251
14252 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14255 std::unique_ptr.
14256 (displaced_step_clear): Rename to...
14257 (displaced_step_reset): ... this. Just call displaced->reset ().
14258 (displaced_step_clear_cleanup): Rename to...
14259 (displaced_step_reset_cleanup): ... this.
14260 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14261 (displaced_step_fixup): Likewise.
14262 (resume_1): Likewise.
14263 (handle_inferior_event): Restore child's memory before calling
14264 displaced_step_fixup on the parent.
14265 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14266 to std::unique_ptr.
14267 <step_closure>: Change type to std::unique_ptr.
14268
14269 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14270
14271 * arm-tdep.c: Include count-one-bits.h.
14272 (cleanup_block_store_pc): Use count_one_bits.
14273 (cleanup_block_load_pc): Use count_one_bits.
14274 (arm_copy_block_xfer): Use count_one_bits.
14275 (thumb2_copy_block_xfer): Use count_one_bits.
14276 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14277 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14278 (thumb_get_next_pcs_raw): Use count_one_bits.
14279 (arm_get_next_pcs_raw): Use count_one_bits_l.
14280 * arch/arm.c (bitcount): Remove.
14281 * arch/arm.h (bitcount): Remove.
14282
14283 2020-02-14 Tom Tromey <tromey@adacore.com>
14284
14285 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14286 Update.
14287 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14288 * dwarf2/loc.c (call_site_find_chain_1): Return
14289 unique_xmalloc_ptr.
14290 (call_site_find_chain): Likewise.
14291
14292 2020-02-14 Richard Biener <rguenther@suse.de>
14293
14294 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14295 on expression with division operators.
14296
14297 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14298
14299 * MAINTAINERS (Write After Approval): Adding myself.
14300
14301 2020-02-12 Tom Tromey <tom@tromey.com>
14302
14303 * event-loop.c (event_data, gdb_event, event_handler_func):
14304 Remove.
14305
14306 2020-02-12 Tom Tromey <tom@tromey.com>
14307
14308 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14309 (dwarf2_frame_objfile_data): Add comment.
14310 (find_comp_unit, set_comp_unit): New functions.
14311 (dwarf2_frame_find_fde): Use find_comp_unit.
14312 (dwarf2_build_frame_info): Use set_comp_unit.
14313
14314 2020-02-12 Tom Tromey <tom@tromey.com>
14315
14316 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14317 (comp_unit): Don't initialize objfile.
14318 (execute_cfa_program): Add text_offset parameter.
14319 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14320 (dwarf2_frame_cache): Update.
14321 (dwarf2_build_frame_info): Don't set "objfile" member.
14322
14323 2020-02-12 Tom Tromey <tom@tromey.com>
14324
14325 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14326 (decode_frame_entry): Likewise.
14327 (dwarf2_build_frame_info): Update.
14328
14329 2020-02-12 Tom Tromey <tom@tromey.com>
14330
14331 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14332 (decode_frame_entry_1): Use the comp_unit obstack.
14333
14334 2020-02-12 Tom Tromey <tom@tromey.com>
14335
14336 * dwarf2/frame.c (struct comp_unit): Add initializers and
14337 constructor.
14338 (dwarf2_frame_objfile_data): Store a comp_unit.
14339 (dwarf2_frame_find_fde): Update.
14340 (dwarf2_build_frame_info): Use "new".
14341
14342 2020-02-12 Tom Tromey <tom@tromey.com>
14343
14344 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14345 (dwarf2_fde_table): Typedef for std::vector.
14346 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14347 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14348 (decode_frame_entry): Update.
14349 (dwarf2_build_frame_info): Use "new".
14350
14351 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14352
14353 * arm-tdep.c (arm_gdbarch_init): Update.
14354 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14355 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14356 have_neon, is_m>: Change to bool.
14357
14358 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14359
14360 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14361
14362 2020-02-12 Tom Tromey <tom@tromey.com>
14363
14364 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14365
14366 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14367
14368 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14369 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14370
14371 2020-02-11 Tom Tromey <tom@tromey.com>
14372
14373 * psymtab.h: Update comment.
14374
14375 2020-02-11 Tom Tromey <tom@tromey.com>
14376
14377 * gdb_obstack.h (struct auto_obstack): Use
14378 DISABLE_COPY_AND_ASSIGN.
14379
14380 2020-02-11 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2/frame.h (struct objfile): Don't forward declare.
14383
14384 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14385
14386 * cris-tdep.c (cris_supply_gregset): Change signature to match
14387 what struct regset expects.
14388 (cris_regset): New struct.
14389 (fetch_core_registers): Remove.
14390 (cris_iterate_over_regset_sections): New function.
14391 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14392 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14393
14394 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14395
14396 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14397 registers.
14398
14399 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14400
14401 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14402
14403 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14404
14405 * configure: Re-generate.
14406
14407 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14408
14409 * configure: Re-generate.
14410
14411 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14412
14413 * acinclude: Update warning.m4 path.
14414 * warning.m4: Move to gdbsupport.
14415
14416 2020-02-11 Tom Tromey <tromey@adacore.com>
14417
14418 * remote.c (remote_console_output): Update.
14419 * printcmd.c (printf_command): Update.
14420 * event-loop.c (gdb_wait_for_event): Update.
14421 * linux-nat.c (sigchld_handler): Update.
14422 * remote-sim.c (gdb_os_write_stdout): Update.
14423 (gdb_os_flush_stdout): Update.
14424 (gdb_os_flush_stderr): Update.
14425 (gdb_os_write_stderr): Update.
14426 * exceptions.c (print_exception): Update.
14427 * remote-fileio.c (remote_fileio_func_read): Update.
14428 (remote_fileio_func_write): Update.
14429 * tui/tui.c (tui_enable): Update.
14430 * tui/tui-interp.c (tui_interp::init): Update.
14431 * utils.c (init_page_info): Update.
14432 (putchar_unfiltered, fputc_unfiltered): Update.
14433 (gdb_flush): Update.
14434 (emit_style_escape): Update.
14435 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14436 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14437 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14438 (stderr_file::write): Update.
14439 (stderr_file::puts): Update.
14440 * ui-file.h (ui_file_isatty, ui_file_write)
14441 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14442 (ui_file_puts): Don't declare.
14443
14444 2020-02-10 Tom de Vries <tdevries@suse.de>
14445
14446 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14447 sentinel to char *.
14448
14449 2020-02-09 Tom de Vries <tdevries@suse.de>
14450
14451 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14452 filename if it matches "<artificial>".
14453
14454 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14455
14456 * windows-tdep.c (struct enum_value_name): New struct.
14457 (create_enum): New function.
14458 (windows_get_siginfo_type): Create and use enum types.
14459
14460 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14461
14462 * NEWS: Mention $_siginfo support for Windows.
14463 * windows-nat.c (handle_exception): Set siginfo_er.
14464 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14465 (windows_xfer_siginfo): New function.
14466 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14467 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14468 (init_windows_gdbarch_data): New function.
14469 (get_windows_gdbarch_data): New function.
14470 (windows_get_siginfo_type): New function.
14471 (windows_init_abi): Register windows_get_siginfo_type.
14472 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14473
14474 2020-02-08 Tom Tromey <tom@tromey.com>
14475
14476 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14477 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14478 <keep>: Declare method.
14479 <m_keep>: Remove member.
14480 <~cutu_reader>: Remove.
14481 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14482 (cutu_reader::cutu_reader): Update.
14483 (cutu_reader::keep): Rename from ~cutu_reader.
14484 (process_psymtab_comp_unit, build_type_psymtabs_1)
14485 (process_skeletonless_type_unit, load_partial_comp_unit)
14486 (load_full_comp_unit, dwarf2_read_addr_index)
14487 (read_signatured_type): Update.
14488
14489 2020-02-08 Tom Tromey <tom@tromey.com>
14490
14491 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14492 "want_partial_unit" parameter.
14493 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14494 Inline check for DW_TAG_partial_unit.
14495 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14496
14497 2020-02-08 Tom Tromey <tom@tromey.com>
14498
14499 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14500 read.c.
14501 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14502 read.c.
14503
14504 2020-02-08 Tom Tromey <tom@tromey.com>
14505
14506 * dwarf2/read.c (read_address): Move to comp-unit.c.
14507 (dwarf2_rnglists_process, dwarf2_ranges_process)
14508 (read_attribute_value, dwarf_decode_lines_1)
14509 (var_decode_location, decode_locdesc): Update.
14510 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14511 read.c. Remove "cu" parameter.
14512 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14513 method.
14514
14515 2020-02-08 Tom Tromey <tom@tromey.com>
14516
14517 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14518 (read_indirect_line_string): Update.
14519 * dwarf2/comp-unit.c (read_offset): Remove.
14520 (read_comp_unit_head): Update.
14521 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14522 method.
14523 (read_offset): Don't declare.
14524
14525 2020-02-08 Tom Tromey <tom@tromey.com>
14526
14527 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14528 * dwarf2/read.c (struct comp_unit_head): Move to
14529 dwarf2/comp-unit.h.
14530 (enum class rcuh_kind): Move to comp-unit.h.
14531 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14532 (read_comp_unit_head, error_check_comp_unit_head)
14533 (read_and_check_comp_unit_head): Move to comp-unit.c.
14534 (read_offset, dwarf_unit_type_name): Likewise.
14535 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14536 (cutu_reader::cutu_reader, read_call_site_scope)
14537 (find_partial_die, follow_die_offset): Update.
14538 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14539
14540 2020-02-08 Tom Tromey <tom@tromey.com>
14541
14542 * dwarf2/read.c (read_offset_1): Move to leb.c.
14543 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14544 (dwarf_decode_macro_bytes): Update.
14545 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14546 * dwarf2/leb.h (read_offset): Declare.
14547
14548 2020-02-08 Tom Tromey <tom@tromey.com>
14549
14550 * dwarf2/read.c (dwarf2_section_size): Remove.
14551 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14552 Update.
14553 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14554
14555 2020-02-08 Tom Tromey <tom@tromey.com>
14556
14557 * dwarf2/read.c (read_initial_length): Move to leb.c.
14558 * dwarf2/leb.h (read_initial_length): Declare.
14559 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14560 handle_nonstd parameter.
14561 * dwarf2/frame.c (read_initial_length): Remove.
14562 (decode_frame_entry_1): Update.
14563
14564 2020-02-08 Tom Tromey <tom@tromey.com>
14565
14566 * dwarf2/loc.c (dwarf2_find_location_expression)
14567 (dwarf_evaluate_loc_desc::get_tls_address)
14568 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14569 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14570 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14571 (dwarf2_compile_property_to_c)
14572 (dwarf2_loc_desc_get_symbol_read_needs)
14573 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14574 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14575 (loclist_describe_location, loclist_tracepoint_var_ref)
14576 (loclist_generate_c_location): Update.
14577 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14578 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14579 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14580 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14581 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14582 (dwarf2_per_cu_data::addr_size)
14583 (dwarf2_per_cu_data::ref_addr_size)
14584 (dwarf2_per_cu_data::text_offset)
14585 (dwarf2_per_cu_data::addr_type): Now methods.
14586 (per_cu_header_read_in): Make per_cu "const".
14587 (dwarf2_version): Remove.
14588 (dwarf2_per_cu_data::int_type): Now a method.
14589 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14590 (set_die_type, read_array_type, read_subrange_index_type)
14591 (read_tag_string_type, read_subrange_type): Update.
14592 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14593 offset_size, ref_addr_size, text_offset, addr_type, version,
14594 objfile, int_type, addr_sized_int_type>: Declare methods.
14595
14596 2020-02-08 Tom Tromey <tom@tromey.com>
14597
14598 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14599 Move earlier.
14600
14601 2020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * dwarf2/read.h (dwarf_line_debug): Declare.
14604 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14605 * dwarf2/read.c: Move line_header code to new files.
14606 (dwarf_line_debug): No longer static.
14607 * dwarf2/line-header.c: New file.
14608 * dwarf2/line-header.h: New file.
14609
14610 2020-02-08 Tom Tromey <tom@tromey.com>
14611
14612 * dwarf2/read.c (struct line_header) <file_full_name,
14613 file_file_name>: Return unique_xmalloc_ptr.
14614 (line_header::file_file_name): Update.
14615 (line_header::file_full_name): Update.
14616 (dw2_get_file_names_reader): Update.
14617 (macro_start_file): Update.
14618
14619 2020-02-08 Tom Tromey <tom@tromey.com>
14620
14621 * dwarf2/read.c (struct line_header) <file_full_name,
14622 file_file_name>: Declare methods.
14623 (dw2_get_file_names_reader): Update.
14624 (file_file_name): Now a method.
14625 (file_full_name): Likewise.
14626 (macro_start_file): Update.
14627
14628 2020-02-08 Tom Tromey <tom@tromey.com>
14629
14630 * dwarf2/read.c (dwarf_always_disassemble)
14631 (show_dwarf_always_disassemble): Move to loc.c.
14632 (_initialize_dwarf2_read): Move "always-disassemble" registration
14633 to loc.c.
14634 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14635 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14636 static.
14637 (show_dwarf_always_disassemble): Move from read.c.
14638 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14639
14640 2020-02-08 Tom Tromey <tom@tromey.com>
14641
14642 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14643 (create_quick_file_names_table): Return htab_up.
14644 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14645 Update.
14646 * dwarf2/read.h (struct dwarf2_per_objfile)
14647 <quick_file_names_table>: Now htab_up.
14648
14649 2020-02-08 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14652
14653 2020-02-08 Tom Tromey <tom@tromey.com>
14654
14655 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14656 Rewrite.
14657 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14658 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14659 (abbrev_table::abbrev_table): No longer inline.
14660 (ABBREV_HASH_SIZE): Remove.
14661 (abbrev_table::m_abbrevs): Now an htab_up.
14662
14663 2020-02-08 Tom Tromey <tom@tromey.com>
14664
14665 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14666 (cutu_reader): Update.
14667 (build_type_psymtabs_1): Update.
14668 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14669 (abbrev_table::alloc_abbrev): Update.
14670 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14671 (abbrev_table::read): New static method, renamed from
14672 abbrev_table_read_table.
14673 (abbrev_table::alloc_abbrev)
14674 (abbrev_table::add_abbrev): Now private.
14675 (abbrev_table::abbrev_table): Now private.
14676 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14677
14678 2020-02-08 Tom Tromey <tom@tromey.com>
14679
14680 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14681 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14682 htab_up.
14683
14684 2020-02-08 Tom Tromey <tom@tromey.com>
14685
14686 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14687 htab_up.
14688 (lookup_dwo_unit_in_dwp): Update.
14689 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14690 on obstack.
14691
14692 2020-02-08 Tom Tromey <tom@tromey.com>
14693
14694 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14695 obstack.
14696
14697 2020-02-08 Tom Tromey <tom@tromey.com>
14698
14699 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14700 line_header_hash.
14701 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14702 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14703 Change type to htab_up.
14704
14705 2020-02-08 Tom Tromey <tom@tromey.com>
14706
14707 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14708 htab_up. Don't allocate on obstack.
14709 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14710 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14711 Change type to htab_up.
14712
14713 2020-02-08 Tom Tromey <tom@tromey.com>
14714
14715 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14716 Change type to htab_up.
14717 * dwarf2/read.c (create_signatured_type_table_from_index)
14718 (create_signatured_type_table_from_debug_names)
14719 (create_all_type_units, add_type_unit)
14720 (lookup_dwo_signatured_type, lookup_signatured_type)
14721 (process_skeletonless_type_unit): Update.
14722 (create_debug_type_hash_table, create_debug_types_hash_table):
14723 Change type of types_htab.
14724 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14725 htab_up. Don't allocate on obstack.
14726 (create_cus_hash_table): Change type of cus_htab parameter.
14727 (struct dwo_file) <cus, tus>: Now htab_up.
14728 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14729 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14730 (queue_and_load_all_dwo_tus): Update.
14731 * dwarf2/index-write.c (write_gdbindex): Update.
14732 (write_debug_names): Update.
14733
14734 2020-02-08 Tom Tromey <tom@tromey.com>
14735
14736 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14737 dwarf2/read.c. Remove "next" member. Add constructor ntad
14738 destructor.
14739 (struct dwarf2_per_objfile) <queue>: New member.
14740 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14741 dwarf2/read.h.
14742 (dwarf2_queue, dwarf2_queue_tail): Remove.
14743 (class dwarf2_queue_guard): Add parameter to constructor. Use
14744 DISABLE_COPY_AND_ASSIGN.
14745 <m_per_objfile>: New member.
14746 <~dwarf2_queue_guard>: Rewrite.
14747 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14748 Update.
14749 (~dwarf2_queue_item): New.
14750
14751 2020-02-08 Tom Tromey <tom@tromey.com>
14752
14753 * dwarf2/read.c (struct die_info) <has_children>: New member.
14754 (dw2_get_file_names_reader): Remove has_children.
14755 (dw2_get_file_names): Update.
14756 (read_cutu_die_from_dwo): Remove has_children.
14757 (cutu_reader::init_tu_and_read_dwo_dies)
14758 (cutu_reader::cutu_reader): Update.
14759 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14760 Remove has_children.
14761 (build_type_psymtabs_1, process_skeletonless_type_unit)
14762 (load_partial_comp_unit, load_full_comp_unit): Update.
14763 (create_dwo_cu_reader): Remove has_children.
14764 (create_cus_hash_table, read_die_and_children): Update.
14765 (read_full_die_1,read_full_die): Remove has_children.
14766 (read_signatured_type): Update.
14767 (class cutu_reader) <has_children>: Remove.
14768
14769 2020-02-08 Tom Tromey <tom@tromey.com>
14770
14771 * dwarf2/expr.c: Rename from dwarf2expr.c.
14772 * dwarf2/expr.h: Rename from dwarf2expr.h.
14773 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14774 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14775 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14776 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14777 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14778 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14779 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14780 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14781 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14782 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14783 * dwarf2/loc.c: Rename from dwarf2loc.c.
14784 * dwarf2/loc.h: Rename from dwarf2loc.h.
14785 * dwarf2/read.c: Rename from dwarf2read.c.
14786 * dwarf2/read.h: Rename from dwarf2read.h.
14787 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14788 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14789 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14790 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14791 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14792 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14793 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14794 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14795 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14796 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14797 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14798 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14799 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14800 Update.
14801 * Makefile.in (COMMON_SFILES): Update.
14802 (HFILES_NO_SRCDIR): Update.
14803
14804 2020-02-08 Tom Tromey <tom@tromey.com>
14805
14806 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14807 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14808
14809 2020-02-08 Tom Tromey <tom@tromey.com>
14810
14811 * dwarf2read.h (struct die_info): Don't declare.
14812
14813 2020-02-08 Tom Tromey <tom@tromey.com>
14814
14815 * dwarf2read.h (die_info_ptr): Remove typedef.
14816
14817 2020-02-08 Tom Tromey <tom@tromey.com>
14818
14819 * dwarf2read.c (read_call_site_scope)
14820 (handle_data_member_location, dwarf2_add_member_fn)
14821 (mark_common_block_symbol_computed, read_common_block)
14822 (attr_to_dynamic_prop, partial_die_info::read)
14823 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14824 (dwarf2_symbol_mark_computed, set_die_type): Update.
14825 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14826 method.
14827 (attr_form_is_block): Don't declare.
14828 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14829
14830 2020-02-08 Tom Tromey <tom@tromey.com>
14831
14832 * dwarf2read.c (dwarf2_find_base_address, )
14833 (read_call_site_scope, rust_containing_type)
14834 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14835 (handle_data_member_location, dwarf2_add_member_fn)
14836 (get_alignment, read_structure_type, process_structure_scope)
14837 (mark_common_block_symbol_computed, read_common_block)
14838 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14839 (partial_die_info::read, read_attribute_value, new_symbol)
14840 (lookup_die_type, dwarf2_get_ref_die_offset)
14841 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14842 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14843 (dwarf2_symbol_mark_computed): Update.
14844 * dwarf2/attribute.h (struct attribute) <value_as_address,
14845 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14846 methods.
14847 (value_as_address, attr_form_is_section_offset)
14848 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14849 * dwarf2/attribute.c (attribute::value_as_address)
14850 (attribute::form_is_section_offset, attribute::form_is_constant)
14851 (attribute::form_is_ref): Now methods.
14852
14853 2020-02-08 Tom Tromey <tom@tromey.com>
14854
14855 * dwarf2read.c (struct attribute, DW_STRING)
14856 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14857 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14858 (attr_form_is_block, attr_form_is_section_offset)
14859 (attr_form_is_constant, attr_form_is_ref): Move.
14860 * dwarf2/attribute.h: New file.
14861 * dwarf2/attribute.c: New file, from dwarf2read.c.
14862 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14863
14864 2020-02-08 Tom Tromey <tom@tromey.com>
14865
14866 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14867 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14868 Move.
14869 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14870 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14871 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14872 abbrev.c.
14873 * dwarf2/abbrev.h: New file.
14874 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14875 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14876
14877 2020-02-08 Tom Tromey <tom@tromey.com>
14878
14879 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14880 (dwarf2_section_size, dwarf2_get_section_info)
14881 (create_signatured_type_table_from_debug_names)
14882 (create_addrmap_from_aranges, read_debug_names_from_section)
14883 (get_gdb_index_contents_from_section, read_comp_unit_head)
14884 (error_check_comp_unit_head, read_abbrev_offset)
14885 (create_debug_type_hash_table, init_cu_die_reader)
14886 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14887 (read_comp_units_from_section, create_cus_hash_table)
14888 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14889 (create_dwp_v2_section, dwarf2_rnglists_process)
14890 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14891 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14892 (read_indirect_string_from_dwz, read_addr_index_1)
14893 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14894 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14895 (fill_in_loclist_baton): Update.
14896 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14897 get_containing_section, get_bfd_owner, get_bfd_section,
14898 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14899 (dwarf2_read_section, get_section_name, get_section_file_name)
14900 (get_containing_section, get_section_bfd_owner)
14901 (get_section_bfd_section, get_section_name, get_section_file_name)
14902 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14903 declare.
14904 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14905 (dwarf2_section_info::get_bfd_owner)
14906 (dwarf2_section_info::get_bfd_section)
14907 (dwarf2_section_info::get_name)
14908 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14909 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14910 (dwarf2_section_info::read): Now methods.
14911 * dwarf-index-write.c (class debug_names): Update.
14912
14913 2020-02-08 Tom Tromey <tom@tromey.com>
14914
14915 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14916 Move to dwarf2/section.h.
14917 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14918 (get_section_bfd_section, get_section_name)
14919 (get_section_file_name, get_section_id, get_section_flags)
14920 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14921 dwarf2/section.c.
14922 * dwarf2/section.h: New file.
14923 * dwarf2/section.c: New file, from dwarf2read.c.
14924 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14925
14926 2020-02-08 Tom Tromey <tom@tromey.com>
14927
14928 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14929 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14930 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14931 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14932 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14933 * dwarf2/leb.h: New file, from dwarf2read.c.
14934 * dwarf2/leb.c: New file, from dwarf2read.c.
14935 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14936 Remove.
14937 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14938 (COMMON_SFILES): Add dwarf2/leb.c.
14939
14940 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14941
14942 GDB 9.1 released.
14943
14944 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14945
14946 PR gdb/25190:
14947 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14948 * gdb/remote.c (remote_console_output): Update.
14949 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14950 (ui_file_puts): ...this.
14951 * gdb/ui-file.h (ui_file_puts): Add declaration.
14952 * gdb/utils.c (emit_style_escape): Update.
14953 (flush_wrap_buffer): Update.
14954 (fputs_maybe_filtered): Update.
14955 (fputs_unfiltered): Add function.
14956
14957 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14958
14959 * gdb/event-loop.c (gdb_wait_for_event): Update.
14960 * gdb/printcmd.c (printf_command): Update.
14961 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14962 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14963 (gdb_os_flush_stderr): Update.
14964 * gdb/remote.c (remote_console_output): Update.
14965 * gdb/ui-file.c (gdb_flush): Rename to...
14966 (ui_file_flush): ...this.
14967 (stderr_file::write): Update.
14968 (stderr_file::puts): Update.
14969 * gdb/ui-file.h (gdb_flush): Rename to...
14970 (ui_file_flush): ...this.
14971 * gdb/utils.c (gdb_flush): Add function.
14972 * gdb/utils.h (gdb_flush): Add declaration.
14973
14974 2020-02-07 Tom Tromey <tromey@adacore.com>
14975
14976 PR breakpoints/24915:
14977 * source.c (find_and_open_source): Do not check basenames_may_differ.
14978
14979 2020-02-07 Tom Tromey <tom@tromey.com>
14980
14981 * README: Update gdbserver documentation.
14982 * gdbserver: Move to top level.
14983 * configure.tgt (build_gdbserver): Remove.
14984 * configure.ac: Remove --enable-gdbserver.
14985 * configure: Rebuild.
14986 * Makefile.in (distclean): Don't mention gdbserver.
14987
14988 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14989
14990 * source-cache.c (source_cache::ensure): Surround
14991 get_plain_source_lines with a try/catch.
14992 (source_cache::get_line_charpos): Get rid of try/catch
14993 and only check for the return value of "ensure".
14994 * tui/tui-source.c (tui_source_window::set_contents):
14995 Simplify "nlines" calculation.
14996
14997 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14998
14999 * MAINTAINERS (Write After Approval): Add myself.
15000
15001 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15002
15003 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15004 function call.
15005
15006 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15007
15008 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15009
15010 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15011
15012 * nat/riscv-linux-tdesc.h: New file.
15013 * nat/riscv-linux-tdesc.c: New file, taking code from...
15014 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15015 ... here.
15016 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15017 NATDEPFILES.
15018
15019 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15020
15021 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15022 we don't set the fake simulator ptid to the null_ptid.
15023
15024 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15025
15026 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15027 * gdbthread.h (class thread_info) <resumed>: Likewise.
15028 * infrun.c (resume_1): Likewise.
15029 (proceed): Likewise.
15030 (infrun_thread_stop_requested): Likewise.
15031 (stop_all_threads): Likewise.
15032 (handle_inferior_event): Likewise.
15033 (restart_threads): Likewise.
15034 (finish_step_over): Likewise.
15035 (keep_going_stepped_thread): Likewise.
15036 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15037 (linux_handle_extended_wait): Likewise.
15038 * record-btrace.c (get_thread_current_frame_id): Likewise.
15039 * record-full.c (record_full_wait_1): Likewise.
15040 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15041 * target.c (target_resume): Likewise.
15042 * thread.c (set_running_thread): Likewise.
15043
15044 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15045
15046 * f-valprint.c (f77_print_array_1): Changed datatype of index
15047 variable to LONGEST from int to enable it to contain bound
15048 values correctly.
15049
15050 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15051
15052 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15053 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15054 offsets according to FLEN determined.
15055 (riscv_linux_nat_target::read_description): Determine FLEN
15056 dynamically.
15057 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15058 according to FLEN determined.
15059 (riscv_linux_nat_target::store_registers): Likewise.
15060
15061 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15062
15063 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15064 when reg->group is empty and reggroup is not.
15065
15066 2020-01-31 Tom Tromey <tromey@adacore.com>
15067
15068 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15069 Call beneath target's mourn_inferior after unpushing.
15070
15071 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15072
15073 PR tui/9765
15074 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15075 have enough lines to fill the screen, still return the lowest
15076 address we found.
15077
15078 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15079
15080 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15081 '-', '<', and '>' commands.
15082
15083 2020-01-29 Pedro Alves <palves@redhat.com>
15084 Sergio Durigan Junior <sergiodj@redhat.com>
15085
15086 * infcmd.c (construct_inferior_arguments): Assert that
15087 'argc' is greater than 0.
15088
15089 2020-01-29 Luis Machado <luis.machado@linaro.org>
15090
15091 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15092 (BRK_INSN_MASK): Define to 0xd4200000.
15093 (aarch64_program_breakpoint_here_p): New function.
15094 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15095 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15096 breakpoint.c.
15097 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15098 breakpoint.h
15099 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15100 call gdbarch_program_breakpoint_here_p.
15101 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15102 default_program_breakpoint_here_p, changed return type to bool and
15103 simplified.
15104 * breakpoint.h (program_breakpoint_here): Moved prototype to
15105 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15106 return type to bool.
15107 * gdbarch.c: Regenerate.
15108 * gdbarch.h: Regenerate.
15109 * gdbarch.sh (program_breakpoint_here_p): New method.
15110 * infrun.c (handle_signal_stop): Call
15111 gdbarch_program_breakpoint_here_p.
15112
15113 2020-01-26 Tom Tromey <tom@tromey.com>
15114
15115 * ctfread.c (struct ctf_fp_info): Reindent.
15116 (_initialize_ctfread): Remove.
15117
15118 2020-01-26 Tom Tromey <tom@tromey.com>
15119
15120 * psymtab.c (partial_map_expand_apply)
15121 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15122 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15123 (psym_print_stats, psym_expand_symtabs_for_function)
15124 (psym_map_symbol_filenames, psym_map_matching_symbols)
15125 (psym_expand_symtabs_matching)
15126 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15127 (maintenance_check_psymtabs): Use new methods.
15128 * psympriv.h (struct partial_symtab) <readin_p,
15129 get_compunit_symtab>: New methods.
15130 <readin, compunit_symtab>: Remove members.
15131 (struct standard_psymtab): New.
15132 (struct legacy_psymtab): Derive from standard_psymtab.
15133 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15134 standard_psymtab.
15135 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15136
15137 2020-01-26 Tom Tromey <tom@tromey.com>
15138
15139 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15140 read_dependencies. Add assert.
15141 * psymtab.c (partial_symtab::read_dependencies): New method.
15142 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15143 method.
15144 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15145 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15146 read_dependencies.
15147 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15148 Add assert.
15149
15150 2020-01-26 Tom Tromey <tom@tromey.com>
15151
15152 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15153 Call expand_psymtab.
15154 (xcoff_read_symtab): Call expand_psymtab.
15155 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15156 legacy_expand_psymtab.
15157 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15158 method.
15159 (struct legacy_psymtab) <expand_psymtab>: Implement.
15160 <legacy_expand_psymtab>: New member.
15161 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15162 (parse_partial_symbols): Set legacy_expand_psymtab.
15163 (psymtab_to_symtab_1): Change argument order. Call
15164 expand_psymtab.
15165 (new_psymtab): Set legacy_expand_psymtab.
15166 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15167 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15168 expand_psymtab.
15169 (dwarf2_psymtab::expand_psymtab): Rename from
15170 psymtab_to_symtab_1. Call expand_psymtab.
15171 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15172 (dbx_end_psymtab): Likewise.
15173 (dbx_psymtab_to_symtab_1): Change argument order. Call
15174 expand_psymtab.
15175 (dbx_read_symtab): Call expand_psymtab.
15176 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15177 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15178 (ctf_psymtab::read_symtab): Call expand_psymtab.
15179
15180 2020-01-26 Tom Tromey <tom@tromey.com>
15181
15182 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15183 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15184 messages.
15185 * mdebugread.c (mdebug_read_symtab): Remove prints.
15186 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15187 assert.
15188 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15189
15190 2020-01-26 Tom Tromey <tom@tromey.com>
15191
15192 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15193 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15194 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15195 legacy_symtab.
15196 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15197 * psymtab.c (psymtab_to_symtab): Call method.
15198 (dump_psymtab): Update.
15199 * psympriv.h (struct partial_symtab): Add virtual destructor.
15200 <read_symtab>: New method.
15201 (struct legacy_symtab): New.
15202 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15203 (struct pst_map) <pst>: Now a legacy_psymtab.
15204 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15205 (new_psymtab): Use legacy_psymtab.
15206 * dwarf2read.h (struct dwarf2_psymtab): New.
15207 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15208 * dwarf2read.c (dwarf2_create_include_psymtab)
15209 (dwarf2_build_include_psymtabs, create_type_unit_group)
15210 (create_partial_symtab, process_psymtab_comp_unit_reader)
15211 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15212 (set_partial_user): Use dwarf2_psymtab.
15213 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15214 (psymtab_to_symtab_1, process_full_comp_unit)
15215 (process_full_type_unit, dwarf2_ranges_read)
15216 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15217 (dwarf_decode_lines): Use dwarf2_psymtab.
15218 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15219 (add_address_entry_worker, write_one_signatured_type)
15220 (recursively_count_psymbols, recursively_write_psymbols)
15221 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15222 (write_debug_names): Likewise.
15223 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15224 <pst>: Now a legacy_psymtab.
15225 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15226 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15227 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15228 * ctfread.c (struct ctf_psymtab): New.
15229 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15230 ctf_psymtab.
15231 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15232 (create_partial_symtab): Return a ctf_psymtab.
15233 (scan_partial_symbols): Update.
15234
15235 2020-01-26 Tom Tromey <tom@tromey.com>
15236
15237 * xcoffread.c (xcoff_start_psymtab): Use new.
15238 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15239 renamed from start_psymtab_common.
15240 * psympriv.h (struct partial_symtab): Add new constructor.
15241 (start_psymtab_common): Don't declare.
15242 * mdebugread.c (parse_partial_symbols): Use new.
15243 * dwarf2read.c (create_partial_symtab): Use new.
15244 * dbxread.c (start_psymtab): Use new.
15245 * ctfread.c (create_partial_symtab): Use new.
15246
15247 2020-01-26 Tom Tromey <tom@tromey.com>
15248
15249 * xcoffread.c (xcoff_end_psymtab): Use new.
15250 * psymtab.c (start_psymtab_common): Use new.
15251 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15252 Update.
15253 * psympriv.h (struct partial_symtab): Add parameters to
15254 constructor. Don't inline.
15255 (allocate_psymtab): Don't declare.
15256 * mdebugread.c (new_psymtab): Use new.
15257 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15258 * dbxread.c (dbx_end_psymtab): Use new.
15259
15260 2020-01-26 Tom Tromey <tom@tromey.com>
15261
15262 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15263 allocate_psymtab. Update documentation.
15264 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15265 allocate_psymtab. Do not use new.
15266 (allocate_psymtab): Use new. Update.
15267
15268 2020-01-26 Tom Tromey <tom@tromey.com>
15269
15270 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15271 * psymtab.c (psym_print_stats): Update.
15272 * psympriv.h (struct partial_symtab) <readin,
15273 psymtabs_addrmap_supported, anonymous>: Now bool.
15274 * mdebugread.c (psymtab_to_symtab_1): Update.
15275 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15276 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15277 (process_full_comp_unit, process_full_type_unit): Update.
15278 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15279 * ctfread.c (psymtab_to_symtab): Update.
15280
15281 2020-01-26 Tom Tromey <tom@tromey.com>
15282
15283 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15284 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15285 * psymtab.c (psymtab_storage): Delete psymtabs.
15286 (psymtab_storage::allocate_psymtab): Use new.
15287 (psymtab_storage::discard_psymtab): Use delete.
15288 * psympriv.h (struct partial_symtab): Add constructor and
15289 initializers.
15290
15291 2020-01-26 Tom Tromey <tom@tromey.com>
15292
15293 * machoread.c: Do not include psympriv.h.
15294
15295 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15296
15297 * NEWS: Mention the new option and the set/show commands.
15298
15299 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15300
15301 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15302 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15303 (validate_exec_file): New variables, enums, functions.
15304 (exec_file_locate_attach, print_section_info): Style the filenames.
15305 (_initialize_exec): Install show_exec_file_mismatch_command and
15306 set_exec_file_mismatch_command.
15307 * gdbcore.h (validate_exec_file): Declare.
15308 * infcmd.c (attach_command): Call validate_exec_file.
15309 * remote.c ( remote_target::remote_add_inferior): Likewise.
15310
15311 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15312
15313 * frame.c (find_frame_sal): Move call to get_next_frame into more
15314 inner scope.
15315 * inline-frame.c (inilne_state) <inline_state>: Update argument
15316 types.
15317 (inilne_state) <skipped_symbol>: Rename to...
15318 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15319 (skip_inline_frames): Build vector of skipped symbols and use this
15320 to reate the inline_state.
15321 (inline_skipped_symbol): Add a comment and some assertions, fetch
15322 skipped symbol from the list.
15323
15324 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15325
15326 * buildsym.c (lte_is_less_than): Delete.
15327 (buildsym_compunit::end_symtab_with_blockvector): Create local
15328 lambda function to sort line table entries, and use
15329 std::stable_sort instead of std::sort.
15330 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15331 markers when looking for a previous line.
15332
15333 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15334
15335 * dwarf2read.c (lnp_state_machine::record_line): Include
15336 end_sequence parameter in debug print out. Record the line if we
15337 are at an end_sequence marker even if it's not the start of a
15338 statement.
15339 * symmisc.c (maintenance_print_one_line_table): Print end of
15340 sequence markers with 'END' not '0'.
15341
15342 2020-01-24 Pedro Alves <palves@redhat.com>
15343
15344 PR gdb/25410
15345 * thread.c (scoped_restore_current_thread::restore): Use
15346 switch_to_inferior_no_thread.
15347 * exec.c: Include "progspace-and-thread.h".
15348 (add_target_sections, remove_target_sections):
15349 scoped_restore_current_pspace_and_thread instead of
15350 scoped_restore_current_thread.
15351 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15352 and aspace to the inferior before calling clone_program_space.
15353 Remove stale comment.
15354
15355 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15356
15357 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15358 (arm_netbsd_nat_target::fetch_registers): ...this.
15359 (arm_nbsd_nat_target::store_registers): Rename to...
15360 (arm_netbsd_nat_target::store_registers): ...this.
15361
15362 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15363
15364 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15365 register_t.
15366
15367 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15368
15369 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15370 Update comment.
15371 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15372 Likewise.
15373 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15374 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15375 the correct replacement (iterate_over_regset_sections).
15376 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15377 Update comment.
15378
15379 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15380
15381 PR gdb/23718
15382 * gdb/python/python.c (execute_gdb_command): Call
15383 async_enable_stdin in catch block.
15384
15385 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15386
15387 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15388 SWITCH_THRU_ALL_UIS.
15389
15390 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15391
15392 PR tui/9765
15393 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15394 comment, add extra parameter, and update to store previous symbol
15395 when appropriate.
15396 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15397 add extra parameter.
15398 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15399 remove unneeded parameter, add try/catch around gdb_print_insn,
15400 rewrite to add items to asm_lines vector.
15401 (tui_find_backward_disassembly_start_address): New function.
15402 (tui_find_disassembly_address): Updated throughout.
15403 (tui_disasm_window::set_contents): Update for changes to
15404 tui_disassemble.
15405 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15406 number of lines to scroll.
15407
15408 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15409
15410 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15411 (SECT_OFF_DATA): Likewise.
15412 (SECT_OFF_RODATA): Likewise.
15413 (SECT_OFF_TEXT): Likewise.
15414 (SECT_OFF_BSS): Likewise.
15415 (struct objfile) <text_section_offset, data_section_offset>: New
15416 methods.
15417 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15418 objfile::text_section_offset.
15419 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15420 * coffread.c (coff_symtab_read): Likewise.
15421 (enter_linenos): Likewise.
15422 (process_coff_symbol): Likewise.
15423 * ctfread.c (get_objfile_text_range): Likewise.
15424 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15425 Use objfile::data_section_offset.
15426 * dwarf2-frame.c (execute_cfa_program): Use
15427 objfile::text_section_offset.
15428 (dwarf2_frame_find_fde): Likewise.
15429 * dwarf2read.c (create_addrmap_from_index): Likewise.
15430 (create_addrmap_from_aranges): Likewise.
15431 (dw2_find_pc_sect_compunit_symtab): Likewise.
15432 (process_psymtab_comp_unit_reader): Likewise.
15433 (add_partial_symbol): Likewise.
15434 (add_partial_subprogram): Likewise.
15435 (process_full_comp_unit): Likewise.
15436 (read_file_scope): Likewise.
15437 (read_func_scope): Likewise.
15438 (read_lexical_block_scope): Likewise.
15439 (read_call_site_scope): Likewise.
15440 (dwarf2_rnglists_process): Likewise.
15441 (dwarf2_ranges_process): Likewise.
15442 (dwarf2_ranges_read): Likewise.
15443 (dwarf_decode_lines_1): Likewise.
15444 (new_symbol): Likewise.
15445 (dwarf2_fetch_die_loc_sect_off): Likewise.
15446 (dwarf2_per_cu_text_offset): Likewise.
15447 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15448 * hppa-tdep.c (read_unwind_info): Likewise.
15449 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15450 * psympriv.h (struct partial_symtab): Likewise.
15451 * psymtab.c (find_pc_sect_psymtab): Likewise.
15452 * solib-svr4.c (enable_break): Likewise.
15453 * stap-probe.c (relocate_address): Use
15454 objfile::data_section_offset.
15455 * xcoffread.c (enter_line_range): Use
15456 objfile::text_section_offset.
15457 (read_xcoff_symtab): Likewise.
15458
15459 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15460
15461 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15462 declaration to narrower scopes.
15463
15464 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15465
15466 * darwin-nat.h (struct darwin_exception_msg, enum
15467 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15468 Move up.
15469 (class darwin_nat_target) <wait_1, check_new_threads,
15470 decode_exception_message, decode_message, stop_inferior,
15471 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15472 * darwin-nat.c (darwin_check_new_threads): Rename to...
15473 (darwin_nat_target::check_new_threads): ... this.
15474 (darwin_suspend_inferior_it): Remove.
15475 (darwin_decode_exception_message): Rename to...
15476 (darwin_nat_target::decode_exception_message): ... this.
15477 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15478 (darwin_decode_message): Rename to...
15479 (darwin_nat_target::decode_message): ... this.
15480 (cancel_breakpoint): Rename to...
15481 (darwin_nat_target::cancel_breakpoint): ... this.
15482 (darwin_wait): Rename to...
15483 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15484 instead of iterate_over_inferiors.
15485 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15486 (darwin_stop_inferior): Rename to...
15487 (darwin_nat_target::stop_inferior): ... this.
15488 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15489 (darwin_init_thread_list): Rename to...
15490 (darwin_nat_target::init_thread_list): ... this.
15491 (darwin_ptrace_him): Rename to...
15492 (darwin_nat_target::ptrace_him): ... this.
15493 (darwin_nat_target::create_inferior): Pass lambda function to
15494 fork_inferior.
15495 (darwin_nat_target::detach): Call stop_inferior instead of
15496 darwin_stop_inferior.
15497 * fork-inferior.h (fork_inferior): Change init_trace_fun
15498 parameter to gdb::function_view.
15499 * fork-inferior.c (fork_inferior): Likewise.
15500
15501 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15502
15503 * i386-cygwin-tdep.c (core_process_module_section): Update.
15504 * windows-nat.c (struct lm_info_windows): Add text_offset.
15505 (windows_xfer_shared_libraries): Update.
15506 * windows-tdep.c (windows_xfer_shared_library):
15507 Add text_offset_cached argument.
15508 * windows-tdep.h (windows_xfer_shared_library): Update.
15509
15510 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15511
15512 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15513
15514 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15515
15516 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15517 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15518 replace with range-based for.
15519 (gdbsim_interrupt_inferior): Remove.
15520 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15521 with a range-based for. Inline code from
15522 gdbsim_interrupt_inferior.
15523
15524 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15525
15526 * infrun.c (proceed): Fix indentation.
15527
15528 2020-01-21 Tom Tromey <tromey@adacore.com>
15529
15530 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15531 * python/python.c (python_extension_ops): Update.
15532 (gdbpy_colorize): New function.
15533 * python/lib/gdb/__init__.py (colorize): New function.
15534 * extension.h (ext_lang_colorize): Declare.
15535 * extension.c (ext_lang_colorize): New function.
15536 * extension-priv.h (struct extension_language_ops) <colorize>: New
15537 member.
15538 * cli/cli-style.c (_initialize_cli_style): Update help text.
15539
15540 2020-01-21 Luis Machado <luis.machado@linaro.org>
15541
15542 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15543 <cond>: Change type to bool.
15544 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15545 (aarch64_displaced_step_cb): Likewise.
15546 (aarch64_displaced_step_tb): Likewise.
15547
15548 2020-01-21 Luis Machado <luis.machado@linaro.org>
15549
15550 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15551 output.
15552
15553 2020-01-21 Luis Machado <luis.machado@linaro.org>
15554
15555 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15556 <pc_adjust>: Adjust the documentation.
15557 (aarch64_displaced_step_fixup): Check if PC really moved before
15558 adjusting it.
15559
15560 2020-01-19 Tom Tromey <tom@tromey.com>
15561
15562 * disasm.c (~gdb_disassembler): New destructor.
15563 (gdb_buffered_insn_length): Call disassemble_free_target.
15564 * disasm.h (class gdb_disassembler): Declare destructor. Use
15565 DISABLE_COPY_AND_ASSIGN.
15566
15567 2020-01-19 Tom Tromey <tom@tromey.com>
15568
15569 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15570 (die_reader_func_ftype): Remove.
15571 (cutu_reader): New class.
15572 (dw2_get_file_names_reader): Remove "data" parameter.
15573 (dw2_get_file_names): Use cutu_reader.
15574 (create_debug_type_hash_table): Update.
15575 (read_cutu_die_from_dwo): Update comment.
15576 (lookup_dwo_unit): Add dwo_name parameter.
15577 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15578 die_reader_func_ftype and data parameters.
15579 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15580 Remove die_reader_func_ftype and data parameters.
15581 (~cutu_reader): New; from init_cutu_and_read_dies.
15582 (cutu_reader::cutu_reader): Rename from
15583 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15584 and data parameters.
15585 (init_cutu_and_read_dies_simple): Remove.
15586 (struct process_psymtab_comp_unit_data): Remove.
15587 (process_psymtab_comp_unit_reader): Remove data parameter; add
15588 want_partial_unit and pretend_language parameters.
15589 (process_psymtab_comp_unit): Use cutu_reader.
15590 (build_type_psymtabs_reader): Remove data parameter.
15591 (build_type_psymtabs_1): Use cutu_reader.
15592 (process_skeletonless_type_unit): Likewise.
15593 (load_partial_comp_unit_reader): Remove.
15594 (load_partial_comp_unit): Use cutu_reader.
15595 (load_full_comp_unit_reader): Remove.
15596 (load_full_comp_unit): Use cutu_reader.
15597 (struct create_dwo_cu_data): Remove.
15598 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15599 dwo_unit parameters.
15600 (create_cus_hash_table): Use cutu_reader.
15601 (struct dwarf2_read_addr_index_data): Remove.
15602 (dwarf2_read_addr_index_reader): Remove.
15603 (dwarf2_read_addr_index): Use cutu_reader.
15604 (read_signatured_type_reader): Remove.
15605 (read_signatured_type): Use cutu_reader.
15606
15607 2020-01-19 Tom Tromey <tom@tromey.com>
15608
15609 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15610 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15611 (tui_wrefresh): Declare.
15612 * tui/tui-wingeneral.c (suppress_output): New global.
15613 (tui_suppress_output, ~tui_suppress_output): New constructor and
15614 destructor.
15615 (tui_wrefresh): New function.
15616 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15617 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15618 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15619 method.
15620 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15621 tui_wrefresh.
15622 (tui_data_window::no_refresh): New method.
15623 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15624 (tui_reg_command): Use tui_suppress_output
15625 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15626 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15627 method.
15628 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15629
15630 2020-01-19 Tom Tromey <tom@tromey.com>
15631
15632 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15633 Handle case where symtab is null.
15634
15635 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15636
15637 * linux-fork.c (one_fork_p): Simplify.
15638
15639 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15640
15641 * top.c (struct qt_args): Remove.
15642 (kill_or_detach): Change return type to void, replace `void *`
15643 parameter with a proper one.
15644 (print_inferior_quit_action): Likewise.
15645 (quit_confirm): Use range-based for loop to iterate over inferiors.
15646 (quit_force): Likewise.
15647
15648 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15649
15650 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15651 `void *` parameter with proper parameters.
15652 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15653 (print_one_inferior): Change return type to void, replace `void *`
15654 parameter with proper parameters.
15655 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15656 inferiors.
15657 (get_other_inferior): Remove.
15658 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15659 inferiors.
15660
15661 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15662
15663 * mi/mi-interp.c (report_initial_inferior): Remove.
15664 (mi_interp::init): Use range-based for to iterate over inferiors.
15665
15666 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15667
15668 * python/py-inferior.c (build_inferior_list): Remove.
15669 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15670
15671 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15672
15673 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15674 (btrace_stitch_trace): Likewise.
15675 * charset.c (intermediate_encoding): Likewise (vaild).
15676 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15677 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15678 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15679
15680 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15681
15682 * windows-tdep.c (windows_get_tlb_type):
15683 Add rtl_user_process_parameters type.
15684
15685 2020-01-16 Pedro Alves <palves@redhat.com>
15686 Norbert Lange <nolange79@gmail.com>
15687
15688 PR build/24805
15689 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15690 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15691 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15692 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15693 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15694 (ps_plog): Redeclare exported functions with default visibility.
15695
15696 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15697
15698 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15699 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15700
15701 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15702
15703 * infcmd.c (post_create_inferior): Use get_thread_regcache
15704 instead of get_current_regcache.
15705
15706 2020-01-14 Tom Tromey <tom@tromey.com>
15707
15708 PR symtab/12535:
15709 * python/python.c (gdbpy_decode_line): Treat empty string the same
15710 as no argument.
15711
15712 2020-01-14 Tom Tromey <tom@tromey.com>
15713
15714 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15715
15716 2020-01-14 Tom Tromey <tom@tromey.com>
15717
15718 * nat/linux-btrace.c: Don't include <config.h>.
15719 * nat/linux-ptrace.c: Don't include <config.h>.
15720 * nat/x86-linux-dregs.c: Don't include <config.h>.
15721
15722 2020-01-14 Tom Tromey <tom@tromey.com>
15723
15724 * configure: Rebuild.
15725 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15726
15727 2020-01-14 Tom Tromey <tom@tromey.com>
15728
15729 * nat/x86-linux-dregs.c: Include configh.h.
15730 * nat/linux-ptrace.c: Include configh.h.
15731 * nat/linux-btrace.c: Include configh.h.
15732 * defs.h: Include config.h, bfd.h.
15733 * configure.ac: Don't source common.host.
15734 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15735 * configure: Rebuild.
15736 * acinclude.m4: Update path.
15737 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15738 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15739 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15740 (CLIBS): Add LIBSUPPORT.
15741 (CDEPS): Likewise.
15742 (COMMON_SFILES): Remove gdbsupport files.
15743 (HFILES_NO_SRCDIR): Likewise.
15744 (stamp-version): Update path to create-version.sh.
15745 (ALLDEPFILES): Remove gdbsupport files.
15746
15747 2020-01-14 Tom Tromey <tom@tromey.com>
15748
15749 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15750 USE_WIN32API when needed.
15751 * configure.ac (USE_WIN32API): Don't define.
15752 (WIN32LIBS): Use WIN32APILIBS.
15753 * configure: Rebuild.
15754
15755 2020-01-14 Tom Tromey <tom@tromey.com>
15756
15757 * configure: Rebuild.
15758 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15759
15760 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15761
15762 * skip.c (skip_function_command): Make skip w/o arguments use the
15763 name of the inlined function if pc is inside any inlined function.
15764
15765 2020-01-14 Luis Machado <luis.machado@linaro.org>
15766
15767 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15768 * infrun.c (resume_1): Likewise.
15769 (handle_inferior_event): Remove stale comment.
15770 * linux-nat.c (linux_nat_target::resume): Update comments.
15771 (save_stop_reason): Likewise.
15772 (linux_nat_filter_event): Likewise.
15773 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15774
15775 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15776
15777 * elfread.c (record_minimal_symbol): Set section index to 0 for
15778 non-allocatable sections.
15779
15780
15781 2020-01-13 Ali Tamur <tamur@google.com>
15782
15783 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15784 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15785 to gdb::optional. Update comments.
15786 (dwo_file): Update comments.
15787 (read_attribute): Update API to take an additional out parameter,
15788 need_reprocess. This is used to mark attributes that need other
15789 attributes (e.g. str_offsets_base) for correct computation which may not
15790 have been read yet.
15791 (read_attribute_reprocess): New function declaration.
15792 (read_addr_index): Likewise.
15793 (read_dwo_str_index): Likewise.
15794 (read_stub_str_index): Likewise.
15795 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15796 (lookup_addr_base): New function definition.
15797 (lookup_ranges_base): Likewise.
15798 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15799 lookup_ranges_base.
15800 (init_cutu_and_read_dies): Update comments.
15801 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15802 unit. This is used to inherit parent's str_offsets_base and addr_base.
15803 Update comments.
15804 (init_cutu_and_read_dies_simple): Reflect API changes.
15805 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15806 (create_cus_hash_table): Change API to take parent compile unit.
15807 Reflect API changes.
15808 (open_and_init_dwo_file): Reflect API changes.
15809 (dwarf2_get_pc_bounds): Update comments.
15810 (dwarf2_record_block_ranges): Likewise.
15811 (read_full_die_1): Change implementation to reprocess attributes that
15812 need str_offsets_base and addr_base.
15813 (partial_die_info::read): Likewise.
15814 (read_attribute_reprocess): New function definition.
15815 (read_attribute_value): Change API to take an additional out parameter,
15816 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15817 when a non-dwo compile unit has index based attributes.
15818 (read_attribute): Reflect API changes.
15819 (read_addr_index_1): Reflect API changes. Update comments.
15820 (dwarf2_read_addr_index_data): Reflect API changes.
15821 (dwarf2_read_addr_index): Likewise.
15822 (read_str_index): Change API and implementation. This becomes a helper
15823 to be used by the new string index related methods. Update error
15824 message and comments.
15825 (read_dwo_str_index): New function definition.
15826 (read_stub_str_index): Likewise.
15827 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15828 * symfile.h (dwarf2_debug_sections): Likewise.
15829 * xcoffread.c (dwarf2_debug_sections): Likewise.
15830
15831 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15832
15833 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15834 core_reg_sect type to gdb_byte *.
15835 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15836 * cris-tdep.c (fetch_core_registers): Likewise.
15837 * corelow.c (core_target::get_core_register_section): Change
15838 type of `contents` to gdb::byte_vector.
15839
15840 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15841
15842 * tui/tui-wingeneral.c (box_win): Position the title in the center
15843 of the border.
15844
15845 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15846
15847 * corelow.c (core_target::get_core_register_section): Use
15848 std::vector instead of alloca.
15849
15850 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15851
15852 * warning.m4: Add -Wmissing-declarations to build_warnings.
15853 * configure: Re-generate.
15854
15855 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15856
15857 * python/python.c (init__gdb_module): Add declaration.
15858
15859 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15860
15861 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15862 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15863 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15864 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15865 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15866 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15867 * ada-exp.y (_initialize_ada_exp): Add declaration.
15868 * ada-lang.c (_initialize_ada_language): Add declaration.
15869 * ada-tasks.c (_initialize_tasks): Add declaration.
15870 * agent.c (_initialize_agent): Add declaration.
15871 * aix-thread.c (_initialize_aix_thread): Add declaration.
15872 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15873 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15874 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15875 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15876 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15877 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15878 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15879 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15880 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15881 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15882 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15883 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15884 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15885 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15886 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15887 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15888 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15889 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15890 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15891 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15892 * annotate.c (_initialize_annotate): Add declaration.
15893 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15894 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15895 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15896 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15897 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15898 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15899 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15900 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15901 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15902 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15903 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15904 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15905 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15906 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15907 * auto-load.c (_initialize_auto_load): Add declaration.
15908 * auxv.c (_initialize_auxv): Add declaration.
15909 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15910 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15911 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15912 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15913 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15914 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15915 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15916 * breakpoint.c (_initialize_breakpoint): Add declaration.
15917 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15918 * btrace.c (_initialize_btrace): Add declaration.
15919 * charset.c (_initialize_charset): Add declaration.
15920 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15921 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15922 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15923 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15924 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15925 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15926 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15927 * coffread.c (_initialize_coffread): Add declaration.
15928 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15929 * compile/compile.c (_initialize_compile): Add declaration.
15930 * complaints.c (_initialize_complaints): Add declaration.
15931 * completer.c (_initialize_completer): Add declaration.
15932 * copying.c (_initialize_copying): Add declaration.
15933 * corefile.c (_initialize_core): Add declaration.
15934 * corelow.c (_initialize_corelow): Add declaration.
15935 * cp-abi.c (_initialize_cp_abi): Add declaration.
15936 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15937 * cp-support.c (_initialize_cp_support): Add declaration.
15938 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15939 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15940 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15941 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15942 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15943 * ctfread.c (_initialize_ctfread): Add declaration.
15944 * d-lang.c (_initialize_d_language): Add declaration.
15945 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15946 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15947 * dbxread.c (_initialize_dbxread): Add declaration.
15948 * dcache.c (_initialize_dcache): Add declaration.
15949 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15950 * disasm.c (_initialize_disasm): Add declaration.
15951 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15952 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15953 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15954 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15955 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15956 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15957 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15958 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15959 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15960 * elfread.c (_initialize_elfread): Add declaration.
15961 * exec.c (_initialize_exec): Add declaration.
15962 * extension.c (_initialize_extension): Add declaration.
15963 * f-lang.c (_initialize_f_language): Add declaration.
15964 * f-valprint.c (_initialize_f_valprint): Add declaration.
15965 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15966 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15967 * filesystem.c (_initialize_filesystem): Add declaration.
15968 * findcmd.c (_initialize_mem_search): Add declaration.
15969 * findvar.c (_initialize_findvar): Add declaration.
15970 * fork-child.c (_initialize_fork_child): Add declaration.
15971 * frame-base.c (_initialize_frame_base): Add declaration.
15972 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15973 * frame.c (_initialize_frame): Add declaration.
15974 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15975 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15976 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15977 * gcore.c (_initialize_gcore): Add declaration.
15978 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15979 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15980 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15981 * gdbarch.c (_initialize_gdbarch): Add declaration.
15982 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15983 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15984 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15985 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15986 * go-lang.c (_initialize_go_language): Add declaration.
15987 * go32-nat.c (_initialize_go32_nat): Add declaration.
15988 * guile/guile.c (_initialize_guile): Add declaration.
15989 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15990 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15991 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15992 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15993 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15994 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15995 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15996 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15997 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15998 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15999 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16000 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16001 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16002 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16003 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16004 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16005 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16006 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16007 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16008 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16009 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16010 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16011 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16012 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16013 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16014 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16015 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16016 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16017 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16018 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16019 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16020 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16021 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16022 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16023 * infcall.c (_initialize_infcall): Add declaration.
16024 * infcmd.c (_initialize_infcmd): Add declaration.
16025 * inflow.c (_initialize_inflow): Add declaration.
16026 * infrun.c (_initialize_infrun): Add declaration.
16027 * interps.c (_initialize_interpreter): Add declaration.
16028 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16029 * jit.c (_initialize_jit): Add declaration.
16030 * language.c (_initialize_language): Add declaration.
16031 * linux-fork.c (_initialize_linux_fork): Add declaration.
16032 * linux-nat.c (_initialize_linux_nat): Add declaration.
16033 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16034 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16035 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16036 * m2-lang.c (_initialize_m2_language): Add declaration.
16037 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16038 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16039 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16040 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16041 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16042 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16043 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16044 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16045 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16046 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16047 * machoread.c (_initialize_machoread): Add declaration.
16048 * macrocmd.c (_initialize_macrocmd): Add declaration.
16049 * macroscope.c (_initialize_macroscope): Add declaration.
16050 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16051 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16052 * maint.c (_initialize_maint_cmds): Add declaration.
16053 * mdebugread.c (_initialize_mdebugread): Add declaration.
16054 * memattr.c (_initialize_mem): Add declaration.
16055 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16056 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16057 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16058 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16059 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16060 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16061 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16062 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16063 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16064 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16065 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16066 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16067 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16068 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16069 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16070 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16071 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16072 * mipsread.c (_initialize_mipsread): Add declaration.
16073 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16074 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16075 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16076 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16077 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16078 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16079 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16080 * nto-procfs.c (_initialize_procfs): Add declaration.
16081 * objc-lang.c (_initialize_objc_language): Add declaration.
16082 * observable.c (_initialize_observer): Add declaration.
16083 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16084 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16085 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16086 * osabi.c (_initialize_gdb_osabi): Add declaration.
16087 * osdata.c (_initialize_osdata): Add declaration.
16088 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16089 * parse.c (_initialize_parse): Add declaration.
16090 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16091 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16092 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16093 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16094 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16095 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16096 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16097 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16098 * printcmd.c (_initialize_printcmd): Add declaration.
16099 * probe.c (_initialize_probe): Add declaration.
16100 * proc-api.c (_initialize_proc_api): Add declaration.
16101 * proc-events.c (_initialize_proc_events): Add declaration.
16102 * proc-service.c (_initialize_proc_service): Add declaration.
16103 * procfs.c (_initialize_procfs): Add declaration.
16104 * producer.c (_initialize_producer): Add declaration.
16105 * psymtab.c (_initialize_psymtab): Add declaration.
16106 * python/python.c (_initialize_python): Add declaration.
16107 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16108 * record-btrace.c (_initialize_record_btrace): Add declaration.
16109 * record-full.c (_initialize_record_full): Add declaration.
16110 * record.c (_initialize_record): Add declaration.
16111 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16112 * regcache.c (_initialize_regcache): Add declaration.
16113 * reggroups.c (_initialize_reggroup): Add declaration.
16114 * remote-notif.c (_initialize_notif): Add declaration.
16115 * remote-sim.c (_initialize_remote_sim): Add declaration.
16116 * remote.c (_initialize_remote): Add declaration.
16117 * reverse.c (_initialize_reverse): Add declaration.
16118 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16119 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16120 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16121 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16122 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16123 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16124 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16125 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16126 Add declaration.
16127 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16128 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16129 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16130 * rust-exp.y (_initialize_rust_exp): Add declaration.
16131 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16132 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16133 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16134 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16135 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16136 * score-tdep.c (_initialize_score_tdep): Add declaration.
16137 * ser-go32.c (_initialize_ser_dos): Add declaration.
16138 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16139 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16140 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16141 * ser-uds.c (_initialize_ser_socket): Add declaration.
16142 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16143 * serial.c (_initialize_serial): Add declaration.
16144 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16145 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16146 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16147 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16148 * skip.c (_initialize_step_skip): Add declaration.
16149 * sol-thread.c (_initialize_sol_thread): Add declaration.
16150 * solib-aix.c (_initialize_solib_aix): Add declaration.
16151 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16152 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16153 * solib-frv.c (_initialize_frv_solib): Add declaration.
16154 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16155 * solib-target.c (_initialize_solib_target): Add declaration.
16156 * solib.c (_initialize_solib): Add declaration.
16157 * source-cache.c (_initialize_source_cache): Add declaration.
16158 * source.c (_initialize_source): Add declaration.
16159 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16160 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16161 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16162 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16163 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16164 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16165 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16166 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16167 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16168 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16169 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16170 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16171 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16172 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16173 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16174 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16175 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16176 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16177 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16178 * stabsread.c (_initialize_stabsread): Add declaration.
16179 * stack.c (_initialize_stack): Add declaration.
16180 * stap-probe.c (_initialize_stap_probe): Add declaration.
16181 * std-regs.c (_initialize_frame_reg): Add declaration.
16182 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16183 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16184 * symfile.c (_initialize_symfile): Add declaration.
16185 * symmisc.c (_initialize_symmisc): Add declaration.
16186 * symtab.c (_initialize_symtab): Add declaration.
16187 * target.c (_initialize_target): Add declaration.
16188 * target-connection.c (_initialize_target_connection): Add
16189 declaration.
16190 * target-dcache.c (_initialize_target_dcache): Add declaration.
16191 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16192 * thread.c (_initialize_thread): Add declaration.
16193 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16194 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16195 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16196 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16197 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16198 * tracectf.c (_initialize_ctf): Add declaration.
16199 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16200 * tracefile.c (_initialize_tracefile): Add declaration.
16201 * tracepoint.c (_initialize_tracepoint): Add declaration.
16202 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16203 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16204 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16205 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16206 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16207 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16208 * tui/tui.c (_initialize_tui): Add declaration.
16209 * typeprint.c (_initialize_typeprint): Add declaration.
16210 * ui-style.c (_initialize_ui_style): Add declaration.
16211 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16212 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16213 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16214 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16215 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16216 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16217 * unittests/filtered_iterator-selftests.c
16218 (_initialize_filtered_iterator_selftests): Add declaration.
16219 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16220 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16221 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16222 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16223 * unittests/main-thread-selftests.c
16224 (_initialize_main_thread_selftests): Add declaration.
16225 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16226 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16227 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16228 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16229 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16230 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16231 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16232 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16233 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16234 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16235 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16236 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16237 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16238 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16239 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16240 declaration.
16241 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16242 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16243 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16244 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16245 * user-regs.c (_initialize_user_regs): Add declaration.
16246 * utils.c (_initialize_utils): Add declaration.
16247 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16248 * valops.c (_initialize_valops): Add declaration.
16249 * valprint.c (_initialize_valprint): Add declaration.
16250 * value.c (_initialize_values): Add declaration.
16251 * varobj.c (_initialize_varobj): Add declaration.
16252 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16253 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16254 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16255 * windows-nat.c (_initialize_windows_nat): Add declaration.
16256 (_initialize_check_for_gdb_ini): Add declaration.
16257 (_initialize_loadable): Add declaration.
16258 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16259 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16260 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16261 * xcoffread.c (_initialize_xcoffread): Add declaration.
16262 * xml-support.c (_initialize_xml_support): Add declaration.
16263 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16264 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16265 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16266 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16267
16268 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16269
16270 * regformats/regdat.sh: Generate declaration for init function.
16271
16272 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16273
16274 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16275 up.
16276 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16277 close_one_inferior>: New methods.
16278 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16279 pass down target to find_inferior_pid.
16280 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16281 Pass down target to find_inferior_ptid.
16282 (gdbsim_target::create_inferior): Pass down target to
16283 add_thread_silent.
16284 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16285 target down to find_inferior_ptid and switch_to_thread.
16286 (gdbsim_target::close): Update to call close_one_inferior.
16287 (struct resume_data): Remove.
16288 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16289 directly, rather than through a void pointer.
16290 (gdbsim_target::resume): Update to call resume_one_inferior.
16291
16292 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16293
16294 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16295
16296 2020-01-12 Pedro Alves <palves@redhat.com>
16297
16298 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16299 directly for the current inferior instead of
16300 discard_all_inferiors.
16301 (discard_all_inferiors): Delete.
16302
16303 2020-01-11 Tom Tromey <tom@tromey.com>
16304
16305 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16306 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16307 deprecated_safe_get_selected_frame.
16308
16309 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16310
16311 * inferior.c (print_inferior): Switch inferior before printing it.
16312
16313 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16314 Pedro Alves <palves@redhat.com>
16315
16316 * progspace-and-thread.c (switch_to_program_space_and_thread):
16317 Assert there's an inferior for PSPACE. Use
16318 switch_to_inferior_no_thread to switch the inferior too.
16319 * progspace.c (program_space::~program_space): Call
16320 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16321 (program_space::free_all_objfiles): Don't call clear_symtab_users
16322 here.
16323 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16324
16325 2020-01-10 Pedro Alves <palves@redhat.com>
16326
16327 * NEWS: Mention multi-target debugging, "info connections", and
16328 "add-inferior -no-connection".
16329
16330 2020-01-10 Pedro Alves <palves@redhat.com>
16331
16332 * infrun.c: Include "target-connection.h".
16333 (check_multi_target_resumption): New.
16334 (proceed): Call it.
16335 * target-connection.c (make_target_connection_string): Make
16336 extern.
16337 * target-connection.h (make_target_connection_string): Declare.
16338
16339 2020-01-10 Pedro Alves <palves@redhat.com>
16340
16341 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16342 * inferior.c (uiout_field_connection): New function.
16343 (print_inferior): Add new "connection-id" column.
16344 (add_inferior_command): Show connection number/string of added
16345 inferior.
16346 * process-stratum-target.h
16347 (process_stratum_target::connection_string): New virtual method.
16348 (process_stratum_target::connection_number): New field.
16349 * remote.c (remote_target::connection_string): New override.
16350 * target-connection.c: New file.
16351 * target-connection.h: New file.
16352 * target.c (decref_target): Remove process_stratum targets from
16353 the connection list.
16354 (target_stack::push): Add process_stratum targets to the
16355 connection list.
16356
16357 2020-01-10 Pedro Alves <palves@redhat.com>
16358
16359 Revert:
16360 2016-04-12 Pedro Alves <palves@redhat.com>
16361 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16362 Remove references to name.
16363 * serial.h (struct serial) <name>: Delete.
16364
16365 2020-01-10 Pedro Alves <palves@redhat.com>
16366
16367 * gdbarch-selftests.c (register_to_value_test): Remove "target
16368 already pushed" check.
16369
16370 2020-01-10 Pedro Alves <palves@redhat.com>
16371 John Baldwin <jhb@FreeBSD.org>
16372
16373 * aarch64-linux-nat.c
16374 (aarch64_linux_nat_target::thread_architecture): Adjust.
16375 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16376 (task_command_1): Likewise.
16377 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16378 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16379 (aix_thread_target::store_registers)
16380 (aix_thread_target::thread_alive): Adjust.
16381 * amd64-fbsd-tdep.c: Include "inferior.h".
16382 (amd64fbsd_get_thread_local_address): Pass down target.
16383 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16384 thread's gdbarch instead of target_gdbarch.
16385 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16386 get_last_target_status.
16387 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16388 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16389 inferiors.
16390 (update_inserted_breakpoint_locations): Skip if inferiors with no
16391 execution.
16392 (update_global_location_list): When handling moribund locations,
16393 find representative inferior for location's pspace, and use thread
16394 count of its process_stratum target.
16395 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16396 * bsd-uthread.c (bsd_uthread_target::wait): Use
16397 as_process_stratum_target and adjust thread_change_ptid and
16398 add_thread calls.
16399 (bsd_uthread_target::update_thread_list): Use
16400 as_process_stratum_target and adjust find_thread_ptid,
16401 thread_change_ptid and add_thread calls.
16402 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16403 find_thread_ptid call.
16404 * corelow.c (add_to_thread_list): Adjust add_thread call.
16405 (core_target_open): Adjust add_thread_silent and thread_count
16406 calls.
16407 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16408 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16409 * event-top.c (async_disconnect): Pop targets from all inferiors.
16410 * exec.c (add_target_sections): Push exec target on all inferiors
16411 sharing the program space.
16412 (remove_target_sections): Remove the exec target from all
16413 inferiors sharing the program space.
16414 (exec_on_vfork): New.
16415 * exec.h (exec_on_vfork): Declare.
16416 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16417 Pass it down.
16418 (fbsd_nat_target::update_thread_list): Adjust.
16419 (fbsd_nat_target::resume): Adjust.
16420 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16421 down.
16422 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16423 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16424 get_thread_arch_regcache call.
16425 * fork-child.c (gdb_startup_inferior): Pass target down to
16426 startup_inferior and set_executing.
16427 * gdbthread.h (struct process_stratum_target): Forward declare.
16428 (add_thread, add_thread_silent, add_thread_with_info)
16429 (in_thread_list): Add process_stratum_target parameter.
16430 (find_thread_ptid(inferior*, ptid_t)): New overload.
16431 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16432 parameter.
16433 (all_threads()): Delete overload.
16434 (all_threads, all_non_exited_threads): Add process_stratum_target
16435 parameter.
16436 (all_threads_safe): Use brace initialization.
16437 (thread_count): Add process_stratum_target parameter.
16438 (set_resumed, set_running, set_stop_requested, set_executing)
16439 (threads_are_executing, finish_thread_state): Add
16440 process_stratum_target parameter.
16441 (switch_to_thread): Use is_current_thread.
16442 * i386-fbsd-tdep.c: Include "inferior.h".
16443 (i386fbsd_get_thread_local_address): Pass down target.
16444 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16445 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16446 have_inferiors check.
16447 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16448 (inf_ptrace_target::attach): Adjust.
16449 * infcall.c (run_inferior_call): Adjust.
16450 * infcmd.c (run_command_1): Pass target to
16451 scoped_finish_thread_state.
16452 (proceed_thread_callback): Skip inferiors with no execution.
16453 (continue_command): Rename 'all_threads' local to avoid hiding
16454 'all_threads' function. Adjust get_last_target_status call.
16455 (prepare_one_step): Adjust set_running call.
16456 (signal_command): Use user_visible_resume_target. Compare thread
16457 pointers instead of inferior_ptid.
16458 (info_program_command): Adjust to pass down target.
16459 (attach_command): Mark target's 'thread_executing' flag.
16460 (stop_current_target_threads_ns): New, factored out from ...
16461 (interrupt_target_1): ... this. Switch inferior before making
16462 target calls.
16463 * inferior-iter.h
16464 (struct all_inferiors_iterator, struct all_inferiors_range)
16465 (struct all_inferiors_safe_range)
16466 (struct all_non_exited_inferiors_range): Filter on
16467 process_stratum_target too. Remove explicit.
16468 * inferior.c (inferior::inferior): Push dummy target on target
16469 stack.
16470 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16471 Add process_stratum_target parameter, and pass it down.
16472 (have_live_inferiors): Adjust.
16473 (switch_to_inferior_and_push_target): New.
16474 (add_inferior_command, clone_inferior_command): Handle
16475 "-no-connection" parameter. Use
16476 switch_to_inferior_and_push_target.
16477 (_initialize_inferior): Mention "-no-connection" option in
16478 the help of "add-inferior" and "clone-inferior" commands.
16479 * inferior.h: Include "process-stratum-target.h".
16480 (interrupt_target_1): Use bool.
16481 (struct inferior) <push_target, unpush_target, target_is_pushed,
16482 find_target_beneath, top_target, process_target, target_at,
16483 m_stack>: New.
16484 (discard_all_inferiors): Delete.
16485 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16486 (all_inferiors, all_non_exited_inferiors): Add
16487 process_stratum_target parameter.
16488 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16489 (target_last_proc_target): New global.
16490 (follow_fork_inferior): Push target on new inferior. Pass target
16491 to add_thread_silent. Call exec_on_vfork. Handle target's
16492 reference count.
16493 (follow_fork): Adjust get_last_target_status call. Also consider
16494 target.
16495 (follow_exec): Push target on new inferior.
16496 (struct execution_control_state) <target>: New field.
16497 (user_visible_resume_target): New.
16498 (do_target_resume): Call target_async.
16499 (resume_1): Set target's threads_executing flag. Consider resume
16500 target.
16501 (commit_resume_all_targets): New.
16502 (proceed): Also consider resume target. Skip threads of inferiors
16503 with no execution. Commit resumtion in all targets.
16504 (start_remote): Pass current inferior to wait_for_inferior.
16505 (infrun_thread_stop_requested): Consider target as well. Pass
16506 thread_info pointer to clear_inline_frame_state instead of ptid.
16507 (infrun_thread_thread_exit): Consider target as well.
16508 (random_pending_event_thread): New inferior parameter. Use it.
16509 (do_target_wait): Rename to ...
16510 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16511 down.
16512 (threads_are_resumed_pending_p, do_target_wait): New.
16513 (prepare_for_detach): Adjust calls.
16514 (wait_for_inferior): New inferior parameter. Handle it. Use
16515 do_target_wait_1 instead of do_target_wait.
16516 (fetch_inferior_event): Adjust. Switch to representative
16517 inferior. Pass target down.
16518 (set_last_target_status): Add process_stratum_target parameter.
16519 Save target in global.
16520 (get_last_target_status): Add process_stratum_target parameter and
16521 handle it.
16522 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16523 (context_switch): Check inferior_ptid == null_ptid before calling
16524 inferior_thread().
16525 (get_inferior_stop_soon): Pass down target.
16526 (wait_one): Rename to ...
16527 (poll_one_curr_target): ... this.
16528 (struct wait_one_event): New.
16529 (wait_one): New.
16530 (stop_all_threads): Adjust.
16531 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16532 event's target.
16533 (switch_back_to_stepped_thread): Also consider target.
16534 (print_stop_event): Update.
16535 (normal_stop): Update. Also consider the resume target.
16536 * infrun.h (wait_for_inferior): Remove declaration.
16537 (user_visible_resume_target): New declaration.
16538 (get_last_target_status, set_last_target_status): New
16539 process_stratum_target parameter.
16540 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16541 process_stratum_target parameter, and use it.
16542 (clear_inline_frame_state (thread_info*)): New.
16543 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16544 process_stratum_target parameter.
16545 (clear_inline_frame_state (thread_info*)): Declare.
16546 * linux-fork.c (delete_checkpoint_command): Pass target down to
16547 find_thread_ptid.
16548 (checkpoint_command): Adjust.
16549 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16550 instead of just tweaking inferior_ptid.
16551 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16552 (exit_lwp): Pass target down to find_thread_ptid.
16553 (attach_proc_task_lwp_callback): Pass target down to
16554 add_thread/set_running/set_executing.
16555 (linux_nat_target::attach): Pass target down to
16556 thread_change_ptid.
16557 (get_detach_signal): Pass target down to find_thread_ptid.
16558 Consider last target status's target.
16559 (linux_resume_one_lwp_throw, resume_lwp)
16560 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16561 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16562 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16563 (linux_nat_target::async_wait_fd): New.
16564 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16565 target down.
16566 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16567 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16568 * linux-thread-db.c (struct thread_db_info::process_target): New
16569 field.
16570 (add_thread_db_info): Save target.
16571 (get_thread_db_info): New process_stratum_target parameter. Also
16572 match target.
16573 (delete_thread_db_info): New process_stratum_target parameter.
16574 Also match target.
16575 (thread_from_lwp): Adjust to pass down target.
16576 (thread_db_notice_clone): Pass down target.
16577 (check_thread_db_callback): Pass down target.
16578 (try_thread_db_load_1): Always push the thread_db target.
16579 (try_thread_db_load, record_thread): Pass target down.
16580 (thread_db_target::detach): Pass target down. Always unpush the
16581 thread_db target.
16582 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16583 target down. Always unpush the thread_db target.
16584 (find_new_threads_callback, thread_db_find_new_threads_2)
16585 (thread_db_target::update_thread_list): Pass target down.
16586 (thread_db_target::pid_to_str): Pass current inferior down.
16587 (thread_db_target::get_thread_local_address): Pass target down.
16588 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16589 target down.
16590 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16591 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16592 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16593 (procfs_init_inferior): Rename to ...
16594 (procfs_target::procfs_init_inferior): ... this and adjust.
16595 (procfs_target::create_inferior, procfs_notice_thread)
16596 (procfs_do_thread_registers): Adjust.
16597 * ppc-fbsd-tdep.c: Include "inferior.h".
16598 (ppcfbsd_get_thread_local_address): Pass down target.
16599 * proc-service.c (ps_xfer_memory): Switch current inferior and
16600 program space as well.
16601 (get_ps_regcache): Pass target down.
16602 * process-stratum-target.c
16603 (process_stratum_target::thread_address_space)
16604 (process_stratum_target::thread_architecture): Pass target down.
16605 * process-stratum-target.h
16606 (process_stratum_target::threads_executing): New field.
16607 (as_process_stratum_target): New.
16608 * ravenscar-thread.c
16609 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16610 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16611 down.
16612 * record-btrace.c (record_btrace_target::info_record): Adjust.
16613 (record_btrace_target::record_method)
16614 (record_btrace_target::record_is_replaying)
16615 (record_btrace_target::fetch_registers)
16616 (get_thread_current_frame_id, record_btrace_target::resume)
16617 (record_btrace_target::wait, record_btrace_target::stop): Pass
16618 target down.
16619 * record-full.c (record_full_wait_1): Switch to event thread.
16620 Pass target down.
16621 * regcache.c (regcache::regcache)
16622 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16623 process_stratum_target parameter and handle it.
16624 (current_thread_target): New global.
16625 (get_thread_regcache): Add process_stratum_target parameter and
16626 handle it. Switch inferior before calling target method.
16627 (get_thread_regcache): Pass target down.
16628 (get_thread_regcache_for_ptid): Pass target down.
16629 (registers_changed_ptid): Add process_stratum_target parameter and
16630 handle it.
16631 (registers_changed_thread, registers_changed): Pass target down.
16632 (test_get_thread_arch_aspace_regcache): New.
16633 (current_regcache_test): Define a couple local test_target_ops
16634 instances and use them for testing.
16635 (readwrite_regcache): Pass process_stratum_target parameter.
16636 (cooked_read_test, cooked_write_test): Pass mock_target down.
16637 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16638 (get_thread_arch_aspace_regcache): Add process_stratum_target
16639 parameter.
16640 (regcache::target): New method.
16641 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16642 (regcache::registers_changed_ptid): Add process_stratum_target
16643 parameter.
16644 (regcache::m_target): New field.
16645 (registers_changed_ptid): Add process_stratum_target parameter.
16646 * remote.c (remote_state::supports_vCont_probed): New field.
16647 (remote_target::async_wait_fd): New method.
16648 (remote_unpush_and_throw): Add remote_target parameter.
16649 (get_current_remote_target): Adjust.
16650 (remote_target::remote_add_inferior): Push target.
16651 (remote_target::remote_add_thread)
16652 (remote_target::remote_notice_new_inferior)
16653 (get_remote_thread_info): Pass target down.
16654 (remote_target::update_thread_list): Skip threads of inferiors
16655 bound to other targets. (remote_target::close): Don't discard
16656 inferiors. (remote_target::add_current_inferior_and_thread)
16657 (remote_target::process_initial_stop_replies)
16658 (remote_target::start_remote)
16659 (remote_target::remote_serial_quit_handler): Pass down target.
16660 (remote_target::remote_unpush_target): New remote_target
16661 parameter. Unpush the target from all inferiors.
16662 (remote_target::remote_unpush_and_throw): New remote_target
16663 parameter. Pass it down.
16664 (remote_target::open_1): Check whether the current inferior has
16665 execution instead of checking whether any inferior is live. Pass
16666 target down.
16667 (remote_target::remote_detach_1): Pass down target. Use
16668 remote_unpush_target.
16669 (extended_remote_target::attach): Pass down target.
16670 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16671 (remote_target::append_resumption): Pass down target.
16672 (remote_target::append_pending_thread_resumptions)
16673 (remote_target::remote_resume_with_hc, remote_target::resume)
16674 (remote_target::commit_resume): Pass down target.
16675 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16676 (remote_target::interrupt_query)
16677 (remote_target::remove_new_fork_children)
16678 (remote_target::check_pending_events_prevent_wildcard_vcont)
16679 (remote_target::remote_parse_stop_reply)
16680 (remote_target::process_stop_reply): Pass down target.
16681 (first_remote_resumed_thread): New remote_target parameter. Pass
16682 it down.
16683 (remote_target::wait_as): Pass down target.
16684 (unpush_and_perror): New remote_target parameter. Pass it down.
16685 (remote_target::readchar, remote_target::remote_serial_write)
16686 (remote_target::getpkt_or_notif_sane_1)
16687 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16688 down target.
16689 (remote_target::mourn_inferior): Pass down target. Use
16690 remote_unpush_target.
16691 (remote_target::core_of_thread)
16692 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16693 (remote_target::pid_to_exec_file)
16694 (remote_target::thread_handle_to_thread_info): Pass down target.
16695 (remote_target::async_wait_fd): New.
16696 * riscv-fbsd-tdep.c: Include "inferior.h".
16697 (riscv_fbsd_get_thread_local_address): Pass down target.
16698 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16699 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16700 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16701 Adjust.
16702 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16703 * solib-svr4.c (enable_break): Pass down target.
16704 * spu-multiarch.c (parse_spufs_run): Pass down target.
16705 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16706 * target-delegates.c: Regenerate.
16707 * target.c (g_target_stack): Delete.
16708 (current_top_target): Return the current inferior's top target.
16709 (target_has_execution_1): Refer to the passed-in inferior's top
16710 target.
16711 (target_supports_terminal_ours): Check whether the initial
16712 inferior was already created.
16713 (decref_target): New.
16714 (target_stack::push): Incref/decref the target.
16715 (push_target, push_target, unpush_target): Adjust.
16716 (target_stack::unpush): Defref target.
16717 (target_is_pushed): Return bool. Adjust to refer to the current
16718 inferior's target stack.
16719 (dispose_inferior): Delete, and inline parts ...
16720 (target_preopen): ... here. Only dispose of the current inferior.
16721 (target_detach): Hold strong target reference while detaching.
16722 Pass target down.
16723 (target_thread_name): Add assertion.
16724 (target_resume): Pass down target.
16725 (target_ops::beneath, find_target_at): Adjust to refer to the
16726 current inferior's target stack.
16727 (get_dummy_target): New.
16728 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16729 has a thread running.
16730 (initialize_targets): Rename to ...
16731 (_initialize_target): ... this.
16732 * target.h: Include "gdbsupport/refcounted-object.h".
16733 (struct target_ops): Inherit refcounted_object.
16734 (target_ops::shortname, target_ops::longname): Make const.
16735 (target_ops::async_wait_fd): New method.
16736 (decref_target): Declare.
16737 (struct target_ops_ref_policy): New.
16738 (target_ops_ref): New typedef.
16739 (get_dummy_target): Declare function.
16740 (target_is_pushed): Return bool.
16741 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16742 (all_matching_threads_iterator::all_matching_threads_iterator):
16743 Handle filter target.
16744 * thread-iter.h (struct all_matching_threads_iterator, struct
16745 all_matching_threads_range, class all_non_exited_threads_range):
16746 Filter by target too. Remove explicit.
16747 * thread.c (threads_executing): Delete.
16748 (inferior_thread): Pass down current inferior.
16749 (clear_thread_inferior_resources): Pass down thread pointer
16750 instead of ptid_t.
16751 (add_thread_silent, add_thread_with_info, add_thread): Add
16752 process_stratum_target parameter. Use it for thread and inferior
16753 searches.
16754 (is_current_thread): New.
16755 (thread_info::deletable): Use it.
16756 (find_thread_ptid, thread_count, in_thread_list)
16757 (thread_change_ptid, set_resumed, set_running): New
16758 process_stratum_target parameter. Pass it down.
16759 (set_executing): New process_stratum_target parameter. Pass it
16760 down. Adjust reference to 'threads_executing'.
16761 (threads_are_executing): New process_stratum_target parameter.
16762 Adjust reference to 'threads_executing'.
16763 (set_stop_requested, finish_thread_state): New
16764 process_stratum_target parameter. Pass it down.
16765 (switch_to_thread): Also match inferior.
16766 (switch_to_thread): New process_stratum_target parameter. Pass it
16767 down.
16768 (update_threads_executing): Reimplement.
16769 * top.c (quit_force): Pop targets from all inferior.
16770 (gdb_init): Don't call initialize_targets.
16771 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16772 Declare.
16773 (windows_add_thread, windows_delete_thread): Adjust.
16774 (get_windows_debug_event): Rename to ...
16775 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16776 * tracefile-tfile.c (tfile_target_open): Pass down target.
16777 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16778 Forward declare.
16779 (switch_to_thread): Add process_stratum_target parameter.
16780 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16781 parameter. Use it.
16782 (mi_on_resume): Pass target down.
16783 * nat/fork-inferior.c (startup_inferior): Add
16784 process_stratum_target parameter. Pass it down.
16785 * nat/fork-inferior.h (startup_inferior): Add
16786 process_stratum_target parameter.
16787 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16788
16789 2020-01-10 Pedro Alves <palves@redhat.com>
16790
16791 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16792 directly. Instead find the first thread in the thread list and
16793 use switch_to_thread.
16794
16795 2020-01-10 Pedro Alves <palves@redhat.com>
16796
16797 * remote.c (remote_target::remote_add_inferior): Don't bind a
16798 process to the current inferior if the current inferior is already
16799 bound to a process.
16800
16801 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16802 Pedro Alves <palves@redhat.com>
16803
16804 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16805 If no process is specified, return null_ptid instead of
16806 inferior_ptid.
16807 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16808 TARGET_WAITKIND_SIGNALLED with no pid.
16809
16810 2020-01-10 Pedro Alves <palves@redhat.com>
16811
16812 * remote.c (first_remote_resumed_thread): New.
16813 (remote_target::wait_as): Use it as default event_ptid instead of
16814 inferior_ptid.
16815
16816 2020-01-10 Pedro Alves <palves@redhat.com>
16817
16818 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16819
16820 2020-01-10 Pedro Alves <palves@redhat.com>
16821
16822 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16823 not -1.
16824
16825 2020-01-10 Pedro Alves <palves@redhat.com>
16826
16827 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16828 ptid to get_last_target_status.
16829 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16830 ptid to get_last_target_status.
16831 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16832 get_last_target_status.
16833 (info_program_command): Don't pass a target_waitstatus to
16834 get_last_target_status.
16835 * infrun.c (init_wait_for_inferior): Use
16836 nullify_last_target_wait_ptid.
16837 (get_last_target_status): Handle nullptr arguments.
16838 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16839 (print_stop_event): Don't pass a ptid to get_last_target_status.
16840 (normal_stop): Don't pass a ptid to get_last_target_status.
16841 * infrun.h (get_last_target_status, set_last_target_status): Move
16842 comments here and update.
16843 (nullify_last_target_wait_ptid): Declare.
16844 * linux-fork.c (fork_load_infrun_state): Remove local extern
16845 declaration of nullify_last_target_wait_ptid.
16846 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16847 to get_last_target_status.
16848
16849 2020-01-10 Pedro Alves <palves@redhat.com>
16850
16851 * gdbthread.h (scoped_restore_current_thread)
16852 <dont_restore, restore, m_dont_restore>: Declare.
16853 * thread.c (thread_alive): Add assertion. Return bool.
16854 (switch_to_thread_if_alive): New.
16855 (prune_threads): Switch inferior/thread.
16856 (print_thread_info_1): Switch thread before calling target methods.
16857 (scoped_restore_current_thread::restore): New, factored out from
16858 ...
16859 (scoped_restore_current_thread::~scoped_restore_current_thread):
16860 ... this.
16861 (scoped_restore_current_thread::scoped_restore_current_thread):
16862 Add assertion.
16863 (thread_apply_all_command, thread_select): Use
16864 switch_to_thread_if_alive.
16865 * infrun.c (proceed, restart_threads, handle_signal_stop)
16866 (switch_back_to_stepped_thread): Switch current thread before
16867 calling target methods.
16868
16869 2020-01-10 Pedro Alves <palves@redhat.com>
16870
16871 * inferior.c (switch_to_inferior_no_thread): New function,
16872 factored out from ...
16873 (inferior_command): ... here.
16874 * inferior.h (switch_to_inferior_no_thread): Declare.
16875 * mi/mi-main.c (run_one_inferior): Use
16876 switch_to_inferior_no_thread.
16877
16878 2020-01-10 Pedro Alves <palves@redhat.com>
16879
16880 * infcmd.c (kill_command): Remove dead code.
16881
16882 2020-01-10 Pedro Alves <palves@redhat.com>
16883
16884 * remote.c (remote_target::mourn_inferior): No longer check
16885 whether the target is running.
16886
16887 2020-01-10 Pedro Alves <palves@redhat.com>
16888
16889 * corelow.c (core_target::has_execution): Change parameter type to
16890 inferior pointer.
16891 * inferior.c (number_of_live_inferiors): Use
16892 inferior::has_execution instead of target_has_execution_1.
16893 * inferior.h (inferior::has_execution): New.
16894 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16895 inferior::has_execution instead of target_has_execution_1.
16896 * process-stratum-target.c
16897 (process_stratum_target::has_execution): Change parameter type to
16898 inferior pointer. Check the inferior's PID instead of
16899 inferior_ptid.
16900 * process-stratum-target.h
16901 (process_stratum_target::has_execution): Change parameter type to
16902 inferior pointer.
16903 * record-full.c (record_full_core_target::has_execution): Change
16904 parameter type to inferior pointer.
16905 * target.c (target_has_execution_1): Change parameter type to
16906 inferior pointer.
16907 (target_has_execution_current): Adjust.
16908 * target.h (target_ops::has_execution): Change parameter type to
16909 inferior pointer.
16910 (target_has_execution_1): Change parameter type to inferior
16911 pointer. Change return type to bool.
16912 * tracefile.h (tracefile_target::has_execution): Change parameter
16913 type to inferior pointer.
16914
16915 2020-01-10 Pedro Alves <palves@redhat.com>
16916
16917 * exceptions.c (print_flush): Remove current_top_target() check.
16918
16919 2020-01-10 Pedro Alves <palves@redhat.com>
16920
16921 * remote.c (show_remote_exec_file): Show the current inferior's
16922 exec-file instead of the command variable's value.
16923
16924 2020-01-10 Pedro Alves <palves@redhat.com>
16925
16926 * record-full.c (record_full_resume_ptid): New global.
16927 (record_full_target::resume): Set it.
16928 (record_full_wait_1): Use record_full_resume_ptid instead of
16929 inferior_ptid.
16930
16931 2020-01-10 Pedro Alves <palves@redhat.com>
16932
16933 * gdbthread.h (scoped_restore_current_thread)
16934 <dont_restore, restore, m_dont_restore>: Declare.
16935 * thread.c (thread_alive): Add assertion. Return bool.
16936 (switch_to_thread_if_alive): New.
16937 (prune_threads): Switch inferior/thread.
16938 (print_thread_info_1): Switch thread before calling target methods.
16939 (scoped_restore_current_thread::restore): New, factored out from
16940 ...
16941 (scoped_restore_current_thread::~scoped_restore_current_thread):
16942 ... this.
16943 (scoped_restore_current_thread::scoped_restore_current_thread):
16944 Add assertion.
16945 (thread_apply_all_command, thread_select): Use
16946 switch_to_thread_if_alive.
16947
16948 2020-01-10 George Barrett <bob@bob131.so>
16949
16950 * stap-probe.c (stap_modify_semaphore): Don't check for null
16951 semaphores.
16952 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16953 for null semaphores.
16954
16955 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16956
16957 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16958 all source windows, and maintain horizontal scroll status while
16959 doing so.
16960
16961 2020-01-09 Tom Tromey <tom@tromey.com>
16962
16963 PR tui/18932:
16964 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16965 update_source_window, not print_source_lines.
16966
16967 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16968
16969 * tui/tui.c (tui_enable): Register tui hooks after calling
16970 tui_display_main.
16971
16972 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16973
16974 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16975
16976 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16977
16978 * thread.c (print_thread_info_1): Fix indentation.
16979
16980 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16981
16982 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16983 unique_xmalloc_ptr outside the if to always free the demangled name.
16984
16985 2020-01-08 Tom Tromey <tromey@adacore.com>
16986
16987 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16988 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16989 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16990 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16991 Remove.
16992 (section_offsets): New typedef.
16993 * symtab.c (fixup_section, get_msymbol_address): Update.
16994 * symmisc.c (dump_msymbols): Update.
16995 * symfile.h (relative_addr_info_to_section_offsets)
16996 (symfile_map_offsets_to_segments): Update.
16997 * symfile.c (build_section_addr_info_from_objfile)
16998 (init_objfile_sect_indices): Update.
16999 (struct place_section_arg): Change type of "offsets".
17000 (place_section): Update.
17001 (relative_addr_info_to_section_offsets): Change type of
17002 "section_offsets". Remove "num_sections" parameter.
17003 (default_symfile_offsets, syms_from_objfile_1)
17004 (set_objfile_default_section_offset): Update.
17005 (reread_symbols): No need to preserve section offsets by hand.
17006 (symfile_map_offsets_to_segments): Change type of "offsets".
17007 * stap-probe.c (relocate_address): Update.
17008 * stabsread.h (process_one_symbol): Update.
17009 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17010 (solib_target_relocate_section_addresses): Update.
17011 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17012 Update.
17013 * solib-frv.c (frv_relocate_main_executable): Update.
17014 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17015 * solib-aix.c (solib_aix_get_section_offsets): Change return
17016 type.
17017 (solib_aix_solib_create_inferior_hook): Update.
17018 * remote.c (remote_target::get_offsets): Update.
17019 * psymtab.c (find_pc_sect_psymtab): Update.
17020 * psympriv.h (struct partial_symbol) <address, text_low,
17021 text_high>: Update.
17022 * objfiles.h (obj_section_offset): Update.
17023 (struct objfile) <section_offsets>: Change type.
17024 <num_sections>: Remove.
17025 (objfile_relocate): Update.
17026 * objfiles.c (entry_point_address_query): Update
17027 (relocate_one_symbol): Change type of "section_offsets".
17028 (objfile_relocate1, objfile_relocate1): Change type of
17029 "new_offsets".
17030 (objfile_rebase1): Update.
17031 * mipsread.c (mipscoff_symfile_read): Update.
17032 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17033 parameter.
17034 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17035 (parse_external, psymtab_to_symtab_1): Update.
17036 * machoread.c (macho_symfile_offsets): Update.
17037 * ia64-tdep.c (ia64_find_unwind_table): Update.
17038 * hppa-tdep.c (read_unwind_info): Update.
17039 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17040 * dwarf2read.c (create_addrmap_from_index)
17041 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17042 (process_psymtab_comp_unit_reader, add_partial_symbol)
17043 (add_partial_subprogram, process_full_comp_unit)
17044 (read_file_scope, read_func_scope, read_lexical_block_scope)
17045 (read_call_site_scope, dwarf2_rnglists_process)
17046 (dwarf2_ranges_process, dwarf2_ranges_read)
17047 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17048 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17049 Update.
17050 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17051 Update.
17052 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17053 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17054 (process_one_symbol): Change type of "section_offsets".
17055 * ctfread.c (get_objfile_text_range): Update.
17056 * coffread.c (coff_symtab_read, enter_linenos)
17057 (process_coff_symbol): Update.
17058 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17059 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17060
17061 2020-01-08 Tom Tromey <tromey@adacore.com>
17062
17063 * dwarf2read.c (parse_macro_definition): Use std::string.
17064 (parse_macro_definition): Likewise.
17065
17066 2020-01-08 Tom Tromey <tromey@adacore.com>
17067
17068 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17069 (ATTR_ALLOC_CHUNK): Remove.
17070
17071 2020-01-08 Tom Tromey <tromey@adacore.com>
17072
17073 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17074
17075 2020-01-08 Tom Tromey <tromey@adacore.com>
17076
17077 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17078 (dwarf2_compute_name, open_dwo_file): Likewise.
17079 (process_enumeration_scope): Use std::vector.
17080 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17081 (partial_die_info::fixup, dwarf2_start_subfile)
17082 (guess_full_die_structure_name, dwarf2_name): Likewise.
17083 (determine_prefix): Update.
17084 (guess_full_die_structure_name): Make return type const.
17085 (partial_die_full_name): Return unique_xmalloc_ptr.
17086 (DW_FIELD_ALLOC_CHUNK): Remove.
17087
17088 2020-01-07 Tom Tromey <tromey@adacore.com>
17089
17090 PR build/24937:
17091 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17092
17093 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17094
17095 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17096
17097 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17098
17099 * stack.c (print_frame_info): Move disassemble_next_line code
17100 inside source_print block.
17101
17102 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17103
17104 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17105 gdb/signals.h, as we are now using native signal symbols.
17106
17107 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17108
17109 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17110 overflow by an early check of content vs threshold.
17111 * tui/tui-source.c (tui_source_window::line_is_displayed):
17112 Likewise.
17113
17114 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17115
17116 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17117
17118 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17119
17120 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17121 export table if no section contains it's RVA.
17122
17123 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17124
17125 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17126
17127 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17128
17129 * source.c (print_source_lines_base): Set last_line_listed.
17130
17131 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17132
17133 * tui/tui-disasm.c: Remove trailing spaces.
17134
17135 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17136 Pedro Alves <palves@redhat.com>
17137
17138 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17139 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17140 (windows_gdb_signal_to_target): New function, uses the above
17141 enumeration to convert GDB internal signal codes to equivalent
17142 Windows codes.
17143 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17144 * windows-nat.c: Include "gdb_wait.h".
17145 (get_windows_debug_event): Extract the fatal exception from the
17146 exit status and convert to the equivalent Posix signal number.
17147 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17148 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17149 * gdbsupport/gdb_wait.c: New file, implements
17150 windows_status_to_termsig.
17151 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17152 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17153
17154 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17155
17156 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17157 show_layout.
17158
17159 2020-01-05 Luis Machado <luis.machado@linaro.org>
17160
17161 * aarch64-linux-nat.c
17162 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17163 and bfd_mach_aarch64.
17164
17165 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17166
17167 * ui-file.c (stdio_file::can_emit_style_escape)
17168 (tee_file::can_emit_style_escape): Ensure style is used also on
17169 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17170 to gdb_stdout.
17171 * main.c (set_gdb_data_directory): Use file style to output the
17172 warning that the given pathname is not a directory.
17173 * top.c (show_history_filename, gdb_safe_append_history)
17174 (show_gdb_datadir): Use file style.
17175
17176 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17177
17178 * solib-target.c (struct lm_info_target):
17179 Change offsets to be a unique_xmalloc_ptr.
17180 (solib_target_relocate_section_addresses): Update.
17181
17182 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17183
17184 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17185
17186 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17187
17188 * MAINTAINERS (Write After Approval): Add myself.
17189
17190 2020-01-02 Luis Machado <luis.machado@linaro.org>
17191
17192 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17193 Cell BE architecture.
17194 * target.h (struct target_ops) <thread_architecture>: Likewise.
17195
17196 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17197
17198 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17199
17200 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17201
17202 * MAINTAINERS (Write After Approval): Add myself.
17203
17204 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17205
17206 * gdbarch.sh: Update copyright year range of generated files.
17207
17208 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17209
17210 Update copyright year range in all GDB files.
17211
17212 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17213
17214 * copyright.py: Convert to Python 3.
17215
17216 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17217
17218 * copyright.py: Adapt after move of gnulib directory from gdb
17219 directory to toplevel directory.
17220
17221 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17222
17223 * copyright.py (main): Exit if run from the wrong directory.
17224
17225 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17226
17227 * top.c (print_gdb_version): Change copyright year to 2020.
17228
17229 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17230
17231 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17232
17233 For older changes see ChangeLog-2019.
17234 \f
17235 Local Variables:
17236 mode: change-log
17237 left-margin: 8
17238 fill-column: 74
17239 version-control: never
17240 coding: utf-8
17241 End:
This page took 0.415314 seconds and 4 git commands to generate.