GDB: Fix detection of ELF support when configuring with -Werror=implicit-function...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
2
3 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
4 program.
5
6 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
9 is always initialized.
10
11 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12
13 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
14 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
15
16 2020-11-25 Tom Tromey <tom@tromey.com>
17
18 * eval.c (evaluate_subexp_standard): Remove unnecessary
19 variables.
20
21 2020-11-25 Tom Tromey <tom@tromey.com>
22
23 * d-lang.c: Include parser-defs.h.
24 * rust-lang.c: Include parser-defs.h.
25 * c-lang.h: Do not include parser-defs.h.
26
27 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * regcache.h (struct cached_reg): Remove typedef.
30
31 2020-11-24 Joel Brobecker <brobecker@adacore.com>
32
33 * README: Fix the URL of the MPFR library.
34
35 2020-11-24 Joel Brobecker <brobecker@adacore.com>
36
37 * README: Document the --with-libgmp-prefix configure option.
38
39 2020-11-24 Joel Brobecker <brobecker@adacore.com>
40
41 * NEWS: Add entry documenting support for DWARF-based fixed
42 point types.
43
44 2020-11-24 Joel Brobecker <brobecker@adacore.com>
45
46 * NEWS: Document that building GDB now requires GMP.
47
48 2020-11-24 Joel Brobecker <brobecker@adacore.com>
49
50 * typeprint.c (print_type_scalar): Add handling of
51 TYPE_CODE_FIXED_POINT.
52
53 2020-11-24 Joel Brobecker <brobecker@adacore.com>
54
55 * valarith.c (fixed_point_binop): Replace the
56 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
57 users accordingly.
58
59 2020-11-24 Joel Brobecker <brobecker@adacore.com>
60
61 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
62 replacing fixed_point_scaling_factor. All callers updated
63 throughout this project.
64 (fixed_point_scaling_factor): Delete declaration.
65 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
66 fixed_point_scaling_factor. Adjust implementation accordingly.
67
68 2020-11-24 Joel Brobecker <brobecker@adacore.com>
69
70 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
71 replacing the fixed_point_type_base_type function. All callers
72 updated throughout this project.
73 (fixed_point_type_base_type): Remove declaration.
74 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
75 fixed_point_type_base_type. Adjust implementation accordingly.
76
77 2020-11-24 Joel Brobecker <brobecker@adacore.com>
78
79 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
80 New methods.
81 (INIT_FIXED_POINT_SPECIFIC): Adjust.
82 (TYPE_FIXED_POINT_INFO): Delete macro.
83 (allocate_fixed_point_type_info): Change return type to void.
84 * gdbtypes.c (copy_type_recursive): Replace the use of
85 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
86 (fixed_point_scaling_factor): Likewise.
87 (allocate_fixed_point_type_info): Change return type to void.
88 Adjust implementation accordingly.
89 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
90 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
91
92 2020-11-24 Joel Brobecker <brobecker@adacore.com>
93
94 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
95 into one single gdb::array_view parameter.
96 (gdb_mpz::write): Likewise.
97 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
98 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
99 into one single gdb::array_view parameter.
100 Adjust implementation accordingly.
101 (gdb_mpz::write): Likewise.
102 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
103 * unittests/gmp-utils-selftests.c: Adapt following changes above.
104 * valarith.c, valops.c, valprint.c, value.c: Likewise.
105
106 2020-11-24 Joel Brobecker <brobecker@adacore.com>
107
108 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
109 Change return type to std::string. Update all callers.
110 * gmp-utils.c (gmp_string_printf): Likewise.
111
112 2020-11-24 Joel Brobecker <brobecker@adacore.com>
113
114 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
115 instead of mpq_set_ui to initialize our GMP rational.
116
117 2020-11-23 Tom de Vries <tdevries@suse.de>
118
119 * debuginfod-support.c (debuginfod_source_query)
120 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
121
122 2020-11-21 Tom Tromey <tom@tromey.com>
123
124 * breakpoint.c (watchpoint_exp_is_const): Return bool.
125
126 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
129 Pass 2.0 to pow.
130 (gdb_mpz_write_all_from_small): Likewise.
131
132 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
135 of abs.
136
137 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
138
139 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
140 ctf_arc_open_by_name.
141
142 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
143
144 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
145 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
146
147 2020-11-20 Pedro Alves <pedro@palves.net>
148
149 * language.c (language_arch_info::lookup_primitive_type): Use
150 gdb::function_view instead of gdb::function.
151 (template language_lookup_primitive_type): Rename to ...
152 (language_lookup_primitive_type_1): ... this, and make static.
153 (language_lookup_primitive_type(const struct language_defn *,
154 struct gdbarch *, const char *): Make non-template.
155 (language_lookup_primitive_type(const struct language_defn *,
156 struct gdbarch *, std::function<bool (struct type *)>): Make
157 non-template and use gdb::function_view.
158 * language.h (language_arch_info::lookup_primitive_type): Use
159 gdb::function_view instead of std::function.
160 (language_lookup_primitive_type): No longer template.
161 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
162 lambda instead of a std::function.
163
164 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
165
166 PR tdep/26916
167 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
168 and STOCFH.
169
170 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
173
174 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
177 in `loop_cb` parameter.
178 * gdbarch.c: Re-generate.
179 * gdbarch.h: Re-generate.
180 * arch-utils.c (default_read_core_file_mappings): Remove `other`
181 parameter.
182 * arch-utils.h (default_read_core_file_mappings): Likewise.
183 * corelow.c (core_target::build_file_mappings): Likewise.
184 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
185 (linux_core_info_proc_mappings): Likewise.
186
187 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
190 * NEWS: Mention new options.
191 * f-array-walker.h: New file.
192 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
193 (repack_array_slices): New static global.
194 (show_repack_array_slices): New function.
195 (fortran_array_slicing_debug): New static global.
196 (show_fortran_array_slicing_debug): New function.
197 (value_f90_subarray): Delete.
198 (skip_undetermined_arglist): Delete.
199 (class fortran_array_repacker_base_impl): New class.
200 (class fortran_lazy_array_repacker_impl): New class.
201 (class fortran_array_repacker_impl): New class.
202 (fortran_value_subarray): Complete rewrite.
203 (set_fortran_list): New static global.
204 (show_fortran_list): Likewise.
205 (_initialize_f_language): Register new commands.
206 (fortran_adjust_dynamic_array_base_address_hack): New function.
207 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
208 Declare.
209 * f-valprint.c: Include 'f-array-walker.h'.
210 (class fortran_array_printer_impl): New class.
211 (f77_print_array_1): Delete.
212 (f77_print_array): Delete.
213 (fortran_print_array): New.
214 (f_value_print_inner): Update to call fortran_print_array.
215 * gdbtypes.c: Include 'f-lang.h'.
216 (resolve_dynamic_type_internal): Call
217 fortran_adjust_dynamic_array_base_address_hack.
218
219 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * breakpoint.c (struct watch_options): New struct.
222 (watch_option_defs): New static global.
223 (make_watch_options_def_group): New function.
224 (watch_maybe_just_location): Convert option parsing.
225 (watch_command_completer): New function.
226 (_initialize_breakpoint): Build help text using options mechanism.
227
228 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
231 (watch_command_1): Update parameter types. Convert locals to
232 bool.
233 (watch_command_wrapper): Change parameter type.
234 (watch_maybe_just_location): Change locals to bool.
235 (rwatch_command_wrapper): Update parameter type.
236 (awatch_command_wrapper): Update parameter type.
237 * breakpoint.h (watch_command_wrapper): Change parameter type.
238 (rwatch_command_wrapper): Update parameter type.
239 (awatch_command_wrapper): Update parameter type.
240 * eval.c (fetch_subexp_value): Change parameter type.
241 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
242 'false' not '0'.
243 * value.h (fetch_subexp_value): Change parameter type in
244 declaration.
245
246 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
249 skip_spaces.
250
251 2020-11-18 Keith Seitz <keiths@redhat.com>
252
253 * linux-tdep.c (dump_note_entry_p): Return true instead of
254 checking `filename'.
255
256 2020-11-18 Tom de Vries <tdevries@suse.de>
257
258 * debuginfod-support.c (debuginfod_source_query)
259 (debuginfod_debuginfo_query): Also do early exit if
260 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
261
262 2020-11-18 Tom de Vries <tdevries@suse.de>
263
264 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
265 warning.
266
267 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * gdbtypes.h (get_array_bounds): Return bool, adjust some
270 callers. Move doc here.
271 * gdbtypes.c (get_array_bounds): Return bool
272
273 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
276 assert.
277 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
278 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
279 case to the default.
280
281 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * printcmd.c: Include 'safe-ctype.c'.
284 (skip_over_slash_fmt): New function.
285 (print_command_completer): Call skip_over_slash_fmt.
286 (display_and_x_command_completer): New function.
287 (_initialize_printcmd): Add command completion for 'x' and
288 'display'.
289
290 2020-11-16 Pedro Alves <pedro@palves.net>
291
292 * frame.c (get_prev_frame): Move get_frame_id call from here ...
293 (get_prev_frame_always_1): ... to here.
294 * inline-frame.c (inline_frame_this_id): Mention
295 get_prev_frame_always_1 in comment.
296
297 2020-11-15 Joel Brobecker <brobecker@adacore.com>
298
299 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
300 handling.
301 (value_less): Add fixed-point handling.
302
303 2020-11-15 Joel Brobecker <brobecker@adacore.com>
304
305 * eval.c (binop_promote): Add fixed-point type handling.
306 * valarith.c (fixed_point_binop): New function.
307 (scalar_binop): Add fixed-point type handling.
308 (value_neg): Add fixed-point type handling.
309 * valops.c (value_cast_to_fixed_point): New function.
310 (value_cast): Add fixed-point type handling.
311
312 2020-11-15 Joel Brobecker <brobecker@adacore.com>
313
314 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
315 range types.
316 * c-typeprint.c (c_type_print_varspec_prefix)
317 (c_type_print_varspec_suffix, c_type_print_base_1): Add
318 TYPE_CODE_FIXED_POINT handling.
319 * p-typeprint.c (pascal_type_print_varspec_prefix)
320 (pascal_type_print_varspec_suffix): Likewise.
321 * typeprint.c (print_type_fixed_point): New function.
322 * typeprint.h (print_type_fixed_point): Add declaration.
323
324 2020-11-15 Joel Brobecker <brobecker@adacore.com>
325
326 * printcmd.c (print_scalar_formatted): Add fixed-point type
327 handling when options->format is set.
328
329 2020-11-15 Joel Brobecker <brobecker@adacore.com>
330
331 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
332 * dwarf2/read.c (get_dwarf2_rational_constant)
333 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
334 (has_zero_over_zero_small_attribute): New functions.
335 read_base_type, set_die_type): Add fixed-point type handling.
336 * gdb-gdb.py.in: Add fixed-point type handling.
337 * gdbtypes.c: #include "gmp-utils.h".
338 (create_range_type, set_type_code): Add fixed-point type handling.
339 (init_fixed_point_type): New function.
340 (is_integral_type, is_scalar_type): Add fixed-point type handling.
341 (print_fixed_point_type_info): New function.
342 (recursive_dump_type, copy_type_recursive): Add fixed-point type
343 handling.
344 (fixed_point_type_storage): New typedef.
345 (fixed_point_objfile_key): New static global.
346 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
347 (fixed_point_type_base_type, fixed_point_scaling_factor): New
348 functions.
349 * gdbtypes.h: #include "gmp-utils.h".
350 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
351 (union type_specific) <fixed_point_info>: New field.
352 (struct fixed_point_type_info): New struct.
353 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
354 (init_fixed_point_type, is_fixed_point_type)
355 (fixed_point_type_base_type, fixed_point_scaling_factor)
356 (allocate_fixed_point_type_info): Add declarations.
357 * valprint.c (generic_val_print_fixed_point): New function.
358 (generic_value_print): Add fixed-point type handling.
359 * value.c (value_as_address, unpack_long): Add fixed-point type
360 handling.
361
362 2020-11-15 Joel Brobecker <brobecker@adacore.com>
363
364 * utils.h (uinteger_pow): Add declaration.
365 * utils.c (uinteger_pow): Moved here (without changes)...
366 * valarith.c (uinteger_pow): ... from here.
367
368 2020-11-15 Joel Brobecker <brobecker@adacore.com>
369
370 * gmp-utils.h, gmp-utils.c: New file.
371 * unittests/gmp-utils-selftests.c: New file.
372 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
373 unittests/gmp-utils-selftests.c.
374 (COMMON_SFILES) Add gmp-utils.c.
375 (HFILES_NO_SRCDIR): Add gmp-utils.h.
376
377 2020-11-15 Joel Brobecker <brobecker@adacore.com>
378
379 * configure.ac: Generate an error if a usable GMP library
380 could not be found.
381 * configure: Regenerate.
382
383 2020-11-15 Joel Brobecker <brobecker@adacore.com>
384
385 * configure.ac: Add support for --with-libgmp-prefix.
386 * Makefile.in (LIBGMP): New variable.
387 (CLIBS): Include $(LIBGMP).
388 * configure, config.in: Regenerate
389
390 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 PR cli/26879
393 * f-exp.y (COMPLETE): New token.
394 (exp): Two new rules for tab-completion.
395 (saw_name_at_eof): New static global.
396 (last_was_structop): Likewise.
397 (yylex): Set new variables, and return COMPLETE token at the end
398 of the input stream in some cases.
399
400 2020-11-14 Tom Tromey <tom@tromey.com>
401
402 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
403
404 2020-11-14 Tom Tromey <tom@tromey.com>
405
406 * opencl-lang.c (opencl_component_ref): Make "comps" const.
407
408 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
411
412 2020-11-13 Tom Tromey <tom@tromey.com>
413
414 * c-lang.c (convert_ucn, convert_octal, convert_hex)
415 (convert_escape, parse_one_string): Constify.
416
417 2020-11-13 Keith Seitz <keiths@redhat.com>
418
419 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
420 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
421 outside of ELF segments" warning for debugin
422
423 2020-11-13 Keith Seitz <keiths@redhat.com>
424
425 PR gdb/23034
426 * elfread.c (elf_symfile_segments): Output a BFD file name
427 for the "Loadable section ... outside of ELF segments" warning.
428
429 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
430
431 PR gdb/26835
432 * arm-tdep.c (class arm_instruction_reader): New.
433 (target_arm_instruction_reader): New.
434 (arm_analyze_prologue): Add instruction reader parameter and use
435 it. Use arm_expand_immediate.
436 (class target_arm_instruction_reader): Adjust.
437 (arm_skip_prologue): Adjust.
438 (arm_expand_immediate): New.
439 (arm_scan_prologue): Adjust.
440 (arm_analyze_prologue_test): New.
441 (class test_arm_instruction_reader): New.
442
443 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * f-lang.c (fortran_argument_convert): Add declaration. Add
446 header comment, taken from f-lang.h. Make static.
447 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
448 (fortran_argument_convert): Delete declaration.
449
450 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * ada-exp.y (find_primitive_type): Make parameter const.
453 * ada-lang.c (enum ada_primitive_types): Delete.
454 (ada_language::language_arch_info): Update.
455 * c-lang.c (enum c_primitive_types): Delete.
456 (c_language_arch_info): Update.
457 (enum cplus_primitive_types): Delete.
458 (cplus_language::language_arch_info): Update.
459 * d-lang.c (enum d_primitive_types): Delete.
460 (d_language::language_arch_info): Update.
461 * f-lang.c (enum f_primitive_types): Delete.
462 (f_language::language_arch_info): Update.
463 * go-lang.c (enum go_primitive_types): Delete.
464 (go_language::language_arch_info): Update.
465 * language.c (auto_or_unknown_language::language_arch_info):
466 Update.
467 (language_gdbarch_post_init): Use obstack_new, use array indexing.
468 (language_string_char_type): Add header comment, call function in
469 language_arch_info.
470 (language_bool_type): Likewise
471 (language_arch_info::bool_type): Define.
472 (language_lookup_primitive_type_1): Delete.
473 (language_lookup_primitive_type): Rewrite as a templated function
474 to call function in language_arch_info, then instantiate twice.
475 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
476 (language_arch_info::lookup_primitive_type_and_symbol): Define.
477 (language_arch_info::lookup_primitive_type): Define twice with
478 different signatures.
479 (language_arch_info::lookup_primitive_type_as_symbol): Define.
480 (language_lookup_primitive_type_as_symbol): Rewrite to call a
481 member function in language_arch_info.
482 * language.h (language_arch_info): Complete rewrite.
483 (language_lookup_primitive_type): Make templated.
484 * m2-lang.c (enum m2_primitive_types): Delete.
485 (m2_language::language_arch_info): Update.
486 * opencl-lang.c (OCL_P_TYPE): Delete.
487 (enum opencl_primitive_types): Delete.
488 (opencl_type_data): Delete.
489 (builtin_opencl_type): Delete.
490 (lookup_opencl_vector_type): Update.
491 (opencl_language::language_arch_info): Update, lots of content
492 moved from...
493 (build_opencl_types): ...here. This function is now deleted.
494 (_initialize_opencl_language): Delete.
495 * p-lang.c (enum pascal_primitive_types): Delete.
496 (pascal_language::language_arch_info): Update.
497 * rust-lang.c (enum rust_primitive_types): Delete.
498 (rust_language::language_arch_info): Update.
499
500 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
501
502 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
503 dwarf2_queue_guard.
504
505 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
508 comment.
509
510 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
511
512 * dwarf2/read.c (dwarf_read_debug_printf,
513 dwarf_read_debug_printf_v): New macros, use throughout the file.
514
515 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
516
517 * arc-linux-tdep.c (collect_register): Populate "eret" by
518 "pc" value from the regcache when asked for "pc" value.
519
520 2020-11-12 Tom Tromey <tom@tromey.com>
521
522 PR rust/26799:
523 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
524 exist.
525
526 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * features/Makefile (XMLTOC): Add rx.xml.
529 (FEATURE_XMLFILES): Remove rx.xml.
530 (FEATURE_CFILES rule): Pass '-single-feature' flag.
531 * features/rx.c: Regenerate.
532 * features/rx.xml: Wrap in `target` tags, and reindent.
533 * target-descriptions.c (struct maint_print_c_tdesc_options): New
534 structure.
535 (maint_print_c_tdesc_opt_def): New typedef.
536 (maint_print_c_tdesc_opt_defs): New static global.
537 (make_maint_print_c_tdesc_options_def_group): New function.
538 (maint_print_c_tdesc_cmd): Make use of command line flags, only
539 print single feature C file for target descriptions containing a
540 single feature.
541 (maint_print_c_tdesc_cmd_completer): New function.
542 (_initialize_target_descriptions): Update call to register command
543 completer, and include command line flag in help text.
544
545 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
548 numbers.
549 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
550 enum values.
551
552 2020-11-10 Tom Tromey <tom@tromey.com>
553
554 * value.h (internalvar_name): Update.
555 * value.c (internalvar_name): Make return type const.
556
557 2020-11-10 Tom Tromey <tom@tromey.com>
558
559 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
560 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
561 const.
562
563 2020-11-10 Tom Tromey <tom@tromey.com>
564
565 * objc-lang.h (value_nsstring): Update.
566 * objc-lang.c (value_nsstring): Make "ptr" const.
567
568 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * expprint.c (print_subexp_funcall): Increment expression position
571 after reading argument count.
572 * f-lang.c (print_subexp_f): Skip over opcode before calling
573 common function.
574 (dump_subexp_body_f): Likewise.
575
576 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
577
578 PR python/26832
579 * configure: Regenerate.
580 * configure.ac: Check for python modules ctypes instead of
581 itertools.
582
583 2020-11-06 Pedro Alves <pedro@palves.net>
584
585 * macroexp.c (struct macro_buffer): Split in two classes. Add
586 uses adjusted.
587 (struct shared_macro_buffer): New, factored out from struct
588 macro_buffer.
589 (struct growable_macro_buffer): New, factored out from struct
590 macro_buffer.
591 (set_token, get_comment, get_identifier, get_pp_number)
592 (get_character_constant, get_string_literal, get_punctuator)
593 (get_next_token_for_substitution): Constify parameters.
594 (substitute_args): Constify locals.
595
596 2020-11-05 Tom Tromey <tom@tromey.com>
597
598 * dwarf2/read.c (read_cutu_die_from_dwo)
599 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
600 (build_type_psymtabs_1): Update.
601 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
602 parameter.
603 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
604 Don't read section. Add assert.
605
606 2020-11-04 Tom Tromey <tromey@adacore.com>
607
608 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
609
610 2020-11-04 Tom Tromey <tromey@adacore.com>
611
612 * ada-typeprint.c (ada_print_type): Handle __T types.
613
614 2020-11-04 Tom Tromey <tromey@adacore.com>
615
616 * dwarf2/read.c (add_partial_symbol, process_die):
617 Handle DW_TAG_array_type.
618 (is_type_tag_for_partial): Add "lang" parameter.
619 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
620
621 2020-11-04 Tom Tromey <tromey@adacore.com>
622
623 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
624
625 2020-11-04 Tom Tromey <tromey@adacore.com>
626
627 * dwarf2/read.c (read_array_type): Only apply stride to innermost
628 array.
629
630 2020-11-04 Tom Tromey <tromey@adacore.com>
631
632 * gdbtypes.c (update_static_array_size): Handle bit stride.
633
634 2020-11-04 Tom Tromey <tromey@adacore.com>
635
636 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
637
638 2020-11-04 Tom Tromey <tromey@adacore.com>
639
640 * ada-lang.c (ada_is_any_packed_array_type): New function.
641 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
642
643 2020-11-04 Tom Tromey <tromey@adacore.com>
644
645 * dwarf2/read.c (recognize_bound_expression)
646 (quirk_ada_thick_pointer): New functions.
647 (read_array_type): Call quirk_ada_thick_pointer.
648 (set_die_type): Add "skip_data_location" parameter.
649 (quirk_ada_thick_pointer): New function.
650 (process_structure_scope): Call quirk_ada_thick_pointer.
651 * ada-lang.c (ada_is_unconstrained_packed_array_type)
652 (decode_packed_array_bitsize): Handle thick pointers without
653 parallel types.
654 (ada_is_gnat_encoded_packed_array_type): Rename from
655 ada_is_packed_array_type.
656 (ada_is_constrained_packed_array_type): Update.
657 * ada-valprint.c (ada_val_print_gnat_array): Remove.
658 (ada_value_print_1): Use ada_get_decoded_value.
659
660 2020-11-04 Tom Tromey <tromey@adacore.com>
661
662 * ada-lang.c (recursively_update_array_bitsize): New function.
663 (decode_constrained_packed_array_type): Call it.
664
665 2020-11-04 Tom Tromey <tromey@adacore.com>
666
667 * ada-lang.c (to_fixed_array_type): Error if
668 decode_constrained_packed_array_type returns NULL.
669
670 2020-11-04 Tom Tromey <tromey@adacore.com>
671
672 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
673
674 2020-11-02 Tom Tromey <tromey@adacore.com>
675
676 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
677 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
678 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
679 * amd64-ravenscar-thread.c: New file.
680 * amd64-ravenscar-thread.h: New file.
681 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
682 * configure.tgt (amd64_tobjs): Add ravenscar objects.
683
684 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * main.c (execute_cmdargs): New function.
687 (captured_main_1): Make use of execute_cmdargs.
688
689 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
690
691 * NEWS: Mention changes to config file search path.
692 * main.c
693
694 2020-11-02 Tom Tromey <tromey@adacore.com>
695
696 * python/python.c: Consolidate two HAVE_PYTHON blocks.
697 (python_GdbModuleDef): Move earlier. Now static.
698 (do_start_initialization): Consolidate some IS_PY3K blocks.
699
700 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
701
702 * aarch64-linux-tdep.c: Fix indentation.
703 * aarch64-ravenscar-thread.c: Fix indentation.
704 * aarch64-tdep.c: Fix indentation.
705 * aarch64-tdep.h: Fix indentation.
706 * ada-lang.c: Fix indentation.
707 * ada-lang.h: Fix indentation.
708 * ada-tasks.c: Fix indentation.
709 * ada-typeprint.c: Fix indentation.
710 * ada-valprint.c: Fix indentation.
711 * ada-varobj.c: Fix indentation.
712 * addrmap.c: Fix indentation.
713 * addrmap.h: Fix indentation.
714 * agent.c: Fix indentation.
715 * aix-thread.c: Fix indentation.
716 * alpha-bsd-nat.c: Fix indentation.
717 * alpha-linux-tdep.c: Fix indentation.
718 * alpha-mdebug-tdep.c: Fix indentation.
719 * alpha-nbsd-tdep.c: Fix indentation.
720 * alpha-obsd-tdep.c: Fix indentation.
721 * alpha-tdep.c: Fix indentation.
722 * amd64-bsd-nat.c: Fix indentation.
723 * amd64-darwin-tdep.c: Fix indentation.
724 * amd64-linux-nat.c: Fix indentation.
725 * amd64-linux-tdep.c: Fix indentation.
726 * amd64-nat.c: Fix indentation.
727 * amd64-obsd-tdep.c: Fix indentation.
728 * amd64-tdep.c: Fix indentation.
729 * amd64-windows-tdep.c: Fix indentation.
730 * annotate.c: Fix indentation.
731 * arc-tdep.c: Fix indentation.
732 * arch-utils.c: Fix indentation.
733 * arch/arm-get-next-pcs.c: Fix indentation.
734 * arch/arm.c: Fix indentation.
735 * arm-linux-nat.c: Fix indentation.
736 * arm-linux-tdep.c: Fix indentation.
737 * arm-nbsd-tdep.c: Fix indentation.
738 * arm-pikeos-tdep.c: Fix indentation.
739 * arm-tdep.c: Fix indentation.
740 * arm-tdep.h: Fix indentation.
741 * arm-wince-tdep.c: Fix indentation.
742 * auto-load.c: Fix indentation.
743 * auxv.c: Fix indentation.
744 * avr-tdep.c: Fix indentation.
745 * ax-gdb.c: Fix indentation.
746 * ax-general.c: Fix indentation.
747 * bfin-linux-tdep.c: Fix indentation.
748 * block.c: Fix indentation.
749 * block.h: Fix indentation.
750 * blockframe.c: Fix indentation.
751 * bpf-tdep.c: Fix indentation.
752 * break-catch-sig.c: Fix indentation.
753 * break-catch-syscall.c: Fix indentation.
754 * break-catch-throw.c: Fix indentation.
755 * breakpoint.c: Fix indentation.
756 * breakpoint.h: Fix indentation.
757 * bsd-uthread.c: Fix indentation.
758 * btrace.c: Fix indentation.
759 * build-id.c: Fix indentation.
760 * buildsym-legacy.h: Fix indentation.
761 * buildsym.c: Fix indentation.
762 * c-typeprint.c: Fix indentation.
763 * c-valprint.c: Fix indentation.
764 * c-varobj.c: Fix indentation.
765 * charset.c: Fix indentation.
766 * cli/cli-cmds.c: Fix indentation.
767 * cli/cli-decode.c: Fix indentation.
768 * cli/cli-decode.h: Fix indentation.
769 * cli/cli-script.c: Fix indentation.
770 * cli/cli-setshow.c: Fix indentation.
771 * coff-pe-read.c: Fix indentation.
772 * coffread.c: Fix indentation.
773 * compile/compile-cplus-types.c: Fix indentation.
774 * compile/compile-object-load.c: Fix indentation.
775 * compile/compile-object-run.c: Fix indentation.
776 * completer.c: Fix indentation.
777 * corefile.c: Fix indentation.
778 * corelow.c: Fix indentation.
779 * cp-abi.h: Fix indentation.
780 * cp-namespace.c: Fix indentation.
781 * cp-support.c: Fix indentation.
782 * cp-valprint.c: Fix indentation.
783 * cris-linux-tdep.c: Fix indentation.
784 * cris-tdep.c: Fix indentation.
785 * darwin-nat-info.c: Fix indentation.
786 * darwin-nat.c: Fix indentation.
787 * darwin-nat.h: Fix indentation.
788 * dbxread.c: Fix indentation.
789 * dcache.c: Fix indentation.
790 * disasm.c: Fix indentation.
791 * dtrace-probe.c: Fix indentation.
792 * dwarf2/abbrev.c: Fix indentation.
793 * dwarf2/attribute.c: Fix indentation.
794 * dwarf2/expr.c: Fix indentation.
795 * dwarf2/frame.c: Fix indentation.
796 * dwarf2/index-cache.c: Fix indentation.
797 * dwarf2/index-write.c: Fix indentation.
798 * dwarf2/line-header.c: Fix indentation.
799 * dwarf2/loc.c: Fix indentation.
800 * dwarf2/macro.c: Fix indentation.
801 * dwarf2/read.c: Fix indentation.
802 * dwarf2/read.h: Fix indentation.
803 * elfread.c: Fix indentation.
804 * eval.c: Fix indentation.
805 * event-top.c: Fix indentation.
806 * exec.c: Fix indentation.
807 * exec.h: Fix indentation.
808 * expprint.c: Fix indentation.
809 * f-lang.c: Fix indentation.
810 * f-typeprint.c: Fix indentation.
811 * f-valprint.c: Fix indentation.
812 * fbsd-nat.c: Fix indentation.
813 * fbsd-tdep.c: Fix indentation.
814 * findvar.c: Fix indentation.
815 * fork-child.c: Fix indentation.
816 * frame-unwind.c: Fix indentation.
817 * frame-unwind.h: Fix indentation.
818 * frame.c: Fix indentation.
819 * frv-linux-tdep.c: Fix indentation.
820 * frv-tdep.c: Fix indentation.
821 * frv-tdep.h: Fix indentation.
822 * ft32-tdep.c: Fix indentation.
823 * gcore.c: Fix indentation.
824 * gdb_bfd.c: Fix indentation.
825 * gdbarch.sh: Fix indentation.
826 * gdbarch.c: Re-generate
827 * gdbarch.h: Re-generate.
828 * gdbcore.h: Fix indentation.
829 * gdbthread.h: Fix indentation.
830 * gdbtypes.c: Fix indentation.
831 * gdbtypes.h: Fix indentation.
832 * glibc-tdep.c: Fix indentation.
833 * gnu-nat.c: Fix indentation.
834 * gnu-nat.h: Fix indentation.
835 * gnu-v2-abi.c: Fix indentation.
836 * gnu-v3-abi.c: Fix indentation.
837 * go32-nat.c: Fix indentation.
838 * guile/guile-internal.h: Fix indentation.
839 * guile/scm-cmd.c: Fix indentation.
840 * guile/scm-frame.c: Fix indentation.
841 * guile/scm-iterator.c: Fix indentation.
842 * guile/scm-math.c: Fix indentation.
843 * guile/scm-ports.c: Fix indentation.
844 * guile/scm-pretty-print.c: Fix indentation.
845 * guile/scm-value.c: Fix indentation.
846 * h8300-tdep.c: Fix indentation.
847 * hppa-linux-nat.c: Fix indentation.
848 * hppa-linux-tdep.c: Fix indentation.
849 * hppa-nbsd-nat.c: Fix indentation.
850 * hppa-nbsd-tdep.c: Fix indentation.
851 * hppa-obsd-nat.c: Fix indentation.
852 * hppa-tdep.c: Fix indentation.
853 * hppa-tdep.h: Fix indentation.
854 * i386-bsd-nat.c: Fix indentation.
855 * i386-darwin-nat.c: Fix indentation.
856 * i386-darwin-tdep.c: Fix indentation.
857 * i386-dicos-tdep.c: Fix indentation.
858 * i386-gnu-nat.c: Fix indentation.
859 * i386-linux-nat.c: Fix indentation.
860 * i386-linux-tdep.c: Fix indentation.
861 * i386-nto-tdep.c: Fix indentation.
862 * i386-obsd-tdep.c: Fix indentation.
863 * i386-sol2-nat.c: Fix indentation.
864 * i386-tdep.c: Fix indentation.
865 * i386-tdep.h: Fix indentation.
866 * i386-windows-tdep.c: Fix indentation.
867 * i387-tdep.c: Fix indentation.
868 * i387-tdep.h: Fix indentation.
869 * ia64-libunwind-tdep.c: Fix indentation.
870 * ia64-libunwind-tdep.h: Fix indentation.
871 * ia64-linux-nat.c: Fix indentation.
872 * ia64-linux-tdep.c: Fix indentation.
873 * ia64-tdep.c: Fix indentation.
874 * ia64-tdep.h: Fix indentation.
875 * ia64-vms-tdep.c: Fix indentation.
876 * infcall.c: Fix indentation.
877 * infcmd.c: Fix indentation.
878 * inferior.c: Fix indentation.
879 * infrun.c: Fix indentation.
880 * iq2000-tdep.c: Fix indentation.
881 * language.c: Fix indentation.
882 * linespec.c: Fix indentation.
883 * linux-fork.c: Fix indentation.
884 * linux-nat.c: Fix indentation.
885 * linux-tdep.c: Fix indentation.
886 * linux-thread-db.c: Fix indentation.
887 * lm32-tdep.c: Fix indentation.
888 * m2-lang.c: Fix indentation.
889 * m2-typeprint.c: Fix indentation.
890 * m2-valprint.c: Fix indentation.
891 * m32c-tdep.c: Fix indentation.
892 * m32r-linux-tdep.c: Fix indentation.
893 * m32r-tdep.c: Fix indentation.
894 * m68hc11-tdep.c: Fix indentation.
895 * m68k-bsd-nat.c: Fix indentation.
896 * m68k-linux-nat.c: Fix indentation.
897 * m68k-linux-tdep.c: Fix indentation.
898 * m68k-tdep.c: Fix indentation.
899 * machoread.c: Fix indentation.
900 * macrocmd.c: Fix indentation.
901 * macroexp.c: Fix indentation.
902 * macroscope.c: Fix indentation.
903 * macrotab.c: Fix indentation.
904 * macrotab.h: Fix indentation.
905 * main.c: Fix indentation.
906 * mdebugread.c: Fix indentation.
907 * mep-tdep.c: Fix indentation.
908 * mi/mi-cmd-catch.c: Fix indentation.
909 * mi/mi-cmd-disas.c: Fix indentation.
910 * mi/mi-cmd-env.c: Fix indentation.
911 * mi/mi-cmd-stack.c: Fix indentation.
912 * mi/mi-cmd-var.c: Fix indentation.
913 * mi/mi-cmds.c: Fix indentation.
914 * mi/mi-main.c: Fix indentation.
915 * mi/mi-parse.c: Fix indentation.
916 * microblaze-tdep.c: Fix indentation.
917 * minidebug.c: Fix indentation.
918 * minsyms.c: Fix indentation.
919 * mips-linux-nat.c: Fix indentation.
920 * mips-linux-tdep.c: Fix indentation.
921 * mips-nbsd-tdep.c: Fix indentation.
922 * mips-tdep.c: Fix indentation.
923 * mn10300-linux-tdep.c: Fix indentation.
924 * mn10300-tdep.c: Fix indentation.
925 * moxie-tdep.c: Fix indentation.
926 * msp430-tdep.c: Fix indentation.
927 * namespace.h: Fix indentation.
928 * nat/fork-inferior.c: Fix indentation.
929 * nat/gdb_ptrace.h: Fix indentation.
930 * nat/linux-namespaces.c: Fix indentation.
931 * nat/linux-osdata.c: Fix indentation.
932 * nat/netbsd-nat.c: Fix indentation.
933 * nat/x86-dregs.c: Fix indentation.
934 * nbsd-nat.c: Fix indentation.
935 * nbsd-tdep.c: Fix indentation.
936 * nios2-linux-tdep.c: Fix indentation.
937 * nios2-tdep.c: Fix indentation.
938 * nto-procfs.c: Fix indentation.
939 * nto-tdep.c: Fix indentation.
940 * objfiles.c: Fix indentation.
941 * objfiles.h: Fix indentation.
942 * opencl-lang.c: Fix indentation.
943 * or1k-tdep.c: Fix indentation.
944 * osabi.c: Fix indentation.
945 * osabi.h: Fix indentation.
946 * osdata.c: Fix indentation.
947 * p-lang.c: Fix indentation.
948 * p-typeprint.c: Fix indentation.
949 * p-valprint.c: Fix indentation.
950 * parse.c: Fix indentation.
951 * ppc-linux-nat.c: Fix indentation.
952 * ppc-linux-tdep.c: Fix indentation.
953 * ppc-nbsd-nat.c: Fix indentation.
954 * ppc-nbsd-tdep.c: Fix indentation.
955 * ppc-obsd-nat.c: Fix indentation.
956 * ppc-ravenscar-thread.c: Fix indentation.
957 * ppc-sysv-tdep.c: Fix indentation.
958 * ppc64-tdep.c: Fix indentation.
959 * printcmd.c: Fix indentation.
960 * proc-api.c: Fix indentation.
961 * producer.c: Fix indentation.
962 * producer.h: Fix indentation.
963 * prologue-value.c: Fix indentation.
964 * prologue-value.h: Fix indentation.
965 * psymtab.c: Fix indentation.
966 * python/py-arch.c: Fix indentation.
967 * python/py-bpevent.c: Fix indentation.
968 * python/py-event.c: Fix indentation.
969 * python/py-event.h: Fix indentation.
970 * python/py-finishbreakpoint.c: Fix indentation.
971 * python/py-frame.c: Fix indentation.
972 * python/py-framefilter.c: Fix indentation.
973 * python/py-inferior.c: Fix indentation.
974 * python/py-infthread.c: Fix indentation.
975 * python/py-objfile.c: Fix indentation.
976 * python/py-prettyprint.c: Fix indentation.
977 * python/py-registers.c: Fix indentation.
978 * python/py-signalevent.c: Fix indentation.
979 * python/py-stopevent.c: Fix indentation.
980 * python/py-stopevent.h: Fix indentation.
981 * python/py-threadevent.c: Fix indentation.
982 * python/py-tui.c: Fix indentation.
983 * python/py-unwind.c: Fix indentation.
984 * python/py-value.c: Fix indentation.
985 * python/py-xmethods.c: Fix indentation.
986 * python/python-internal.h: Fix indentation.
987 * python/python.c: Fix indentation.
988 * ravenscar-thread.c: Fix indentation.
989 * record-btrace.c: Fix indentation.
990 * record-full.c: Fix indentation.
991 * record.c: Fix indentation.
992 * reggroups.c: Fix indentation.
993 * regset.h: Fix indentation.
994 * remote-fileio.c: Fix indentation.
995 * remote.c: Fix indentation.
996 * reverse.c: Fix indentation.
997 * riscv-linux-tdep.c: Fix indentation.
998 * riscv-ravenscar-thread.c: Fix indentation.
999 * riscv-tdep.c: Fix indentation.
1000 * rl78-tdep.c: Fix indentation.
1001 * rs6000-aix-tdep.c: Fix indentation.
1002 * rs6000-lynx178-tdep.c: Fix indentation.
1003 * rs6000-nat.c: Fix indentation.
1004 * rs6000-tdep.c: Fix indentation.
1005 * rust-lang.c: Fix indentation.
1006 * rx-tdep.c: Fix indentation.
1007 * s12z-tdep.c: Fix indentation.
1008 * s390-linux-tdep.c: Fix indentation.
1009 * score-tdep.c: Fix indentation.
1010 * ser-base.c: Fix indentation.
1011 * ser-mingw.c: Fix indentation.
1012 * ser-uds.c: Fix indentation.
1013 * ser-unix.c: Fix indentation.
1014 * serial.c: Fix indentation.
1015 * sh-linux-tdep.c: Fix indentation.
1016 * sh-nbsd-tdep.c: Fix indentation.
1017 * sh-tdep.c: Fix indentation.
1018 * skip.c: Fix indentation.
1019 * sol-thread.c: Fix indentation.
1020 * solib-aix.c: Fix indentation.
1021 * solib-darwin.c: Fix indentation.
1022 * solib-frv.c: Fix indentation.
1023 * solib-svr4.c: Fix indentation.
1024 * solib.c: Fix indentation.
1025 * source.c: Fix indentation.
1026 * sparc-linux-tdep.c: Fix indentation.
1027 * sparc-nbsd-tdep.c: Fix indentation.
1028 * sparc-obsd-tdep.c: Fix indentation.
1029 * sparc-ravenscar-thread.c: Fix indentation.
1030 * sparc-tdep.c: Fix indentation.
1031 * sparc64-linux-tdep.c: Fix indentation.
1032 * sparc64-nbsd-tdep.c: Fix indentation.
1033 * sparc64-obsd-tdep.c: Fix indentation.
1034 * sparc64-tdep.c: Fix indentation.
1035 * stabsread.c: Fix indentation.
1036 * stack.c: Fix indentation.
1037 * stap-probe.c: Fix indentation.
1038 * stubs/ia64vms-stub.c: Fix indentation.
1039 * stubs/m32r-stub.c: Fix indentation.
1040 * stubs/m68k-stub.c: Fix indentation.
1041 * stubs/sh-stub.c: Fix indentation.
1042 * stubs/sparc-stub.c: Fix indentation.
1043 * symfile-mem.c: Fix indentation.
1044 * symfile.c: Fix indentation.
1045 * symfile.h: Fix indentation.
1046 * symmisc.c: Fix indentation.
1047 * symtab.c: Fix indentation.
1048 * symtab.h: Fix indentation.
1049 * target-float.c: Fix indentation.
1050 * target.c: Fix indentation.
1051 * target.h: Fix indentation.
1052 * tic6x-tdep.c: Fix indentation.
1053 * tilegx-linux-tdep.c: Fix indentation.
1054 * tilegx-tdep.c: Fix indentation.
1055 * top.c: Fix indentation.
1056 * tracefile-tfile.c: Fix indentation.
1057 * tracepoint.c: Fix indentation.
1058 * tui/tui-disasm.c: Fix indentation.
1059 * tui/tui-io.c: Fix indentation.
1060 * tui/tui-regs.c: Fix indentation.
1061 * tui/tui-stack.c: Fix indentation.
1062 * tui/tui-win.c: Fix indentation.
1063 * tui/tui-winsource.c: Fix indentation.
1064 * tui/tui.c: Fix indentation.
1065 * typeprint.c: Fix indentation.
1066 * ui-out.h: Fix indentation.
1067 * unittests/copy_bitwise-selftests.c: Fix indentation.
1068 * unittests/memory-map-selftests.c: Fix indentation.
1069 * utils.c: Fix indentation.
1070 * v850-tdep.c: Fix indentation.
1071 * valarith.c: Fix indentation.
1072 * valops.c: Fix indentation.
1073 * valprint.c: Fix indentation.
1074 * valprint.h: Fix indentation.
1075 * value.c: Fix indentation.
1076 * value.h: Fix indentation.
1077 * varobj.c: Fix indentation.
1078 * vax-tdep.c: Fix indentation.
1079 * windows-nat.c: Fix indentation.
1080 * windows-tdep.c: Fix indentation.
1081 * xcoffread.c: Fix indentation.
1082 * xml-syscall.c: Fix indentation.
1083 * xml-tdesc.c: Fix indentation.
1084 * xstormy16-tdep.c: Fix indentation.
1085 * xtensa-config.c: Fix indentation.
1086 * xtensa-linux-nat.c: Fix indentation.
1087 * xtensa-linux-tdep.c: Fix indentation.
1088 * xtensa-tdep.c: Fix indentation.
1089
1090 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1091 Craig Blackmore <craig.blackmore@embecosm.com>
1092
1093 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1094 as an unsigned value.
1095
1096 2020-11-01 Tom Tromey <tom@tromey.com>
1097
1098 * dbxread.c (dbx_end_psymtab): Update.
1099 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1100 (build_type_psymtabs_reader): Update.
1101 * xcoffread.c (xcoff_end_psymtab): Update.
1102 * ctfread.c (scan_partial_symbols): Update.
1103 * psymtab.c (sort_pst_symbols): Remove.
1104 (partial_symtab::end): Rename from end_psymtab_common. Inline
1105 sort_pst_symbols.
1106 * psympriv.h (struct partial_symtab) <end>: New method.
1107 (end_psymtab_common): Don't declare.
1108
1109 2020-11-01 Tom Tromey <tom@tromey.com>
1110
1111 * symmisc.c (count_psyms): New function.
1112 (print_objfile_statistics): Use it.
1113 * psymtab.c (append_psymbol_to_list): Remove.
1114 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1115 * objfiles.h (struct objstats) <n_psyms>: Remove.
1116
1117 2020-11-01 Tom Tromey <tom@tromey.com>
1118
1119 * dbxread.c (dbx_end_psymtab): Update.
1120 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1121 (build_type_psymtabs_reader): Update.
1122 * xcoffread.c (xcoff_end_psymtab): Update.
1123 * ctfread.c (scan_partial_symbols): Update.
1124 * psympriv.h (end_psymtab_common): Update.
1125 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1126 (sort_pst_symbols): Likewise.
1127
1128 2020-11-01 Tom Tromey <tom@tromey.com>
1129
1130 * dbxread.c (dbx_symfile_read): Update.
1131 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1132 * xcoffread.c (xcoff_initial_scan): Update.
1133 * psympriv.h (init_psymbol_list): Don't declare.
1134 * psymtab.c (init_psymbol_list): Remove.
1135
1136 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1137
1138 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1139 gnat_encoded_fixed_type_info. Update all callers.
1140
1141 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1142
1143 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1144 line too long.
1145
1146 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1147
1148 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1149 cast_from_fixed. Update all callers.
1150 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1151 Update all callers.
1152 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1153 Update all callers.
1154 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1155 ada_scaling_factor.
1156 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1157 to print_gnat_encoded_fixed_point_type.
1158 * ada-valprint.c: Likewise.
1159
1160 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1161
1162 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1163 (debug_prefixed_printf): Add check of debug_displaced flag.
1164 * linux-nat.c (linux_nat_debug_printf): Add check of
1165 debug_linux_nat flag.
1166
1167 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * infrun.c (infrun_debug_printf_1): Remove.
1170 (displaced_debug_printf_1): Remove.
1171 (stop_all_threads): Use debug_prefixed_printf.
1172 * infrun.h (infrun_debug_printf_1): Remove.
1173 (infrun_debug_printf): Use debug_prefixed_printf.
1174 (displaced_debug_printf_1): Remove.
1175 (displaced_debug_printf): Use debug_prefixed_printf.
1176 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1177 (linux_nat_debug_printf): Use debug_prefixed_printf.
1178
1179 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 * configure: Re-generate.
1182 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1183 AC_LANG_PROGRAM.
1184
1185 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * configure: Re-generate.
1188
1189 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1190
1191 * configure: Re-generate.
1192
1193 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 * configure: Re-generate.
1196
1197 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1198
1199 * configure: Re-generate.
1200
1201 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * acinclude.m4: Modernize.
1204 * configure: Re-generate.
1205
1206 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1207
1208 * configure.ac: Modernize.
1209 * configure: Re-generate.
1210
1211 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1214 * configure: Re-generate.
1215 * configure.ac: Remove AM_PROG_CC_STDC.
1216
1217 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1220 AC_CANONICAL_SYSTEM.
1221 * configure: Re-generate.
1222
1223 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1224
1225 * infrun.h (displaced_debug_printf): New macro. Replace
1226 displaced debug prints throughout to use it.
1227 (displaced_debug_printf_1): New declaration.
1228 (displaced_step_dump_bytes): Return string, remove ui_file
1229 parameter, update all callers.
1230 * infrun.c (displaced_debug_printf_1): New function.
1231 (displaced_step_dump_bytes): Return string, remove ui_file
1232 parameter
1233
1234 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1237
1238 2020-10-30 Tom Tromey <tromey@adacore.com>
1239
1240 * Makefile.in (stamp-init): Depend on config.status.
1241
1242 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1243
1244 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1245
1246 2020-10-30 Pedro Alves <pedro@palves.net>
1247
1248 * thread.c (lookup_selected_frame): Move ...
1249 * frame.c (lookup_selected_frame): ... here.
1250
1251 2020-10-30 Pedro Alves <pedro@palves.net>
1252
1253 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1254 * frame.c
1255 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1256 Use save_selected_frame. Save language as well.
1257 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1258 Use restore_selected_frame, and restore language as well.
1259 (selected_frame_id, selected_frame_level): New.
1260 (selected_frame): Update comments.
1261 (save_selected_frame, restore_selected_frame): New.
1262 (get_selected_frame): Use lookup_selected_frame.
1263 (get_selected_frame_if_set): Delete.
1264 (select_frame): Record selected_frame_level and selected_frame_id.
1265 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1266 fields.
1267 (get_selected_frame): Make 'message' parameter optional.
1268 (get_selected_frame_if_set): Delete declaration.
1269 (select_frame): Update comments.
1270 (save_selected_frame, restore_selected_frame)
1271 (lookup_selected_frame): Declare.
1272 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1273 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1274 New field.
1275 (save_infcall_control_state): Use save_selected_frame.
1276 (restore_selected_frame): Delete.
1277 (restore_infcall_control_state): Use restore_selected_frame.
1278 * stack.c (select_frame_command_core, frame_command_core): Use
1279 get_selected_frame.
1280 * thread.c (restore_selected_frame): Rename to ...
1281 (lookup_selected_frame): ... this and make extern. Select the
1282 current frame if the frame level is -1.
1283 (scoped_restore_current_thread::restore): Also restore the
1284 language.
1285 (scoped_restore_current_thread::~scoped_restore_current_thread):
1286 Don't try/catch.
1287 (scoped_restore_current_thread::scoped_restore_current_thread):
1288 Save the language as well. Use save_selected_frame.
1289
1290 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1293 documentation.
1294 * gdbarch.h: Re-generate.
1295
1296 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1297
1298 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1299 parameter.
1300 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1301 Likewise.
1302 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1303 Likewise.
1304 * arch-utils.c (default_displaced_step_hw_singlestep):
1305 Likewise.
1306 * arch-utils.h (default_displaced_step_hw_singlestep):
1307 Likewise.
1308 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1309 Likewise.
1310 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1311 Likewise.
1312 * gdbarch.c: Re-generate.
1313 * gdbarch.h: Re-generate.
1314 * infrun.c (resume_1): Adjust.
1315
1316 2020-10-29 Tom Tromey <tom@tromey.com>
1317
1318 * progspace.c (program_space::~program_space): Don't call
1319 exec_close.
1320
1321 2020-10-29 Tom Tromey <tom@tromey.com>
1322
1323 * exec.c (exec_target::close): Don't change current program
1324 space.
1325
1326 2020-10-29 Tom Tromey <tom@tromey.com>
1327
1328 * symfile.c (add_symbol_file_command): Update.
1329 * exec.c (program_space::add_target_sections): Rename.
1330 * symfile-mem.c (symbol_file_add_from_memory): Update.
1331 * progspace.h (struct program_space) <add_target_sections>:
1332 Declare new overload.
1333 * exec.h (add_target_sections_of_objfile): Don't declare.
1334
1335 2020-10-29 Tom Tromey <tom@tromey.com>
1336
1337 * solib.c (solib_map_sections): Update.
1338 * exec.c (program_space::add_target_sections): Now a method.
1339 (exec_file_attach): Update.
1340 * exec.h (add_target_sections): Don't declare.
1341 * progspace.h (struct program_space) <add_target_sections>:
1342 Declare.
1343
1344 2020-10-29 Tom Tromey <tom@tromey.com>
1345
1346 * progspace.h (struct program_space) <remove_target_sections>:
1347 Declare.
1348 * exec.c (program_space::remove_target_sections): Now a method.
1349 * exec.h (remove_target_sections): Don't declare.
1350
1351 2020-10-29 Tom Tromey <tom@tromey.com>
1352
1353 * inferior.c (delete_inferior): Update.
1354 * progspace.c (program_space::empty): Rename from
1355 program_space_empty_p. Return bool.
1356 * progspace.h (struct program_space) <empty>: New method.
1357 (program_space_empty_p): Don't declare.
1358
1359 2020-10-29 Tom Tromey <tom@tromey.com>
1360
1361 * progspace.c (program_space::~program_space): Don't call
1362 clear_program_space_solib_cache.
1363 (program_space::clear_solib_cache): Rename from
1364 clear_solib_cache.
1365 * solib.c (handle_solib_event): Update.
1366 * progspace.h (struct program_space) <clear_solib_cache>: New
1367 method.
1368 (clear_program_space_solib_cache): Don't declare.
1369
1370 2020-10-29 Tom Tromey <tom@tromey.com>
1371
1372 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1373 * target.c (info_target_command): Update.
1374 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1375 (symbol_file_clear, reread_symbols): Update.
1376 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1377 * stabsread.c (scan_file_globals): Update.
1378 * solib.c (update_solib_list): Update.
1379 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1380 (svr4_fetch_objfile_link_map, enable_break)
1381 (svr4_relocate_main_executable)
1382 (svr4_iterate_over_objfiles_in_search_order): Update.
1383 * solib-frv.c (lm_base, enable_break)
1384 (frv_relocate_main_executable): Update.
1385 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1386 (frv_fetch_objfile_link_map): Update.
1387 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1388 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1389 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1390 * remote.c (remote_target::get_offsets): Update.
1391 (remote_target::start_remote)
1392 (extended_remote_target::post_attach): Update.
1393 * objfiles.c (entry_point_address_query): Update.
1394 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1395 * minsyms.c (get_symbol_leading_char): Update.
1396 * frame.c (inside_main_func): Update.
1397 * progspace.h (symfile_objfile): Remove macro.
1398
1399 2020-10-29 Tom Tromey <tom@tromey.com>
1400
1401 * exec.c (exec_file_attach): Update.
1402 * progspace.c (program_space::exec_close): Update.
1403 * progspace.h (struct program_space) <ebfd>: Now a
1404 gdb_bfd_ref_ptr.
1405 <set_exec_bfd>: Change argument type.
1406 <exec_bfd>: Update.
1407
1408 2020-10-29 Tom Tromey <tom@tromey.com>
1409
1410 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1411 * symfile.c (reread_symbols): Update.
1412 * symfile-mem.c (add_symbol_file_from_memory_command)
1413 (add_vsyscall_page): Update.
1414 * source-cache.c (source_cache::get_plain_source_lines): Update.
1415 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1416 (svr4_current_sos_direct, svr4_exec_displacement)
1417 (svr4_relocate_main_executable): Update.
1418 (svr4_iterate_over_objfiles_in_search_order): Update.
1419 * solib-frv.c (enable_break2, enable_break): Update.
1420 * solib-dsbt.c (lm_base, enable_break): Update.
1421 * solib-darwin.c (find_program_interpreter)
1422 (darwin_solib_create_inferior_hook): Update.
1423 * sol-thread.c (rw_common, ps_pdmodel): Update.
1424 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1425 * remote.c (compare_sections_command)
1426 (remote_target::trace_set_readonly_regions): Update.
1427 * remote-sim.c (get_sim_inferior_data)
1428 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1429 (gdbsim_target_open, gdbsim_target::files_info): Update.
1430 * exec.h (exec_bfd): Remove macro.
1431 * progspace.c (initialize_progspace): Update.
1432 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1433 Update.
1434 * nto-procfs.c (nto_procfs_target::post_attach)
1435 (nto_procfs_target::create_inferior): Update.
1436 * maint.c (maintenance_info_sections): Update.
1437 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1438 Update.
1439 * infcmd.c (post_create_inferior): Update.
1440 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1441 (objfile_find_memory_regions): Update.
1442 * exec.c (validate_exec_file, exec_file_attach)
1443 (exec_read_partial_read_only, print_section_info): Update.
1444 * corelow.c (core_target_open): Update.
1445 * corefile.c (reopen_exec_file, validate_files): Update.
1446 * arm-tdep.c (gdb_print_insn_arm): Update.
1447 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1448 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1449 methods.
1450
1451 2020-10-29 Tom Tromey <tom@tromey.com>
1452
1453 * progspace.h (current_target_sections): Remove macro.
1454 * solib-svr4.c (scan_dyntag): Update.
1455 * solib-dsbt.c (scan_dyntag): Update.
1456 * exec.c (exec_target::close): Update.
1457 (add_target_sections, add_target_sections_of_objfile)
1458 (remove_target_sections, exec_target::get_section_table)
1459 (exec_target::files_info, set_section_command)
1460 (exec_set_section_address, exec_target::has_memory)
1461 (exec_target::has_memory): Update.
1462
1463 2020-10-29 Tom Tromey <tom@tromey.com>
1464
1465 * source-cache.c (source_cache::get_plain_source_lines): Use
1466 current_program_space.
1467 * corefile.c (reopen_exec_file): Use current_program_space.
1468 * exec.c (exec_file_attach): Use current_program_space.
1469 * exec.h (exec_bfd_mtime): Remove.
1470
1471 2020-10-29 Tom Tromey <tom@tromey.com>
1472
1473 * gcore.c (default_gcore_mach): Remove.
1474 (create_gcore_bfd): Update.
1475
1476 2020-10-29 Tom Tromey <tom@tromey.com>
1477
1478 * progspace.c (program_space::exec_close): New method, from
1479 exec_close in exec.c.
1480 * exec.c (exec_close): Move to progspace.c.
1481 (exec_target::close, exec_file_attach): Update.
1482 * progspace.h (struct program_space) <exec_close>: Declare
1483 method.
1484
1485 2020-10-29 Tom Tromey <tom@tromey.com>
1486
1487 * progspace.h (struct program_space) <exec_filename>: Rename from
1488 pspace_exec_filename. Now a unique_xmalloc_ptr.
1489 * inferior.c (print_selected_inferior): Update.
1490 (print_inferior): Update.
1491 * mi/mi-main.c (print_one_inferior): Update.
1492 * exec.h (exec_filename): Remove macro.
1493 * corefile.c (get_exec_file): Update.
1494 * exec.c (exec_close): Update.
1495 (exec_file_attach): Update.
1496 * progspace.c (clone_program_space): Update.
1497 (print_program_space): Update.
1498
1499 2020-10-29 Tom Tromey <tom@tromey.com>
1500
1501 * target-section.h (struct target_section): Add constructor.
1502 * exec.c (build_section_table, add_target_sections_of_objfile):
1503 Update.
1504 * corelow.c (core_target::build_file_mappings): Update.
1505
1506 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507
1508 PR gdb/19318
1509 * inferior.c (detach_inferior_command): Restore the current thread.
1510 (kill_inferior_command): Ditto.
1511
1512 2020-10-28 Tom de Vries <tdevries@suse.de>
1513
1514 PR symtab/26772
1515 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1516 map, check it in the "best match" loop.
1517
1518 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * m32c-tdep.c: Remove unused includes.
1521
1522 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1523
1524 * xtensa-tdep.c: Remove includes.
1525
1526 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527
1528 * breakpoint.c (struct condition_command_opts): New struct.
1529 (condition_command_option_defs): New static global.
1530 (make_condition_command_options_def_group): New function.
1531 (condition_completer): Update to consider the '-force' flag.
1532 (condition_command): Use gdb::option for the '-force' flag.
1533
1534 2020-10-27 Tom de Vries <tdevries@suse.de>
1535
1536 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1537 symbols in section check.
1538
1539 2020-10-27 Tom de Vries <tdevries@suse.de>
1540
1541 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1542
1543 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1544
1545 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1546 * breakpoint.c: Update the help text of the 'condition' and 'break'
1547 commands.
1548 (set_breakpoint_condition): Take a new bool parameter
1549 to control whether condition definition should be forced even when
1550 the condition expression is invalid in all of the current locations.
1551 (condition_command): Update the call to 'set_breakpoint_condition'.
1552 (find_condition_and_thread): Take the "-force-condition" flag into
1553 account.
1554 * linespec.c (linespec_keywords): Add "-force-condition" as an
1555 element.
1556 (FORCE_KEYWORD_INDEX): New #define.
1557 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1558 as a keyword.
1559 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1560 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1561 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1562 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1563
1564 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1565
1566 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1567 * breakpoint.c (set_breakpoint_location_condition): New function.
1568 (set_breakpoint_condition): Disable a breakpoint location if parsing
1569 the condition string gives an error.
1570 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1571 (build_target_condition_list): Ditto.
1572 (build_target_command_list): Ditto.
1573 (build_bpstat_chain): Ditto.
1574 (print_one_breakpoint_location): Ditto.
1575 (print_one_breakpoint): Ditto.
1576 (breakpoint_1): Ditto.
1577 (bp_location::bp_location): Ditto.
1578 (locations_are_equal): Ditto.
1579 (update_breakpoint_locations): Ditto.
1580 (enable_disable_bp_num_loc): Ditto.
1581 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1582 (find_condition_and_thread_for_sals): New static function.
1583 (create_breakpoint): Call find_condition_and_thread_for_sals.
1584 (location_to_sals): Call find_condition_and_thread_for_sals instead
1585 of find_condition_and_thread.
1586
1587 2020-10-26 Tom de Vries <tdevries@suse.de>
1588
1589 * dwarf2/read.c (process_full_comp_unit): Call
1590 dwarf2_find_base_address.
1591
1592 2020-10-26 Tom Tromey <tromey@adacore.com>
1593
1594 * gdbtypes.c (create_range_type): Revert previous patch. Add
1595 comment.
1596
1597 2020-10-26 Pedro Alves <pedro@palves.net>
1598
1599 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1600 (my_waitpid): Use gdb::handle_eintr.
1601
1602 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * acinclude.m4: Update ptrace.m4 path.
1605 * ptrace.m4: Moved to gdbsupport.
1606
1607 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1610 instead of target_gdbarch.
1611
1612 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1613
1614 * jit.c (jit_reader_load_command): Pass current inferior.
1615 (jit_inferior_init): Change parameter type to inferior, use it.
1616 (jit_inferior_created): Remove.
1617 (jit_inferior_created_hook): Pass inferior parameter down.
1618 (_initialize_jit): Use jit_inferior_created_hook instead of
1619 jit_inferior_created.
1620 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1621 * infrun.c (follow_exec): Pass inferior to
1622 jit_inferior_created_hook.
1623
1624 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1627 parameter and use it.
1628 (thread_db_inferior_created): Pass inferior argument.
1629
1630 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * aix-thread.c (aix_thread_inferior_created): Add inferior
1633 parameter.
1634 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1635 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1636 * jit.c (jit_inferior_created): Likewise.
1637 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1638 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1639 * observable.h (inferior_created): Likewise.
1640 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1641 * symfile-mem.c (add_vsyscall_page): Likewise.
1642 * infcmd.c (post_create_inferior): Pass inferior argument.
1643
1644 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1645
1646 GDB 10.1 released.
1647
1648 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1649
1650 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1651 to ada_check_typedef.
1652
1653 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1654
1655 * f-exp.y (f_parse): Rename to...
1656 (f_language::parser): ...this.
1657 * f-lang.c (f_get_encoding): Rename to...
1658 (f_language::get_encoding): ...this.
1659 (f_op_print_tab): Rename to...
1660 (f_language::op_print_tab): ...this.
1661 (exp_descriptor_f): Rename to...
1662 (f_language::exp_descriptor_tab): ...this.
1663 (class f_language): Moved to f-lang.h.
1664 (f_language::language_arch_info): New function, moved out of class
1665 declaration.
1666 (f_language::search_name_hash): Likewise.
1667 (f_language::lookup_symbol_nonlocal): Likewise.
1668 (f_language::get_symbol_name_matcher_inner): Likewise.
1669 * f-lang.h: Add 'valprint.h' include.
1670 (class f_language): Moved here from f-lang.c.
1671 * f-typeprint.c (f_type_print_args): Delete commented out
1672 declaration.
1673 (f_print_typedef): Rename to...
1674 (f_language::print_typedef): ...this.
1675 (f_print_type): Rename to...
1676 (f_language::print_type): ...this.
1677 (f_type_print_varspec_prefix): Delete declaration and rename to...
1678 (f_language::f_type_print_varspec_prefix): ...this.
1679 (f_type_print_varspec_suffix): Delete declaration and rename to...
1680 (f_language::f_type_print_varspec_suffix): ...this.
1681 (f_type_print_base): Delete declaration and rename to...
1682 (f_language::f_type_print_base): ...this.
1683 * f-valprint.c (f_value_print_inner): Rename to...
1684 (f_language::value_print_inner): ...this.
1685 * parse.c: Delete 'f-lang.h' include.
1686
1687 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * language.h (language_defn::print_type): Add variable names in
1690 declaration, and update header comment.
1691
1692 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * ada-lang.c (ada_language::demangle): Rename to...
1695 (ada_language::demangle_symbol): ...this.
1696 * c-lang.c (cplus_language::demangle): Rename to...
1697 (cplus_language::demangle_symbol): ...this.
1698 * d-lang.c (d_language::demangle): Rename to...
1699 (d_language::demangle_symbol): ...this.
1700 * f-lang.c (f_language::demangle): Rename to...
1701 (f_language::demangle_symbol): ...this.
1702 * go-lang.c (go_language::demangle): Rename to...
1703 (go_language::demangle_symbol): ...this.
1704 * language.c (language_demangle): Update call to demangle_symbol.
1705 (auto_or_unknown_language::demangle): Rename to...
1706 (auto_or_unknown_language::demangle_symbol): ...this.
1707 * language.h (language_defn::demangle): Rename to...
1708 (language_defn::demangle_symbol): ...this.
1709 * objc-lang.c (objc_language::demangle): Rename to...
1710 (objc_language::demangle_symbol): ...this.
1711 * rust-lang.c (rust_language::demangle): Rename to...
1712 (rust_language::demangle_symbol): ...this.
1713
1714 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1717 (iterate_over_file_blocks): Replace use of macro with the macros
1718 definition.
1719
1720 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1723 * valprint.c (maybe_print_array_index): Replace use of macro with
1724 the macros definition.
1725
1726 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * ada-lang.c (ada_language::print_array_index): Call value_print
1729 directly.
1730 * language.c (language_defn::print_array_index): Likewise.
1731 * language.h (LA_VALUE_PRINT): Delete.
1732 * valprint.c (value_print): Call value_print on the
1733 current_language directly.
1734
1735 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * language.h (LA_PRINT_TYPEDEF): Delete.
1738 * typeprint.c (typedef_print): Call print_typedef directly on the
1739 current_language object.
1740
1741 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * m2-exp.y (m2_parse): Rename to...
1744 (m2_language::parser): ...this. Update function signature.
1745 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1746 (m2_op_print): Rename to...
1747 (m2_language::op_print_tab): ...this, and make const.
1748 (exp_descriptor_modula2): Rename to...
1749 (m2_language::exp_descriptor_modula2): ...this.
1750 (class m2_language): Move to m2-lang.h.
1751 (m2_language::language_arch_info): New function, moved out of
1752 class declaration.
1753 (m2_language::printchar): New function, body from m2_printchar.
1754 (m2_language::printstr): New function, moved out of class
1755 declaration.
1756 (m2_language::emitchar): Likewise.
1757 * m2-lang.h (m2_parse): Delete declaration.
1758 (m2_print_typedef): Delete declaration.
1759 (m2_value_print_inner): Delete declaration.
1760 (class m2_language): Class declaration moved from m2-lang.c,
1761 larger functions are left in m2-lang.c.
1762 * m2-typeprint.c (m2_print_typedef): Rename to...
1763 (m2_language::print_typedef): ...this, and update function
1764 signature.
1765 * m2-valprint.c (m2_value_print_inner): Rename to...
1766 (m2_language::value_print_inner): ...this, replace use of
1767 LA_PRINT_STRING with a direct call to printstr member function,
1768 and update recursive call.
1769
1770 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * language.c (default_is_string_type_p): Delete, implementation
1773 moved into auto_or_unknown_language::is_string_type_p.
1774 (unk_op_print_tab): Moved into
1775 auto_or_unknown_language::opcode_print_table.
1776 (unknown_language_arch_info): Delete, implementation moved into
1777 auto_or_unknown_language::language_arch_info.
1778 (class auto_or_unknown_language): New class, member functions
1779 copied from unknown_language class, with some updates.
1780 (class unknown_language): Most member functions moved into
1781 auto_or_unknown_language class. Inherit from
1782 auto_or_unknown_language class.
1783 (class auto_language): Inherit from auto_or_unknown_language.
1784 Delete most member functions.
1785
1786 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1787
1788 * stabsread.c (read_member_functions): Remove gdb_assert.
1789
1790 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1791
1792 * gdbtypes.c (init_complex_type): Check target type name.
1793
1794 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 * target-debug.h (target_debug_print_struct_target_ops_p):
1797 Remove.
1798 (target_debug_print_async_callback_ftype_p): Remove.
1799 (target_debug_print_struct_trace_state_variable_p): Remove.
1800 (target_debug_print_struct_traceframe_info_p): Remove.
1801 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1802 (target_debug_print_enum_btrace_format): Remove.
1803 (target_debug_print_enum_info_proc_what): Remove.
1804 (target_debug_print_thread_info_pp): Remove.
1805
1806 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * target.h (struct target_ops) <make_corefile_notes>:
1809 Change return type to unique pointer.
1810 * target.c (dummy_make_corefile_notes): Likewise.
1811 * exec.c (struct exec_target) <make_corefile_notes>:
1812 Likewise.
1813 (exec_target::make_corefile_notes): Likewise.
1814 * procfs.c (class procfs_target) <make_corefile_notes>:
1815 Likewise.
1816 (procfs_do_thread_registers): Adjust to unique pointer.
1817 (struct procfs_corefile_thread_data): Add constructor.
1818 <note_data>: Change type to unique pointer.
1819 (procfs_corefile_thread_callback): Adjust to unique pointer.
1820 (procfs_target::make_corefile_notes): Change return type to
1821 unique pointer.
1822 * target-delegates.c: Re-generate.
1823 * gcore.c (write_gcore_file_1): Adjust.
1824 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1825 New.
1826
1827 2020-10-22 Tom de Vries <tdevries@suse.de>
1828
1829 * block.c (find_block_in_blockvector): Make sure the returned block
1830 contains pc.
1831
1832 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 PR gdb/26693
1835 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1836 parameter.
1837 (load_cu): Pass existing CU.
1838 (process_imported_unit_die): Likewise.
1839 (follow_die_offset): Likewise.
1840
1841 2020-10-22 Luis Machado <luis.machado@linaro.org>
1842
1843 * corelow.c (core_target::xfer_partial): Also check for an empty
1844 m_core_unavailable_mappings vector.
1845
1846 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1849 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1850 * f-exp.y (arglist): Allow for a series of subranges.
1851 (subrange): Add cases for subranges with strides.
1852 * f-lang.c (value_f90_subarray): Catch use of array strides and
1853 throw an error.
1854 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1855
1856 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * expprint.c (print_subexp_standard): Change enum range_type to
1859 range_flag and rename variables to match.
1860 (dump_subexp_body_standard): Likewise.
1861 * expression.h (enum range_type): Rename to...
1862 (enum range_flag): ...this.
1863 (range_types): Rename to...
1864 (range_flags): ...this.
1865 * f-lang.c (value_f90_subarray): Change enum range_type to
1866 range_flag and rename variables to match.
1867 * parse.c (operator_length_standard): Likewise.
1868 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1869 range_type to range_flag.
1870 * rust-lang.c (rust_evaluate_funcall): Likewise.
1871 (rust_range): Likewise.
1872 (rust_compute_range): Likewise.
1873 (rust_subscript): Likewise.
1874
1875 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * expprint.c (print_subexp_standard): Update to reflect changes to
1878 enum range_type.
1879 (dump_subexp_body_standard): Likewise.
1880 * expression.h (enum range_type): Convert to a bit field enum, and
1881 make the enum unsigned.
1882 * f-exp.y (subrange): Update to reflect changes to enum
1883 range_type.
1884 * f-lang.c (value_f90_subarray): Likewise.
1885 * parse.c (operator_length_standard): Likewise.
1886 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1887 * rust-lang.c (rust_range): Likewise.
1888 (rust_compute_range): Likewise.
1889 (rust_subscript): Likewise.
1890
1891 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1894 (displaced_step_in_progress): Fix comment.
1895
1896 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1899 * gdbarch.c: Re-generate.
1900 * gdbarch.h: Re-generate.
1901 * gcore.c (write_gcore_file_1): Adjust.
1902 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1903 constructor.
1904 <note_data>: Change type to unique pointer.
1905 <abort_iteration>: Change type to bool.
1906 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1907 (fbsd_collect_thread_registers): Return void, adjust.
1908 (struct fbsd_corefile_thread_data): Add construtor.
1909 <note_data>: Change type to unique pointer.
1910 (fbsd_corefile_thread): Adjust.
1911 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1912 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1913 to unique pointer, adjust.
1914 (struct linux_collect_regset_section_cb_data): Add constructor.
1915 <note_data>: Change type to unique pointer.
1916 <abort_iteration>: Change type to bool.
1917 (linux_collect_thread_registers): Return void, adjust.
1918 (struct linux_corefile_thread_data): Add constructor.
1919 <note_data>: Change type to unique pointer.
1920 (linux_corefile_thread): Adjust.
1921 (linux_make_corefile_notes): Return unique pointer, adjust.
1922
1923 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1924
1925 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1926 * gdbarch.c: Re-generate.
1927 * gdbarch.h: Re-generate.
1928 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1929 bool.
1930 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1931 Likewise.
1932 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1933 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1934 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1935 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1936
1937 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * gdbarch.sh: Make generated predicates return bool.
1940 * gdbarch.c: Re-generate.
1941 * gdbarch.h: Re-generate.
1942
1943 2020-10-20 Tom Tromey <tom@tromey.com>
1944
1945 * varobj-iter.h (struct varobj_item): Remove typedef.
1946
1947 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1948
1949 * infrun.c (currently_stepping): Change int to bool
1950 (maybe_software_singlestep): Likewise.
1951 (show_stop_on_solib_events): Likewise.
1952 (stepping_past_nonsteppable_watchpoint): Likewise.
1953 (displaced_step_in_progress_any_inferior): Likewise.
1954 (displaced_step_in_progress_thread): Likewise.
1955 (keep_going_stepped_thread): Likewise.
1956 (thread_still_needs_step_over): Likewise.
1957 (start_step_over): Likewise.
1958 (do_target_resume): Likewise.
1959 (resume_1): Likewise.
1960 (clear_proceed_status): Likewise.
1961 (thread_still_needs_step_over_bp): Likewise.
1962 (proceed): Likewise.
1963 (switch_back_to_stepped_thread): Likewise.
1964 (adjust_pc_after_break): Likewise.
1965 (stepped_in_from): Likewise.
1966 (handle_stop_requested): Likewise.
1967 (handle_syscall_event): Likewise.
1968 (handle_no_resumed): Likewise.
1969 (handle_inferior_event): Likewise.
1970 (finish_step_over): Likewise.
1971 (handle_signal_stop): Likewise.
1972 (process_event_stop_test): Likewise.
1973
1974 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * infrun.c (get_displaced_stepping_state): Fix comment.
1977
1978 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1979
1980 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1981
1982 2020-10-19 Tom Tromey <tromey@adacore.com>
1983
1984 PR tui/26719
1985 * tui/tui-winsource.h (struct tui_source_window_base)
1986 <refresh_window>: Rename from refresh_pad.
1987 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1988 Rename from refresh_pad.
1989 (tui_source_window_base::show_source_content)
1990 (tui_source_window_base::do_scroll_horizontal): Update.
1991
1992 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1993
1994 * thread.c (_initialize_thread): Fine-tune the help text of
1995 'info threads'.
1996
1997 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1998
1999 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2000
2001 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2002
2003 * breakpoint.c (handle_jit_event): Add an argument, change how
2004 `jit_event_handler` is called.
2005
2006 2020-10-17 Tom Tromey <tom@tromey.com>
2007
2008 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2009 (scan_xcoff_symtab): Update.
2010 * psymtab.h (class psymtab_storage) <global_psymbols,
2011 static_psymbols, current_global_psymbols,
2012 current_static_psymbols>: Remove.
2013 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2014 (match_partial_symbol, lookup_partial_symbol): Update.
2015 (print_partial_symbols): Change parameters.
2016 (dump_psymtab, recursively_search_psymtabs)
2017 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2018 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2019 (concat): Remove.
2020 (end_psymtab_common): Simplify.
2021 (append_psymbol_to_list): Change parameters.
2022 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2023 (init_psymbol_list): Simplify.
2024 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2025 * psympriv.h (struct partial_symtab) <empty>: New method.
2026 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2027 Remove.
2028 <global_psymbols, static_psymbols>: New members.
2029 <add_psymbol>: New methods.
2030 (add_psymbol_to_list): Don't declare.
2031 (psymbol_placement): Move earlier.
2032 * mdebugread.c (parse_partial_symbols): Update.
2033 (handle_psymbol_enumerators): Change parameters.
2034 (mdebug_expand_psymtab): Update.
2035 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2036 (add_partial_symbol): Update.
2037 * dwarf2/index-write.c (write_psymbols): Change parameters.
2038 (write_one_signatured_type): Update.
2039 (recursively_count_psymbols): Update.
2040 (recursively_write_psymbols): Update.
2041 (class debug_names) <recursively_write_psymbols>: Update.
2042 <write_psymbols>: Change parameters.
2043 <write_one_signatured_type>: Update.
2044 * dbxread.c (read_dbx_symtab): Update.
2045 (dbx_end_psymtab): Use partial_symtab::empty.
2046 * ctfread.c (struct ctf_context) <pst>: New member.
2047 (create_partial_symtab): Set it.
2048 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2049 (scan_partial_symbols): Use the psymtab's context. Update.
2050
2051 2020-10-17 Tom Tromey <tom@tromey.com>
2052
2053 * valprint.c (generic_value_print): Remove comment.
2054 * m2-valprint.c (m2_value_print_inner): Remove comment.
2055 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2056 type.
2057
2058 2020-10-17 Tom de Vries <tdevries@suse.de>
2059
2060 PR symtab/26317
2061 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2062 symbol main.
2063
2064 2020-10-14 Tom de Vries <tdevries@suse.de>
2065
2066 PR gdb/26733
2067 * solib.c (solib_contains_address_p): Handle
2068 'solib->sections == nullptr'.
2069
2070 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 PR gdb/26642
2073 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2074 target can't do async.
2075 * target.c (target_wait): Assert that we don't pass
2076 TARGET_WNOHANG to a target that can't async.
2077
2078 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2079
2080 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2081 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2082 * alpha-bsd-nat.c: Adjust include.
2083 * alpha-bsd-tdep.h: Adjust comment.
2084 * alpha-nbsd-tdep.c: Rename to ...
2085 * alpha-netbsd-tdep.c: ... this, adjust include.
2086 * amd64-nbsd-nat.c: Rename to ...
2087 * amd64-netbsd-nat.c: ... this, adjust include.
2088 * amd64-nbsd-tdep.c: Rename to ...
2089 * amd64-netbsd-tdep.c: ... this, adjust include.
2090 * amd64-tdep.h: Adjust include.
2091 * arm-nbsd-nat.c: Rename to ...
2092 * arm-netbsd-nat.c: ... this, adjust include.
2093 * arm-nbsd-tdep.c: Rename to ...
2094 * arm-netbsd-tdep.c: ... this, adjust include.
2095 * arm-nbsd-tdep.h: Rename to ...
2096 * arm-netbsd-tdep.h: ... this, adjust include.
2097 * configure.nat: Adjust file lists.
2098 * configure.tgt: Likewise.
2099 * hppa-nbsd-nat.c: Rename to ...
2100 * hppa-netbsd-nat.c: ... this, adjust include.
2101 * hppa-nbsd-tdep.c: Rename to ...
2102 * hppa-netbsd-tdep.c: ... this, adjust include.
2103 * i386-nbsd-nat.c: Rename to ...
2104 * i386-netbsd-nat.c: ... this, adjust include.
2105 * i386-nbsd-tdep.c: Rename to ...
2106 * i386-netbsd-tdep.c: ... this, adjust include.
2107 * m68k-bsd-nat.c: Adjust include.
2108 * mips-nbsd-nat.c: Rename to ...
2109 * mips-netbsd-nat.c: ... this, adjust include.
2110 * mips-nbsd-tdep.c: Rename to ...
2111 * mips-netbsd-tdep.c: ... this, adjust include.
2112 * mips-nbsd-tdep.h: Rename to ...
2113 * mips-netbsd-tdep.h: ... this.
2114 * nbsd-nat.c: Rename to ...
2115 * netbsd-nat.c: ... this, adjust include.
2116 * nbsd-nat.h: Rename to ...
2117 * netbsd-nat.h: ... this, adjust include.
2118 * nbsd-tdep.c: Rename to ...
2119 * netbsd-tdep.c: ... this, adjust include.
2120 * nbsd-tdep.h: Rename to ...
2121 * netbsd-tdep.h: ... this.
2122 * ppc-nbsd-nat.c: Rename to ...
2123 * ppc-netbsd-nat.c: ... this, adjust include.
2124 * ppc-nbsd-tdep.c: Rename to ...
2125 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2126 * ppc-nbsd-tdep.h: Rename to ...
2127 * ppc-netbsd-tdep.h: ... this.
2128 * sh-nbsd-nat.c: Rename to ...
2129 * sh-netbsd-nat.c: ... this, adjust include.
2130 * sh-nbsd-tdep.c: Rename to ...
2131 * sh-netbsd-tdep.c: ... this, adjust include.
2132 * sparc-nbsd-nat.c: Rename to ...
2133 * sparc-netbsd-nat.c: ... this.
2134 * sparc-nbsd-tdep.c: Rename to ...
2135 * sparc-netbsd-tdep.c: ... this, adjust include.
2136 * sparc64-nbsd-nat.c: Rename to ...
2137 * sparc64-netbsd-nat.c: ... this.
2138 * sparc64-nbsd-tdep.c: Rename to ...
2139 * sparc64-netbsd-tdep.c: ... this, adjust include.
2140 * sparc64-tdep.h: Adjust comment.
2141 * vax-bsd-nat.c: Adjust include.
2142 * vax-nbsd-tdep.c: Rename to ...
2143 * vax-netbsd-tdep.c: ... this, adjust include.
2144
2145 2020-10-12 Tom Tromey <tom@tromey.com>
2146
2147 * target.h (struct target_ops) <get_section_table>: Update.
2148 (target_get_section_table): Update.
2149 * target.c (target_get_section_table, target_section_by_addr)
2150 (memory_xfer_partial_1): Update.
2151 * target-section.h (target_section_table): Now an alias.
2152 * target-delegates.c: Rebuild.
2153 * target-debug.h (target_debug_print_target_section_table_p):
2154 Rename from target_debug_print_struct_target_section_table_p.
2155 * symfile.c (build_section_addr_info_from_section_table): Update.
2156 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2157 * solib-svr4.c (scan_dyntag): Update.
2158 * solib-dsbt.c (scan_dyntag): Update.
2159 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2160 Update.
2161 * record-full.c (record_full_core_target::xfer_partial): Update.
2162 * progspace.h (struct program_space) <target_sections>: Update.
2163 * exec.h (print_section_info): Update.
2164 * exec.c (exec_target::close, build_section_table)
2165 (add_target_sections, add_target_sections_of_objfile)
2166 (remove_target_sections, exec_on_vfork)
2167 (section_table_available_memory)
2168 (section_table_xfer_memory_partial)
2169 (exec_target::get_section_table, exec_target::xfer_partial)
2170 (print_section_info, set_section_command)
2171 (exec_set_section_address, exec_target::has_memory): Update.
2172 * corelow.c (core_target::build_file_mappings)
2173 (core_target::xfer_partial, core_target::info_proc_mappings)
2174 (core_target::info_proc_mappings): Update.
2175 * bfd-target.c (class target_bfd): Update
2176
2177 2020-10-12 Tom Tromey <tom@tromey.com>
2178
2179 * progspace.c (program_space::~program_space): Don't call
2180 clear_section_table.
2181 * exec.h (clear_section_table): Don't declare.
2182 * exec.c (exec_target::close): Update.
2183 (clear_section_table): Remove.
2184
2185 2020-10-12 Tom Tromey <tom@tromey.com>
2186
2187 * exec.c (add_target_sections_of_objfile): Simplify.
2188
2189 2020-10-12 Tom Tromey <tom@tromey.com>
2190
2191 * solib.c (solib_map_sections): Update.
2192 * record-full.c (record_full_core_open_1): Update.
2193 * exec.h (build_section_table): Return a target_section_table.
2194 * exec.c (exec_file_attach): Update.
2195 (build_section_table): Return a target_section_table.
2196 * corelow.c (core_target::core_target): Update.
2197 * bfd-target.c (target_bfd::target_bfd): Update.
2198
2199 2020-10-12 Tom Tromey <tom@tromey.com>
2200
2201 * target.c (target_section_by_addr, memory_xfer_partial_1):
2202 Update.
2203 * target-section.h (struct target_section_table): Use
2204 std::vector.
2205 * symfile.h (build_section_addr_info_from_section_table): Take a
2206 target_section_table.
2207 * symfile.c (build_section_addr_info_from_section_table): Take a
2208 target_section_table.
2209 * solist.h (struct so_list) <sections>: Change type.
2210 <sections_end>: Remove.
2211 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2212 (solib_contains_address_p): Update.
2213 * solib-svr4.c (scan_dyntag): Update.
2214 * solib-dsbt.c (scan_dyntag): Update.
2215 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2216 Update.
2217 * record-full.c (record_full_core_start, record_full_core_end):
2218 Remove.
2219 (record_full_core_sections): New global.
2220 (record_full_core_open_1, record_full_core_target::xfer_partial):
2221 Update.
2222 * exec.h (build_section_table, section_table_xfer_memory_partial)
2223 (add_target_sections): Take a target_section_table.
2224 * exec.c (exec_file_attach, clear_section_table): Update.
2225 (resize_section_table): Remove.
2226 (build_section_table, add_target_sections): Take a
2227 target_section_table.
2228 (add_target_sections_of_objfile, remove_target_sections)
2229 (exec_on_vfork): Update.
2230 (section_table_available_memory): Take a target_section_table.
2231 (section_table_read_available_memory): Update.
2232 (section_table_xfer_memory_partial): Take a target_section_table.
2233 (print_section_info, set_section_command)
2234 (exec_set_section_address, exec_target::has_memory): Update.
2235 * corelow.c (class core_target) <m_core_section_table,
2236 m_core_file_mappings>: Remove braces.
2237 <~core_target>: Remove.
2238 (core_target::core_target): Update.
2239 (core_target::~core_target): Remove.
2240 (core_target::build_file_mappings)
2241 (core_target::xfer_memory_via_mappings)
2242 (core_target::xfer_partial, core_target::info_proc_mappings):
2243 Update.
2244 * bfd-target.c (target_bfd::xfer_partial): Update.
2245 (target_bfd::target_bfd): Update.
2246 (target_bfd::~target_bfd): Remove.
2247
2248 2020-10-12 Tom Tromey <tom@tromey.com>
2249
2250 * target.h (struct target_section, struct target_section_table):
2251 Move to target-section.h.
2252 * target-section.h: New file.
2253
2254 2020-10-12 Pedro Alves <pedro@palves.net>
2255
2256 PR exp/26602
2257 * valops.c (struct struct_field_searcher): New.
2258 (update_search_result): Rename to ...
2259 (struct_field_searcher::update_result): ... this. Simplify
2260 prototype. Record all found fields.
2261 (do_search_struct_field): Rename to ...
2262 (struct_field_searcher::search): ... this. Simplify prototype.
2263 Maintain stack of visited baseclass path. Call update_result for
2264 fields too. Keep searching fields in baseclasses instead of
2265 stopping at the first found field.
2266 (search_struct_field): Use struct_field_searcher. When looking
2267 for fields, report ambiguous access attempts.
2268
2269 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * frame.c (inside_main_func): Check full symbols as well as
2272 minimal symbols.
2273
2274 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2275
2276 * ada-lang.c (advance_wild_match): Rewrite the function's
2277 description. Change the type of target0, t0 and t1 to char.
2278
2279 2020-10-09 Tom Tromey <tromey@adacore.com>
2280
2281 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2282
2283 2020-10-09 Tom Tromey <tromey@adacore.com>
2284
2285 * ada-lang.h (ada_encode): Return std::string.
2286 * ada-lang.c (ada_encode_1): Return std::string.
2287 (ada_encode): Likewise.
2288 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2289 Update.
2290 * ada-exp.y (block_lookup, write_var_or_type): Update.
2291
2292 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2293
2294 PR exp/26714
2295 * printcmd.c (print_formatted): Handle void results as
2296 unformatted prints.
2297
2298 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * arch/aarch32.c (aarch32_create_target_description): Release the
2301 target_desc_up as late as possible.
2302 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2303 * arch/amd64.c (amd64_create_target_description): Likewise.
2304 * arch/arc.c (arc_create_target_description): Return a
2305 target_desc_up, don't release it.
2306 * arch/arc.h (arc_create_target_description): Update declaration.
2307 (arc_lookup_target_description): Move target_desc_up into the
2308 cache, and return a borrowed pointer.
2309 * arch/arm.c (arm_create_target_description): Release the
2310 target_desc_up as late as possible.
2311 * arch/i386.c (i386_create_target_description): Likewise.
2312 * arch/riscv.h (riscv_create_target_description): Update
2313 declaration to match definition.
2314 * arch/tic6x.c (tic6x_create_target_description): Release the
2315 target_desc_up as late as possible.
2316
2317 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2320 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2321
2322 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2323
2324 * source.c (directory_command): Notify observers that "directories"
2325 parameter has changed.
2326
2327 2020-10-08 Tom Tromey <tom@tromey.com>
2328
2329 * cli/cli-cmds.c (print_disassembly): Style function name and
2330 addresses. Add _() wrappers.
2331
2332 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2333
2334 * NEWS: Mention ARC support in GDBserver.
2335
2336 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * arch/aarch32.c (aarch32_create_target_description): Release
2339 unique_ptr returned from allocate_target_description.
2340 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2341 * arch/amd64.c (amd64_create_target_description): Likewise.
2342 * arch/arc.c (arc_create_target_description): Likewise.
2343 * arch/arm.c (arm_create_target_description): Likewise.
2344 * arch/i386.c (i386_create_target_description): Likewise.
2345 * arch/riscv.c (riscv_create_target_description): Update return
2346 type. Handle allocate_target_description returning a unique_ptr.
2347 (riscv_lookup_target_description): Update to handle unique_ptr.
2348 * arch/tic6x.c (tic6x_create_target_description): Release
2349 unique_ptr returned from allocate_target_description.
2350 * features/microblaze-with-stack-protect.c: Regenerate.
2351 * features/microblaze.c: Regenerate.
2352 * features/mips-dsp-linux.c: Regenerate.
2353 * features/mips-linux.c: Regenerate.
2354 * features/mips64-dsp-linux.c: Regenerate.
2355 * features/mips64-linux.c: Regenerate.
2356 * features/nds32.c: Regenerate.
2357 * features/nios2.c: Regenerate.
2358 * features/or1k.c: Regenerate.
2359 * features/rs6000/powerpc-32.c: Regenerate.
2360 * features/rs6000/powerpc-32l.c: Regenerate.
2361 * features/rs6000/powerpc-403.c: Regenerate.
2362 * features/rs6000/powerpc-403gc.c: Regenerate.
2363 * features/rs6000/powerpc-405.c: Regenerate.
2364 * features/rs6000/powerpc-505.c: Regenerate.
2365 * features/rs6000/powerpc-601.c: Regenerate.
2366 * features/rs6000/powerpc-602.c: Regenerate.
2367 * features/rs6000/powerpc-603.c: Regenerate.
2368 * features/rs6000/powerpc-604.c: Regenerate.
2369 * features/rs6000/powerpc-64.c: Regenerate.
2370 * features/rs6000/powerpc-64l.c: Regenerate.
2371 * features/rs6000/powerpc-7400.c: Regenerate.
2372 * features/rs6000/powerpc-750.c: Regenerate.
2373 * features/rs6000/powerpc-860.c: Regenerate.
2374 * features/rs6000/powerpc-altivec32.c: Regenerate.
2375 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2376 * features/rs6000/powerpc-altivec64.c: Regenerate.
2377 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2378 * features/rs6000/powerpc-e500.c: Regenerate.
2379 * features/rs6000/powerpc-e500l.c: Regenerate.
2380 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2381 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2382 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2383 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2384 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2385 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2386 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2387 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2388 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2389 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2390 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2391 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2392 * features/rs6000/powerpc-vsx32.c: Regenerate.
2393 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2394 * features/rs6000/powerpc-vsx64.c: Regenerate.
2395 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2396 * features/rs6000/rs6000.c: Regenerate.
2397 * features/rx.c: Regenerate.
2398 * features/s390-gs-linux64.c: Regenerate.
2399 * features/s390-linux32.c: Regenerate.
2400 * features/s390-linux32v1.c: Regenerate.
2401 * features/s390-linux32v2.c: Regenerate.
2402 * features/s390-linux64.c: Regenerate.
2403 * features/s390-linux64v1.c: Regenerate.
2404 * features/s390-linux64v2.c: Regenerate.
2405 * features/s390-te-linux64.c: Regenerate.
2406 * features/s390-tevx-linux64.c: Regenerate.
2407 * features/s390-vx-linux64.c: Regenerate.
2408 * features/s390x-gs-linux64.c: Regenerate.
2409 * features/s390x-linux64.c: Regenerate.
2410 * features/s390x-linux64v1.c: Regenerate.
2411 * features/s390x-linux64v2.c: Regenerate.
2412 * features/s390x-te-linux64.c: Regenerate.
2413 * features/s390x-tevx-linux64.c: Regenerate.
2414 * features/s390x-vx-linux64.c: Regenerate.
2415 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2416 from allocate_target_description.
2417 * target-descriptions.c (allocate_target_description): Update
2418 return type.
2419 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2420 allocate_target_description.
2421
2422 2020-10-07 Tom Tromey <tromey@adacore.com>
2423
2424 * unittests/search-memory-selftests.c: New file.
2425 * Makefile.in (SELFTESTS_SRCS): Add
2426 unittests/search-memory-selftests.c.
2427
2428 2020-10-07 Tom Tromey <tromey@adacore.com>
2429
2430 PR gdb/16930:
2431 * findcmd.c (_initialize_mem_search): Mention that the range is
2432 inclusive.
2433
2434 2020-10-07 Tom Tromey <tromey@adacore.com>
2435
2436 * target.h (simple_search_memory): Don't declare.
2437 * target.c (simple_search_memory): Move to gdbsupport.
2438 (default_search_memory): Update.
2439 * remote.c (remote_target::search_memory): Update.
2440
2441 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * Makefile.in (COMPILE): Add CXXFLAGS.
2444 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2445 (check-headers): Add CXXFLAGS.
2446
2447 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2448
2449 * arc-linux-tdep.h: New file.
2450 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2451 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2452 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2453 arc_linux_gregset, arc_linux_v2_regset,
2454 arc_linux_iterate_over_regset_sections,
2455 arc_linux_core_read_description): Implement.
2456 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2457 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2458 (arc_gdbarch_features_create): Add.
2459 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2460
2461 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2462
2463 * arch/arc.h: Rename "arc_gdbarch_features" to
2464 "arc_arch_features".
2465 * arc-tdep.h: Likewise.
2466 * arc-tdep.c: Likewise.
2467
2468 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2469
2470 * infcmd.c (attach_command): Remove the redundant call to
2471 `clear_proceed_status`.
2472
2473 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2474
2475 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2476
2477 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2478
2479 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2480 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2481 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2482
2483 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2484
2485 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2486 (_initialize_break_catch_sig): Don't allocate array.
2487
2488 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2489
2490 * symtab.c (find_pc_line): Return unmapped addresses when the
2491 requested address is also unmapped.
2492
2493 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2496 tui/tui-out.h.
2497
2498 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2499
2500 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2501 type::is_vector instead of TYPE_VECTOR.
2502
2503 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2504
2505 * auto-load.c (auto_load_objfile_script_1): Don't use
2506 debugfile_holder as temporary variable when stripping drive
2507 letter.
2508
2509 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2510
2511 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2512 Add TYPE_CODE_COMPLEX.
2513 (amd64_windows_return_value): Fix types returned via XMM0.
2514
2515 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2516
2517 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2518 AArch64/ARM maintainers.
2519
2520 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2521
2522 * NEWS: Mention set/show debug event-loop.
2523
2524 2020-10-02 Tom Tromey <tromey@adacore.com>
2525
2526 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2527 REG_EXTENDED.
2528
2529 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2530
2531 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2532 * procfs.c (procfs_inferior_created): Remove.
2533 (_initialize_procfs): Don't register procfs_inferior_created.
2534
2535 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * async-event.c (invoke_async_signal_handlers): Add debug
2538 print.
2539 (check_async_event_handlers): Likewise.
2540 * event-top.c (show_debug_event_loop): New function.
2541 (_initialize_event_top): Register "set debug event-loop"
2542 setting.
2543
2544 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2547 * debug.h: Remove.
2548 * infrun.c: Include gdbsupport/common-debug.h.
2549 * linux-nat.c: Likewise.
2550
2551 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * async-event.h (create_async_signal_handler): Add name
2554 parameter.
2555 (create_async_event_handler): Likewise.
2556 * async-event.c (struct async_signal_handler) <name>: New field.
2557 (struct async_event_handler) <name>: New field.
2558 (create_async_signal_handler): Assign name.
2559 (create_async_event_handler): Assign name.
2560 * event-top.c (async_init_signals): Pass name when creating
2561 handler.
2562 * infrun.c (_initialize_infrun): Likewise.
2563 * record-btrace.c (record_btrace_push_target): Likewise.
2564 * record-full.c (record_full_open): Likewise.
2565 * remote-notif.c (remote_notif_state_allocate): Likewise.
2566 * remote.c (remote_target::open_1): Likewise.
2567 * tui/tui-win.c (tui_initialize_win): Likewise.
2568
2569 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * async-event.c (initialize_async_signal_handlers): Pass name to
2572 add_file_handler
2573 * event-top.c (ui_register_input_event_handler): Likewise.
2574 * linux-nat.c (linux_nat_target::async): Likewise.
2575 * run-on-main-thread.c (_initialize_run_on_main_thread):
2576 Likewise
2577 * ser-base.c (reschedule): Likewise.
2578 (ser_base_async): Likewise.
2579 * tui/tui-io.c: Likewise.
2580 * top.h (struct ui) <num>: New field.
2581 * top.c (highest_ui_num): New variable.
2582 (ui::ui): Initialize num.
2583
2584 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2585
2586 * observable.h <inferior_created>: Remove parameters. Update all
2587 listeners.
2588 * inferior.h (post_create_inferior): Remove target parameter.
2589 Update all callers.
2590
2591 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2592
2593 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2594 and DW_MACRO_undef_strx.
2595 (dwarf_decode_macros): Likewise
2596 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2597 which is the value of DW_AT_str_offsets_base.
2598 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2599 str_offsets_base.
2600
2601 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2602
2603 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2604
2605 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2606
2607 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2608 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2609
2610 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2611
2612 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2613
2614 2020-09-30 Tom de Vries <tdevries@suse.de>
2615
2616 PR symtab/26683
2617 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2618
2619 2020-09-30 Tom Tromey <tromey@adacore.com>
2620
2621 * dwarf2/read.c (handle_variant): Use constant_value.
2622
2623 2020-09-29 Tom Tromey <tom@tromey.com>
2624
2625 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2626 (read_file_scope, dwarf2_get_pc_bounds)
2627 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2628 (read_structure_type, handle_struct_member_die)
2629 (read_enumeration_type, read_array_type, read_set_type)
2630 (read_tag_pointer_type, read_tag_reference_type)
2631 (read_subroutine_type, read_base_type, read_subrange_type)
2632 (read_full_die_1, partial_die_info::read)
2633 (partial_die_info::read, by, new_symbol)
2634 (dwarf2_const_value_data, dwarf2_const_value_attr)
2635 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2636 (prepare_one_comp_unit): Update.
2637 * dwarf2/attribute.h (DW_UNSND): Remove.
2638
2639 2020-09-29 Tom Tromey <tom@tromey.com>
2640
2641 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2642 (read_subroutine_type, partial_die_info::read)
2643 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2644 (dwarf2_add_member_fn): Update.
2645 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2646 * dwarf2/attribute.c (attribute::as_boolean): New method.
2647
2648 2020-09-29 Tom Tromey <tom@tromey.com>
2649
2650 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2651 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2652 method.
2653 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2654
2655 2020-09-29 Tom Tromey <tom@tromey.com>
2656
2657 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2658 the attribute's form.
2659
2660 2020-09-29 Tom Tromey <tom@tromey.com>
2661
2662 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2663 (dwarf2_add_member_fn): Update.
2664 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2665 * dwarf2/attribute.c (attribute::defaulted): New method, from
2666 is_valid_DW_AT_defaulted.
2667
2668 2020-09-29 Tom Tromey <tom@tromey.com>
2669
2670 * dwarf2/read.c (dw2_get_file_names_reader)
2671 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2672 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2673 (dwarf2_symbol_mark_computed): Use as_unsigned.
2674 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2675 method.
2676 <form_is_section_offset>: Update comment.
2677
2678 2020-09-29 Tom Tromey <tom@tromey.com>
2679
2680 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2681 dwarf2_default_access_attribute. Look up attribute.
2682 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2683 Update.
2684
2685 2020-09-29 Tom Tromey <tom@tromey.com>
2686
2687 * dwarf2/read.c (skip_one_die): Update.
2688 (read_full_die_1): Change how reprocessing is done.
2689 (partial_die_info::read): Update.
2690 (read_attribute_value): Remove need_reprocess parameter.
2691 (read_attribute): Likewise.
2692 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2693 New method.
2694
2695 2020-09-29 Tom Tromey <tom@tromey.com>
2696
2697 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2698 (dwarf2_const_value_attr, dump_die_shallow)
2699 (dwarf2_fetch_constant_bytes): Update.
2700 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2701 comment.
2702 <set_address>: New method.
2703 (DW_ADDR): Remove.
2704 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2705 (attribute::as_string, attribute::as_address): Add assert.
2706
2707 2020-09-29 Tom Tromey <tom@tromey.com>
2708
2709 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2710 (read_attribute_reprocess, read_attribute_value): Update.
2711 (read_attribute): Clear requires_reprocessing.
2712 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2713 form_requires_reprocessing>: New methods.
2714 <string_init>: Clear requires_reprocessing.
2715 <set_unsigned_reprocess>: New method.
2716 <name>: Shrink by one bit.
2717 <requires_reprocessing>: New member.
2718 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2719 method.
2720
2721 2020-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/read.c (read_attribute_value): Update.
2724 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2725 set_unsigned>: New methods.
2726 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2727
2728 2020-09-29 Tom Tromey <tom@tromey.com>
2729
2730 * dwarf2/read.c (get_alignment, read_array_order)
2731 (read_attribute_value, dwarf2_const_value_attr)
2732 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2733 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2734 New methods.
2735 (DW_SND): Remove.
2736
2737 2020-09-29 Tom Tromey <tom@tromey.com>
2738
2739 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2740 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2741 Update.
2742 * dwarf2/attribute.h (struct attribute) <as_signature,
2743 set_signature>: New methods.
2744 (DW_SIGNATURE): Remove.
2745
2746 2020-09-29 Tom Tromey <tom@tromey.com>
2747
2748 * dwarf2/read.c (read_call_site_scope)
2749 (handle_data_member_location, dwarf2_add_member_fn)
2750 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2751 (partial_die_info::read, read_attribute_value)
2752 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2753 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2754 (dwarf2_symbol_mark_computed): Update.
2755 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2756 methods.
2757 (DW_BLOCK): Remove.
2758 * dwarf2/attribute.c (attribute::form_is_block): Add
2759 DW_FORM_data16.
2760
2761 2020-09-29 Tom Tromey <tom@tromey.com>
2762
2763 * dwarf2/read.c (read_cutu_die_from_dwo)
2764 (read_attribute_reprocess, read_attribute_value, read_attribute)
2765 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2766 (dwarf2_fetch_constant_bytes): Update.
2767 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2768 <set_string_noncanonical, set_string_canonical>: New methods.
2769 <string_is_canonical>: Update comment.
2770 <canonical_string_p>: Add assert.
2771 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2772 * dwarf2/attribute.c (attribute::form_is_string): New method.
2773 (attribute::string): Use it.
2774
2775 2020-09-29 Tom Tromey <tom@tromey.com>
2776
2777 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2778 (dump_die_shallow): Use canonical_string_p.
2779 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2780 method.
2781
2782 2020-09-29 Tom Tromey <tom@tromey.com>
2783
2784 * dwarf2/read.c (partial_die_info::read)
2785 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2786 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2787 attribute::as_string.
2788
2789 2020-09-29 Tom Tromey <tom@tromey.com>
2790
2791 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2792 DW_ADDR.
2793 (attribute::string): Don't use DW_STRING.
2794 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2795 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2796
2797 2020-09-29 Tom Tromey <tom@tromey.com>
2798
2799 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2800 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2801 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2802 * dwarf2/attribute.h (struct attribute): Rename methods.
2803 * dwarf2/attribute.c (attribute::as_address): Rename from
2804 value_as_address.
2805 (attribute::as_string): Rename from value_as_string.
2806
2807 2020-09-29 Tom Tromey <tom@tromey.com>
2808
2809 * dwarf2/read.c (partial_die_info::read) <case
2810 DW_AT_linkage_name>: Use value_as_string.
2811 (dwarf2_string_attr): Use value_as_string.
2812 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2813 method.
2814 * dwarf2/attribute.c (attribute::value_as_string): New method.
2815
2816 2020-09-29 Pedro Alves <pedro@palves.net>
2817
2818 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2819 defined before using '#pragma GCC diagnostic' instead of checking
2820 __clang__.
2821
2822 2020-09-28 Tom Tromey <tom@tromey.com>
2823
2824 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2825 (handle_signal_stop): Update.
2826 * procfs.c (procfs_target::insert_watchpoint): Update.
2827 * target.h (target_have_steppable_watchpoint): Now a function.
2828
2829 2020-09-28 Tom Tromey <tom@tromey.com>
2830
2831 * infrun.c (set_schedlock_func): Update.
2832 * target.h (target_can_lock_scheduler): Now a function.
2833
2834 2020-09-28 Tom Tromey <tom@tromey.com>
2835
2836 * inferior.h (class inferior) <has_execution>: Update.
2837 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2838 * valops.c (find_function_in_inferior)
2839 (value_allocate_space_in_inferior): Update.
2840 * top.c (kill_or_detach): Update.
2841 * target.c (target_preopen, set_target_permissions): Update.
2842 (target_has_execution_current): Remove.
2843 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2844 Update.
2845 * solib.c (update_solib_list, reload_shared_libraries): Update.
2846 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2847 * solib-dsbt.c (enable_break): Update.
2848 * score-tdep.c (score7_fetch_inst): Update.
2849 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2850 Update.
2851 * remote.c (remote_target::start_remote)
2852 (remote_target::remote_check_symbols, remote_target::open_1)
2853 (remote_target::remote_detach_1, remote_target::verify_memory)
2854 (remote_target::xfer_partial, remote_target::read_description)
2855 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2856 * record-full.c (record_full_open_1): Update.
2857 * record-btrace.c (record_btrace_target_open): Update.
2858 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2859 (value_nsstring): Update.
2860 * linux-thread-db.c (add_thread_db_info)
2861 (thread_db_find_new_threads_silently, check_thread_db_callback)
2862 (try_thread_db_load_1, record_thread): Update.
2863 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2864 Update.
2865 * linux-fork.c (checkpoint_command): Update.
2866 * infrun.c (set_non_stop, set_observer_mode)
2867 (check_multi_target_resumption, for_each_just_stopped_thread)
2868 (maybe_remove_breakpoints, normal_stop)
2869 (class infcall_suspend_state): Update.
2870 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2871 (info_program_command, attach_command): Update.
2872 * infcall.c (call_function_by_hand_dummy): Update.
2873 * inf-loop.c (inferior_event_handler): Update.
2874 * gcore.c (gcore_command, derive_heap_segment): Update.
2875 * exec.c (exec_file_command): Update.
2876 * eval.c (evaluate_subexp): Update.
2877 * compile/compile.c (compile_to_object): Update.
2878 * cli/cli-dump.c (restore_command): Update.
2879 * breakpoint.c (update_watchpoint)
2880 (update_inserted_breakpoint_locations)
2881 (insert_breakpoint_locations, get_bpstat_thread): Update.
2882 * target.h (target_has_execution): Remove macro.
2883 (target_has_execution_current): Don't declare.
2884 (target_has_execution): Rename from target_has_execution_1. Add
2885 argument default.
2886
2887 2020-09-28 Tom Tromey <tom@tromey.com>
2888
2889 * mi/mi-main.c (exec_reverse_continue)
2890 (mi_cmd_list_target_features): Update.
2891 * infrun.c (set_exec_direction_func): Update.
2892 * target.c (default_execution_direction): Update.
2893 * reverse.c (exec_reverse_once): Update.
2894 * target.h (target_can_execute_reverse): Now a function.
2895
2896 2020-09-28 Tom Tromey <tom@tromey.com>
2897
2898 * tui/tui-regs.c (tui_get_register)
2899 (tui_data_window::show_registers): Update.
2900 * thread.c (scoped_restore_current_thread::restore)
2901 (scoped_restore_current_thread::scoped_restore_current_thread):
2902 Update.
2903 * regcache-dump.c (regcache_print): Update.
2904 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2905 Update.
2906 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2907 * mep-tdep.c (current_me_module, current_options): Update.
2908 * linux-thread-db.c (thread_db_load): Update.
2909 * infcmd.c (registers_info, info_vector_command)
2910 (info_float_command): Update.
2911 * ia64-tdep.c (ia64_frame_prev_register)
2912 (ia64_sigtramp_frame_prev_register): Update.
2913 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2914 * gcore.c (derive_stack_segment): Update.
2915 * frame.c (get_current_frame, has_stack_frames): Update.
2916 * findvar.c (language_defn::read_var_value): Update.
2917 * arm-tdep.c (arm_pc_is_thumb): Update.
2918 * target.c (target_has_registers): Rename from
2919 target_has_registers_1.
2920 * target.h (target_has_registers): Remove macro.
2921 (target_has_registers): Rename from target_has_registers_1.
2922
2923 2020-09-28 Tom Tromey <tom@tromey.com>
2924
2925 * windows-tdep.c (tlb_make_value): Update.
2926 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2927 * thread.c (scoped_restore_current_thread::restore)
2928 (scoped_restore_current_thread::scoped_restore_current_thread)
2929 (thread_command): Update.
2930 * stack.c (backtrace_command_1, frame_apply_level_command)
2931 (frame_apply_all_command, frame_apply_command): Update.
2932 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2933 Update.
2934 * gcore.c (derive_stack_segment): Update.
2935 * frame.c (get_current_frame, has_stack_frames): Update.
2936 * auxv.c (info_auxv_command): Update.
2937 * ada-tasks.c (ada_build_task_list): Update.
2938 * target.c (target_has_stack): Rename from target_has_stack_1.
2939 * target.h (target_has_stack): Remove macro.
2940 (target_has_stack): Rename from target_has_stack_1.
2941
2942 2020-09-28 Tom Tromey <tom@tromey.com>
2943
2944 * target.c (target_has_memory): Rename from target_has_memory_1.
2945 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2946 * thread.c (scoped_restore_current_thread::restore)
2947 (scoped_restore_current_thread::scoped_restore_current_thread):
2948 Update.
2949 * frame.c (get_current_frame, has_stack_frames): Update.
2950 * target.h (target_has_memory): Remove macro.
2951 (target_has_memory): Rename from target_has_memory_1.
2952
2953 2020-09-28 Tom Tromey <tom@tromey.com>
2954
2955 * target.c (target_has_all_memory_1): Remove.
2956 * target.h (target_has_all_memory): Remove define.
2957 (target_has_all_memory_1): Don't declare.
2958
2959 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2960
2961 * ser-base.c: Adjust comments formatting.
2962
2963 2020-09-27 Tom Tromey <tom@tromey.com>
2964
2965 PR tui/25342:
2966 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2967
2968 2020-09-27 Tom Tromey <tom@tromey.com>
2969
2970 PR tui/25342:
2971 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2972
2973 2020-09-27 Tom Tromey <tom@tromey.com>
2974
2975 * unittests/tui-selftests.c: Update.
2976 * tui/tui-winsource.h (struct tui_source_window_base)
2977 <extra_margin, show_line_number, refresh_pad>: New methods.
2978 <m_max_length, m_pad>: New members.
2979 (tui_copy_source_line): Update.
2980 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2981 first_col, line_width, ndigits parameters. Add length.
2982 (tui_source_window_base::show_source_line): Write to pad. Line
2983 number now 0-based.
2984 (tui_source_window_base::refresh_pad): New method.
2985 (tui_source_window_base::show_source_content): Write to pad. Call
2986 refresh_pad.
2987 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2988 not refill.
2989 (tui_source_window_base::update_exec_info): Call
2990 show_line_number.
2991 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2992 method.
2993 <m_digits>: New member.
2994 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2995 and m_max_length.
2996 (tui_source_window::show_line_number): New method.
2997 * tui/tui-io.h (tui_puts): Fix comment.
2998 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2999 m_max_length.
3000
3001 2020-09-27 Tom Tromey <tom@tromey.com>
3002
3003 * tui/tui-winsource.c
3004 (tui_source_window_base::set_is_exec_point_at): Don't call
3005 show_source_line.
3006
3007 2020-09-27 Tom Tromey <tom@tromey.com>
3008
3009 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3010 method.
3011 <erase>: Update.
3012 <cursor_x, cursor_y>: Remove.
3013 <m_inner_window>: New member.
3014 (tui_py_window::rerender): Create inner window.
3015 (tui_py_window::output): Write to inner window.
3016
3017 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3018
3019 PR python/26586
3020 * cli/cli-script.c (execute_control_commands): don't set
3021 instream to nullptr here as this breaks the from_tty argument
3022 to gdb.execute in Python.
3023 (execute_user_command): set instream to nullptr here instead.
3024
3025 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3026
3027 * infrun.h (infrun_debug_printf): Fix formatting.
3028 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3029
3030 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3031
3032 * compile/compile-object-load.h (struct munmap_list): Add
3033 explicitly-defined move constructor.
3034
3035 2020-09-24 Tom Tromey <tromey@adacore.com>
3036
3037 PR tui/26638:
3038 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3039 method.
3040 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3041 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3042 (tui_prev_win): Rewrite.
3043
3044 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3045
3046 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3047 in WOW64 processes as SIGINT.
3048 * nat/windows-nat.h: Make wow64_process a shared variable.
3049 * windows-nat.c: Remove static wow64_process variable.
3050
3051 2020-09-23 Tom Tromey <tom@tromey.com>
3052
3053 PR symtab/25470:
3054 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3055 offset and bit size.
3056 * printcmd.c (print_scalar_formatted): Handle zero-length
3057 integer.
3058 (print_scalar_formatted): Use bit_size_differs_p.
3059 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3060 constant.
3061 (union type_specific): <int_stuff>: New member.
3062 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3063 methods.
3064 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3065 TYPE_SPECIFIC_FIELD.
3066 (recursive_dump_type, copy_type_recursive): Update.
3067 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3068 DW_AT_data_bit_offset.
3069
3070 2020-09-23 Tom Tromey <tom@tromey.com>
3071
3072 * utils.h (class gdb_argv): Add move operators.
3073 <append>: New methods.
3074 * compile/compile.c (build_argc_argv): Remove.
3075 (compile_args_argc): Remove.
3076 (compile_args_argv): Change type.
3077 (set_compile_args): Simplify.
3078 (append_args): Remove.
3079 (filter_args): Remove argcp parameter.
3080 (get_args): Return gdb_argv. Simplify.
3081 (compile_to_object): Update.
3082
3083 2020-09-23 Tom Tromey <tom@tromey.com>
3084
3085 * compile/compile-object-run.c (do_module_cleanup)
3086 <~do_module_cleanup> :Remove.
3087 (do_module_cleanup): Update.
3088 * compile/compile-object-load.h (struct munmap_list): Add move
3089 assignment operator.
3090 <source_file>: Now a std::string.
3091 <munmap_list>: Rename. No longer a pointer.
3092 * compile/compile-object-load.c (struct setup_sections_data): Add
3093 constructor.
3094 <setup_one_section>: Declare.
3095 <munmap_list>: Move earlier.
3096 <m_bfd>: New member.
3097 <m_last_size, m_last_section_first, m_last_prot,
3098 m_last_max_alignment>: Rename, add initializers where needed.
3099 (setup_sections_data::setup_one_section): Rename from
3100 setup_sections. Update.
3101 (compile_object_load): Update. Don't use bfd_map_over_sections.
3102
3103 2020-09-23 Tom Tromey <tom@tromey.com>
3104
3105 * compile/compile-object-run.c (struct do_module_cleanup): Add
3106 parameters to constructor. Update destructor.
3107 <source_file, scope, scope_data, out_value_type, out_value_addr,
3108 munmap_list_head, objfile_name_string>: Remove.
3109 <module>: New member.
3110 (do_module_cleanup): Update.
3111 (compile_object_run): Update.
3112
3113 2020-09-23 Tom Tromey <tom@tromey.com>
3114
3115 * compile/compile.c (eval_compile_command): Update.
3116 * compile/compile-object-run.h (compile_object_run): Take a
3117 compile_module_up.
3118 * compile/compile-object-run.c (compile_object_run): Take a
3119 compile_module_up.
3120 * compile/compile-object-load.h (struct compile_module): Add
3121 constructor, destructor.
3122 (compile_module_up): New typedef.
3123 (compile_object_load): Return compile_object_up.
3124 * compile/compile-object-load.c (compile_object_load): Return
3125 compile_module_up.
3126
3127 2020-09-23 Tom Tromey <tom@tromey.com>
3128
3129 * compile/compile-object-run.c (struct do_module_cleanup): Add
3130 constructor, destructor.
3131 <objfile_name_string>: Don't use struct hack.
3132 (do_module_cleanup): Use delete.
3133 (compile_object_run): Use new.
3134
3135 2020-09-23 Tom Tromey <tom@tromey.com>
3136
3137 * compile/compile-cplus-types.c
3138 (compile_cplus_convert_struct_or_union): Use std::vector.
3139 (compile_cplus_convert_func): Likewise.
3140 * compile/compile-c-types.c (convert_func): Use std::vector.
3141
3142 2020-09-21 Tom Tromey <tromey@adacore.com>
3143
3144 * sparc-tdep.c (sparc32_skip_prologue): Use
3145 skip_prologue_using_sal.
3146
3147 2020-09-19 Tom Tromey <tom@tromey.com>
3148
3149 * symfile.c (add_section_size_callback): Remove.
3150 (load_one_section): Rename from load_section_callback. Change
3151 parameters.
3152 (generic_load): Use foreach.
3153
3154 2020-09-19 Tom Tromey <tom@tromey.com>
3155
3156 * exec.c (add_to_section_table): Remove.
3157 (build_section_table): Use foreach.
3158
3159 2020-09-19 Tom Tromey <tom@tromey.com>
3160
3161 * elfread.c (elf_locate_sections): Change parameters.
3162 (elf_symfile_read): Use foreach.
3163
3164 2020-09-19 Tom Tromey <tom@tromey.com>
3165
3166 * cli/cli-dump.c (struct callback_data): Remove.
3167 (restore_one_section): Rename from restore_section_callback.
3168 Change parameters.
3169 (restore_binary_file): Change parameters.
3170 (restore_command): Use foreach.
3171
3172 2020-09-19 Tom Tromey <tom@tromey.com>
3173
3174 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3175 (gcore_copy_callback): Likewise.
3176 (gcore_memory_sections): Use foreach.
3177
3178 2020-09-19 Tom Tromey <tom@tromey.com>
3179
3180 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3181 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3182 parameters.
3183 (generic_elf_osabi_sniffer): Use foreach.
3184 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3185 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3186
3187 2020-09-19 Tom Tromey <tom@tromey.com>
3188
3189 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3190 (dwarf2_get_dwz_file): Use foreach.
3191 (dwarf2_locate_dwo_sections): Change parameters.
3192 (open_and_init_dwo_file): Use foreach.
3193 (dwarf2_locate_common_dwp_sections): Change parameters.
3194 (open_and_init_dwp_file): Use foreach.
3195
3196 2020-09-19 Tom Tromey <tom@tromey.com>
3197
3198 * symfile.h: (find_lowest_section): Don't declare.
3199 * symfile.c (find_lowest_section): Now static. Change
3200 parameters.
3201 (struct place_section_arg): Remove.
3202 (place_section): Change parameters.
3203 (addr_info_make_relative): Use foreach.
3204 (symfile_dummy_outputs): Remove.
3205 (default_symfile_relocate): Use foreach.
3206
3207 2020-09-19 Tom Tromey <tom@tromey.com>
3208
3209 * objfiles.c (add_to_objfile_sections): Rename from
3210 add_to_objfile_sections_full.
3211 (add_to_objfile_sections): Remove.
3212 (build_objfile_section_table): Use foreach.
3213
3214 2020-09-19 Tom Tromey <tom@tromey.com>
3215
3216 * stap-probe.c (get_stap_base_address_1): Remove.
3217 (get_stap_base_address): Use foreach.
3218
3219 2020-09-19 Tom Tromey <tom@tromey.com>
3220
3221 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3222 parameters.
3223 (gdb_bfd_close_or_warn): Use foreach.
3224
3225 2020-09-19 Tom Tromey <tom@tromey.com>
3226
3227 * corelow.c (add_to_thread_list): Change parameters.
3228 (core_target_open): Use foreach.
3229
3230 2020-09-19 Tom Tromey <tom@tromey.com>
3231
3232 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3233 existing function.
3234
3235 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3238 for arrays.
3239
3240 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * eval.c: Remove 'f-lang.h' include.
3243 (value_f90_subarray): Moved to f-lang.c.
3244 (eval_call): Renamed to...
3245 (evaluate_subexp_do_call): ...this, is no longer static, header
3246 comment moved into header file.
3247 (evaluate_funcall): Update call to eval_call.
3248 (skip_undetermined_arglist): Moved to f-lang.c.
3249 (fortran_value_subarray): Likewise.
3250 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3251 moved to evaluate_subexp_f.
3252 (calc_f77_array_dims): Moved to f-lang.c
3253 * expprint.c (print_subexp_funcall): New function.
3254 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3255 moved to print_subexp_f, OP_FUNCALL uses new function.
3256 (dump_subexp_body_funcall): New function.
3257 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3258 moved to dump_subexp_f, OP_FUNCALL uses new function.
3259 * expression.h (evaluate_subexp_do_call): Declare.
3260 * f-lang.c (value_f90_subarray): Moved from eval.c.
3261 (skip_undetermined_arglist): Likewise.
3262 (calc_f77_array_dims): Likewise.
3263 (fortran_value_subarray): Likewise.
3264 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3265 (operator_length_f): Likewise.
3266 (print_subexp_f): Likewise.
3267 (dump_subexp_body_f): Likewise.
3268 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3269 declaration of this operation to here.
3270 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3271 support moved to operator_length_f.
3272 * parser-defs.h (dump_subexp_body_funcall): Declare.
3273 (print_subexp_funcall): Declare.
3274 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3275 fortran-operator.def.
3276
3277 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * eval.c (fortran_value_subarray): New function, content is taken
3280 from...
3281 (evaluate_subexp_standard): ...here, in two places. Now arrays
3282 and strings both call the new function.
3283 (calc_f77_array_dims): Add header comment, handle strings.
3284
3285 2020-09-18 Victor Collod <vcollod@nvidia.com>
3286
3287 PR gdb/26635
3288 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3289 (i386_analyze_prologue): Call i386_skip_endbr.
3290
3291 2020-09-18 Tom Tromey <tromey@adacore.com>
3292
3293 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3294 (windows_nat_target::wait): Update.
3295 * target/wait.h (enum target_wait_flag): New. Use
3296 DEF_ENUM_FLAGS_TYPE.
3297 * target/target.h (target_wait): Change type of options.
3298 * target.h (target_options_to_string, default_target_wait):
3299 Update.
3300 (struct target_ops) <wait>: Change type of options.
3301 * target.c (target_wait, default_target_wait, do_option): Change
3302 type of "options".
3303 (target_options_to_string): Likewise.
3304 * target-delegates.c: Rebuild.
3305 * target-debug.h (target_debug_print_target_wait_flags): Rename
3306 from target_debug_print_options.
3307 * sol-thread.c (class sol_thread_target) <wait>: Update.
3308 (sol_thread_target::wait): Update.
3309 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3310 (rs6000_nat_target::wait): Update.
3311 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3312 Update.
3313 (remote_target::wait_ns, remote_target::wait_as): Change type of
3314 "options".
3315 (remote_target::wait): Update.
3316 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3317 (gdbsim_target::wait): Update.
3318 * record-full.c (class record_full_base_target) <wait>: Update.
3319 (record_full_wait_1): Change type of "options".
3320 (record_full_base_target::wait): Update.
3321 * record-btrace.c (class record_btrace_target) <wait>: Update.
3322 (record_btrace_target::wait): Update.
3323 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3324 Update.
3325 (ravenscar_thread_target::wait): Update.
3326 * procfs.c (class procfs_target) <wait>: Update.
3327 (procfs_target::wait): Update.
3328 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3329 * obsd-nat.c (obsd_nat_target::wait): Update.
3330 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3331 (nto_procfs_target::wait): Update.
3332 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3333 * nbsd-nat.c (nbsd_wait): Change type of "options".
3334 (nbsd_nat_target::wait): Update.
3335 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3336 (thread_db_target::wait): Update.
3337 * linux-nat.h (class linux_nat_target) <wait>: Update.
3338 * linux-nat.c (linux_nat_target::wait): Update.
3339 (linux_nat_wait_1): Update.
3340 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3341 "options".
3342 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3343 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3344 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3345 (go32_nat_target::wait): Update.
3346 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3347 * gnu-nat.c (gnu_nat_target::wait): Update.
3348 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3349 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3350 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3351 * darwin-nat.c (darwin_nat_target::wait): Update.
3352 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3353 (bsd_uthread_target::wait): Update.
3354 * aix-thread.c (class aix_thread_target) <wait>: Update.
3355 (aix_thread_target::wait): Update.
3356
3357 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * compile/compile-object-run.c (create_copied_type_recursive): New
3360 function.
3361 (compile_object_run): Use new function.
3362
3363 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3364
3365 * NEWS: Mention x86_64 Cygwin core file support.
3366
3367 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3368
3369 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3370 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3371
3372 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3373
3374 * windows-tdep.h: Add prototypes.
3375 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3376 (i386_windows_core_pid_to_str): Move and rename ...
3377 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3378 (windows_core_pid_to_str): ... and here.
3379 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3380
3381 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3382 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3383 (amd64_windows_init_abi_common): ... and register.
3384
3385 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3386
3387 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3388 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3389
3390 2020-09-18 Pedro Alves <pedro@palves.net>
3391
3392 PR gdb/26631
3393 * thread.c (thread_find_command): Switch inferior before calling
3394 target methods.
3395
3396 2020-09-17 Tom Tromey <tromey@adacore.com>
3397
3398 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3399 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3400 (tdesc_arch_data_up): New typedef.
3401 (tdesc_use_registers, tdesc_data_alloc): Update.
3402 (tdesc_data_cleanup): Don't declare.
3403 * target-descriptions.c (tdesc_data_alloc): Return a
3404 tdesc_arch_data_up.
3405 (tdesc_arch_data_deleter::operator()): Rename from
3406 tdesc_data_cleanup. Change argument type.
3407 (tdesc_use_registers): Change early_data to an rvalue reference.
3408 (tdesc_use_registers): Don't use delete.
3409 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3410 * s390-tdep.c (s390_gdbarch_init): Update.
3411 * rx-tdep.c (rx_gdbarch_init): Update.
3412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3413 * riscv-tdep.c (riscv_gdbarch_init): Update.
3414 * or1k-tdep.c (or1k_gdbarch_init): Update.
3415 * nios2-tdep.c (nios2_gdbarch_init): Update.
3416 * nds32-tdep.c (nds32_gdbarch_init): Update.
3417 * mips-tdep.c (mips_gdbarch_init): Update.
3418 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3419 * m68k-tdep.c (m68k_gdbarch_init): Update.
3420 * i386-tdep.c (i386_gdbarch_init): Update.
3421 * arm-tdep.c (arm_gdbarch_init): Update.
3422 * arc-tdep.c (arc_tdesc_init): Update.
3423 (arc_gdbarch_init): Update.
3424 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3425
3426 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3427
3428 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3429 for WOW64 processes.
3430
3431 2020-09-17 Tom Tromey <tom@tromey.com>
3432
3433 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3434
3435 2020-09-17 Tom Tromey <tom@tromey.com>
3436
3437 * value.c (preserve_values): Update.
3438 * python/py-type.c (save_objfile_types): Update.
3439 * guile/scm-type.c (save_objfile_types): Update.
3440 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3441 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3442 * compile/compile-object-run.c (compile_object_run): Update.
3443
3444 2020-09-17 Tom Tromey <tom@tromey.com>
3445
3446 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3447 Remove.
3448 <m_table>: Now htab_up.
3449 * typeprint.c (typedef_hash_table::recursively_update)
3450 (typedef_hash_table::add_template_parameters)
3451 (typedef_hash_table::typedef_hash_table): Update.
3452 (typedef_hash_table::~typedef_hash_table): Remove.
3453 (typedef_hash_table::typedef_hash_table)
3454 (typedef_hash_table::find_global_typedef)
3455 (typedef_hash_table::find_typedef): Update.
3456
3457 2020-09-17 Tom Tromey <tom@tromey.com>
3458
3459 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3460
3461 2020-09-17 Tom Tromey <tom@tromey.com>
3462
3463 * linespec.c (class decode_compound_collector)
3464 <~decode_compound_collector>: Remove.
3465 <m_unique_syms>: Now htab_up.
3466 (decode_compound_collector::operator ()): Update.
3467 (class symtab_collector) <~symtab_collector>: Remove.
3468 <m_symtab_table>: Now htab_up.
3469 (symtab_collector::operator ()): Update.
3470
3471 2020-09-17 Tom Tromey <tom@tromey.com>
3472
3473 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3474 (filename_seen_cache::clear): Update.
3475 (~filename_seen_cache): Remove.
3476 (filename_seen_cache::seen): Update.
3477 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3478 htab_up.
3479 <~filename_seen_cache>: Remove.
3480 <traverse>: Update.
3481
3482 2020-09-17 Tom Tromey <tom@tromey.com>
3483
3484 * completer.c (completion_tracker::discard_completions)
3485 (completion_tracker::~completion_tracker)
3486 (completion_tracker::maybe_add_completion)
3487 (completion_tracker::remove_completion)
3488 (completion_tracker::recompute_lowest_common_denominator)
3489 (completion_tracker::build_completion_result): Update.
3490 * completer.h (class completion_tracker) <have_completions>:
3491 Update.
3492 <m_entries_hash>: Now htab_up.
3493
3494 2020-09-17 Tom Tromey <tom@tromey.com>
3495
3496 * breakpoint.c (ambiguous_names_p): Use htab_up.
3497
3498 2020-09-17 Tom Tromey <tom@tromey.com>
3499
3500 * auto-load.c (struct auto_load_pspace_info)
3501 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3502 <loaded_script_files, loaded_script_texts>: Change type to
3503 htab_up.
3504 (~auto_load_pspace_info) Remove.
3505 (init_loaded_scripts_info, maybe_add_script_file)
3506 (maybe_add_script_text, auto_load_info_scripts): Update.
3507
3508 2020-09-17 Tom Tromey <tromey@adacore.com>
3509
3510 * c-exp.y (name_obstack): Now static.
3511
3512 2020-09-17 Chungyi Chi <demonic@csie.io>
3513
3514 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3515
3516 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3519 (add_solib_catchpoint): Likewise.
3520 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3521 to bool.
3522 (add_solib_catchpoint): Change int parameter/variable to bool.
3523 (catch_load_or_unload): Likewise.
3524 (init_catchpoint): Likewise.
3525 (create_fork_vfork_event_catchpoint): Likewise.
3526 (catch_fork_command_1): Likewise.
3527 (catch_exec_command_1): Likewise.
3528
3529 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3532 Change instance_flags to m_instance_flags.
3533
3534 2020-09-16 Tom Tromey <tromey@adacore.com>
3535
3536 PR gdb/26598:
3537 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3538
3539 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3540
3541 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3542 PL_FLAG_EXEC.
3543 (fbsd_nat_target::insert_exec_catchpoint)
3544 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3545 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3546 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3547
3548 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3549
3550 * configure.ac: Remove check for kinfo_getvmmap().
3551 * configure, config.in: Regenerate.
3552 * fbsd-nat.c (fbsd_read_mapping): Remove
3553 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3554 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3555 kinfo_get_vmmap() are always present.
3556
3557 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3558
3559 * fbsd-nat.c: Always include support for
3560 TARGET_OBJECT_SIGNAL_INFO.
3561
3562 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3563
3564 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3565 sysctl and remove procfs fallback.
3566
3567 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3568
3569 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3570 * fbsd-nat.h: Likewise.
3571
3572 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573
3574 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3575 argument.
3576
3577 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * ada-lang.c (ada_language_data): Delete.
3580 (ada_language): Remove references to ada_language_data.
3581 * c-lang.c (c_language_data): Delete.
3582 (c_language): Remove references to c_language_data.
3583 (cplus_language_data): Delete.
3584 (cplus_language): Remove references to cplus_language_data.
3585 (asm_language_data): Delete.
3586 (asm_language): Remove references to asm_language_data.
3587 (minimal_language_data): Delete.
3588 (minimal_language): Remove references to minimal_language_data.
3589 * d-lang.c (d_language_data): Delete.
3590 (d_language): Remove references to d_language_data.
3591 * f-lang.c (f_language_data): Delete.
3592 (f_language): Remove references to f_language_data.
3593 * go-lang.c (go_language_data): Delete.
3594 (go_language): Remove references to go_language_data.
3595 * language.c (unknown_language_data): Delete.
3596 (unknown_language): Remove references to unknown_language_data.
3597 (auto_language_data): Delete.
3598 (auto_language): Remove references to auto_language_data.
3599 * language.h (language_data): Delete struct.
3600 (language_defn): No longer inherit from language_data.
3601 * m2-lang.c (m2_language_data): Delete.
3602 (m2_language): Remove references to m2_language_data.
3603 * objc-lang.c (objc_language_data): Delete.
3604 (objc_language): Remove references to objc_language_data.
3605 * opencl-lang.c (opencl_language_data): Delete.
3606 (opencl_language): Remove references to opencl_language_data.
3607 * p-lang.c (pascal_language_data): Delete.
3608 (pascal_language): Remove references to pascal_language_data.
3609 * rust-lang.c (rust_language_data): Delete.
3610 (rust_language): Remove references to rust_language_data.
3611
3612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3615 initializer.
3616 (ada_language::opcode_print_table): New member function.
3617 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3618 (c_language::opcode_print_table): New member function.
3619 (cplus_language_data): Remove la_op_print_tab initializer.
3620 (cplus_language::opcode_print_table): New member function.
3621 (asm_language_data): Remove la_op_print_tab initializer.
3622 (asm_language::opcode_print_table): New member function.
3623 (minimal_language_data): Remove la_op_print_tab initializer.
3624 (minimal_language::opcode_print_table): New member function.
3625 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3626 (d_language::opcode_print_table): New member function.
3627 * expprint.c (print_subexp_standard): Update call to
3628 opcode_print_table.
3629 (op_string): Likewise.
3630 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3631 (f_language::opcode_print_table): New member function.
3632 * go-lang.c (go_language_data): Remove la_op_print_tab
3633 initializer.
3634 (go_language::opcode_print_table): New member function.
3635 * language.c (unknown_language_data): Remove la_op_print_tab
3636 initializer.
3637 (unknown_language::opcode_print_table): New member function.
3638 (auto_language_data): Remove la_op_print_tab initializer.
3639 (auto_language::opcode_print_table): New member function.
3640 * language.h (language_data): Remove la_op_print_tab field.
3641 (language_defn::opcode_print_table): Declare new member function.
3642 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3643 initializer.
3644 (m2_language::opcode_print_table): New member function.
3645 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3646 initializer.
3647 (objc_language::opcode_print_table): New member function.
3648 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3649 initializer.
3650 (opencl_language::opcode_print_table): New member function.
3651 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3652 initializer.
3653 (pascal_language::opcode_print_table): New member function.
3654 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3655 initializer.
3656 (rust_language::opcode_print_table): New member function.
3657
3658 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3661 (ada_language::expression_ops): New member function.
3662 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3663 (c_language::expression_ops): New member function.
3664 (cplus_language_data): Remove la_exp_desc initializer.
3665 (cplus_language::expression_ops): New member function.
3666 (asm_language_data): Remove la_exp_desc initializer.
3667 (asm_language::expression_ops): New member function.
3668 (minimal_language_data): Remove la_exp_desc initializer.
3669 (minimal_language::expression_ops): New member function.
3670 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3671 (d_language::expression_ops): New member function.
3672 * eval.c (evaluate_subexp): Update call to expression_ops.
3673 * expprint.c (print_subexp): Likewise.
3674 (op_name): Likewise.
3675 (dump_subexp_body): Likewise.
3676 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3677 (f_language::expression_ops): New member function.
3678 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3679 (go_language::expression_ops): New member function.
3680 * language.c (language_defn::expression_ops): New function.
3681 (unknown_language_data): Remove la_exp_desc initializer.
3682 (auto_language_data): Likewise.
3683 * language.h (language_data): Remove la_exp_desc field.
3684 (language_defn::expression_ops): Declare new member function.
3685 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3686 (m2_language::expression_ops): New member function.
3687 * objc-lang.c (objc_language_data): Remove la_exp_desc
3688 initializer.
3689 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3690 initializer.
3691 (opencl_language::expression_ops): New member function.
3692 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3693 * parse.c (operator_length): Update call to expression_ops.
3694 (exp_iterate): Likewise.
3695 * rust-lang.c (rust_language_data): Remove la_exp_desc
3696 initializer.
3697 (ruse_language::expression_ops): New member function.
3698
3699 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3702 initializer.
3703 (ada_language::varobj_ops): New member function.
3704 * c-lang.c (c_language_data): Remove la_varobj_ops
3705 initializer.
3706 (cplus_language_data): Likewise.
3707 (cplus_language::varobj_ops): New member function.
3708 (asm_language_data): Remove la_varobj_ops initializer.
3709 (minimal_language_data): Likewise.
3710 * d-lang.c (d_language_data): Likewise.
3711 * f-lang.c (f_language_data): Likewise.
3712 * go-lang.c (go_language_data): Likewise.
3713 * language.c (language_defn::varobj_ops): New function.
3714 (unknown_language_data): Remove la_varobj_ops
3715 initializer.
3716 (auto_language_data): Likewise.
3717 * language.h (language_data): Remove la_varobj_ops field.
3718 (language_defn::varobj_ops): Declare new member function.
3719 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3720 * objc-lang.c (objc_language_data): Likewise.
3721 * opencl-lang.c (opencl_language_data): Likewise.
3722 * p-lang.c (pascal_language_data): Likewise.
3723 * rust-lang.c (rust_language_data): Likewise.
3724 * varobj.c (varobj_create): Update call to varobj_ops.
3725 * varobj.h (default_varobj_ops): Delete define.
3726
3727 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3730 initializer.
3731 * c-lang.c (c_language_data): Likewise.
3732 (c_language::macro_expansion): New member function.
3733 (cplus_language_data): Likewise.
3734 (cplus_language::macro_expansion): New member function.
3735 (asm_language_data): Likewise.
3736 (asm_language::macro_expansion): New member function.
3737 (minimal_language_data): Likewise.
3738 (minimal_language::macro_expansion): New member function.
3739 * d-lang.c (d_language_data): Remove la_macro_expansion
3740 initializer.
3741 * f-lang.c (f_language_data): Likewise.
3742 * go-lang.c (go_language_data): Likewise.
3743 * language.c (unknown_language_data): Likewise.
3744 (auto_language_data): Likewise.
3745 * language.h (language_data): Remove la_macro_expansion field.
3746 (language_defn::macro_expansion): New member function.
3747 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3748 initializer.
3749 * objc-lang.c (objc_language_data): Likewise.
3750 (objc_language::macro_expansion): New member function.
3751 * opencl-lang.c (opencl_language_data): Likewise.
3752 (opencl_language::macro_expansion): New member function.
3753 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3754 initializer.
3755 * rust-lang.c (rust_language_data): Likewise.
3756 * symtab.c (default_collect_symbol_completion_matches_break_on):
3757 Update call to macro_expansion.
3758
3759 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * ada-lang.c (ada_language_data): Remove la_array_ordering
3762 initializer.
3763 * c-lang.c (c_language_data): Likewise.
3764 (cplus_language_data): Likewise.
3765 (asm_language_data): Likewise.
3766 (minimal_language_data): Likewise.
3767 * d-lang.c (d_language_data): Likewise.
3768 * dwarf2/read.c (read_array_order): Update for call to
3769 array_ordering.
3770 * f-lang.c (f_language_data): Remove la_array_ordering
3771 initializer.
3772 (f_language::array_ordering): New member function.
3773 * go-lang.c (go_language_data): Remove la_array_ordering
3774 initializer.
3775 * language.c (unknown_language_data): Likewise.
3776 (auto_language_data): Likewise.
3777 * language.h (language_data): Delete la_array_ordering field.
3778 (language_defn::array_ordering): New member function.
3779 * m2-lang.c (m2_language_data): Remove la_array_ordering
3780 initializer.
3781 * objc-lang.c (objc_language_data): Likewise.
3782 * opencl-lang.c (opencl_language_data): Likewise.
3783 * p-lang.c (pascal_language_data): Likewise.
3784 * rust-lang.c (rust_language_data): Likewise.
3785
3786 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3789 initializer.
3790 * c-lang.c (c_language_data): Likewise.
3791 (cplus_language_data): Likewise.
3792 (asm_language_data): Likewise.
3793 (minimal_language_data): Likewise.
3794 * d-lang.c (d_language_data): Likewise.
3795 * f-lang.c (f_language_data): Likewise.
3796 (f_language::case_sensitivity): New member function.
3797 * go-lang.c (go_language_data): Remove la_case_sensitivity
3798 initializer.
3799 * language.c (enum case_mode): Moved here from language.h.
3800 (case_mode): Make static.
3801 (show_case_command): Update for case_sensitivity being a method.
3802 (set_case_command): Likewise.
3803 (set_range_case): Likewise.
3804 (unknown_language_data): Remove la_case_sensitivity initializer.
3805 (auto_language_data): Likewise.
3806 * language.h (case_mode): Delete, move enum declaration to
3807 language.c.
3808 (language_data): Delete la_case_sensitivity field.
3809 (language_defn::case_sensitivity): New member function.
3810 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3811 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 la_range_check
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 (f_language::range_checking_on_by_default): New member function.
3828 * go-lang.c (go_language_data): Remove la_range_check initializer.
3829 * language.c (enum range_mode): Moved here from language.h.
3830 (range_mode): Made static.
3831 (show_range_command): Update to use
3832 range_checking_on_by_default.
3833 (set_range_command): Likewise.
3834 (set_range_case): Likewise.
3835 (unknown_language_data): Remove la_range_check initializer.
3836 (auto_language_data): Likewise.
3837 * language.h (range_mode): Delete. Enum definition moved to
3838 language.c.
3839 (language_data): Remove la_range_check field.
3840 (language_defn::range_checking_on_by_default): New member
3841 function.
3842 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3843 (m2_language::range_checking_on_by_default): New member function.
3844 * objc-lang.c (objc_language_data): Remove la_range_check
3845 initializer.
3846 * opencl-lang.c (opencl_language_data): Likewise.
3847 * p-lang.c (pascal_language_data): Likewise.
3848 (pascal_language::range_checking_on_by_default): New member
3849 function.
3850 * rust-lang.c (rust_language_data): Remove la_range_check
3851 initializer.
3852 (rust_language::range_checking_on_by_default): New member
3853 function.
3854
3855 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * dwarf2/read.c (dwarf2_physname): Remove special case for
3858 language_go.
3859 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3860 member function.
3861
3862 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 * ada-lang.c (ada_language_data): Remove
3865 la_store_sym_names_in_linkage_form_p initializer.
3866 (ada_language::store_sym_names_in_linkage_form_p): New member
3867 function.
3868 * c-lang.c (c_language_data): Remove
3869 la_store_sym_names_in_linkage_form_p initializer.
3870 (c_language::store_sym_names_in_linkage_form_p): New member
3871 function.
3872 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3873 initializer.
3874 (asm_language_data): Likewise.
3875 (asm_language::store_sym_names_in_linkage_form_p): New member
3876 function.
3877 (minimal_language_data): Remove
3878 la_store_sym_names_in_linkage_form_p initializer.
3879 (minimal_language::store_sym_names_in_linkage_form_p): New member
3880 function.
3881 * d-lang.c (d_language_data): Remove
3882 la_store_sym_names_in_linkage_form_p initializer.
3883 * dwarf2/read.c (dwarf2_physname): Update call to
3884 store_sym_names_in_linkage_form_p.
3885 * f-lang.c (f_language_data): Remove
3886 la_store_sym_names_in_linkage_form_p initializer.
3887 * go-lang.c (go_language_data): Remove
3888 la_store_sym_names_in_linkage_form_p initializer.
3889 * language.c (unknown_language_data): Remove
3890 la_store_sym_names_in_linkage_form_p initializer.
3891 (unknown_language::store_sym_names_in_linkage_form_p): New member
3892 function.
3893 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3894 initializer.
3895 (auto_language::store_sym_names_in_linkage_form_p): New member
3896 function.
3897 * language.h (language_data): Remove
3898 la_store_sym_names_in_linkage_form_p member variable.
3899 (language_defn::store_sym_names_in_linkage_form_p): New member
3900 function.
3901 * m2-lang.c (m2_language_data): Remove
3902 la_store_sym_names_in_linkage_form_p initializer.
3903 * objc-lang.c (objc_language_data): Likewise.
3904 * opencl-lang.c (opencl_language_data): Likewise.
3905 * p-lang.c (pascal_language_data): Likewise.
3906 * rust-lang.c (rust_language_data): Likewise.
3907
3908 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * ada-lang.c (ada_language_data): Remove string_lower_bound
3911 initializer.
3912 * c-lang.c (c_language_data): Likewise.
3913 (cplus_language_data): Likewise.
3914 (asm_language_data): Likewise.
3915 (minimal_language_data): Likewise.
3916 * d-lang.c (d_language_data): Likewise.
3917 * f-lang.c (f_language_data): Likewise.
3918 * go-lang.c (go_language_data): Likewise.
3919 * language.c (unknown_language_data): Likewise.
3920 (auto_language_data): Likewise.
3921 * language.h (language_data): Remove string_lower_bound field.
3922 (language_defn::string_lower_bound): New member function.
3923 * m2-lang.c (m2_language_data): Remove string_lower_bound
3924 initializer.
3925 (m2_language::string_lower_bound): New member function.
3926 * objc-lang.c (objc_language_data): Remove string_lower_bound
3927 initializer.
3928 * opencl-lang.c (opencl_language_data): Likewise.
3929 * p-lang.c (pascal_language_data): Likewise.
3930 * rust-lang.c (rust_language_data): Likewise.
3931 * valops.c (value_cstring): Update call to string_lower_bound.
3932 (value_string): Likewise.
3933 * value.c (allocate_repeated_value): Likewise.
3934
3935 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * valops.c (value_repeat): Fix incorrect argument name in comment.
3938
3939 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * ada-lang.c (ada_language_data): Remove c_style_arrays
3942 initializer.
3943 (ada_language::c_style_arrays_p): New member fuction.
3944 * c-lang.c (c_language_data): Remove c_style_arrays
3945 initializer.
3946 (cplus_language_data): Likewise.
3947 (asm_language_data): Likewise.
3948 (minimal_language_data): Likewise.
3949 * d-lang.c (d_language_data): Likewise.
3950 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3951 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3952 (f_language::c_style_arrays_p): New member function.
3953 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3954 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3955 * language.c (unknown_language_data): Remove c_style_arrays
3956 initializer.
3957 (auto_language_data): Likewise.
3958 * language.h (language_data): Remove c_style_arrays field.
3959 (language_defn::c_style_arrays_p): New member function.
3960 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3961 (m2_language::c_style_arrays_p): New member function.
3962 * objc-lang.c (objc_language_data): Remove c_style_arrays
3963 initializer.
3964 * opencl-lang.c (opencl_language_data): Likewise.
3965 * p-lang.c (pascal_language_data): Likewise.
3966 * rust-lang.c (rust_language_data): Likewise.
3967 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3968 and update local variable to a bool.
3969 * valops.c (value_cast): Update call to c_style_arrays_p.
3970 (value_array): Likewise.
3971 * value.c (coerce_array): Likewise.
3972
3973 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * ada-lang.c (ada_language_data): Remove la_language initializer.
3976 * c-lang.c (c_language_data): Likewise.
3977 (cplus_language_data): Likewise.
3978 (asm_language_data): Likewise.
3979 (minimal_language_data): Likewise.
3980 * d-lang.c (d_language_data): Likewise.
3981 * f-lang.c (f_language_data): Likewise.
3982 * go-lang.c (go_language_data): Likewise.
3983 * language.c (unknown_language_data): Likewise.
3984 (auto_language_data): Likewise.
3985 * language.h (language_data): Remove la_language field.
3986 (language_defn::language_defn): Initialise la_language field.
3987 (language_defn::la_language): New member variable.
3988 * m2-lang.c (m2_language_data): Remove la_language field.
3989 * objc-lang.c (objc_language_data): Likewise.
3990 * opencl-lang.c (opencl_language_data): Likewise.
3991 * p-lang.c (pascal_language_data): Likewise.
3992 * rust-lang.c (rust_language_data): Likewise.
3993
3994 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * ada-lang.c (ada_extensions): Delete, moved into
3997 ada_language::filename_extensions.
3998 (ada_language_data): Remove la_filename_extensions initializer.
3999 (ada_language::filename_extensions): New member function.
4000 * c-lang.c (c_extensions): Delete, moved into
4001 c_language::filename_extensions.
4002 (c_language_data): Remove la_filename_extensions initializer.
4003 (c_language::filename_extensions): New member function.
4004 (cplus_extensions): Delete, moved into
4005 cplus_language::filename_extensions.
4006 (cplus_language_data): Remove la_filename_extensions initializer.
4007 (cplus_language::filename_extensions): New member function.
4008 (asm_extensions): Delete, moved into
4009 asm_language::filename_extensions.
4010 (asm_language_data): Remove la_filename_extensions initializer.
4011 (asm_language::filename_extensions): New member function.
4012 (minimal_language_data): Remove la_filename_extensions
4013 initializer.
4014 * d-lang.c (d_extensions): Delete, moved into
4015 d_language::filename_extensions.
4016 (d_language_data): Remove la_filename_extensions initializer.
4017 (d_language::filename_extensions): New member function.
4018 * f-lang.c (f_extensions): Delete, moved into
4019 f_language::filename_extensions.
4020 (f_language_data): Remove la_filename_extensions initializer.
4021 (f_language::filename_extensions): New member function.
4022 * go-lang.c (go_language_data): Remove la_filename_extensions
4023 initializer.
4024 * language.c (add_set_language_command): Update now that
4025 filename_extensions returns a vector.
4026 (unknown_language_data): Remove la_filename_extensions
4027 initializer.
4028 (auto_language_data): Likewise.
4029 * language.h (language_data): Remove la_filename_extensions field.
4030 (language_defn::filename_extensions): New member function.
4031 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4032 initializer.
4033 * objc-lang.c (objc_extensions): Delete, moved into
4034 objc_language::filename_extensions.
4035 (objc_language_data): Remove la_filename_extensions initializer.
4036 (objc_language::filename_extensions): New member function.
4037 * opencl-lang.c (opencl_language_data): Remove
4038 la_filename_extensions initializer.
4039 * p-lang.c (pascal_extensions): Delete, moved into
4040 pascal_language::filename_extensions.
4041 (pascal_language_data): Remove la_filename_extensions initializer.
4042 (pascal_language::filename_extensions): New member function.
4043 * rust-lang.c (rust_extensions): Delete, moved into
4044 rust_language::filename_extensions.
4045 (rust_language_data): Remove la_filename_extensions initializer.
4046 (rust_language::filename_extensions): New member function.
4047 * symfile.c (add_filename_language): Add new assert.
4048
4049 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4050
4051 * ada-lang.c (ada_language_data): Remove la_name and
4052 la_natural_name initializers.
4053 (ada_language::name): New member function.
4054 (ada_language::natural_name): New member function.
4055 * c-lang.c (c_language_data): Remove la_name and
4056 la_natural_name initializers.
4057 (c_language::name): New member function.
4058 (c_language::natural_name): New member function.
4059 (cplus_language_data): Remove la_name and
4060 la_natural_name initializers.
4061 (cplus_language::name): New member function.
4062 (cplus_language::natural_name): New member function.
4063 (asm_language_data): Remove la_name and
4064 la_natural_name initializers.
4065 (asm_language::name): New member function.
4066 (asm_language::natural_name): New member function.
4067 (minimal_language_data): Remove la_name and
4068 la_natural_name initializers.
4069 (minimal_language::name): New member function.
4070 (minimal_language::natural_name): New member function.
4071 * compile/compile.c (compile_to_object): Update call to
4072 lanugage_defn::name.
4073 * d-lang.c (d_language_data): Remove la_name and
4074 la_natural_name initializers.
4075 (d_language::name): New member function.
4076 (d_language::natural_name): New member function.
4077 * expprint.c (print_subexp_standard): Update call to
4078 language_defn::name.
4079 (dump_raw_expression): Likewise
4080 (dump_prefix_expression): Likewise.
4081 * f-lang.c (f_language_data): Remove la_name and
4082 la_natural_name initializers.
4083 (f_language::name): New member function.
4084 (f_language::natural_name): New member function.
4085 * go-lang.c (go_language_data): Remove la_name and
4086 la_natural_name initializers.
4087 (go_language::name): New member function.
4088 (go_language::natural_name): New member function.
4089 * language.c (show_language_command): Update call to
4090 language_defn::name.
4091 (set_language_command): Likewise.
4092 (language_enum): Likewise.
4093 (language_str): Likewise.
4094 (add_set_language_command): Likewise, use
4095 language_defn::natural_name in the doc string.
4096 (unknown_language_data): Remove la_name and
4097 la_natural_name initializers.
4098 (unknown_language::name): New member function.
4099 (unknown_language::natural_name): New member function.
4100 (auto_language_data): Remove la_name and
4101 la_natural_name initializers.
4102 (auto_language::name): New member function.
4103 (auto_language::natural_name): New member function.
4104 (language_lookup_primitive_type_as_symbol): Update call to
4105 language_defn::name.
4106 * language.h (language_data): Remove la_name and la_natural_name
4107 member variables.
4108 (language_defn::name): New member function.
4109 (language_defn::natural_name): New member function.
4110 * m2-lang.c (m2_language_data): Remove la_name and
4111 la_natural_name initializers.
4112 (m2_language::name): New member function.
4113 (m2_language::natural_name): New member function.
4114 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4115 language_defn::natural_name.
4116 * objc-lang.c (objc_language_data): Remove la_name and
4117 la_natural_name initializers.
4118 (objc_language::name): New member function.
4119 (objc_language::natural_name): New member function.
4120 * opencl-lang.c (opencl_language_data): Remove la_name and
4121 la_natural_name initializers.
4122 (opencl_language::name): New member function.
4123 (opencl_language::natural_name): New member function.
4124 * p-lang.c (pascal_language_data): Remove la_name and
4125 la_natural_name initializers.
4126 (pascal_language::name): New member function.
4127 (pascal_language::natural_name): New member function.
4128 * rust-lang.c (rust_language_data): Remove la_name and
4129 la_natural_name initializers.
4130 (rust_language::name): New member function.
4131 (rust_language::natural_name): New member function.
4132 * symtab.c (lookup_language_this): Update call to
4133 language_defn::name.
4134
4135 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4136
4137 * ada-lang.c (ada_language_data): Remove la_name_of_this
4138 initializer.
4139 * ax-gdb.c (gen_expr): Update call to name_of_this.
4140 * c-exp.y (classify_name): Likewise.
4141 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4142 (cplus_language_data): Likewise.
4143 (cplus_language::name_of_this): New member function.
4144 (asm_language_data): Remove la_name_of_this initializer.
4145 (minimal_language_data): Likewise.
4146 * d-lang.c (d_language_data): Likewise.
4147 (d_language::name_of_this): New member function.
4148 * expprint.c (print_subexp_standard): Update call to name_of_this.
4149 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4150 * go-lang.c (go_language_data): Likewise.
4151 * language.c (unknown_language_data): Likewise.
4152 (unknown_language::name_of_this): New member function.
4153 (auto_language_data): Remove la_name_of_this initializer.
4154 (auto_language::name_of_this): New member function.
4155 * language.h (language_data): Delete la_name_of_this member
4156 variable.
4157 (language_defn::name_of_this): New member function.
4158 * m2-lang.c (m2_language_data): Remove la_name_of_this
4159 initializer.
4160 * objc-lang.c (objc_language_data): Likewise.
4161 (objc_language::name_of_this): New member function.
4162 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4163 initializer.
4164 * p-lang.c (pascal_language_data): Likewise.
4165 (pascal_language::name_of_this): New member function.
4166 * rust-lang.c (rust_language_data): Remove la_name_of_this
4167 initializer.
4168 * symtab.c (lookup_language_this): Update call to name_of_this.
4169 (lookup_symbol_aux): Likewise.
4170 * valops.c (value_of_this): Likewise.
4171
4172 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 * ada-lang.c (ada_language_data): Remove
4175 la_struct_too_deep_ellipsis initializer.
4176 (ada_language::struct_too_deep_ellipsis): New member function.
4177 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4178 initializer.
4179 (cplus_language_data): Likewise.
4180 (asm_language_data): Likewise.
4181 (minimal_language_data): Likewise.
4182 * cp-valprint.c (cp_print_value): Update call to
4183 struct_too_deep_ellipsis.
4184 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4185 initializer.
4186 * f-lang.c (f_language_data): Likewise.
4187 (f_language::struct_too_deep_ellipsis): New member function.
4188 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4189 initializer.
4190 * language.c (unknown_language_data): Likewise.
4191 (auto_language_data): Likewise.
4192 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4193 member variable.
4194 (language_defn::struct_too_deep_ellipsis): New member function.
4195 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4196 initializer.Q
4197 * objc-lang.c (objc_language_data): Likewise.
4198 * opencl-lang.c (opencl_language_data): Likewise.
4199 * p-lang.c (pascal_language_data): Likewise.
4200 * rust-lang.c (rust_language_data): Likewise.
4201 * valprint.c (val_print_check_max_depth): Update call to
4202 struct_too_deep_ellipsis.
4203
4204 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4205
4206 * MAINTAINERS (Write After Approval): Add myself.
4207
4208 2020-09-15 Tom Tromey <tom@tromey.com>
4209
4210 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4211 Remove.
4212
4213 2020-09-15 Tom Tromey <tom@tromey.com>
4214
4215 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4216 and TYPE_CODE_METHODPTR cases.
4217 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4218 (c_value_print_inner): Update.
4219 * valprint.c (generic_value_print_memberptr): New function, from
4220 c_value_print_memberptr.
4221 (generic_value_print): Use it. Call cplus_print_method_ptr.
4222
4223 2020-09-15 Tom Tromey <tromey@adacore.com>
4224
4225 * python/python-internal.h (PyInt_FromLong): Remove define.
4226 * python/py-value.c (convert_value_from_python): Use
4227 gdb_py_object_from_longest.
4228 * python/py-type.c (typy_get_code): Use
4229 gdb_py_object_from_longest.
4230 * python/py-symtab.c (salpy_get_line): Use
4231 gdb_py_object_from_longest.
4232 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4233 gdb_py_object_from_longest.
4234 * python/py-record.c (recpy_gap_reason_code): Use
4235 gdb_py_object_from_longest.
4236 * python/py-record-btrace.c (recpy_bt_insn_size)
4237 (recpy_bt_func_level, btpy_list_count): Use
4238 gdb_py_object_from_longest.
4239 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4240 gdb_py_object_from_longest. Fix error handling.
4241 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4242 gdb_py_object_from_longest.
4243 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4244 gdb_py_object_from_longest.
4245 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4246 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4247 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4248
4249 2020-09-15 Tom Tromey <tromey@adacore.com>
4250
4251 * python/python.c (gdbpy_parameter_value): Use
4252 gdb_py_object_from_ulongest.
4253
4254 2020-09-15 Tom Tromey <tromey@adacore.com>
4255
4256 * python/py-infevents.c (create_register_changed_event_object):
4257 Use gdb_py_object_from_longest.
4258 * python/py-exitedevent.c (create_exited_event_object): Use
4259 gdb_py_object_from_longest.
4260
4261 2020-09-15 Tom Tromey <tromey@adacore.com>
4262
4263 * python/python.c (gdbpy_parameter_value): Use
4264 gdb_py_object_from_longest.
4265 * python/py-type.c (convert_field, typy_range): Use
4266 gdb_py_object_from_longest.
4267 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4268 gdb_py_object_from_longest.
4269 * python/py-lazy-string.c (stpy_get_length): Use
4270 gdb_py_object_from_longest.
4271 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4272 gdb_py_object_from_longest.
4273 * python/py-infevents.c (create_memory_changed_event_object): Use
4274 gdb_py_object_from_longest.
4275 * python/py-inferior.c (infpy_get_num): Use
4276 gdb_py_object_from_longest.
4277 (infpy_get_pid): Likewise.
4278
4279 2020-09-15 Tom Tromey <tromey@adacore.com>
4280
4281 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4282 defines.
4283 * python/py-value.c (valpy_long): Use
4284 gdb_py_object_from_ulongest.
4285 * python/py-symtab.c (salpy_get_pc): Use
4286 gdb_py_object_from_ulongest.
4287 (salpy_get_last): Likewise.
4288 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4289 gdb_py_object_from_ulongest.
4290 * python/py-lazy-string.c (stpy_get_address): Use
4291 gdb_py_object_from_ulongest.
4292 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4293 * python/py-arch.c (archpy_disassemble): Use
4294 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4295 error handling.
4296
4297 2020-09-15 Tom Tromey <tromey@adacore.com>
4298
4299 * python/python-internal.h (gdb_py_long_from_longest): Remove
4300 defines.
4301 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4302 * python/py-type.c (convert_field, typy_get_sizeof): Use
4303 gdb_py_object_from_longest.
4304 * python/py-record-btrace.c (btpy_list_index): Use
4305 gdb_py_object_from_longest.
4306
4307 2020-09-15 Tom Tromey <tromey@adacore.com>
4308
4309 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4310 * python/py-record.c (recpy_element_number): Use
4311 gdb_py_object_from_longest.
4312 (recpy_gap_number): Likewise.
4313
4314 2020-09-15 Tom Tromey <tromey@adacore.com>
4315
4316 * top.c (ui::ui): Update.
4317 (highest_ui_num): Remove.
4318 * top.h (struct ui) <num>: Remove.
4319
4320 2020-09-15 Tom Tromey <tromey@adacore.com>
4321
4322 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4323 * ui-style.c (ansi_regex_text): Now array.
4324 * rust-exp.y (number_regex_text): Now array.
4325 * linespec.c (linespec_quote_characters): Now array.
4326 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4327 Now arrays.
4328
4329 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * debuginfod-support.c (debuginfod_client_deleter): New.
4332 (debuginfod_client_up): New.
4333 (debuginfod_init): Return debuginfod_client_up.
4334 (debuginfod_source_query): Adjust.
4335 (debuginfod_debuginfo_query): Adjust.
4336
4337 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4338
4339 * debuginfod-support.c (debuginfod_source_query): Use
4340 make_unique_xstrdup.
4341
4342 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4345 with `type::instance_flags`.
4346
4347 2020-09-14 Michael Mullin <masmullin@gmail.com>
4348
4349 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4350 Remove baton parameter.
4351
4352 2020-09-14 Pedro Alves <pedro@palves.net>
4353
4354 * Makefile.in (SELFTESTS_SRCS): Add
4355 unittests/enum-flags-selftests.c.
4356 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4357 btrace_function_flags instead of enum btrace_function_flag.
4358 * compile/compile-c-types.c (convert_qualified): Use
4359 enum_flags::raw.
4360 * compile/compile-cplus-symbols.c (convert_one_symbol)
4361 (convert_symbol_bmsym):
4362 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4363 (compile_cplus_convert_struct_or_union_methods)
4364 (compile_cplus_instance::convert_qualified_base):
4365 * go-exp.y (parse_string_or_char): Add cast to int.
4366 * unittests/enum-flags-selftests.c: New file.
4367 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4368 type to btrace_thread_flags from btrace_thread_flag.
4369 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4370 local's type to btrace_thread_flags from btrace_thread_flag. Add
4371 cast in DEBUG call.
4372
4373 2020-09-14 Pedro Alves <pedro@palves.net>
4374
4375 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4376 * gdbtypes.c (address_space_name_to_int): Rename to ...
4377 (address_space_name_to_type_instance_flags): ... this.
4378 (address_space_int_to_name): Rename to ...
4379 (address_space_type_instance_flags_to_name): ... this.
4380 * gdbtypes.h (address_space_name_to_int): Rename to ...
4381 (address_space_name_to_type_instance_flags): ... this.
4382 (address_space_int_to_name): Rename to ...
4383 (address_space_type_instance_flags_to_name): ... this.
4384 * type-stack.c (type_stack::insert): Adjust to rename.
4385 * type-stack.h (type_stack::insert): Likewise.
4386
4387 2020-09-14 Pedro Alves <pedro@palves.net>
4388 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * avr-tdep.c (avr_address_class_type_flags): Return
4391 type_instance_flags.
4392 (avr_address_class_type_flags_to_name): Take a
4393 type_instance_flags.
4394 (avr_address_class_name_to_type_flags): Return bool and take a
4395 type_instance_flags.
4396 * d-lang.c (build_d_types): Use type::set_instance_flags.
4397 * ft32-tdep.c (ft32_address_class_type_flags): Return
4398 type_instance_flags.
4399 (ft32_address_class_type_flags_to_name): Take a
4400 type_instance_flags.
4401 (ft32_address_class_name_to_type_flags): Return bool and take a
4402 type_instance_flags.
4403 (ft32_gdbarch_init): Use type::set_instance_flags.
4404 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4405 * gdbarch.h, gdbarch.c: Regenerate.
4406 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4407 (address_class_name_to_type_flags): Use type_instance_flags and
4408 bool.
4409 * gdbtypes.c (address_space_name_to_int)
4410 (address_space_int_to_name, make_qualified_type): Use
4411 type_instance_flags.
4412 (make_qualified_type): Use type_instance_flags and
4413 type::set_instance_flags.
4414 (make_type_with_address_space, make_cv_type, make_vector_type)
4415 (check_typedef): Use type_instance_flags.
4416 (recursive_dump_type): Cast type_instance_flags to unsigned for
4417 printing.
4418 (copy_type_recursive): Use type::set_instance_flags.
4419 (gdbtypes_post_init): Use type::set_instance_flags.
4420 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4421 <m_instance_flags>: ... this.
4422 <instance_flags, set_instance_flags>: New methods.
4423 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4424 (SET_TYPE_INSTANCE_FLAGS): New.
4425 (address_space_name_to_int, address_space_int_to_name)
4426 (make_type_with_address_space): Pass flags using
4427 type_instance_flags instead of int.
4428 * stabsread.c (cleanup_undefined_types_noname): Use
4429 type::set_instance_flags.
4430 * s390-tdep.c (s390_address_class_type_flags): Return
4431 type_instance_flags.
4432 (s390_address_class_type_flags_to_name): Take a
4433 type_instance_flags.
4434 (s390_address_class_name_to_type_flags): Return bool and take a
4435 type_instance_flags.
4436 * type-stack.c (type_stack::follow_types): Use
4437 type_instance_flags.
4438 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4439
4440 2020-09-14 Tom Tromey <tromey@adacore.com>
4441
4442 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4443 * x86-tdep.c (x86_is_thunk_register_name)
4444 (x86_in_indirect_branch_thunk): Update.
4445 * sparc64-tdep.c (sparc64_fpu_register_names)
4446 (sparc64_cp0_register_names, sparc64_register_names)
4447 (sparc64_pseudo_register_names): Now const.
4448 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4449 cp0_registers_num>: Now const.
4450 * sparc-tdep.c (sparc_core_register_names)
4451 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4452 (sparc32_pseudo_register_names): Now const.
4453 (validate_tdesc_registers): Update.
4454 * rust-lang.c (rust_extensions): Now const.
4455 * p-lang.c (p_extensions): Now const.
4456 * objc-lang.c (objc_extensions): Now const.
4457 * nto-tdep.c (nto_thread_state_str): Now const.
4458 * moxie-tdep.c (moxie_register_names): Now const.
4459 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4460 Now const.
4461 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4462 (mips_linux_reg_names): Now const.
4463 (mips_gdbarch_init): Update.
4464 * microblaze-tdep.c (microblaze_register_names): Now const.
4465 * m68k-tdep.c (m68k_register_names): Now const.
4466 * m32r-tdep.c (m32r_register_names): Now const.
4467 * ia64-tdep.c (ia64_register_names): Now const.
4468 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4469 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4470 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4471 ymm_avx512_register_names, pkeys_register_names>: Now const.
4472 * i386-tdep.c (i386_register_names, i386_zmm_names)
4473 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4474 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4475 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4476 * f-lang.c (f_extensions): Now const.
4477 * d-lang.c (d_extensions): Now const.
4478 * csky-tdep.c (csky_register_names): Now const.
4479 * charset.c (default_charset_names, charset_enum): Now const.
4480 (_initialize_charset): Update.
4481 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4482 const.
4483 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4484 (bsd_uthread_solib_loaded): Update.
4485 (bsd_uthread_state): Now const.
4486 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4487 (amd64_ymm_avx512_names, amd64_ymmh_names)
4488 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4489 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4490 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4491 (amd64_dword_names): Now const.
4492 * agent.c (can_use_agent_enum): Now const.
4493 * ada-tasks.c (task_states, long_task_states): Now const.
4494 * ada-lang.c (known_runtime_file_name_patterns)
4495 (known_auxiliary_function_name_patterns, attribute_names)
4496 (standard_exc, ada_extensions): Now const.
4497
4498 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * bcache.h (struct bcache) <bcache>: Remove constructor.
4501 <m_hash_function, m_compare_function>: Remove.
4502 <~bcache>: Make virtual.
4503 <compare>: Remove static method, introduce virtual method.
4504 <default_hash>: Remove.
4505 <hash>: New virtual method.
4506 * bcache.c (bcache::expand_hash_table): Update.
4507 (bcache::insert): Update.
4508 (bcache::hash): New.
4509 (bcache::compare): Update comment and parameter names.
4510 * gdbtypes.c (types_deeply_equal): Update.
4511 * psymtab.h (struct psymbol_bcache): New struct.
4512 (class psymtab_storage) <psymtab_storage>: Make default.
4513 <psymbol_cache>: Change type to psymbol_bcache.
4514 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4515 (psymbol_hash): Change to...
4516 (psymbol_bcache::hash): ... this.
4517 (psymbol_compare): Change to...
4518 (psymbol_bcache::compare): ... this.
4519
4520 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4523 checking for initial lwp.
4524
4525 2020-09-14 Tom Tromey <tromey@adacore.com>
4526
4527 * m68k-tdep.c (m68k_extract_return_value): Use
4528 pointer_result_regnum.
4529 (m68k_store_return_value): Likewise.
4530 (m68k_reg_struct_return_p): Handle vectors and arrays.
4531 (m68k_return_value): Handle arrays.
4532 (m68k_svr4_return_value): Fix single-element aggregate handling.
4533 Handle long double. Adjust for embedded ABI.
4534 (m68k_svr4_init_abi): Set pointer_result_regnum.
4535 (m68k_embedded_init_abi): New function.
4536 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4537 (m68k_osabi_sniffer): New function.
4538 (_initialize_m68k_tdep): Register osabi sniffer.
4539 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4540 member.
4541
4542 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4543
4544 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4545 with gdb::unique_xmalloc_ptr<char>.
4546
4547 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4548
4549 * xml-support.h (xml_fetch_another): Change type to be a
4550 function_view.
4551 (xml_process_xincludes): Remove baton parameter.
4552 (xml_fetch_content_from_file): Change baton parameter to
4553 dirname.
4554 * xml-support.c (struct xinclude_parsing_data)
4555 <xinclude_parsing_data>: Remove baton parameter.
4556 <fetcher_baton>: Remove.
4557 (xinclude_start_include): Adjust.
4558 (xml_process_xincludes): Adjust.
4559 (xml_fetch_content_from_file): Replace baton parameter with
4560 dirname.
4561 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4562 (xml_init_syscalls_info): Use a lambda.
4563 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4564 (file_read_description_xml): Use a lambda.
4565 (fetch_available_features_from_target): Change baton parameter
4566 to target_ops.
4567 (target_read_description_xml): Use a lambda.
4568 (target_fetch_description_xml): Use a lambda.
4569 (string_read_description_xml): Update.
4570
4571 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4572
4573 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4574 uses with type::endianity_is_not_default.
4575
4576 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (struct type) <endianity_is_not_default,
4579 set_endianity_is_not_default>: New methods.
4580 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4581 type::endianity_is_not_default, change all write call sites to
4582 use type::set_endianity_is_not_default.
4583
4584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4585
4586 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4587 uses with type::is_fixed_instance.
4588
4589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbtypes.h (struct type) <is_fixed_instance,
4592 set_is_fixed_instance>: New methods.
4593 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4594 write call sites to use type::set_is_fixed_instance.
4595
4596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4599 uses with type::is_gnu_ifunc.
4600
4601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4604 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4605 use type::set_is_gnu_ifunc.
4606
4607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4610 uses with type::stub_is_supported.
4611
4612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4615 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4616 use type::set_stub_is_supported.
4617
4618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4621 uses with type::is_vector.
4622
4623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4626 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4627 use type::set_is_vector.
4628
4629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4632 uses with type::has_varargs.
4633
4634 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4637 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4638 use type::set_has_varargs.
4639
4640 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4643 uses with type::is_prototyped.
4644
4645 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4648 New methods.
4649 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4650 call sites to use type::set_is_prototyped.
4651
4652 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4655 uses with type::target_is_stub.
4656
4657 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4660 New methods.
4661 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4662 sites to use type::set_target_is_stub.
4663
4664 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * gdbtypes.h (TYPE_STUB): Remove, replace all
4667 uses with type::is_stub.
4668
4669 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4672 (TYPE_STUB): Use type::is_stub, change all write call sites to
4673 use type::set_is_stub.
4674
4675 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4678 type::has_no_signedness.
4679
4680 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * gdbtypes.h (struct type) <has_no_signedness,
4683 set_has_no_signedness>: New methods.
4684 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4685 call sites to use type::set_has_no_signedness.
4686
4687 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4690 type::is_unsigned.
4691
4692 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4693
4694 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4695 methods.
4696 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4697 sites to use type::set_is_unsigned.
4698
4699 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4700 Adam Renquinha <arenquinha@cimeq.qc.ca>
4701
4702 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4703 pointer and stack frame offset when unwinding.
4704
4705 2020-09-13 Pedro Alves <pedro@palves.net>
4706
4707 * NEWS: Document "-break-insert --qualified".
4708 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4709
4710 2020-09-13 Pedro Alves <pedro@palves.net>
4711
4712 * linespec.c (classify_mtype, compare_msyms): Delete.
4713 (search_minsyms_for_name): Remove classification logic. Instead
4714 filter out trampoline symbols if we also found an external
4715 function of the same name.
4716
4717 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4718
4719 * NEWS: Create a new section for the next release branch.
4720 Rename the section of the current branch, now that it has
4721 been cut.
4722
4723 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4724
4725 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4726 * version.in: Bump version to 11.0.50.DATE-git.
4727
4728 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4729
4730 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4731
4732 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4733 Felix Willgerodt <Felix.Willgerodt@intel.com>
4734
4735 * gdbarch.sh: Added bfloat16 type.
4736 * gdbarch.c: Regenerated.
4737 * gdbarch.h: Regenerated.
4738 * gdbtypes.c (floatformats_bfloat16): New struct.
4739 (gdbtypes_post_init): Add builtin_bfloat16.
4740 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4741 (floatformats_bfloat16): New struct.
4742 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4743 (i386_ymm_type): Add field "v16_bfloat16"
4744 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4745 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4746 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4747 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4748 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4749 * features/i386/64bit-avx512.c: Regenerated.
4750 * features/i386/64bit-sse.xml: Add bfloat16 type.
4751 * features/i386/64bit-sse.c: Regenerated.
4752
4753 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4754
4755 * i386-tdep.c (i386_zmm_type): Fix field names.
4756 (i386_ymm_type): Fix field names.
4757
4758 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4759
4760 * breakpoint.c: Fix typo in the help message of the
4761 "set breakpoint condition-evaluation" command.
4762
4763 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4764
4765 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4766 * (nbsd_nat_target::pid_to_exec_file)
4767 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4768 (nbsd_nat_target::post_startup_inferior)
4769 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4770 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4771 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4772 * (nbsd_thread_lister): Remove.
4773
4774 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4775
4776 * fork-inferior.c (startup_inferior): Avoid double free.
4777
4778 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4779
4780 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4781 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4782
4783 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4784
4785 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4786 * netbsd-nat.c: Include <sys/ptrace.h>.
4787 * (netbsd_nat::enable_proc_events): Add.
4788
4789 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4790
4791 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4792 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4793 (netbsd_nat::for_each_thread): Add.
4794 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4795 "gdbsupport/common-debug.h".
4796 * (netbsd_nat::netbsd_thread_lister)
4797 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4798 (netbsd_nat::for_each_thread): Add.
4799
4800 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4801
4802 * netbsd-nat.h: Include <unistd.h>.
4803 * (netbsd_nat::pid_to_exec_file): Add.
4804 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4805 * (netbsd_nat::pid_to_exec_file) Add.
4806
4807 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4808
4809 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4810
4811 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4812
4813 * netbsd-nat.h: New file.
4814 * netbsd-nat.c: Likewise.
4815
4816 2020-09-09 Tom Tromey <tromey@adacore.com>
4817
4818 * ada-lang.c (remove_extra_symbols): Do not increment when
4819 removing an element
4820
4821 2020-09-08 Tom Tromey <tromey@adacore.com>
4822
4823 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4824
4825 2020-09-08 Tom Tromey <tromey@adacore.com>
4826
4827 PR win32/25302:
4828 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4829 (gdb_bfd_init_data): New function.
4830 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4831
4832 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4833
4834 * infrun.c (fetch_inferior_event): Use
4835 `switch_to_target_no_thread` to switch the target.
4836
4837 2020-09-06 Tom Tromey <tom@tromey.com>
4838
4839 * symfile.h (dwarf2_free_objfile): Don't declare.
4840
4841 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4842
4843 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4844 to match 16 byte real/complex type generated by Flang compiler.
4845
4846 2020-09-03 Tom de Vries <tdevries@suse.de>
4847
4848 PR breakpoint/26546
4849 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4850 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4851
4852 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4853
4854 * maint.c (index_digits): New function.
4855 (struct maint_print_section_data): Remove.
4856 (print_bfd_section_info): Remove print_data parameter, add arg
4857 and index_digits.
4858 (print_objfile_section_info): Likewise.
4859 (print_bfd_section_info_maybe_relocated): Likewise (plus
4860 objfile).
4861 (maintenance_info_sections): Adjust calls.
4862
4863 2020-09-02 Tom Tromey <tromey@adacore.com>
4864
4865 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4866 for null pointers.
4867 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4868
4869 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4870
4871 * bcache.h (struct bcache) <insert>: Change type of `added` to
4872 pointer to bool.
4873 * bcache.c (bcache::insert): Likewise.
4874 * gdbtypes.c (check_types_worklist): Adjust.
4875 * psymtab.c (add_psymbol_to_bcache): Adjust.
4876
4877 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4878
4879 * corelow.c (unordered_set): Include.
4880 (class core_target): Add field 'm_core_unavailable_mappings'.
4881 (core_target::build_file_mappings): Print only one warning
4882 per inaccessible file. Add unavailable/broken mappings
4883 to m_core_unavailable_mappings.
4884 (core_target::xfer_partial): Call...
4885 (core_target::xfer_memory_via_mappings): New method.
4886
4887 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4888
4889 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4890 type to bool.
4891
4892 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4893
4894 * dwarf2/read.c (struct field_info): Fix indentation.
4895
4896 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4899 ordering in comment.
4900 * frame.c (frame_id_eq): Fix indentation.
4901
4902 2020-08-31 Scott Linder <scott@scottlinder.com>
4903 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4906 inline frame ids in outer frame.
4907
4908 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4911 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4912 (outer_frame_id): Use FID_STACK_OUTER instead of
4913 FID_STACK_INVALID.
4914 (frame_id_p): Don't check for outer_frame_id.
4915
4916 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4919 regnum/frame in value. Call allocate_value_lazy.
4920 * frame.c (frame_unwind_register_value): Use
4921 val_print_not_saved.
4922
4923 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4926
4927 2020-08-29 Pedro Alves <pedro@palves.net>
4928
4929 * progspace.c (print_program_space): Use all_inferiors. Switch to
4930 the inferior before calling target_pid_to_str.
4931
4932 2020-08-28 Tom Tromey <tom@tromey.com>
4933
4934 * xcoffread.c (xcoff_end_psymtab): Update comment.
4935 * dbxread.c (dbx_end_psymtab): Update comment.
4936
4937 2020-08-28 Tom de Vries <tdevries@suse.de>
4938
4939 PR breakpoint/26544
4940 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4941 event_location.
4942 (create_breakpoint): Same.
4943 (base_breakpoint_decode_location): Same.
4944 (bkpt_create_sals_from_location): Same.
4945 (bkpt_decode_location): Same.
4946 (bkpt_probe_create_sals_from_location): Same.
4947 (bkpt_probe_decode_location): Same.
4948 (tracepoint_create_sals_from_location): Same.
4949 (tracepoint_decode_location): Same.
4950 (tracepoint_probe_decode_location): Same.
4951 (strace_marker_create_sals_from_location): Same.
4952 (strace_marker_decode_location): Same.
4953 (create_sals_from_location_default): Same.
4954 (decode_location_default): Same.
4955 * breakpoint.h (struct breakpoint_ops): Same.
4956 (create_breakpoint): Same.
4957 * linespec.h (decode_line_full): Same.
4958 * linespec.c (decode_line_full): Same. Throw error if
4959 result.size () == 0.
4960
4961 2020-08-27 Pedro Alves <pedro@palves.net>
4962
4963 PR gdb/26524
4964 * breakpoint.c (until_break_fsm) <location_breakpoint,
4965 caller_breakpoint>: Delete fields.
4966 <breakpoints>: New field.
4967 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4968 two individual breakpoints.
4969 (until_break_fsm::should_stop): Loop over breakpoints in the
4970 breakpoint vector.
4971 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4972 vector.
4973 (until_break_command): Handle location expanding into multiple
4974 sals.
4975
4976 2020-08-27 Pedro Alves <pedro@palves.net>
4977
4978 PR gdb/26523
4979 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4980 bp_until breakpoints user-specified locations. Update intro
4981 comment.
4982
4983 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4986 gdb_bfd_sections): New.
4987 * maint.c (print_bfd_section_info): Change param type to
4988 maint_print_section_data.
4989 (print_objfile_section_info): Likewise.
4990 (print_bfd_section_info_maybe_relocated): Likewise.
4991 (maintenance_info_sections): Use gdb_bfd_sections.
4992
4993 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4994
4995 * MAINTAINERS: Add ARC target and maintainer.
4996
4997 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4998
4999 * configure.tgt: ARC support for GNU/Linux.
5000 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5001 * arc-linux-tdep.c: New file.
5002 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5003 * arc-tdep.c (arc_write_pc): Use it.
5004
5005 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5006
5007 * arc-tdep.c (arc_check_for_hardware_loop): New.
5008 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5009
5010 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5011
5012 * arc-tdep.h: Include "gdbarch.h".
5013
5014 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5015
5016 * arch/arc.h
5017 (arc_gdbarch_features): New class to stir the selection of target XML.
5018 (arc_create_target_description): Use FEATURES to choose XML target.
5019 (arc_lookup_target_description): Use arc_create_target_description
5020 to create _new_ target descriptions or return the already created
5021 ones if the FEATURES is the same.
5022 * arch/arc.c: Implementation of prototypes described above.
5023 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5024 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5025 * arc-tdep.c (*_feature_name): Make feature names consistent.
5026 (arc_register_feature): A new struct to hold information about
5027 registers of a particular target/feature.
5028 (arc_check_tdesc_feature): Check if XML provides registers in
5029 compliance with ARC_REGISTER_FEATURE structs.
5030 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5031 (determine_*_reg_feature_set): Which feature name to look for.
5032 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5033 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5034 to expected ISA enums to be used in arc_gdbarch_features structs.
5035 * features/Makefile (FEATURE_XMLFILES): Add new files.
5036 * gdb/features/arc/v1-aux.c: New file.
5037 * gdb/features/arc/v1-aux.xml: Likewise.
5038 * gdb/features/arc/v1-core.c: Likewise.
5039 * gdb/features/arc/v1-core.xml: Likewise.
5040 * gdb/features/arc/v2-aux.c: Likewise.
5041 * gdb/features/arc/v2-aux.xml: Likewise.
5042 * gdb/features/arc/v2-core.c: Likewise.
5043 * gdb/features/arc/v2-core.xml: Likewise.
5044 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5045
5046 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5047 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 PR m2/26372
5050 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5051 an assert. Remove single element array indexing pattern as the
5052 MULTI_SUBSCRIPT support will handle this case too.
5053
5054 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * value.h (valprint_check_validity): Move declaration from
5057 here...
5058 * valprint.h (valprint_check_validity): ... to here.
5059
5060 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * debug.h: New file.
5063 * debug.c (debug_prefixed_vprintf): New function.
5064 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5065 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5066
5067 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * infrun.h (infrun_debug_printf_1): New function declaration.
5070 (infrun_debug_printf): New macro.
5071 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5072 throughout.
5073 (infrun_debug_printf): New function.
5074 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5075 (handle_jit_event): Likewise.
5076
5077 2020-08-21 Mark Wielaard <mark@klomp.org>
5078
5079 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5080
5081 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * frame.c (enum class frame_id_status): New.
5084 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5085 (fprintf_frame): Update.
5086 (compute_frame_id): Set frame id status to "computing" on entry.
5087 Set it back to "not_computed" on failure and to "computed" on
5088 success.
5089 (get_frame_id): Assert the frame id is not being computed.
5090 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5091 (create_new_frame): Likewise.
5092 (frame_cleanup_after_sniffer): Update assert.
5093
5094 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5095
5096 * regcache.c (pid_ptid_regcache_map): New type.
5097 (target_ptid_regcache_map): Remove.
5098 (target_pid_ptid_regcache_map): New type.
5099 (regcaches): Change type to target_pid_ptid_regcache_map.
5100 (get_thread_arch_aspace_regcache): Update.
5101 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5102 case.
5103 (regcaches_size): Update.
5104 (regcache_count): Update.
5105 (registers_changed_ptid_target_pid_test): New.
5106 (_initialize_regcache): Register new test.
5107
5108 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 * regcache.c (regcache_count): New.
5111 (struct regcache_test_data): New.
5112 (regcache_test_data_up): New.
5113 (populate_regcaches_for_test): New.
5114 (regcaches_test): Remove.
5115 (get_thread_arch_aspace_regcache_test): New.
5116 (registers_changed_ptid_all_test): New.
5117 (registers_changed_ptid_target_test): New.
5118 (registers_changed_ptid_target_ptid_test): New.
5119 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5120 (_initialize_regcache): Register new tests.
5121
5122 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5125 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5126 gdbarch and aspace parameter. Use current inferior's aspace.
5127 Validate regcache's arch value.
5128 (regcaches_test): Update.
5129
5130 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * regcache.c (regcaches_test): Call registers_changed.
5133
5134 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5135
5136 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5137
5138 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5139
5140 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5141 to find the end of prologue for flang compiled binaries.
5142 * arm-tdep.c (arm_skip_prologue): Likewise.
5143 * i386-tdep.c (i386_skip_prologue): Likewise.
5144 * producer.c (producer_is_llvm): New function.
5145 (producer_parsing_tests): Added new tests for clang/flang.
5146 * producer.h (producer_is_llvm): New declaration.
5147
5148 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * linux-nat.c (linux_nat_debug_printf): New function.
5151 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5152
5153 2020-08-18 Aaron Merey <amerey@redhat.com>
5154
5155 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5156 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5157 (CLIBS): Add DEBUGINFOD_LIBS.
5158
5159 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5160
5161 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5162 'gdbarch_num_regs'.
5163
5164 2020-08-17 Tom Tromey <tromey@adacore.com>
5165
5166 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5167 ada_get_decoded_value returns NULL.
5168
5169 2020-08-17 Tom Tromey <tromey@adacore.com>
5170
5171 * python/py-inferior.c (infpy_search_memory): Use
5172 gdb_py_object_from_ulongest.
5173 * python/py-infevents.c (create_inferior_call_event_object)
5174 (create_memory_changed_event_object): Use
5175 gdb_py_object_from_ulongest.
5176 * python/py-linetable.c (ltpy_entry_get_pc): Use
5177 gdb_py_object_from_ulongest.
5178
5179 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5180
5181 * loc.c (class symbol_needs_eval_context): Fix indentation.
5182
5183 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5186 bool.
5187
5188 2020-08-17 Tom de Vries <tdevries@suse.de>
5189
5190 PR gdb/26393
5191 * gdbtypes.c (dump_dynamic_prop): New function.
5192 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5193
5194 2020-08-15 Tom de Vries <tdevries@suse.de>
5195
5196 PR backtrace/26390
5197 * stack.c (print_frame_args): Temporarily set the selected
5198 frame to FRAME while printing the frame's arguments.
5199
5200 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5201
5202 PR breakpoints/26385
5203 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5204 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5205
5206 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5207
5208 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5209 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5210 and >= to check return value instead of == -1 and != -1.
5211
5212 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * utils.h (class gdb_argv) <as_array_view>: New method.
5215 * utils.c (gdb_argv_as_array_view_test): New.
5216 (_initialize_utils): Register selftest.
5217 * maint.c (maintenance_selftest): Use the new method.
5218
5219 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5220
5221 * target.h (supports_dumpcore, dumpcore): New
5222 function declarations.
5223 * target.c (supports_dumpcore, dumpcore): New
5224 functions.
5225 * target-delegates.c: Rebuild.
5226 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5227 and target_dumpcore ().
5228
5229 2020-08-13 Aaron Merey <amerey@redhat.com>
5230
5231 * debuginfod-support.c: Replace global variables with user_data.
5232
5233 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5234
5235 * maint.c (maintenance_selftest): Split args and pass array_view
5236 to run_tests.
5237
5238 2020-08-12 Luis Machado <luis.machado@linaro.org>
5239
5240 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5241 type's length.
5242 Use %s and pulongest to print the length.
5243
5244 2020-08-12 Pedro Alves <palves@redhat.com>
5245
5246 * NEWS: Move "Multi-target debugging support" item to the
5247 "Changes since GDB 9" section.
5248
5249 2020-08-12 Pedro Alves <palves@redhat.com>
5250
5251 PR gdb/26336
5252 * progspace.c (program_space::remove_objfile): Invalidate the
5253 frame cache.
5254
5255 2020-08-11 Tom de Vries <tdevries@suse.de>
5256
5257 * MAINTAINERS: Mark ms1 as deleted.
5258
5259 2020-08-10 Luis Machado <luis.machado@linaro.org>
5260
5261 PR gdb/26310
5262
5263 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5264 act accordingly.
5265 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5266 movz/str/stur/stp skipping behavior.
5267
5268 2020-08-10 Luis Machado <luis.machado@linaro.org>
5269
5270 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5271 struct user_sve_header instead of struct sve_context.
5272
5273 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5274
5275 * read.h (dwarf2_fetch_die_loc_sect_off,
5276 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5277 `void *` parameter with function_view.
5278 * read.c (dwarf2_fetch_die_loc_sect_off,
5279 dwarf2_fetch_die_loc_cu_off): Likewise.
5280 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5281 (per_cu_dwarf_call): Adjust.
5282 (get_frame_address_in_block_wrapper): Remove.
5283 (indirect_synthetic_pointer): Adjust.
5284 (get_ax_pc): Remove.
5285 (dwarf2_compile_expr_to_ax): Adjust.
5286
5287 2020-08-08 Tom de Vries <tdevries@suse.de>
5288
5289 PR build/26344
5290 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5291 constructor.
5292 * regcache.c (get_thread_arch_aspace_regcache): Same.
5293
5294 2020-08-07 Tom Tromey <tromey@adacore.com>
5295
5296 * ravenscar-thread.c
5297 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5298 New method.
5299 (ravenscar_thread_target::wait): Check
5300 runtime_initialized.
5301 (ravenscar_thread_target::prepare_to_store)
5302 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5303 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5304 (ravenscar_thread_target::stopped_by_watchpoint)
5305 (ravenscar_thread_target::stopped_data_address)
5306 (ravenscar_thread_target::core_of_thread): Use
5307 scoped_restore_current_thread and
5308 set_base_thread_from_ravenscar_task.
5309
5310 2020-08-07 Tom Tromey <tromey@adacore.com>
5311
5312 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5313
5314 2020-08-07 Tom Tromey <tromey@adacore.com>
5315
5316 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5317 update_inferior_ptid before update_thread_list.
5318 (temporarily_change_regcache_ptid): New class.
5319 (ravenscar_thread_target::fetch_registers)
5320 (ravenscar_thread_target::store_registers)
5321 (ravenscar_thread_target::prepare_to_store): Use base thread when
5322 forwarding operation.
5323
5324 2020-08-07 Tom Tromey <tromey@adacore.com>
5325
5326 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5327 "is_pid" case.
5328
5329 2020-08-07 Tom Tromey <tromey@adacore.com>
5330
5331 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5332 New methods.
5333 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5334 first.
5335 (ravenscar_thread_target::add_thread): Rename from
5336 ravenscar_add_thread.
5337 (ravenscar_thread_target::update_thread_list): Use a lambda.
5338 (ravenscar_thread_target::xfer_partial): New method.
5339
5340 2020-08-07 Tom Tromey <tromey@adacore.com>
5341
5342 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5343 gdb::function_view.
5344 (iterate_over_live_ada_tasks): Change type of argument.
5345 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5346 of argument.
5347
5348 2020-08-07 Tom Tromey <tromey@adacore.com>
5349
5350 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5351 Remove.
5352 (ravenscar_thread_target::extra_thread_info): Remove.
5353 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5354 defer to target beneath for non-Ravenscar threads.
5355
5356 2020-08-07 Tom Tromey <tromey@adacore.com>
5357
5358 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5359 get_base_thread_from_ravenscar_task>: Now methods.
5360 <m_cpu_map>: New member.
5361 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5362 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5363 (ravenscar_thread_target::task_is_currently_active): Update.
5364 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5365 Now a method.
5366 (ravenscar_thread_target::add_active_thread): Put initial thread
5367 into the m_cpu_map.
5368
5369 2020-08-07 Tom Tromey <tromey@adacore.com>
5370
5371 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5372 event_ptid.
5373
5374 2020-08-07 Tom Tromey <tromey@adacore.com>
5375
5376 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5377 runtime_initialized.
5378
5379 2020-08-07 Tom Tromey <tromey@adacore.com>
5380
5381 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5382 add_active_thread.
5383 (ravenscar_thread_target::add_active_thread): Now public.
5384 (ravenscar_inferior_created): Call add_active_thread after pushing
5385 the target.
5386
5387 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 * regcache.c (ptid_regcache_map): New type.
5390 (target_ptid_regcache_map): New type.
5391 (regcaches): Change type to target_ptid_regcache_map.
5392 (get_thread_arch_aspace_regcache): Update to regcaches' new
5393 type.
5394 (regcache_thread_ptid_changed): Likewise.
5395 (registers_changed_ptid): Likewise.
5396 (regcaches_size): Likewise.
5397 (regcaches_test): Update.
5398 (regcache_thread_ptid_changed): Update.
5399 * regcache.h (regcache_up): New type.
5400 * gdbsupport/ptid.h (hash_ptid): New struct.
5401
5402 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * observable.h (thread_ptid_changed): Add parameter
5405 `process_stratum_target *`.
5406 * infrun.c (infrun_thread_ptid_changed): Add parameter
5407 `process_stratum_target *` and use it.
5408 (selftests): New namespace.
5409 (infrun_thread_ptid_changed): New function.
5410 (_initialize_infrun): Register selftest.
5411 * regcache.c (regcache_thread_ptid_changed): Add parameter
5412 `process_stratum_target *` and use it.
5413 (regcache_thread_ptid_changed): New function.
5414 (_initialize_regcache): Register selftest.
5415 * thread.c (thread_change_ptid): Pass target to
5416 thread_ptid_changed observable.
5417
5418 2020-08-06 Caroline Tice <cmtice@google.com>
5419
5420 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5421 (struct dwp_sections): Update field comments. Add loclists and
5422 rnglists fields.
5423 (struct virtual_v2_dwo_sections): Rename struct to
5424 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5425 size & offset fields for loclists and rnglists.
5426 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5427 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5428 skipping dummy type units.
5429 (create_dwp_hash_table): Update the large comment above the function to
5430 discuss Version 5 DWP files as well, with references. Update all the
5431 version checks in the function to check for version 5 as well. Add new
5432 section at the end to create dwp hash table for version 5.
5433 (create_dwp_v2_section): Rename function to
5434 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5435 Add V5 to error message text.
5436 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5437 into calls to create_dwp_v2_or_v5_section.
5438 (create_dwo_unit_in_dwp_v5): New function.
5439 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5440 check for version2; add else clause to handle version 5.
5441 (open_and_init_dwo_file): Add code to check dwarf version & only call
5442 create_debug_types_hash_table (with sections.types) if version is not 5;
5443 else call create_debug_type_hash_table, with sections.info.
5444 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5445 version 5.
5446 (dwarf2_locate_v5_dwp_sections): New function.
5447 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5448 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5449
5450 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * regcache.h (class regcache): Remove friend
5453 registers_changed_ptid.
5454 <regcache_thread_ptid_changed>: Remove.
5455 <regcaches>: Remove.
5456 * regcache.c (regcache::regcaches): Rename to...
5457 (regcaches): ... this. Make static.
5458 (get_thread_arch_aspace_regcache): Update.
5459 (regcache::regcache_thread_ptid_changed): Rename to...
5460 (regcache_thread_ptid_changed): ... this. Update.
5461 (class regcache_access): Remove.
5462 (regcaches_test): Update.
5463 (_initialize_regcache): Update.
5464 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5465 <forward_list>.
5466
5467 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * regcache.h (class regcache) <current_regcache>: Rename to...
5470 <regcaches>: ... this. Move doc here.
5471 * regcache.c (regcache::current_regcache) Rename to...
5472 (regcache::regcaches): ... this. Move doc to header.
5473 (get_thread_arch_aspace_regcache): Update.
5474 (regcache::regcache_thread_ptid_changed): Update.
5475 (registers_changed_ptid): Update.
5476 (class regcache_access) <current_regcache_size>: Rename to...
5477 <regcaches_size>: ... this.
5478 (current_regcache_test): Rename to...
5479 (regcaches_test): ... this.
5480 (_initialize_regcache): Update.
5481
5482 2020-08-06 Victor Collod <vcollod@nvidia.com>
5483
5484 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5485
5486 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5487
5488 * corelow.c (core_target::build_file_mappings): Don't output
5489 null pathname in warning.
5490
5491 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5494 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5495 gdb.dwarf2/dw2-single-line-discriminators.exp,
5496 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5497
5498 2020-08-05 Tom Tromey <tromey@adacore.com>
5499
5500 PR rust/26197:
5501 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5502 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5503 Fix off-by-one and type size errors in ordinary case.
5504
5505 2020-08-05 Tom de Vries <tdevries@suse.de>
5506
5507 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5508 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5509
5510 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * frame.h (frame_id_p): Return bool.
5513 (frame_id_artificial_p): Return bool.
5514 (frame_id_eq): Return bool.
5515 (has_stack_frames): Return bool.
5516 (get_selected_frame): Fix typo in comment.
5517 (get_frame_pc_if_available): Return bool.
5518 (get_frame_address_in_block_if_available): Return bool.
5519 (get_frame_func_if_available): Return bool.
5520 (read_frame_register_unsigned): Return bool.
5521 (get_frame_register_bytes): Return bool.
5522 (safe_frame_unwind_memory): Return bool.
5523 (deprecated_frame_register_read): Return bool.
5524 (frame_unwinder_is): Return bool.
5525 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5526 bool.
5527 <this_id::p>: Likewise.
5528 <prev_p>: Likewise.
5529 (frame_stash_add): Return bool.
5530 (get_frame_id): Use bool.
5531 (frame_id_build_special) Use bool.
5532 (frame_id_build_unavailable_stack): Use bool.
5533 (frame_id_build): Use bool.
5534 (frame_id_p): Return bool, use true/false instead of 1/0.
5535 (frame_id_artificial_p): Likewise.
5536 (frame_id_eq): Likewise.
5537 (frame_id_inner): Likewise.
5538 (get_frame_func_if_available): Likewise.
5539 (read_frame_register_unsigned): Likewise.
5540 (deprecated_frame_register_read): Likewise.
5541 (get_frame_register_bytes): Likewise.
5542 (has_stack_frames): Likewise.
5543 (inside_main_func): Likewise.
5544 (inside_entry_func): Likewise.
5545 (get_frame_pc_if_available): Likewise.
5546 (get_frame_address_in_block_if_available): Likewise.
5547 (frame_unwinder_is): Likewise.
5548 (safe_frame_unwind_memory): Likewise.
5549 (frame_unwind_arch): Likewise.
5550
5551 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5554 type to cached_copy_status.
5555 (fprintf_frame): Adjust.
5556 (get_frame_func_if_available): Adjust.
5557 (frame_cleanup_after_sniffer): Adjust.
5558
5559 2020-08-04 Mark Wielaard <mark@klomp.org>
5560
5561 * MAINTAINERS (Write After Approval): Update email address.
5562
5563 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5566 dynamic_prop::const_val.
5567
5568 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5571 dynamic_prop::kind.
5572
5573 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5574
5575 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5576
5577 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5578
5579 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5580
5581 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5582 Jose E. Marchesi <jose.marchesi@oracle.com>
5583
5584 * configure.tgt: Add entry for bpf-*-*.
5585 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5586 (ALLDEPFILES): Add bpf-tdep.c.
5587 * bpf-tdep.c: New file.
5588 * MAINTAINERS: Add bpf target and maintainer.
5589 * NEWS: Mention the support for the new target.
5590
5591 2020-08-04 Tom de Vries <tdevries@suse.de>
5592
5593 PR symtab/23270
5594 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5595 Error.
5596
5597 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5598
5599 * syscalls/freebsd.xml: Regenerate.
5600
5601 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5602
5603 * syscalls/update-freebsd.sh: Fix usage and year range.
5604
5605 2020-08-03 Tom de Vries <tdevries@suse.de>
5606
5607 PR symtab/26333
5608 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5609 DW_LNE_lo_user/DW_LNE_hi_user range.
5610
5611 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 PR ada/26318
5614 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5615 kind.
5616
5617 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5618
5619 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5620
5621 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5622
5623 * breakpoint.c (set_breakpoint_condition): Update the condition
5624 expressions after checking that the input condition string parses
5625 successfully and does not contain junk at the end.
5626
5627 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5628
5629 * breakpoint.c (set_breakpoint_condition): Update the
5630 condition string after parsing the new condition successfully.
5631
5632 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5633
5634 * proc-api.c (_STRUCTURED_PROC): Don't define.
5635 * proc-events.c: Likewise.
5636 * proc-flags.c: Likewise.
5637 * proc-why.c: Likewise.
5638 * procfs.c: Likewise.
5639
5640 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5641 * configure, config.in: Regenerate.
5642
5643 2020-07-30 Tom de Vries <tdevries@suse.de>
5644
5645 PR build/26320
5646 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5647 m_red/m_green/m_blue in a union.
5648
5649 2020-07-29 Tom de Vries <tdevries@suse.de>
5650
5651 PR tdep/26280
5652 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5653
5654 2020-07-28 Tom Tromey <tromey@adacore.com>
5655
5656 PR symtab/26270:
5657 * symtab.h (find_pc_partial_function_sym): Declare.
5658 * cli/cli-cmds.c (disassemble_command): Use
5659 find_pc_partial_function_sym. Check asm_demangle.
5660 * blockframe.c (cache_pc_function_sym): New global.
5661 (cache_pc_function_name): Remove.
5662 (clear_pc_function_cache): Update.
5663 (find_pc_partial_function_sym): New function, from
5664 find_pc_partial_function.
5665 (find_pc_partial_function): Rewrite using
5666 find_pc_partial_function_sym.
5667
5668 2020-07-28 Tom Tromey <tromey@adacore.com>
5669
5670 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5671 help. Add usage.
5672
5673 2020-07-28 Tom Tromey <tromey@adacore.com>
5674
5675 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5676 <DW_OP_GNU_variable_value>: Cast to address type.
5677
5678 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5679
5680 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5681 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5682 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5683 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5684 (nbsd_get_siginfo_type): New.
5685 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5686 (_initialize_nbsd_tdep): New.
5687
5688 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5689
5690 PR binutils/26301
5691 * configure: Regenerated.
5692
5693 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5694
5695 PR binutils/26301
5696 * configure: Regenerated.
5697
5698 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * python/py-frame.c: Remove 'user-regs.h' include.
5701 (frapy_read_register): Rewrite to make use of
5702 gdbpy_parse_register_id.
5703 * python/py-registers.c (gdbpy_parse_register_id): New function,
5704 moved here from python/py-unwind.c. Updated the return type, and
5705 also accepts register descriptor objects.
5706 * python/py-unwind.c: Remove 'user-regs.h' include.
5707 (pyuw_parse_register_id): Moved to python/py-registers.c.
5708 (unwind_infopy_add_saved_register): Update to use
5709 gdbpy_parse_register_id.
5710 (pending_framepy_read_register): Likewise.
5711 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5712
5713 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * python/py-registers.c: Add 'user-regs.h' include.
5716 (register_descriptor_iter_find): New function.
5717 (register_descriptor_iterator_object_methods): New static global
5718 methods array.
5719 (register_descriptor_iterator_object_type): Add pointer to methods
5720 array.
5721
5722 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5723
5724 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5725 for all architectures on FreeBSD 11.3 and later.
5726
5727 2020-07-27 Tom Tromey <tromey@adacore.com>
5728
5729 * gcore.h (load_corefile): Don't declare.
5730
5731 2020-07-27 Tom de Vries <tdevries@suse.de>
5732
5733 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5734 * config.in: Regenerate.
5735 * configure: Regenerate.
5736
5737 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5738
5739 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5740 ws2tcpip.h. When checking whether socklen_t type is defined, use
5741 ws2tcpip.h if it is available and sys/socket.h isn't.
5742 * configure: Regenerate.
5743 * config.in: Regenerate.
5744
5745 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5746
5747 PR fortran/23051
5748 PR fortran/26139
5749 * valops.c (value_ind): Pass address to
5750 readjust_indirect_value_type.
5751 * value.c (readjust_indirect_value_type): Make parameter
5752 non-const, and add extra address parameter. Resolve original type
5753 before using it.
5754 * value.h (readjust_indirect_value_type): Update function
5755 signature and comment.
5756
5757 2020-07-25 Tom de Vries <tdevries@suse.de>
5758
5759 PR symtab/26243
5760 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5761 entries.
5762
5763 2020-07-24 Aaron Merey <amerey@redhat.com>
5764
5765 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5766 * configure: Rebuild.
5767
5768 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5769
5770 PR corefiles/26294
5771 * corelow.c (_initialize_corelow): Add period to help text
5772 for "maintenance print core-file-backed-mappings".
5773
5774 2020-07-23 Pedro Alves <pedro@palves.net>
5775
5776 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5777 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5778 meanwhile.
5779 * frame.c (frame_cache_generation, get_frame_cache_generation):
5780 New.
5781 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5782 (get_prev_frame_if_no_cycle): On exception, don't touch
5783 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5784 * frame.h (get_frame_cache_generation): Declare.
5785
5786 2020-07-23 Tom de Vries <tdevries@suse.de>
5787
5788 PR tui/26282
5789 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5790 New default constructor.
5791
5792 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5795 exclude non-statement entries.
5796
5797 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5798
5799 * NEWS (New commands): Mention new command
5800 "maintenance print core-file-backed-mappings".
5801
5802 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5803
5804 * corelow.c (gdbcmd.h): Include.
5805 (core_target::info_proc_mappings): New method.
5806 (get_current_core_target): New function.
5807 (maintenance_print_core_file_backed_mappings): New function.
5808 (_initialize_corelow): Add core-file-backed-mappings to
5809 "maint print" commands.
5810
5811 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5812
5813 * linux-tdep.c (dump_note_entry_p): New function.
5814 (linux_dump_mapping_p_ftype): New typedef.
5815 (linux_find_memory_regions_full): Add new parameter,
5816 should_dump_mapping_p.
5817 (linux_find_memory_regions): Adjust call to
5818 linux_find_memory_regions_full.
5819 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5820 call to linux_find_memory_regions_full.
5821
5822 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5823
5824 * corelow.c (solist.h, unordered_map): Include.
5825 (class core_target): Add field m_core_file_mappings and
5826 method build_file_mappings.
5827 (core_target::core_target): Call build_file_mappings.
5828 (core_target::~core_target): Free memory associated with
5829 m_core_file_mappings.
5830 (core_target::build_file_mappings): New method.
5831 (core_target::xfer_partial): Use m_core_file_mappings
5832 for memory transfers.
5833 * linux-tdep.c (linux_read_core_file_mappings): New
5834 function.
5835 (linux_core_info_proc_mappings): Rewrite to use
5836 linux_read_core_file_mappings.
5837 (linux_init_abi): Register linux_read_core_file_mappings.
5838
5839 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5840
5841 * arch-utils.c (default_read_core_file_mappings): New function.
5842 * arch-utils.c (default_read_core_file_mappings): Declare.
5843 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5844 * gdbarch.h, gdbarch.c: Regenerate.
5845
5846 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5847
5848 PR corefiles/25631
5849 * corelow.c (core_target:xfer_partial): Revise
5850 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5851 case after first checking the stratum beneath the core
5852 target.
5853 (has_all_memory): Return true.
5854 * target.c (raw_memory_xfer_partial): Revise comment
5855 regarding use of has_all_memory.
5856
5857 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5858
5859 * exec.h (section_table_xfer_memory): Revise declaration,
5860 replacing section name parameter with an optional callback
5861 predicate.
5862 * exec.c (section_table_xfer_memory): Likewise.
5863 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5864 of section_table_xfer_memory.
5865
5866 2020-07-22 Tom Tromey <tromey@adacore.com>
5867
5868 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5869 lookup_symbol_search_name.
5870
5871 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5872
5873 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5874 redundant local variable.
5875 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5876 reference, not pointer, update code accordingly.
5877
5878 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5879 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5880
5881 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5882 * jit.c (jit_breakpoint_re_set_internal): Use the
5883 `skip_jit_symbol_lookup` field.
5884
5885 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5886 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5887
5888 * jit.c (jit_read_descriptor): Define the descriptor address once,
5889 use twice.
5890 (jit_breakpoint_deleted): Move the declaration of the loop variable
5891 `iter` into the loop header.
5892 (jit_breakpoint_re_set_internal): Move the declaration of the local
5893 variable `objf_data` to the first point of definition.
5894 (jit_event_handler): Move the declaration of local variables
5895 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5896 Rename `objf` to `jited`.
5897
5898 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5901 Remove.
5902 * jit.c (get_jiter_objfile_data): Update.
5903
5904 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5905 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * jit.c (struct jit_program_space_data): Remove.
5908 (jit_program_space_key): Remove.
5909 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5910 stuff.
5911 (get_jit_program_space_data): Remove.
5912 (jit_breakpoint_deleted): Iterate on all of the program space's
5913 objfiles.
5914 (jit_inferior_init): Likewise.
5915 (jit_breakpoint_re_set_internal): Likewise. Also change return
5916 type to void.
5917 (jit_breakpoint_re_set): Pass current_program_space to
5918 jit_breakpoint_re_set_internal.
5919
5920 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * jit.h (struct jiter_objfile_data) <cached_code_address,
5923 jit_breakpoint>: Move to here from ...
5924 * jit.c (jit_program_space_data): ... here.
5925 (jiter_objfile_data::~jiter_objfile_data): Update.
5926 (jit_breakpoint_deleted): Update.
5927 (jit_breakpoint_re_set_internal): Update.
5928
5929 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5932 checks.
5933 (jit_read_descriptor): Remove NULL check.
5934 (jit_event_handler): Add an assertion.
5935
5936 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * jit.h (struct jit_objfile_data): Split into...
5939 (struct jiter_objfile_data): ... this ...
5940 (struct jited_objfile_data): ... and this.
5941 * objfiles.h (struct objfile) <jit_data>: Remove.
5942 <jiter_data, jited_data>: New fields.
5943 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5944 (jiter_objfile_data::~jiter_objfile_data): ... this.
5945 (get_jit_objfile_data): Rename to ...
5946 (get_jiter_objfile_data): ... this.
5947 (add_objfile_entry): Update.
5948 (jit_read_descriptor): Use get_jiter_objfile_data.
5949 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5950 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5951 (jit_inferior_exit_hook): Use objfile's jited_data field.
5952
5953 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * jit.h: Forward-declare `struct minimal_symbol`.
5956 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5957 constructor, destructor, and an objfile* field.
5958 * jit.c (jit_objfile_data): Remove.
5959 (struct jit_objfile_data): Migrate from here to jit.h.
5960 (jit_objfile_data::~jit_objfile_data): New destructor
5961 implementation with code moved from free_objfile_data.
5962 (free_objfile_data): Delete.
5963 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5964 (jit_find_objf_with_entry_addr): Ditto.
5965 (jit_inferior_exit_hook): Ditto.
5966 (_initialize_jit): Remove the call to
5967 register_objfile_data_with_cleanup.
5968 * objfiles.h (struct objfile) <jit_data>: New field.
5969
5970 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5971
5972 * jit.h: Forward-declare `struct objfile`.
5973 (jit_event_handler): Add a second parameter, the JITer objfile.
5974 * jit.c (jit_read_descriptor): Change the signature to take the
5975 JITer objfile as an argument instead of the jit_program_space_data.
5976 (jit_inferior_init): Update the call to jit_read_descriptor.
5977 (jit_event_handler): Use the new JITer objfile argument when calling
5978 jit_read_descriptor.
5979 * breakpoint.c (handle_jit_event): Update the call to
5980 jit_event_handler to pass the JITer objfile.
5981
5982 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5983
5984 * gdbarch.c: Regenerate.
5985 * gdbarch.h: Regenerate.
5986 * gdbarch.sh (handle_segmentation_fault): Remove method.
5987 * infrun.c (handle_segmentation_fault): Remove.
5988 (print_signal_received_reason): Remove call to
5989 handle_segmentation_fault.
5990
5991 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5992
5993 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5994 Rename to sparc64_linux_report_signal_info and add siggnal
5995 argument.
5996 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5997 instead of sparc64_linux_handle_segmentation_fault.
5998
5999 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6000
6001 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6002 i386_linux_report_signal_info instead of
6003 i386_linux_handle_segmentation_fault.
6004 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6005 to i386_linux_report_signal_info and add siggnal argument.
6006 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6007 of i386_linux_handle_segmentation_fault.
6008 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6009 to i386_linux_report_signal_info and add siggnal argument.
6010
6011 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6012
6013 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6014 hook if present.
6015
6016 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6017
6018 * gdbarch.c: Regenerate.
6019 * gdbarch.h: Regenerate.
6020 * gdbarch.sh (report_signal_info): New method.
6021 * infrun.c (print_signal_received_reason): Invoke gdbarch
6022 report_signal_info hook if present.
6023
6024 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6025
6026 * python/py-registers.c : Add 'unordered_map' include.
6027 (gdbpy_new_reggroup): Renamed to...
6028 (gdbpy_get_reggroup): ...this. Update to only create register
6029 group descriptors when needed.
6030 (gdbpy_reggroup_iter_next): Update.
6031
6032 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * python/py-registers.c (gdbpy_register_object_data): New static
6035 global.
6036 (gdbpy_register_object_data_init): New function.
6037 (gdbpy_new_register_descriptor): Renamed to...
6038 (gdbpy_get_register_descriptor): ...this, and update to reuse
6039 existing register descriptors where possible.
6040 (gdbpy_register_descriptor_iter_next): Update.
6041 (gdbpy_initialize_registers): Register new gdbarch data.
6042
6043 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * linux-nat.c (stopped_pids): Make static.
6046
6047 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 PR ada/26235
6050 * gdbtypes.c (ada_discrete_type_low_bound,
6051 ada_discrete_type_high_bound): Handle undefined bounds.
6052
6053 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6054
6055 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6056 declaration.
6057 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6058 function.
6059
6060 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6061
6062 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6063 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6064 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6065 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6066 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6067 method.
6068
6069 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6070
6071 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6072 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6073 which are deprecated in Guile 3.0.
6074 * configure.ac (try_guile_versions): Add "guile-3.0".
6075 * configure (try_guile_versions): Regenerate.
6076 * NEWS: Update entry.
6077
6078 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6079 Doug Evans <dje@google.com>
6080
6081 PR gdb/21104
6082 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6083 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6084 USING_GUILE_BEFORE_2_2.
6085 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6086 Change type to 'scm_t_port_type *'.
6087 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6088 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6089 parameter and honor it. Update callers.
6090 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6091 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6092 functions.
6093 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6094 USING_GUILE_BEFORE_2_2.
6095 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6096 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6097 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6098 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6099 and 'SCM_PORT_TYPE'.
6100 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6101 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6102 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6103 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6104 [!USING_GUILE_BEFORE_2_2]: New functions.
6105 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6106 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6107 'gdbscm_memory_port_read'.
6108 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6109 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6110 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6111 function.
6112 (ioscm_init_memory_port): Remove.
6113 (ioscm_init_memory_port_stream): New function
6114 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6115 function.
6116 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6117 Return scm_from_uint (0).
6118 (gdbscm_set_memory_port_read_buffer_size_x)
6119 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6120 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6121 Return scm_from_uint (0).
6122 (gdbscm_set_memory_port_write_buffer_size_x)
6123 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6124 * configure.ac (try_guile_versions): Add "guile-2.2".
6125 * configure: Regenerate.
6126 * NEWS: Add entry.
6127
6128 2020-07-18 Tom Tromey <tom@tromey.com>
6129
6130 * linux-nat.c (linux_multi_process): Remove.
6131 (linux_nat_target::supports_multi_process): Return true.
6132
6133 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6134
6135 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6136 (riscv_lookup_target_description): Return pointer out of
6137 unique_ptr.
6138 * target-descriptions.c (allocate_target_description): Add
6139 comment.
6140 (target_desc_deleter::operator()): Likewise.
6141 * target-descriptions.h (struct target_desc_deleter): Moved to
6142 gdbsupport/tdesc.h.
6143 (target_desc_up): Likewise.
6144
6145 2020-07-17 Tom Tromey <tromey@adacore.com>
6146
6147 * linux-nat.c (linux_nat_target::supports_non_stop)
6148 (linux_nat_target::always_non_stop_p): Use "true".
6149 (linux_nat_target::supports_disable_randomization): Use "true" and
6150 "false".
6151
6152 2020-07-16 Caroline Tice <cmtice@google.com>
6153
6154 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6155 (RNGLIST_HEADER_SIZE64): New constant definition.
6156 (struct dwop_section_names): Add rnglists_dwo.
6157 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6158 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6159 (struct dwo_sections): Add rnglists field.
6160 (read_attribut_reprocess): Add tag parameter.
6161 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6162 (cu_debug_rnglists_section): New function (decl & definition).
6163 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6164 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6165 die whose range is being checked; get rnglist section from
6166 cu_debug_rnglists_section, to get from either objfile or dwo file as
6167 appropriate. Add cases for DW_RLE_base_addressx,
6168 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6169 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6170 test inside if-condition and updating complaint message.
6171 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6172 dwarf2_rnglists_process.
6173 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6174 dwarf2_ranges_process.
6175 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6176 need_ranges_base and update comment appropriately. Also pass die tag
6177 to dwarf2_ranges_read.
6178 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6179 need_ranges_base and update comment appropriately. Also pass die tag
6180 to dwarf2_ranges_process.
6181 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6182 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6183 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6184 need_ranges_base and update comment appropriately. Also pass die tag
6185 to read_attribute_reprocess and dwarf2_ranges_read.
6186 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6187 and update function comment appropriately.
6188 (read_loclist_index): Call read_loclists_rnglists_header instead of
6189 read_loclist_header.
6190 (read_rnglist_index): New function.
6191 (read_attribute_reprocess): Add tag parameter. Add code for
6192 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6193 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6194
6195 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6198 being resolved.
6199
6200 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6201
6202 * arch-utils.c (show_architecture): Update formatting of messages.
6203
6204 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * gdbtypes.h (struct type) <bounds>: Handle array and string
6207 types.
6208 * ada-lang.c (assign_aggregate): Use type::bounds on
6209 array/string type.
6210 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6211 * c-varobj.c (c_number_of_children): Likewise.
6212 (c_describe_child): Likewise.
6213 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6214 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6215 (f_type_print_base): Likewise.
6216 * f-valprint.c (f77_array_offset_tbl): Likewise.
6217 (f77_get_upperbound): Likewise.
6218 (f77_print_array_1): Likewise.
6219 * guile/scm-type.c (gdbscm_type_range): Likewise.
6220 * m2-typeprint.c (m2_array): Likewise.
6221 (m2_is_long_set_of_type): Likewise.
6222 * m2-valprint.c (get_long_set_bounds): Likewise.
6223 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6224 * python/py-type.c (typy_range): Likewise.
6225 * rust-lang.c (rust_internal_print_type): Likewise.
6226 * type-stack.c (type_stack::follow_types): Likewise.
6227 * valarith.c (value_subscripted_rvalue): Likewise.
6228 * valops.c (value_cast): Likewise.
6229
6230 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6233 callers to use the equivalent accessor methods.
6234
6235 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6238 (struct type) <bit_stride>: New method.
6239 (TYPE_BIT_STRIDE): Remove.
6240 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6241
6242 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6245 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6246 callers to use the equivalent accessor methods instead.
6247
6248 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6249
6250 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6251 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6252 callers to use the equivalent accessor methods instead.
6253
6254 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6257 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6258 to use dynamic_prop::kind.
6259
6260 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6263 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6264 to get the bound property's kind and check against
6265 PROP_UNDEFINED.
6266
6267 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6270 all callers to use type::range_bounds followed by
6271 dynamic_prop::{low,high}.
6272
6273 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6274
6275 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6276 const_val, set_const_val, baton, set_locexpr, set_loclist,
6277 set_addr_offset, variant_parts, set_variant_parts,
6278 original_type, set_original_type>: New methods.
6279 <kind>: Rename to...
6280 <m_kind>: ... this. Update all users to use the new methods
6281 instead.
6282 <data>: Rename to...
6283 <m_data>: ... this. Update all users to use the new methods
6284 instead.
6285
6286 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * gdbtypes.c (get_discrete_bounds): Return failure if
6289 the range type's bounds are not both defined and constant
6290 values.
6291 (get_array_bounds): Update comment. Remove undefined bound check.
6292
6293 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6294
6295 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6296 the type::bounds method directly.
6297
6298 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6301 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6302 are used to set the range type's bounds to use set_bounds.
6303
6304 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6305
6306 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6307
6308 2020-07-10 Pedro Alves <pedro@palves.net>
6309
6310 * gdbthread.h (inferior_ref): Define.
6311 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6312 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6313 * thread.c
6314 (scoped_restore_current_thread::restore):
6315 Adjust to gdb::ref_ptr.
6316 (scoped_restore_current_thread::~scoped_restore_current_thread):
6317 Remove manual decref handling.
6318 (scoped_restore_current_thread::scoped_restore_current_thread):
6319 Adjust to use
6320 inferior_ref::new_reference/thread_info_ref::new_reference.
6321 Incref the thread before calling get_frame_id instead of after.
6322 Let TARGET_CLOSE_ERROR propagate.
6323
6324 2020-07-10 Pedro Alves <pedro@palves.net>
6325
6326 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6327 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6328 NOT_AVAILABLE_ERROR.
6329 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6330 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6331
6332 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6333 Pedro Alves <pedro@palves.net>
6334
6335 PR gdb/26199
6336 * infrun.c (threads_are_resumed_pending_p): Delete.
6337 (do_target_wait): Remove threads_are_executing and
6338 threads_are_resumed_pending_p checks from the inferior_matches
6339 lambda. Update comments.
6340
6341 2020-07-10 Pedro Alves <pedro@palves.net>
6342
6343 PR gdb/26199
6344 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6345 executing threads.
6346
6347 2020-07-10 Pedro Alves <pedro@palves.net>
6348
6349 PR gdb/26199
6350 * infrun.c (handle_no_resumed): Handle multiple targets.
6351
6352 2020-07-10 Pedro Alves <pedro@palves.net>
6353
6354 PR gdb/26199
6355 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6356 target_is_async_p.
6357
6358 2020-07-10 Pedro Alves <pedro@palves.net>
6359
6360 PR gdb/26199
6361 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6362 threads, not all threads.
6363
6364 2020-07-10 Pedro Alves <pedro@palves.net>
6365
6366 PR gdb/26199
6367 * remote.c (remote_target::open_1): Pass remote target pointer as
6368 data to create_async_event_handler.
6369 (remote_async_inferior_event_handler): Mark async event handler
6370 before returning if the remote target still has either pending
6371 events or unacknowledged notifications.
6372
6373 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6374
6375 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6376 declaration.
6377 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6378 function.
6379
6380 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6381
6382 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6383 inferior_ptid.
6384
6385 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6386
6387 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6388 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6389 AT_FREEBSD_PS_STRINGS.
6390
6391 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6392
6393 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6394 of debugfile path on Windows.
6395
6396 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6397
6398 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6399 argument to 'data'.
6400
6401 2020-07-08 Tom Tromey <tromey@adacore.com>
6402
6403 * ada-lang.c (ada_exception_message_1): Use read_memory.
6404
6405 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6406
6407 PR python/22748
6408 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6409 special handling for inline frames.
6410 * findvar.c (value_of_register_lazy): Skip inline frames when
6411 creating lazy register values.
6412 * frame.c (frame_id_computed_p): Delete definition.
6413 * frame.h (frame_id_computed_p): Delete declaration.
6414
6415 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * NEWS: Mention additions to Python API.
6418 * python/py-arch.c (archpy_register_groups): New function.
6419 (arch_object_methods): Add 'register_groups' method.
6420 * python/py-registers.c (reggroup_iterator_object): New struct.
6421 (reggroup_object): New struct.
6422 (gdbpy_new_reggroup): New function.
6423 (gdbpy_reggroup_to_string): New function.
6424 (gdbpy_reggroup_name): New function.
6425 (gdbpy_reggroup_iter): New function.
6426 (gdbpy_reggroup_iter_next): New function.
6427 (gdbpy_new_reggroup_iterator): New function
6428 (gdbpy_initialize_registers): Register new types.
6429 (reggroup_iterator_object_type): Define new Python type.
6430 (gdbpy_reggroup_getset): New static global.
6431 (reggroup_object_type): Define new Python type.
6432 * python/python-internal.h
6433
6434 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6435
6436 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6437 * python/py-arch.c (archpy_registers): New function.
6438 (arch_object_methods): Add 'registers' method.
6439 * python/py-registers.c: New file.
6440 * python/python-internal.h
6441 (gdbpy_new_register_descriptor_iterator): Declare.
6442 (gdbpy_initialize_registers): Declare.
6443 * python/python.c (do_start_initialization): Call
6444 gdbpy_initialize_registers.
6445 * NEWS: Mention additions to the Python API.
6446
6447 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 * NEWS: Mention new Python API method.
6450 * python/py-unwind.c (pending_framepy_architecture): New function.
6451 (pending_frame_object_methods): Add architecture method.
6452
6453 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * gdbarch.c: Regenerate.
6456 * gdbarch.h: Regenerate.
6457 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6458 (gdbarch_data): Use internal_error for the case where
6459 deprecated_set_gdbarch_data was originally needed.
6460 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6461 and use passed in obstack.
6462 (libunwind_frame_set_descr): Should no longer get back NULL from
6463 gdbarch_data.
6464 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6465 type.
6466 * user-regs.c (user_regs_init): Update parameters, and use passed
6467 in obstack.
6468 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6469 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6470
6471 2020-07-06 Tom de Vries <tdevries@suse.de>
6472
6473 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6474 End-Of-Sequence in lte_is_less_than.
6475 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6476 "gdb: Don't reorder line table entries too much when sorting".
6477
6478 2020-07-06 Tom de Vries <tdevries@suse.de>
6479
6480 PR tui/26205
6481 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6482
6483 2020-07-05 Tom de Vries <tdevries@suse.de>
6484
6485 PR build/26187
6486 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6487 std::uncaught_exceptions instead of deprecated
6488 std::uncaught_exception.
6489
6490 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6491
6492 * macroexp.h (macro_stringify): Return
6493 gdb::unique_xmalloc_ptr<char>.
6494 * macroexp.c (macro_stringify): Likewise.
6495 * macrotab.c (fixup_definition): Update.
6496
6497 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6498
6499 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6500 (lex_one_token): Update.
6501 * macroexp.c (struct macro_buffer) <release>: Return
6502 gdb::unique_xmalloc_ptr<char>.
6503 (macro_stringify): Update.
6504 (macro_expand): Update.
6505 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6506 * macroexp.h (macro_expand_next): Likewise.
6507
6508 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * macroexp.h (macro_lookup_ftype): Remove.
6511 (macro_expand, macro_expand_once, macro_expand_next): Remove
6512 lookup function parameters, add scope parameter.
6513 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6514 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6515 * macroscope.h (standard_macro_lookup): Change parameter type
6516 to macro_scope.
6517 * macroscope.c (standard_macro_lookup): Likewise.
6518 * c-exp.y (lex_one_token): Update.
6519 * macrocmd.c (macro_expand_command): Likewise.
6520 (macro_expand_once_command): Likewise.
6521
6522 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * inf-loop.c (inferior_event_handler): Remove client_data param.
6525 * inf-loop.h (inferior_event_handler): Likewise.
6526 * infcmd.c (step_1): Adjust.
6527 * infrun.c (proceed): Adjust.
6528 (fetch_inferior_event): Remove client_data param.
6529 (infrun_async_inferior_event_handler): Adjust.
6530 * infrun.h (fetch_inferior_event): Remove `void *` param.
6531 * linux-nat.c (handle_target_event): Adjust.
6532 * record-btrace.c (record_btrace_handle_async_inferior_event):
6533 Adjust.
6534 * record-full.c (record_full_async_inferior_event_handler):
6535 Adjust.
6536 * remote.c (remote_async_inferior_event_handler): Adjust.
6537
6538 2020-07-01 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6541 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6542
6543 2020-07-01 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6546 tui_gen_win_info.
6547 (tui_win_info::make_window): Merge with
6548 tui_gen_win_info::make_window.
6549 (tui_win_info::make_visible): Move from tui_gen_win_info.
6550 * tui/tui-win.c (tui_win_info::max_width): Move from
6551 tui_gen_win_info.
6552 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6553 type.
6554 <window_factory>: Likewise.
6555 * tui/tui-layout.c (tui_win_info::resize): Move from
6556 tui_gen_win_info.
6557 (make_standard_window): Change return type.
6558 (get_locator_window, tui_get_window_by_name): Likewise.
6559 (tui_layout_window::apply): Remove a cast.
6560 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6561 (struct tui_win_info): Merge with tui_gen_win_info.
6562 (struct tui_gen_win_info): Remove.
6563
6564 2020-07-01 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-stack.h (struct tui_locator_window): Derive from
6567 tui_win_info.
6568 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6569 <can_box>: New method.
6570
6571 2020-07-01 Tom Tromey <tom@tromey.com>
6572
6573 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6574
6575 2020-07-01 Tom Tromey <tom@tromey.com>
6576
6577 * tui/tui-regs.c (tui_data_window::display_registers_from)
6578 (tui_data_window::display_registers_from)
6579 (tui_data_window::first_data_item_displayed)
6580 (tui_data_window::delete_data_content_windows): Update.
6581 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6582 Remove.
6583 (tui_data_window::check_register_values): Update.
6584 (tui_data_item_window::rerender): Add parameters. Update.
6585 (tui_data_item_window::refresh_window): Remove.
6586 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6587 virtual.
6588 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6589 tui_gen_win_info.
6590 <refresh_window, max_height, min_height>: Remove.
6591 <rerender>: Add parameters.
6592 <x, y, visible>: New members.
6593 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6594 <m_item_width>: New member.
6595
6596 2020-07-01 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-regs.c (tui_data_window::show_register_group)
6599 (tui_data_window::check_register_values): Update.
6600 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6601 from item_no.
6602
6603 2020-07-01 Tom Tromey <tom@tromey.com>
6604
6605 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6606 useless "if".
6607
6608 2020-07-01 Tom Tromey <tom@tromey.com>
6609
6610 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6611 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6612
6613 2020-07-01 Tom Tromey <tom@tromey.com>
6614
6615 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6616 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6617 (struct tui_line_or_address): Move from tui-data.h.
6618 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6619 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6620 (tui_cmd_window, tui_source_window_base, tui_source_window)
6621 (tui_disasm_window): Don't declare.
6622 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6623 to tui-winsource.h.
6624 (SINGLE_KEY): Move to tui-stack.c.
6625
6626 2020-07-01 Tom Tromey <tom@tromey.com>
6627
6628 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6629 std::string.
6630 * tui/tui-regs.c (class tab_expansion_file): New.
6631 (tab_expansion_file::write): New method.
6632 (tui_register_format): Change return type. Use
6633 tab_expansion_file.
6634 (tui_get_register, tui_data_window::display_registers_from)
6635 (tui_data_item_window::rerender): Update.
6636 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6637 * tui/tui-io.c (tui_expand_tabs): Remove.
6638
6639 2020-07-01 Tom Tromey <tom@tromey.com>
6640
6641 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6642
6643 2020-07-01 Fangrui Song <maskray@google.com>
6644
6645 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6646
6647 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6648
6649 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6650 forms for DW_AT_associated and DW_AT_allocated attributes,
6651 which is already checked in function attr_to_dynamic_prop.
6652
6653 2020-06-30 Tom Tromey <tromey@adacore.com>
6654
6655 * dwarf2/read.c (quirk_rust_enum): Correctly call
6656 alloc_rust_variant for default-less enum.
6657
6658 2020-06-30 Tom Tromey <tromey@adacore.com>
6659
6660 PR build/26183:
6661 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6662 gdb::to_string.
6663
6664 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6665
6666 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6667 * gdbarch.h: Re-generate.
6668
6669 2020-06-28 Tom Tromey <tom@tromey.com>
6670
6671 * command.h (cmd_types): Remove.
6672 (cmd_type): Don't declare.
6673 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6674 typedef.
6675 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6676 * cli/cli-decode.c (cmd_type): Remove.
6677
6678 2020-06-27 Pedro Alves <palves@redhat.com>
6679
6680 * fork-child.c (prefork_hook): Adjust.
6681 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6682 Delete.
6683 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6684 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6685 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6686 Remove declarations.
6687 (struct inferior) <set_tty, tty>: New methods.
6688 (struct inferior) <terminal>: Rename to ...
6689 (struct inferior) <m_terminal>: ... this and make private.
6690 * main.c (captured_main_1): Adjust.
6691 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6692 (mi_cmd_inferior_tty_show): Adjust.
6693 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6694 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6695
6696 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6697
6698 * configure.ac: Add --enable-libctf: handle --disable-static
6699 properly.
6700 * acinclude.m4: sinclude ../config/enable.m4.
6701 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6702 (LIBCTF): Substitute in.
6703 (CTF_DEPS): New, likewise.
6704 (CLIBS): libctf needs symbols from libbfd: move earlier.
6705 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6706 flags.
6707 * ctfread.c: Surround in ENABLE_LIBCTF.
6708 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6709 * configure: Regenerate.
6710 * config.in: Likewise.
6711
6712 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6713
6714 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6715
6716 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * inferior.h (struct inferior) <terminal>: Change type to
6719 gdb::unique_xmalloc_ptr<char>.
6720 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6721 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6722 field, adjust to unique pointer.
6723 (get_inferior_io_terminal): Adjust to unique pointer.
6724
6725 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6728 registers, not just the known core set of registers.
6729
6730 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6731
6732 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6733 fflags, frm, and fcsr registers.
6734 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6735 restore groups.
6736 (riscv_tdesc_unknown_reg): New function.
6737 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6738 tdesc_use_registers.
6739 * riscv-tdep.h (struct gdbarch_tdep): Add
6740 unknown_csrs_first_regnum, unknown_csrs_count,
6741 duplicate_fflags_regnum, duplicate_frm_regnum, and
6742 duplicate_fcsr_regnum fields.
6743
6744 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6747 callback, use the callback (when not null) to help number unknown
6748 registers.
6749 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6750 (tdesc_use_registers): Add extra parameter to declaration.
6751
6752 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6753
6754 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6755 in the file.
6756 (class riscv_pending_register_alias): Likewise.
6757 (riscv_register_feature::register_info): Change 'required_p' field
6758 to 'required', and change its type. Add 'check' member function.
6759 (riscv_register_feature::register_info::check): Define new member
6760 function.
6761 (riscv_xreg_feature): Change initialisation of 'required' field.
6762 (riscv_freg_feature): Likewise.
6763 (riscv_virtual_feature): Likewise.
6764 (riscv_csr_feature): Likewise.
6765 (riscv_check_tdesc_feature): Take extra parameter, the csr
6766 tdesc_feature, rewrite the function to use the new
6767 riscv_register_feature::register_info::check function.
6768 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6769
6770 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6771
6772 * features/Makefile: Remove all references to the deleted files
6773 below.
6774 * features/riscv/32bit-csr.c: Deleted.
6775 * features/riscv/32bit-csr.xml: Deleted.
6776 * features/riscv/64bit-csr.c: Deleted.
6777 * features/riscv/64bit-csr.xml: Deleted.
6778 * features/riscv/rebuild-csr-xml.sh: Deleted.
6779
6780 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6783 whitespace error for declaration of names member variable.
6784 (struct riscv_register_feature): Add new prefer_first_name member
6785 variable, and fix whitespace error in declaration of registers.
6786 (riscv_xreg_feature): Initialize prefer_first_name field.
6787 (riscv_freg_feature): Likewise.
6788 (riscv_virtual_feature): Likewise.
6789 (riscv_csr_feature): Likewise.
6790 (riscv_register_name): Expand on comments. Remove register name
6791 modifications for CSR and virtual registers.
6792
6793 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6796 errors.
6797
6798 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6801 riscv-opc.h.
6802 (class riscv_pending_register_alias): New class.
6803 (riscv_check_tdesc_feature): Take vector of pending aliases and
6804 populate it as appropriate.
6805 (riscv_setup_register_aliases): Delete.
6806 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6807 to riscv_check_tdesc_feature in all cases. Use the vector to
6808 create the register aliases.
6809
6810 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6811
6812 * sol2-tdep.c (sol2_static_transform_name): Remove.
6813 (sol2_init_abi): Don't register it.
6814 * gdbarch.sh (static_transform_name): Remove.
6815 * gdbarch.c, gdbarch.h: Regenerate.
6816
6817 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6818 gdbarch_static_transform_name.
6819 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6820 * stabsread.c (define_symbol) <'X'>: Remove.
6821 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6822 handling.
6823 <'V'>: Likewise.
6824 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6825 <'S'>: Remove call to gdbarch_static_transform_name.
6826
6827 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6828
6829 * procfs.c (procfs_pre_trace): New function.
6830 (procfs_target::create_inferior): Pass it to fork_inferior.
6831
6832 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6833
6834 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6835 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6836 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6837 sol2-tdep.o, sparc-sol2-tdep.o.
6838 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6839 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6840 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6841 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6842
6843 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6844
6845 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6846 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6847 Call sol2_init_abi.
6848 Remove calls to set_gdbarch_skip_solib_resolver,
6849 set_gdbarch_core_pid_to_str.
6850 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6851 (i386_sol2_static_transform_name): Remove.
6852 (i386_sol2_init_abi): Call sol2_init_abi.
6853 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6854 set_gdbarch_static_transform_name,
6855 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6856 Use sol2_sigtramp_p.
6857 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6858 (sol2_sigtramp_p): New function.
6859 (sol2_static_transform_name): New function.
6860 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6861 (sol2_init_abi): New function.
6862 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6863 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6864 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6865 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6866 (sparc_sol2_static_transform_name): Remove.
6867 (sparc32_sol2_init_abi): Call sol2_init_abi.
6868 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6869 set_gdbarch_static_transform_name,
6870 set_gdbarch_skip_solib_resolver,
6871 set_gdbarch_core_pid_to_str.
6872 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6873 (sparc_sol2_static_transform_name): Remove
6874 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6875 call sol2_sigtramp_p.
6876 (sparc64_sol2_init_abi): Call sol2_init_abi.
6877 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6878 set_gdbarch_static_transform_name,
6879 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6880
6881 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6882
6883 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6884 * exec.c (validate_exec_file): If from_tty, set both
6885 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6886 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6887 and from_tty, unconditionally ask a confirmation.
6888
6889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6890
6891 * target-descriptions.c (tdesc_architecture_name): Protect against
6892 NULL pointer dereference.
6893 (maint_print_xml_tdesc_cmd): New function.
6894 (_initialize_target_descriptions): Register new 'maint print
6895 xml-tdesc' command and give it the filename completer.
6896 * NEWS: Mention new 'maint print xml-tdesc' command.
6897
6898 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6899
6900 * target-descriptions.c (class tdesc_compatible_info): New class.
6901 (struct target_desc): Change type of compatible vector.
6902 (tdesc_compatible_p): Update for change in type of
6903 target_desc::compatible.
6904 (tdesc_compatible_info_list): New function.
6905 (tdesc_compatible_info_arch_name): New function.
6906 (tdesc_add_compatible): Update for change in type of
6907 target_desc::compatible.
6908 (print_c_tdesc::visit_pre): Likewise.
6909
6910 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6913 whitespace to underscore.
6914 (maint_print_c_tdesc_cmd): Use fake filename for target
6915 descriptions that came from the target.
6916 (_initialize_target_descriptions): Add filename command completion
6917 for 'maint print c-tdesc'.
6918
6919 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6922 lines.
6923
6924 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6927 lines.
6928 (dwarf2_find_location_expression): Likewise.
6929 (call_site_parameter_matches): Likewise.
6930 (dwarf2_compile_expr_to_ax): Likewise.
6931 (disassemble_dwarf_expression): Likewise.
6932 (loclist_describe_location): Likewise.
6933
6934 2020-06-23 Pedro Alves <palves@redhat.com>
6935
6936 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6937 progspace-and-thread.h. Include scoped-mock-context.h instead.
6938 (register_to_value_test): Use scoped_mock_context.
6939 * regcache.c: Include "scoped-mock-context.h".
6940 (cooked_read_test): Don't error out if a target is already pushed.
6941 Use scoped_mock_context. Adjust.
6942 * scoped-mock-context.h: New file.
6943
6944 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6945
6946 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6947 initializer.
6948 (ada_language::is_string_type_p): New member function.
6949 * c-lang.c (c_language_data): Delete la_is_string_type_p
6950 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_is_string_type_p): Delete function, implementation
6956 moved to f_language::is_string_type_p.
6957 (f_language_data): Delete la_is_string_type_p initializer.
6958 (f_language::is_string_type_p): New member function,
6959 implementation from f_is_string_type_p.
6960 * go-lang.c (go_is_string_type_p): Delete function, implementation
6961 moved to go_language::is_string_type_p.
6962 (go_language_data): Delete la_is_string_type_p initializer.
6963 (go_language::is_string_type_p): New member function,
6964 implementation from go_is_string_type_p.
6965 * language.c (language_defn::is_string_type_p): Define new member
6966 function.
6967 (default_is_string_type_p): Make static, add comment copied from
6968 header file.
6969 (unknown_language_data): Delete la_is_string_type_p initializer.
6970 (unknown_language::is_string_type_p): New member function.
6971 (auto_language_data): Delete la_is_string_type_p initializer.
6972 (auto_language::is_string_type_p): New member function.
6973 * language.h (language_data): Delete la_is_string_type_p field.
6974 (language_defn::is_string_type_p): Declare new function.
6975 (default_is_string_type_p): Delete desclaration, move comment to
6976 definition.
6977 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6978 moved to m2_language::is_string_type_p.
6979 (m2_language_data): Delete la_is_string_type_p initializer.
6980 (m2_language::is_string_type_p): New member function,
6981 implementation from m2_is_string_type_p.
6982 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6983 initializer.
6984 * opencl-lang.c (opencl_language_data): Likewise.
6985 * p-lang.c (pascal_is_string_type_p): Delete function,
6986 implementation moved to pascal_language::is_string_type_p.
6987 (pascal_language_data): Delete la_is_string_type_p initializer.
6988 (pascal_language::is_string_type_p): New member function,
6989 implementation from pascal_is_string_type_p.
6990 * rust-lang.c (rust_is_string_type_p): Delete function,
6991 implementation moved to rust_language::is_string_type_p.
6992 (rust_language_data): Delete la_is_string_type_p initializer.
6993 (rust_language::is_string_type_p): New member function,
6994 implementation from rust_is_string_type_p.
6995 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6996 is_string_type_p.
6997
6998 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * ada-lang.c (ada_language_data): Delete la_print_typedef
7001 initializer.
7002 (ada_language::print_typedef): New member function.
7003 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7004 (cplus_language_data): Likewise.
7005 (asm_language_data): Likewise.
7006 (minimal_language_data): Likewise.
7007 * d-lang.c (d_language_data): Likewise.
7008 * f-lang.c (f_language_data): Likewise.
7009 (f_language::print_typedef): New member function.
7010 * go-lang.c (go_language_data): Delete la_print_typedef
7011 initializer.
7012 * language.c (language_defn::print_typedef): Define member
7013 function.
7014 (unknown_language_data): Delete la_print_typedef initializer.
7015 (unknown_language::print_typedef): New member function.
7016 (auto_language_data): Delete la_print_typedef initializer.
7017 (auto_language::print_typedef): New member function.
7018 * language.h (language_data): Delete la_print_typedef field.
7019 (language_defn::print_typedef): Declare new member function.
7020 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7021 (default_print_typedef): Delete declaration.
7022 * m2-lang.c (m2_language_data): Delete la_print_typedef
7023 initializer.
7024 (m2_language::print_typedef): New member function.
7025 * objc-lang.c (objc_language_data): Delete la_print_typedef
7026 initializer.
7027 * opencl-lang.c (opencl_language_data): Likewise.
7028 * p-lang.c (pascal_language_data): Likewise.
7029 (pascal_language::print_typedef): New member function.
7030 * rust-lang.c (rust_print_typedef): Delete function,
7031 implementation moved to rust_language::print_typedef.
7032 (rust_language): Delete la_print_typedef initializer.
7033 (rust_language::print_typedef): New member function,
7034 implementation from rust_print_typedef.
7035 * typeprint.c (default_print_typedef): Delete.
7036
7037 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7040 (ada_language::printstr): New member function.
7041 * c-lang.c (c_language_data): Delete la_printstr initializer.
7042 (cplus_language_data): Likewise.
7043 (asm_language_data): Likewise.
7044 (minimal_language_data): Likewise.
7045 * d-lang.c (d_language_data): Likewise.
7046 * f-lang.c (f_printstr): Rename to f_language::printstr.
7047 (f_language_data): Delete la_printstr initializer.
7048 (f_language::printstr): New member function, implementation from
7049 f_printstr.
7050 * go-lang.c (go_language_data): Delete la_printstr initializer.
7051 * language.c (language_defn::printstr): Define new member
7052 function.
7053 (unk_lang_printstr): Delete.
7054 (unknown_language_data): Delete la_printstr initializer.
7055 (unknown_language::printstr): New member function.
7056 (auto_language_data): Delete la_printstr initializer.
7057 (auto_language::printstr): New member function.
7058 * language.h (language_data): Delete la_printstr field.
7059 (language_defn::printstr): Declare new member function.
7060 (LA_PRINT_STRING): Update call to printstr.
7061 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7062 (m2_language_data): Delete la_printstr initializer.
7063 (m2_language::printstr): New member function, implementation from
7064 m2_printstr.
7065 * objc-lang.c (objc_language_data): Delete la_printstr
7066 initializer.
7067 * opencl-lang.c (opencl_language_data): Likewise.
7068 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7069 (pascal_language_data): Delete la_printstr initializer.
7070 (pascal_language::printstr): New member function, implementation
7071 from pascal_printstr.
7072 * p-lang.h (pascal_printstr): Delete declaration.
7073 * rust-lang.c (rust_printstr): Update header comment.
7074 (rust_language_data): Delete la_printstr initializer.
7075 (rust_language::printstr): New member function.
7076
7077 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7078
7079 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7080 (ada_language::printchar): New member function.
7081 * c-lang.c (c_language_data): Delete la_printchar initializer.
7082 (cplus_language_data): Likewise.
7083 (asm_language_data): Likewise.
7084 (minimal_language_data): Likewise.
7085 * d-lang.c (d_language_data): Likewise.
7086 * f-lang.c (f_printchar): Rename to f_language::printchar.
7087 (f_language_data): Delete la_printchar initializer.
7088 (f_language::printchar): New member function, implementation from
7089 f_printchar.
7090 * go-lang.c (go_language_data): Delete la_printchar initializer.
7091 * language.c (unk_lang_printchar): Delete.
7092 (language_defn::printchar): Define new member function.
7093 (unknown_language_data): Delete la_printchar initializer.
7094 (unknown_language::printchar): New member function.
7095 (auto_language_data): Delete la_printchar initializer.
7096 (auto_language::printchar): New member function.
7097 * language.h (language_data): Delete la_printchar field.
7098 (language_defn::printchar): Declare new member function.
7099 (LA_PRINT_CHAR): Update call to printchar.
7100 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7101 (m2_language::printchar): New member function.
7102 * objc-lang.c (objc_language_data): Delete la_printchar
7103 initializer.
7104 * opencl-lang.c (opencl_language_data): Likewise.
7105 * p-lang.c (pascal_language_data): Delete la_printchar
7106 initializer.
7107 (pascal_language::printchar): New member function.
7108 * rust-lang.c (rust_printchar): Rename to
7109 rust_language::printchar.
7110 (rust_language_data): Delete la_printchar initializer.
7111 (rust_language::printchar): New member function, implementation
7112 from rust_printchar.
7113
7114 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7117 (ada_language_data): Delete la_emitchar initializer.
7118 (ada_language::emitchar): New member function, implementation from
7119 emit_char.
7120 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7121 (cplus_language_data): Likewise.
7122 (asm_language_data): Likewise.
7123 (minimal_language_data): Likewise.
7124 * d-lang.c (d_language_data): Likewise.
7125 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7126 (f_language_data): Delete la_emitchar initializer.
7127 (f_language::emitchar): New member function, implementation from
7128 f_emit_char.
7129 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7130 * language.c (unk_lang_emit_char): Delete.
7131 (language_defn::emitchar): New member function definition.
7132 (unknown_language_data): Delete la_emitchar initializer.
7133 (unknown_language::emitchar): New member function.
7134 (auto_language_data): Delete la_emitchar initializer.
7135 (auto_language::emitchar): New member function.
7136 * language.h (language_data): Delete la_emitchar field.
7137 (language_defn::emitchar): New member field declaration.
7138 (LA_EMIT_CHAR): Update call to emitchar.
7139 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7140 (m2_language_data): Delete la_emitchar initializer.
7141 (m2_language::emitchar): New member function, implementation from
7142 m2_emit_char.
7143 * objc-lang.c (objc_language_data): Delete la_emitchar
7144 initializer.
7145 * opencl-lang.c (opencl_language_data): Likewise.
7146 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7147 (pascal_language_data): Delete la_emitchar initializer.
7148 (pascal_language::emitchar): New member function, implementation
7149 from pascal_emit_char.
7150 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7151 (rust_language_data): Delete la_emitchar initializer.
7152 (rust_language::emitchar): New member function, implementation
7153 from rust_emitchar.
7154
7155 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7158 (ada_language_data): Delete la_post_parser initializer.
7159 (ada_language::post_parser): New member function.
7160 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7161 (cplus_language_data): Likewise.
7162 (asm_language_data): Likewise.
7163 (minimal_language_data): Likewise.
7164 * d-lang.c (d_language_data): Likewise.
7165 * f-lang.c (f_language_data): Likewise.
7166 * go-lang.c (go_language_data): Likewise.
7167 * language.c (unknown_language_data): Likewise.
7168 (auto_language_data): Likewise.
7169 * language.h (language_data): Delete la_post_parser field.
7170 (language_defn::post_parser): New member function.
7171 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7172 * objc-lang.c (objc_language_data): Likewise.
7173 * opencl-lang.c (opencl_language_data): Likewise.
7174 * p-lang.c (pascal_language_data): Likewise.
7175 * parse.c (parse_exp_in_context): Update call to post_parser.
7176 (null_post_parser): Delete definition.
7177 * parser-defs.h (null_post_parser): Delete declaration.
7178 * rust-lang.c (rust_language_data): Delete la_post_parser
7179 initializer.
7180
7181 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * ada-lang.c (parse): Rename to ada_language::parser.
7184 (ada_language_data): Delete la_parser initializer.
7185 (ada_language::parser): New member function, implementation from
7186 parse.
7187 * c-lang.c (c_language_data): Delete la_parser initializer.
7188 (cplus_language_data): Likewise.
7189 (asm_language_data): Likewise.
7190 (minimal_language_data): Likewise.
7191 * d-lang.c (d_language_data): Likewise.
7192 (d_language::parser): New member function.
7193 * f-lang.c (f_language_data): Delete la_parser initializer.
7194 (f_language::parser): New member function.
7195 * go-lang.c (go_language_data): Delete la_parser initializer.
7196 (go_language::parser): New member function.
7197 * language.c (unk_lang_parser): Delete.
7198 (language_defn::parser): Define new member function.
7199 (unknown_language_data): Delete la_parser initializer.
7200 (unknown_language::parser): New member function.
7201 (auto_language_data): Delete la_parser initializer.
7202 (auto_language::parser): New member function.
7203 * language.h (language_data): Delete la_parser field.
7204 (language_defn::parser): Declare new member function.
7205 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7206 (m2_language::parser): New member function.
7207 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7208 * opencl-lang.c (opencl_language_data): Likewise.
7209 * p-lang.c (pascal_language_data): Likewise.
7210 (pascal_language::parser): New member function.
7211 * parse.c (parse_exp_in_context): Update call to parser.
7212 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7213 (rust_language::parser): New member function.
7214
7215 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * top.c (print_gdb_configuration): Print --with-python-libdir
7218 configuration value.
7219
7220 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7221
7222 * NEWS: Mention change to the alias command.
7223
7224 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7225
7226 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7227 (alias_command_completer)
7228 (make_alias_options_def_group): New functions.
7229 (alias_opts, alias_option_defs): New struct and array.
7230 (alias_usage_error): Update usage.
7231 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7232 Use option framework.
7233 (_initialize_cli_cmds): Update alias command help.
7234 Update aliases command help.
7235 (show_user):
7236 Add NULL for new default_args lookup_cmd argument.
7237 (valid_command_p): Rename to validate_aliased_command.
7238 Add NULL for new default_args lookup_cmd argument. Verify that the
7239 aliased_command has no default args.
7240 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7241 (lookup_cmd_1, lookup_cmd): New argument default_args.
7242 (add_alias_cmd):
7243 Add NULL for new default_args lookup_cmd argument.
7244 (print_help_for_command): Show default args under the layout
7245 alias some_alias = some_aliased_cmd some_alias_default_arg.
7246 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7247 xfree default_args in destructor.
7248 * cli/cli-script.c (process_next_line, do_define_command):
7249 Add NULL for new default_args lookup_cmd argument.
7250 * command.h: Declare new default_args argument in lookup_cmd
7251 and lookup_cmd_1.
7252 * completer.c (complete_line_internal_1):
7253 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7254 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7255 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7256 Likewise.
7257 * infcmd.c (_initialize_infcmd): Likewise.
7258 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7259 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7260 * python/py-param.c (add_setshow_generic): Likewise.
7261 * remote.c (_initialize_remote): Likewise.
7262 * top.c (execute_command): Prepend default_args if command has some.
7263 (set_verbose):
7264 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7265 * tracepoint.c (validate_actionline, encode_actions_1):
7266 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7267
7268 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7269
7270 * jit.c (jit_read_descriptor): Use bool as the return type.
7271 (jit_breakpoint_re_set_internal): Use bool as the return type.
7272 Invert the return value logic; return true if the jit breakpoint
7273 has been successfully initialized.
7274 (jit_inferior_init): Update the call to
7275 jit_breakpoint_re_set_internal.
7276
7277 2020-06-22 Pedro Alves <palves@redhat.com>
7278
7279 PR gdb/25939
7280 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7281 Use the current inferior instead. Don't return
7282 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7283 wait again.
7284 * sol-thread.c (sol_thread_target::wait): Don't reference
7285 inferior_ptid.
7286 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7287 (sol_update_thread_list_callback): Use the current inferior's pid
7288 instead of inferior_ptid.
7289
7290 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7291
7292 * procfs.c: Cleanup many comments.
7293
7294 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7295 (AFTER_WATCHFLAG): Replace by value.
7296
7297 (MAIN_PROC_NAME_FORMAT): Inline ...
7298 (create_procinfo): ... here.
7299
7300 (procfs_debug_inferior): Remove SYS_exec handling.
7301 (syscall_is_exec): Likewise.
7302 (procfs_set_exec_trap): Likewise.
7303
7304 (syscall_is_lwp_exit): Inline in callers.
7305 (syscall_is_exit): Likewise.
7306 (syscall_is_exec): Likewise.
7307 (syscall_is_lwp_create): Likewise.
7308
7309 (invalidate_cache): Remove #if 0 code.
7310
7311 (make_signal_thread_runnable): Remove.
7312 (procfs_target::resume): Remove #if 0 code.
7313
7314 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7315
7316 PR gdb/25939
7317 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7318 call ...
7319 (procfs_target::create_inferior): ... here.
7320
7321 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7322
7323 * exec.c (validate_exec_file): Ensure the build-id is up to
7324 date by calling reopen_exec_file (that checks file timestamp
7325 to decide to re-read the file).
7326
7327 2020-06-18 Pedro Alves <palves@redhat.com>
7328
7329 PR gdb/25412
7330 * gdbthread.h (delete_thread, delete_thread_silent)
7331 (find_thread_ptid): Update comments.
7332 * thread.c (current_thread_): New global.
7333 (is_current_thread): Move higher, and reimplement.
7334 (inferior_thread): Reimplement.
7335 (set_thread_exited): Use bool. Add assertions.
7336 (add_thread_silent): Simplify thread-reuse handling by always
7337 calling delete_thread.
7338 (delete_thread): Remove intro comment.
7339 (find_thread_ptid): Skip exited threads.
7340 (switch_to_thread_no_regs): Write to current_thread_.
7341 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7342 INFERIOR_PTID. Clear current_thread_.
7343
7344 2020-06-18 Pedro Alves <palves@redhat.com>
7345
7346 * aix-thread.c (pd_update): Use switch_to_thread.
7347
7348 2020-06-18 Pedro Alves <palves@redhat.com>
7349
7350 * ravenscar-thread.c (ravenscar_thread_target): Update.
7351 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7352 (ravenscar_thread_target::add_active_thread): ... this. Don't
7353 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7354 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7355
7356 2020-06-18 Pedro Alves <palves@redhat.com>
7357
7358 * nat/windows-nat.c (current_windows_thread): Remove.
7359 * nat/windows-nat.h (current_windows_thread): Remove.
7360 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7361 Adjust.
7362 (display_selectors): Adjust to fetch the current
7363 windows_thread_info based on inferior_ptid.
7364 (fake_create_process): No longer write to current_windows_thread.
7365 (windows_nat_target::get_windows_debug_event):
7366 Don't set inferior_ptid or current_windows_thread.
7367 (windows_nat_target::wait): Adjust to not rely on
7368 current_windows_thread.
7369 (do_initial_windows_stuff): Now a method of windows_nat_target.
7370 Switch to the last_ptid thread.
7371 (windows_nat_target::attach): Adjust.
7372 (windows_nat_target::detach): Use switch_to_no_thread instead of
7373 writing to inferior_ptid directly.
7374 (windows_nat_target::create_inferior): Adjust.
7375
7376 2020-06-18 Pedro Alves <palves@redhat.com>
7377
7378 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7379
7380 2020-06-18 Pedro Alves <palves@redhat.com>
7381
7382 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7383 after creating it, instead of writing to inferior_ptid. Don't
7384 write to inferior_ptid.
7385
7386 2020-06-18 Pedro Alves <palves@redhat.com>
7387
7388 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7389
7390 2020-06-18 Pedro Alves <palves@redhat.com>
7391
7392 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7393 it, instead of writing to inferior_ptid.
7394
7395 2020-06-18 Pedro Alves <palves@redhat.com>
7396
7397 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7398 to inferior_ptid.
7399
7400 2020-06-18 Pedro Alves <palves@redhat.com>
7401
7402 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7403 instead of writing to inferior_ptid directly.
7404
7405 2020-06-18 Pedro Alves <palves@redhat.com>
7406
7407 * corelow.c (core_target::close): Use switch_to_no_thread instead
7408 of writing to inferior_ptid directly.
7409 (add_to_thread_list, core_target_open): Use switch_to_thread
7410 instead of writing to inferior_ptid directly.
7411
7412 2020-06-18 Pedro Alves <palves@redhat.com>
7413
7414 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7415 inferior_ptid.
7416 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7417 inferior_ptid.
7418 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7419 inferior_ptid directly.
7420 (darwin_nat_target::init_thread_list): Switch to thread, instead
7421 of writing to inferior_ptid.
7422 (darwin_nat_target::attach): Don't write to inferior_ptid.
7423 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7424
7425 2020-06-18 Pedro Alves <palves@redhat.com>
7426
7427 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7428 thread.
7429 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7430 Instead use switch_to_thread.
7431 (gnu_nat_target::detach): Use switch_to_no_thread
7432 instead of writing to inferior_ptid directly. Used passed-in
7433 inferior instead of looking up the inferior by pid.
7434
7435 2020-06-18 Pedro Alves <palves@redhat.com>
7436
7437 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7438 inferior_ptid.
7439
7440 2020-06-18 Pedro Alves <palves@redhat.com>
7441
7442 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7443 inferior_ptid.
7444 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7445 thread.
7446 (nto_procfs_target::detach): Avoid referencing
7447 inferior_ptid. Use switch_to_no_thread instead of writing to
7448 inferior_ptid directly.
7449 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7450 instead of writing to inferior_ptid directly.
7451 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7452 to thread.
7453
7454 2020-06-18 Pedro Alves <palves@redhat.com>
7455
7456 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7457 after creating it, instead of writing to inferior_ptid.
7458 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7459 to inferior_ptid directly.
7460 (gdbsim_target::wait): Don't write to inferior_ptid.
7461
7462 2020-06-18 Pedro Alves <palves@redhat.com>
7463
7464 * remote.c (remote_target::remote_notice_new_inferior): Use
7465 switch_to_thread instead of writing to inferior_ptid directly.
7466 (remote_target::add_current_inferior_and_thread): Use
7467 switch_to_no_thread instead of writing to inferior_ptid directly.
7468 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7469 and switch_to_thread instead of using set_current_inferior or
7470 writing to inferior_ptid directly.
7471
7472 2020-06-18 Pedro Alves <palves@redhat.com>
7473
7474 * tracectf.c (ctf_target_open): Switch to added thread instead of
7475 writing to inferior_ptid directly.
7476 (ctf_target::close): Use switch_to_no_thread instead of writing to
7477 inferior_ptid directly.
7478
7479 2020-06-18 Pedro Alves <palves@redhat.com>
7480
7481 * tracefile-tfile.c (tfile_target_open): Don't write to
7482 inferior_ptid directly, instead switch to added thread.
7483 (tfile_target::close): Use switch_to_no_thread instead of writing
7484 to inferior_ptid directly.
7485
7486 2020-06-18 Pedro Alves <palves@redhat.com>
7487
7488 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7489 (procfs_target::detach): Use switch_to_no_thread
7490 instead of writing to inferior_ptid directly.
7491 (do_attach): Change return type to void. Switch to the added
7492 thread.
7493 (procfs_target::create_inferior): Switch to the added thread.
7494 (procfs_do_thread_registers): Don't write to inferior_ptid.
7495
7496 2020-06-18 Pedro Alves <palves@redhat.com>
7497
7498 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7499 of writing to inferior_ptid.
7500 (scoped_restore_exited_inferior): Delete.
7501 (handle_vfork_child_exec_or_exit): Simplify using
7502 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7503 instead of writing to inferior_ptid.
7504 (THREAD_STOPPED_BY): Delete.
7505 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7506 (thread_stopped_by_hw_breakpoint): Delete.
7507 (save_waitstatus): Use
7508 scoped_restore_current_thread+switch_to_thread, and call
7509 target_stopped_by_watchpoint instead of
7510 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7511 instead of thread_stopped_by_sw_breakpoint, and
7512 target_stopped_by_hw_breakpoint instead of
7513 thread_stopped_by_hw_breakpoint.
7514 (handle_inferior_event)
7515 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7516 inferior_ptid directly, nor
7517 set_current_inferior/set_current_program_space. Use
7518 switch_to_thread / switch_to_inferior_no_thread instead.
7519
7520 2020-06-18 Pedro Alves <palves@redhat.com>
7521
7522 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7523 instead of writing to inferior_ptid.
7524
7525 2020-06-18 Pedro Alves <palves@redhat.com>
7526
7527 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7528 added thread.
7529 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7530 to the added thread.
7531 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7532 instead of writing to inferior_ptid.
7533
7534 2020-06-18 Pedro Alves <palves@redhat.com>
7535
7536 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7537 (register_to_value_test): Mock a program_space too. Heap-allocate
7538 the address space. Don't write to inferior_ptid. Use
7539 switch_to_thread instead.
7540
7541 2020-06-18 Pedro Alves <palves@redhat.com>
7542
7543 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7544 Delete.
7545 (find_signalled_thread()): New, factored out from
7546 linux_make_corefile_notes and adjusted to handle exited threads.
7547 (linux_make_corefile_notes): Adjust to use the new
7548 find_signalled_thread.
7549
7550 2020-06-18 Pedro Alves <palves@redhat.com>
7551
7552 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7553 of saving/restoring inferior_ptid.
7554
7555 2020-06-17 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7558 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7559 declare.
7560 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7561
7562 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7563
7564 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7565 of partial symtabs.
7566
7567 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * regformats/reg-arm.dat: Remove.
7570 * regformats/reg-bfin.dat: Remove.
7571 * regformats/reg-cris.dat: Remove.
7572 * regformats/reg-crisv32.dat: Remove.
7573 * regformats/reg-m32r.dat: Remove.
7574 * regformats/reg-tilegx.dat: Remove.
7575 * regformats/reg-tilegx32.dat: Remove.
7576
7577 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7578
7579 * features/Makefile (WHICH): Remove arm files.
7580 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7581 * regformats/arm/arm-with-neon.dat: Remove.
7582 * regformats/arm/arm-with-vfpv2.dat: Remove.
7583 * regformats/arm/arm-with-vfpv3.dat: Remove.
7584
7585 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7586
7587 * features/Makefile (XMLTOC): Remove rx.xml.
7588
7589 2020-06-17 Pedro Alves <palves@redhat.com>
7590
7591 * gdbthread.h (thread_control_state) <trap_expected> Update
7592 comments.
7593
7594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7597 ada_language::lookup_symbol_nonlocal.
7598 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7599 (ada_language::lookup_symbol_nonlocal): New member function,
7600 implementation from ada_lookup_symbol_nonlocal.
7601 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7602 initializer.
7603 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7604 initializer.
7605 (cplus_language::lookup_symbol_nonlocal): New member function.
7606 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7607 (minimal_language_data) Likewise.
7608 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7609 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7610 initializer.
7611 (d_language::lookup_symbol_nonlocal): New member function.
7612 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7613 initializer.
7614 (f_language::lookup_symbol_nonlocal): New member function.
7615 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7616 initializer.
7617 * language.c (unknown_language_data): Likewise.
7618 (auto_language_data): Likewise.
7619 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7620 field.
7621 (language_defn::lookup_symbol_nonlocal): New member function.
7622 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7623 initializer.
7624 * objc-lang.c (objc_language_data): Likewise.
7625 * opencl-lang.c (opencl_language_data): Likewise.
7626 * p-lang.c (pascal_language_data): Likewise.
7627 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7628 rust_language::lookup_symbol_nonlocal.
7629 (rust_language_data): Delete la_lookup_symbol_nonlocal
7630 initializer.
7631 (rust_language::lookup_symbol_nonlocal): New member function,
7632 implementation from rust_lookup_symbol_nonlocal.
7633 * symtab.c (lookup_symbol_aux): Update call to
7634 lookup_symbol_nonlocal.
7635 (basic_lookup_symbol_nonlocal): Rename to...
7636 (language_defn::lookup_symbol_nonlocal): ...this, and update
7637 header comment. Remove language_defn parameter, and replace with
7638 uses of `this'.
7639 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7640
7641 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7644 initializer.
7645 (ada_language::value_print_inner): New member function.
7646 * c-lang.c (c_language_data): Delete la_value_print_inner
7647 initializer.
7648 (cplus_language_data): Likewise.
7649 (asm_language_data): Likewise.
7650 (minimal_language_data): Likewise.
7651 * d-lang.c (d_language_data): Likewise.
7652 (d_language::value_print_inner): New member function.
7653 * f-lang.c (f_language_data): Delete la_value_print_inner
7654 initializer.
7655 (f_language::value_print_inner): New member function.
7656 * f-lang.h (f_value_print_innner): Rename to...
7657 (f_value_print_inner): ...this (note spelling of 'inner').
7658 * f-valprint.c (f_value_print_innner): Rename to...
7659 (f_value_print_inner): ...this (note spelling of 'inner').
7660 * go-lang.c (go_language_data): Delete la_value_print_inner
7661 initializer.
7662 (go_language::value_print_inner): New member function.
7663 * language.c (language_defn::value_print_inner): Define new member
7664 function.
7665 (unk_lang_value_print_inner): Delete.
7666 (unknown_language_data): Delete la_value_print_inner initializer.
7667 (unknown_language::value_print_inner): New member function.
7668 (auto_language_data): Delete la_value_print_inner initializer.
7669 (auto_language::value_print_inner): New member function.
7670 * language.h (language_data): Delete la_value_print_inner field.
7671 (language_defn::value_print_inner): Delcare new member function.
7672 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7673 initializer.
7674 (m2_language::value_print_inner): New member function.
7675 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7676 initializer.
7677 * opencl-lang.c (opencl_language_data): Likewise.
7678 * p-lang.c (pascal_language_data): Likewise.
7679 (pascal_language::value_print_inner): New member function.
7680 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7681 initializer.
7682 (rust_language::value_print_inner): New member function.
7683 * valprint.c (do_val_print): Update call to value_print_inner.
7684
7685 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7686
7687 * ada-lang.c (ada_language_data): Delete la_value_print
7688 initializer.
7689 (ada_language::value_print): New member function.
7690 * c-lang.c (c_language_data): Delete la_value_print initializer.
7691 (cplus_language_data): Likewise.
7692 (asm_language_data): Likewise.
7693 (minimal_language_data): Likewise.
7694 * d-lang.c (d_language_data): Likewise.
7695 * f-lang.c (f_language_data): Likewise.
7696 * go-lang.c (go_language_data): Likewise.
7697 * language.c (unk_lang_value_print): Delete.
7698 (language_defn::value_print): Define new member function.
7699 (unknown_language_data): Delete la_value_print initializer.
7700 (unknown_language::value_print): New member function.
7701 (auto_language_data): Delete la_value_print initializer.
7702 (auto_language::value_print): New member function.
7703 * language.h (language_data): Delete la_value_print field.
7704 (language_defn::value_print): Declare new member function.
7705 (LA_VALUE_PRINT): Update call to value_print.
7706 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7707 * objc-lang.c (objc_language_data): Likewise.
7708 * opencl-lang.c (opencl_language_data): Likewise.
7709 * p-lang.c (pascal_language_data): Likewise.
7710 (pascal_language::value_print): New member function.
7711 * rust-lang.c (rust_language_data): Delete la_value_print
7712 initializer.
7713
7714 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7715
7716 * ada-lang.c (ada_watch_location_expression): Rename to
7717 ada_language::watch_location_expression.
7718 (ada_language_data): Delete la_watch_location_expression
7719 initializer.
7720 (ada_language::watch_location_expression): New member function,
7721 implementation from ada_watch_location_expression.
7722 * breakpoint.c (watch_command_1): Update call to
7723 watch_location_expression.
7724 * c-lang.c (c_watch_location_expression): Rename to
7725 language_defn::watch_location_expression.
7726 (c_language_data): Delete la_watch_location_expression
7727 initializer.
7728 (cplus_language_data): Likewise.
7729 (asm_language_data): Likewise.
7730 (minimal_language_data): Likewise.
7731 * c-lang.h (c_watch_location_expression): Delete declaration.
7732 * d-lang.c (d_language_data): Delete la_watch_location_expression
7733 initializer.
7734 * f-lang.c (f_language_data): Likewise.
7735 * go-lang.c (go_language_data): Likewise.
7736 * language.c (language_defn::watch_location_expression): Member
7737 function implementation from c_watch_location_expression.
7738 (unknown_language_data): Delete la_watch_location_expression
7739 initializer.
7740 (auto_language_data): Likewise.
7741 * language.h (language_data): Delete la_watch_location_expression
7742 field.
7743 (language_defn::watch_location_expression): Declare new member
7744 function.
7745 * m2-lang.c (m2_language_data): Delete
7746 la_watch_location_expression initializer.
7747 * objc-lang.c (objc_language_data): Likewise.
7748 * opencl-lang.c (opencl_language_data): Likewise.
7749 * p-lang.c (pascal_language_data): Likewise.
7750 * rust-lang.c (rust_watch_location_expression): Rename to
7751 rust_language::watch_location_expression.
7752 (rust_language_data): Delete la_watch_location_expression
7753 initializer.
7754 (rust_language::watch_location_expression): New member function,
7755 implementation from rust_watch_location_expression.
7756
7757 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7758
7759 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7760 ada_language::collect_symbol_completion_matches.
7761 (ada_language_data): Delete la_collect_symbol_completion_matches
7762 initializer.
7763 (ada_language::collect_symbol_completion_matches): New member
7764 function, implementation from
7765 ada_collect_symbol_completion_matches.
7766 * c-lang.c (c_language_data): Delete
7767 la_collect_symbol_completion_matches initializer.
7768 (cplus_language_data): Likewise.
7769 (asm_language_data): Likewise.
7770 (minimal_language_data): Likewise.
7771 * d-lang.c (d_language_data): Likewise.
7772 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7773 f_language::collect_symbol_completion_matches.
7774 (f_language_data): Delete la_collect_symbol_completion_matches
7775 initializer.
7776 (f_language::collect_symbol_completion_matches) New member
7777 function, implementation from f_collect_symbol_completion_matches.
7778 * go-lang.c (go_language_data): Delete
7779 la_collect_symbol_completion_matches initializer.
7780 * language.c (unknown_language_data): Likewise.
7781 (auto_language_data): Likewise.
7782 * language.h (language_data): Delete
7783 la_collect_symbol_completion_matches field.
7784 (language_defn::collect_symbol_completion_matches): New member
7785 function.
7786 * m2-lang.c (m2_language_data): Delete
7787 la_collect_symbol_completion_matches initializer.
7788 * objc-lang.c (objc_language_data): Likewise.
7789 * opencl-lang.c (opencl_language_data): Likewise.
7790 * p-lang.c (pascal_language_data): Likewise.
7791 * rust-lang.c (rust_language_data): Likewise.
7792 * symtab.c (default_collect_symbol_completion_matches): Delete.
7793 (collect_symbol_completion_matches): Update call to
7794 collect_symbol_completion_matches.
7795 (collect_symbol_completion_matches_type): Likewise.
7796 * symtab.h (default_collect_symbol_completion_matches): Delete
7797 declaration.
7798
7799 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7800
7801 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7802 (ada_language_data): Delete la_word_break_characters initializer.
7803 (ada_language::word_break_characters): New member function.
7804 * c-lang.c (c_language_data): Delete la_word_break_characters
7805 initializer.
7806 (cplus_language_data): Likewise.
7807 (asm_language_data): Likewise.
7808 (minimal_language_data): Likewise.
7809 * completer.c: Update global comment.
7810 (advance_to_expression_complete_word_point): Update call to
7811 word_break_characters.
7812 (complete_files_symbols): Likewise.
7813 (complete_line_internal_1): Likewise.
7814 (default_completer_handle_brkchars): Likewise.
7815 (skip_quoted_chars): Likewise.
7816 * d-lang.c (d_language_data): Delete la_word_break_characters
7817 initializer.
7818 * f-lang.c (f_word_break_characters): Delete.
7819 (f_language_data): Delete la_word_break_characters initializer.
7820 (f_language::word_break_characters): New member function.
7821 * go-lang.c (go_language_data): Delete la_word_break_characters
7822 initializer.
7823 * language.c (unknown_language_data): Likewise.
7824 (auto_language_data): Likewise.
7825 * language.h (default_word_break_characters): Move declaration to
7826 earlier in the file.
7827 (language_data): Delete la_word_break_characters field.
7828 (language_defn::word_break_characters): New member function.
7829 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7830 initializer.
7831 * objc-lang.c (objc_language_data): Likewise.
7832 * opencl-lang.c (opencl_language_data): Likewise.
7833 * p-lang.c (pascal_language_data): Likewise.
7834 * rust-lang.c (rust_language_data): Likewise.
7835
7836 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7837
7838 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7839 (ada_language_data): Delete la_get_symbol_name_matcher
7840 initializer.
7841 (language_defn::get_symbol_name_matcher_inner): New member
7842 function.
7843 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7844 initializer.
7845 (cplus_language_data): Likewise.
7846 (cplus_language::get_symbol_name_matcher_inner): New member
7847 function.
7848 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7849 (minimal_language_data): Likewise.
7850 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7851 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7852 initializer.
7853 * dictionary.c (iter_match_first_hashed): Update call to
7854 get_symbol_name_matcher.
7855 (iter_match_next_hashed): Likewise.
7856 (iter_match_next_linear): Likewise.
7857 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7858 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7859 initializer.
7860 (f_language::get_symbol_name_matcher_inner): New member function.
7861 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7862 initializer.
7863 * language.c (default_symbol_name_matcher): Update header comment,
7864 make static.
7865 (language_defn::get_symbol_name_matcher): New definition.
7866 (language_defn::get_symbol_name_matcher_inner): Likewise.
7867 (get_symbol_name_matcher): Delete.
7868 (unknown_language_data): Delete la_get_symbol_name_matcher
7869 initializer.
7870 (auto_language_data): Likewise.
7871 * language.h (language_data): Delete la_get_symbol_name_matcher
7872 field.
7873 (language_defn::get_symbol_name_matcher): New member function.
7874 (language_defn::get_symbol_name_matcher_inner): Likewise.
7875 (default_symbol_name_matcher): Delete declaration.
7876 * linespec.c (find_methods): Update call to
7877 get_symbol_name_matcher.
7878 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7879 initializer.
7880 * minsyms.c (lookup_minimal_symbol): Update call to
7881 get_symbol_name_matcher.
7882 (iterate_over_minimal_symbols): Likewise.
7883 * objc-lang.c (objc_language_data): Delete
7884 la_get_symbol_name_matcher initializer.
7885 * opencl-lang.c (opencl_language_data): Likewise.
7886 * p-lang.c (pascal_language_data): Likewise.
7887 * psymtab.c (psymbol_name_matches): Update call to
7888 get_symbol_name_matcher.
7889 * rust-lang.c (rust_language_data): Delete
7890 la_get_symbol_name_matcher initializer.
7891 * symtab.c (symbol_matches_search_name): Update call to
7892 get_symbol_name_matcher.
7893 (compare_symbol_name): Likewise.
7894
7895 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7896
7897 * ada-lang.c (ada_language_data): Delete la_compute_program
7898 initializer.
7899 * c-lang.c (c_language_data): Likewise.
7900 (c_language::compute_program): New member function.
7901 (cplus_language_data): Delete la_compute_program initializer.
7902 (cplus_language::compute_program): New member function.
7903 (asm_language_data): Delete la_compute_program initializer.
7904 (minimal_language_data): Likewise.
7905 * c-lang.h (c_compute_program): Update comment.
7906 (cplus_compute_program): Likewise.
7907 * compile/compile-c-support.c (c_compute_program): Likewise.
7908 (cplus_compute_program): Likewise.
7909 * compile/compile.c (compile_to_object): Update call to
7910 la_compute_program.
7911 * d-lang.c (d_language_data): Delete la_compute_program
7912 initializer.
7913 * f-lang.c (f_language_data): Likewise.
7914 * go-lang.c (go_language_data): Likewise.
7915 * language.c (unknown_language_data): Likewise.
7916 (auto_language_data): Likewise.
7917 * language.h (language_data): Delete la_compute_program field.
7918 (language_defn::compute_program): New member function.
7919 * m2-lang.c (m2_language_data): Delete la_compute_program
7920 initializer.
7921 * objc-lang.c (objc_language_data): Likewise.
7922 * opencl-lang.c (opencl_language_data): Likewise.
7923 * p-lang.c (pascal_language_data): Likewise.
7924 * rust-lang.c (rust_language_data): Likewise.
7925
7926 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * ada-lang.c (ada_language_data) Delete
7929 la_class_name_from_physname initializer.
7930 * c-lang.c (c_language_data): Likewise.
7931 (cplus_language_data): Likewise.
7932 (cplus_language::class_name_from_physname): New member function.
7933 (asm_language_data): Delete la_class_name_from_physname
7934 initializer.
7935 (minimal_language_data): Likewise.
7936 * d-lang.c (d_language_data): Likewise.
7937 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7938 method on language_defn class.
7939 (guess_full_die_structure_name): Likewise.
7940 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7941 initializer.
7942 * go-lang.c (go_language_data): Likewise.
7943 * language.c (language_class_name_from_physname): Delete.
7944 (unk_lang_class_name): Delete.
7945 (unknown_language_data): Delete la_class_name_from_physname
7946 initializer.
7947 (auto_language_data): Likewise.
7948 * language.h (language_data): Delete la_class_name_from_physname
7949 field.
7950 (language_defn::class_name_from_physname): New function.
7951 (language_class_name_from_physname): Delete declaration.
7952 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7953 initializer.
7954 * objc-lang.c (objc_language_data): Likewise.
7955 * opencl-lang.c (opencl_language_data): Likewise.
7956 * p-lang.c (pascal_language_data): Likewise.
7957 * rust-lang.c (rust_language_data): Likewise.
7958
7959 2020-06-16 Tom Tromey <tom@tromey.com>
7960
7961 * tui/tui-data.h (STATUS_NAME): New macro.
7962 * tui/tui-layout.c (tui_remove_some_windows)
7963 (initialize_known_windows, tui_register_window)
7964 (tui_layout_split::remove_windows, initialize_layouts)
7965 (tui_new_layout_command): Don't use hard-coded window names.
7966
7967 2020-06-16 Tom Tromey <tom@tromey.com>
7968
7969 PR tui/25348:
7970 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7971 tui_initialize_readline. Only run once. Call rl_initialize.
7972 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7973 tui_initialize_readline.
7974 * tui/tui-io.c (tui_setup_io): Call
7975 tui_ensure_readline_initialized.
7976 * tui/tui-interp.c (tui_interp::init): Update.
7977
7978 2020-06-16 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7981 Also preserve the status window.
7982
7983 2020-06-16 Tom Tromey <tom@tromey.com>
7984
7985 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7986 where m_window==nullptr.
7987
7988 2020-06-15 Tom Tromey <tromey@adacore.com>
7989
7990 * windows-nat.c (windows_nat::handle_output_debug_string):
7991 Update.
7992 (windows_nat::handle_ms_vc_exception): Update.
7993 * target.h (target_read_string): Change API.
7994 * target.c (target_read_string): Change API.
7995 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7996 Update.
7997 * solib-frv.c (frv_current_sos): Update.
7998 * solib-dsbt.c (dsbt_current_sos): Update.
7999 * solib-darwin.c (darwin_current_sos): Update.
8000 * linux-thread-db.c (inferior_has_bug): Update.
8001 * expprint.c (print_subexp_standard): Update.
8002 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8003 (ada_exception_message_1): Update.
8004
8005 2020-06-15 Tom Tromey <tromey@adacore.com>
8006
8007 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8008
8009 2020-06-15 Tom Tromey <tromey@adacore.com>
8010
8011 * valprint.c (read_string): Update comment.
8012 * target.c (MIN): Remove.
8013 (target_read_string): Rewrite.
8014
8015 2020-06-15 Tom Tromey <tromey@adacore.com>
8016
8017 * corefile.c (read_memory_string): Remove.
8018 * ada-valprint.c (ada_value_print_ptr): Update.
8019 * ada-lang.h (ada_tag_name): Change return type.
8020 * ada-lang.c (type_from_tag): Update.
8021 (ada_tag_name_from_tsd): Change return type. Use
8022 target_read_string.
8023 (ada_tag_name): Likewise.
8024 * gdbcore.h (read_memory_string): Don't declare.
8025
8026 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8027
8028 * symtab.c (rbreak_command): Ignore Windows drive colon.
8029
8030 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * NEWS: Mention removed GDBserver host support.
8033
8034 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8035
8036 * features/riscv/rebuild-csr-xml.sh: Updated.
8037
8038 2020-06-11 Tom Tromey <tom@tromey.com>
8039
8040 PR gdb/18318:
8041 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8042
8043 2020-06-09 Jonny Grant <jg@jguk.org>
8044 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8045
8046 * main.c (captured_main_1): Don't print new line after help.
8047 (print_gdb_help): add mailing list and IRC channel information
8048 to --help. Add new lines between items in the footer. Remove
8049 quotes around bug url.
8050
8051 2020-06-11 Keith Seitz <keiths@redhat.com>
8052
8053 PR gdb/21356
8054 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8055 Resolve typedefs for type length calculations.
8056
8057 2020-06-10 Tom de Vries <tdevries@suse.de>
8058
8059 PR ada/24713
8060 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8061 (write_psymbols): Enable .gdb_index for ada.
8062 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8063 ada.
8064
8065 2020-06-10 Tom de Vries <tdevries@suse.de>
8066
8067 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8068 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8069 namei" instead of "const char *name" argument.
8070 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8071 dw2_symtab_iter_init.
8072
8073 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8076 to use type::field and field::type instead.
8077
8078 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8079
8080 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8081 to use field::type instead.
8082
8083 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8084
8085 * gdbtypes.h (struct field) <type, set_type>: New methods.
8086 Rename `type` field to...
8087 <m_type>: ... this. Change references throughout to use type or
8088 set_type methods.
8089 (FIELD_TYPE): Use field::type. Change call sites that modify
8090 the field's type to use field::set_type instead.
8091
8092 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8093
8094 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8095 to use type::index_type instead.
8096
8097 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8098
8099 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8100 methods.
8101 (TYPE_INDEX_TYPE): Use type::index_type.
8102 * gdbtypes.c (create_array_type_with_stride): Likewise.
8103
8104 2020-06-07 Tom Tromey <tom@tromey.com>
8105
8106 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8107 parameter.
8108 (generic_value_print): Update.
8109
8110 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8111
8112 Revert commit 982a38f60b0.
8113 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8114
8115 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8116
8117 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8118 avoid use after free.
8119
8120 2020-06-05 Tom de Vries <tdevries@suse.de>
8121
8122 * NEWS: Fix typos.
8123
8124 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8125
8126 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8127 the per_bfd object.
8128 (dwarf2_read_debug_names): Likewise.
8129 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8130 object when re-using a per_bfd object with an index.
8131
8132 2020-06-03 Tom de Vries <tdevries@suse.de>
8133
8134 PR symtab/26046
8135 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8136 children for C++.
8137 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8138 DW_TAG_subprogram.
8139
8140 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * ada-lang.c (ada_language_data): Delete skip_trampoline
8143 initializer.
8144 * c-lang.c (c_language_data): Likewise.
8145 (cplus_language_data): Likewise.
8146 (cplus_language::skip_trampoline): New member function.
8147 (asm_language_data): Delete skip_trampoline initializer.
8148 (minimal_language_data): Likewise.
8149 * d-lang.c (d_language_data): Likewise.
8150 * f-lang.c (f_language_data): Likewise.
8151 * go-lang.c (go_language_data): Likewise.
8152 * language.c (unk_lang_trampoline): Delete function.
8153 (skip_language_trampoline): Update.
8154 (unknown_language_data): Delete skip_trampoline initializer.
8155 (auto_language_data): Likewise.
8156 * language.h (language_data): Delete skip_trampoline field.
8157 (language_defn::skip_trampoline): New function.
8158 * m2-lang.c (m2_language_data): Delete skip_trampoline
8159 initializer.
8160 * objc-lang.c (objc_skip_trampoline): Delete function, move
8161 implementation to objc_language::skip_trampoline.
8162 (objc_language_data): Delete skip_trampoline initializer.
8163 (objc_language::skip_trampoline): New member function with
8164 implementation from objc_skip_trampoline.
8165 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8166 initializer.
8167 * p-lang.c (pascal_language_data): Likewise.
8168 * rust-lang.c (rust_language_data): Likewise.
8169
8170 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8173 (ada_language::demangle): New member function.
8174 * c-lang.c (c_language_data): Delete la_demangle initializer.
8175 (cplus_language_data): Delete la_demangle initializer.
8176 (cplus_language::demangle): New member function.
8177 (asm_language_data): Delete la_demangle initializer.
8178 (minimal_language_data): Delete la_demangle initializer.
8179 * d-lang.c (d_language_data): Delete la_demangle initializer.
8180 (d_language::demangle): New member function.
8181 * f-lang.c (f_language_data): Delete la_demangle initializer.
8182 (f_language::demangle): New member function.
8183 * go-lang.c (go_language_data): Delete la_demangle initializer.
8184 (go_language::demangle): New member function.
8185 * language.c (language_demangle): Update.
8186 (unk_lang_demangle): Delete.
8187 (unknown_language_data): Delete la_demangle initializer.
8188 (unknown_language::demangle): New member function.
8189 (auto_language_data): Delete la_demangle initializer.
8190 (auto_language::demangle): New member function.
8191 * language.h (language_data): Delete la_demangle field.
8192 (language_defn::demangle): New function.
8193 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8194 * objc-lang.c (objc_language_data): Delete la_demangle
8195 initializer.
8196 (objc_language::demangle): New member function.
8197 * opencl-lang.c (opencl_language_data): Delete la_demangle
8198 initializer.
8199 * p-lang.c (pascal_language_data): Likewise.
8200 * rust-lang.c (rust_language_data): Likewise.
8201 (rust_language::demangle): New member function.
8202
8203 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8204
8205 * ada-lang.c (ada_language_data): Delete la_print_type
8206 initializer.
8207 (ada_language::print_type): New member function.
8208 * c-lang.c (c_language_data): Delete la_print_type initializer.
8209 (c_language::print_type): New member function.
8210 (cplus_language_data): Delete la_print_type initializer.
8211 (cplus_language::print_type): New member function.
8212 (asm_language_data): Delete la_print_type initializer.
8213 (asm_language::print_type): New member function.
8214 (minimal_language_data): Delete la_print_type initializer.
8215 (minimal_language::print_type): New member function.
8216 * d-lang.c (d_language_data): Delete la_print_type initializer.
8217 (d_language::print_type): New member function.
8218 * f-lang.c (f_language_data): Delete la_print_type initializer.
8219 (f_language::print_type): New member function.
8220 * go-lang.c (go_language_data): Delete la_print_type initializer.
8221 (go_language::print_type): New member function.
8222 * language.c (unk_lang_print_type): Delete.
8223 (unknown_language_data): Delete la_print_type initializer.
8224 (unknown_language::print_type): New member function.
8225 (auto_language_data): Delete la_print_type initializer.
8226 (auto_language::print_type): New member function.
8227 * language.h (language_data): Delete la_print_type field.
8228 (language_defn::print_type): New function.
8229 (LA_PRINT_TYPE): Update.
8230 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8231 (m2_language::print_type): New member function.
8232 * objc-lang.c (objc_language_data): Delete la_print_type
8233 initializer.
8234 (objc_language::print_type): New member function.
8235 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8236 to opencl_language::print_type.
8237 (opencl_language_data): Delete la_print_type initializer.
8238 (opencl_language::print_type): New member function, implementation
8239 from opencl_print_type.
8240 * p-lang.c (pascal_language_data): Delete la_print_type
8241 initializer.
8242 (pascal_language::print_type): New member function.
8243 * rust-lang.c (rust_print_type): Delete, implementation moved to
8244 rust_language::print_type.
8245 (rust_language_data): Delete la_print_type initializer.
8246 (rust_language::print_type): New member function, implementation
8247 from rust_print_type.
8248
8249 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8252 implementation moves to...
8253 (ada_language::sniff_from_mangled_name): ...here. Update return
8254 type.
8255 (ada_language_data): Delete la_sniff_from_mangled_name
8256 initializer.
8257 * c-lang.c (c_language_data): Likewise.
8258 (cplus_language_data): Likewise.
8259 (cplus_language::sniff_from_mangled_name): New member function,
8260 implementation taken from gdb_sniff_from_mangled_name.
8261 (asm_language_data): Delete la_sniff_from_mangled_name
8262 initializer.
8263 (minimal_language_data): Likewise.
8264 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8265 implementation moves to cplus_language::sniff_from_mangled_name.
8266 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8267 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8268 moves to...
8269 (d_language::sniff_from_mangled_name): ...here.
8270 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8271 * f-lang.c (f_language_data): Likewise.
8272 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8273 moves to...
8274 (go_language::sniff_from_mangled_name): ...here.
8275 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8276 * language.c (language_sniff_from_mangled_name): Delete.
8277 (unknown_language_data): Delete la_sniff_from_mangled_name
8278 initializer.
8279 (auto_language_data): Likewise.
8280 * language.h (language_data): Delete la_sniff_from_mangled_name
8281 field.
8282 (language_defn::sniff_from_mangled_name): New function.
8283 (language_sniff_from_mangled_name): Delete declaration.
8284 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8285 field.
8286 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8287 implementation moves to...
8288 (objc_language::sniff_from_mangled_name): ...here.
8289 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8290 * opencl-lang.c (opencl_language_data): Likewise.
8291 * p-lang.c (pascal_language_data): Likewise.
8292 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8293 implementation moves to...
8294 (rust_language::sniff_from_mangled_name): ...here.
8295 (rust_language_data): Delete la_sniff_from_mangled_name
8296 initializer.
8297 * symtab.c (symbol_find_demangled_name): Call
8298 sniff_from_mangled_name member function.
8299
8300 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8301
8302 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8303 initializer.
8304 * c-lang.c (c_language_data): Likewise.
8305 (cplus_language_data): Likewise.
8306 (cplus_language::search_name_hash): New member function.
8307 (asm_language_data): Delete la_search_name_hash initializer.
8308 (minimal_language_data): Likewise.
8309 * d-lang.c (d_language_data): Likewise.
8310 * dictionary.c (default_search_name_hash): Rename to...
8311 (language_defn::search_name_hash): ...this.
8312 * f-lang.c (f_language_data): Likewise.
8313 (f_language::search_name_hash): New member function.
8314 * go-lang.c (go_language_data): Delete la_search_name_hash
8315 initializer.
8316 * language.c (unknown_language_data): Likewise.
8317 (auto_language_data): Likewise.
8318 * language.h (struct language_data): Delete la_search_name_hash
8319 field.
8320 (language_defn::search_name_hash): Declare new member function.
8321 (default_search_name_hash): Delete declaration.
8322 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8323 initializer.
8324 * objc-lang.c (objc_language_data): Likewise.
8325 * opencl-lang.c (opencl_language_data): Likewise.
8326 * p-lang.c (pascal_language_data): Likewise.
8327 * rust-lang.c (rust_language_data): Likewise.
8328 * symtab.c (search_name_hash): Update call.
8329
8330 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8331
8332 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8333 initializer.
8334 * c-lang.c (class compile_instance): Declare.
8335 (c_language_data): Delete la_get_compile_instance initializer.
8336 (c_language::get_compile_instance): New member function.
8337 (cplus_language_data): Delete la_get_compile_instance initializer.
8338 (cplus_language::get_compile_instance): New member function.
8339 (asm_language_data): Delete la_get_compile_instance initializer.
8340 (minimal_language_data): Likewise.
8341 * c-lang.h (c_get_compile_context): Update comment.
8342 (cplus_get_compile_context): Update comment.
8343 * compile/compile.c (compile_to_object): Update calls, don't rely
8344 on function pointer being NULL.
8345 * d-lang.c (d_language_data): Delete la_get_compile_instance
8346 initializer.
8347 * f-lang.c (f_language_data): Likewise.
8348 * go-lang.c (go_language_data): Likewise.
8349 * language.c (unknown_language_data): Likewise.
8350 (auto_language_data): Likewise.
8351 * language.h (language_data): Delete la_get_compile_instance field.
8352 (language_defn::get_compile_instance): New member function.
8353 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8354 initializer.
8355 * objc-lang.c (objc_language_data): Likewise.
8356 * opencl-lang.c (opencl_language_data): Likewise.
8357 * p-lang.c (pascal_language_data): Likewise.
8358 * rust-lang.c (rust_language_data): Likewise.
8359
8360 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * ada-lang.c (ada_add_all_symbols): Update comment.
8363 (ada_iterate_over_symbols): Delete, move implementation to...
8364 (ada_language::iterate_over_symbols): ...here, a new member
8365 function, rewrite to use range based for loop.
8366 (ada_language_data): Delete la_iterate_over_symbols initializer.
8367 * c-lang.c (c_language_data): Likewise.
8368 (cplus_language_data): Likewise.
8369 (asm_language_data): Likewise.
8370 (minimal_language_data): Likewise.
8371 * d-lang.c (d_language_data): Likewise.
8372 * f-lang.c (f_language_data): Likewise.
8373 * go-lang.c (go_language_data): Likewise.
8374 * language.c (unknown_language_data): Likewise.
8375 (auto_language_data): Likewise.
8376 * language.h (language_data): Delete la_iterate_over_symbols field.
8377 (language_defn::iterate_over_symbols): New member function.
8378 (LA_ITERATE_OVER_SYMBOLS): Update.
8379 * linespec.c (iterate_over_all_matching_symtabs): Update.
8380 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8381 initializer.
8382 * objc-lang.c (objc_language_data): Likewise.
8383 * opencl-lang.c (opencl_language_data): Likewise.
8384 * p-lang.c (pascal_language_data): Likewise.
8385 * rust-lang.c (rust_language_data): Likewise.
8386
8387 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8388
8389 * ada-lang.c (ada_language_data): Delete
8390 la_lookup_transparent_type initializer.
8391 * c-lang.c (c_language_data): Likewise.
8392 (cplus_language_data): Likewise.
8393 (cplus_language::lookup_transparent_type): New member function.
8394 (asm_language_data): Delete la_lookup_transparent_type
8395 initializer.
8396 (minimal_language_data): Likewise.
8397 * d-lang.c (d_language_data): Likewise.
8398 * f-lang.c (f_language_data): Likewise.
8399 * go-lang.c (go_language_data): Likewise.
8400 * language.c (unknown_language_data): Likewise.
8401 (auto_language_data): Likewise.
8402 * language.h (struct language_data): Delete
8403 la_lookup_transparent_type field.
8404 (language_defn::lookup_transparent_type): New member function.
8405 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8406 initializer.
8407 * objc-lang.c (objc_language_data): Likewise.
8408 * opencl-lang.c (opencl_language_data): Likewise.
8409 * p-lang.c (pascal_language_data): Likewise.
8410 * rust-lang.c (rust_language_data): Likewise.
8411 * symtab.c (symbol_matches_domain): Update call.
8412
8413 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * ada-lang.c (ada_language_arch_info): Delete function, move
8416 implementation to...
8417 (ada_language::language_arch_info): ...here, a new member
8418 function.
8419 (ada_language_data): Delete la_language_arch_info.
8420 * c-lang.c (c_language_data): Likewise.
8421 (c_language::language_arch_info): New member function.
8422 (cplus_language_arch_info): Delete function, move
8423 implementation to...
8424 (cplus_language::language_arch_info): ...here, a new member
8425 function.
8426 (cplus_language_data): Delete la_language_arch_info.
8427 (asm_language_data): Likewise.
8428 (asm_language::language_arch_info): New member function.
8429 (minimal_language_data): Delete la_language_arch_info.
8430 (minimal_language::language_arch_info): New member function.
8431 * d-lang.c (d_language_arch_info): Delete function, move
8432 implementation to...
8433 (d_language::language_arch_info): ...here, a new member
8434 function.
8435 (d_language_data): Delete la_language_arch_info.
8436 * f-lang.c (f_language_arch_info): Delete function, move
8437 implementation to...
8438 (f_language::language_arch_info): ...here, a new member
8439 function.
8440 (f_language_data): Delete la_language_arch_info.
8441 * go-lang.c (go_language_arch_info): Delete function, move
8442 implementation to...
8443 (go_language::language_arch_info): ...here, a new member
8444 function.
8445 (go_language_data): Delete la_language_arch_info.
8446 * language.c (unknown_language_data): Likewise.
8447 (unknown_language::language_arch_info): New member function.
8448 (auto_language_data): Delete la_language_arch_info.
8449 (auto_language::language_arch_info): New member function.
8450 (language_gdbarch_post_init): Update call to
8451 la_language_arch_info.
8452 * language.h (language_data): Delete la_language_arch_info
8453 function pointer.
8454 (language_defn::language_arch_info): New function.
8455 * m2-lang.c (m2_language_arch_info): Delete function, move
8456 implementation to...
8457 (m2_language::language_arch_info): ...here, a new member
8458 function.
8459 (m2_language_data): Delete la_language_arch_info.
8460 * objc-lang.c (objc_language_arch_info): Delete function, move
8461 implementation to...
8462 (objc_language::language_arch_info): ...here, a new member
8463 function.
8464 (objc_language_data): Delete la_language_arch_info.
8465 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8466 implementation to...
8467 (opencl_language::language_arch_info): ...here, a new member
8468 function.
8469 (opencl_language_data): Delete la_language_arch_info.
8470 * p-lang.c (pascal_language_arch_info): Delete function, move
8471 implementation to...
8472 (pascal_language::language_arch_info): ...here, a new member
8473 function.
8474 (pascal_language_data): Delete la_language_arch_info.
8475 * rust-lang.c (rust_language_arch_info): Delete function, move
8476 implementation to...
8477 (rust_language::language_arch_info): ...here, a new member
8478 function.
8479 (rust_language_data): Delete la_language_arch_info.
8480
8481 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8482
8483 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8484 initializer.
8485 * c-lang.c (c_language_data): Likewise.
8486 (cplus_language_data): Likewise.
8487 (cplus_language::pass_by_reference_info): New method.
8488 (asm_language_data): Delete la_pass_by_reference initializer.
8489 (minimal_language_data): Likewise.
8490 * cp-abi.c (cp_pass_by_reference): Remove use of
8491 default_pass_by_reference.
8492 * d-lang.c (d_language_data): Likewise.
8493 * f-lang.c (f_language_data): Likewise.
8494 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8495 default_pass_by_reference.
8496 * go-lang.c (go_language_data): Likewise.
8497 * language.c (language_pass_by_reference): Update.
8498 (default_pass_by_reference): Delete.
8499 (unknown_language_data): Delete la_pass_by_reference
8500 initializer.
8501 (auto_language_data): Likewise.
8502 * language.h (struct language_data): Delete la_pass_by_reference
8503 field.
8504 (language_defn::pass_by_reference_info): New member function.
8505 (default_pass_by_reference): Delete declaration.
8506 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8507 initializer.
8508 * objc-lang.c (objc_language_data): Likewise.
8509 * opencl-lang.c (opencl_language_data): Likewise.
8510 * p-lang.c (pascal_language_data): Likewise.
8511 * rust-lang.c (rust_language_data): Likewise.
8512
8513 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8514
8515 * ada-lang.c (ada_read_var_value): Delete function, move
8516 implementation to...
8517 (ada_language::read_var_value): ...here.
8518 (ada_language_data): Delete la_read_var_value initializer.
8519 * c-lang.c (c_language_data): Likewise.
8520 (cplus_language_data): Likewise.
8521 (minimal_language_data): Likewise.
8522 * d-lang.c (d_language_data): Likewise.
8523 * f-lang.c (f_language_data): Likewise.
8524 * findvar.c (default_read_var_value): Rename to...
8525 (language_defn::read_var_value): ...this.
8526 * findvar.c (read_var_value): Update header comment, and change to
8527 call member function instead of function pointer.
8528 * go-lang.c (go_language_data): Likewise.
8529 * language.c (unknown_language_data): Delete la_read_var_value
8530 initializer.
8531 (auto_language_data): Likewise.
8532 * language.h (struct language_data): Delete la_read_var_value
8533 field.
8534 (language_defn::read_var_value): New member function.
8535 (default_read_var_value): Delete declaration.
8536 * m2-lang.c (m2_language_data): Delete la_read_var_value
8537 initializer.
8538 * objc-lang.c (objc_language_data): Likewise.
8539 * opencl-lang.c (opencl_language_data): Likewise.
8540 * p-lang.c (pascal_language_data): Likewise.
8541 * rust-lang.c (rust_language_data): Likewise.
8542 * value.h (default_read_var_value): Delete declaration.
8543
8544 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * ada-lang.c (ada_print_array_index): Delete function, move
8547 implementation to...
8548 (ada_language::print_array_index): ...here.
8549 (ada_language_data): Delete la_print_array_index initializer.
8550 * c-lang.c (c_language_data): Likewise.
8551 (cplus_language_data): Likewise.
8552 (minimal_language_data): Likewise.
8553 * d-lang.c (d_language_data): Likewise.
8554 * f-lang.c (f_language_data): Likewise.
8555 * go-lang.c (go_language_data): Likewise.
8556 * language.c (default_print_array_index): Delete function, move
8557 implementation to...
8558 (language_defn::print_array_index): ...here.
8559 (unknown_language_data): Delete la_print_array_index initializer.
8560 (auto_language_data): Likewise.
8561 * language.h (struct language_data): Delete la_print_array_index
8562 field.
8563 (language_defn::print_array_index): New member function.
8564 (LA_PRINT_ARRAY_INDEX): Update.
8565 (default_print_array_index): Delete declaration.
8566 * m2-lang.c (m2_language_data): Delete la_print_array_index
8567 initializer.
8568 * objc-lang.c (objc_language_data): Likewise.
8569 * opencl-lang.c (opencl_language_data): Likewise.
8570 * p-lang.c (pascal_language_data): Likewise.
8571 * rust-lang.c (rust_language_data): Likewise.
8572
8573 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * gdb/ada-lang.c (ada_language_defn): Convert to...
8576 (ada_language_data): ...this.
8577 (class ada_language): New class.
8578 (ada_language_defn): New static global.
8579 * gdb/c-lang.c (c_language_defn): Convert to...
8580 (c_language_data): ...this.
8581 (class c_language): New class.
8582 (c_language_defn): New static global.
8583 (cplus_language_defn): Convert to...
8584 (cplus_language_data): ...this.
8585 (class cplus_language): New class.
8586 (cplus_language_defn): New static global.
8587 (asm_language_defn): Convert to...
8588 (asm_language_data): ...this.
8589 (class asm_language): New class.
8590 (asm_language_defn): New static global.
8591 (minimal_language_defn): Convert to...
8592 (minimal_language_data): ...this.
8593 (class minimal_language): New class.
8594 (minimal_language_defn): New static global.
8595 * gdb/d-lang.c (d_language_defn): Convert to...
8596 (d_language_data): ...this.
8597 (class d_language): New class.
8598 (d_language_defn): New static global.
8599 * gdb/f-lang.c (f_language_defn): Convert to...
8600 (f_language_data): ...this.
8601 (class f_language): New class.
8602 (f_language_defn): New static global.
8603 * gdb/go-lang.c (go_language_defn): Convert to...
8604 (go_language_data): ...this.
8605 (class go_language): New class.
8606 (go_language_defn): New static global.
8607 * gdb/language.c (unknown_language_defn): Remove declaration.
8608 (current_language): Initialize to nullptr, real initialization is
8609 moved to _initialize_language.
8610 (languages): Delete global.
8611 (language_defn::languages): Define.
8612 (set_language_command): Use language_defn::languages.
8613 (set_language): Likewise.
8614 (range_error): Likewise.
8615 (language_enum): Likewise.
8616 (language_def): Likewise.
8617 (add_set_language_command): Use language_def::languages for the
8618 language list, and language_def to lookup language pointers.
8619 (skip_language_trampoline): Use language_defn::languages.
8620 (unknown_language_defn): Convert to...
8621 (unknown_language_data): ...this.
8622 (class unknown_language): New class.
8623 (unknown_language_defn): New static global.
8624 (auto_language_defn): Convert to...
8625 (auto_language_data): ...this.
8626 (class auto_language): New class.
8627 (auto_language_defn): New static global.
8628 (language_gdbarch_post_init): Use language_defn::languages.
8629 (_initialize_language): Initialize current_language.
8630 * gdb/language.h (struct language_defn): Rename to...
8631 (struct language_data): ...this.
8632 (struct language_defn): New.
8633 (auto_language_defn): Delete.
8634 (unknown_language_defn): Delete.
8635 (minimal_language_defn): Delete.
8636 (ada_language_defn): Delete.
8637 (asm_language_defn): Delete.
8638 (c_language_defn): Delete.
8639 (cplus_language_defn): Delete.
8640 (d_language_defn): Delete.
8641 (f_language_defn): Delete.
8642 (go_language_defn): Delete.
8643 (m2_language_defn): Delete.
8644 (objc_language_defn): Delete.
8645 (opencl_language_defn): Delete.
8646 (pascal_language_defn): Delete.
8647 (rust_language_defn): Delete.
8648 * gdb/m2-lang.c (m2_language_defn): Convert to...
8649 (m2_language_data): ...this.
8650 (class m2_language): New class.
8651 (m2_language_defn): New static global.
8652 * gdb/objc-lang.c (objc_language_defn): Convert to...
8653 (objc_language_data): ...this.
8654 (class objc_language): New class.
8655 (objc_language_defn): New static global.
8656 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8657 (opencl_language_data): ...this.
8658 (class opencl_language): New class.
8659 (opencl_language_defn): New static global.
8660 * gdb/p-lang.c (pascal_language_defn): Convert to...
8661 (pascal_language_data): ...this.
8662 (class pascal_language): New class.
8663 (pascal_language_defn): New static global.
8664 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8665 language pointer, update comment format.
8666 * gdb/rust-lang.c (rust_language_defn): Convert to...
8667 (rust_language_data): ...this.
8668 (class rust_language): New class.
8669 (rust_language_defn): New static global.
8670
8671 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8672
8673 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8674 member variable.
8675 <m_stmt_at_address>: New member variable.
8676 (lnp_state_machine::record_line): Don't record some lines, update
8677 tracking of is_stmt at the same address.
8678 (lnp_state_machine::lnp_state_machine): Initialise new member
8679 variables.
8680
8681 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8682
8683 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8684 "-include gnu-nat-mig.h".
8685 * gnu-nat-mig.h: New file.
8686 * gnu-nat.c: Include "gnu-nat-mig.h".
8687 (exc_server, msg_reply_server, notify_server,
8688 process_reply_server): Remove declarations.
8689
8690 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8691
8692 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8693 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8694 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8695 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8696 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8697 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8698 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8699 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8700 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8701 to gnu_nat_target class.
8702 * gnu-nat.c: Likewise.
8703 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8704 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8705 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8706 object.
8707 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8708 instead of `gnu_target'.
8709
8710 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8711
8712 * i386-gnu-tdep.c: Include "gdbcore.h"
8713 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8714 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8715 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8716 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8717 i386_gnu_sigcontext_addr): New functions
8718 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8719 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8720 tdep.
8721
8722 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8723
8724 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8725 before fork_inferior call. Avoid calling it if target_is_pushed returns
8726 true.
8727
8728 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8729
8730 * gnu-nat.h (gnu_target): New variable declaration.
8731 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8732 gnu_target.
8733 * gnu-nat.c (gnu_target): New variable.
8734 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8735 add_thread_silent, and add_thread calls.
8736 (gnu_nat_target::create_inferior): Pass gnu_target to
8737 add_thread_silent, thread_change_ptid call.
8738 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8739 call.
8740
8741 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8742
8743 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8744 (gnu_nat_target::find_memory_regions): Remove unused
8745 `old_address' variable.
8746
8747 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8748
8749 * gnu-nat.c: Include "gdbarch.h".
8750
8751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8752
8753 * reply_mig_hack.awk (Error return): Cast function through
8754 void *, to bypass compiler function call check.
8755
8756 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8757
8758 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8759 $(srcdir)/reply_mig_hack.awk.
8760
8761 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8762
8763 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8764
8765 2020-05-30 Jonny Grant <jg@jguk.org>
8766
8767 * configure.ac (ACX_BUGURL): change bug URL to https.
8768
8769 2020-05-30 Pedro Alves <palves@redhat.com>
8770
8771 * cp-support.c (replace_typedefs_template): New.
8772 (replace_typedefs_qualified_name): Handle
8773 DEMANGLE_COMPONENT_TEMPLATE.
8774
8775 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8776
8777 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8778 dwarf2/index-cache.h, dwarf2/index-write.c,
8779 dwarf2/index-write.h, dwarf2/line-header.c,
8780 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8781 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8782 variables and fields from `dwarf2_per_objfile` to just
8783 `per_objfile` throughout.
8784
8785 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8786
8787 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8788 <push_dwarf_reg_entry_value>: Add comment.
8789
8790 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8791 Keith Seitz <keiths@redhat.com>
8792
8793 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8794 instead of PyEval_ReleaseLock.
8795 (class gdbpy_gil): Move to earlier in file.
8796 (finalize_python): Set gdb_python_initialized.
8797 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8798 when not initialized.
8799
8800 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8801
8802 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8803 <push_dwarf_reg_entry_value>: Remove assert. Override
8804 per_objfile with caller_per_objfile.
8805
8806 2020-05-28 Tom de Vries <tdevries@suse.de>
8807
8808 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8809 PR gold/15646 workaround to symbol kind "type".
8810
8811 2020-05-27 Tom Tromey <tromey@adacore.com>
8812
8813 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8814
8815 2020-05-27 Tom Tromey <tromey@adacore.com>
8816
8817 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8818 Use htab_find_with_hash.
8819 <add_abbrev>: Remove "abbrev_number" parameter.
8820 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8821 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8822 (hash_abbrev): Add comment.
8823 (abbrev_table::lookup_abbrev): Move to header file.
8824 (abbrev_table::read): Update.
8825
8826 2020-05-27 Tom Tromey <tromey@adacore.com>
8827
8828 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8829 method.
8830 <canonical_name>: New member.
8831 <raw_name>: Rename from "name".
8832 (partial_die_info): Initialize canonical_name.
8833 (scan_partial_symbols): Check raw_name.
8834 (partial_die_parent_scope, partial_die_full_name)
8835 (add_partial_symbol, add_partial_subprogram)
8836 (add_partial_enumeration, load_partial_dies): Use "name" method.
8837 (partial_die_info::name): New method.
8838 (partial_die_info::read, guess_partial_die_structure_name)
8839 (partial_die_info::fixup): Update.
8840
8841 2020-05-27 Tom Tromey <tromey@adacore.com>
8842
8843 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8844 <get_ref_die_offset>: Inline.
8845 <get_ref_die_offset_complaint>: New method.
8846 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8847 (attribute::get_ref_die_offset_complaint): Rename from
8848 get_ref_die_offset. Just issue complaint.
8849
8850 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8851
8852 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8853
8854 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8855
8856 * exec.c (exec_file_attach): Use errno value of first openp failure.
8857
8858 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8859
8860 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8861 Don't close thread handle.
8862
8863 2020-05-27 Tom Tromey <tom@tromey.com>
8864 Simon Marchi <simon.marchi@efficios.com>
8865
8866 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8867 shared_ptr.
8868 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8869 member.
8870 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8871 dwarf2_per_bfd_objfile_data_key>: New globals.
8872 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8873 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8874 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8875 shared.
8876 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8877 short-circuit when sharing.
8878 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8879 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8880
8881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8882
8883 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8884 to...
8885 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8886 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8887
8888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8889
8890 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8891 build_name_components, find_name_components_bounds>:
8892 Add per_objfile parameter.
8893 (struct mapped_index) <symbol_name_at>: Likewise.
8894 (struct mapped_debug_names): Remove constructor.
8895 <dwarf2_per_objfile>: Remove field.
8896 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8897 (mapped_index_base::find_name_components_bounds,
8898 mapped_index_base::build_name_components,
8899 dw2_expand_symtabs_matching_symbol): Likewise.
8900 (class mock_mapped_index) <symbol_name_at>: Likewise.
8901 (check_match): Likewise.
8902 (check_find_bounds_finds): Likewise.
8903 (test_mapped_index_find_name_component_bounds): Update.
8904 (CHECK_MATCH): Update.
8905 (dw2_expand_symtabs_matching): Update.
8906 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8907 per_objfile parameter.
8908 <find_vec_in_debug_names>: Likewise.
8909 <m_per_objfile>: New field.
8910 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8911 parameter.
8912 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8913 (dw2_debug_names_iterator::next): Update.
8914 (dw2_debug_names_lookup_symbol): Update.
8915 (dw2_debug_names_expand_symtabs_for_function): Update.
8916 (dw2_debug_names_map_matching_symbols): Update.
8917 (dw2_debug_names_expand_symtabs_matching): Update.
8918 (dwarf2_read_debug_names): Update.
8919
8920 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8923 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8924 move to dwarf2_per_objfile.
8925 <read_in_chain>: Remove.
8926 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8927 remove_all_cus, age_comp_units>: New methods.
8928 <m_dwarf2_cus>: New member.
8929 (struct dwarf2_per_cu_data) <cu>: Remove.
8930 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8931 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8932 moved to methods of dwarf2_per_objfile.
8933 (dwarf2_clear_marks): Remove.
8934 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8935 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8936 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8937 (dwarf2_per_objfile::remove_all_cus): New.
8938 (class free_cached_comp_units) <~free_cached_comp_units>:
8939 Update.
8940 (load_cu): Update.
8941 (dw2_do_instantiate_symtab): Adjust.
8942 (fill_in_sig_entry_from_dwo_entry): Adjust.
8943 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8944 (cutu_reader::cutu_reader): Likewise.
8945 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8946 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8947 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8948 and dwarf2_per_objfile::age_comp_units.
8949 (load_partial_comp_unit): Update.
8950 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8951 (process_queue): Likewise.
8952 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8953 backlink.
8954 (dwarf2_read_addr_index): Likewise.
8955 (follow_die_offset): Likewise.
8956 (dwarf2_fetch_die_loc_sect_off): Likewise.
8957 (dwarf2_fetch_constant_bytes): Likewise.
8958 (dwarf2_fetch_die_type_sect_off): Likewise.
8959 (follow_die_sig_1): Likewise.
8960 (load_full_type_unit): Likewise.
8961 (read_signatured_type): Likewise.
8962 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8963 (dwarf2_cu::~dwarf2_cu): Remove.
8964 (dwarf2_per_objfile::get_cu): New.
8965 (dwarf2_per_objfile::set_cu): New.
8966 (age_cached_comp_units): Rename to...
8967 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8968 to std::unordered_map.
8969 (free_one_cached_comp_unit): Rename to...
8970 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8971 to std::unordered_map.
8972 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8973 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8974 a dwarf2_per_objfile in data.
8975 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8976 (dwarf2_clear_marks): Remove.
8977
8978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8981 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8982 (init_tu_and_read_dwo_dies): Likewise.
8983 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8984 (cutu_reader::cutu_reader): Likewise.
8985 (load_partial_comp_unit): Likewise.
8986 (process_psymtab_comp_unit): Update.
8987 (build_type_psymtabs_1): Update.
8988 (process_skeletonless_type_unit): Update.
8989 (load_full_comp_unit): Update.
8990 (find_partial_die): Update.
8991 (dwarf2_read_addr_index): Update.
8992 (read_signatured_type): Update.
8993
8994 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8995
8996 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8997 m_header_read_in>: New fields.
8998 <get_header>: New method.
8999 * dwarf2/read.c (per_cu_header_read_in): Remove.
9000 (dwarf2_per_cu_data::get_header): New.
9001 (dwarf2_per_cu_data::addr_size): Update.
9002 (dwarf2_per_cu_data::offset_size): Update.
9003 (dwarf2_per_cu_data::ref_addr_size): Update.
9004
9005 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9006
9007 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9008 (dw2_do_instantiate_symtab): Update.
9009 (queue_and_load_all_dwo_tus): Change parameter from
9010 dwarf2_per_cu_data to dwarf2_cu.
9011 (dwarf2_fetch_die_loc_sect_off): Update.
9012 (dwarf2_fetch_constant_bytes): Update.
9013 (dwarf2_fetch_die_type_sect_off): Update.
9014
9015 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9016
9017 * dwarf2/read.c (process_full_comp_unit,
9018 process_full_type_unit): Remove per_cu, per_objfile paramters.
9019 Add dwarf2_cu parameter.
9020 (process_queue): Update.
9021
9022 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9023
9024 * dwarf2/read.c (create_cu_from_index_list): Replace
9025 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9026 (create_cus_from_index_list): Likewise.
9027 (create_cus_from_index): Likewise.
9028 (create_signatured_type_table_from_index): Likewise.
9029 (create_cus_from_debug_names_list): Likewise.
9030 (create_cus_from_debug_names): Likewise.
9031 (dwarf2_read_gdb_index): Update.
9032 (dwarf2_read_debug_names): Update.
9033
9034 2020-05-27 Tom Tromey <tom@tromey.com>
9035 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/read.h (struct dwarf2_per_objfile)
9038 <get_type_for_signatured_type, set_type_for_signatured_type>:
9039 New methods.
9040 <m_type_map>: New member.
9041 (struct signatured_type) <type>: Remove.
9042 * dwarf2/read.c
9043 (dwarf2_per_objfile::get_type_for_signatured_type,
9044 dwarf2_per_objfile::set_type_for_signatured_type): New.
9045 (get_signatured_type): Use new methods.
9046
9047 2020-05-27 Tom Tromey <tom@tromey.com>
9048 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9051 (struct dwarf2_per_objfile) <type_units>: New member.
9052 <get_type_unit_group_unshareable>: New method.
9053 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9054 num_symtabs, symtabs>: Remove; move to
9055 type_unit_group_unshareable.
9056 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9057 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9058 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9059
9060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9061
9062 * dwarf2/read.h (struct dwarf2_per_cu_data):
9063 <dwarf2_per_objfile>: Remove.
9064 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9065 dwarf2_per_objfile.
9066 (create_signatured_type_table_from_index): Likewise.
9067 (create_signatured_type_table_from_debug_names): Likewise.
9068 (create_debug_type_hash_table): Likewise.
9069 (fill_in_sig_entry_from_dwo_entry): Likewise.
9070 (create_type_unit_group): Likewise.
9071 (read_comp_units_from_section): Likewise.
9072 (create_cus_hash_table): Likewise.
9073
9074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9077 dwarf2_per_cu_data::dwarf2_per_objfile.
9078 (compute_compunit_symtab_includes): Likewise.
9079 (dwarf2_cu::start_symtab): Likewise.
9080
9081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9082
9083 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9084 parameter.
9085 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9086 (read_namespace_alias): Update.
9087 (lookup_die_type): Update.
9088 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9089 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9090 Update.
9091 (disassemble_dwarf_expression): Update.
9092
9093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9094
9095 * dwarf2/read.h (struct dwarf2_queue_item): Add
9096 dwarf2_per_objfile parameter, assign new parameter.
9097 <per_objfile>: New field.
9098 * dwarf2/read.c (free_one_cached_comp_unit): Add
9099 dwarf2_per_objfile parameter.
9100 (queue_comp_unit): Likewise.
9101 (dw2_do_instantiate_symtab): Update.
9102 (process_psymtab_comp_unit): Update.
9103 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9104 (process_imported_unit_die): Update.
9105 (queue_and_load_dwo_tu): Update.
9106 (follow_die_offset): Update.
9107 (follow_die_sig_1): Update.
9108
9109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9112 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9113 (read_call_site_scope): Assign per_objfile.
9114 (dwarf2_per_cu_data::objfile): Remove.
9115 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9116 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9117 dwarf2_per_objfile parameter.
9118 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9119 dwarf2_per_objfile parameter.
9120 (dwarf_expr_reg_to_entry_parameter): Add output
9121 dwarf2_per_objfile parameter.
9122 (locexpr_get_frame_base): Update.
9123 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9124 <push_dwarf_reg_entry_value>: Update.
9125 <call_site_to_target_addr>: Update.
9126 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9127 parameter.
9128 (value_of_dwarf_reg_entry): Update.
9129 (rw_pieced_value): Update.
9130 (indirect_synthetic_pointer): Update.
9131 (dwarf2_evaluate_property): Update.
9132 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9133 parameter.
9134 (locexpr_read_variable): Update.
9135 (locexpr_get_symbol_read_needs): Update.
9136 (loclist_read_variable): Update.
9137
9138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9142 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9143 parameter.
9144 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9146 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9147 parameter.
9148 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9149 sect_variable_value): Add dwarf2_per_objfile parameter.
9150 (class dwarf_evaluate_loc_desc) <dwarf_call,
9151 dwarf_variable_value>: Update.
9152 (fetch_const_value_from_synthetic_pointer): Add
9153 dwarf2_per_objfile parameter.
9154 (fetch_const_value_from_synthetic_pointer): Update.
9155 (coerced_pieced_ref): Update.
9156 (class symbol_needs_eval_context) <dwarf_call,
9157 dwarf_variable_value>: Update.
9158 (dwarf2_compile_expr_to_ax): Update.
9159
9160 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9163 parameter.
9164 (dwarf2_evaluate_loc_desc_full): Update.
9165
9166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9169 parameter.
9170 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9171 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9172 dwarf2_per_objfile parameter.
9173 (decode_debug_loc_dwo_addresses): Likewise.
9174 (dwarf2_find_location_expression): Update.
9175 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9176 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9177 parameter.
9178 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9179 parameter.
9180 (locexpr_describe_location_1): Likewise.
9181 (locexpr_describe_location): Update.
9182
9183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9186 Remove.
9187 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9188 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9189 (dwarf2_compile_property_to_c): Update.
9190 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9191 use text offset from objfile.
9192 (locexpr_tracepoint_var_ref): Update.
9193 (locexpr_generate_c_location): Update.
9194 (loclist_describe_location): Update.
9195 (loclist_tracepoint_var_ref): Update.
9196 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9197 dwarf2_per_objfile parameter.
9198 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9199 use text offset from objfile.
9200 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9201
9202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/expr.h (struct dwarf_expr_context)
9205 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9206 <offset>: Remove.
9207 <per_objfile>: New member.
9208 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9209 dwarf2_per_objfile parameter. Don't set offset, set
9210 per_objfile.
9211 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9212 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9213 a dwarf2_per_objfile object instead of an offset.
9214 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9215 constructor.
9216 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9217 to dwarf2_expr_executor constructor. Don't set offset.
9218 (dwarf2_fetch_cfa_info): Update.
9219 (struct dwarf2_frame_cache) <text_offset>: Remove.
9220 <per_objfile>: New field.
9221 (dwarf2_frame_cache): Update.
9222 (dwarf2_frame_prev_register): Update.
9223 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9224 <dwarf_evaluate_loc_desc>: Add constructor.
9225 (dwarf2_evaluate_loc_desc_full): Update.
9226 (dwarf2_locexpr_baton_eval): Update.
9227 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9228 Add constructor.
9229 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9230
9231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9234 addr_sized_int_type>: Move to dwarf2_cu.
9235 <int_type>: Move to dwarf2_per_objfile.
9236 (struct dwarf2_per_objfile) <int_type>: Move here.
9237 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9238 addr_sized_int_type>: Move here.
9239 (read_func_scope): Update.
9240 (read_array_type): Update.
9241 (read_tag_string_type): Update.
9242 (attr_to_dynamic_prop): Update.
9243 (dwarf2_per_cu_data::int_type): Rename to...
9244 (dwarf2_per_objfile::int_type): ... this.
9245 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9246 (dwarf2_cu::addr_sized_int_type): ... this.
9247 (read_subrange_type): Update.
9248 (dwarf2_per_cu_data::addr_type): Rename to...
9249 (dwarf2_cu::addr_type): ... this.
9250 (set_die_type): Update.
9251
9252 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9255 data through per_cu->cu.
9256
9257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9258
9259 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9260 dwarf2_per_cu_data parameter fo dwarf2_cu.
9261 (lookup_dwo_type_unit): Likewise.
9262 (read_cutu_die_from_dwo): Likewise.
9263 (lookup_dwo_unit): Likewise.
9264 (open_and_init_dwo_file): Likewise.
9265 (lookup_dwo_cutu): Likewise.
9266 (lookup_dwo_comp_unit): Likewise.
9267 (lookup_dwo_type_unit): Likewise.
9268 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9269 (cutu_reader::cutu_reader): Update.
9270
9271 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9274 parameter.
9275 (process_full_type_unit): Likewise.
9276 (process_queue): Update.
9277
9278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * dwarf2/read.c (recursively_compute_inclusions): Add
9281 dwarf2_per_objfile parameter.
9282 (compute_compunit_symtab_includes): Likewise.
9283 (process_cu_includes): Update.
9284
9285 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9288 parameter.
9289 (create_type_unit_group): Update.
9290 (process_psymtab_comp_unit_reader): Update.
9291 (build_type_psymtabs_reader): Update.
9292
9293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9296 object through m_this_cu->cu.
9297
9298 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9299
9300 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9301 the info parameter.
9302 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9303
9304 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9305
9306 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9307 per_objfile parameter.
9308 (load_full_type_unit): Add per_objfile parameter.
9309 (read_signatured_type): Likewise.
9310 (load_full_comp_unit): Likewise.
9311 (load_cu): Likewise.
9312 (dw2_do_instantiate_symtab): Likewise.
9313 (dw2_get_file_names): Likewise.
9314 (dw2_map_symtabs_matching_filename): Update.
9315 (dw_expand_symtabs_matching_file_matcher): Update.
9316 (dw2_map_symbol_filenames): Update.
9317 (process_psymtab_comp_unit): Add per_objfile parameter.
9318 (build_type_psymtabs_1): Update.
9319 (process_skeletonless_type_unit): Update.
9320 (dwarf2_build_psymtabs_hard): Update.
9321 (load_partial_comp_unit): Add per_objfile parameter.
9322 (scan_partial_symbols): Update.
9323 (load_full_comp_unit): Add per_objfile parameter.
9324 (process_imported_unit_die): Update.
9325 (create_cus_hash_table): Update.
9326 (find_partial_die): Update.
9327 (dwarf2_read_addr_index): Update.
9328 (follow_die_offset): Update.
9329 (dwarf2_fetch_die_loc_sect_off): Update.
9330 (dwarf2_fetch_constant_bytes): Update.
9331 (dwarf2_fetch_die_type_sect_off): Update.
9332 (follow_die_sig_1): Update.
9333 (load_full_type_unit): Add per_objfile parameter.
9334 (read_signatured_type): Likewise.
9335
9336 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9339 of objfile_name.
9340
9341 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9344 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9345 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9346 field.
9347 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9348 (create_cus_from_index): Update.
9349 (dwarf2_read_gdb_index): Update.
9350 (create_cus_from_debug_names): Update.
9351 (dwarf2_read_debug_names): Update.
9352 (get_abbrev_section_for_cu): Update.
9353 (create_all_comp_units): Update.
9354 (read_attribute_value): Update.
9355 (get_debug_line_section): Update.
9356 * dwarf2/index-cache.c (index_cache::store): Update.
9357 * dwarf2/index-write.c (save_gdb_index_command): Update.
9358 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9359
9360 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9361
9362 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9363 member.
9364 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9365 dwarf2_per_cu_data::per_bfd.
9366 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9367 (create_type_unit_group): Likewise.
9368 (queue_comp_unit): Remove reference to
9369 per_cu->dwarf2_per_objfile.
9370 (maybe_queue_comp_unit): Likewise.
9371 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9372 (create_cus_hash_table): Assign new field.
9373
9374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * dwarf2/read.c: Replace
9377 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9378 dwarf2_cu->per_objfile throughout.
9379
9380 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9383 parameter, don't use per_cu->dwarf2_per_objfile.
9384 (dw2_instantiate_symtab): Likewise.
9385 (dw2_find_last_source_symtab): Update.
9386 (dw2_map_expand_apply): Update.
9387 (dw2_lookup_symbol): Update.
9388 (dw2_expand_symtabs_for_function): Update.
9389 (dw2_expand_all_symtabs): Update.
9390 (dw2_expand_symtabs_with_fullname): Update.
9391 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9392 don't use per_cu->dwarf2_per_objfile.
9393 (dw2_expand_marked_cus): Update.
9394 (dw2_find_pc_sect_compunit_symtab): Update.
9395 (dw2_debug_names_lookup_symbol): Update.
9396 (dw2_debug_names_expand_symtabs_for_function): Update.
9397 (dw2_debug_names_map_matching_symbols): Update.
9398 (dwarf2_psymtab::expand_psymtab): Update.
9399
9400 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9401
9402 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9403 <per_objfile>: New member.
9404 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9405 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9406 call to dwarf2_cu.
9407 (cutu_reader::cutu_reader): Update.
9408 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9409
9410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9413 struct dwarf2_per_objfile.
9414 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9415 dwarf2_per_bfd.
9416 * dwarf2/read.c (set_die_type): Update.
9417 (get_die_type_at_offset): Update.
9418
9419 2020-05-27 Tom Tromey <tom@tromey.com>
9420 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9423 method.
9424 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9425 get_symtab, set_symtab>: New methods.
9426 <m_symtabs>: New field.
9427 (struct dwarf2_psymtab): Derive from partial_symtab.
9428 <readin_p, get_compunit_symtab>: Declare methods.
9429 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9430 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9431 New methods.
9432 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9433 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9434 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9435 (dw2_symtab_iter_next, dw2_print_stats)
9436 (dw2_expand_symtabs_with_fullname)
9437 (dw2_expand_symtabs_matching_one)
9438 (dw_expand_symtabs_matching_file_matcher)
9439 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9440 (dw2_debug_names_iterator::next)
9441 (dw2_debug_names_map_matching_symbols)
9442 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9443 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9444 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9445 New methods.
9446 (get_compunit_symtab, process_full_comp_unit)
9447 (process_full_type_unit): Update.
9448 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9449
9450 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9451
9452 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9453 then introduce a new dwarf2_per_objfile type.
9454 <read_line_string>: Move to the new dwarf2_per_objfile type.
9455 <objfile>: Likewise.
9456 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9457 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9458 dwarf2_per_objfile->per_bfd.
9459 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9460 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9461 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9462 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9463 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9464 (dwarf2_per_objfile::locate_sections): Rename to...
9465 (dwarf2_per_bfd::locate_sections): ... this.
9466 (dwarf2_per_objfile::get_cutu): Rename to...
9467 (dwarf2_per_bfd::get_cutu): ... this.
9468 (dwarf2_per_objfile::get_cu): Rename to...
9469 (dwarf2_per_bfd::get_cu): ... this.
9470 (dwarf2_per_objfile::get_tu): Rename to...
9471 (dwarf2_per_bfd::get_tu): ... this.
9472 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9473 (dwarf2_per_bfd::allocate_per_cu): ... this.
9474 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9475 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9476 (get_gdb_index_contents_ftype): Change parameter from
9477 dwarf2_per_objfile to dwarf2_per_bfd.
9478 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9479 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9480
9481 2020-05-27 Tom Tromey <tom@tromey.com>
9482 Simon Marchi <simon.marchi@efficios.com>
9483
9484 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9485 (allocate_piece_closure): Set "per_objfile" member.
9486 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9487 (locexpr_describe_location, loclist_describe_location): Use new
9488 member.
9489 * dwarf2/read.c (read_call_site_scope)
9490 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9491 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9492 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9493 handle_data_member_location): Set per_objfile member.
9494 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9495 member.
9496 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9497
9498 2020-05-27 Tom Tromey <tom@tromey.com>
9499
9500 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9501 allocate_signatured_type>: Declare new methods.
9502 <m_num_psymtabs>: New member.
9503 (struct dwarf2_per_cu_data) <index>: New member.
9504 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9505 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9506 (create_cu_from_index_list): Use allocate_per_cu.
9507 (create_signatured_type_table_from_index)
9508 (create_signatured_type_table_from_debug_names)
9509 (create_debug_type_hash_table, add_type_unit)
9510 (read_comp_units_from_section): Use allocate_signatured_type.
9511
9512 2020-05-27 Tom Tromey <tom@tromey.com>
9513
9514 * psymtab.c (partial_map_expand_apply)
9515 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9516 (psym_lookup_global_symbol_language)
9517 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9518 (psym_print_stats, psym_expand_symtabs_for_function)
9519 (psym_map_symbol_filenames, psym_map_matching_symbols)
9520 (psym_expand_symtabs_matching)
9521 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9522 (maintenance_check_psymtabs): Update.
9523 * psympriv.h (struct partial_symtab) <readin_p,
9524 get_compunit_symtab>: Add objfile parameter.
9525 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9526 Likewise.
9527 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9528 get_compunit_symtab>: Likewise.
9529 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9530
9531 2020-05-27 Tom Tromey <tom@tromey.com>
9532
9533 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9534 member.
9535 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9536 (create_cu_from_index_list)
9537 (create_signatured_type_table_from_index)
9538 (create_signatured_type_table_from_debug_names)
9539 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9540 (dwarf2_create_include_psymtab)
9541 (create_debug_type_hash_table, add_type_unit)
9542 (create_type_unit_group, read_comp_units_from_section)
9543 (dwarf2_compute_name, create_cus_hash_table)
9544 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9545 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9546 obstack.
9547 (dw2_get_real_path): Likewise. Change argument to
9548 dwarf2_per_objfile.
9549
9550 2020-05-27 Luis Machado <luis.machado@linaro.org>
9551
9552 PR tdep/26000
9553 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9554 for ldrd (immediate).
9555
9556 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9557
9558 * command.h: Add comment giving the name of class_tui.
9559 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9560 create the fake command for the help for class_tui.
9561
9562 2020-05-26 Tom Tromey <tromey@adacore.com>
9563
9564 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9565 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9566 (val_atr): New function.
9567 (value_val_atr): Use it.
9568 * ada-valprint.c (print_optional_low_bound): Change low bound
9569 handling for enums.
9570 (val_print_packed_array_elements): Don't call discrete_position.
9571 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9572 discrete_position for enum types.
9573 * language.c (default_print_array_index): Change type.
9574 * language.h (struct language_defn) <la_print_array_index>: Add
9575 index_type parameter, change type of index_value.
9576 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9577 (default_print_array_index): Update.
9578 * valprint.c (maybe_print_array_index): Don't call
9579 value_from_longest. Update.
9580 (value_print_array_elements): Don't call discrete_position.
9581
9582 2020-05-26 Tom Tromey <tromey@adacore.com>
9583
9584 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9585 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9586
9587 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9588
9589 PR gdb/13519
9590 * avr-tdep.c (avr_integer_to_address): Return data or code
9591 address accordingly to the second 'type' argument of the
9592 function.
9593
9594 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9595
9596 * infcmd.c, inferior.h: (construct_inferior_arguments):
9597 Moved function from here to gdbsupport/common-inferior.{h,cc}
9598
9599 2020-05-23 Tom Tromey <tom@tromey.com>
9600
9601 Revert commit eca1f90c:
9602 * NEWS: Remove entry for completion styling.
9603 * completer.c (_rl_completion_prefix_display_length): Move
9604 declaration later.
9605 (gdb_fnprint): Revert.
9606 (gdb_display_match_list_1): Likewise.
9607 * cli/cli-style.c (completion_prefix_style)
9608 (completion_difference_style, completion_suffix_style): Remove.
9609 (_initialize_cli_style): Revert.
9610 * cli/cli-style.h (completion_prefix_style)
9611 (completion_difference_style, completion_suffix_style): Don't
9612 declare.
9613
9614 2020-05-24 Pedro Alves <palves@redhat.com>
9615
9616 * symtab.c (completion_list_add_name): Return boolean indication
9617 of whether the symbol matched.
9618 (completion_list_add_symbol): Don't try to remove C++ aliases if
9619 the symbol didn't match in the first place.
9620 * symtab.h (completion_list_add_name): Return bool.
9621
9622 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9623
9624 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9625 type::field.
9626
9627 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9628
9629 GDB 9.2 released.
9630
9631 2020-05-23 Tom Tromey <tom@tromey.com>
9632
9633 * NEWS: Add entry for completion styling.
9634 * completer.c (_rl_completion_prefix_display_length): Move
9635 declaration earlier.
9636 (gdb_fnprint): Use completion_style.
9637 (gdb_display_match_list_1): Likewise.
9638 * cli/cli-style.c (completion_prefix_style)
9639 (completion_difference_style, completion_suffix_style): New
9640 globals.
9641 (_initialize_cli_style): Register new globals.
9642 * cli/cli-style.h (completion_prefix_style)
9643 (completion_difference_style, completion_suffix_style): Declare.
9644
9645 2020-05-23 Pedro Alves <palves@redhat.com>
9646
9647 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9648 (parse_escape): Use ISDIGIT instead of isdigit.
9649 (puts_debug): Use gdb_isprint instead of isprint.
9650 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9651 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9652 ISSPACE instead of isspace.
9653 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9654 instead of isspace.
9655 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9656 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9657 instead of isxdigit and ISDIGIT instead of isdigit.
9658
9659 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9660
9661 * gdbtypes.h (struct type) <field>: New method.
9662 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9663 or type::field.
9664
9665 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9668 (TYPE_FIELDS): Use type::fields. Change all call sites that
9669 modify the propery to use type::set_fields instead.
9670
9671 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9674 type::num_fields instead.
9675
9676 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9679 methods.
9680 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9681 that modify the number of fields to use type::set_num_fields
9682 instead.
9683
9684 2020-05-22 Tom Tromey <tromey@adacore.com>
9685
9686 * compile/compile-object-load.h (munmap_list_free): Don't
9687 declare.
9688
9689 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9690
9691 * annotate.c (annotate_source_line): Update return type, add call
9692 to update current symtab and line.
9693 * annotate.h (annotate_source_line): Update return type, and
9694 extend header comment.
9695 * source.c (info_line_command): Check annotation_level before
9696 calling annotate_source_line.
9697 * stack.c (print_frame_info): If calling annotate_source_line
9698 returns true, then don't print any other source line information.
9699
9700 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9703
9704 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9705
9706 * coffread.c (patch_type): Remove NULL check before xfree.
9707 * corefile.c (set_gnutarget): Likewise.
9708 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9709 * exec.c (build_section_table): Likewise.
9710 * remote.c (remote_target::pass_signals): Likewise.
9711 * utils.c (n_spaces): Likewise.
9712 * cli/cli-script.c (document_command): Likewise.
9713 * i386-windows-tdep.c (core_process_module_section): Likewise.
9714 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9715
9716 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * symfile.c (reread_symbols): Clear objfile's section_offsets
9719 vector and section indices, re-compute them by calling
9720 sym_offsets.
9721
9722 2020-05-20 Tom Tromey <tromey@adacore.com>
9723
9724 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9725 (desc_one_bound, desc_index_type): Compute field name.
9726
9727 2020-05-20 Tom de Vries <tdevries@suse.de>
9728
9729 PR symtab/25833
9730 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9731
9732 2020-05-20 Alan Modra <amodra@gmail.com>
9733
9734 PR 25993
9735 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9736 bfd_set_filename.
9737 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9738 passed to bfd_set_filename.
9739 * symfile-mem.c (add_vsyscall_page): Likewise for string
9740 passed to symbol_file_add_from_memory.
9741 (symbol_file_add_from_memory): Make name param a const char* and
9742 don't strdup.
9743
9744 2020-05-20 Alan Modra <amodra@gmail.com>
9745
9746 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9747 rather than accessing bfd->filename directly.
9748 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9749 and use bfd_section_name.
9750 * dwarf2/frame.c (decode_frame_entry): Likewise.
9751 * exec.c (exec_set_section_address): Likewise.
9752 * solib-aix.c (solib_aix_bfd_open): Likewise.
9753 * stap-probe.c (get_stap_base_address): Likewise.
9754 * symfile.c (reread_symbols): Likewise.
9755
9756 2020-05-19 Tom Tromey <tromey@adacore.com>
9757
9758 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9759
9760 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9763
9764 2020-05-19 Pedro Alves <palves@redhat.com>
9765
9766 * NEWS (set exec-file-mismatch): Adjust entry.
9767 * exec.c: Include "build-id.h".
9768 (validate_exec_file): Try to match build IDs instead of filenames.
9769 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9770 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9771 and pass down 'warn_if_slow'.
9772 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9773 gdb_bfd_open_closure to pass it down.
9774 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9775
9776 2020-05-19 Pedro Alves <palves@redhat.com>
9777
9778 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9779 * target.c (target_fileio_open_1): Rename to target_fileio_open
9780 and make extern. Use bool.
9781 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9782 (target_fileio_read_alloc_1): Adjust.
9783 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9784 (target_fileio_open_warn_if_slow): Delete declaration.
9785
9786 2020-05-19 Pedro Alves <palves@redhat.com>
9787
9788 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9789 Adjust all callers.
9790
9791 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9792
9793 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9794 whether disp is negative.
9795
9796 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * symfile.h (struct symfile_segment_data)
9799 <~symfile_segment_data>: Remove.
9800 <segment_info>: Change to std::vector.
9801 * symfile.c (default_symfile_segments): Update.
9802 * elfread.c (elf_symfile_segments): Update.
9803
9804 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9807 <segments>: New.
9808 <segment_bases, segment_sizes>: Remove.
9809 * symfile.c (default_symfile_segments): Update.
9810 * elfread.c (elf_symfile_segments): Update.
9811 * remote.c (remote_target::get_offsets): Update.
9812 * solib-target.c (solib_target_relocate_section_addresses):
9813 Update.
9814
9815 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * symfile.h (struct symfile_segment_data): Initialize fields.
9818 <~symfile_segment_data>: Add.
9819 (symfile_segment_data_up): New.
9820 (struct sym_fns) <sym_segments>: Return a
9821 symfile_segment_data_up.
9822 (default_symfile_segments): Return a symfile_segment_data_up.
9823 (free_symfile_segment_data): Remove.
9824 (get_symfile_segment_data): Return a symfile_segment_data_up.
9825 * symfile.c (default_symfile_segments): Likewise.
9826 (get_symfile_segment_data): Likewise.
9827 (free_symfile_segment_data): Remove.
9828 (symfile_find_segment_sections): Update.
9829 * elfread.c (elf_symfile_segments): Return a
9830 symfile_segment_data_up.
9831 * remote.c (remote_target::get_offsets): Update.
9832 * solib-target.c (solib_target_relocate_section_addresses):
9833 Update.
9834 * symfile-debug.c (debug_sym_segments): Return a
9835 symfile_segment_data_up.
9836
9837 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9838
9839 PR build/25981
9840 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9841 Hardcode register numbers.
9842
9843 PR build/25981
9844 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9845 procfs_find_LDT_entry): Remove.
9846 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9847 procfs_find_LDT_entry): Remove.
9848 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9849 Remove.
9850
9851 2020-05-17 Pedro Alves <palves@redhat.com>
9852 Andrew Burgess <andrew.burgess@embecosm.com>
9853 Keno Fischer <keno@juliacomputing.com>
9854
9855 PR gdb/25741
9856 * breakpoint.c (build_target_condition_list): Update comments.
9857 (build_target_command_list): Update comments and skip matching
9858 locations.
9859 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9860 a separate function. Simplify "set breakpoint auto-hw off"
9861 handling.
9862 (insert_breakpoints): Update comment.
9863 (tracepoint_locations_match): New parameter. For breakpoints,
9864 compare location types too, if the caller wants to.
9865 (handle_automatic_hardware_breakpoints): New functions.
9866 (bp_location_is_less_than): Also sort by location type and
9867 hardware breakpoint length.
9868 (update_global_location_list): Handle "set breakpoint auto-hw on"
9869 here.
9870 (update_breakpoint_locations): Ask breakpoint_locations_match to
9871 ignore location types.
9872
9873 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9876 type::name instead.
9877
9878 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * gdbtypes.h (struct type) <name, set_name>: New methods.
9881 (TYPE_CODE): Use type::name. Change all call sites used to set
9882 the name to use type::set_name instead.
9883
9884 2020-05-16 Tom Tromey <tom@tromey.com>
9885
9886 * top.c (quit_force): Update.
9887 * infrun.c (handle_no_resumed): Update.
9888 * top.h (all_uis): New function.
9889 (ALL_UIS): Remove.
9890
9891 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9894
9895 2020-05-16 Pedro Alves <palves@redhat.com>
9896
9897 * ia64-linux-nat.c
9898 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9899 Declare method.
9900 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9901
9902 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9905 (sparc64_adi_info): Likewise.
9906
9907 2020-05-15 Tom Tromey <tom@tromey.com>
9908
9909 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9910 block_objfile.
9911 (lookup_objfile_from_block): Remove.
9912 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9913 (lookup_global_symbol): Use block_objfile.
9914 * symtab.h (lookup_objfile_from_block): Don't declare.
9915 * printcmd.c (clear_dangling_display_expressions): Use
9916 block_objfile.
9917 * parse.c (operator_check_standard): Use block_objfile.
9918
9919 2020-05-15 Tom Tromey <tom@tromey.com>
9920
9921 * language.c (language_alloc_type_symbol): Set
9922 SYMBOL_SECTION.
9923 * symtab.c (initialize_objfile_symbol): Remove.
9924 (allocate_symbol): Remove.
9925 (allocate_template_symbol): Remove.
9926 * dwarf2/read.c (fixup_go_packaging): Use "new".
9927 (new_symbol): Use "new".
9928 (read_variable): Don't call initialize_objfile_symbol. Use
9929 "new".
9930 (read_func_scope): Use "new".
9931 * xcoffread.c (process_xcoff_symbol): Don't call
9932 initialize_objfile_symbol.
9933 (SYMBOL_DUP): Remove.
9934 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9935 "new".
9936 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9937 (allocate_template_symbol): Don't declare.
9938 (struct symbol): Add copy constructor. Change defaults.
9939 * jit.c (finalize_symtab): Use "new".
9940 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9941 Use "new".
9942 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9943 (common_block_end): Use "new".
9944 * mdebugread.c (parse_symbol): Use "new".
9945 (new_symbol): Likewise.
9946
9947 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9948
9949 * NEWS: Mention changes to help and apropos.
9950
9951 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9952
9953 * command.h (enum command_class): Improve comments, document
9954 that class_alias is for user-defined aliases, give the class
9955 name for each class, remove unused class_xdb.
9956 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9957 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9958 by a precise class.
9959 * infcmd.c (_initialize_infcmd): Likewise.
9960 * reverse.c (_initialize_reverse): Likewise.
9961 * stack.c (_initialize_stack): Likewise.
9962 * symfile.c (_initialize_symfile): Likewise.
9963 * tracepoint.c (_initialize_tracepoint): Likewise.
9964
9965 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9966
9967 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9968 when their aliased command is traversed.
9969 (help_cmd): Add fput_command_names_styled call to
9970 output command name and aliases when command has an alias.
9971
9972 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9973
9974 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9975 * cli/cli-decode.c (help_cmd_list): Declare as static,
9976 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9977 a command together with the command.
9978 (fput_command_name_styled, fput_command_names_styled): New functions.
9979 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9980 fput_command_name_styled.
9981 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9982 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9983
9984 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9985
9986 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9987 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9988 * command.h (cmd_show_list): Likewise.
9989 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9990 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9991
9992 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9993
9994 * unittests/command-def-selftests.c (traverse_command_structure):
9995 Verify all commands of a list have the same prefix command and
9996 that only the top cmdlist commands have a null prefix.
9997
9998 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9999
10000 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10001 as prefix, not one of its aliases.
10002 (set_cmd_prefix): Remove.
10003 (do_add_cmd): Centralize the setting of the prefix of a command, when
10004 command is defined after its full chain of prefix commands.
10005 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10006 (add_setshow_cmd_full): Likewise.
10007 (update_prefix_field_of_prefixed_commands): New function.
10008 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10009 update_prefix_field_of_prefixed_commands.
10010 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10011 addresses of remote_set_cmdlist and remote_show_cmdlist given
10012 as argument, not the address of an argument.
10013 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10014 * gdb/remote.c (_initialize_remote): Likewise.
10015
10016 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10017
10018 * cli/cli-cmds.c (alias_command): Check for an existing alias
10019 using lookup_cmd_composition, as valid_command_p is too strict
10020 and forbids aliases that are the prefix of an existing alias
10021 or command.
10022 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10023 command is properly recognised as a valid command.
10024
10025 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10026
10027 * unittests/help-doc-selftests.c: Rename to
10028 unittests/command-def-selftests.c
10029 * unittests/command-def-selftests.c (help_doc_tests): Update some
10030 comments.
10031 (command_structure_tests, traverse_command_structure): New namespace
10032 and function.
10033 (command_structure_invariants_tests): New function.
10034 (_initialize_command_def_selftests) Renamed from
10035 _initialize_help_doc_selftests, register command_structure_invariants
10036 selftest.
10037
10038 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10039
10040 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10041 an alias of 'show'.
10042
10043 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10044
10045 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10046 ada_is_fixed_point_type. Update all callers.
10047 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10048 all callers.
10049 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10050 Update all callers.
10051 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10052 print_fixed_point_type. Update all callers.
10053 * ada-valprint.c (ada_value_print_num): Replace call to
10054 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10055
10056 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10057
10058 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10059 processors.
10060 (cpu_supports_bts): Add CV_AMD case.
10061
10062 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10063 Simon Marchi <simon.marchi@efficios.com>
10064
10065 * infrun.c (stop_all_threads): Collect multiple wait events at
10066 each pass.
10067
10068 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10069
10070 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10071 type::code instead.
10072
10073 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10074
10075 * gdbtypes.h (struct type) <code, set_code>: New methods.
10076 (TYPE_CODE): Use type::code. Change all call sites used to set
10077 the code to use type::set_code instead.
10078
10079 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10080 Tom de Vries <tdevries@suse.de>
10081 Pedro Alves <palves@redhat.com>
10082
10083 PR threads/25478
10084 * infrun.c (stop_all_threads): Do NOT ignore
10085 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10086 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10087 received.
10088 (handle_no_resumed): Remove code handling a live inferior with no
10089 threads.
10090 * remote.c (has_single_non_exited_thread): New.
10091 (remote_target::update_thread_list): Do not delete a thread if is
10092 the last thread of the process.
10093 * thread.c (thread_select): Call delete_exited_threads instead of
10094 prune_threads.
10095
10096 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10097
10098 * infrun.c (stop_all_threads): Enable/disable thread events of all
10099 targets. Move a debug message denoting the end of the function
10100 into the SCOPED_EXIT block.
10101
10102 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10103
10104 * process-stratum-target.h: Include <set>.
10105 (all_non_exited_process_targets, switch_to_target_no_thread): New
10106 function declarations.
10107 * process-stratum-target.c (all_non_exited_process_targets)
10108 (switch_to_target_no_thread): New function implementations.
10109
10110 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10111
10112 * infrun.c (handle_inferior_event): Extract out a piece of code
10113 into...
10114 (mark_non_executing_threads): ...this new function.
10115
10116 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10117
10118 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10119 use.
10120
10121 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10122
10123 * regcache.c (regcache_read_pc_protected): New function
10124 implementation that returns 0 if the PC cannot read via
10125 'regcache_read_pc'.
10126 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10127 instead of 'regcache_read_pc'.
10128 (keep_going_pass_signal): Ditto.
10129
10130 2020-05-13 Tom Tromey <tromey@adacore.com>
10131
10132 * ada-lang.c (align_value): Remove.
10133 (ada_template_to_fixed_record_type_1): Use align_up.
10134
10135 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10136
10137 * async-event.c: Update the copyright year.
10138 * async-event.h: Update the copyright year.
10139
10140 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * objfiles.h (is_addr_in_objfile,
10143 shared_objfile_contains_address_p): Return bool.
10144 * objfile.c (is_addr_in_objfile,
10145 shared_objfile_contains_address_p): Return bool.
10146
10147 2020-05-11 Tom Tromey <tromey@adacore.com>
10148
10149 * cli/cli-cmds.c (info_command): Restore.
10150 (_initialize_cli_cmds): Use add_prefix_command for "info".
10151 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10152
10153 2020-05-11 Tom Tromey <tromey@adacore.com>
10154
10155 * ada-lang.c (ada_value_primitive_field): Now public.
10156 * ada-lang.h (ada_value_primitive_field): Declare.
10157 * ada-valprint.c (print_field_values): Use
10158 ada_value_primitive_field for wrapper fields.
10159
10160 2020-05-11 Tom de Vries <tdevries@suse.de>
10161
10162 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10163 MODULE_DOMAIN.
10164
10165 2020-05-11 Tom de Vries <tdevries@suse.de>
10166
10167 PR symtab/25941
10168 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10169 with length 0, if not gdb-produced.
10170 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10171
10172 2020-05-09 Tom de Vries <tdevries@suse.de>
10173
10174 PR gdb/25955
10175 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10176 calculation.
10177
10178 2020-05-09 Tom Tromey <tom@tromey.com>
10179
10180 * top.c (server_command): Now bool.
10181 * top.h (server_command): Now bool.
10182
10183 2020-05-08 Tom Tromey <tromey@adacore.com>
10184
10185 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10186 already being processed.
10187
10188 2020-05-08 Tom Tromey <tom@tromey.com>
10189
10190 * printcmd.c (struct display) <next>: Remove.
10191 <display>: New constructor.
10192 <exp_string>: Now a std::string.
10193 <enabled_p>: Now a bool.
10194 (display_number): Move definition earlier.
10195 (displays): Rename from display_chain. Now a std::vector.
10196 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10197 (display_command): Update.
10198 (do_one_display, disable_display)
10199 (enable_disable_display_command, do_enable_disable_display):
10200 Update.
10201 (free_display): Remove.
10202 (clear_displays): Rewrite.
10203 (delete_display): Update.
10204 (map_display_numbers): Use function_view. Remove "data"
10205 parameter. Update.
10206 (do_delete_display): Remove.
10207 (undisplay_command): Update.
10208 (do_one_display, do_displays, disable_display)
10209 (info_display_command): Update.
10210 (do_enable_disable_display): Remove.
10211 (enable_disable_display_command)
10212 (clear_dangling_display_expressions): Update.
10213
10214 2020-05-08 Tom Tromey <tom@tromey.com>
10215
10216 * symtab.c (set_symbol_cache_size)
10217 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10218 (maintenance_print_symbol_cache_statistics): Update.
10219 * symmisc.c (print_symbol_bcache_statistics)
10220 (print_objfile_statistics, maintenance_print_objfiles)
10221 (maintenance_info_symtabs, maintenance_check_symtabs)
10222 (maintenance_expand_symtabs, maintenance_info_line_tables):
10223 Update.
10224 * symfile-debug.c (set_debug_symfile): Update.
10225 * source.c (forget_cached_source_info): Update.
10226 * python/python.c (gdbpy_progspaces): Update.
10227 * psymtab.c (maintenance_info_psymtabs): Update.
10228 * probe.c (parse_probes): Update.
10229 * linespec.c (iterate_over_all_matching_symtabs)
10230 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10231 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10232 * exec.c (exec_target::close): Update.
10233 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10234 * breakpoint.c (print_one_breakpoint_location)
10235 (create_longjmp_master_breakpoint)
10236 (create_std_terminate_master_breakpoint): Update.
10237 * progspace.c (program_spaces): Now a std::vector.
10238 (maybe_new_address_space): Update.
10239 (add_program_space): Remove.
10240 (program_space::program_space): Update.
10241 (remove_program_space): Update.
10242 (number_of_program_spaces): Remove.
10243 (print_program_space, update_address_spaces): Update.
10244 * progspace.h (program_spaces): Change type.
10245 (ALL_PSPACES): Remove.
10246 (number_of_program_spaces): Don't declare.
10247 (struct program_space) <next>: Remove.
10248
10249 2020-05-08 Tom Tromey <tom@tromey.com>
10250
10251 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10252 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10253 (enable_break): Update.
10254 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10255 (frv_fdpic_find_canonical_descriptor): Update.
10256 (frv_fetch_objfile_link_map): Update.
10257 * progspace.c (program_space::free_all_objfiles): Update.
10258 (program_space::solibs): New method.
10259 * progspace.h (struct program_space) <solibs>: New method.
10260 * solist.h (master_so_list): Don't declare.
10261 (ALL_SO_LIBS): Remove.
10262 * solib.h (so_list_head): Remove.
10263 (update_solib_list): Update comment.
10264 * solib.c (master_so_list): Remove.
10265 (solib_used, update_solib_list, solib_add)
10266 (info_sharedlibrary_command, clear_solib)
10267 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10268
10269 2020-05-08 Tom Tromey <tom@tromey.com>
10270
10271 * extension.c (extension_languages): Now a std::array.
10272 (ALL_EXTENSION_LANGUAGES): Remove.
10273 (get_ext_lang_defn, get_ext_lang_of_file)
10274 (eval_ext_lang_from_control_command): Update.
10275 (finish_ext_lang_initialization)
10276 (auto_load_ext_lang_scripts_for_objfile)
10277 (ext_lang_type_printers::ext_lang_type_printers)
10278 (apply_ext_lang_type_printers)
10279 (ext_lang_type_printers::~ext_lang_type_printers)
10280 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10281 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10282 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10283 (get_matching_xmethod_workers, ext_lang_colorize)
10284 (ext_lang_before_prompt): Update.
10285 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10286
10287 2020-05-08 Tom Tromey <tom@tromey.com>
10288
10289 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10290 overload.
10291 <swap_string, m_string>: Remove.
10292 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10293 Update.
10294 * stabsread.c (define_symbol, read_type): Update.
10295 * linespec.c (find_linespec_symbols): Update.
10296 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10297 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10298 * dbxread.c (read_dbx_symtab): Update.
10299 * cp-support.h (cp_canonicalize_string_full)
10300 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10301 Return unique_xmalloc_ptr.
10302 * cp-support.c (inspect_type): Update.
10303 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10304 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10305 Likewise.
10306 * c-typeprint.c (print_name_maybe_canonical): Update.
10307 * break-catch-throw.c (check_status_exception_catchpoint):
10308 Update.
10309
10310 2020-05-08 Tom de Vries <tdevries@suse.de>
10311
10312 * infrun.c (follow_fork): Copy current_line and current_symtab to
10313 child thread.
10314
10315 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * async-event.c (struct async_signal_handler, struct
10318 async_event_handler): Reformat, remove typedef.
10319
10320 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10321
10322 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10323 access thistype->main_type->dyn_prop_list directly.
10324
10325 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10328 (remove_dyn_prop): Remove. Update all users to use
10329 type::remove_dyn_prop.
10330 * gdbtypes.c (remove_dyn_prop): Rename to...
10331 (type::remove_dyn_prop): ... this.
10332
10333 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10334
10335 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10336 (add_dyn_prop): Remove. Update all users to use
10337 type::add_dyn_prop.
10338 * gdbtypes.c (add_dyn_prop): Rename to...
10339 (type::add_dyn_prop): ... this.
10340
10341 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10342
10343 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10344 (get_dyn_prop): Remove. Update all users to use
10345 type::dyn_prop.
10346 * gdbtypes.c (get_dyn_prop): Rename to...
10347 (type::dyn_prop): ... this.
10348
10349 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10350
10351 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10352
10353 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10356 instruction, skip it if it's there.
10357
10358 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10361
10362 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10363
10364 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10365 * gdbtypes.c (recursive_dump_type): Remove use of
10366 TYPE_INCOMPLETE.
10367
10368 2020-05-03 Tom Tromey <tom@tromey.com>
10369
10370 * breakpoint.c (catch_command, tcatch_command): Remove.
10371 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10372 add_show_prefix_cmd.
10373 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10374 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10375 Remove.
10376 (add_internal_problem_command): Use add_basic_prefix_cmd,
10377 add_show_prefix_cmd.
10378 * mips-tdep.c (set_mipsfpu_command): Remove.
10379 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10380 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10381 (_initialize_index_cache): Use add_basic_prefix_cmd.
10382 * memattr.c (dummy_cmd): Remove.
10383 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10384 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10385 (_initialize_tui_win): Use add_basic_prefix_cmd,
10386 add_show_prefix_cmd.
10387 * cli/cli-logging.c (set_logging_command): Remove.
10388 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10389 add_show_prefix_cmd.
10390 (show_logging_command): Remove.
10391 * target.c (target_command): Remove.
10392 (add_target): Use add_basic_prefix_cmd.
10393
10394 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10395
10396 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10397
10398 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10399
10400 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10401 info_command.
10402
10403 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10404
10405 * nbsd-nat.c (nbsd_enable_proc_events)
10406 (nbsd_nat_target::post_startup_inferior): Add.
10407 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10408 (nbsd_nat_target::update_thread_list): Rewrite.
10409 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10410 "PTRACE_LWP_CREATE".
10411 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10412
10413 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10414
10415 * stack.c (_initialize_stack): Remove duplicated creation
10416 of "frame" command and "f" alias.
10417
10418 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10419
10420 PR gdb/18706
10421 * gdbtypes.c (check_typedef): Calculate size of array of
10422 stubbed type.
10423
10424 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10425
10426 PR gdb/15559
10427 * i386-tdep.c (i386_push_dummy_call): Call
10428 i386_thiscall_push_dummy_call.
10429 (i386_thiscall_push_dummy_call): New function.
10430 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10431 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10432 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10433
10434 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10435
10436 * gdbarch.sh (do_read): Add shellcheck disable directive for
10437 warning SC2162.
10438
10439 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10440
10441 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10442 "referenced but not assigned" warning.
10443
10444 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10445
10446 * gdbarch.sh: Remove code that sets fallbackdefault.
10447
10448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10449
10450 * gdbarch.sh: Use shell operators && and || instead of
10451 -a and -o.
10452
10453 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * gdbarch.sh: Use $(...) instead of `...`.
10456
10457 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10458
10459 * gdbarch.sh: Use double quotes around variables.
10460
10461 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10462
10463 * gdbarch.sh: Use %s with printf, instead of variables in the
10464 format string.
10465
10466 2020-04-29 Tom Tromey <tromey@adacore.com>
10467
10468 PR ada/25875:
10469 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10470 type fields here.
10471 (read_enumeration_type): Call
10472 update_enumeration_type_from_children later. Update comments.
10473 (process_enumeration_scope): Don't create type fields.
10474
10475 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10476
10477 * nbsd-tdep.c: Include "xml-syscall.h".
10478 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10479
10480 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10481
10482 * nbsd-nat.c: Include "sys/wait.h".
10483 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10484 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10485 (nbsd_nat_target::remove_exec_catchpoint)
10486 (nbsd_nat_target::set_syscall_catchpoint): Add.
10487 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10488 (nbsd_nat_target::insert_exec_catchpoint)
10489 (nbsd_nat_target::remove_exec_catchpoint)
10490 (nbsd_nat_target::set_syscall_catchpoint): Add.
10491 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10492 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10493 `nbsd_get_syscall_number'.
10494
10495 2020-04-29 Tom Tromey <tom@tromey.com>
10496
10497 * stack.c (print_block_frame_labels): Remove.
10498
10499 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10500
10501 PR gdb/17320
10502 * ada-valprint.c (val_print_packed_array_elements): Move array
10503 end bracket to new line.
10504 (ada_val_print_string): Remove extra spaces before first array
10505 element.
10506 * c-valprint.c (c_value_print_array): Likewise.
10507 * m2-valprint.c (m2_print_array_contents): Likewise.
10508 (m2_value_print_inner): Likewise.
10509 * p-valprint.c (pascal_value_print_inner): Likewise.
10510 * valprint.c (generic_val_print_array): Likewise.
10511 (value_print_array_elements): Move first array element and array
10512 end bracket to new line.
10513
10514 2020-04-29 Tom de Vries <tdevries@suse.de>
10515
10516 PR symtab/25889
10517 * linespec.c (find_method): Fix ix calculation.
10518
10519 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10520
10521 * syscalls/update-netbsd.sh: New file.
10522 * syscalls/netbsd.xml: Regenerate.
10523 * data-directory/Makefile.in: Register `netbsd.xml' in
10524 `SYSCALLS_FILES'.
10525
10526 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10527
10528 * syscalls/update-freebsd.sh: Add double quotes.
10529
10530 2020-04-28 Tom Tromey <tom@tromey.com>
10531
10532 * NEWS: Update.
10533 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10534 (cmdpy_init): Allow class_tui.
10535
10536 2020-04-28 Mark Williams <mark@myosotissp.com>
10537
10538 PR gdb/24480
10539 * dwarf2read.c: Add missing assingments to list_in_scope when
10540 start_symtab was already called.
10541
10542 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10543
10544 PR gdb/25881
10545 * dwarf2/read.c (offset_map_type): Use
10546 gdb:hash_enum<sect_offset> as hash function.
10547
10548 2020-04-28 Tom de Vries <tdevries@suse.de>
10549
10550 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10551 with DW_AT_signature.
10552
10553 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10554
10555 * configure.ac: Remove check for fs_base/gs_base in
10556 user_regs_struct.
10557 * configure: Re-generate.
10558 * config.in: Re-generate.
10559 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10560 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10561 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10562
10563 2020-04-27 Luis Machado <luis.machado@linaro.org>
10564
10565 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10566 problematic inline frame unwinding situation.
10567 * frame.c (frame_id_computed_p): New function.
10568 * frame.h (frame_id_computed_p): New prototype.
10569
10570 2020-04-26 Tom Tromey <tom@tromey.com>
10571
10572 * command.h (enum command_class) <class_pseudo>: Remove.
10573
10574 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10575
10576 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10577 and whitespace.
10578
10579 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10580
10581 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10582 `PT_GET_PROCESS_STATE' block.
10583
10584 2020-04-24 Tom Tromey <tom@tromey.com>
10585
10586 * symtab.h (symbol_get_demangled_name): Don't declare.
10587 * symtab.c (symbol_get_demangled_name): Remove.
10588 (general_symbol_info::natural_name)
10589 (general_symbol_info::demangled_name): Update.
10590
10591 2020-04-24 Tom Tromey <tom@tromey.com>
10592
10593 PR rust/25025:
10594 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10595
10596 2020-04-24 Tom Tromey <tom@tromey.com>
10597
10598 PR symtab/12707:
10599 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10600 exists.
10601 (new_symbol): Likewise.
10602 * compile/compile-object-load.c (get_out_value_type): Use
10603 symbol_matches_search_name.
10604
10605 2020-04-24 Tom Tromey <tom@tromey.com>
10606
10607 * dwarf2/read.c (add_partial_symbol): Do not call
10608 compute_and_set_names.
10609
10610 2020-04-24 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10613 overload.
10614
10615 2020-04-24 Tom Tromey <tom@tromey.com>
10616
10617 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10618 (add_psymbol_to_list): New overload. Make old overload call new
10619 one.
10620 * psympriv.h (add_psymbol_to_list): New overload.
10621
10622 2020-04-24 Tom Tromey <tom@tromey.com>
10623
10624 * dwarf2/read.c (partial_die_info::read) <case
10625 DW_AT_linkage_name>: Use value_as_string.
10626 (dwarf2_string_attr): Use value_as_string.
10627 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10628 method.
10629 * dwarf2/attribute.c (attribute::value_as_string): New method.
10630
10631 2020-04-24 Tom Tromey <tom@tromey.com>
10632
10633 * symtab.c (general_symbol_info::natural_name)
10634 (general_symbol_info::demangled_name): Check for language_rust.
10635
10636 2020-04-24 Tom Tromey <tom@tromey.com>
10637
10638 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10639 (dwarf2_physname): ... from here.
10640 (partial_die_info::read): Add Rust "{" hack.
10641
10642 2020-04-24 Tom Tromey <tom@tromey.com>
10643
10644 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10645 method.
10646 (symbol_set_demangled_name): Don't declare.
10647 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10648 symbol_set_demangled_name.
10649 (general_symbol_info::set_language)
10650 (general_symbol_info::compute_and_set_names): Update.
10651 * minsyms.c (minimal_symbol_reader::install): Update.
10652 * dwarf2/read.c (new_symbol): Update.
10653
10654 2020-04-24 Tom Tromey <tromey@adacore.com>
10655
10656 PR python/23662:
10657 * python/py-type.c (convert_field): Handle
10658 FIELD_LOC_KIND_DWARF_BLOCK.
10659 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10660 (typy_get_dynamic): Nw function.
10661 (type_object_getset): Add "dynamic".
10662 * NEWS: Add entry.
10663
10664 2020-04-24 Tom Tromey <tromey@adacore.com>
10665
10666 * ada-typeprint.c (print_choices, print_variant_part)
10667 (print_record_field_types_dynamic): New functions.
10668 (print_record_field_types): Use print_record_field_types_dynamic.
10669
10670 2020-04-24 Tom Tromey <tromey@adacore.com>
10671
10672 * dwarf2/read.c (handle_data_member_location): New overload.
10673 (dwarf2_add_field): Use it.
10674 (decode_locdesc): Add "computed" parameter. Update comment.
10675 * gdbtypes.c (is_dynamic_type_internal): Also look for
10676 FIELD_LOC_KIND_DWARF_BLOCK.
10677 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10678 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10679 virtual base classes.
10680 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10681 FIELD_LOC_KIND_DWARF_BLOCK.
10682
10683 2020-04-24 Tom Tromey <tromey@adacore.com>
10684
10685 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10686 * gdbtypes.c (is_dynamic_type_internal): Check
10687 TYPE_HAS_DYNAMIC_LENGTH.
10688 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10689 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10690 New macros.
10691 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10692 constant.
10693
10694 2020-04-24 Tom Tromey <tromey@adacore.com>
10695
10696 * dwarf2/read.c (struct variant_field): Rewrite.
10697 (struct variant_part_builder): New.
10698 (struct nextfield): Remove "variant" field. Add "offset".
10699 (struct field_info): Add "current_variant_part" and
10700 "variant_parts".
10701 (alloc_discriminant_info): Remove.
10702 (alloc_rust_variant): New function.
10703 (quirk_rust_enum): Update.
10704 (dwarf2_add_field): Set "offset" member. Don't handle
10705 DW_TAG_variant_part.
10706 (offset_map_type): New typedef.
10707 (convert_variant_range, create_one_variant)
10708 (create_one_variant_part, create_variant_parts)
10709 (add_variant_property): New functions.
10710 (dwarf2_attach_fields_to_type): Call add_variant_property.
10711 (read_structure_type): Don't handle DW_TAG_variant_part.
10712 (handle_variant_part, handle_variant): New functions.
10713 (handle_struct_member_die): Use them.
10714 (process_structure_scope): Don't handle variant parts.
10715 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10716 (struct discriminant_info): Remove.
10717 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10718 (struct main_type) <flag_discriminated_union>: Remove.
10719 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10720 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10721 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10722 Update.
10723 * valops.c (value_union_variant): Remove.
10724 * value.h (value_union_variant): Don't declare.
10725
10726 2020-04-24 Tom Tromey <tromey@adacore.com>
10727
10728 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10729 (ada_value_primitive_packed_val): Update.
10730 * ada-valprint.c (ada_value_print_1): Update.
10731 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10732 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10733 just an address. Use evaluate_for_locexpr_baton.
10734 (dwarf2_evaluate_property): Update.
10735 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10736 array_view.
10737 * findvar.c (default_read_var_value): Update.
10738 * gdbtypes.c (compute_variant_fields_inner)
10739 (resolve_dynamic_type_internal): Update.
10740 (resolve_dynamic_type): Change type of valaddr parameter.
10741 * gdbtypes.h (resolve_dynamic_type): Update.
10742 * valarith.c (value_subscripted_rvalue): Update.
10743 * value.c (value_from_contents_and_address): Update.
10744
10745 2020-04-24 Tom Tromey <tromey@adacore.com>
10746
10747 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10748 "push_initial_value" parameter.
10749 (dwarf2_evaluate_property): Likewise.
10750 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10751
10752 2020-04-24 Tom Tromey <tromey@adacore.com>
10753
10754 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10755 (variant::matches, compute_variant_fields_recurse)
10756 (compute_variant_fields_inner, compute_variant_fields): New
10757 functions.
10758 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10759 Use resolved_type after type is made.
10760 (operator==): Add new cases.
10761 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10762 (struct discriminant_range, struct variant, struct variant_part):
10763 New.
10764 (union dynamic_prop_data) <variant_parts, original_type>: New
10765 members.
10766 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10767 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10768 constants.
10769 * value.c (unpack_bits_as_long): Now public.
10770 * value.h (unpack_bits_as_long): Declare.
10771
10772 2020-04-24 Tom Tromey <tromey@adacore.com>
10773
10774 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10775 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10776
10777 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10778
10779 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10780
10781 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10782
10783 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10784 (remove_fork_catchpoint, post_startup_inferior)
10785 (post_attach): Move...
10786 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10787 (remove_fork_catchpoint, post_startup_inferior)
10788 (post_attach): ...here.
10789 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10790 (remove_fork_catchpoint, post_startup_inferior)
10791 (post_attach): Move...
10792 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10793 (remove_fork_catchpoint, post_startup_inferior)
10794 (post_attach): ...here.
10795
10796 2020-04-24 Tom Tromey <tromey@adacore.com>
10797
10798 * nat/windows-nat.h (struct windows_thread_info)
10799 <pc_adjusted>: New member.
10800 * windows-nat.c (windows_fetch_one_register): Check
10801 pc_adjusted.
10802 (windows_nat_target::get_windows_debug_event)
10803 (windows_nat_target::wait): Set pc_adjusted.
10804
10805 2020-04-24 Tom de Vries <tdevries@suse.de>
10806
10807 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10808 Run gdb-add-index inside temp dir.
10809
10810 2020-04-23 Tom Tromey <tromey@adacore.com>
10811
10812 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10813 in loop.
10814
10815 2020-04-23 Luis Machado <luis.machado@linaro.org>
10816
10817 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10818 get_frame_register instead of gdbarch_unwind_pc.
10819
10820 2020-04-23 Tom de Vries <tdevries@suse.de>
10821
10822 * symtab.c (lookup_global_symbol): Prefer def over decl.
10823
10824 2020-04-23 Tom de Vries <tdevries@suse.de>
10825
10826 PR symtab/25807
10827 * block.c (best_symbol, better_symbol): Promote to external.
10828 * block.h (best_symbol, better_symbol): Declare.
10829 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10830 decl.
10831
10832 2020-04-23 Tom Tromey <tromey@adacore.com>
10833
10834 PR ada/25837:
10835 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10836 "const char *", not a "const std::string &".
10837 <name_and_matcher::operator==>: Update.
10838 * unittests/lookup_name_info-selftests.c: Change type of
10839 "result".
10840
10841 2020-04-23 Tom Tromey <tom@tromey.com>
10842
10843 * inferior.h (iterate_over_inferiors): Don't declare.
10844 * inferior.c (iterate_over_inferiors): Remove.
10845 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10846 Remove.
10847 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10848 use iterate_over_inferiors.
10849 (darwin_resume_inferior_it)
10850 (struct resume_inferior_threads_param)
10851 (darwin_resume_inferior_threads_it): Remove.
10852 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10853
10854 2020-04-23 Tom de Vries <tdevries@suse.de>
10855
10856 * blockframe.c (find_pc_partial_function): Use
10857 find_pc_sect_compunit_symtab rather than
10858 objfile->sf->qf->find_pc_sect_compunit_symtab.
10859
10860 2020-04-22 Tom de Vries <tdevries@suse.de>
10861
10862 PR symtab/25764
10863 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10864 in psymtabs.
10865
10866 2020-04-22 Tom de Vries <tdevries@suse.de>
10867
10868 PR symtab/25801
10869 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10870 symtabs.
10871
10872 2020-04-22 Tom de Vries <tdevries@suse.de>
10873
10874 PR symtab/25700
10875 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10876 CU if already created.
10877
10878 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10879
10880 * infrun.c (displaced_step_fixup): Switch to the event_thread
10881 before calling displaced_step_restore, not after.
10882
10883 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10884
10885 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10886 its inferior is not recorded by us.
10887 (record_btrace_target_open): Replace call to
10888 all_non_exited_threads () with call to current_inferior
10889 ()->non_exited_threads ().
10890 (record_btrace_target::stop_recording): Likewise.
10891 (record_btrace_target::close): Likewise.
10892 (record_btrace_target::wait): Likewise.
10893 (record_btrace_target::record_stop_replaying): Likewise.
10894
10895 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10896
10897 * btrace.c (btrace_enable): Throw an error on double enables and
10898 when enabling recording fails.
10899 (btrace_disable): Throw an error if the thread is not recorded.
10900
10901 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10902
10903 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10904 request if we do not have a thread_info.
10905
10906 2020-04-21 Tom de Vries <tdevries@suse.de>
10907
10908 PR gdb/25471
10909 * thread.c
10910 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10911 exception in get_frame_id.
10912
10913 2020-04-20 Tom Tromey <tromey@adacore.com>
10914
10915 * python/python.c (struct gdbpy_event): Mark move constructor as
10916 noexcept.
10917 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10918 constructor as noexcept.
10919 * completer.h (struct completion_result): Mark move constructor as
10920 noexcept.
10921 * completer.c (completion_result::completion_result): Use
10922 initialization style. Don't call reset_match_list.
10923
10924 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10925
10926 * MAINTAINERS (Write After Approval): Add myself.
10927
10928 2020-04-18 Tom Tromey <tom@tromey.com>
10929
10930 * windows-tdep.c (init_w32_command_list)
10931 (w32_prefix_command_valid): Restore.
10932 (_initialize_windows_tdep): Call init_w32_command_list.
10933
10934 2020-04-18 Tom Tromey <tom@tromey.com>
10935
10936 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10937 * value.c (value_fn_field): Update.
10938 * valops.c (find_function_in_inferior)
10939 (value_allocate_space_in_inferior): Update.
10940 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10941 Update.
10942 * tui/tui-source.c (tui_source_window::set_contents): Update.
10943 * symtab.c (lookup_global_or_static_symbol)
10944 (find_function_start_sal_1, skip_prologue_sal)
10945 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10946 * symmisc.c (dump_msymbols, dump_symtab_1)
10947 (maintenance_print_one_line_table): Update.
10948 * symfile.c (init_entry_point_info, section_is_mapped)
10949 (list_overlays_command, simple_read_overlay_table)
10950 (simple_overlay_update_1): Update.
10951 * stap-probe.c (handle_stap_probe): Update.
10952 * stabsread.c (dbx_init_float_type, define_symbol)
10953 (read_one_struct_field, read_enum_type, read_range_type): Update.
10954 * source.c (info_line_command): Update.
10955 * python/python.c (gdbpy_source_objfile_script)
10956 (gdbpy_execute_objfile_script): Update.
10957 * python/py-type.c (save_objfile_types): Update.
10958 * python/py-objfile.c (py_free_objfile): Update.
10959 * python/py-inferior.c (python_new_objfile): Update.
10960 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10961 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10962 (maintenance_check_psymtabs): Update.
10963 * printcmd.c (info_address_command): Update.
10964 * objfiles.h (struct objfile) <arch>: New method, from
10965 get_objfile_arch.
10966 (get_objfile_arch): Don't declare.
10967 * objfiles.c (get_objfile_arch): Remove.
10968 (filter_overlapping_sections): Update.
10969 * minsyms.c (msymbol_is_function): Update.
10970 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10971 (output_nondebug_symbol): Update.
10972 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10973 (mdebug_expand_psymtab): Update.
10974 * machoread.c (macho_add_oso_symfile): Update.
10975 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10976 Update.
10977 * linux-fork.c (checkpoint_command): Update.
10978 * linespec.c (convert_linespec_to_sals): Update.
10979 * jit.c (finalize_symtab): Update.
10980 * infrun.c (insert_exception_resume_from_probe): Update.
10981 * ia64-tdep.c (ia64_find_unwind_table): Update.
10982 * hppa-tdep.c (internalize_unwinds): Update.
10983 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10984 Update.
10985 * gcore.c (call_target_sbrk): Update.
10986 * elfread.c (record_minimal_symbol, elf_symtab_read)
10987 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10988 (elf_gnu_ifunc_resolve_by_got): Update.
10989 * dwarf2/read.c (create_addrmap_from_index)
10990 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10991 (read_debug_names_from_section)
10992 (process_psymtab_comp_unit_reader, add_partial_symbol)
10993 (add_partial_subprogram, process_full_comp_unit)
10994 (read_file_scope, read_func_scope, read_lexical_block_scope)
10995 (read_call_site_scope, dwarf2_ranges_read)
10996 (dwarf2_record_block_ranges, dwarf2_add_field)
10997 (mark_common_block_symbol_computed, read_tag_pointer_type)
10998 (read_tag_string_type, dwarf2_init_float_type)
10999 (dwarf2_init_complex_target_type, read_base_type)
11000 (partial_die_info::read, partial_die_info::read)
11001 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11002 (dwarf2_fetch_die_loc_sect_off): Update.
11003 * dwarf2/loc.c (dwarf2_find_location_expression)
11004 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11005 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11006 (dwarf2_loc_desc_get_symbol_read_needs)
11007 (locexpr_describe_location_piece, locexpr_describe_location_1)
11008 (loclist_describe_location): Update.
11009 * dwarf2/index-write.c (write_debug_names): Update.
11010 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11011 * dtrace-probe.c (dtrace_process_dof): Update.
11012 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11013 (process_one_symbol): Update.
11014 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11015 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11016 (coff_read_enum_type): Update.
11017 * cli/cli-cmds.c (edit_command, list_command): Update.
11018 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11019 * breakpoint.c (create_overlay_event_breakpoint)
11020 (create_longjmp_master_breakpoint)
11021 (create_std_terminate_master_breakpoint)
11022 (create_exception_master_breakpoint, get_sal_arch): Update.
11023 * block.c (block_gdbarch): Update.
11024 * annotate.c (annotate_source_line): Update.
11025
11026 2020-04-17 Tom Tromey <tromey@adacore.com>
11027
11028 * auto-load.c (show_auto_load_cmd): Remove.
11029 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11030 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11031 (maintenance_print_arc_command): Remove.
11032 * tui/tui-win.c (tui_command): Remove.
11033 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11034 * tui/tui-layout.c (tui_layout_command): Remove.
11035 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11036 * python/python.c (user_set_python, user_show_python): Remove.
11037 (_initialize_python): Use add_basic_prefix_cmd,
11038 add_show_prefix_cmd.
11039 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11040 (install_gdb_commands): Use add_basic_prefix_cmd,
11041 add_show_prefix_cmd.
11042 (info_guile_command): Remove.
11043 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11044 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11045 add_show_prefix_cmd.
11046 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11047 Remove do_set and do_show parameters.
11048 * cli/cli-style.c (set_style, show_style): Remove.
11049 (_initialize_cli_style): Use add_basic_prefix_cmd,
11050 add_show_prefix_cmd.
11051 (cli_style_option::add_setshow_commands): Remove do_set and
11052 do_show parameters.
11053 (cli_style_option::add_setshow_commands): Use
11054 add_basic_prefix_cmd, add_show_prefix_cmd.
11055 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11056 (set_style_name): Remove.
11057 * cli/cli-dump.c (dump_command, append_command): Remove.
11058 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11059 (tekhex_dump_command, binary_dump_command)
11060 (binary_append_command): Remove.
11061 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11062 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11063 (init_w32_command_list): Remove; move into ...
11064 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11065 * valprint.c (set_print, show_print, set_print_raw)
11066 (show_print_raw): Remove.
11067 (_initialize_valprint): Use add_basic_prefix_cmd,
11068 add_show_prefix_cmd.
11069 * typeprint.c (set_print_type, show_print_type): Remove.
11070 (_initialize_typeprint): Use add_basic_prefix_cmd,
11071 add_show_prefix_cmd.
11072 * record.c (set_record_command, show_record_command): Remove.
11073 (_initialize_record): Use add_basic_prefix_cmd,
11074 add_show_prefix_cmd.
11075 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11076 add_show_prefix_cmd.
11077 (info_command, show_command, set_debug, show_debug): Remove.
11078 * top.h (set_history, show_history): Don't declare.
11079 * top.c (set_history, show_history): Remove.
11080 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11081 (unset_tdesc_cmd): Remove.
11082 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11083 add_show_prefix_cmd.
11084 * symtab.c (info_module_command): Remove.
11085 (_initialize_symtab): Use add_basic_prefix_cmd.
11086 * symfile.c (overlay_command): Remove.
11087 (_initialize_symfile): Use add_basic_prefix_cmd.
11088 * sparc64-tdep.c (info_adi_command): Remove.
11089 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11090 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11091 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11092 add_show_prefix_cmd.
11093 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11094 (_initialize_serial): Use add_basic_prefix_cmd,
11095 add_show_prefix_cmd.
11096 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11097 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11098 add_show_prefix_cmd.
11099 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11100 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11101 add_show_prefix_cmd.
11102 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11103 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11104 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11105 add_show_prefix_cmd.
11106 * remote.c (remote_command, set_remote_cmd): Remove.
11107 (_initialize_remote): Use add_basic_prefix_cmd.
11108 * record-full.c (set_record_full_command)
11109 (show_record_full_command): Remove.
11110 (_initialize_record_full): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * record-btrace.c (cmd_set_record_btrace)
11113 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11114 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11115 (cmd_show_record_btrace_pt): Remove.
11116 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 * ravenscar-thread.c (set_ravenscar_command)
11119 (show_ravenscar_command): Remove.
11120 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11121 add_show_prefix_cmd.
11122 * mips-tdep.c (show_mips_command, set_mips_command)
11123 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11124 add_show_prefix_cmd.
11125 * maint.c (maintenance_command, maintenance_info_command)
11126 (maintenance_check_command, maintenance_print_command)
11127 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11128 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11129 add_show_prefix_cmd.
11130 (show_per_command_cmd): Remove.
11131 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11132 Remove.
11133 (maintenance_show_test_settings_cmd): Remove.
11134 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 * maint-test-options.c (maintenance_test_options_command):
11137 Remove.
11138 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11139 * macrocmd.c (macro_command): Remove
11140 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11141 * language.c (set_check, show_check): Remove.
11142 (_initialize_language): Use add_basic_prefix_cmd,
11143 add_show_prefix_cmd.
11144 * infcmd.c (unset_command): Remove.
11145 (_initialize_infcmd): Use add_basic_prefix_cmd.
11146 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11147 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11148 add_show_prefix_cmd.
11149 * go32-nat.c (go32_info_dos_command): Remove.
11150 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11151 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11152 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11153 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11154 (_initialize_frame): Use add_basic_prefix_cmd,
11155 add_show_prefix_cmd.
11156 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11157 (_initialize_dcache): Use add_basic_prefix_cmd,
11158 add_show_prefix_cmd.
11159 * cp-support.c (maint_cplus_command): Remove.
11160 (_initialize_cp_support): Use add_basic_prefix_cmd.
11161 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11162 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11163 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11164 add_basic_prefix_cmd, add_show_prefix_cmd.
11165 * breakpoint.c (save_command): Remove.
11166 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11167 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11168 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11169 add_show_prefix_cmd.
11170 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11171 (set_ada_command, show_ada_command): Remove.
11172 (_initialize_ada_language): Use add_basic_prefix_cmd,
11173 add_show_prefix_cmd.
11174 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11175
11176 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11177
11178 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11179 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11180
11181 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11182
11183 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11184 warning messages.
11185
11186 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11187
11188 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11189 import table is not at beginning of .idata section.
11190
11191 2020-04-16 Pedro Alves <palves@redhat.com>
11192
11193 * inferior.c (delete_inferior): Use delete operator directly
11194 instead of delete_program_space.
11195 * progspace.c (add_program_space): New, factored out from
11196 program_space::program_space.
11197 (remove_program_space): New, factored out from
11198 delete_program_space.
11199 (program_space::program_space): Remove intro comment. Rewrite.
11200 (program_space::~program_space): Remove intro comment. Call
11201 remove_program_space.
11202 (delete_program_space): Delete.
11203 * progspace.h (program_space::program_space): Make explicit. Move
11204 intro comment here, adjusted.
11205 (program_space::~program_space): Move intro comment here,
11206 adjusted.
11207 (delete_program_space): Remove.
11208
11209 2020-04-16 Tom Tromey <tromey@adacore.com>
11210
11211 * windows-nat.c (windows_nat::handle_access_violation): New
11212 function.
11213 * nat/windows-nat.h (handle_access_violation): Declare.
11214 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11215 windows-nat.c. Call handle_access_violation.
11216
11217 2020-04-16 Tom de Vries <tdevries@suse.de>
11218
11219 PR symtab/25791
11220 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11221 CUs without psymtab.
11222
11223 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11224
11225 * python/python.c (do_start_initialization): Don't call
11226 PyEval_InitThreads for Python 3.9 and beyond.
11227
11228 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11229
11230 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11231 thread functions.
11232 (obsd_nat_target::wait): Likewise.
11233
11234 2020-04-15 Tom Tromey <tromey@adacore.com>
11235
11236 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11237 (DEBUG_EXCEPT): Use debug_printf.
11238
11239 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11240
11241 * completer.c (class completion_tracker::completion_hash_entry)
11242 <hash_name>: New member function.
11243 (completion_tracker::discard_completions): New callback to hash a
11244 completion_hash_entry, pass this to htab_create_alloc.
11245
11246 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11247
11248 * windows-nat.c (windows_make_so): Warn rather than stopping with
11249 an error if realpath() fails.
11250
11251 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11252
11253 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11254 (nbsd_nat_target::info_proc): Add do_status.
11255
11256 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11257 Tom de Vries <tdevries@suse.de>
11258
11259 PR symtab/25718
11260 * psympriv.h (struct partial_symtab::read_symtab)
11261 (struct partial_symtab::expand_psymtab)
11262 (struct partial_symtab::read_dependencies): Update comments.
11263 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11264 read_symtab for includer.
11265 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11266 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11267 (struct dwarf2_include_psymtab::m_readin): Remove.
11268 (struct dwarf2_include_psymtab::includer): New member function.
11269 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11270
11271 2020-04-14 Tom de Vries <tdevries@suse.de>
11272
11273 PR symtab/25720
11274 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11275 with NULL symbol_matcher and lookup_name.
11276 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11277 and lookup_name.
11278 * dwarf2/read.c (dw2_expand_symtabs_matching)
11279 (dw2_debug_names_expand_symtabs_matching): Same.
11280 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11281 Make lookup_name a pointer. Update comment.
11282 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11283 lookup_name being a pointer.
11284 * symfile.c (expand_symtabs_matching): Same.
11285 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11286 * linespec.c (iterate_over_all_matching_symtabs): Same.
11287
11288 2020-04-13 Tom Tromey <tom@tromey.com>
11289
11290 * run-on-main-thread.c: Update include.
11291 * unittests/main-thread-selftests.c: Update include.
11292 * tui/tui-win.c: Update include.
11293 * tui/tui-io.c: Update include.
11294 * tui/tui-interp.c: Update include.
11295 * tui/tui-hooks.c: Update include.
11296 * top.h: Update include.
11297 * top.c: Update include.
11298 * ser-base.c: Update include.
11299 * remote.c: Update include.
11300 * remote-notif.c: Update include.
11301 * remote-fileio.c: Update include.
11302 * record-full.c: Update include.
11303 * record-btrace.c: Update include.
11304 * python/python.c: Update include.
11305 * posix-hdep.c: Update include.
11306 * mingw-hdep.c: Update include.
11307 * mi/mi-main.c: Update include.
11308 * mi/mi-interp.c: Update include.
11309 * main.c: Update include.
11310 * linux-nat.c: Update include.
11311 * interps.c: Update include.
11312 * infrun.c: Update include.
11313 * inf-loop.c: Update include.
11314 * event-top.c: Update include.
11315 * event-loop.c: Move to ../gdbsupport/.
11316 * event-loop.h: Move to ../gdbsupport/.
11317 * async-event.h: Update include.
11318 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11319
11320 2020-04-13 Tom Tromey <tom@tromey.com>
11321
11322 * tui/tui-win.c: Include async-event.h.
11323 * remote.c: Include async-event.h.
11324 * remote-notif.c: Include async-event.h.
11325 * record-full.c: Include async-event.h.
11326 * record-btrace.c: Include async-event.h.
11327 * infrun.c: Include async-event.h.
11328 * event-top.c: Include async-event.h.
11329 * event-loop.h: Move some declarations to async-event.h.
11330 * event-loop.c: Don't include ser-event.h or top.h. Move some
11331 code to async-event.c.
11332 * async-event.h: New file.
11333 * async-event.c: New file.
11334 * Makefile.in (COMMON_SFILES): Add async-event.c.
11335 (HFILES_NO_SRCDIR): Add async-event.h.
11336
11337 2020-04-13 Tom Tromey <tom@tromey.com>
11338
11339 * utils.c (flush_streams): New function.
11340 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11341
11342 2020-04-13 Tom Tromey <tom@tromey.com>
11343
11344 * event-loop.c (handle_file_event): Use warning, not
11345 printf_unfiltered.
11346
11347 2020-04-13 Tom Tromey <tom@tromey.com>
11348
11349 * event-loop.c: Include <chrono>.
11350
11351 2020-04-13 Tom Tromey <tom@tromey.com>
11352
11353 * gdb_select.h: Move to ../gdbsupport/.
11354 * event-loop.c: Update include path.
11355 * top.c: Update include path.
11356 * ser-base.c: Update include path.
11357 * ui-file.c: Update include path.
11358 * ser-tcp.c: Update include path.
11359 * guile/scm-ports.c: Update include path.
11360 * posix-hdep.c: Update include path.
11361 * ser-unix.c: Update include path.
11362 * gdb_usleep.c: Update include path.
11363 * mingw-hdep.c: Update include path.
11364 * inflow.c: Update include path.
11365 * infrun.c: Update include path.
11366 * event-top.c: Update include path.
11367
11368 2020-04-13 Tom Tromey <tom@tromey.com>
11369
11370 * configure: Rebuild.
11371 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11372
11373 2020-04-13 Tom Tromey <tom@tromey.com>
11374
11375 * event-loop.h (start_event_loop): Don't declare.
11376 * event-loop.c (start_event_loop): Move...
11377 * main.c (start_event_loop): ...here. Now static.
11378
11379 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11380
11381 * MAINTAINERS: Update my email address.
11382
11383 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11384
11385 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11386 IP_ALL.
11387
11388 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11389
11390 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11391 (nbsd_nat_target::info_proc): Add do_cmdline.
11392
11393 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11394
11395 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11396 (nbsd_nat_target::info_proc): Add do_cwd.
11397
11398 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11399
11400 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11401
11402 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11403
11404 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11405 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11406 (nbsd_nat_target::info_proc): New functions.
11407 * nbsd-nat.c (kinfo_get_vmmap): New function.
11408 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11409 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11410 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11411 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11412 functions.
11413 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11414 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11415 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11416 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11417 (KINFO_VME_FLAG_GROWS_DOWN): New.
11418
11419 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11420
11421 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11422 bit shift.
11423
11424 2020-04-10 Tom Tromey <tromey@adacore.com>
11425
11426 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11427
11428 2020-04-10 Tom Tromey <tromey@adacore.com>
11429
11430 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11431 separate debug files.
11432
11433 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11434
11435 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11436 Move to...
11437 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11438 ... here.
11439 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11440 Check for STATUS_WX86_BREAKPOINT.
11441 (windows_nat_target::wait): Same.
11442
11443 2020-04-10 Tom de Vries <tdevries@suse.de>
11444
11445 PR cli/25808
11446 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11447
11448 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11449
11450 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11451 (Write After Approval): Remove Tom de Vries.
11452
11453 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11454
11455 revert partially:
11456 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11457
11458 * buildsym.c (record_line): Fix undefined behavior and preserve
11459 lines at eof.
11460
11461 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11462
11463 * auxv.h (svr4_auxv_parse): New.
11464 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11465 and generic_auxv_parse.
11466 (svr4_auxv_parse): Add.
11467 * obsd-tdep.c: Include "auxv.h".
11468 (obsd_auxv_parse): Remove.
11469 (obsd_init_abi): Remove comment.
11470 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11471 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11472 * nbsd-tdep.c: Include "auxv.h".
11473 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11474
11475 2020-04-08 Tom Tromey <tromey@adacore.com>
11476
11477 * nat/windows-nat.h (last_wait_event): Don't declare.
11478 (wait_for_debug_event): Update comment.
11479 * nat/windows-nat.c (last_wait_event): Now static.
11480
11481 2020-04-08 Tom Tromey <tromey@adacore.com>
11482
11483 * windows-nat.c (wait_for_debug_event): Move to
11484 nat/windows-nat.c.
11485 * nat/windows-nat.h (wait_for_debug_event): Declare.
11486 * nat/windows-nat.c (wait_for_debug_event): Move from
11487 windows-nat.c. No longer static.
11488
11489 2020-04-08 Tom Tromey <tromey@adacore.com>
11490
11491 * windows-nat.c (get_windows_debug_event): Use
11492 fetch_pending_stop.
11493 * nat/windows-nat.h (fetch_pending_stop): Declare.
11494 * nat/windows-nat.c (fetch_pending_stop): New function.
11495
11496 2020-04-08 Tom Tromey <tromey@adacore.com>
11497
11498 * windows-nat.c (windows_continue): Use matching_pending_stop and
11499 continue_last_debug_event.
11500 * nat/windows-nat.h (matching_pending_stop)
11501 (continue_last_debug_event): Declare.
11502 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11503 (matching_pending_stop, continue_last_debug_event): New
11504 functions.
11505
11506 2020-04-08 Tom Tromey <tromey@adacore.com>
11507
11508 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11509 (handle_exception_result): Move to nat/windows-nat.h.
11510 (DEBUG_EXCEPTION_SIMPLE): Remove.
11511 (windows_nat::handle_ms_vc_exception): New function.
11512 (handle_exception): Move to nat/windows-nat.c.
11513 (get_windows_debug_event): Update.
11514 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11515 nat/windows-nat.c.
11516 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11517 (handle_exception_result): Move from windows-nat.c.
11518 (handle_exception): Declare.
11519 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11520 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11521 windows-nat.c.
11522
11523 2020-04-08 Tom Tromey <tromey@adacore.com>
11524
11525 * windows-nat.c (exception_count, event_count): Remove.
11526 (handle_exception, get_windows_debug_event)
11527 (do_initial_windows_stuff): Update.
11528
11529 2020-04-08 Tom Tromey <tromey@adacore.com>
11530
11531 * windows-nat.c (windows_nat::handle_load_dll)
11532 (windows_nat::handle_unload_dll): Rename. No longer static.
11533 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11534 Declare.
11535
11536 2020-04-08 Tom Tromey <tromey@adacore.com>
11537
11538 * complaints.h (stop_whining): Declare at top-level.
11539 (complaint): Don't declare stop_whining.
11540
11541 2020-04-08 Tom Tromey <tromey@adacore.com>
11542
11543 * windows-nat.c (windows_nat::handle_output_debug_string):
11544 Rename. No longer static.
11545 * nat/windows-nat.h (handle_output_debug_string): Declare.
11546
11547 2020-04-08 Tom Tromey <tromey@adacore.com>
11548
11549 * windows-nat.c (current_process_handle, current_process_id)
11550 (main_thread_id, last_sig, current_event, last_wait_event)
11551 (current_windows_thread, desired_stop_thread_id, pending_stops)
11552 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11553 (display_selectors, fake_create_process)
11554 (get_windows_debug_event): Update.
11555 * nat/windows-nat.h (current_process_handle, current_process_id)
11556 (main_thread_id, last_sig, current_event, last_wait_event)
11557 (current_windows_thread, desired_stop_thread_id, pending_stops)
11558 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11559 * nat/windows-nat.c (current_process_handle, current_process_id)
11560 (main_thread_id, last_sig, current_event, last_wait_event)
11561 (current_windows_thread, desired_stop_thread_id, pending_stops)
11562 (siginfo_er): New globals. Move from windows-nat.c.
11563
11564 2020-04-08 Tom Tromey <tromey@adacore.com>
11565
11566 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11567 (handle_load_dll): Update.
11568 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11569
11570 2020-04-08 Tom Tromey <tromey@adacore.com>
11571
11572 * windows-nat.c (enum thread_disposition_type): Move to
11573 nat/windows-nat.h.
11574 (windows_nat::thread_rec): Rename from thread_rec. No longer
11575 static.
11576 (windows_add_thread, windows_nat_target::fetch_registers)
11577 (windows_nat_target::store_registers, handle_exception)
11578 (windows_nat_target::resume, get_windows_debug_event)
11579 (windows_nat_target::get_tib_address)
11580 (windows_nat_target::thread_name)
11581 (windows_nat_target::thread_alive): Update.
11582 * nat/windows-nat.h (enum thread_disposition_type): Move from
11583 windows-nat.c.
11584 (thread_rec): Declare.
11585
11586 2020-04-08 Tom Tromey <tromey@adacore.com>
11587
11588 * windows-nat.c: Add "using namespace".
11589 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11590 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11591
11592 2020-04-08 Tom Tromey <tromey@adacore.com>
11593
11594 * nat/windows-nat.h (struct windows_thread_info): Declare
11595 destructor.
11596 * nat/windows-nat.c (~windows_thread_info): New.
11597
11598 2020-04-08 Tom Tromey <tromey@adacore.com>
11599
11600 PR gdb/22992
11601 * windows-nat.c (current_event): Update comment.
11602 (last_wait_event, desired_stop_thread_id): New globals.
11603 (struct pending_stop): New.
11604 (pending_stops): New global.
11605 (windows_nat_target) <stopped_by_sw_breakpoint>
11606 <supports_stopped_by_sw_breakpoint>: New methods.
11607 (windows_fetch_one_register): Add assertions. Adjust PC.
11608 (windows_continue): Handle pending stops. Suspend other threads
11609 when stepping. Use last_wait_event
11610 (wait_for_debug_event): New function.
11611 (get_windows_debug_event): Use wait_for_debug_event. Handle
11612 pending stops. Queue spurious stops.
11613 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11614 (windows_nat_target::kill): Use wait_for_debug_event.
11615 * nat/windows-nat.h (struct windows_thread_info)
11616 <stopped_at_software_breakpoint>: New field.
11617 * nat/windows-nat.c (windows_thread_info::resume): Clear
11618 stopped_at_software_breakpoint.
11619
11620 2020-04-08 Tom Tromey <tromey@adacore.com>
11621
11622 * windows-nat.c (enum thread_disposition_type): New.
11623 (thread_rec): Replace "get_context" parameter with "disposition";
11624 change type.
11625 (windows_add_thread, windows_nat_target::fetch_registers)
11626 (windows_nat_target::store_registers, handle_exception)
11627 (windows_nat_target::resume, get_windows_debug_event)
11628 (windows_nat_target::get_tib_address)
11629 (windows_nat_target::thread_name)
11630 (windows_nat_target::thread_alive): Update.
11631
11632 2020-04-08 Tom Tromey <tromey@adacore.com>
11633
11634 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11635 (windows_continue): Use windows_continue::resume.
11636 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11637 resume>: Declare new methods.
11638 * nat/windows-nat.c: New file.
11639 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11640
11641 2020-04-08 Tom Tromey <tromey@adacore.com>
11642
11643 * windows-nat.c (windows_add_thread, windows_delete_thread)
11644 (windows_nat_target::fetch_registers)
11645 (windows_nat_target::store_registers, fake_create_process)
11646 (windows_nat_target::resume, windows_nat_target::resume)
11647 (get_windows_debug_event, windows_nat_target::wait)
11648 (windows_nat_target::pid_to_str)
11649 (windows_nat_target::get_tib_address)
11650 (windows_nat_target::get_ada_task_ptid)
11651 (windows_nat_target::thread_name)
11652 (windows_nat_target::thread_alive): Use lwp, not tid.
11653
11654 2020-04-08 Tom Tromey <tromey@adacore.com>
11655
11656 * windows-nat.c (handle_exception)
11657 (windows_nat_target::thread_name): Update.
11658 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11659 <name>: Now unique_xmalloc_ptr.
11660
11661 2020-04-08 Tom Tromey <tromey@adacore.com>
11662
11663 * windows-nat.c (thread_rec)
11664 (windows_nat_target::fetch_registers): Update.
11665 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11666 Update comment.
11667 <debug_registers_changed, reload_context>: Now bool.
11668
11669 2020-04-08 Tom Tromey <tromey@adacore.com>
11670
11671 * windows-nat.c (windows_add_thread): Use new.
11672 (windows_init_thread_list, windows_delete_thread): Use delete.
11673 (get_windows_debug_event): Update.
11674 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11675 destructor, and initializers.
11676
11677 2020-04-08 Tom Tromey <tromey@adacore.com>
11678
11679 * windows-nat.c (struct windows_thread_info): Remove.
11680 * nat/windows-nat.h: New file.
11681
11682 2020-04-08 Tom Tromey <tromey@adacore.com>
11683
11684 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11685 (thread_rec, windows_add_thread, windows_delete_thread)
11686 (windows_continue): Update.
11687
11688 2020-04-08 Tom Tromey <tromey@adacore.com>
11689
11690 * windows-nat.c (struct windows_thread_info): Remove typedef.
11691 (thread_head): Remove.
11692 (thread_list): New global.
11693 (thread_rec, windows_add_thread, windows_init_thread_list)
11694 (windows_delete_thread, windows_continue): Update.
11695
11696 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11697
11698 * windows-tdep.h (windows_init_abi): Add comment.
11699 (cygwin_init_abi): New declaration.
11700 * windows-tdep.c: Split signal enumeration in two, one for
11701 Windows and one for Cygwin.
11702 (windows_gdb_signal_to_target): Only deal with signal of the
11703 Windows OS ABI.
11704 (cygwin_gdb_signal_to_target): New function.
11705 (windows_init_abi): Rename to windows_init_abi_common, don't set
11706 gdb_signal_to_target gdbarch method. Add new new function with
11707 this name.
11708 (cygwin_init_abi): New function.
11709 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11710 comment. Don't call windows_init_abi.
11711 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11712 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11713 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11714 i386_windows_init_abi_common, don't call windows_init_abi. Add
11715 a new function of this name.
11716 (i386_cygwin_init_abi): New function.
11717 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11718 OS ABI Cygwin.
11719
11720 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11721
11722 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11723 parameter.c.
11724 (dwarf2_read_gdb_index): Update.
11725
11726 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11727
11728 * nbsd-tdep.c: Include "objfiles.h".
11729 (nbsd_skip_solib_resolver): New.
11730 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11731
11732 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11733
11734 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11735 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11736 with DW_LLE_base_addressx are being emitted in DWARFv5.
11737 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11738 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11739 unsigned integer.
11740
11741 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11742
11743 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11744 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11745 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11746 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11747 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11748 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11749 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11750
11751
11752 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11753
11754 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11755 (read_loclist_index): New function definition.
11756 (lookup_loclist_base): New function definition.
11757 (read_loclist_header): New function definition.
11758 (dwarf2_cu): Add loclist_base and loclist_header field.
11759 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11760 (read_full_die_1): Read the value of DW_AT_loclists_base.
11761 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11762 (read_attribute_value): Handle DW_FORM_loclistx.
11763 (skip_one_die): Handle DW_FORM_loclistx.
11764 (loclist_header): New structure declaration.
11765 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11766
11767 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11768
11769 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11770 constructor. Remove `addr` parameter from other constructor and
11771 add `per_cu` parameter.
11772 * dwarf2/read.c (create_partial_symtab): Update.
11773
11774 2020-04-07 Tom de Vries <tdevries@suse.de>
11775
11776 PR symtab/25796
11777 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11778 (partial_die_info::fixup): Inherit has_const_value.
11779
11780 2020-04-07 Tom de Vries <tdevries@suse.de>
11781
11782 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11783 symbols without address.
11784
11785 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11786
11787 * nbsd-nat.h (struct thread_info): Add forward declaration.
11788 (nbsd_nat_target::thread_alive): Add.
11789 (nbsd_nat_target::thread_name): Likewise.
11790 (nbsd_nat_target::update_thread_list): Likewise.
11791 (update_thread_list::post_attach): Likewise.
11792 (post_attach::pid_to_str): Likewise.
11793 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11794 (nbsd_thread_lister): Add.
11795 (nbsd_nat_target::thread_alive): Likewise.
11796 (nbsd_nat_target::thread_name): Likewise.
11797 (nbsd_add_threads): Likewise.
11798 (update_thread_list::post_attach): Likewise.
11799 (nbsd_nat_target::update_thread_list): Likewise.
11800 (post_attach::pid_to_str): Likewise.
11801
11802 2020-04-06 Tom Tromey <tromey@adacore.com>
11803
11804 * ada-valprint.c (print_variant_part): Extract the variant field.
11805 (print_field_values): Use the field as the outer value when
11806 recursing.
11807
11808 2020-04-06 Tom Tromey <tromey@adacore.com>
11809
11810 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11811 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11812 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11813 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11814 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11815
11816 2020-04-06 Tom Tromey <tromey@adacore.com>
11817
11818 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11819 TYPE_CODE_ERROR.
11820
11821 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11822
11823 * nbsd-tdep.c: Include "gdbarch.h".
11824 Define enum with NetBSD signal numbers.
11825 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11826 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11827 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11828 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11829 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11830 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11831 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11832 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11833 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11834 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11835 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11836 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11837
11838 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11839
11840 PR gdb/25325
11841 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11842
11843 2020-04-03 Tom Tromey <tromey@adacore.com>
11844
11845 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11846 Read constant block.
11847
11848 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11849
11850 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11851 (gdb_bfd_get_full_section_contents): New declaration.
11852 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11853 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11854 gdb_bfd_get_full_section_contents.
11855
11856 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11857
11858 * exec.c (build_section_table): Replace internal_error with
11859 gdb_assert.
11860 (section_table_xfer_memory_partial): Likewise.
11861 * mdebugread.c (parse_partial_symbols): Likewise.
11862 * psymtab.c (lookup_partial_symbol): Likewise.
11863 * utils.c (wrap_here): Likewise.
11864
11865 2020-04-02 Tom Tromey <tromey@adacore.com>
11866
11867 * f-lang.c (build_fortran_types): Use arch_type to initialize
11868 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11869
11870 2020-04-02 Tom Tromey <tromey@adacore.com>
11871
11872 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11873 of attributes.
11874
11875 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11876 Bernd Edlinger <bernd.edlinger@hotmail.de>
11877 Tom Tromey <tromey@adacore.com>
11878
11879 * buildsym.c (buildsym_compunit::record_line): Remove
11880 deduplication code.
11881
11882 2020-04-02 Tom de Vries <tdevries@suse.de>
11883
11884 PR ada/24671
11885 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11886
11887 2020-04-02 Tom de Vries <tdevries@suse.de>
11888
11889 * dwarf2/read.c (dwarf2_gdb_index_functions,
11890 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11891 NULL.
11892 * psymtab.c (psym_lookup_global_symbol_language): New function.
11893 (psym_functions): Init psym_lookup_global_symbol_language with
11894 psym_lookup_global_symbol_language.
11895 * symfile-debug.c (debug_sym_quick_functions): Init
11896 lookup_global_symbol_language with NULL.
11897 * symfile.c (set_initial_language): Remove fixme comment.
11898 * symfile.h (struct quick_symbol_functions): Add
11899 lookup_global_symbol_language.
11900 * symtab.c (find_quick_global_symbol_language): New function.
11901 (find_main_name): Use find_quick_global_symbol_language.
11902
11903 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11904
11905 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11906
11907 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11908
11909 * buildsym.c (record_line): Fix undefined behavior and preserve
11910 lines at eof.
11911
11912 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11913
11914 * buildsym.c (record_line): Fix the resizing condition.
11915
11916 2020-04-01 Tom Tromey <tom@tromey.com>
11917
11918 * value.h (value_literal_complex): Add comment.
11919 * valops.c (value_literal_complex): Refer to value.h.
11920
11921 2020-04-01 Tom Tromey <tom@tromey.com>
11922
11923 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11924 (scalar_type): New rule, from typebase.
11925 (typebase): Use scalar_type. Recognize complex types.
11926 (field_name): Handle FLOAT_KEYWORD.
11927 (ident_tokens): Add _Complex and __complex__.
11928
11929 2020-04-01 Tom Tromey <tom@tromey.com>
11930
11931 PR exp/25299:
11932 * valarith.c (promotion_type, complex_binop): New functions.
11933 (scalar_binop): Handle complex numbers. Use promotion_type.
11934 (value_pos, value_neg, value_complement): Handle complex numbers.
11935
11936 2020-04-01 Tom Tromey <tom@tromey.com>
11937
11938 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11939 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11940 (parse_number): Handle complex numbers.
11941
11942 2020-04-01 Tom Tromey <tom@tromey.com>
11943
11944 * c-valprint.c (c_decorations): Change complex suffix to "i".
11945
11946 2020-04-01 Tom Tromey <tom@tromey.com>
11947
11948 * valprint.c (generic_value_print_complex): Use accessors.
11949 * value.h (value_real_part, value_imaginary_part): Declare.
11950 * valops.c (value_real_part, value_imaginary_part): New
11951 functions.
11952 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11953
11954 2020-04-01 Tom Tromey <tom@tromey.com>
11955
11956 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11957 (read_range_type): Update.
11958 * mdebugread.c (basic_type): Update.
11959 * go-lang.c (build_go_types): Use init_complex_type.
11960 * gdbtypes.h (struct main_type) <complex_type>: New member.
11961 (init_complex_type): Update.
11962 (arch_complex_type): Don't declare.
11963 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11964 Make name if none given. Use alloc_type_copy. Look for cached
11965 complex type.
11966 (arch_complex_type): Remove.
11967 (gdbtypes_post_init): Use init_complex_type.
11968 * f-lang.c (build_fortran_types): Use init_complex_type.
11969 * dwarf2/read.c (read_base_type): Update.
11970 * d-lang.c (build_d_types): Use init_complex_type.
11971 * ctfread.c (read_base_type): Update.
11972
11973 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11974
11975 * infrun.c (stop_all_threads): Update assertion, plus when
11976 stopping threads, take into account that we might be trying
11977 to stop an all-stop target.
11978 (stop_waiting): Call 'stop_all_threads' if there exists a
11979 non-stop target.
11980
11981 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11982
11983 * target.h (exists_non_stop_target): New function declaration.
11984 * target.c (exists_non_stop_target): New function.
11985
11986 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11987
11988 PR gdb/24789
11989 * eval.c (is_integral_or_integral_reference): New function.
11990 (evaluate_subexp_standard): Allow integer references in
11991 pointer arithmetic.
11992
11993 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11994
11995 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11996 check for no ptid in the stop reply when the target is non-stop.
11997
11998 2020-04-01 Tom Tromey <tromey@adacore.com>
11999
12000 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12001 "name" parameter to rvalue reference. Initialize m_name_holder.
12002 <lookup_name_info>: New overloads.
12003 <name>: Return gdb::string_view.
12004 <c_str>: New method.
12005 <make_ignore_params>: Update.
12006 <search_name_hash>: Update.
12007 <language_lookup_name>: Return const char *.
12008 <m_name>: Change type.
12009 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12010 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12011 (lookup_name_info::match_any): Update.
12012 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12013 Update.
12014 * minsyms.c (linkage_name_str): Update.
12015 * language.c (default_symbol_name_matcher): Update.
12016 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12017 Update.
12018 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12019 (ada_lookup_name_info::ada_lookup_name_info): Update.
12020 (literal_symbol_name_matcher): Update.
12021
12022 2020-04-01 Tom Tromey <tromey@adacore.com>
12023
12024 * psymtab.c (psymtab_search_name): Remove function.
12025 (psym_lookup_symbol): Create search name and lookup name here.
12026 (lookup_partial_symbol): Remove "name" parameter; add
12027 lookup_name.
12028 (psym_expand_symtabs_for_function): Update.
12029
12030 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12031
12032 PR tui/25597:
12033 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12034
12035 2020-03-31 Tom Tromey <tromey@adacore.com>
12036
12037 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12038 memcpy.
12039
12040 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12041
12042 * features/riscv/32bit-csr.xml: Regenerated.
12043 * features/riscv/64bit-csr.xml: Regenerated.
12044
12045 2020-03-30 Tom Tromey <tromey@adacore.com>
12046
12047 * ada-valprint.c (print_variant_part): Update.
12048 * ada-lang.h (ada_which_variant_applies): Update.
12049 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12050 outer_valaddr parameters; replace with "outer" value parameter.
12051 (to_fixed_variant_branch_type): Update.
12052
12053 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12054
12055 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12056 <list>. Remove inclusion of observable.h.
12057 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12058 (struct arch_lwp_info): New struct.
12059 (class ppc_linux_dreg_interface): New class.
12060 (struct ppc_linux_process_info): New struct.
12061 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12062 <low_new_clone, low_forget_process, low_prepare_to_resume>
12063 <copy_thread_dreg_state, mark_thread_stale>
12064 <mark_debug_registers_changed, register_hw_breakpoint>
12065 <clear_hw_breakpoint, register_wp, clear_wp>
12066 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12067 <num_memory_accesses, get_trigger_type>
12068 <create_watchpoint_request, hwdebug_point_cmp>
12069 <init_arch_lwp_info, get_arch_lwp_info>
12070 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12071 methods.
12072 <struct ptid_hash>: New inner struct.
12073 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12074 members.
12075 (saved_dabr_value, hwdebug_info, max_slots_number)
12076 (struct hw_break_tuple, struct thread_points, ppc_threads)
12077 (have_ptrace_hwdebug_interface)
12078 (hwdebug_find_thread_points_by_tid)
12079 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12080 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12081 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12082 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12083 use m_dreg_interface.
12084 (hwdebug_point_cmp): Change to...
12085 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12086 reference arguments instead of pointers.
12087 (ppc_linux_nat_target::ranged_break_num_registers): Use
12088 m_dreg_interface.
12089 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12090 m_dreg_interface. Call register_hw_breakpoint.
12091 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12092 m_dreg_interface. Call clear_hw_breakpoint.
12093 (get_trigger_type): Change to...
12094 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12095 comment.
12096 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12097 use m_dreg_interface. Call register_hw_breakpoint.
12098 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12099 use m_dreg_interface. Call clear_hw_breakpoint.
12100 (can_use_watchpoint_cond_accel): Change to...
12101 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12102 method. Update comment, use m_dreg_interface and
12103 m_process_info.
12104 (calculate_dvc): Change to...
12105 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12106 m_dreg_interface.
12107 (num_memory_accesses): Change to...
12108 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12109 (check_condition): Change to...
12110 (ppc_linux_nat_target::check_condition): ...this method.
12111 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12112 comment, use m_dreg_interface.
12113 (create_watchpoint_request): Change to...
12114 (ppc_linux_nat_target::create_watchpoint_request): ...this
12115 method. Use m_dreg_interface.
12116 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12117 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12118 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12119 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12120 (ppc_linux_nat_target::low_forget_process)
12121 (ppc_linux_nat_target::low_new_fork)
12122 (ppc_linux_nat_target::low_new_clone)
12123 (ppc_linux_nat_target::low_delete_thread)
12124 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12125 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12126 only call mark_thread_stale.
12127 (ppc_linux_thread_exit): Remove.
12128 (ppc_linux_nat_target::stopped_data_address): Change to...
12129 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12130 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12131 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12132 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12133 comment. Call low_stopped_data_address.
12134 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12135 m_dreg_interface.
12136 (ppc_linux_nat_target::masked_watch_num_registers): Use
12137 m_dreg_interface.
12138 (ppc_linux_nat_target::copy_thread_dreg_state)
12139 (ppc_linux_nat_target::mark_thread_stale)
12140 (ppc_linux_nat_target::mark_debug_registers_changed)
12141 (ppc_linux_nat_target::register_hw_breakpoint)
12142 (ppc_linux_nat_target::clear_hw_breakpoint)
12143 (ppc_linux_nat_target::register_wp)
12144 (ppc_linux_nat_target::clear_wp)
12145 (ppc_linux_nat_target::init_arch_lwp_info)
12146 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12147 (_initialize_ppc_linux_nat): Remove observer callback.
12148
12149 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12150
12151 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12152 (ppc_linux_nat_target::auxv_parse)
12153 (ppc_linux_nat_target::read_description)
12154 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12155 Move up.
12156
12157 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12158
12159 * linux-nat.h (low_new_clone): New method.
12160 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12161
12162 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12163
12164 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12165 (dbx_expand_psymtab): ... this.
12166 (start_psymtab): Update.
12167 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12168 (mdebug_expand_psymtab): ... this.
12169 (parse_partial_symbols): Update.
12170 (new_psymtab): Update.
12171 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12172 (xcoff_expand_psymtab): ... this.
12173 (xcoff_start_psymtab): Update.
12174
12175 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12176
12177 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12178 <expand_dependencies>: ... this.
12179 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12180 (partial_symtab::expand_dependencies): ... this.
12181 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12182 Update.
12183 (dwarf2_psymtab::expand_psymtab): Update.
12184 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12185 * mdebugread.c (psymtab_to_symtab_1): Update.
12186 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12187
12188 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12189
12190 * psympriv.h (discard_psymtab): Remove.
12191 * dbxread.c (dbx_end_psymtab): Update.
12192 * xcoffread.c (xcoff_end_psymtab): Update.
12193
12194 2020-03-28 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12197 comment.
12198
12199 2020-03-28 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12202
12203 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12204
12205 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12206
12207 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12208
12209 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12210
12211 2020-03-26 Tom Tromey <tom@tromey.com>
12212
12213 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12214 (mark_common_block_symbol_computed, read_tag_string_type)
12215 (attr_to_dynamic_prop, read_subrange_type): Update.
12216 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12217 to be methods on struct attribute.
12218 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12219 (read_call_site_scope, partial_die_info::read)
12220 (partial_die_info::read, lookup_die_type, follow_die_ref):
12221 Update.
12222 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12223 from dwarf2_get_ref_die_offset.
12224 (attribute::constant_value): New method, from
12225 dwarf2_get_attr_constant_value.
12226 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12227 Declare method.
12228 <constant_value>: New method.
12229
12230 2020-03-26 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12233 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12234 (dwarf_type_encoding_name): Move to stringify.c.
12235 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12236 * dwarf2/stringify.c: New file.
12237 * dwarf2/stringify.h: New file.
12238
12239 2020-03-26 Tom Tromey <tom@tromey.com>
12240
12241 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12242 Rewrite.
12243
12244 2020-03-26 Tom Tromey <tom@tromey.com>
12245
12246 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12247 methods.
12248 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12249 (lookup_ranges_base): Likewise.
12250 (read_cutu_die_from_dwo, read_full_die_1): Update.
12251
12252 2020-03-26 Tom Tromey <tom@tromey.com>
12253
12254 * dwarf2/read.c (read_import_statement, read_file_scope)
12255 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12256 (read_lexical_block_scope, read_call_site_scope)
12257 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12258 (handle_struct_member_die, process_structure_scope)
12259 (update_enumeration_type_from_children)
12260 (process_enumeration_scope, read_array_type, read_common_block)
12261 (read_namespace, read_module, read_subroutine_type): Update.
12262 (sibling_die): Remove.
12263
12264 2020-03-26 Tom Tromey <tom@tromey.com>
12265
12266 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12267 (build_type_psymtabs_reader, read_structure_type)
12268 (read_enumeration_type, read_full_die_1): Update.
12269 (dwarf2_attr_no_follow): Move to die.h.
12270 * dwarf2/die.h (struct die_info) <attr>: New method.
12271
12272 2020-03-26 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12275 <base_address>: Now an optional.
12276 (dwarf2_find_base_address, dwarf2_rnglists_process)
12277 (dwarf2_ranges_process, fill_in_loclist_baton)
12278 (dwarf2_symbol_mark_computed): Update.
12279
12280 2020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/read.c (struct die_info): Move to die.h.
12283 * dwarf2/die.h: New file.
12284
12285 2020-03-26 Tom Tromey <tom@tromey.com>
12286
12287 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12288 * dwarf2/read.c
12289 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12290 Move to line-header.c.
12291 (read_checked_initial_length_and_offset, read_formatted_entries):
12292 Likewise.
12293 (dwarf_decode_line_header): Split into two.
12294 * dwarf2/line-header.c
12295 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12296 Move from read.c.
12297 (read_checked_initial_length_and_offset, read_formatted_entries):
12298 Likewise.
12299 (dwarf_decode_line_header): New function, split from read.c.
12300
12301 2020-03-26 Tom Tromey <tom@tromey.com>
12302
12303 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12304 Declare method.
12305 * dwarf2/read.c (read_attribute_value): Update.
12306 (dwarf2_per_objfile::read_line_string): Rename from
12307 read_indirect_line_string.
12308 (read_formatted_entries): Update.
12309
12310 2020-03-26 Tom Tromey <tom@tromey.com>
12311
12312 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12313 variable.
12314
12315 2020-03-26 Tom Tromey <tom@tromey.com>
12316
12317 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12318 const.
12319 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12320 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12321 parameter const.
12322
12323 2020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12326 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12327 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12328 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12329
12330 2020-03-26 Tom Tromey <tom@tromey.com>
12331
12332 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12333 file_names_size, file_full_name, file_file_name>: Use const.
12334 <file_name_at, file_names>: Add const overload.
12335 * dwarf2/line-header.c (line_header::file_file_name)
12336 (line_header::file_full_name): Update.
12337
12338 2020-03-26 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12341 (macro_start_file, consume_improper_spaces)
12342 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12343 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12344 (dwarf_decode_macros): Move to macro.c.
12345 * dwarf2/macro.c: New file.
12346 * dwarf2/macro.h: New file.
12347 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12348
12349 2020-03-26 Tom Tromey <tom@tromey.com>
12350
12351 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12352 method.
12353 * dwarf2/section.c: New method. From
12354 read_indirect_string_at_offset_from.
12355 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12356 (read_indirect_string_at_offset_from): Move to section.c.
12357 (read_indirect_string_at_offset): Rewrite.
12358 (read_indirect_line_string_at_offset): Remove.
12359 (read_indirect_string, read_indirect_line_string)
12360 (dwarf_decode_macro_bytes): Update.
12361
12362 2020-03-26 Tom Tromey <tom@tromey.com>
12363
12364 * dwarf2/section.h (struct dwarf2_section_info)
12365 <overload_complaint>: Declare.
12366 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12367 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12368 Rename from dwarf2_section_buffer_overflow_complaint.
12369 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12370 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12371
12372 2020-03-26 Tom Tromey <tom@tromey.com>
12373
12374 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12375 Declare.
12376 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12377 Move from read.c.
12378 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12379 to section.c.
12380
12381 2020-03-26 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12384
12385 2020-03-26 Tom Tromey <tom@tromey.com>
12386
12387 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12388 "builder".
12389 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12390 parameter.
12391 (dwarf_decode_macros): Update.
12392
12393 2020-03-26 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2/read.c (read_attribute_value): Update.
12396 (read_indirect_string_from_dwz): Move to dwz.c; change into
12397 method.
12398 (dwarf_decode_macro_bytes): Update.
12399 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12400 * dwarf2/dwz.c: New file.
12401 * Makefile.in (COMMON_SFILES): Add dwz.c.
12402
12403 2020-03-26 Tom Tromey <tom@tromey.com>
12404
12405 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12406 * dwarf2/read.c: Add include.
12407 * dwarf2/index-write.c: Add include.
12408 * dwarf2/index-cache.c: Add include.
12409 * dwarf2/dwz.h: New file.
12410
12411 2020-03-25 Tom Tromey <tom@tromey.com>
12412
12413 * compile/compile-object-load.c (get_out_value_type): Mention
12414 correct symbol name in error message.
12415
12416 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12417
12418 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12419
12420 2020-03-25 Tom de Vries <tdevries@suse.de>
12421
12422 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12423 * symmisc.c (dump_symtab_1): Print user and includes fields.
12424 (maintenance_info_symtabs): Same.
12425
12426 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12427
12428 PR gdb/25534
12429 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12430 (riscv_regcache_cooked_write): New function.
12431 (riscv_push_dummy_call): Use new function.
12432 (riscv_return_value): Likewise.
12433
12434 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12435
12436 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12437 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12438 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12439 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12440 * infrun.c (follow_fork): Likewise.
12441 (follow_fork_inferior): Likewise.
12442 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12443 * linux-nat.h (class linux_nat_target): Likewise.
12444 * remote.c (class remote_target) <follow_fork>: Likewise.
12445 (remote_target::follow_fork): Likewise.
12446 * target-delegates.c: Re-generate.
12447 * target.c (default_follow_fork): Likewise.
12448 (target_follow_fork): Likewise.
12449 * target.h (struct target_ops) <follow_fork>: Likewise.
12450 (target_follow_fork): Likewise.
12451
12452 2020-03-24 Tom de Vries <tdevries@suse.de>
12453
12454 * psymtab.c (maintenance_info_psymtabs): Print user field.
12455
12456 2020-03-20 Tom Tromey <tromey@adacore.com>
12457
12458 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12459 const.
12460 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12461 const.
12462
12463 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12464
12465 * ptrace.m4: Don't check for ptrace declaration.
12466 * config.in: Re-generate.
12467 * configure: Re-generate.
12468 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12469 not defined.
12470
12471 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12472
12473 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12474 `PTRACE_TYPE_RET'.
12475 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12476 * sparc-nat.c (gdb_ptrace): Likewise.
12477 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12478
12479 2020-03-20 Tom Tromey <tromey@adacore.com>
12480
12481 * c-exp.y (lex_one_token): Fix assert.
12482
12483 2020-03-20 Tom Tromey <tromey@adacore.com>
12484
12485 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12486 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12487 strncpy call.
12488
12489 2020-03-20 Tom Tromey <tromey@adacore.com>
12490
12491 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12492
12493 2020-03-20 Tom Tromey <tromey@adacore.com>
12494
12495 * ada-valprint.c (print_variant_part): Remove parameters; switch
12496 to value-based API.
12497 (print_field_values): Likewise.
12498 (ada_val_print_struct_union): Likewise.
12499 (ada_value_print_1): Update.
12500
12501 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12502
12503 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12504 nbsd_nat_target instead of inf_ptrace_target.
12505 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12506 nbsd_nat_target.
12507
12508 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12509
12510 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12511 it to the ptrace call.
12512 * (store_registers): Likewise.
12513
12514 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12515
12516 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12517 it to the ptrace call.
12518 * (store_registers): Likewise.
12519
12520 2020-03-19 Luis Machado <luis.machado@linaro.org>
12521
12522 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12523 valid, fetch vg value from ptrace.
12524
12525 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12526 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12527 * inf-ptrace.c: Likewise.
12528 * (gdb_ptrace): Add.
12529 * (inf_ptrace_target::resume): Update.
12530 * (inf_ptrace_target::xfer_partial): Likewise.
12531 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12532 * (inf_ptrace_peek_poke): Update.
12533
12534 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12535
12536 * x86-bsd-nat.c (gdb_ptrace): New.
12537 * (x86bsd_dr_set): Add new argument `ptid'.
12538 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12539 x86bsd_dr_set_addr): Update.
12540
12541 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12542
12543 * remote.c (remote_target::process_stop_reply): Handle events for
12544 all threads differently.
12545
12546 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12547
12548 * completer.c (completion_tracker::remove_completion): Define new
12549 function.
12550 * completer.h (completion_tracker::remove_completion): Declare new
12551 function.
12552 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12553 when adding a C++ function symbol.
12554
12555 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12556
12557 * completer.c (completion_tracker::completion_hash_entry): Define
12558 new class.
12559 (advance_to_filename_complete_word_point): Call
12560 recompute_lowest_common_denominator.
12561 (completion_tracker::completion_tracker): Call discard_completions
12562 to setup the hash table.
12563 (completion_tracker::discard_completions): Allow for being called
12564 from the constructor, pass new equal function, and element deleter
12565 when constructing the hash table. Initialise new class member
12566 variables.
12567 (completion_tracker::maybe_add_completion): Remove use of
12568 m_entries_vec, and store more information into m_entries_hash.
12569 (completion_tracker::recompute_lcd_visitor): New function, most
12570 content taken from...
12571 (completion_tracker::recompute_lowest_common_denominator):
12572 ...here, this now just visits each item in the hash calling the
12573 above visitor.
12574 (completion_tracker::build_completion_result): Remove use of
12575 m_entries_vec, call recompute_lowest_common_denominator.
12576 * completer.h (completion_tracker::have_completions): Remove use
12577 of m_entries_vec.
12578 (completion_tracker::completion_hash_entry): Declare new class.
12579 (completion_tracker::recompute_lowest_common_denominator): Change
12580 function signature.
12581 (completion_tracker::recompute_lcd_visitor): Declare new function.
12582 (completion_tracker::m_entries_vec): Delete.
12583 (completion_tracker::m_entries_hash): Initialize to NULL.
12584 (completion_tracker::m_lowest_common_denominator_valid): New
12585 member variable.
12586 (completion_tracker::m_lowest_common_denominator_max_length): New
12587 member variable.
12588
12589 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12590
12591 * regformats/regdef.h: Put reg in gdb namespace.
12592
12593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12594
12595 * i386-bsd-nat.c (gdb_ptrace): New.
12596 * (i386bsd_fetch_inferior_registers,
12597 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12598 * (i386bsd_fetch_inferior_registers,
12599 i386bsd_store_inferior_registers) Use gdb_ptrace.
12600
12601 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12602
12603 * amd64-bsd-nat.c (gdb_ptrace): New.
12604 * (amd64bsd_fetch_inferior_registers,
12605 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12606 * (amd64bsd_fetch_inferior_registers,
12607 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12608
12609 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12610
12611 * user-regs.c (user_reg::read): Rename to...
12612 (user_reg::xread): ...this.
12613 * (append_user_reg): Rename argument `read' to `xread'.
12614 * (user_reg_add_builtin): Likewise.
12615 * (user_reg_add): Likewise.
12616 * (value_of_user_reg): Likewise.
12617
12618 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12619
12620 * sparc-nat.c (gdb_ptrace): New.
12621 * sparc-nat.c (sparc_fetch_inferior_registers)
12622 (sparc_store_inferior_registers) Remove obsolete comment.
12623 * sparc-nat.c (sparc_fetch_inferior_registers)
12624 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12625 * sparc-nat.c (sparc_fetch_inferior_registers)
12626 (sparc_store_inferior_registers) Use gdb_ptrace.
12627
12628 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12629
12630 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12631 it to the ptrace call.
12632 * sh-nbsd-nat.c (store_registers): Likewise.
12633
12634 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12635
12636 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12637 nbsd_nat_target instead of inf_ptrace_target.
12638 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12639 nbsd_nat_target.
12640
12641 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12642
12643 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12644
12645 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12646
12647 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12648 <sys/sysctl.h>.
12649 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12650
12651 2020-03-17 Tom de Vries <tdevries@suse.de>
12652
12653 PR gdb/23710
12654 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12655 fields.
12656 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12657 fields.
12658 (process_imported_unit_die): Skip import of c++ CUs.
12659
12660 2020-03-16 Tom Tromey <tom@tromey.com>
12661
12662 * p-valprint.c (pascal_object_print_value): Initialize
12663 base_value.
12664
12665 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12666 Shahab Vahedi <shahab@synopsys.com>
12667
12668 * Makefile.in: Add arch/arc.o
12669 * configure.tgt: Likewise.
12670 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12671 (_initialize_arc_tdep): Don't initialize old target descriptions.
12672 (arc_read_description): New function to cache target descriptions.
12673 * arc-tdep.h (arc_read_description): Add proto type.
12674 * arch/arc.c: New file.
12675 * arch/arc.h: Likewise.
12676 * features/Makefile: Replace old target descriptions with new.
12677 * features/arc-arcompact.c: Remove.
12678 * features/arc-arcompact.xml: Likewise.
12679 * features/arc-v2.c: Likewise
12680 * features/arc-v2.xml: Likewise
12681 * features/arc/aux-arcompact.xml: New file.
12682 * features/arc/aux-v2.xml: Likewise.
12683 * features/arc/core-arcompact.xml: Likewise.
12684 * features/arc/core-v2.xml: Likewise.
12685 * features/arc/aux-arcompact.c: Generate.
12686 * features/arc/aux-v2.c: Likewise.
12687 * features/arc/core-arcompact.c: Likewise.
12688 * features/arc/core-v2.c: Likewise.
12689 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12690
12691 2020-03-16 Tom Tromey <tromey@adacore.com>
12692
12693 PR gdb/25663:
12694 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12695 putting value into bcache.
12696
12697 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12698
12699 PR gdb/21500
12700 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12701 to...
12702 (amd64_windows_init_abi_common): ... this. Don't set size of
12703 long type.
12704 (amd64_windows_init_abi): New function.
12705 (amd64_cygwin_init_abi): New function.
12706 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12707 the Cygwin OS ABI.
12708 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12709 comment.
12710
12711 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12712
12713 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12714 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12715 (pe_import_directory_entry): New struct type.
12716 (is_linked_with_cygwin_dll): New function.
12717 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12718 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12719 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12720
12721 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12722
12723 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12724 i386_cygwin_core_osabi_sniffer.
12725
12726 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12727
12728 * i386-cygwin-tdep.c: Rename to...
12729 * i386-windows-tdep.c: ... this.
12730 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12731 i386-windows-tdep.c.
12732 * configure.tgt: Likewise.
12733
12734 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12735
12736 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12737 * osabi.c (gdb_osabi_names): Add "Windows".
12738 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12739 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12740 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12741 i386_cygwin_osabi_sniffer.
12742 (_initialize_i386_cygwin_tdep): Register OS ABI
12743 GDB_OSABI_WINDOWS for i386.
12744 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12745 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12746 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12747 for x86-64.
12748 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12749 when the target matches '*-*-mingw*'.
12750
12751 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12752
12753 * defs.h (enum gdb_osabi): Move to...
12754 * osabi.h (enum gdb_osabi): ... here.
12755 * gdbarch.sh: Include osabi.h in gdbarch.h.
12756 * gdbarch.h: Re-generate.
12757
12758 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12759
12760 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12761 function.
12762 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12763
12764 2020-03-14 Tom Tromey <tom@tromey.com>
12765
12766 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12767 for C++.
12768 (c_type_print_modifier): Likewise. Add "language" parameter.
12769 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12770 (c_type_print_base_1): Update.
12771 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12772 constants.
12773 * type-stack.c (type_stack::insert): Handle tp_atomic and
12774 tp_restrict.
12775 (type_stack::follow_type_instance_flags): Likewise.
12776 (type_stack::follow_types): Likewise. Merge type-following code.
12777 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12778 (space_identifier, cv_with_space_id)
12779 (const_or_volatile_or_space_identifier_noopt)
12780 (const_or_volatile_or_space_identifier): Remove.
12781 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12782 rules.
12783 (ptr_operator, typebase): Update.
12784 (enum token_flag) <FLAG_C>: New constant.
12785 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12786 "_Atomic".
12787 (lex_one_token): Handle FLAG_C.
12788
12789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12790
12791 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12792 it to the ptrace call.
12793 * m68k-bsd-nat.c (store_registers): Likewise.
12794
12795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12796
12797 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12798 gdb_byte *.
12799 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12800 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12801 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12802
12803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12804
12805 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12806 nbsd_nat_target instead of inf_ptrace_target.
12807 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12808 nbsd_nat_target.
12809
12810 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12811
12812 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12813 register_t.
12814
12815 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12816
12817 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12818 it to the ptrace call.
12819 * alpha-bsd-nat.c (store_registers): Likewise.
12820
12821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12822
12823 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12824 includes.
12825 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12826 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12827 fill_fpregset): Likewise.
12828
12829 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12830
12831 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12832 nbsd_nat_target instead of inf_ptrace_target.
12833 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12834 nbsd_nat_target.
12835
12836 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12837
12838 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12839 register_t.
12840
12841 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12842
12843 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12844 it to the ptrace call.
12845 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12846 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12847 * arm-nbsd-nat.c (store_register): Likewise.
12848 * arm-nbsd-nat.c (store_regs): Likewise.
12849 * arm-nbsd-nat.c (store_fp_register): Likewise.
12850 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12851
12852 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12853
12854 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12855 nbsd_nat_target instead of inf_ptrace_target.
12856 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12857 nbsd_nat_target.
12858
12859 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12860
12861 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12862 it to the ptrace call.
12863 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12864
12865 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12866
12867 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12868 it to the ptrace call.
12869 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12870
12871 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12872
12873 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12874 gdb_byte *.
12875 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12876
12877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12878
12879 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12880 instead of inf_ptrace_target.
12881 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12882 nbsd_nat_target.
12883
12884 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12885
12886 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12887 register_t.
12888
12889 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12890
12891 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12892 register_t.
12893
12894 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12895
12896 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12897 register_t.
12898
12899 2020-03-13 Tom Tromey <tom@tromey.com>
12900
12901 * value.h (val_print): Don't declare.
12902 * valprint.h (val_print_array_elements)
12903 (val_print_scalar_formatted, generic_val_print): Don't declare.
12904 * valprint.c (generic_val_print_array): Take a struct value.
12905 (generic_val_print_ptr, generic_val_print_memberptr)
12906 (generic_val_print_bool, generic_val_print_int)
12907 (generic_val_print_char, generic_val_print_complex)
12908 (generic_val_print): Remove.
12909 (generic_value_print): Update.
12910 (do_val_print): Remove unused parameters. Don't call
12911 la_val_print.
12912 (val_print): Remove.
12913 (common_val_print): Update. Don't call value_check_printable.
12914 (val_print_scalar_formatted, val_print_array_elements): Remove.
12915 * rust-lang.c (rust_val_print): Remove.
12916 (rust_language_defn): Update.
12917 * p-valprint.c (pascal_val_print): Remove.
12918 (pascal_value_print_inner): Update.
12919 (pascal_object_print_val_fields, pascal_object_print_val):
12920 Remove.
12921 (pascal_object_print_static_field): Update.
12922 * p-lang.h (pascal_val_print): Don't declare.
12923 * p-lang.c (pascal_language_defn): Update.
12924 * opencl-lang.c (opencl_language_defn): Update.
12925 * objc-lang.c (objc_language_defn): Update.
12926 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12927 * m2-lang.h (m2_val_print): Don't declare.
12928 * m2-lang.c (m2_language_defn): Update.
12929 * language.h (struct language_defn) <la_val_print>: Remove.
12930 * language.c (unk_lang_value_print_inner): Rename. Change
12931 argument types.
12932 (unknown_language_defn, auto_language_defn): Update.
12933 * go-valprint.c (go_val_print): Remove.
12934 * go-lang.h (go_val_print): Don't declare.
12935 * go-lang.c (go_language_defn): Update.
12936 * f-valprint.c (f_val_print): Remove.
12937 * f-lang.h (f_value_print): Don't declare.
12938 * f-lang.c (f_language_defn): Update.
12939 * d-valprint.c (d_val_print): Remove.
12940 * d-lang.h (d_value_print): Don't declare.
12941 * d-lang.c (d_language_defn): Update.
12942 * cp-valprint.c (cp_print_value_fields)
12943 (cp_print_value_fields_rtti, cp_print_value): Remove.
12944 (cp_print_static_field): Update.
12945 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12946 (c_val_print_struct, c_val_print_union, c_val_print_int)
12947 (c_val_print_memberptr, c_val_print): Remove.
12948 * c-lang.h (c_val_print_array, cp_print_value_fields)
12949 (cp_print_value_fields_rtti): Don't declare.
12950 * c-lang.c (c_language_defn, cplus_language_defn)
12951 (asm_language_defn, minimal_language_defn): Update.
12952 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12953 (ada_val_print_enum): Take a struct value.
12954 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12955 (ada_val_print): Remove.
12956 (ada_value_print_1): Update.
12957 (printable_val_type): Remove.
12958 * ada-lang.h (ada_val_print): Don't declare.
12959 * ada-lang.c (ada_language_defn): Update.
12960
12961 2020-03-13 Tom Tromey <tom@tromey.com>
12962
12963 * valprint.c (do_val_print): Update.
12964 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12965 a struct value.
12966 (value_to_value_object_no_release): Declare.
12967 * python/py-value.c (value_to_value_object_no_release): New
12968 function.
12969 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12970 struct value.
12971 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12972 function.
12973 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12974 a struct value.
12975 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12976 Declare.
12977 (gdbscm_apply_val_pretty_printer): Take a struct value.
12978 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12979 value.
12980 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12981 value.
12982 * extension-priv.h (struct extension_language_ops)
12983 <apply_val_pretty_printer>: Take a struct value.
12984 * cp-valprint.c (cp_print_value): Create a struct value.
12985 (cp_print_value): Update.
12986
12987 2020-03-13 Tom Tromey <tom@tromey.com>
12988
12989 * ada-valprint.c (print_field_values): Call common_val_print.
12990
12991 2020-03-13 Tom Tromey <tom@tromey.com>
12992
12993 * ada-valprint.c (val_print_packed_array_elements): Remove
12994 bitoffset and val parameters. Call common_val_print.
12995 (ada_val_print_string): Remove offset, address, and original_value
12996 parameters.
12997 (ada_val_print_array): Update.
12998 (ada_value_print_array): New function.
12999 (ada_value_print_1): Call it.
13000
13001 2020-03-13 Tom Tromey <tom@tromey.com>
13002
13003 * ada-valprint.c (ada_value_print): Use common_val_print.
13004
13005 2020-03-13 Tom Tromey <tom@tromey.com>
13006
13007 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13008
13009 2020-03-13 Tom Tromey <tom@tromey.com>
13010
13011 * ada-valprint.c (ada_value_print_num): New function.
13012 (ada_value_print_1): Use it.
13013
13014 2020-03-13 Tom Tromey <tom@tromey.com>
13015
13016 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13017
13018 2020-03-13 Tom Tromey <tom@tromey.com>
13019
13020 * ada-valprint.c (ada_value_print_ptr): New function.
13021 (ada_value_print_1): Use it.
13022
13023 2020-03-13 Tom Tromey <tom@tromey.com>
13024
13025 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13026 call common_val_print.
13027 (ada_val_print_1): Update.
13028 (ada_value_print_1): New function.
13029 (ada_value_print_inner): Rewrite.
13030
13031 2020-03-13 Tom Tromey <tom@tromey.com>
13032
13033 * cp-valprint.c (cp_print_value_fields): Update.
13034 (cp_print_value): New function.
13035
13036 2020-03-13 Tom Tromey <tom@tromey.com>
13037
13038 * m2-valprint.c (m2_value_print_inner): Use
13039 cp_print_value_fields.
13040 * cp-valprint.c (cp_print_value_fields): New function.
13041 * c-valprint.c (c_value_print_struct): New function.
13042 (c_value_print_inner): Use c_value_print_struct.
13043 * c-lang.h (cp_print_value_fields): Declare.
13044
13045 2020-03-13 Tom Tromey <tom@tromey.com>
13046
13047 * c-valprint.c (c_value_print_array): New function.
13048 (c_value_print_inner): Use it.
13049
13050 2020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * c-valprint.c (c_value_print_memberptr): New function.
13053 (c_value_print_inner): Use it.
13054
13055 2020-03-13 Tom Tromey <tom@tromey.com>
13056
13057 * c-valprint.c (c_value_print_int): New function.
13058 (c_value_print_inner): Use it.
13059
13060 2020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * c-valprint.c (c_value_print_ptr): New function.
13063 (c_value_print_inner): Use it.
13064
13065 2020-03-13 Tom Tromey <tom@tromey.com>
13066
13067 * c-valprint.c (c_value_print_inner): Rewrite.
13068
13069 2020-03-13 Tom Tromey <tom@tromey.com>
13070
13071 * valprint.c (generic_value_print_complex): New function.
13072 (generic_value_print): Use it.
13073
13074 2020-03-13 Tom Tromey <tom@tromey.com>
13075
13076 * valprint.c (generic_val_print_float): Don't call
13077 val_print_scalar_formatted.
13078 (generic_val_print, generic_value_print): Update.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * valprint.c (generic_value_print_char): New function
13083 (generic_value_print): Use it.
13084
13085 2020-03-13 Tom Tromey <tom@tromey.com>
13086
13087 * valprint.c (generic_value_print_int): New function.
13088 (generic_value_print): Use it.
13089
13090 2020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * valprint.c (generic_value_print_bool): New function.
13093 (generic_value_print): Use it.
13094
13095 2020-03-13 Tom Tromey <tom@tromey.com>
13096
13097 * valprint.c (generic_val_print_func): Simplify.
13098 (generic_val_print, generic_value_print): Update.
13099
13100 2020-03-13 Tom Tromey <tom@tromey.com>
13101
13102 * valprint.c (generic_val_print_flags): Remove.
13103 (generic_val_print, generic_value_print): Update.
13104 (val_print_type_code_flags): Add original_value parameter.
13105
13106 2020-03-13 Tom Tromey <tom@tromey.com>
13107
13108 * valprint.c (generic_val_print): Update.
13109 (generic_value_print): Update.
13110 * valprint.c (generic_val_print_enum): Don't call
13111 val_print_scalar_formatted.
13112
13113 2020-03-13 Tom Tromey <tom@tromey.com>
13114
13115 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13116 * valprint.c (generic_value_print_ptr): New function.
13117
13118 2020-03-13 Tom Tromey <tom@tromey.com>
13119
13120 * valprint.c (generic_value_print): Rewrite.
13121
13122 2020-03-13 Tom Tromey <tom@tromey.com>
13123
13124 * p-valprint.c (pascal_object_print_value_fields)
13125 (pascal_object_print_value): New functions.
13126
13127 2020-03-13 Tom Tromey <tom@tromey.com>
13128
13129 * p-valprint.c (pascal_value_print_inner): Rewrite.
13130
13131 2020-03-13 Tom Tromey <tom@tromey.com>
13132
13133 * f-valprint.c (f_value_print_innner): Rewrite.
13134
13135 2020-03-13 Tom Tromey <tom@tromey.com>
13136
13137 * m2-valprint.c (m2_print_unbounded_array): New overload.
13138 (m2_print_unbounded_array): Update.
13139 (m2_print_array_contents): Take a struct value.
13140 (m2_value_print_inner): Rewrite.
13141
13142 2020-03-13 Tom Tromey <tom@tromey.com>
13143
13144 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13145 (d_value_print_inner): New function.
13146 * d-lang.h (d_value_print_inner): Declare.
13147 * d-lang.c (d_language_defn): Use d_value_print_inner.
13148
13149 2020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * go-valprint.c (go_value_print_inner): New function.
13152 * go-lang.h (go_value_print_inner): Declare.
13153 * go-lang.c (go_language_defn): Use go_value_print_inner.
13154
13155 2020-03-13 Tom Tromey <tom@tromey.com>
13156
13157 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13158 API.
13159 (rust_val_print): Rewrite.
13160 (rust_value_print_inner): New function, from rust_val_print.
13161 (rust_language_defn): Use rust_value_print_inner.
13162
13163 2020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * ada-valprint.c (ada_value_print_inner): New function.
13166 * ada-lang.h (ada_value_print_inner): Declare.
13167 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13168
13169 2020-03-13 Tom Tromey <tom@tromey.com>
13170
13171 * f-valprint.c (f_value_print_innner): New function.
13172 * f-lang.h (f_value_print_innner): Declare.
13173 * f-lang.c (f_language_defn): Use f_value_print_innner.
13174
13175 2020-03-13 Tom Tromey <tom@tromey.com>
13176
13177 * p-valprint.c (pascal_value_print_inner): New function.
13178 * p-lang.h (pascal_value_print_inner): Declare.
13179 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13180
13181 2020-03-13 Tom Tromey <tom@tromey.com>
13182
13183 * m2-valprint.c (m2_value_print_inner): New function.
13184 * m2-lang.h (m2_value_print_inner): Declare.
13185 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13186
13187 2020-03-13 Tom Tromey <tom@tromey.com>
13188
13189 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13190 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13191 * c-valprint.c (c_value_print_inner): New function.
13192 * c-lang.h (c_value_print_inner): Declare.
13193 * c-lang.c (c_language_defn, cplus_language_defn)
13194 (asm_language_defn, minimal_language_defn): Use
13195 c_value_print_inner.
13196
13197 2020-03-13 Tom Tromey <tom@tromey.com>
13198
13199 * p-valprint.c (pascal_object_print_value_fields): Now static.
13200 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13201
13202 2020-03-13 Tom Tromey <tom@tromey.com>
13203
13204 * c-valprint.c (c_val_print_array): Simplify.
13205
13206 2020-03-13 Tom Tromey <tom@tromey.com>
13207
13208 * valprint.c (value_print_array_elements): New function.
13209 * valprint.h (value_print_array_elements): Declare.
13210
13211 2020-03-13 Tom Tromey <tom@tromey.com>
13212
13213 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13214 * mips-tdep.c (mips_print_register): Use
13215 value_print_scalar_formatted.
13216
13217 2020-03-13 Tom Tromey <tom@tromey.com>
13218
13219 * valprint.h (value_print_scalar_formatted): Declare.
13220 * valprint.c (value_print_scalar_formatted): New function.
13221
13222 2020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * valprint.h (generic_value_print): Declare.
13225 * valprint.c (generic_value_print): New function.
13226
13227 2020-03-13 Tom Tromey <tom@tromey.com>
13228
13229 * valprint.c (do_val_print): Call la_value_print_inner, if
13230 available.
13231 * rust-lang.c (rust_language_defn): Update.
13232 * p-lang.c (pascal_language_defn): Update.
13233 * opencl-lang.c (opencl_language_defn): Update.
13234 * objc-lang.c (objc_language_defn): Update.
13235 * m2-lang.c (m2_language_defn): Update.
13236 * language.h (struct language_defn) <la_value_print_inner>: New
13237 member.
13238 * language.c (unknown_language_defn, auto_language_defn): Update.
13239 * go-lang.c (go_language_defn): Update.
13240 * f-lang.c (f_language_defn): Update.
13241 * d-lang.c (d_language_defn): Update.
13242 * c-lang.c (c_language_defn, cplus_language_defn)
13243 (asm_language_defn, minimal_language_defn): Update.
13244 * ada-lang.c (ada_language_defn): Update.
13245
13246 2020-03-13 Tom Tromey <tom@tromey.com>
13247
13248 * c-valprint.c (c_value_print): Use common_val_print.
13249
13250 2020-03-13 Tom Tromey <tom@tromey.com>
13251
13252 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13253
13254 2020-03-13 Tom Tromey <tom@tromey.com>
13255
13256 * f-valprint.c (f77_print_array_1, f_val_print): Use
13257 common_val_print.
13258
13259 2020-03-13 Tom Tromey <tom@tromey.com>
13260
13261 * riscv-tdep.c (riscv_print_one_register_info): Use
13262 common_val_print.
13263
13264 2020-03-13 Tom Tromey <tom@tromey.com>
13265
13266 * mi/mi-main.c (output_register): Use common_val_print.
13267
13268 2020-03-13 Tom Tromey <tom@tromey.com>
13269
13270 * infcmd.c (default_print_one_register_info): Use
13271 common_val_print.
13272
13273 2020-03-13 Tom Tromey <tom@tromey.com>
13274
13275 * valprint.h (common_val_print_checked): Declare.
13276 * valprint.c (common_val_print_checked): New function.
13277 * stack.c (print_frame_arg): Use common_val_print_checked.
13278
13279 2020-03-13 Tom Tromey <tom@tromey.com>
13280
13281 * valprint.c (do_val_print): New function, from val_print.
13282 (val_print): Use do_val_print.
13283 (common_val_print): Use do_val_print.
13284
13285 2020-03-13 Tom Tromey <tom@tromey.com>
13286
13287 * valprint.c (value_print): Use scoped_value_mark.
13288
13289 2020-03-13 Tom de Vries <tdevries@suse.de>
13290
13291 PR symtab/25646
13292 * psymtab.c (partial_symtab::partial_symtab): Don't set
13293 globals_offset and statics_offset. Push element onto
13294 current_global_psymbols and current_static_psymbols stacks.
13295 (concat): New function.
13296 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13297 element from current_global_psymbols and current_static_psymbols
13298 stacks. Concat popped elements to global_psymbols and
13299 static_symbols.
13300 (add_psymbol_to_list): Use current_global_psymbols and
13301 current_static_psymbols stacks.
13302 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13303 current_static_psymbols fields.
13304
13305 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13306
13307 * corelow.c (sniff_core_bfd): Remove.
13308 (class core_target) <m_core_vec>: Remove.
13309 (core_target::core_target): Update.
13310 (core_file_fns): Remove.
13311 (deprecated_add_core_fns): Remove.
13312 (default_core_sniffer): Remove.
13313 (sniff_core_bfd): Remove.
13314 (default_check_format): Remove.
13315 (gdb_check_format): Remove.
13316 (core_target_open): Update.
13317 (core_target::get_core_register_section): Update.
13318 (get_core_registers_cb): Update.
13319 (core_target::fetch_registers): Update.
13320 * gdbcore.h (struct core_fns): Remove.
13321 (deprecated_add_core_fns): Remove.
13322 (default_core_sniffer): Remove.
13323 (default_check_format): Remove.
13324
13325 2020-03-12 Tom Tromey <tom@tromey.com>
13326
13327 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13328 CORE_ADDR.
13329 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13330
13331 2020-03-12 Tom Tromey <tom@tromey.com>
13332
13333 * remote.c (remote_target::download_tracepoint)
13334 (remote_target::enable_tracepoint)
13335 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13336 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13337 sprintf_vma.
13338
13339 2020-03-12 Tom Tromey <tom@tromey.com>
13340
13341 * symfile-mem.c: Update CORE_ADDR size assert.
13342
13343 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13344
13345 * selftest.m4: Move to gdbsupport/.
13346 * acinclude.m4: Update path to selftest.m4.
13347
13348 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13349
13350 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13351 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13352 gdbarch-selfselftests.c and selftest-arch.c.
13353 (SUBDIR_UNITTESTS_OBS): Rename to...
13354 (SELFTESTS_OBS): ... this.
13355 (COMMON_SFILES): Remove disasm-selftests.c and
13356 gdbarch-selftests.c.
13357 * configure.ac: Don't add selftest-arch.{c,o} to
13358 CONFIG_{SRCS,OBS}.
13359 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13360 preprocessor conditions.
13361
13362 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * configure.ac: Don't source bfd/development.sh.
13365 * selftest.m4: Modify comment.
13366 * configure: Re-generate.
13367
13368 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13369
13370 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13371 not "true" or "false".
13372 * configure: Re-generate.
13373
13374 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13375
13376 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13377 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13378 renamed to arm_nbsd_supply_gregset.
13379 (fetch_register): Update to call arm_nbsd_supply_gregset.
13380 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13381 (arm_netbsd_nat_target::fetch_registers): Update.
13382 (fetch_elfcore_registers): Removed.
13383 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13384 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13385 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13386 not require NetBSD system headers.
13387 (arm_nbsd_regset): New struct.
13388 (arm_nbsd_iterate_over_regset_sections): New function.
13389 (arm_netbsd_init_abi_common): Updated to call
13390 set_gdbarch_iterate_over_regset_sections.
13391 * arm-nbsd-tdep.h: New file.
13392
13393 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13394
13395 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13396 recursion.
13397
13398 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13399
13400 * configure: Re-generate.
13401
13402 2020-03-11 Tom Tromey <tromey@adacore.com>
13403
13404 * ada-typeprint.c (print_choices): Fix comment.
13405
13406 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13407
13408 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13409 previous item in the list, when the list has no items.
13410
13411 2020-03-11 Tom de Vries <tdevries@suse.de>
13412
13413 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13414 PROP_LOCLIST handling code.
13415
13416 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13417
13418 * buildsym-legacy.c (record_line): Pass extra parameter to
13419 record_line.
13420 * buildsym.c (buildsym_compunit::record_line): Take an extra
13421 parameter, reduce duplication in the line table, and record the
13422 is_stmt flag in the line table.
13423 * buildsym.h (buildsym_compunit::record_line): Add extra
13424 parameter.
13425 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13426 non-statement lines.
13427 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13428 this to the symtab builder.
13429 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13430 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13431 through to dwarf_record_line_1.
13432 * infrun.c (process_event_stop_test): When stepping, don't stop at
13433 a non-statement instruction, and only refresh the step info when
13434 we land in the middle of a line's range. Also add an extra
13435 comment.
13436 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13437 field.
13438 * record-btrace.c (btrace_find_line_range): Only record lines
13439 marked as is-statement.
13440 * stack.c (frame_show_address): Show the frame address if we are
13441 in a non-statement sal.
13442 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13443 (maintenance_print_one_line_table): Print a header for the is_stmt
13444 column, and include is_stmt information in the output.
13445 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13446 preference to non-statements.
13447 (find_pcs_for_symtab_line): Prefer is-statement entries.
13448 (find_line_common): Likewise.
13449 * symtab.h (struct linetable_entry): Add is_stmt field.
13450 (struct symtab_and_line): Likewise.
13451 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13452 arranging the line table.
13453
13454 2020-03-07 Tom de Vries <tdevries@suse.de>
13455
13456 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13457 DIE.
13458
13459 2020-03-07 Tom Tromey <tom@tromey.com>
13460
13461 * valops.c (value_literal_complex): Remove obsolete comment.
13462 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13463 comment.
13464
13465 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13466
13467 * infrun.h: Forward-declare thread_info.
13468 (set_step_info): Add thread_info parameter, add doc.
13469 * infrun.c (set_step_info): Add thread_info parameter, move doc
13470 to header.
13471 * infrun.c (process_event_stop_test): Pass thread to
13472 set_step_info call.
13473 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13474 set_step_info.
13475 (prepare_one_step): Add thread_info parameter, pass it to
13476 set_step_frame and prepare_one_step (recursive) call.
13477 (step_1): Pass thread to prepare_one_step call.
13478 (step_command_fsm::should_stop): Pass thread to
13479 prepare_one_step.
13480 (until_next_fsm): Pass thread to set_step_frame call.
13481 (finish_command): Pass thread to set_step_info call.
13482
13483 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13484
13485 * windows-tdep.c (windows_solib_create_inferior_hook):
13486 Check if inferior is running.
13487
13488 2020-03-06 Tom de Vries <tdevries@suse.de>
13489
13490 * NEWS: Fix "the the".
13491 * ctfread.c: Same.
13492
13493 2020-03-06 Tom de Vries <tdevries@suse.de>
13494
13495 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13496
13497 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13498
13499 * .dir-locals.el: Add a comment referencing the other copies of
13500 this file.
13501
13502 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13503
13504 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13505 psargs.
13506
13507 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13508
13509 * .gitattributes: New file.
13510
13511 2020-03-04 Tom Tromey <tom@tromey.com>
13512
13513 * symmisc.c (print_symbol_bcache_statistics)
13514 (print_objfile_statistics): Update.
13515 * symfile.c (allocate_symtab): Use intern.
13516 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13517 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13518 macro_cache>: Remove.
13519 <string_cache>: New member.
13520 (struct objfile) <intern>: New methods.
13521 * elfread.c (elf_symtab_read): Use intern.
13522 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13523 (dwarf2_compute_name, dwarf2_physname)
13524 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13525 names.
13526 (guess_partial_die_structure_name): Update.
13527 (partial_die_info::fixup): Intern name.
13528 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13529 name.
13530 (dwarf2_name): Intern name. Update.
13531 * buildsym.c (buildsym_compunit::get_macro_table): Use
13532 string_cache.
13533
13534 2020-03-04 Tom Tromey <tom@tromey.com>
13535
13536 * jit.c (bfd_open_from_target_memory): Make "target" const.
13537 * corefile.c (gnutarget): Now const.
13538 * gdbcore.h (gnutarget): Now const.
13539
13540 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13541
13542 * NEWS: Mention support for WOW64 processes.
13543 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13544 (amd64_windows_segment_register_p): Remove static.
13545 (_initialize_amd64_windows_nat): Update.
13546 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13547 * i386-windows-nat.c (context_offset): Update.
13548 (i386_mappings): Rename and remove static.
13549 (i386_windows_segment_register_p): Remove static.
13550 (_initialize_i386_windows_nat): Update.
13551 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13552 (STATUS_WX86_SINGLE_STEP): New macro.
13553 (EnumProcessModulesEx): New macro.
13554 (Wow64SuspendThread): New macro.
13555 (Wow64GetThreadContext): New macro.
13556 (Wow64SetThreadContext): New macro.
13557 (Wow64GetThreadSelectorEntry): New macro.
13558 (windows_set_context_register_offsets): Add static.
13559 (windows_set_segment_register_p): Likewise.
13560 (windows_add_thread): Adapt for WOW64 processes.
13561 (windows_fetch_one_register): Likewise.
13562 (windows_nat_target::fetch_registers): Likewise.
13563 (windows_store_one_register): Likewise.
13564 (display_selector): Likewise.
13565 (display_selectors): Likewise.
13566 (handle_exception): Likewise.
13567 (windows_continue): Likewise.
13568 (windows_nat_target::resume): Likewise.
13569 (windows_add_all_dlls): Likewise.
13570 (do_initial_windows_stuff): Likewise.
13571 (windows_nat_target::attach): Likewise.
13572 (windows_get_exec_module_filename): Likewise.
13573 (windows_nat_target::create_inferior): Likewise.
13574 (windows_xfer_siginfo): Likewise.
13575 (_initialize_loadable): Initialize Wow64SuspendThread,
13576 Wow64GetThreadContext, Wow64SetThreadContext,
13577 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13578 * windows-nat.h (windows_set_context_register_offsets):
13579 Remove declaration.
13580 (windows_set_segment_register_p): Likewise.
13581 (i386_windows_segment_register_p): Add declaration.
13582 (amd64_windows_segment_register_p): Likewise.
13583
13584 2020-03-04 Luis Machado <luis.machado@linaro.org>
13585
13586 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13587 in "info registers" for AArch64/ARM.
13588
13589 The change caused "info registers" to not print GPR's.
13590
13591 gdb/ChangeLog:
13592
13593 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13594
13595 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13596 when reg->group is empty and reggroup is not.
13597
13598 2020-03-03 Tom Tromey <tromey@adacore.com>
13599
13600 * dwarf2/frame.c (struct dwarf2_frame_cache)
13601 <checked_tailcall_bottom, entry_cfa_sp_offset,
13602 entry_cfa_sp_offset_p>: Remove members.
13603 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13604 (dwarf2_frame_prev_register): Don't call
13605 dwarf2_tailcall_sniffer_first.
13606 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13607 * frame-unwind.c (add_unwinder): New fuction.
13608 (frame_unwind_init): Use it. Add tailcall unwinder.
13609
13610 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13611 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13612
13613 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13614 value should be printed as true.
13615
13616 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13617
13618 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13619 (windows_init_abi): Set and use windows_so_ops.
13620
13621 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13622
13623 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13624 when verifying if dealing with a convenience variable.
13625
13626 2020-03-03 Luis Machado <luis.machado@linaro.org>
13627
13628 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13629
13630 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13631
13632 * infrun.c (gdbarch_supports_displaced_stepping): New.
13633 (use_displaced_stepping): Break up conditions in smaller pieces.
13634 Use gdbarch_supports_displaced_stepping.
13635 (displaced_step_prepare_throw): Use
13636 gdbarch_supports_displaced_stepping.
13637
13638 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13639
13640 * NEWS: Mention new behaviour of the history filename.
13641 * top.c (write_history_p): Add comment.
13642 (show_write_history_p): Add header comment, give a different
13643 message when history writing is on, but the history filename is
13644 empty.
13645 (history_filename): Add comment.
13646 (history_filename_empty): New function.
13647 (show_history_filename): Add header comment, give a different
13648 message when the filename is empty.
13649 (init_history): Compare history_filename against nullptr, and only
13650 read history if the filename is not empty.
13651 (set_history_filename): Add header comment, and only make
13652 non-empty filenames absolute.
13653 (init_main): Make the filename argument to 'set history filename'
13654 optional.
13655
13656 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13657
13658 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13659 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13660 (fetch_fp_register): Update.
13661 (fetch_fp_regs): Update.
13662 (store_fp_register): Update.
13663 (store_fp_regs): Update.
13664 (arm_netbsd_nat_target::read_description): New function.
13665 (fetch_elfcore_registers): Update.
13666
13667 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13668
13669 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13670 general_thread if the stop reply is missing a thread-id.
13671 (remote_target::process_stop_reply): Use the first non-exited
13672 thread if the target didn't pass a thread-id.
13673 * infrun.c (do_target_wait): Move call to
13674 switch_to_inferior_no_thread to ....
13675 (do_target_wait_1): ... here.
13676
13677 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13678
13679 * debuginfod-support.c: Include defs.h first.
13680
13681 2020-02-28 Tom de Vries <tdevries@suse.de>
13682
13683 * symfile.c (set_initial_language): Use default language for lookup.
13684
13685 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13686
13687 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13688 reader variable, pass `this` to read_cutu_die_from_dwo.
13689
13690 2020-02-27 Aaron Merey <amerey@redhat.com>
13691
13692 * source.c (open_source_file): Check for nullptr when computing
13693 srcpath.
13694
13695 2020-02-27 Tom Tromey <tromey@adacore.com>
13696
13697 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13698 member.
13699 (dwarf2_add_field): Don't update nfields.
13700 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13701
13702 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13703
13704 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13705 abs.
13706
13707 2020-02-26 Tom Tromey <tom@tromey.com>
13708
13709 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13710 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13711 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13712 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13713 per_cu_data.
13714
13715 2020-02-26 Tom Tromey <tom@tromey.com>
13716
13717 * dwarf2/index-write.c (psym_index_map): Change type.
13718 (add_address_entry_worker, write_one_signatured_type)
13719 (recursively_count_psymbols, recursively_write_psymbols)
13720 (class debug_names, psyms_seen_size, write_gdbindex)
13721 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13722
13723 2020-02-26 Aaron Merey <amerey@redhat.com>
13724
13725 * Makefile.in: Handle optional debuginfod support.
13726 * NEWS: Update.
13727 * README: Add --with-debuginfod summary.
13728 * config.in: Regenerate.
13729 * configure: Regenerate.
13730 * configure.ac: Handle optional debuginfod support.
13731 * debuginfod-support.c: debuginfod helper functions.
13732 * debuginfod-support.h: Ditto.
13733 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13734 summary.
13735 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13736 when a dwz file cannot be found.
13737 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13738 debuginfo file cannot be found.
13739 * source.c (open_source_file): Query debuginfod servers when a
13740 source file cannot be found.
13741 * top.c (print_gdb_configuration): Include
13742 --{with,without}-debuginfod in the output.
13743
13744 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13745
13746 * thread.c (thr_try_catch_cmd): Print thread name.
13747
13748 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13749
13750 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13751 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13752 dwarf2_fetch_die_type_sect_off): Move to...
13753 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13754 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13755 dwarf2_fetch_die_type_sect_off): ... here.
13756 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13757 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13758 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13759
13760 2020-02-26 Tom de Vries <tdevries@suse.de>
13761
13762 PR gdb/25603
13763 * symfile.c (set_initial_language): Exit-early if
13764 language_mode == language_mode_manual.
13765
13766 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13767
13768 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13769 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13770 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13771
13772 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13773
13774 * gdbtypes.c (create_array_type_with_stride): Handle negative
13775 array strides.
13776 * valarith.c (value_subscripted_rvalue): Likewise.
13777
13778 2020-02-25 Luis Machado <luis.machado@linaro.org>
13779
13780 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13781
13782 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13783
13784 * loc.h (dwarf2_get_die_type): Move to...
13785 * read.h (dwarf2_get_die_type): ... here.
13786 * read.c (dwarf2_get_die_type): Move doc to header.
13787
13788 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13789
13790 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13791 'gnulib/Makefile.in' to the list.
13792
13793 2020-02-24 Tom Tromey <tom@tromey.com>
13794
13795 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13796 Remove.
13797 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13798 XOBNEWVEC.
13799
13800 2020-02-24 Tom Tromey <tom@tromey.com>
13801
13802 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13803 New method.
13804 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13805 (dw2_do_instantiate_symtab, dw2_get_file_names)
13806 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13807
13808 2020-02-24 Tom Tromey <tom@tromey.com>
13809
13810 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13811 make_scoped_restore.
13812 (dwarf2_psymtab::read_symtab): Don't clear
13813 reading_partial_symbols.
13814
13815 2020-02-24 Tom de Vries <tdevries@suse.de>
13816
13817 PR gdb/25592
13818 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13819
13820 2020-02-24 Tom de Vries <tdevries@suse.de>
13821
13822 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13823 commands layout next/prev/regs.
13824
13825 2020-02-22 Tom Tromey <tom@tromey.com>
13826
13827 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13828 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13829
13830 2020-02-22 Tom Tromey <tom@tromey.com>
13831
13832 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13833
13834 2020-02-22 Tom Tromey <tom@tromey.com>
13835
13836 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13837 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13838 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13839 * tui/tui.c (_initialize_tui): Add usage text.
13840
13841 2020-02-22 Tom Tromey <tom@tromey.com>
13842
13843 * tui/tui-win.c (tui_set_focus_command)
13844 (tui_set_win_height_command): Use error_no_arg.
13845 (_initialize_tui_win): Update help text.
13846 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13847
13848 2020-02-22 Tom Tromey <tom@tromey.com>
13849
13850 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13851 * tui/tui-disasm.h (struct tui_disasm_window)
13852 <display_start_addr>: Declare.
13853 * tui/tui-source.h (struct tui_source_window)
13854 <display_start_addr>: Declare.
13855 * tui/tui-winsource.h (struct tui_source_window_base)
13856 <show_source_line, display_start_addr>: New methods.
13857 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13858 Rename and move to protected section.
13859 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13860 (tui_source_window_base::do_erase_source_content): Update.
13861 (tui_source_window_base::show_source_line): Now a method.
13862 (tui_source_window_base::show_source_content)
13863 (tui_source_window_base::tui_source_window_base)
13864 (tui_source_window_base::rerender)
13865 (tui_source_window_base::refill)
13866 (tui_source_window_base::do_scroll_horizontal)
13867 (tui_source_window_base::set_is_exec_point_at)
13868 (tui_source_window_base::update_breakpoint_info)
13869 (tui_source_window_base::update_exec_info): Update.
13870 * tui/tui-source.c (tui_source_window::set_contents)
13871 (tui_source_window::showing_source_p)
13872 (tui_source_window::do_scroll_vertical)
13873 (tui_source_window::location_matches_p)
13874 (tui_source_window::line_is_displayed): Update.
13875 (tui_source_window::display_start_addr): New method.
13876 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13877 (tui_disasm_window::do_scroll_vertical)
13878 (tui_disasm_window::location_matches_p): Update.
13879 (tui_disasm_window::display_start_addr): New method.
13880
13881 2020-02-22 Tom Tromey <tom@tromey.com>
13882
13883 * NEWS: Add entry for gdb.register_window_type.
13884 * tui/tui-layout.h (window_factory): New typedef.
13885 (tui_register_window): Declare.
13886 * tui/tui-layout.c (saved_tui_windows): New global.
13887 (tui_apply_current_layout): Use it.
13888 (tui_register_window): New function.
13889 * python/python.c (do_start_initialization): Call
13890 gdbpy_initialize_tui.
13891 (python_GdbMethods): Add "register_window_type" function.
13892 * python/python-internal.h (gdbpy_register_tui_window)
13893 (gdbpy_initialize_tui): Declare.
13894 * python/py-tui.c: New file.
13895 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13896
13897 2020-02-22 Tom Tromey <tom@tromey.com>
13898
13899 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13900
13901 2020-02-22 Tom Tromey <tom@tromey.com>
13902
13903 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13904 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13905 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13906 (tui_set_win_focus_to): Move from tui-win.c.
13907
13908 2020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13911 functions.
13912 (known_window_types): New global.
13913 (tui_get_window_by_name): Reimplement.
13914 (initialize_known_windows): New function.
13915 (validate_window_name): Rewrite.
13916 (_initialize_tui_layout): Call initialize_known_windows.
13917
13918 2020-02-22 Tom Tromey <tom@tromey.com>
13919
13920 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13921 Remove constants.
13922 * tui/tui-winsource.h (struct tui_source_window_base)
13923 <tui_source_window_base>: Remove parameter.
13924 * tui/tui-winsource.c
13925 (tui_source_window_base::tui_source_window_base): Remove
13926 parameter.
13927 (tui_source_window_base::refill): Update.
13928 * tui/tui-stack.h (struct tui_locator_window)
13929 <tui_locator_window>: Update.
13930 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13931 Default the constructor.
13932 * tui/tui-regs.h (struct tui_data_item_window)
13933 <tui_data_item_window>: Default the constructor.
13934 (struct tui_data_window) <tui_data_window>: Likewise.
13935 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13936 Default the constructor.
13937 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13938 Default the constructor.
13939 <type>: Remove.
13940 (struct tui_win_info) <tui_win_info>: Default the constructor.
13941 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13942 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13943 Default the constructor.
13944
13945 2020-02-22 Tom Tromey <tom@tromey.com>
13946
13947 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13948 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13949 * tui/tui-win.c (tui_resize_all): Don't call
13950 tui_delete_invisible_windows.
13951 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13952 done.
13953 (tui_set_layout): Update.
13954 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13955 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13956 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13957
13958 2020-02-22 Tom Tromey <tom@tromey.com>
13959
13960 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13961 correctly.
13962
13963 2020-02-22 Tom Tromey <tom@tromey.com>
13964
13965 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13966
13967 2020-02-22 Tom Tromey <tom@tromey.com>
13968
13969 * tui/tui-winsource.h (struct tui_source_window_iterator)
13970 <inner_iterator>: New etytypedef.
13971 <tui_source_window_iterator>: Take "end" parameter.
13972 <tui_source_window_iterator>: Take iterator.
13973 <operator*, advance>: Update.
13974 <m_iter>: Change type.
13975 <m_end>: New field.
13976 (struct tui_source_windows) <begin, end>: Update.
13977 * tui/tui-layout.c (tui_windows): New global.
13978 (tui_apply_current_layout): Clear tui_windows.
13979 (tui_layout_window::apply): Update tui_windows.
13980 * tui/tui-data.h (tui_windows): Declare.
13981 (all_tui_windows): Now inline function.
13982 (class tui_window_iterator, struct all_tui_windows): Remove.
13983
13984 2020-02-22 Tom Tromey <tom@tromey.com>
13985
13986 PR tui/17850:
13987 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13988 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13989 "height" argument.
13990 (class tui_layout_window) <get_sizes>: Likewise.
13991 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13992 argument.
13993 <get_sizes>: Add "height" argument.
13994 <m_vertical>: New field.
13995 * tui/tui-layout.c (tui_layout_split::clone): Update.
13996 (tui_layout_split::get_sizes): Add "height" argument.
13997 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13998 (tui_new_layout_command): Parse "-horizontal".
13999 (_initialize_tui_layout): Update help string.
14000 (tui_layout_split::specification): Add "-horizontal" when needed.
14001 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14002 argument.
14003 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14004 New methods.
14005
14006 2020-02-22 Tom Tromey <tom@tromey.com>
14007
14008 * tui/tui-layout.h (enum tui_adjust_result): New.
14009 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14010 (class tui_layout_window) <adjust_size>: Return
14011 tui_adjust_result. Rewrite.
14012 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14013 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14014
14015 2020-02-22 Tom Tromey <tom@tromey.com>
14016
14017 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14018 parameter and return types.
14019 (class tui_layout_base) <specification>: Add "depth".
14020 (class tui_layout_window) <specification>: Add "depth".
14021 (class tui_layout_split) <specification>: Add "depth".
14022 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14023 and return types.
14024 (tui_new_layout_command): Parse sub-layouts.
14025 (_initialize_tui_layout): Update help string.
14026 (tui_layout_window::specification): Add "depth".
14027 (add_layout_command): Update.
14028
14029 2020-02-22 Tom Tromey <tom@tromey.com>
14030
14031 * NEWS: Add "tui new-layout" item.
14032 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14033 Add new-layout command to help text.
14034 (validate_window_name): New function.
14035 (tui_new_layout_command): New function.
14036 (_initialize_tui_layout): Register "new-layout".
14037 (tui_layout_window::specification): New method.
14038 (tui_layout_window::specification): New method.
14039 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14040 method.
14041 (class tui_layout_window) <specification>: New method.
14042 (class tui_layout_split) <specification>: New method.
14043
14044 2020-02-22 Tom Tromey <tom@tromey.com>
14045
14046 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14047 * tui/tui-win.c (window_name_completer): Update comment.
14048 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14049 Declare method.
14050 (class tui_layout_window) <replace_window>: Likewise.
14051 (class tui_layout_split) <replace_window>: Likewise.
14052 (tui_set_layout): Don't declare.
14053 (tui_set_initial_layout): Declare function.
14054 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14055 (asm_regs_layout): New globals.
14056 (tui_current_layout, show_layout): Remove.
14057 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14058 (find_layout, tui_apply_layout): New function.
14059 (layout_completer): Remove.
14060 (tui_next_layout): Reimplement.
14061 (tui_next_layout_command): New function.
14062 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14063 (tui_regs_layout): Reimplement.
14064 (tui_regs_layout_command): New function.
14065 (extract_display_start_addr): Rewrite.
14066 (next_layout, prev_layout): Remove.
14067 (tui_layout_window::replace_window): New method.
14068 (tui_layout_split::replace_window): New method.
14069 (destroy_layout): New function.
14070 (layout_list): New global.
14071 (add_layout_command): New function.
14072 (initialize_layouts): Update.
14073 (tui_layout_command): New function.
14074 (_initialize_tui_layout): Install "layout" commands.
14075 * tui/tui-data.h (enum tui_layout_type): Remove.
14076 (tui_current_layout): Don't declare.
14077
14078 2020-02-22 Tom Tromey <tom@tromey.com>
14079
14080 * tui/tui-regs.c (tui_reg_layout): Remove.
14081 (tui_reg_command): Use tui_regs_layout.
14082 * tui/tui-layout.h (tui_reg_command): Declare.
14083 * tui/tui-layout.c (tui_reg_command): New function.
14084
14085 2020-02-22 Tom Tromey <tom@tromey.com>
14086
14087 * tui/tui.c (tui_rl_delete_other_windows): Call
14088 tui_remove_some_windows.
14089 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14090 Declare method.
14091 (class tui_layout_window) <remove_windows>: New method.
14092 (class tui_layout_split) <remove_windows>: Declare.
14093 (tui_remove_some_windows): Declare.
14094 * tui/tui-layout.c (tui_remove_some_windows): New function.
14095 (tui_layout_split::remove_windows): New method.
14096
14097 2020-02-22 Tom Tromey <tom@tromey.com>
14098
14099 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14100 * tui/tui-layout.h (tui_next_layout): Declare.
14101 * tui/tui-layout.c (tui_next_layout): New function.
14102
14103 2020-02-22 Tom Tromey <tom@tromey.com>
14104
14105 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14106 correct coordinates.
14107
14108 2020-02-22 Tom Tromey <tom@tromey.com>
14109
14110 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14111 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14112 DATA_WIN case.
14113
14114 2020-02-22 Tom Tromey <tom@tromey.com>
14115
14116 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14117 TUI_DISASM_WIN, not tui_win_list.
14118
14119 2020-02-22 Tom Tromey <tom@tromey.com>
14120
14121 * valprint.c (generic_val_print_enum_1)
14122 (val_print_type_code_flags): Style member names.
14123 * rust-lang.c (val_print_struct, rust_print_enum)
14124 (rust_print_struct_def, rust_internal_print_type): Style member
14125 names.
14126 * p-valprint.c (pascal_object_print_value_fields): Style member
14127 names. Only call fprintf_symbol_filtered for static members.
14128 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14129 * f-valprint.c (f_val_print): Style member names.
14130 * f-typeprint.c (f_type_print_base): Style member names.
14131 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14132 call fprintf_symbol_filtered for static members.
14133 (cp_print_class_member): Style member names.
14134 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14135 member names.
14136 * ada-valprint.c (ada_print_scalar): Style enum names.
14137 (ada_val_print_enum): Likewise.
14138 * ada-typeprint.c (print_enum_type): Style enum names.
14139
14140 2020-02-21 Tom Tromey <tom@tromey.com>
14141
14142 * psympriv.h (struct partial_symtab): Update comment.
14143
14144 2020-02-21 Tom Tromey <tromey@adacore.com>
14145
14146 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14147 type is CORE_ADDR.
14148
14149 2020-02-21 Tom de Vries <tdevries@suse.de>
14150
14151 PR gdb/25534
14152 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14153 if dependencies[i]->user != NULL.
14154
14155 2020-02-21 Ali Tamur <tamur@google.com>
14156
14157 * dwarf2/read.c (dwarf2_name): Add null check.
14158
14159 2020-02-20 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14162 ">=", in binary search.
14163 (dwarf2_find_containing_comp_unit): New overload.
14164 (run_test): New self-test.
14165 (_initialize_dwarf2_read): Register new test.
14166
14167 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14168
14169 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14170 * riscv-tdep.h: Likewise.
14171 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14172 rv32-only CSR.
14173 * features/riscv/64bit-csr.xml: Regenerated.
14174
14175 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14176 Tom Tromey <tom@tromey.com>
14177
14178 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14179 of 'fputc_unfiltered'.
14180 (putchar_unfiltered): Call 'fputc_unfiltered'.
14181 (fputc_unfiltered): Call 'fputs_unfiltered'.
14182
14183 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14184
14185 * config.in: Regenerate.
14186 * configure: Regenerate.
14187 * configure.ac: Add --with-python-libdir option.
14188 * main.c: Use WITH_PYTHON_LIBDIR.
14189
14190 2020-02-19 Tom Tromey <tom@tromey.com>
14191
14192 * symtab.c (general_symbol_info::compute_and_set_names): Use
14193 obstack_strndup. Simplify call to symbol_set_demangled_name.
14194
14195 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14196
14197 * dwarf2/read.c (allocate_signatured_type_table,
14198 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14199 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14200 Remove objfile parameter, update all callers.
14201
14202 2020-02-19 Doug Evans <dje@google.com>
14203
14204 PR rust/25535
14205 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14206 rust_enum_variant calculation.
14207
14208 2020-02-19 Tom Tromey <tromey@adacore.com>
14209
14210 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14211
14212 2020-02-19 Tom Tromey <tromey@adacore.com>
14213
14214 * ada-lang.c (cache_symbol): Use obstack_strdup.
14215
14216 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14217
14218 * configure: Regenerate.
14219
14220 2020-02-19 Tom Tromey <tromey@adacore.com>
14221
14222 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14223 NULL check.
14224
14225 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14226
14227 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14228
14229 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14232 if GDBSERVER is not defined.
14233 (riscv_tdesc_cache): Likewise, also store const target_desc.
14234 (STATIC_IN_GDB): Define.
14235 (riscv_create_target_description): Update declaration with
14236 STATIC_IN_GDB.
14237 (riscv_lookup_target_description): New function, only define if
14238 GDBSERVER is not defined.
14239 * arch/riscv.h (riscv_create_target_description): Declare only
14240 when GDBSERVER is defined.
14241 (riscv_lookup_target_description): New declaration when GDBSERVER
14242 is not defined.
14243 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14244 (riscv_linux_read_features): ...this, and return
14245 riscv_gdbarch_features instead of target_desc.
14246 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14247 (riscv_linux_read_description): Rename to...
14248 (riscv_linux_read_features): ...this.
14249 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14250 Update to use riscv_gdbarch_features and
14251 riscv_lookup_target_description.
14252 * riscv-tdep.c (riscv_find_default_target_description): Use
14253 riscv_lookup_target_description instead of
14254 riscv_create_target_description.
14255
14256 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14257
14258 * valprint.c (generic_val_print_enum_1): When printing a flag
14259 enum with value 0 and there is no enumerator with value 0, print
14260 just "0" instead of "(unknown: 0x0)".
14261
14262 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14263
14264 * valprint.c (generic_val_print_enum_1): Print unknown part of
14265 flag enum in hex.
14266
14267 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14268
14269 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14270 flag enums to contain duplicate enumerators.
14271 * valprint.c (generic_val_print_enum_1): Update comment.
14272
14273 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14274
14275 * dwarf2/read.c: Include "count-one-bits.h".
14276 (update_enumeration_type_from_children): If an enumerator has
14277 multiple bits set, don't treat the enumeration as a "flag enum".
14278 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14279 of flag enums have 0 or 1 bit set.
14280
14281 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14282
14283 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14284 conversion.
14285 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14286 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14287 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14288 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14289 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14290
14291 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14292
14293 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14294
14295 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14296
14297 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14298 displaced_step_closure_up.
14299 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14300 (struct displaced_step_closure_up):
14301 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14302 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14303 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14304 Likewise.
14305 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14306 * gdbarch.c, gdbarch.h: Re-generate.
14307 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14308 displaced_step_closure_up.
14309 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14310 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14311 * infrun.h (displaced_step_closure_up): New type alias.
14312 (struct displaced_step_inferior_state) <step_closure>: Change
14313 type to displaced_step_closure_up.
14314 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14315 displaced_step_closure_up.
14316 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14317
14318 2020-02-14 Tom Tromey <tom@tromey.com>
14319
14320 * minidebug.c (gnu_debug_key): New global.
14321 (find_separate_debug_file_in_section): Use it.
14322
14323 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14324
14325 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14326 std::unique_ptr.
14327 * gdbarch.c: Re-generate.
14328 * gdbarch.h: Re-generate.
14329 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14330 change.
14331 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14332 type to std::unique_ptr.
14333 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14334 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14335 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14336 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14337 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14338 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14339 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14340 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14341 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14342
14343 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14344
14345 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14346 std::unique_ptr.
14347 (displaced_step_clear): Rename to...
14348 (displaced_step_reset): ... this. Just call displaced->reset ().
14349 (displaced_step_clear_cleanup): Rename to...
14350 (displaced_step_reset_cleanup): ... this.
14351 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14352 (displaced_step_fixup): Likewise.
14353 (resume_1): Likewise.
14354 (handle_inferior_event): Restore child's memory before calling
14355 displaced_step_fixup on the parent.
14356 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14357 to std::unique_ptr.
14358 <step_closure>: Change type to std::unique_ptr.
14359
14360 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14361
14362 * arm-tdep.c: Include count-one-bits.h.
14363 (cleanup_block_store_pc): Use count_one_bits.
14364 (cleanup_block_load_pc): Use count_one_bits.
14365 (arm_copy_block_xfer): Use count_one_bits.
14366 (thumb2_copy_block_xfer): Use count_one_bits.
14367 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14368 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14369 (thumb_get_next_pcs_raw): Use count_one_bits.
14370 (arm_get_next_pcs_raw): Use count_one_bits_l.
14371 * arch/arm.c (bitcount): Remove.
14372 * arch/arm.h (bitcount): Remove.
14373
14374 2020-02-14 Tom Tromey <tromey@adacore.com>
14375
14376 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14377 Update.
14378 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14379 * dwarf2/loc.c (call_site_find_chain_1): Return
14380 unique_xmalloc_ptr.
14381 (call_site_find_chain): Likewise.
14382
14383 2020-02-14 Richard Biener <rguenther@suse.de>
14384
14385 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14386 on expression with division operators.
14387
14388 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14389
14390 * MAINTAINERS (Write After Approval): Adding myself.
14391
14392 2020-02-12 Tom Tromey <tom@tromey.com>
14393
14394 * event-loop.c (event_data, gdb_event, event_handler_func):
14395 Remove.
14396
14397 2020-02-12 Tom Tromey <tom@tromey.com>
14398
14399 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14400 (dwarf2_frame_objfile_data): Add comment.
14401 (find_comp_unit, set_comp_unit): New functions.
14402 (dwarf2_frame_find_fde): Use find_comp_unit.
14403 (dwarf2_build_frame_info): Use set_comp_unit.
14404
14405 2020-02-12 Tom Tromey <tom@tromey.com>
14406
14407 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14408 (comp_unit): Don't initialize objfile.
14409 (execute_cfa_program): Add text_offset parameter.
14410 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14411 (dwarf2_frame_cache): Update.
14412 (dwarf2_build_frame_info): Don't set "objfile" member.
14413
14414 2020-02-12 Tom Tromey <tom@tromey.com>
14415
14416 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14417 (decode_frame_entry): Likewise.
14418 (dwarf2_build_frame_info): Update.
14419
14420 2020-02-12 Tom Tromey <tom@tromey.com>
14421
14422 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14423 (decode_frame_entry_1): Use the comp_unit obstack.
14424
14425 2020-02-12 Tom Tromey <tom@tromey.com>
14426
14427 * dwarf2/frame.c (struct comp_unit): Add initializers and
14428 constructor.
14429 (dwarf2_frame_objfile_data): Store a comp_unit.
14430 (dwarf2_frame_find_fde): Update.
14431 (dwarf2_build_frame_info): Use "new".
14432
14433 2020-02-12 Tom Tromey <tom@tromey.com>
14434
14435 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14436 (dwarf2_fde_table): Typedef for std::vector.
14437 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14438 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14439 (decode_frame_entry): Update.
14440 (dwarf2_build_frame_info): Use "new".
14441
14442 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14443
14444 * arm-tdep.c (arm_gdbarch_init): Update.
14445 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14446 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14447 have_neon, is_m>: Change to bool.
14448
14449 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14450
14451 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14452
14453 2020-02-12 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14456
14457 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14458
14459 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14460 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14461
14462 2020-02-11 Tom Tromey <tom@tromey.com>
14463
14464 * psymtab.h: Update comment.
14465
14466 2020-02-11 Tom Tromey <tom@tromey.com>
14467
14468 * gdb_obstack.h (struct auto_obstack): Use
14469 DISABLE_COPY_AND_ASSIGN.
14470
14471 2020-02-11 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/frame.h (struct objfile): Don't forward declare.
14474
14475 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14476
14477 * cris-tdep.c (cris_supply_gregset): Change signature to match
14478 what struct regset expects.
14479 (cris_regset): New struct.
14480 (fetch_core_registers): Remove.
14481 (cris_iterate_over_regset_sections): New function.
14482 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14483 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14484
14485 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14486
14487 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14488 registers.
14489
14490 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14491
14492 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14493
14494 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14495
14496 * configure: Re-generate.
14497
14498 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14499
14500 * configure: Re-generate.
14501
14502 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14503
14504 * acinclude: Update warning.m4 path.
14505 * warning.m4: Move to gdbsupport.
14506
14507 2020-02-11 Tom Tromey <tromey@adacore.com>
14508
14509 * remote.c (remote_console_output): Update.
14510 * printcmd.c (printf_command): Update.
14511 * event-loop.c (gdb_wait_for_event): Update.
14512 * linux-nat.c (sigchld_handler): Update.
14513 * remote-sim.c (gdb_os_write_stdout): Update.
14514 (gdb_os_flush_stdout): Update.
14515 (gdb_os_flush_stderr): Update.
14516 (gdb_os_write_stderr): Update.
14517 * exceptions.c (print_exception): Update.
14518 * remote-fileio.c (remote_fileio_func_read): Update.
14519 (remote_fileio_func_write): Update.
14520 * tui/tui.c (tui_enable): Update.
14521 * tui/tui-interp.c (tui_interp::init): Update.
14522 * utils.c (init_page_info): Update.
14523 (putchar_unfiltered, fputc_unfiltered): Update.
14524 (gdb_flush): Update.
14525 (emit_style_escape): Update.
14526 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14527 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14528 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14529 (stderr_file::write): Update.
14530 (stderr_file::puts): Update.
14531 * ui-file.h (ui_file_isatty, ui_file_write)
14532 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14533 (ui_file_puts): Don't declare.
14534
14535 2020-02-10 Tom de Vries <tdevries@suse.de>
14536
14537 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14538 sentinel to char *.
14539
14540 2020-02-09 Tom de Vries <tdevries@suse.de>
14541
14542 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14543 filename if it matches "<artificial>".
14544
14545 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14546
14547 * windows-tdep.c (struct enum_value_name): New struct.
14548 (create_enum): New function.
14549 (windows_get_siginfo_type): Create and use enum types.
14550
14551 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14552
14553 * NEWS: Mention $_siginfo support for Windows.
14554 * windows-nat.c (handle_exception): Set siginfo_er.
14555 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14556 (windows_xfer_siginfo): New function.
14557 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14558 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14559 (init_windows_gdbarch_data): New function.
14560 (get_windows_gdbarch_data): New function.
14561 (windows_get_siginfo_type): New function.
14562 (windows_init_abi): Register windows_get_siginfo_type.
14563 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14564
14565 2020-02-08 Tom Tromey <tom@tromey.com>
14566
14567 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14568 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14569 <keep>: Declare method.
14570 <m_keep>: Remove member.
14571 <~cutu_reader>: Remove.
14572 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14573 (cutu_reader::cutu_reader): Update.
14574 (cutu_reader::keep): Rename from ~cutu_reader.
14575 (process_psymtab_comp_unit, build_type_psymtabs_1)
14576 (process_skeletonless_type_unit, load_partial_comp_unit)
14577 (load_full_comp_unit, dwarf2_read_addr_index)
14578 (read_signatured_type): Update.
14579
14580 2020-02-08 Tom Tromey <tom@tromey.com>
14581
14582 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14583 "want_partial_unit" parameter.
14584 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14585 Inline check for DW_TAG_partial_unit.
14586 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14587
14588 2020-02-08 Tom Tromey <tom@tromey.com>
14589
14590 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14591 read.c.
14592 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14593 read.c.
14594
14595 2020-02-08 Tom Tromey <tom@tromey.com>
14596
14597 * dwarf2/read.c (read_address): Move to comp-unit.c.
14598 (dwarf2_rnglists_process, dwarf2_ranges_process)
14599 (read_attribute_value, dwarf_decode_lines_1)
14600 (var_decode_location, decode_locdesc): Update.
14601 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14602 read.c. Remove "cu" parameter.
14603 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14604 method.
14605
14606 2020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14609 (read_indirect_line_string): Update.
14610 * dwarf2/comp-unit.c (read_offset): Remove.
14611 (read_comp_unit_head): Update.
14612 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14613 method.
14614 (read_offset): Don't declare.
14615
14616 2020-02-08 Tom Tromey <tom@tromey.com>
14617
14618 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14619 * dwarf2/read.c (struct comp_unit_head): Move to
14620 dwarf2/comp-unit.h.
14621 (enum class rcuh_kind): Move to comp-unit.h.
14622 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14623 (read_comp_unit_head, error_check_comp_unit_head)
14624 (read_and_check_comp_unit_head): Move to comp-unit.c.
14625 (read_offset, dwarf_unit_type_name): Likewise.
14626 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14627 (cutu_reader::cutu_reader, read_call_site_scope)
14628 (find_partial_die, follow_die_offset): Update.
14629 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14630
14631 2020-02-08 Tom Tromey <tom@tromey.com>
14632
14633 * dwarf2/read.c (read_offset_1): Move to leb.c.
14634 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14635 (dwarf_decode_macro_bytes): Update.
14636 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14637 * dwarf2/leb.h (read_offset): Declare.
14638
14639 2020-02-08 Tom Tromey <tom@tromey.com>
14640
14641 * dwarf2/read.c (dwarf2_section_size): Remove.
14642 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14643 Update.
14644 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14645
14646 2020-02-08 Tom Tromey <tom@tromey.com>
14647
14648 * dwarf2/read.c (read_initial_length): Move to leb.c.
14649 * dwarf2/leb.h (read_initial_length): Declare.
14650 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14651 handle_nonstd parameter.
14652 * dwarf2/frame.c (read_initial_length): Remove.
14653 (decode_frame_entry_1): Update.
14654
14655 2020-02-08 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2/loc.c (dwarf2_find_location_expression)
14658 (dwarf_evaluate_loc_desc::get_tls_address)
14659 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14660 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14661 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14662 (dwarf2_compile_property_to_c)
14663 (dwarf2_loc_desc_get_symbol_read_needs)
14664 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14665 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14666 (loclist_describe_location, loclist_tracepoint_var_ref)
14667 (loclist_generate_c_location): Update.
14668 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14669 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14670 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14671 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14672 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14673 (dwarf2_per_cu_data::addr_size)
14674 (dwarf2_per_cu_data::ref_addr_size)
14675 (dwarf2_per_cu_data::text_offset)
14676 (dwarf2_per_cu_data::addr_type): Now methods.
14677 (per_cu_header_read_in): Make per_cu "const".
14678 (dwarf2_version): Remove.
14679 (dwarf2_per_cu_data::int_type): Now a method.
14680 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14681 (set_die_type, read_array_type, read_subrange_index_type)
14682 (read_tag_string_type, read_subrange_type): Update.
14683 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14684 offset_size, ref_addr_size, text_offset, addr_type, version,
14685 objfile, int_type, addr_sized_int_type>: Declare methods.
14686
14687 2020-02-08 Tom Tromey <tom@tromey.com>
14688
14689 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14690 Move earlier.
14691
14692 2020-02-08 Tom Tromey <tom@tromey.com>
14693
14694 * dwarf2/read.h (dwarf_line_debug): Declare.
14695 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14696 * dwarf2/read.c: Move line_header code to new files.
14697 (dwarf_line_debug): No longer static.
14698 * dwarf2/line-header.c: New file.
14699 * dwarf2/line-header.h: New file.
14700
14701 2020-02-08 Tom Tromey <tom@tromey.com>
14702
14703 * dwarf2/read.c (struct line_header) <file_full_name,
14704 file_file_name>: Return unique_xmalloc_ptr.
14705 (line_header::file_file_name): Update.
14706 (line_header::file_full_name): Update.
14707 (dw2_get_file_names_reader): Update.
14708 (macro_start_file): Update.
14709
14710 2020-02-08 Tom Tromey <tom@tromey.com>
14711
14712 * dwarf2/read.c (struct line_header) <file_full_name,
14713 file_file_name>: Declare methods.
14714 (dw2_get_file_names_reader): Update.
14715 (file_file_name): Now a method.
14716 (file_full_name): Likewise.
14717 (macro_start_file): Update.
14718
14719 2020-02-08 Tom Tromey <tom@tromey.com>
14720
14721 * dwarf2/read.c (dwarf_always_disassemble)
14722 (show_dwarf_always_disassemble): Move to loc.c.
14723 (_initialize_dwarf2_read): Move "always-disassemble" registration
14724 to loc.c.
14725 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14726 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14727 static.
14728 (show_dwarf_always_disassemble): Move from read.c.
14729 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14730
14731 2020-02-08 Tom Tromey <tom@tromey.com>
14732
14733 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14734 (create_quick_file_names_table): Return htab_up.
14735 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14736 Update.
14737 * dwarf2/read.h (struct dwarf2_per_objfile)
14738 <quick_file_names_table>: Now htab_up.
14739
14740 2020-02-08 Tom Tromey <tom@tromey.com>
14741
14742 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14743
14744 2020-02-08 Tom Tromey <tom@tromey.com>
14745
14746 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14747 Rewrite.
14748 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14749 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14750 (abbrev_table::abbrev_table): No longer inline.
14751 (ABBREV_HASH_SIZE): Remove.
14752 (abbrev_table::m_abbrevs): Now an htab_up.
14753
14754 2020-02-08 Tom Tromey <tom@tromey.com>
14755
14756 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14757 (cutu_reader): Update.
14758 (build_type_psymtabs_1): Update.
14759 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14760 (abbrev_table::alloc_abbrev): Update.
14761 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14762 (abbrev_table::read): New static method, renamed from
14763 abbrev_table_read_table.
14764 (abbrev_table::alloc_abbrev)
14765 (abbrev_table::add_abbrev): Now private.
14766 (abbrev_table::abbrev_table): Now private.
14767 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14768
14769 2020-02-08 Tom Tromey <tom@tromey.com>
14770
14771 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14772 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14773 htab_up.
14774
14775 2020-02-08 Tom Tromey <tom@tromey.com>
14776
14777 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14778 htab_up.
14779 (lookup_dwo_unit_in_dwp): Update.
14780 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14781 on obstack.
14782
14783 2020-02-08 Tom Tromey <tom@tromey.com>
14784
14785 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14786 obstack.
14787
14788 2020-02-08 Tom Tromey <tom@tromey.com>
14789
14790 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14791 line_header_hash.
14792 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14793 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14794 Change type to htab_up.
14795
14796 2020-02-08 Tom Tromey <tom@tromey.com>
14797
14798 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14799 htab_up. Don't allocate on obstack.
14800 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14801 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14802 Change type to htab_up.
14803
14804 2020-02-08 Tom Tromey <tom@tromey.com>
14805
14806 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14807 Change type to htab_up.
14808 * dwarf2/read.c (create_signatured_type_table_from_index)
14809 (create_signatured_type_table_from_debug_names)
14810 (create_all_type_units, add_type_unit)
14811 (lookup_dwo_signatured_type, lookup_signatured_type)
14812 (process_skeletonless_type_unit): Update.
14813 (create_debug_type_hash_table, create_debug_types_hash_table):
14814 Change type of types_htab.
14815 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14816 htab_up. Don't allocate on obstack.
14817 (create_cus_hash_table): Change type of cus_htab parameter.
14818 (struct dwo_file) <cus, tus>: Now htab_up.
14819 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14820 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14821 (queue_and_load_all_dwo_tus): Update.
14822 * dwarf2/index-write.c (write_gdbindex): Update.
14823 (write_debug_names): Update.
14824
14825 2020-02-08 Tom Tromey <tom@tromey.com>
14826
14827 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14828 dwarf2/read.c. Remove "next" member. Add constructor ntad
14829 destructor.
14830 (struct dwarf2_per_objfile) <queue>: New member.
14831 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14832 dwarf2/read.h.
14833 (dwarf2_queue, dwarf2_queue_tail): Remove.
14834 (class dwarf2_queue_guard): Add parameter to constructor. Use
14835 DISABLE_COPY_AND_ASSIGN.
14836 <m_per_objfile>: New member.
14837 <~dwarf2_queue_guard>: Rewrite.
14838 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14839 Update.
14840 (~dwarf2_queue_item): New.
14841
14842 2020-02-08 Tom Tromey <tom@tromey.com>
14843
14844 * dwarf2/read.c (struct die_info) <has_children>: New member.
14845 (dw2_get_file_names_reader): Remove has_children.
14846 (dw2_get_file_names): Update.
14847 (read_cutu_die_from_dwo): Remove has_children.
14848 (cutu_reader::init_tu_and_read_dwo_dies)
14849 (cutu_reader::cutu_reader): Update.
14850 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14851 Remove has_children.
14852 (build_type_psymtabs_1, process_skeletonless_type_unit)
14853 (load_partial_comp_unit, load_full_comp_unit): Update.
14854 (create_dwo_cu_reader): Remove has_children.
14855 (create_cus_hash_table, read_die_and_children): Update.
14856 (read_full_die_1,read_full_die): Remove has_children.
14857 (read_signatured_type): Update.
14858 (class cutu_reader) <has_children>: Remove.
14859
14860 2020-02-08 Tom Tromey <tom@tromey.com>
14861
14862 * dwarf2/expr.c: Rename from dwarf2expr.c.
14863 * dwarf2/expr.h: Rename from dwarf2expr.h.
14864 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14865 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14866 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14867 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14868 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14869 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14870 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14871 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14872 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14873 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14874 * dwarf2/loc.c: Rename from dwarf2loc.c.
14875 * dwarf2/loc.h: Rename from dwarf2loc.h.
14876 * dwarf2/read.c: Rename from dwarf2read.c.
14877 * dwarf2/read.h: Rename from dwarf2read.h.
14878 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14879 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14880 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14881 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14882 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14883 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14884 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14885 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14886 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14887 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14888 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14889 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14890 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14891 Update.
14892 * Makefile.in (COMMON_SFILES): Update.
14893 (HFILES_NO_SRCDIR): Update.
14894
14895 2020-02-08 Tom Tromey <tom@tromey.com>
14896
14897 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14898 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14899
14900 2020-02-08 Tom Tromey <tom@tromey.com>
14901
14902 * dwarf2read.h (struct die_info): Don't declare.
14903
14904 2020-02-08 Tom Tromey <tom@tromey.com>
14905
14906 * dwarf2read.h (die_info_ptr): Remove typedef.
14907
14908 2020-02-08 Tom Tromey <tom@tromey.com>
14909
14910 * dwarf2read.c (read_call_site_scope)
14911 (handle_data_member_location, dwarf2_add_member_fn)
14912 (mark_common_block_symbol_computed, read_common_block)
14913 (attr_to_dynamic_prop, partial_die_info::read)
14914 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14915 (dwarf2_symbol_mark_computed, set_die_type): Update.
14916 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14917 method.
14918 (attr_form_is_block): Don't declare.
14919 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14920
14921 2020-02-08 Tom Tromey <tom@tromey.com>
14922
14923 * dwarf2read.c (dwarf2_find_base_address, )
14924 (read_call_site_scope, rust_containing_type)
14925 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14926 (handle_data_member_location, dwarf2_add_member_fn)
14927 (get_alignment, read_structure_type, process_structure_scope)
14928 (mark_common_block_symbol_computed, read_common_block)
14929 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14930 (partial_die_info::read, read_attribute_value, new_symbol)
14931 (lookup_die_type, dwarf2_get_ref_die_offset)
14932 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14933 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14934 (dwarf2_symbol_mark_computed): Update.
14935 * dwarf2/attribute.h (struct attribute) <value_as_address,
14936 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14937 methods.
14938 (value_as_address, attr_form_is_section_offset)
14939 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14940 * dwarf2/attribute.c (attribute::value_as_address)
14941 (attribute::form_is_section_offset, attribute::form_is_constant)
14942 (attribute::form_is_ref): Now methods.
14943
14944 2020-02-08 Tom Tromey <tom@tromey.com>
14945
14946 * dwarf2read.c (struct attribute, DW_STRING)
14947 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14948 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14949 (attr_form_is_block, attr_form_is_section_offset)
14950 (attr_form_is_constant, attr_form_is_ref): Move.
14951 * dwarf2/attribute.h: New file.
14952 * dwarf2/attribute.c: New file, from dwarf2read.c.
14953 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14954
14955 2020-02-08 Tom Tromey <tom@tromey.com>
14956
14957 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14958 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14959 Move.
14960 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14961 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14962 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14963 abbrev.c.
14964 * dwarf2/abbrev.h: New file.
14965 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14966 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14967
14968 2020-02-08 Tom Tromey <tom@tromey.com>
14969
14970 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14971 (dwarf2_section_size, dwarf2_get_section_info)
14972 (create_signatured_type_table_from_debug_names)
14973 (create_addrmap_from_aranges, read_debug_names_from_section)
14974 (get_gdb_index_contents_from_section, read_comp_unit_head)
14975 (error_check_comp_unit_head, read_abbrev_offset)
14976 (create_debug_type_hash_table, init_cu_die_reader)
14977 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14978 (read_comp_units_from_section, create_cus_hash_table)
14979 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14980 (create_dwp_v2_section, dwarf2_rnglists_process)
14981 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14982 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14983 (read_indirect_string_from_dwz, read_addr_index_1)
14984 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14985 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14986 (fill_in_loclist_baton): Update.
14987 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14988 get_containing_section, get_bfd_owner, get_bfd_section,
14989 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14990 (dwarf2_read_section, get_section_name, get_section_file_name)
14991 (get_containing_section, get_section_bfd_owner)
14992 (get_section_bfd_section, get_section_name, get_section_file_name)
14993 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14994 declare.
14995 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14996 (dwarf2_section_info::get_bfd_owner)
14997 (dwarf2_section_info::get_bfd_section)
14998 (dwarf2_section_info::get_name)
14999 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15000 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15001 (dwarf2_section_info::read): Now methods.
15002 * dwarf-index-write.c (class debug_names): Update.
15003
15004 2020-02-08 Tom Tromey <tom@tromey.com>
15005
15006 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15007 Move to dwarf2/section.h.
15008 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15009 (get_section_bfd_section, get_section_name)
15010 (get_section_file_name, get_section_id, get_section_flags)
15011 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15012 dwarf2/section.c.
15013 * dwarf2/section.h: New file.
15014 * dwarf2/section.c: New file, from dwarf2read.c.
15015 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15016
15017 2020-02-08 Tom Tromey <tom@tromey.com>
15018
15019 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15020 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15021 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15022 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15023 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15024 * dwarf2/leb.h: New file, from dwarf2read.c.
15025 * dwarf2/leb.c: New file, from dwarf2read.c.
15026 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15027 Remove.
15028 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15029 (COMMON_SFILES): Add dwarf2/leb.c.
15030
15031 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15032
15033 GDB 9.1 released.
15034
15035 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15036
15037 PR gdb/25190:
15038 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15039 * gdb/remote.c (remote_console_output): Update.
15040 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15041 (ui_file_puts): ...this.
15042 * gdb/ui-file.h (ui_file_puts): Add declaration.
15043 * gdb/utils.c (emit_style_escape): Update.
15044 (flush_wrap_buffer): Update.
15045 (fputs_maybe_filtered): Update.
15046 (fputs_unfiltered): Add function.
15047
15048 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15049
15050 * gdb/event-loop.c (gdb_wait_for_event): Update.
15051 * gdb/printcmd.c (printf_command): Update.
15052 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15053 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15054 (gdb_os_flush_stderr): Update.
15055 * gdb/remote.c (remote_console_output): Update.
15056 * gdb/ui-file.c (gdb_flush): Rename to...
15057 (ui_file_flush): ...this.
15058 (stderr_file::write): Update.
15059 (stderr_file::puts): Update.
15060 * gdb/ui-file.h (gdb_flush): Rename to...
15061 (ui_file_flush): ...this.
15062 * gdb/utils.c (gdb_flush): Add function.
15063 * gdb/utils.h (gdb_flush): Add declaration.
15064
15065 2020-02-07 Tom Tromey <tromey@adacore.com>
15066
15067 PR breakpoints/24915:
15068 * source.c (find_and_open_source): Do not check basenames_may_differ.
15069
15070 2020-02-07 Tom Tromey <tom@tromey.com>
15071
15072 * README: Update gdbserver documentation.
15073 * gdbserver: Move to top level.
15074 * configure.tgt (build_gdbserver): Remove.
15075 * configure.ac: Remove --enable-gdbserver.
15076 * configure: Rebuild.
15077 * Makefile.in (distclean): Don't mention gdbserver.
15078
15079 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15080
15081 * source-cache.c (source_cache::ensure): Surround
15082 get_plain_source_lines with a try/catch.
15083 (source_cache::get_line_charpos): Get rid of try/catch
15084 and only check for the return value of "ensure".
15085 * tui/tui-source.c (tui_source_window::set_contents):
15086 Simplify "nlines" calculation.
15087
15088 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15089
15090 * MAINTAINERS (Write After Approval): Add myself.
15091
15092 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15093
15094 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15095 function call.
15096
15097 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15098
15099 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15100
15101 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15102
15103 * nat/riscv-linux-tdesc.h: New file.
15104 * nat/riscv-linux-tdesc.c: New file, taking code from...
15105 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15106 ... here.
15107 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15108 NATDEPFILES.
15109
15110 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15111
15112 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15113 we don't set the fake simulator ptid to the null_ptid.
15114
15115 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15116
15117 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15118 * gdbthread.h (class thread_info) <resumed>: Likewise.
15119 * infrun.c (resume_1): Likewise.
15120 (proceed): Likewise.
15121 (infrun_thread_stop_requested): Likewise.
15122 (stop_all_threads): Likewise.
15123 (handle_inferior_event): Likewise.
15124 (restart_threads): Likewise.
15125 (finish_step_over): Likewise.
15126 (keep_going_stepped_thread): Likewise.
15127 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15128 (linux_handle_extended_wait): Likewise.
15129 * record-btrace.c (get_thread_current_frame_id): Likewise.
15130 * record-full.c (record_full_wait_1): Likewise.
15131 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15132 * target.c (target_resume): Likewise.
15133 * thread.c (set_running_thread): Likewise.
15134
15135 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15136
15137 * f-valprint.c (f77_print_array_1): Changed datatype of index
15138 variable to LONGEST from int to enable it to contain bound
15139 values correctly.
15140
15141 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15142
15143 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15144 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15145 offsets according to FLEN determined.
15146 (riscv_linux_nat_target::read_description): Determine FLEN
15147 dynamically.
15148 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15149 according to FLEN determined.
15150 (riscv_linux_nat_target::store_registers): Likewise.
15151
15152 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15153
15154 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15155 when reg->group is empty and reggroup is not.
15156
15157 2020-01-31 Tom Tromey <tromey@adacore.com>
15158
15159 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15160 Call beneath target's mourn_inferior after unpushing.
15161
15162 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15163
15164 PR tui/9765
15165 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15166 have enough lines to fill the screen, still return the lowest
15167 address we found.
15168
15169 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15170
15171 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15172 '-', '<', and '>' commands.
15173
15174 2020-01-29 Pedro Alves <palves@redhat.com>
15175 Sergio Durigan Junior <sergiodj@redhat.com>
15176
15177 * infcmd.c (construct_inferior_arguments): Assert that
15178 'argc' is greater than 0.
15179
15180 2020-01-29 Luis Machado <luis.machado@linaro.org>
15181
15182 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15183 (BRK_INSN_MASK): Define to 0xd4200000.
15184 (aarch64_program_breakpoint_here_p): New function.
15185 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15186 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15187 breakpoint.c.
15188 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15189 breakpoint.h
15190 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15191 call gdbarch_program_breakpoint_here_p.
15192 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15193 default_program_breakpoint_here_p, changed return type to bool and
15194 simplified.
15195 * breakpoint.h (program_breakpoint_here): Moved prototype to
15196 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15197 return type to bool.
15198 * gdbarch.c: Regenerate.
15199 * gdbarch.h: Regenerate.
15200 * gdbarch.sh (program_breakpoint_here_p): New method.
15201 * infrun.c (handle_signal_stop): Call
15202 gdbarch_program_breakpoint_here_p.
15203
15204 2020-01-26 Tom Tromey <tom@tromey.com>
15205
15206 * ctfread.c (struct ctf_fp_info): Reindent.
15207 (_initialize_ctfread): Remove.
15208
15209 2020-01-26 Tom Tromey <tom@tromey.com>
15210
15211 * psymtab.c (partial_map_expand_apply)
15212 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15213 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15214 (psym_print_stats, psym_expand_symtabs_for_function)
15215 (psym_map_symbol_filenames, psym_map_matching_symbols)
15216 (psym_expand_symtabs_matching)
15217 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15218 (maintenance_check_psymtabs): Use new methods.
15219 * psympriv.h (struct partial_symtab) <readin_p,
15220 get_compunit_symtab>: New methods.
15221 <readin, compunit_symtab>: Remove members.
15222 (struct standard_psymtab): New.
15223 (struct legacy_psymtab): Derive from standard_psymtab.
15224 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15225 standard_psymtab.
15226 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15227
15228 2020-01-26 Tom Tromey <tom@tromey.com>
15229
15230 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15231 read_dependencies. Add assert.
15232 * psymtab.c (partial_symtab::read_dependencies): New method.
15233 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15234 method.
15235 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15236 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15237 read_dependencies.
15238 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15239 Add assert.
15240
15241 2020-01-26 Tom Tromey <tom@tromey.com>
15242
15243 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15244 Call expand_psymtab.
15245 (xcoff_read_symtab): Call expand_psymtab.
15246 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15247 legacy_expand_psymtab.
15248 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15249 method.
15250 (struct legacy_psymtab) <expand_psymtab>: Implement.
15251 <legacy_expand_psymtab>: New member.
15252 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15253 (parse_partial_symbols): Set legacy_expand_psymtab.
15254 (psymtab_to_symtab_1): Change argument order. Call
15255 expand_psymtab.
15256 (new_psymtab): Set legacy_expand_psymtab.
15257 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15258 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15259 expand_psymtab.
15260 (dwarf2_psymtab::expand_psymtab): Rename from
15261 psymtab_to_symtab_1. Call expand_psymtab.
15262 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15263 (dbx_end_psymtab): Likewise.
15264 (dbx_psymtab_to_symtab_1): Change argument order. Call
15265 expand_psymtab.
15266 (dbx_read_symtab): Call expand_psymtab.
15267 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15268 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15269 (ctf_psymtab::read_symtab): Call expand_psymtab.
15270
15271 2020-01-26 Tom Tromey <tom@tromey.com>
15272
15273 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15274 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15275 messages.
15276 * mdebugread.c (mdebug_read_symtab): Remove prints.
15277 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15278 assert.
15279 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15280
15281 2020-01-26 Tom Tromey <tom@tromey.com>
15282
15283 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15284 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15285 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15286 legacy_symtab.
15287 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15288 * psymtab.c (psymtab_to_symtab): Call method.
15289 (dump_psymtab): Update.
15290 * psympriv.h (struct partial_symtab): Add virtual destructor.
15291 <read_symtab>: New method.
15292 (struct legacy_symtab): New.
15293 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15294 (struct pst_map) <pst>: Now a legacy_psymtab.
15295 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15296 (new_psymtab): Use legacy_psymtab.
15297 * dwarf2read.h (struct dwarf2_psymtab): New.
15298 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15299 * dwarf2read.c (dwarf2_create_include_psymtab)
15300 (dwarf2_build_include_psymtabs, create_type_unit_group)
15301 (create_partial_symtab, process_psymtab_comp_unit_reader)
15302 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15303 (set_partial_user): Use dwarf2_psymtab.
15304 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15305 (psymtab_to_symtab_1, process_full_comp_unit)
15306 (process_full_type_unit, dwarf2_ranges_read)
15307 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15308 (dwarf_decode_lines): Use dwarf2_psymtab.
15309 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15310 (add_address_entry_worker, write_one_signatured_type)
15311 (recursively_count_psymbols, recursively_write_psymbols)
15312 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15313 (write_debug_names): Likewise.
15314 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15315 <pst>: Now a legacy_psymtab.
15316 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15317 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15318 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15319 * ctfread.c (struct ctf_psymtab): New.
15320 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15321 ctf_psymtab.
15322 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15323 (create_partial_symtab): Return a ctf_psymtab.
15324 (scan_partial_symbols): Update.
15325
15326 2020-01-26 Tom Tromey <tom@tromey.com>
15327
15328 * xcoffread.c (xcoff_start_psymtab): Use new.
15329 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15330 renamed from start_psymtab_common.
15331 * psympriv.h (struct partial_symtab): Add new constructor.
15332 (start_psymtab_common): Don't declare.
15333 * mdebugread.c (parse_partial_symbols): Use new.
15334 * dwarf2read.c (create_partial_symtab): Use new.
15335 * dbxread.c (start_psymtab): Use new.
15336 * ctfread.c (create_partial_symtab): Use new.
15337
15338 2020-01-26 Tom Tromey <tom@tromey.com>
15339
15340 * xcoffread.c (xcoff_end_psymtab): Use new.
15341 * psymtab.c (start_psymtab_common): Use new.
15342 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15343 Update.
15344 * psympriv.h (struct partial_symtab): Add parameters to
15345 constructor. Don't inline.
15346 (allocate_psymtab): Don't declare.
15347 * mdebugread.c (new_psymtab): Use new.
15348 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15349 * dbxread.c (dbx_end_psymtab): Use new.
15350
15351 2020-01-26 Tom Tromey <tom@tromey.com>
15352
15353 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15354 allocate_psymtab. Update documentation.
15355 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15356 allocate_psymtab. Do not use new.
15357 (allocate_psymtab): Use new. Update.
15358
15359 2020-01-26 Tom Tromey <tom@tromey.com>
15360
15361 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15362 * psymtab.c (psym_print_stats): Update.
15363 * psympriv.h (struct partial_symtab) <readin,
15364 psymtabs_addrmap_supported, anonymous>: Now bool.
15365 * mdebugread.c (psymtab_to_symtab_1): Update.
15366 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15367 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15368 (process_full_comp_unit, process_full_type_unit): Update.
15369 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15370 * ctfread.c (psymtab_to_symtab): Update.
15371
15372 2020-01-26 Tom Tromey <tom@tromey.com>
15373
15374 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15375 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15376 * psymtab.c (psymtab_storage): Delete psymtabs.
15377 (psymtab_storage::allocate_psymtab): Use new.
15378 (psymtab_storage::discard_psymtab): Use delete.
15379 * psympriv.h (struct partial_symtab): Add constructor and
15380 initializers.
15381
15382 2020-01-26 Tom Tromey <tom@tromey.com>
15383
15384 * machoread.c: Do not include psympriv.h.
15385
15386 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15387
15388 * NEWS: Mention the new option and the set/show commands.
15389
15390 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15391
15392 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15393 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15394 (validate_exec_file): New variables, enums, functions.
15395 (exec_file_locate_attach, print_section_info): Style the filenames.
15396 (_initialize_exec): Install show_exec_file_mismatch_command and
15397 set_exec_file_mismatch_command.
15398 * gdbcore.h (validate_exec_file): Declare.
15399 * infcmd.c (attach_command): Call validate_exec_file.
15400 * remote.c ( remote_target::remote_add_inferior): Likewise.
15401
15402 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15403
15404 * frame.c (find_frame_sal): Move call to get_next_frame into more
15405 inner scope.
15406 * inline-frame.c (inilne_state) <inline_state>: Update argument
15407 types.
15408 (inilne_state) <skipped_symbol>: Rename to...
15409 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15410 (skip_inline_frames): Build vector of skipped symbols and use this
15411 to reate the inline_state.
15412 (inline_skipped_symbol): Add a comment and some assertions, fetch
15413 skipped symbol from the list.
15414
15415 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15416
15417 * buildsym.c (lte_is_less_than): Delete.
15418 (buildsym_compunit::end_symtab_with_blockvector): Create local
15419 lambda function to sort line table entries, and use
15420 std::stable_sort instead of std::sort.
15421 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15422 markers when looking for a previous line.
15423
15424 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15425
15426 * dwarf2read.c (lnp_state_machine::record_line): Include
15427 end_sequence parameter in debug print out. Record the line if we
15428 are at an end_sequence marker even if it's not the start of a
15429 statement.
15430 * symmisc.c (maintenance_print_one_line_table): Print end of
15431 sequence markers with 'END' not '0'.
15432
15433 2020-01-24 Pedro Alves <palves@redhat.com>
15434
15435 PR gdb/25410
15436 * thread.c (scoped_restore_current_thread::restore): Use
15437 switch_to_inferior_no_thread.
15438 * exec.c: Include "progspace-and-thread.h".
15439 (add_target_sections, remove_target_sections):
15440 scoped_restore_current_pspace_and_thread instead of
15441 scoped_restore_current_thread.
15442 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15443 and aspace to the inferior before calling clone_program_space.
15444 Remove stale comment.
15445
15446 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15447
15448 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15449 (arm_netbsd_nat_target::fetch_registers): ...this.
15450 (arm_nbsd_nat_target::store_registers): Rename to...
15451 (arm_netbsd_nat_target::store_registers): ...this.
15452
15453 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15454
15455 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15456 register_t.
15457
15458 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15459
15460 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15461 Update comment.
15462 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15463 Likewise.
15464 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15465 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15466 the correct replacement (iterate_over_regset_sections).
15467 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15468 Update comment.
15469
15470 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15471
15472 PR gdb/23718
15473 * gdb/python/python.c (execute_gdb_command): Call
15474 async_enable_stdin in catch block.
15475
15476 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15477
15478 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15479 SWITCH_THRU_ALL_UIS.
15480
15481 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15482
15483 PR tui/9765
15484 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15485 comment, add extra parameter, and update to store previous symbol
15486 when appropriate.
15487 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15488 add extra parameter.
15489 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15490 remove unneeded parameter, add try/catch around gdb_print_insn,
15491 rewrite to add items to asm_lines vector.
15492 (tui_find_backward_disassembly_start_address): New function.
15493 (tui_find_disassembly_address): Updated throughout.
15494 (tui_disasm_window::set_contents): Update for changes to
15495 tui_disassemble.
15496 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15497 number of lines to scroll.
15498
15499 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15500
15501 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15502 (SECT_OFF_DATA): Likewise.
15503 (SECT_OFF_RODATA): Likewise.
15504 (SECT_OFF_TEXT): Likewise.
15505 (SECT_OFF_BSS): Likewise.
15506 (struct objfile) <text_section_offset, data_section_offset>: New
15507 methods.
15508 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15509 objfile::text_section_offset.
15510 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15511 * coffread.c (coff_symtab_read): Likewise.
15512 (enter_linenos): Likewise.
15513 (process_coff_symbol): Likewise.
15514 * ctfread.c (get_objfile_text_range): Likewise.
15515 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15516 Use objfile::data_section_offset.
15517 * dwarf2-frame.c (execute_cfa_program): Use
15518 objfile::text_section_offset.
15519 (dwarf2_frame_find_fde): Likewise.
15520 * dwarf2read.c (create_addrmap_from_index): Likewise.
15521 (create_addrmap_from_aranges): Likewise.
15522 (dw2_find_pc_sect_compunit_symtab): Likewise.
15523 (process_psymtab_comp_unit_reader): Likewise.
15524 (add_partial_symbol): Likewise.
15525 (add_partial_subprogram): Likewise.
15526 (process_full_comp_unit): Likewise.
15527 (read_file_scope): Likewise.
15528 (read_func_scope): Likewise.
15529 (read_lexical_block_scope): Likewise.
15530 (read_call_site_scope): Likewise.
15531 (dwarf2_rnglists_process): Likewise.
15532 (dwarf2_ranges_process): Likewise.
15533 (dwarf2_ranges_read): Likewise.
15534 (dwarf_decode_lines_1): Likewise.
15535 (new_symbol): Likewise.
15536 (dwarf2_fetch_die_loc_sect_off): Likewise.
15537 (dwarf2_per_cu_text_offset): Likewise.
15538 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15539 * hppa-tdep.c (read_unwind_info): Likewise.
15540 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15541 * psympriv.h (struct partial_symtab): Likewise.
15542 * psymtab.c (find_pc_sect_psymtab): Likewise.
15543 * solib-svr4.c (enable_break): Likewise.
15544 * stap-probe.c (relocate_address): Use
15545 objfile::data_section_offset.
15546 * xcoffread.c (enter_line_range): Use
15547 objfile::text_section_offset.
15548 (read_xcoff_symtab): Likewise.
15549
15550 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15551
15552 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15553 declaration to narrower scopes.
15554
15555 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15556
15557 * darwin-nat.h (struct darwin_exception_msg, enum
15558 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15559 Move up.
15560 (class darwin_nat_target) <wait_1, check_new_threads,
15561 decode_exception_message, decode_message, stop_inferior,
15562 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15563 * darwin-nat.c (darwin_check_new_threads): Rename to...
15564 (darwin_nat_target::check_new_threads): ... this.
15565 (darwin_suspend_inferior_it): Remove.
15566 (darwin_decode_exception_message): Rename to...
15567 (darwin_nat_target::decode_exception_message): ... this.
15568 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15569 (darwin_decode_message): Rename to...
15570 (darwin_nat_target::decode_message): ... this.
15571 (cancel_breakpoint): Rename to...
15572 (darwin_nat_target::cancel_breakpoint): ... this.
15573 (darwin_wait): Rename to...
15574 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15575 instead of iterate_over_inferiors.
15576 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15577 (darwin_stop_inferior): Rename to...
15578 (darwin_nat_target::stop_inferior): ... this.
15579 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15580 (darwin_init_thread_list): Rename to...
15581 (darwin_nat_target::init_thread_list): ... this.
15582 (darwin_ptrace_him): Rename to...
15583 (darwin_nat_target::ptrace_him): ... this.
15584 (darwin_nat_target::create_inferior): Pass lambda function to
15585 fork_inferior.
15586 (darwin_nat_target::detach): Call stop_inferior instead of
15587 darwin_stop_inferior.
15588 * fork-inferior.h (fork_inferior): Change init_trace_fun
15589 parameter to gdb::function_view.
15590 * fork-inferior.c (fork_inferior): Likewise.
15591
15592 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15593
15594 * i386-cygwin-tdep.c (core_process_module_section): Update.
15595 * windows-nat.c (struct lm_info_windows): Add text_offset.
15596 (windows_xfer_shared_libraries): Update.
15597 * windows-tdep.c (windows_xfer_shared_library):
15598 Add text_offset_cached argument.
15599 * windows-tdep.h (windows_xfer_shared_library): Update.
15600
15601 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15602
15603 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15604
15605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15606
15607 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15608 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15609 replace with range-based for.
15610 (gdbsim_interrupt_inferior): Remove.
15611 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15612 with a range-based for. Inline code from
15613 gdbsim_interrupt_inferior.
15614
15615 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15616
15617 * infrun.c (proceed): Fix indentation.
15618
15619 2020-01-21 Tom Tromey <tromey@adacore.com>
15620
15621 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15622 * python/python.c (python_extension_ops): Update.
15623 (gdbpy_colorize): New function.
15624 * python/lib/gdb/__init__.py (colorize): New function.
15625 * extension.h (ext_lang_colorize): Declare.
15626 * extension.c (ext_lang_colorize): New function.
15627 * extension-priv.h (struct extension_language_ops) <colorize>: New
15628 member.
15629 * cli/cli-style.c (_initialize_cli_style): Update help text.
15630
15631 2020-01-21 Luis Machado <luis.machado@linaro.org>
15632
15633 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15634 <cond>: Change type to bool.
15635 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15636 (aarch64_displaced_step_cb): Likewise.
15637 (aarch64_displaced_step_tb): Likewise.
15638
15639 2020-01-21 Luis Machado <luis.machado@linaro.org>
15640
15641 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15642 output.
15643
15644 2020-01-21 Luis Machado <luis.machado@linaro.org>
15645
15646 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15647 <pc_adjust>: Adjust the documentation.
15648 (aarch64_displaced_step_fixup): Check if PC really moved before
15649 adjusting it.
15650
15651 2020-01-19 Tom Tromey <tom@tromey.com>
15652
15653 * disasm.c (~gdb_disassembler): New destructor.
15654 (gdb_buffered_insn_length): Call disassemble_free_target.
15655 * disasm.h (class gdb_disassembler): Declare destructor. Use
15656 DISABLE_COPY_AND_ASSIGN.
15657
15658 2020-01-19 Tom Tromey <tom@tromey.com>
15659
15660 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15661 (die_reader_func_ftype): Remove.
15662 (cutu_reader): New class.
15663 (dw2_get_file_names_reader): Remove "data" parameter.
15664 (dw2_get_file_names): Use cutu_reader.
15665 (create_debug_type_hash_table): Update.
15666 (read_cutu_die_from_dwo): Update comment.
15667 (lookup_dwo_unit): Add dwo_name parameter.
15668 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15669 die_reader_func_ftype and data parameters.
15670 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15671 Remove die_reader_func_ftype and data parameters.
15672 (~cutu_reader): New; from init_cutu_and_read_dies.
15673 (cutu_reader::cutu_reader): Rename from
15674 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15675 and data parameters.
15676 (init_cutu_and_read_dies_simple): Remove.
15677 (struct process_psymtab_comp_unit_data): Remove.
15678 (process_psymtab_comp_unit_reader): Remove data parameter; add
15679 want_partial_unit and pretend_language parameters.
15680 (process_psymtab_comp_unit): Use cutu_reader.
15681 (build_type_psymtabs_reader): Remove data parameter.
15682 (build_type_psymtabs_1): Use cutu_reader.
15683 (process_skeletonless_type_unit): Likewise.
15684 (load_partial_comp_unit_reader): Remove.
15685 (load_partial_comp_unit): Use cutu_reader.
15686 (load_full_comp_unit_reader): Remove.
15687 (load_full_comp_unit): Use cutu_reader.
15688 (struct create_dwo_cu_data): Remove.
15689 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15690 dwo_unit parameters.
15691 (create_cus_hash_table): Use cutu_reader.
15692 (struct dwarf2_read_addr_index_data): Remove.
15693 (dwarf2_read_addr_index_reader): Remove.
15694 (dwarf2_read_addr_index): Use cutu_reader.
15695 (read_signatured_type_reader): Remove.
15696 (read_signatured_type): Use cutu_reader.
15697
15698 2020-01-19 Tom Tromey <tom@tromey.com>
15699
15700 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15701 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15702 (tui_wrefresh): Declare.
15703 * tui/tui-wingeneral.c (suppress_output): New global.
15704 (tui_suppress_output, ~tui_suppress_output): New constructor and
15705 destructor.
15706 (tui_wrefresh): New function.
15707 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15708 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15709 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15710 method.
15711 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15712 tui_wrefresh.
15713 (tui_data_window::no_refresh): New method.
15714 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15715 (tui_reg_command): Use tui_suppress_output
15716 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15717 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15718 method.
15719 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15720
15721 2020-01-19 Tom Tromey <tom@tromey.com>
15722
15723 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15724 Handle case where symtab is null.
15725
15726 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15727
15728 * linux-fork.c (one_fork_p): Simplify.
15729
15730 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15731
15732 * top.c (struct qt_args): Remove.
15733 (kill_or_detach): Change return type to void, replace `void *`
15734 parameter with a proper one.
15735 (print_inferior_quit_action): Likewise.
15736 (quit_confirm): Use range-based for loop to iterate over inferiors.
15737 (quit_force): Likewise.
15738
15739 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15740
15741 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15742 `void *` parameter with proper parameters.
15743 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15744 (print_one_inferior): Change return type to void, replace `void *`
15745 parameter with proper parameters.
15746 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15747 inferiors.
15748 (get_other_inferior): Remove.
15749 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15750 inferiors.
15751
15752 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15753
15754 * mi/mi-interp.c (report_initial_inferior): Remove.
15755 (mi_interp::init): Use range-based for to iterate over inferiors.
15756
15757 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15758
15759 * python/py-inferior.c (build_inferior_list): Remove.
15760 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15761
15762 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15763
15764 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15765 (btrace_stitch_trace): Likewise.
15766 * charset.c (intermediate_encoding): Likewise (vaild).
15767 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15768 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15769 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15770
15771 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15772
15773 * windows-tdep.c (windows_get_tlb_type):
15774 Add rtl_user_process_parameters type.
15775
15776 2020-01-16 Pedro Alves <palves@redhat.com>
15777 Norbert Lange <nolange79@gmail.com>
15778
15779 PR build/24805
15780 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15781 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15782 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15783 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15784 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15785 (ps_plog): Redeclare exported functions with default visibility.
15786
15787 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15788
15789 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15790 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15791
15792 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15793
15794 * infcmd.c (post_create_inferior): Use get_thread_regcache
15795 instead of get_current_regcache.
15796
15797 2020-01-14 Tom Tromey <tom@tromey.com>
15798
15799 PR symtab/12535:
15800 * python/python.c (gdbpy_decode_line): Treat empty string the same
15801 as no argument.
15802
15803 2020-01-14 Tom Tromey <tom@tromey.com>
15804
15805 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15806
15807 2020-01-14 Tom Tromey <tom@tromey.com>
15808
15809 * nat/linux-btrace.c: Don't include <config.h>.
15810 * nat/linux-ptrace.c: Don't include <config.h>.
15811 * nat/x86-linux-dregs.c: Don't include <config.h>.
15812
15813 2020-01-14 Tom Tromey <tom@tromey.com>
15814
15815 * configure: Rebuild.
15816 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15817
15818 2020-01-14 Tom Tromey <tom@tromey.com>
15819
15820 * nat/x86-linux-dregs.c: Include configh.h.
15821 * nat/linux-ptrace.c: Include configh.h.
15822 * nat/linux-btrace.c: Include configh.h.
15823 * defs.h: Include config.h, bfd.h.
15824 * configure.ac: Don't source common.host.
15825 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15826 * configure: Rebuild.
15827 * acinclude.m4: Update path.
15828 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15829 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15830 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15831 (CLIBS): Add LIBSUPPORT.
15832 (CDEPS): Likewise.
15833 (COMMON_SFILES): Remove gdbsupport files.
15834 (HFILES_NO_SRCDIR): Likewise.
15835 (stamp-version): Update path to create-version.sh.
15836 (ALLDEPFILES): Remove gdbsupport files.
15837
15838 2020-01-14 Tom Tromey <tom@tromey.com>
15839
15840 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15841 USE_WIN32API when needed.
15842 * configure.ac (USE_WIN32API): Don't define.
15843 (WIN32LIBS): Use WIN32APILIBS.
15844 * configure: Rebuild.
15845
15846 2020-01-14 Tom Tromey <tom@tromey.com>
15847
15848 * configure: Rebuild.
15849 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15850
15851 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15852
15853 * skip.c (skip_function_command): Make skip w/o arguments use the
15854 name of the inlined function if pc is inside any inlined function.
15855
15856 2020-01-14 Luis Machado <luis.machado@linaro.org>
15857
15858 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15859 * infrun.c (resume_1): Likewise.
15860 (handle_inferior_event): Remove stale comment.
15861 * linux-nat.c (linux_nat_target::resume): Update comments.
15862 (save_stop_reason): Likewise.
15863 (linux_nat_filter_event): Likewise.
15864 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15865
15866 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15867
15868 * elfread.c (record_minimal_symbol): Set section index to 0 for
15869 non-allocatable sections.
15870
15871
15872 2020-01-13 Ali Tamur <tamur@google.com>
15873
15874 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15875 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15876 to gdb::optional. Update comments.
15877 (dwo_file): Update comments.
15878 (read_attribute): Update API to take an additional out parameter,
15879 need_reprocess. This is used to mark attributes that need other
15880 attributes (e.g. str_offsets_base) for correct computation which may not
15881 have been read yet.
15882 (read_attribute_reprocess): New function declaration.
15883 (read_addr_index): Likewise.
15884 (read_dwo_str_index): Likewise.
15885 (read_stub_str_index): Likewise.
15886 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15887 (lookup_addr_base): New function definition.
15888 (lookup_ranges_base): Likewise.
15889 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15890 lookup_ranges_base.
15891 (init_cutu_and_read_dies): Update comments.
15892 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15893 unit. This is used to inherit parent's str_offsets_base and addr_base.
15894 Update comments.
15895 (init_cutu_and_read_dies_simple): Reflect API changes.
15896 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15897 (create_cus_hash_table): Change API to take parent compile unit.
15898 Reflect API changes.
15899 (open_and_init_dwo_file): Reflect API changes.
15900 (dwarf2_get_pc_bounds): Update comments.
15901 (dwarf2_record_block_ranges): Likewise.
15902 (read_full_die_1): Change implementation to reprocess attributes that
15903 need str_offsets_base and addr_base.
15904 (partial_die_info::read): Likewise.
15905 (read_attribute_reprocess): New function definition.
15906 (read_attribute_value): Change API to take an additional out parameter,
15907 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15908 when a non-dwo compile unit has index based attributes.
15909 (read_attribute): Reflect API changes.
15910 (read_addr_index_1): Reflect API changes. Update comments.
15911 (dwarf2_read_addr_index_data): Reflect API changes.
15912 (dwarf2_read_addr_index): Likewise.
15913 (read_str_index): Change API and implementation. This becomes a helper
15914 to be used by the new string index related methods. Update error
15915 message and comments.
15916 (read_dwo_str_index): New function definition.
15917 (read_stub_str_index): Likewise.
15918 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15919 * symfile.h (dwarf2_debug_sections): Likewise.
15920 * xcoffread.c (dwarf2_debug_sections): Likewise.
15921
15922 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15923
15924 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15925 core_reg_sect type to gdb_byte *.
15926 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15927 * cris-tdep.c (fetch_core_registers): Likewise.
15928 * corelow.c (core_target::get_core_register_section): Change
15929 type of `contents` to gdb::byte_vector.
15930
15931 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15932
15933 * tui/tui-wingeneral.c (box_win): Position the title in the center
15934 of the border.
15935
15936 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15937
15938 * corelow.c (core_target::get_core_register_section): Use
15939 std::vector instead of alloca.
15940
15941 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15942
15943 * warning.m4: Add -Wmissing-declarations to build_warnings.
15944 * configure: Re-generate.
15945
15946 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15947
15948 * python/python.c (init__gdb_module): Add declaration.
15949
15950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15951
15952 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15953 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15954 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15955 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15956 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15957 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15958 * ada-exp.y (_initialize_ada_exp): Add declaration.
15959 * ada-lang.c (_initialize_ada_language): Add declaration.
15960 * ada-tasks.c (_initialize_tasks): Add declaration.
15961 * agent.c (_initialize_agent): Add declaration.
15962 * aix-thread.c (_initialize_aix_thread): Add declaration.
15963 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15964 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15965 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15966 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15967 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15968 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15969 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15970 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15971 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15972 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15973 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15974 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15975 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15976 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15977 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15978 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15979 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15980 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15981 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15982 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15983 * annotate.c (_initialize_annotate): Add declaration.
15984 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15985 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15986 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15987 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15988 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15989 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15990 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15991 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15992 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15993 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15994 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15995 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15996 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15997 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15998 * auto-load.c (_initialize_auto_load): Add declaration.
15999 * auxv.c (_initialize_auxv): Add declaration.
16000 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16001 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16002 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16003 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16004 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16005 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16006 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16007 * breakpoint.c (_initialize_breakpoint): Add declaration.
16008 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16009 * btrace.c (_initialize_btrace): Add declaration.
16010 * charset.c (_initialize_charset): Add declaration.
16011 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16012 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16013 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16014 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16015 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16016 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16017 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16018 * coffread.c (_initialize_coffread): Add declaration.
16019 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16020 * compile/compile.c (_initialize_compile): Add declaration.
16021 * complaints.c (_initialize_complaints): Add declaration.
16022 * completer.c (_initialize_completer): Add declaration.
16023 * copying.c (_initialize_copying): Add declaration.
16024 * corefile.c (_initialize_core): Add declaration.
16025 * corelow.c (_initialize_corelow): Add declaration.
16026 * cp-abi.c (_initialize_cp_abi): Add declaration.
16027 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16028 * cp-support.c (_initialize_cp_support): Add declaration.
16029 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16030 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16031 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16032 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16033 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16034 * ctfread.c (_initialize_ctfread): Add declaration.
16035 * d-lang.c (_initialize_d_language): Add declaration.
16036 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16037 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16038 * dbxread.c (_initialize_dbxread): Add declaration.
16039 * dcache.c (_initialize_dcache): Add declaration.
16040 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16041 * disasm.c (_initialize_disasm): Add declaration.
16042 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16043 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16044 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16045 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16046 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16047 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16048 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16049 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16050 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16051 * elfread.c (_initialize_elfread): Add declaration.
16052 * exec.c (_initialize_exec): Add declaration.
16053 * extension.c (_initialize_extension): Add declaration.
16054 * f-lang.c (_initialize_f_language): Add declaration.
16055 * f-valprint.c (_initialize_f_valprint): Add declaration.
16056 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16057 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16058 * filesystem.c (_initialize_filesystem): Add declaration.
16059 * findcmd.c (_initialize_mem_search): Add declaration.
16060 * findvar.c (_initialize_findvar): Add declaration.
16061 * fork-child.c (_initialize_fork_child): Add declaration.
16062 * frame-base.c (_initialize_frame_base): Add declaration.
16063 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16064 * frame.c (_initialize_frame): Add declaration.
16065 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16066 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16067 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16068 * gcore.c (_initialize_gcore): Add declaration.
16069 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16070 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16071 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16072 * gdbarch.c (_initialize_gdbarch): Add declaration.
16073 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16074 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16075 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16076 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16077 * go-lang.c (_initialize_go_language): Add declaration.
16078 * go32-nat.c (_initialize_go32_nat): Add declaration.
16079 * guile/guile.c (_initialize_guile): Add declaration.
16080 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16081 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16082 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16083 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16084 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16085 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16086 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16087 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16088 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16089 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16090 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16091 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16092 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16093 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16094 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16095 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16096 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16097 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16098 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16099 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16100 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16101 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16102 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16103 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16104 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16105 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16106 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16107 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16108 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16109 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16110 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16111 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16112 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16113 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16114 * infcall.c (_initialize_infcall): Add declaration.
16115 * infcmd.c (_initialize_infcmd): Add declaration.
16116 * inflow.c (_initialize_inflow): Add declaration.
16117 * infrun.c (_initialize_infrun): Add declaration.
16118 * interps.c (_initialize_interpreter): Add declaration.
16119 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16120 * jit.c (_initialize_jit): Add declaration.
16121 * language.c (_initialize_language): Add declaration.
16122 * linux-fork.c (_initialize_linux_fork): Add declaration.
16123 * linux-nat.c (_initialize_linux_nat): Add declaration.
16124 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16125 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16126 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16127 * m2-lang.c (_initialize_m2_language): Add declaration.
16128 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16129 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16130 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16131 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16132 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16133 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16134 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16135 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16136 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16137 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16138 * machoread.c (_initialize_machoread): Add declaration.
16139 * macrocmd.c (_initialize_macrocmd): Add declaration.
16140 * macroscope.c (_initialize_macroscope): Add declaration.
16141 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16142 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16143 * maint.c (_initialize_maint_cmds): Add declaration.
16144 * mdebugread.c (_initialize_mdebugread): Add declaration.
16145 * memattr.c (_initialize_mem): Add declaration.
16146 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16147 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16148 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16149 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16150 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16151 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16152 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16153 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16154 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16155 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16156 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16157 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16158 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16159 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16160 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16161 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16162 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16163 * mipsread.c (_initialize_mipsread): Add declaration.
16164 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16165 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16166 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16167 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16168 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16169 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16170 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16171 * nto-procfs.c (_initialize_procfs): Add declaration.
16172 * objc-lang.c (_initialize_objc_language): Add declaration.
16173 * observable.c (_initialize_observer): Add declaration.
16174 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16175 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16176 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16177 * osabi.c (_initialize_gdb_osabi): Add declaration.
16178 * osdata.c (_initialize_osdata): Add declaration.
16179 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16180 * parse.c (_initialize_parse): Add declaration.
16181 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16182 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16183 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16184 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16185 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16186 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16187 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16188 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16189 * printcmd.c (_initialize_printcmd): Add declaration.
16190 * probe.c (_initialize_probe): Add declaration.
16191 * proc-api.c (_initialize_proc_api): Add declaration.
16192 * proc-events.c (_initialize_proc_events): Add declaration.
16193 * proc-service.c (_initialize_proc_service): Add declaration.
16194 * procfs.c (_initialize_procfs): Add declaration.
16195 * producer.c (_initialize_producer): Add declaration.
16196 * psymtab.c (_initialize_psymtab): Add declaration.
16197 * python/python.c (_initialize_python): Add declaration.
16198 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16199 * record-btrace.c (_initialize_record_btrace): Add declaration.
16200 * record-full.c (_initialize_record_full): Add declaration.
16201 * record.c (_initialize_record): Add declaration.
16202 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16203 * regcache.c (_initialize_regcache): Add declaration.
16204 * reggroups.c (_initialize_reggroup): Add declaration.
16205 * remote-notif.c (_initialize_notif): Add declaration.
16206 * remote-sim.c (_initialize_remote_sim): Add declaration.
16207 * remote.c (_initialize_remote): Add declaration.
16208 * reverse.c (_initialize_reverse): Add declaration.
16209 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16210 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16211 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16212 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16213 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16214 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16215 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16216 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16217 Add declaration.
16218 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16219 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16220 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16221 * rust-exp.y (_initialize_rust_exp): Add declaration.
16222 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16223 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16224 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16225 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16226 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16227 * score-tdep.c (_initialize_score_tdep): Add declaration.
16228 * ser-go32.c (_initialize_ser_dos): Add declaration.
16229 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16230 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16231 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16232 * ser-uds.c (_initialize_ser_socket): Add declaration.
16233 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16234 * serial.c (_initialize_serial): Add declaration.
16235 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16236 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16237 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16238 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16239 * skip.c (_initialize_step_skip): Add declaration.
16240 * sol-thread.c (_initialize_sol_thread): Add declaration.
16241 * solib-aix.c (_initialize_solib_aix): Add declaration.
16242 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16243 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16244 * solib-frv.c (_initialize_frv_solib): Add declaration.
16245 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16246 * solib-target.c (_initialize_solib_target): Add declaration.
16247 * solib.c (_initialize_solib): Add declaration.
16248 * source-cache.c (_initialize_source_cache): Add declaration.
16249 * source.c (_initialize_source): Add declaration.
16250 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16251 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16252 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16253 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16254 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16255 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16256 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16257 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16258 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16259 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16260 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16261 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16262 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16263 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16264 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16265 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16266 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16267 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16268 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16269 * stabsread.c (_initialize_stabsread): Add declaration.
16270 * stack.c (_initialize_stack): Add declaration.
16271 * stap-probe.c (_initialize_stap_probe): Add declaration.
16272 * std-regs.c (_initialize_frame_reg): Add declaration.
16273 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16274 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16275 * symfile.c (_initialize_symfile): Add declaration.
16276 * symmisc.c (_initialize_symmisc): Add declaration.
16277 * symtab.c (_initialize_symtab): Add declaration.
16278 * target.c (_initialize_target): Add declaration.
16279 * target-connection.c (_initialize_target_connection): Add
16280 declaration.
16281 * target-dcache.c (_initialize_target_dcache): Add declaration.
16282 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16283 * thread.c (_initialize_thread): Add declaration.
16284 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16285 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16286 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16287 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16288 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16289 * tracectf.c (_initialize_ctf): Add declaration.
16290 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16291 * tracefile.c (_initialize_tracefile): Add declaration.
16292 * tracepoint.c (_initialize_tracepoint): Add declaration.
16293 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16294 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16295 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16296 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16297 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16298 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16299 * tui/tui.c (_initialize_tui): Add declaration.
16300 * typeprint.c (_initialize_typeprint): Add declaration.
16301 * ui-style.c (_initialize_ui_style): Add declaration.
16302 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16303 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16304 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16305 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16306 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16307 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16308 * unittests/filtered_iterator-selftests.c
16309 (_initialize_filtered_iterator_selftests): Add declaration.
16310 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16311 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16312 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16313 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16314 * unittests/main-thread-selftests.c
16315 (_initialize_main_thread_selftests): Add declaration.
16316 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16317 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16318 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16319 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16320 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16321 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16322 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16323 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16324 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16325 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16326 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16327 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16328 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16329 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16330 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16331 declaration.
16332 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16333 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16334 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16335 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16336 * user-regs.c (_initialize_user_regs): Add declaration.
16337 * utils.c (_initialize_utils): Add declaration.
16338 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16339 * valops.c (_initialize_valops): Add declaration.
16340 * valprint.c (_initialize_valprint): Add declaration.
16341 * value.c (_initialize_values): Add declaration.
16342 * varobj.c (_initialize_varobj): Add declaration.
16343 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16344 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16345 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16346 * windows-nat.c (_initialize_windows_nat): Add declaration.
16347 (_initialize_check_for_gdb_ini): Add declaration.
16348 (_initialize_loadable): Add declaration.
16349 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16350 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16351 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16352 * xcoffread.c (_initialize_xcoffread): Add declaration.
16353 * xml-support.c (_initialize_xml_support): Add declaration.
16354 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16355 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16356 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16357 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16358
16359 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16360
16361 * regformats/regdat.sh: Generate declaration for init function.
16362
16363 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16364
16365 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16366 up.
16367 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16368 close_one_inferior>: New methods.
16369 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16370 pass down target to find_inferior_pid.
16371 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16372 Pass down target to find_inferior_ptid.
16373 (gdbsim_target::create_inferior): Pass down target to
16374 add_thread_silent.
16375 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16376 target down to find_inferior_ptid and switch_to_thread.
16377 (gdbsim_target::close): Update to call close_one_inferior.
16378 (struct resume_data): Remove.
16379 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16380 directly, rather than through a void pointer.
16381 (gdbsim_target::resume): Update to call resume_one_inferior.
16382
16383 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16384
16385 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16386
16387 2020-01-12 Pedro Alves <palves@redhat.com>
16388
16389 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16390 directly for the current inferior instead of
16391 discard_all_inferiors.
16392 (discard_all_inferiors): Delete.
16393
16394 2020-01-11 Tom Tromey <tom@tromey.com>
16395
16396 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16397 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16398 deprecated_safe_get_selected_frame.
16399
16400 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16401
16402 * inferior.c (print_inferior): Switch inferior before printing it.
16403
16404 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16405 Pedro Alves <palves@redhat.com>
16406
16407 * progspace-and-thread.c (switch_to_program_space_and_thread):
16408 Assert there's an inferior for PSPACE. Use
16409 switch_to_inferior_no_thread to switch the inferior too.
16410 * progspace.c (program_space::~program_space): Call
16411 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16412 (program_space::free_all_objfiles): Don't call clear_symtab_users
16413 here.
16414 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16415
16416 2020-01-10 Pedro Alves <palves@redhat.com>
16417
16418 * NEWS: Mention multi-target debugging, "info connections", and
16419 "add-inferior -no-connection".
16420
16421 2020-01-10 Pedro Alves <palves@redhat.com>
16422
16423 * infrun.c: Include "target-connection.h".
16424 (check_multi_target_resumption): New.
16425 (proceed): Call it.
16426 * target-connection.c (make_target_connection_string): Make
16427 extern.
16428 * target-connection.h (make_target_connection_string): Declare.
16429
16430 2020-01-10 Pedro Alves <palves@redhat.com>
16431
16432 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16433 * inferior.c (uiout_field_connection): New function.
16434 (print_inferior): Add new "connection-id" column.
16435 (add_inferior_command): Show connection number/string of added
16436 inferior.
16437 * process-stratum-target.h
16438 (process_stratum_target::connection_string): New virtual method.
16439 (process_stratum_target::connection_number): New field.
16440 * remote.c (remote_target::connection_string): New override.
16441 * target-connection.c: New file.
16442 * target-connection.h: New file.
16443 * target.c (decref_target): Remove process_stratum targets from
16444 the connection list.
16445 (target_stack::push): Add process_stratum targets to the
16446 connection list.
16447
16448 2020-01-10 Pedro Alves <palves@redhat.com>
16449
16450 Revert:
16451 2016-04-12 Pedro Alves <palves@redhat.com>
16452 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16453 Remove references to name.
16454 * serial.h (struct serial) <name>: Delete.
16455
16456 2020-01-10 Pedro Alves <palves@redhat.com>
16457
16458 * gdbarch-selftests.c (register_to_value_test): Remove "target
16459 already pushed" check.
16460
16461 2020-01-10 Pedro Alves <palves@redhat.com>
16462 John Baldwin <jhb@FreeBSD.org>
16463
16464 * aarch64-linux-nat.c
16465 (aarch64_linux_nat_target::thread_architecture): Adjust.
16466 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16467 (task_command_1): Likewise.
16468 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16469 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16470 (aix_thread_target::store_registers)
16471 (aix_thread_target::thread_alive): Adjust.
16472 * amd64-fbsd-tdep.c: Include "inferior.h".
16473 (amd64fbsd_get_thread_local_address): Pass down target.
16474 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16475 thread's gdbarch instead of target_gdbarch.
16476 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16477 get_last_target_status.
16478 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16479 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16480 inferiors.
16481 (update_inserted_breakpoint_locations): Skip if inferiors with no
16482 execution.
16483 (update_global_location_list): When handling moribund locations,
16484 find representative inferior for location's pspace, and use thread
16485 count of its process_stratum target.
16486 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16487 * bsd-uthread.c (bsd_uthread_target::wait): Use
16488 as_process_stratum_target and adjust thread_change_ptid and
16489 add_thread calls.
16490 (bsd_uthread_target::update_thread_list): Use
16491 as_process_stratum_target and adjust find_thread_ptid,
16492 thread_change_ptid and add_thread calls.
16493 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16494 find_thread_ptid call.
16495 * corelow.c (add_to_thread_list): Adjust add_thread call.
16496 (core_target_open): Adjust add_thread_silent and thread_count
16497 calls.
16498 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16499 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16500 * event-top.c (async_disconnect): Pop targets from all inferiors.
16501 * exec.c (add_target_sections): Push exec target on all inferiors
16502 sharing the program space.
16503 (remove_target_sections): Remove the exec target from all
16504 inferiors sharing the program space.
16505 (exec_on_vfork): New.
16506 * exec.h (exec_on_vfork): Declare.
16507 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16508 Pass it down.
16509 (fbsd_nat_target::update_thread_list): Adjust.
16510 (fbsd_nat_target::resume): Adjust.
16511 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16512 down.
16513 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16514 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16515 get_thread_arch_regcache call.
16516 * fork-child.c (gdb_startup_inferior): Pass target down to
16517 startup_inferior and set_executing.
16518 * gdbthread.h (struct process_stratum_target): Forward declare.
16519 (add_thread, add_thread_silent, add_thread_with_info)
16520 (in_thread_list): Add process_stratum_target parameter.
16521 (find_thread_ptid(inferior*, ptid_t)): New overload.
16522 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16523 parameter.
16524 (all_threads()): Delete overload.
16525 (all_threads, all_non_exited_threads): Add process_stratum_target
16526 parameter.
16527 (all_threads_safe): Use brace initialization.
16528 (thread_count): Add process_stratum_target parameter.
16529 (set_resumed, set_running, set_stop_requested, set_executing)
16530 (threads_are_executing, finish_thread_state): Add
16531 process_stratum_target parameter.
16532 (switch_to_thread): Use is_current_thread.
16533 * i386-fbsd-tdep.c: Include "inferior.h".
16534 (i386fbsd_get_thread_local_address): Pass down target.
16535 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16536 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16537 have_inferiors check.
16538 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16539 (inf_ptrace_target::attach): Adjust.
16540 * infcall.c (run_inferior_call): Adjust.
16541 * infcmd.c (run_command_1): Pass target to
16542 scoped_finish_thread_state.
16543 (proceed_thread_callback): Skip inferiors with no execution.
16544 (continue_command): Rename 'all_threads' local to avoid hiding
16545 'all_threads' function. Adjust get_last_target_status call.
16546 (prepare_one_step): Adjust set_running call.
16547 (signal_command): Use user_visible_resume_target. Compare thread
16548 pointers instead of inferior_ptid.
16549 (info_program_command): Adjust to pass down target.
16550 (attach_command): Mark target's 'thread_executing' flag.
16551 (stop_current_target_threads_ns): New, factored out from ...
16552 (interrupt_target_1): ... this. Switch inferior before making
16553 target calls.
16554 * inferior-iter.h
16555 (struct all_inferiors_iterator, struct all_inferiors_range)
16556 (struct all_inferiors_safe_range)
16557 (struct all_non_exited_inferiors_range): Filter on
16558 process_stratum_target too. Remove explicit.
16559 * inferior.c (inferior::inferior): Push dummy target on target
16560 stack.
16561 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16562 Add process_stratum_target parameter, and pass it down.
16563 (have_live_inferiors): Adjust.
16564 (switch_to_inferior_and_push_target): New.
16565 (add_inferior_command, clone_inferior_command): Handle
16566 "-no-connection" parameter. Use
16567 switch_to_inferior_and_push_target.
16568 (_initialize_inferior): Mention "-no-connection" option in
16569 the help of "add-inferior" and "clone-inferior" commands.
16570 * inferior.h: Include "process-stratum-target.h".
16571 (interrupt_target_1): Use bool.
16572 (struct inferior) <push_target, unpush_target, target_is_pushed,
16573 find_target_beneath, top_target, process_target, target_at,
16574 m_stack>: New.
16575 (discard_all_inferiors): Delete.
16576 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16577 (all_inferiors, all_non_exited_inferiors): Add
16578 process_stratum_target parameter.
16579 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16580 (target_last_proc_target): New global.
16581 (follow_fork_inferior): Push target on new inferior. Pass target
16582 to add_thread_silent. Call exec_on_vfork. Handle target's
16583 reference count.
16584 (follow_fork): Adjust get_last_target_status call. Also consider
16585 target.
16586 (follow_exec): Push target on new inferior.
16587 (struct execution_control_state) <target>: New field.
16588 (user_visible_resume_target): New.
16589 (do_target_resume): Call target_async.
16590 (resume_1): Set target's threads_executing flag. Consider resume
16591 target.
16592 (commit_resume_all_targets): New.
16593 (proceed): Also consider resume target. Skip threads of inferiors
16594 with no execution. Commit resumtion in all targets.
16595 (start_remote): Pass current inferior to wait_for_inferior.
16596 (infrun_thread_stop_requested): Consider target as well. Pass
16597 thread_info pointer to clear_inline_frame_state instead of ptid.
16598 (infrun_thread_thread_exit): Consider target as well.
16599 (random_pending_event_thread): New inferior parameter. Use it.
16600 (do_target_wait): Rename to ...
16601 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16602 down.
16603 (threads_are_resumed_pending_p, do_target_wait): New.
16604 (prepare_for_detach): Adjust calls.
16605 (wait_for_inferior): New inferior parameter. Handle it. Use
16606 do_target_wait_1 instead of do_target_wait.
16607 (fetch_inferior_event): Adjust. Switch to representative
16608 inferior. Pass target down.
16609 (set_last_target_status): Add process_stratum_target parameter.
16610 Save target in global.
16611 (get_last_target_status): Add process_stratum_target parameter and
16612 handle it.
16613 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16614 (context_switch): Check inferior_ptid == null_ptid before calling
16615 inferior_thread().
16616 (get_inferior_stop_soon): Pass down target.
16617 (wait_one): Rename to ...
16618 (poll_one_curr_target): ... this.
16619 (struct wait_one_event): New.
16620 (wait_one): New.
16621 (stop_all_threads): Adjust.
16622 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16623 event's target.
16624 (switch_back_to_stepped_thread): Also consider target.
16625 (print_stop_event): Update.
16626 (normal_stop): Update. Also consider the resume target.
16627 * infrun.h (wait_for_inferior): Remove declaration.
16628 (user_visible_resume_target): New declaration.
16629 (get_last_target_status, set_last_target_status): New
16630 process_stratum_target parameter.
16631 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16632 process_stratum_target parameter, and use it.
16633 (clear_inline_frame_state (thread_info*)): New.
16634 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16635 process_stratum_target parameter.
16636 (clear_inline_frame_state (thread_info*)): Declare.
16637 * linux-fork.c (delete_checkpoint_command): Pass target down to
16638 find_thread_ptid.
16639 (checkpoint_command): Adjust.
16640 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16641 instead of just tweaking inferior_ptid.
16642 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16643 (exit_lwp): Pass target down to find_thread_ptid.
16644 (attach_proc_task_lwp_callback): Pass target down to
16645 add_thread/set_running/set_executing.
16646 (linux_nat_target::attach): Pass target down to
16647 thread_change_ptid.
16648 (get_detach_signal): Pass target down to find_thread_ptid.
16649 Consider last target status's target.
16650 (linux_resume_one_lwp_throw, resume_lwp)
16651 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16652 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16653 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16654 (linux_nat_target::async_wait_fd): New.
16655 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16656 target down.
16657 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16658 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16659 * linux-thread-db.c (struct thread_db_info::process_target): New
16660 field.
16661 (add_thread_db_info): Save target.
16662 (get_thread_db_info): New process_stratum_target parameter. Also
16663 match target.
16664 (delete_thread_db_info): New process_stratum_target parameter.
16665 Also match target.
16666 (thread_from_lwp): Adjust to pass down target.
16667 (thread_db_notice_clone): Pass down target.
16668 (check_thread_db_callback): Pass down target.
16669 (try_thread_db_load_1): Always push the thread_db target.
16670 (try_thread_db_load, record_thread): Pass target down.
16671 (thread_db_target::detach): Pass target down. Always unpush the
16672 thread_db target.
16673 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16674 target down. Always unpush the thread_db target.
16675 (find_new_threads_callback, thread_db_find_new_threads_2)
16676 (thread_db_target::update_thread_list): Pass target down.
16677 (thread_db_target::pid_to_str): Pass current inferior down.
16678 (thread_db_target::get_thread_local_address): Pass target down.
16679 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16680 target down.
16681 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16682 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16683 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16684 (procfs_init_inferior): Rename to ...
16685 (procfs_target::procfs_init_inferior): ... this and adjust.
16686 (procfs_target::create_inferior, procfs_notice_thread)
16687 (procfs_do_thread_registers): Adjust.
16688 * ppc-fbsd-tdep.c: Include "inferior.h".
16689 (ppcfbsd_get_thread_local_address): Pass down target.
16690 * proc-service.c (ps_xfer_memory): Switch current inferior and
16691 program space as well.
16692 (get_ps_regcache): Pass target down.
16693 * process-stratum-target.c
16694 (process_stratum_target::thread_address_space)
16695 (process_stratum_target::thread_architecture): Pass target down.
16696 * process-stratum-target.h
16697 (process_stratum_target::threads_executing): New field.
16698 (as_process_stratum_target): New.
16699 * ravenscar-thread.c
16700 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16701 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16702 down.
16703 * record-btrace.c (record_btrace_target::info_record): Adjust.
16704 (record_btrace_target::record_method)
16705 (record_btrace_target::record_is_replaying)
16706 (record_btrace_target::fetch_registers)
16707 (get_thread_current_frame_id, record_btrace_target::resume)
16708 (record_btrace_target::wait, record_btrace_target::stop): Pass
16709 target down.
16710 * record-full.c (record_full_wait_1): Switch to event thread.
16711 Pass target down.
16712 * regcache.c (regcache::regcache)
16713 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16714 process_stratum_target parameter and handle it.
16715 (current_thread_target): New global.
16716 (get_thread_regcache): Add process_stratum_target parameter and
16717 handle it. Switch inferior before calling target method.
16718 (get_thread_regcache): Pass target down.
16719 (get_thread_regcache_for_ptid): Pass target down.
16720 (registers_changed_ptid): Add process_stratum_target parameter and
16721 handle it.
16722 (registers_changed_thread, registers_changed): Pass target down.
16723 (test_get_thread_arch_aspace_regcache): New.
16724 (current_regcache_test): Define a couple local test_target_ops
16725 instances and use them for testing.
16726 (readwrite_regcache): Pass process_stratum_target parameter.
16727 (cooked_read_test, cooked_write_test): Pass mock_target down.
16728 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16729 (get_thread_arch_aspace_regcache): Add process_stratum_target
16730 parameter.
16731 (regcache::target): New method.
16732 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16733 (regcache::registers_changed_ptid): Add process_stratum_target
16734 parameter.
16735 (regcache::m_target): New field.
16736 (registers_changed_ptid): Add process_stratum_target parameter.
16737 * remote.c (remote_state::supports_vCont_probed): New field.
16738 (remote_target::async_wait_fd): New method.
16739 (remote_unpush_and_throw): Add remote_target parameter.
16740 (get_current_remote_target): Adjust.
16741 (remote_target::remote_add_inferior): Push target.
16742 (remote_target::remote_add_thread)
16743 (remote_target::remote_notice_new_inferior)
16744 (get_remote_thread_info): Pass target down.
16745 (remote_target::update_thread_list): Skip threads of inferiors
16746 bound to other targets. (remote_target::close): Don't discard
16747 inferiors. (remote_target::add_current_inferior_and_thread)
16748 (remote_target::process_initial_stop_replies)
16749 (remote_target::start_remote)
16750 (remote_target::remote_serial_quit_handler): Pass down target.
16751 (remote_target::remote_unpush_target): New remote_target
16752 parameter. Unpush the target from all inferiors.
16753 (remote_target::remote_unpush_and_throw): New remote_target
16754 parameter. Pass it down.
16755 (remote_target::open_1): Check whether the current inferior has
16756 execution instead of checking whether any inferior is live. Pass
16757 target down.
16758 (remote_target::remote_detach_1): Pass down target. Use
16759 remote_unpush_target.
16760 (extended_remote_target::attach): Pass down target.
16761 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16762 (remote_target::append_resumption): Pass down target.
16763 (remote_target::append_pending_thread_resumptions)
16764 (remote_target::remote_resume_with_hc, remote_target::resume)
16765 (remote_target::commit_resume): Pass down target.
16766 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16767 (remote_target::interrupt_query)
16768 (remote_target::remove_new_fork_children)
16769 (remote_target::check_pending_events_prevent_wildcard_vcont)
16770 (remote_target::remote_parse_stop_reply)
16771 (remote_target::process_stop_reply): Pass down target.
16772 (first_remote_resumed_thread): New remote_target parameter. Pass
16773 it down.
16774 (remote_target::wait_as): Pass down target.
16775 (unpush_and_perror): New remote_target parameter. Pass it down.
16776 (remote_target::readchar, remote_target::remote_serial_write)
16777 (remote_target::getpkt_or_notif_sane_1)
16778 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16779 down target.
16780 (remote_target::mourn_inferior): Pass down target. Use
16781 remote_unpush_target.
16782 (remote_target::core_of_thread)
16783 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16784 (remote_target::pid_to_exec_file)
16785 (remote_target::thread_handle_to_thread_info): Pass down target.
16786 (remote_target::async_wait_fd): New.
16787 * riscv-fbsd-tdep.c: Include "inferior.h".
16788 (riscv_fbsd_get_thread_local_address): Pass down target.
16789 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16790 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16791 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16792 Adjust.
16793 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16794 * solib-svr4.c (enable_break): Pass down target.
16795 * spu-multiarch.c (parse_spufs_run): Pass down target.
16796 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16797 * target-delegates.c: Regenerate.
16798 * target.c (g_target_stack): Delete.
16799 (current_top_target): Return the current inferior's top target.
16800 (target_has_execution_1): Refer to the passed-in inferior's top
16801 target.
16802 (target_supports_terminal_ours): Check whether the initial
16803 inferior was already created.
16804 (decref_target): New.
16805 (target_stack::push): Incref/decref the target.
16806 (push_target, push_target, unpush_target): Adjust.
16807 (target_stack::unpush): Defref target.
16808 (target_is_pushed): Return bool. Adjust to refer to the current
16809 inferior's target stack.
16810 (dispose_inferior): Delete, and inline parts ...
16811 (target_preopen): ... here. Only dispose of the current inferior.
16812 (target_detach): Hold strong target reference while detaching.
16813 Pass target down.
16814 (target_thread_name): Add assertion.
16815 (target_resume): Pass down target.
16816 (target_ops::beneath, find_target_at): Adjust to refer to the
16817 current inferior's target stack.
16818 (get_dummy_target): New.
16819 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16820 has a thread running.
16821 (initialize_targets): Rename to ...
16822 (_initialize_target): ... this.
16823 * target.h: Include "gdbsupport/refcounted-object.h".
16824 (struct target_ops): Inherit refcounted_object.
16825 (target_ops::shortname, target_ops::longname): Make const.
16826 (target_ops::async_wait_fd): New method.
16827 (decref_target): Declare.
16828 (struct target_ops_ref_policy): New.
16829 (target_ops_ref): New typedef.
16830 (get_dummy_target): Declare function.
16831 (target_is_pushed): Return bool.
16832 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16833 (all_matching_threads_iterator::all_matching_threads_iterator):
16834 Handle filter target.
16835 * thread-iter.h (struct all_matching_threads_iterator, struct
16836 all_matching_threads_range, class all_non_exited_threads_range):
16837 Filter by target too. Remove explicit.
16838 * thread.c (threads_executing): Delete.
16839 (inferior_thread): Pass down current inferior.
16840 (clear_thread_inferior_resources): Pass down thread pointer
16841 instead of ptid_t.
16842 (add_thread_silent, add_thread_with_info, add_thread): Add
16843 process_stratum_target parameter. Use it for thread and inferior
16844 searches.
16845 (is_current_thread): New.
16846 (thread_info::deletable): Use it.
16847 (find_thread_ptid, thread_count, in_thread_list)
16848 (thread_change_ptid, set_resumed, set_running): New
16849 process_stratum_target parameter. Pass it down.
16850 (set_executing): New process_stratum_target parameter. Pass it
16851 down. Adjust reference to 'threads_executing'.
16852 (threads_are_executing): New process_stratum_target parameter.
16853 Adjust reference to 'threads_executing'.
16854 (set_stop_requested, finish_thread_state): New
16855 process_stratum_target parameter. Pass it down.
16856 (switch_to_thread): Also match inferior.
16857 (switch_to_thread): New process_stratum_target parameter. Pass it
16858 down.
16859 (update_threads_executing): Reimplement.
16860 * top.c (quit_force): Pop targets from all inferior.
16861 (gdb_init): Don't call initialize_targets.
16862 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16863 Declare.
16864 (windows_add_thread, windows_delete_thread): Adjust.
16865 (get_windows_debug_event): Rename to ...
16866 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16867 * tracefile-tfile.c (tfile_target_open): Pass down target.
16868 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16869 Forward declare.
16870 (switch_to_thread): Add process_stratum_target parameter.
16871 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16872 parameter. Use it.
16873 (mi_on_resume): Pass target down.
16874 * nat/fork-inferior.c (startup_inferior): Add
16875 process_stratum_target parameter. Pass it down.
16876 * nat/fork-inferior.h (startup_inferior): Add
16877 process_stratum_target parameter.
16878 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16879
16880 2020-01-10 Pedro Alves <palves@redhat.com>
16881
16882 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16883 directly. Instead find the first thread in the thread list and
16884 use switch_to_thread.
16885
16886 2020-01-10 Pedro Alves <palves@redhat.com>
16887
16888 * remote.c (remote_target::remote_add_inferior): Don't bind a
16889 process to the current inferior if the current inferior is already
16890 bound to a process.
16891
16892 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16893 Pedro Alves <palves@redhat.com>
16894
16895 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16896 If no process is specified, return null_ptid instead of
16897 inferior_ptid.
16898 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16899 TARGET_WAITKIND_SIGNALLED with no pid.
16900
16901 2020-01-10 Pedro Alves <palves@redhat.com>
16902
16903 * remote.c (first_remote_resumed_thread): New.
16904 (remote_target::wait_as): Use it as default event_ptid instead of
16905 inferior_ptid.
16906
16907 2020-01-10 Pedro Alves <palves@redhat.com>
16908
16909 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16910
16911 2020-01-10 Pedro Alves <palves@redhat.com>
16912
16913 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16914 not -1.
16915
16916 2020-01-10 Pedro Alves <palves@redhat.com>
16917
16918 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16919 ptid to get_last_target_status.
16920 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16921 ptid to get_last_target_status.
16922 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16923 get_last_target_status.
16924 (info_program_command): Don't pass a target_waitstatus to
16925 get_last_target_status.
16926 * infrun.c (init_wait_for_inferior): Use
16927 nullify_last_target_wait_ptid.
16928 (get_last_target_status): Handle nullptr arguments.
16929 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16930 (print_stop_event): Don't pass a ptid to get_last_target_status.
16931 (normal_stop): Don't pass a ptid to get_last_target_status.
16932 * infrun.h (get_last_target_status, set_last_target_status): Move
16933 comments here and update.
16934 (nullify_last_target_wait_ptid): Declare.
16935 * linux-fork.c (fork_load_infrun_state): Remove local extern
16936 declaration of nullify_last_target_wait_ptid.
16937 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16938 to get_last_target_status.
16939
16940 2020-01-10 Pedro Alves <palves@redhat.com>
16941
16942 * gdbthread.h (scoped_restore_current_thread)
16943 <dont_restore, restore, m_dont_restore>: Declare.
16944 * thread.c (thread_alive): Add assertion. Return bool.
16945 (switch_to_thread_if_alive): New.
16946 (prune_threads): Switch inferior/thread.
16947 (print_thread_info_1): Switch thread before calling target methods.
16948 (scoped_restore_current_thread::restore): New, factored out from
16949 ...
16950 (scoped_restore_current_thread::~scoped_restore_current_thread):
16951 ... this.
16952 (scoped_restore_current_thread::scoped_restore_current_thread):
16953 Add assertion.
16954 (thread_apply_all_command, thread_select): Use
16955 switch_to_thread_if_alive.
16956 * infrun.c (proceed, restart_threads, handle_signal_stop)
16957 (switch_back_to_stepped_thread): Switch current thread before
16958 calling target methods.
16959
16960 2020-01-10 Pedro Alves <palves@redhat.com>
16961
16962 * inferior.c (switch_to_inferior_no_thread): New function,
16963 factored out from ...
16964 (inferior_command): ... here.
16965 * inferior.h (switch_to_inferior_no_thread): Declare.
16966 * mi/mi-main.c (run_one_inferior): Use
16967 switch_to_inferior_no_thread.
16968
16969 2020-01-10 Pedro Alves <palves@redhat.com>
16970
16971 * infcmd.c (kill_command): Remove dead code.
16972
16973 2020-01-10 Pedro Alves <palves@redhat.com>
16974
16975 * remote.c (remote_target::mourn_inferior): No longer check
16976 whether the target is running.
16977
16978 2020-01-10 Pedro Alves <palves@redhat.com>
16979
16980 * corelow.c (core_target::has_execution): Change parameter type to
16981 inferior pointer.
16982 * inferior.c (number_of_live_inferiors): Use
16983 inferior::has_execution instead of target_has_execution_1.
16984 * inferior.h (inferior::has_execution): New.
16985 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16986 inferior::has_execution instead of target_has_execution_1.
16987 * process-stratum-target.c
16988 (process_stratum_target::has_execution): Change parameter type to
16989 inferior pointer. Check the inferior's PID instead of
16990 inferior_ptid.
16991 * process-stratum-target.h
16992 (process_stratum_target::has_execution): Change parameter type to
16993 inferior pointer.
16994 * record-full.c (record_full_core_target::has_execution): Change
16995 parameter type to inferior pointer.
16996 * target.c (target_has_execution_1): Change parameter type to
16997 inferior pointer.
16998 (target_has_execution_current): Adjust.
16999 * target.h (target_ops::has_execution): Change parameter type to
17000 inferior pointer.
17001 (target_has_execution_1): Change parameter type to inferior
17002 pointer. Change return type to bool.
17003 * tracefile.h (tracefile_target::has_execution): Change parameter
17004 type to inferior pointer.
17005
17006 2020-01-10 Pedro Alves <palves@redhat.com>
17007
17008 * exceptions.c (print_flush): Remove current_top_target() check.
17009
17010 2020-01-10 Pedro Alves <palves@redhat.com>
17011
17012 * remote.c (show_remote_exec_file): Show the current inferior's
17013 exec-file instead of the command variable's value.
17014
17015 2020-01-10 Pedro Alves <palves@redhat.com>
17016
17017 * record-full.c (record_full_resume_ptid): New global.
17018 (record_full_target::resume): Set it.
17019 (record_full_wait_1): Use record_full_resume_ptid instead of
17020 inferior_ptid.
17021
17022 2020-01-10 Pedro Alves <palves@redhat.com>
17023
17024 * gdbthread.h (scoped_restore_current_thread)
17025 <dont_restore, restore, m_dont_restore>: Declare.
17026 * thread.c (thread_alive): Add assertion. Return bool.
17027 (switch_to_thread_if_alive): New.
17028 (prune_threads): Switch inferior/thread.
17029 (print_thread_info_1): Switch thread before calling target methods.
17030 (scoped_restore_current_thread::restore): New, factored out from
17031 ...
17032 (scoped_restore_current_thread::~scoped_restore_current_thread):
17033 ... this.
17034 (scoped_restore_current_thread::scoped_restore_current_thread):
17035 Add assertion.
17036 (thread_apply_all_command, thread_select): Use
17037 switch_to_thread_if_alive.
17038
17039 2020-01-10 George Barrett <bob@bob131.so>
17040
17041 * stap-probe.c (stap_modify_semaphore): Don't check for null
17042 semaphores.
17043 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17044 for null semaphores.
17045
17046 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17047
17048 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17049 all source windows, and maintain horizontal scroll status while
17050 doing so.
17051
17052 2020-01-09 Tom Tromey <tom@tromey.com>
17053
17054 PR tui/18932:
17055 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17056 update_source_window, not print_source_lines.
17057
17058 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17059
17060 * tui/tui.c (tui_enable): Register tui hooks after calling
17061 tui_display_main.
17062
17063 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17064
17065 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17066
17067 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17068
17069 * thread.c (print_thread_info_1): Fix indentation.
17070
17071 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17072
17073 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17074 unique_xmalloc_ptr outside the if to always free the demangled name.
17075
17076 2020-01-08 Tom Tromey <tromey@adacore.com>
17077
17078 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17079 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17080 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17081 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17082 Remove.
17083 (section_offsets): New typedef.
17084 * symtab.c (fixup_section, get_msymbol_address): Update.
17085 * symmisc.c (dump_msymbols): Update.
17086 * symfile.h (relative_addr_info_to_section_offsets)
17087 (symfile_map_offsets_to_segments): Update.
17088 * symfile.c (build_section_addr_info_from_objfile)
17089 (init_objfile_sect_indices): Update.
17090 (struct place_section_arg): Change type of "offsets".
17091 (place_section): Update.
17092 (relative_addr_info_to_section_offsets): Change type of
17093 "section_offsets". Remove "num_sections" parameter.
17094 (default_symfile_offsets, syms_from_objfile_1)
17095 (set_objfile_default_section_offset): Update.
17096 (reread_symbols): No need to preserve section offsets by hand.
17097 (symfile_map_offsets_to_segments): Change type of "offsets".
17098 * stap-probe.c (relocate_address): Update.
17099 * stabsread.h (process_one_symbol): Update.
17100 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17101 (solib_target_relocate_section_addresses): Update.
17102 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17103 Update.
17104 * solib-frv.c (frv_relocate_main_executable): Update.
17105 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17106 * solib-aix.c (solib_aix_get_section_offsets): Change return
17107 type.
17108 (solib_aix_solib_create_inferior_hook): Update.
17109 * remote.c (remote_target::get_offsets): Update.
17110 * psymtab.c (find_pc_sect_psymtab): Update.
17111 * psympriv.h (struct partial_symbol) <address, text_low,
17112 text_high>: Update.
17113 * objfiles.h (obj_section_offset): Update.
17114 (struct objfile) <section_offsets>: Change type.
17115 <num_sections>: Remove.
17116 (objfile_relocate): Update.
17117 * objfiles.c (entry_point_address_query): Update
17118 (relocate_one_symbol): Change type of "section_offsets".
17119 (objfile_relocate1, objfile_relocate1): Change type of
17120 "new_offsets".
17121 (objfile_rebase1): Update.
17122 * mipsread.c (mipscoff_symfile_read): Update.
17123 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17124 parameter.
17125 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17126 (parse_external, psymtab_to_symtab_1): Update.
17127 * machoread.c (macho_symfile_offsets): Update.
17128 * ia64-tdep.c (ia64_find_unwind_table): Update.
17129 * hppa-tdep.c (read_unwind_info): Update.
17130 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17131 * dwarf2read.c (create_addrmap_from_index)
17132 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17133 (process_psymtab_comp_unit_reader, add_partial_symbol)
17134 (add_partial_subprogram, process_full_comp_unit)
17135 (read_file_scope, read_func_scope, read_lexical_block_scope)
17136 (read_call_site_scope, dwarf2_rnglists_process)
17137 (dwarf2_ranges_process, dwarf2_ranges_read)
17138 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17139 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17140 Update.
17141 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17142 Update.
17143 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17144 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17145 (process_one_symbol): Change type of "section_offsets".
17146 * ctfread.c (get_objfile_text_range): Update.
17147 * coffread.c (coff_symtab_read, enter_linenos)
17148 (process_coff_symbol): Update.
17149 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17150 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17151
17152 2020-01-08 Tom Tromey <tromey@adacore.com>
17153
17154 * dwarf2read.c (parse_macro_definition): Use std::string.
17155 (parse_macro_definition): Likewise.
17156
17157 2020-01-08 Tom Tromey <tromey@adacore.com>
17158
17159 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17160 (ATTR_ALLOC_CHUNK): Remove.
17161
17162 2020-01-08 Tom Tromey <tromey@adacore.com>
17163
17164 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17165
17166 2020-01-08 Tom Tromey <tromey@adacore.com>
17167
17168 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17169 (dwarf2_compute_name, open_dwo_file): Likewise.
17170 (process_enumeration_scope): Use std::vector.
17171 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17172 (partial_die_info::fixup, dwarf2_start_subfile)
17173 (guess_full_die_structure_name, dwarf2_name): Likewise.
17174 (determine_prefix): Update.
17175 (guess_full_die_structure_name): Make return type const.
17176 (partial_die_full_name): Return unique_xmalloc_ptr.
17177 (DW_FIELD_ALLOC_CHUNK): Remove.
17178
17179 2020-01-07 Tom Tromey <tromey@adacore.com>
17180
17181 PR build/24937:
17182 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17183
17184 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17185
17186 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17187
17188 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17189
17190 * stack.c (print_frame_info): Move disassemble_next_line code
17191 inside source_print block.
17192
17193 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17194
17195 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17196 gdb/signals.h, as we are now using native signal symbols.
17197
17198 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17199
17200 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17201 overflow by an early check of content vs threshold.
17202 * tui/tui-source.c (tui_source_window::line_is_displayed):
17203 Likewise.
17204
17205 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17206
17207 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17208
17209 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17210
17211 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17212 export table if no section contains it's RVA.
17213
17214 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17215
17216 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17217
17218 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17219
17220 * source.c (print_source_lines_base): Set last_line_listed.
17221
17222 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17223
17224 * tui/tui-disasm.c: Remove trailing spaces.
17225
17226 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17227 Pedro Alves <palves@redhat.com>
17228
17229 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17230 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17231 (windows_gdb_signal_to_target): New function, uses the above
17232 enumeration to convert GDB internal signal codes to equivalent
17233 Windows codes.
17234 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17235 * windows-nat.c: Include "gdb_wait.h".
17236 (get_windows_debug_event): Extract the fatal exception from the
17237 exit status and convert to the equivalent Posix signal number.
17238 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17239 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17240 * gdbsupport/gdb_wait.c: New file, implements
17241 windows_status_to_termsig.
17242 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17243 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17244
17245 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17246
17247 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17248 show_layout.
17249
17250 2020-01-05 Luis Machado <luis.machado@linaro.org>
17251
17252 * aarch64-linux-nat.c
17253 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17254 and bfd_mach_aarch64.
17255
17256 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17257
17258 * ui-file.c (stdio_file::can_emit_style_escape)
17259 (tee_file::can_emit_style_escape): Ensure style is used also on
17260 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17261 to gdb_stdout.
17262 * main.c (set_gdb_data_directory): Use file style to output the
17263 warning that the given pathname is not a directory.
17264 * top.c (show_history_filename, gdb_safe_append_history)
17265 (show_gdb_datadir): Use file style.
17266
17267 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17268
17269 * solib-target.c (struct lm_info_target):
17270 Change offsets to be a unique_xmalloc_ptr.
17271 (solib_target_relocate_section_addresses): Update.
17272
17273 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17274
17275 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17276
17277 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17278
17279 * MAINTAINERS (Write After Approval): Add myself.
17280
17281 2020-01-02 Luis Machado <luis.machado@linaro.org>
17282
17283 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17284 Cell BE architecture.
17285 * target.h (struct target_ops) <thread_architecture>: Likewise.
17286
17287 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17288
17289 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17290
17291 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17292
17293 * MAINTAINERS (Write After Approval): Add myself.
17294
17295 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17296
17297 * gdbarch.sh: Update copyright year range of generated files.
17298
17299 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17300
17301 Update copyright year range in all GDB files.
17302
17303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17304
17305 * copyright.py: Convert to Python 3.
17306
17307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17308
17309 * copyright.py: Adapt after move of gnulib directory from gdb
17310 directory to toplevel directory.
17311
17312 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17313
17314 * copyright.py (main): Exit if run from the wrong directory.
17315
17316 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17317
17318 * top.c (print_gdb_version): Change copyright year to 2020.
17319
17320 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17321
17322 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17323
17324 For older changes see ChangeLog-2019.
17325 \f
17326 Local Variables:
17327 mode: change-log
17328 left-margin: 8
17329 fill-column: 74
17330 version-control: never
17331 coding: utf-8
17332 End:
This page took 0.362917 seconds and 5 git commands to generate.