gdb/aarch64: Add named flags for FPCR and FPSR registers
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2
3 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
5
6 2020-11-25 Tom Tromey <tom@tromey.com>
7
8 * eval.c (evaluate_subexp_standard): Remove unnecessary
9 variables.
10
11 2020-11-25 Tom Tromey <tom@tromey.com>
12
13 * d-lang.c: Include parser-defs.h.
14 * rust-lang.c: Include parser-defs.h.
15 * c-lang.h: Do not include parser-defs.h.
16
17 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * regcache.h (struct cached_reg): Remove typedef.
20
21 2020-11-24 Joel Brobecker <brobecker@adacore.com>
22
23 * README: Fix the URL of the MPFR library.
24
25 2020-11-24 Joel Brobecker <brobecker@adacore.com>
26
27 * README: Document the --with-libgmp-prefix configure option.
28
29 2020-11-24 Joel Brobecker <brobecker@adacore.com>
30
31 * NEWS: Add entry documenting support for DWARF-based fixed
32 point types.
33
34 2020-11-24 Joel Brobecker <brobecker@adacore.com>
35
36 * NEWS: Document that building GDB now requires GMP.
37
38 2020-11-24 Joel Brobecker <brobecker@adacore.com>
39
40 * typeprint.c (print_type_scalar): Add handling of
41 TYPE_CODE_FIXED_POINT.
42
43 2020-11-24 Joel Brobecker <brobecker@adacore.com>
44
45 * valarith.c (fixed_point_binop): Replace the
46 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
47 users accordingly.
48
49 2020-11-24 Joel Brobecker <brobecker@adacore.com>
50
51 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
52 replacing fixed_point_scaling_factor. All callers updated
53 throughout this project.
54 (fixed_point_scaling_factor): Delete declaration.
55 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
56 fixed_point_scaling_factor. Adjust implementation accordingly.
57
58 2020-11-24 Joel Brobecker <brobecker@adacore.com>
59
60 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
61 replacing the fixed_point_type_base_type function. All callers
62 updated throughout this project.
63 (fixed_point_type_base_type): Remove declaration.
64 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
65 fixed_point_type_base_type. Adjust implementation accordingly.
66
67 2020-11-24 Joel Brobecker <brobecker@adacore.com>
68
69 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
70 New methods.
71 (INIT_FIXED_POINT_SPECIFIC): Adjust.
72 (TYPE_FIXED_POINT_INFO): Delete macro.
73 (allocate_fixed_point_type_info): Change return type to void.
74 * gdbtypes.c (copy_type_recursive): Replace the use of
75 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
76 (fixed_point_scaling_factor): Likewise.
77 (allocate_fixed_point_type_info): Change return type to void.
78 Adjust implementation accordingly.
79 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
80 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
81
82 2020-11-24 Joel Brobecker <brobecker@adacore.com>
83
84 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
85 into one single gdb::array_view parameter.
86 (gdb_mpz::write): Likewise.
87 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
88 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
89 into one single gdb::array_view parameter.
90 Adjust implementation accordingly.
91 (gdb_mpz::write): Likewise.
92 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
93 * unittests/gmp-utils-selftests.c: Adapt following changes above.
94 * valarith.c, valops.c, valprint.c, value.c: Likewise.
95
96 2020-11-24 Joel Brobecker <brobecker@adacore.com>
97
98 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
99 Change return type to std::string. Update all callers.
100 * gmp-utils.c (gmp_string_printf): Likewise.
101
102 2020-11-24 Joel Brobecker <brobecker@adacore.com>
103
104 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
105 instead of mpq_set_ui to initialize our GMP rational.
106
107 2020-11-23 Tom de Vries <tdevries@suse.de>
108
109 * debuginfod-support.c (debuginfod_source_query)
110 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
111
112 2020-11-21 Tom Tromey <tom@tromey.com>
113
114 * breakpoint.c (watchpoint_exp_is_const): Return bool.
115
116 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
119 Pass 2.0 to pow.
120 (gdb_mpz_write_all_from_small): Likewise.
121
122 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
123
124 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
125 of abs.
126
127 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
128
129 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
130 ctf_arc_open_by_name.
131
132 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
133
134 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
135 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
136
137 2020-11-20 Pedro Alves <pedro@palves.net>
138
139 * language.c (language_arch_info::lookup_primitive_type): Use
140 gdb::function_view instead of gdb::function.
141 (template language_lookup_primitive_type): Rename to ...
142 (language_lookup_primitive_type_1): ... this, and make static.
143 (language_lookup_primitive_type(const struct language_defn *,
144 struct gdbarch *, const char *): Make non-template.
145 (language_lookup_primitive_type(const struct language_defn *,
146 struct gdbarch *, std::function<bool (struct type *)>): Make
147 non-template and use gdb::function_view.
148 * language.h (language_arch_info::lookup_primitive_type): Use
149 gdb::function_view instead of std::function.
150 (language_lookup_primitive_type): No longer template.
151 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
152 lambda instead of a std::function.
153
154 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
155
156 PR tdep/26916
157 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
158 and STOCFH.
159
160 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
161
162 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
163
164 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
167 in `loop_cb` parameter.
168 * gdbarch.c: Re-generate.
169 * gdbarch.h: Re-generate.
170 * arch-utils.c (default_read_core_file_mappings): Remove `other`
171 parameter.
172 * arch-utils.h (default_read_core_file_mappings): Likewise.
173 * corelow.c (core_target::build_file_mappings): Likewise.
174 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
175 (linux_core_info_proc_mappings): Likewise.
176
177 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
180 * NEWS: Mention new options.
181 * f-array-walker.h: New file.
182 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
183 (repack_array_slices): New static global.
184 (show_repack_array_slices): New function.
185 (fortran_array_slicing_debug): New static global.
186 (show_fortran_array_slicing_debug): New function.
187 (value_f90_subarray): Delete.
188 (skip_undetermined_arglist): Delete.
189 (class fortran_array_repacker_base_impl): New class.
190 (class fortran_lazy_array_repacker_impl): New class.
191 (class fortran_array_repacker_impl): New class.
192 (fortran_value_subarray): Complete rewrite.
193 (set_fortran_list): New static global.
194 (show_fortran_list): Likewise.
195 (_initialize_f_language): Register new commands.
196 (fortran_adjust_dynamic_array_base_address_hack): New function.
197 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
198 Declare.
199 * f-valprint.c: Include 'f-array-walker.h'.
200 (class fortran_array_printer_impl): New class.
201 (f77_print_array_1): Delete.
202 (f77_print_array): Delete.
203 (fortran_print_array): New.
204 (f_value_print_inner): Update to call fortran_print_array.
205 * gdbtypes.c: Include 'f-lang.h'.
206 (resolve_dynamic_type_internal): Call
207 fortran_adjust_dynamic_array_base_address_hack.
208
209 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * breakpoint.c (struct watch_options): New struct.
212 (watch_option_defs): New static global.
213 (make_watch_options_def_group): New function.
214 (watch_maybe_just_location): Convert option parsing.
215 (watch_command_completer): New function.
216 (_initialize_breakpoint): Build help text using options mechanism.
217
218 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
221 (watch_command_1): Update parameter types. Convert locals to
222 bool.
223 (watch_command_wrapper): Change parameter type.
224 (watch_maybe_just_location): Change locals to bool.
225 (rwatch_command_wrapper): Update parameter type.
226 (awatch_command_wrapper): Update parameter type.
227 * breakpoint.h (watch_command_wrapper): Change parameter type.
228 (rwatch_command_wrapper): Update parameter type.
229 (awatch_command_wrapper): Update parameter type.
230 * eval.c (fetch_subexp_value): Change parameter type.
231 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
232 'false' not '0'.
233 * value.h (fetch_subexp_value): Change parameter type in
234 declaration.
235
236 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
239 skip_spaces.
240
241 2020-11-18 Keith Seitz <keiths@redhat.com>
242
243 * linux-tdep.c (dump_note_entry_p): Return true instead of
244 checking `filename'.
245
246 2020-11-18 Tom de Vries <tdevries@suse.de>
247
248 * debuginfod-support.c (debuginfod_source_query)
249 (debuginfod_debuginfo_query): Also do early exit if
250 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
251
252 2020-11-18 Tom de Vries <tdevries@suse.de>
253
254 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
255 warning.
256
257 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * gdbtypes.h (get_array_bounds): Return bool, adjust some
260 callers. Move doc here.
261 * gdbtypes.c (get_array_bounds): Return bool
262
263 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
266 assert.
267 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
268 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
269 case to the default.
270
271 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * printcmd.c: Include 'safe-ctype.c'.
274 (skip_over_slash_fmt): New function.
275 (print_command_completer): Call skip_over_slash_fmt.
276 (display_and_x_command_completer): New function.
277 (_initialize_printcmd): Add command completion for 'x' and
278 'display'.
279
280 2020-11-16 Pedro Alves <pedro@palves.net>
281
282 * frame.c (get_prev_frame): Move get_frame_id call from here ...
283 (get_prev_frame_always_1): ... to here.
284 * inline-frame.c (inline_frame_this_id): Mention
285 get_prev_frame_always_1 in comment.
286
287 2020-11-15 Joel Brobecker <brobecker@adacore.com>
288
289 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
290 handling.
291 (value_less): Add fixed-point handling.
292
293 2020-11-15 Joel Brobecker <brobecker@adacore.com>
294
295 * eval.c (binop_promote): Add fixed-point type handling.
296 * valarith.c (fixed_point_binop): New function.
297 (scalar_binop): Add fixed-point type handling.
298 (value_neg): Add fixed-point type handling.
299 * valops.c (value_cast_to_fixed_point): New function.
300 (value_cast): Add fixed-point type handling.
301
302 2020-11-15 Joel Brobecker <brobecker@adacore.com>
303
304 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
305 range types.
306 * c-typeprint.c (c_type_print_varspec_prefix)
307 (c_type_print_varspec_suffix, c_type_print_base_1): Add
308 TYPE_CODE_FIXED_POINT handling.
309 * p-typeprint.c (pascal_type_print_varspec_prefix)
310 (pascal_type_print_varspec_suffix): Likewise.
311 * typeprint.c (print_type_fixed_point): New function.
312 * typeprint.h (print_type_fixed_point): Add declaration.
313
314 2020-11-15 Joel Brobecker <brobecker@adacore.com>
315
316 * printcmd.c (print_scalar_formatted): Add fixed-point type
317 handling when options->format is set.
318
319 2020-11-15 Joel Brobecker <brobecker@adacore.com>
320
321 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
322 * dwarf2/read.c (get_dwarf2_rational_constant)
323 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
324 (has_zero_over_zero_small_attribute): New functions.
325 read_base_type, set_die_type): Add fixed-point type handling.
326 * gdb-gdb.py.in: Add fixed-point type handling.
327 * gdbtypes.c: #include "gmp-utils.h".
328 (create_range_type, set_type_code): Add fixed-point type handling.
329 (init_fixed_point_type): New function.
330 (is_integral_type, is_scalar_type): Add fixed-point type handling.
331 (print_fixed_point_type_info): New function.
332 (recursive_dump_type, copy_type_recursive): Add fixed-point type
333 handling.
334 (fixed_point_type_storage): New typedef.
335 (fixed_point_objfile_key): New static global.
336 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
337 (fixed_point_type_base_type, fixed_point_scaling_factor): New
338 functions.
339 * gdbtypes.h: #include "gmp-utils.h".
340 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
341 (union type_specific) <fixed_point_info>: New field.
342 (struct fixed_point_type_info): New struct.
343 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
344 (init_fixed_point_type, is_fixed_point_type)
345 (fixed_point_type_base_type, fixed_point_scaling_factor)
346 (allocate_fixed_point_type_info): Add declarations.
347 * valprint.c (generic_val_print_fixed_point): New function.
348 (generic_value_print): Add fixed-point type handling.
349 * value.c (value_as_address, unpack_long): Add fixed-point type
350 handling.
351
352 2020-11-15 Joel Brobecker <brobecker@adacore.com>
353
354 * utils.h (uinteger_pow): Add declaration.
355 * utils.c (uinteger_pow): Moved here (without changes)...
356 * valarith.c (uinteger_pow): ... from here.
357
358 2020-11-15 Joel Brobecker <brobecker@adacore.com>
359
360 * gmp-utils.h, gmp-utils.c: New file.
361 * unittests/gmp-utils-selftests.c: New file.
362 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
363 unittests/gmp-utils-selftests.c.
364 (COMMON_SFILES) Add gmp-utils.c.
365 (HFILES_NO_SRCDIR): Add gmp-utils.h.
366
367 2020-11-15 Joel Brobecker <brobecker@adacore.com>
368
369 * configure.ac: Generate an error if a usable GMP library
370 could not be found.
371 * configure: Regenerate.
372
373 2020-11-15 Joel Brobecker <brobecker@adacore.com>
374
375 * configure.ac: Add support for --with-libgmp-prefix.
376 * Makefile.in (LIBGMP): New variable.
377 (CLIBS): Include $(LIBGMP).
378 * configure, config.in: Regenerate
379
380 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 PR cli/26879
383 * f-exp.y (COMPLETE): New token.
384 (exp): Two new rules for tab-completion.
385 (saw_name_at_eof): New static global.
386 (last_was_structop): Likewise.
387 (yylex): Set new variables, and return COMPLETE token at the end
388 of the input stream in some cases.
389
390 2020-11-14 Tom Tromey <tom@tromey.com>
391
392 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
393
394 2020-11-14 Tom Tromey <tom@tromey.com>
395
396 * opencl-lang.c (opencl_component_ref): Make "comps" const.
397
398 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
401
402 2020-11-13 Tom Tromey <tom@tromey.com>
403
404 * c-lang.c (convert_ucn, convert_octal, convert_hex)
405 (convert_escape, parse_one_string): Constify.
406
407 2020-11-13 Keith Seitz <keiths@redhat.com>
408
409 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
410 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
411 outside of ELF segments" warning for debugin
412
413 2020-11-13 Keith Seitz <keiths@redhat.com>
414
415 PR gdb/23034
416 * elfread.c (elf_symfile_segments): Output a BFD file name
417 for the "Loadable section ... outside of ELF segments" warning.
418
419 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
420
421 PR gdb/26835
422 * arm-tdep.c (class arm_instruction_reader): New.
423 (target_arm_instruction_reader): New.
424 (arm_analyze_prologue): Add instruction reader parameter and use
425 it. Use arm_expand_immediate.
426 (class target_arm_instruction_reader): Adjust.
427 (arm_skip_prologue): Adjust.
428 (arm_expand_immediate): New.
429 (arm_scan_prologue): Adjust.
430 (arm_analyze_prologue_test): New.
431 (class test_arm_instruction_reader): New.
432
433 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * f-lang.c (fortran_argument_convert): Add declaration. Add
436 header comment, taken from f-lang.h. Make static.
437 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
438 (fortran_argument_convert): Delete declaration.
439
440 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
441
442 * ada-exp.y (find_primitive_type): Make parameter const.
443 * ada-lang.c (enum ada_primitive_types): Delete.
444 (ada_language::language_arch_info): Update.
445 * c-lang.c (enum c_primitive_types): Delete.
446 (c_language_arch_info): Update.
447 (enum cplus_primitive_types): Delete.
448 (cplus_language::language_arch_info): Update.
449 * d-lang.c (enum d_primitive_types): Delete.
450 (d_language::language_arch_info): Update.
451 * f-lang.c (enum f_primitive_types): Delete.
452 (f_language::language_arch_info): Update.
453 * go-lang.c (enum go_primitive_types): Delete.
454 (go_language::language_arch_info): Update.
455 * language.c (auto_or_unknown_language::language_arch_info):
456 Update.
457 (language_gdbarch_post_init): Use obstack_new, use array indexing.
458 (language_string_char_type): Add header comment, call function in
459 language_arch_info.
460 (language_bool_type): Likewise
461 (language_arch_info::bool_type): Define.
462 (language_lookup_primitive_type_1): Delete.
463 (language_lookup_primitive_type): Rewrite as a templated function
464 to call function in language_arch_info, then instantiate twice.
465 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
466 (language_arch_info::lookup_primitive_type_and_symbol): Define.
467 (language_arch_info::lookup_primitive_type): Define twice with
468 different signatures.
469 (language_arch_info::lookup_primitive_type_as_symbol): Define.
470 (language_lookup_primitive_type_as_symbol): Rewrite to call a
471 member function in language_arch_info.
472 * language.h (language_arch_info): Complete rewrite.
473 (language_lookup_primitive_type): Make templated.
474 * m2-lang.c (enum m2_primitive_types): Delete.
475 (m2_language::language_arch_info): Update.
476 * opencl-lang.c (OCL_P_TYPE): Delete.
477 (enum opencl_primitive_types): Delete.
478 (opencl_type_data): Delete.
479 (builtin_opencl_type): Delete.
480 (lookup_opencl_vector_type): Update.
481 (opencl_language::language_arch_info): Update, lots of content
482 moved from...
483 (build_opencl_types): ...here. This function is now deleted.
484 (_initialize_opencl_language): Delete.
485 * p-lang.c (enum pascal_primitive_types): Delete.
486 (pascal_language::language_arch_info): Update.
487 * rust-lang.c (enum rust_primitive_types): Delete.
488 (rust_language::language_arch_info): Update.
489
490 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
491
492 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
493 dwarf2_queue_guard.
494
495 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
496
497 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
498 comment.
499
500 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
501
502 * dwarf2/read.c (dwarf_read_debug_printf,
503 dwarf_read_debug_printf_v): New macros, use throughout the file.
504
505 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
506
507 * arc-linux-tdep.c (collect_register): Populate "eret" by
508 "pc" value from the regcache when asked for "pc" value.
509
510 2020-11-12 Tom Tromey <tom@tromey.com>
511
512 PR rust/26799:
513 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
514 exist.
515
516 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * features/Makefile (XMLTOC): Add rx.xml.
519 (FEATURE_XMLFILES): Remove rx.xml.
520 (FEATURE_CFILES rule): Pass '-single-feature' flag.
521 * features/rx.c: Regenerate.
522 * features/rx.xml: Wrap in `target` tags, and reindent.
523 * target-descriptions.c (struct maint_print_c_tdesc_options): New
524 structure.
525 (maint_print_c_tdesc_opt_def): New typedef.
526 (maint_print_c_tdesc_opt_defs): New static global.
527 (make_maint_print_c_tdesc_options_def_group): New function.
528 (maint_print_c_tdesc_cmd): Make use of command line flags, only
529 print single feature C file for target descriptions containing a
530 single feature.
531 (maint_print_c_tdesc_cmd_completer): New function.
532 (_initialize_target_descriptions): Update call to register command
533 completer, and include command line flag in help text.
534
535 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
538 numbers.
539 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
540 enum values.
541
542 2020-11-10 Tom Tromey <tom@tromey.com>
543
544 * value.h (internalvar_name): Update.
545 * value.c (internalvar_name): Make return type const.
546
547 2020-11-10 Tom Tromey <tom@tromey.com>
548
549 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
550 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
551 const.
552
553 2020-11-10 Tom Tromey <tom@tromey.com>
554
555 * objc-lang.h (value_nsstring): Update.
556 * objc-lang.c (value_nsstring): Make "ptr" const.
557
558 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * expprint.c (print_subexp_funcall): Increment expression position
561 after reading argument count.
562 * f-lang.c (print_subexp_f): Skip over opcode before calling
563 common function.
564 (dump_subexp_body_f): Likewise.
565
566 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
567
568 PR python/26832
569 * configure: Regenerate.
570 * configure.ac: Check for python modules ctypes instead of
571 itertools.
572
573 2020-11-06 Pedro Alves <pedro@palves.net>
574
575 * macroexp.c (struct macro_buffer): Split in two classes. Add
576 uses adjusted.
577 (struct shared_macro_buffer): New, factored out from struct
578 macro_buffer.
579 (struct growable_macro_buffer): New, factored out from struct
580 macro_buffer.
581 (set_token, get_comment, get_identifier, get_pp_number)
582 (get_character_constant, get_string_literal, get_punctuator)
583 (get_next_token_for_substitution): Constify parameters.
584 (substitute_args): Constify locals.
585
586 2020-11-05 Tom Tromey <tom@tromey.com>
587
588 * dwarf2/read.c (read_cutu_die_from_dwo)
589 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
590 (build_type_psymtabs_1): Update.
591 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
592 parameter.
593 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
594 Don't read section. Add assert.
595
596 2020-11-04 Tom Tromey <tromey@adacore.com>
597
598 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
599
600 2020-11-04 Tom Tromey <tromey@adacore.com>
601
602 * ada-typeprint.c (ada_print_type): Handle __T types.
603
604 2020-11-04 Tom Tromey <tromey@adacore.com>
605
606 * dwarf2/read.c (add_partial_symbol, process_die):
607 Handle DW_TAG_array_type.
608 (is_type_tag_for_partial): Add "lang" parameter.
609 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
610
611 2020-11-04 Tom Tromey <tromey@adacore.com>
612
613 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
614
615 2020-11-04 Tom Tromey <tromey@adacore.com>
616
617 * dwarf2/read.c (read_array_type): Only apply stride to innermost
618 array.
619
620 2020-11-04 Tom Tromey <tromey@adacore.com>
621
622 * gdbtypes.c (update_static_array_size): Handle bit stride.
623
624 2020-11-04 Tom Tromey <tromey@adacore.com>
625
626 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
627
628 2020-11-04 Tom Tromey <tromey@adacore.com>
629
630 * ada-lang.c (ada_is_any_packed_array_type): New function.
631 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
632
633 2020-11-04 Tom Tromey <tromey@adacore.com>
634
635 * dwarf2/read.c (recognize_bound_expression)
636 (quirk_ada_thick_pointer): New functions.
637 (read_array_type): Call quirk_ada_thick_pointer.
638 (set_die_type): Add "skip_data_location" parameter.
639 (quirk_ada_thick_pointer): New function.
640 (process_structure_scope): Call quirk_ada_thick_pointer.
641 * ada-lang.c (ada_is_unconstrained_packed_array_type)
642 (decode_packed_array_bitsize): Handle thick pointers without
643 parallel types.
644 (ada_is_gnat_encoded_packed_array_type): Rename from
645 ada_is_packed_array_type.
646 (ada_is_constrained_packed_array_type): Update.
647 * ada-valprint.c (ada_val_print_gnat_array): Remove.
648 (ada_value_print_1): Use ada_get_decoded_value.
649
650 2020-11-04 Tom Tromey <tromey@adacore.com>
651
652 * ada-lang.c (recursively_update_array_bitsize): New function.
653 (decode_constrained_packed_array_type): Call it.
654
655 2020-11-04 Tom Tromey <tromey@adacore.com>
656
657 * ada-lang.c (to_fixed_array_type): Error if
658 decode_constrained_packed_array_type returns NULL.
659
660 2020-11-04 Tom Tromey <tromey@adacore.com>
661
662 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
663
664 2020-11-02 Tom Tromey <tromey@adacore.com>
665
666 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
667 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
668 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
669 * amd64-ravenscar-thread.c: New file.
670 * amd64-ravenscar-thread.h: New file.
671 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
672 * configure.tgt (amd64_tobjs): Add ravenscar objects.
673
674 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * main.c (execute_cmdargs): New function.
677 (captured_main_1): Make use of execute_cmdargs.
678
679 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * NEWS: Mention changes to config file search path.
682 * main.c
683
684 2020-11-02 Tom Tromey <tromey@adacore.com>
685
686 * python/python.c: Consolidate two HAVE_PYTHON blocks.
687 (python_GdbModuleDef): Move earlier. Now static.
688 (do_start_initialization): Consolidate some IS_PY3K blocks.
689
690 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
691
692 * aarch64-linux-tdep.c: Fix indentation.
693 * aarch64-ravenscar-thread.c: Fix indentation.
694 * aarch64-tdep.c: Fix indentation.
695 * aarch64-tdep.h: Fix indentation.
696 * ada-lang.c: Fix indentation.
697 * ada-lang.h: Fix indentation.
698 * ada-tasks.c: Fix indentation.
699 * ada-typeprint.c: Fix indentation.
700 * ada-valprint.c: Fix indentation.
701 * ada-varobj.c: Fix indentation.
702 * addrmap.c: Fix indentation.
703 * addrmap.h: Fix indentation.
704 * agent.c: Fix indentation.
705 * aix-thread.c: Fix indentation.
706 * alpha-bsd-nat.c: Fix indentation.
707 * alpha-linux-tdep.c: Fix indentation.
708 * alpha-mdebug-tdep.c: Fix indentation.
709 * alpha-nbsd-tdep.c: Fix indentation.
710 * alpha-obsd-tdep.c: Fix indentation.
711 * alpha-tdep.c: Fix indentation.
712 * amd64-bsd-nat.c: Fix indentation.
713 * amd64-darwin-tdep.c: Fix indentation.
714 * amd64-linux-nat.c: Fix indentation.
715 * amd64-linux-tdep.c: Fix indentation.
716 * amd64-nat.c: Fix indentation.
717 * amd64-obsd-tdep.c: Fix indentation.
718 * amd64-tdep.c: Fix indentation.
719 * amd64-windows-tdep.c: Fix indentation.
720 * annotate.c: Fix indentation.
721 * arc-tdep.c: Fix indentation.
722 * arch-utils.c: Fix indentation.
723 * arch/arm-get-next-pcs.c: Fix indentation.
724 * arch/arm.c: Fix indentation.
725 * arm-linux-nat.c: Fix indentation.
726 * arm-linux-tdep.c: Fix indentation.
727 * arm-nbsd-tdep.c: Fix indentation.
728 * arm-pikeos-tdep.c: Fix indentation.
729 * arm-tdep.c: Fix indentation.
730 * arm-tdep.h: Fix indentation.
731 * arm-wince-tdep.c: Fix indentation.
732 * auto-load.c: Fix indentation.
733 * auxv.c: Fix indentation.
734 * avr-tdep.c: Fix indentation.
735 * ax-gdb.c: Fix indentation.
736 * ax-general.c: Fix indentation.
737 * bfin-linux-tdep.c: Fix indentation.
738 * block.c: Fix indentation.
739 * block.h: Fix indentation.
740 * blockframe.c: Fix indentation.
741 * bpf-tdep.c: Fix indentation.
742 * break-catch-sig.c: Fix indentation.
743 * break-catch-syscall.c: Fix indentation.
744 * break-catch-throw.c: Fix indentation.
745 * breakpoint.c: Fix indentation.
746 * breakpoint.h: Fix indentation.
747 * bsd-uthread.c: Fix indentation.
748 * btrace.c: Fix indentation.
749 * build-id.c: Fix indentation.
750 * buildsym-legacy.h: Fix indentation.
751 * buildsym.c: Fix indentation.
752 * c-typeprint.c: Fix indentation.
753 * c-valprint.c: Fix indentation.
754 * c-varobj.c: Fix indentation.
755 * charset.c: Fix indentation.
756 * cli/cli-cmds.c: Fix indentation.
757 * cli/cli-decode.c: Fix indentation.
758 * cli/cli-decode.h: Fix indentation.
759 * cli/cli-script.c: Fix indentation.
760 * cli/cli-setshow.c: Fix indentation.
761 * coff-pe-read.c: Fix indentation.
762 * coffread.c: Fix indentation.
763 * compile/compile-cplus-types.c: Fix indentation.
764 * compile/compile-object-load.c: Fix indentation.
765 * compile/compile-object-run.c: Fix indentation.
766 * completer.c: Fix indentation.
767 * corefile.c: Fix indentation.
768 * corelow.c: Fix indentation.
769 * cp-abi.h: Fix indentation.
770 * cp-namespace.c: Fix indentation.
771 * cp-support.c: Fix indentation.
772 * cp-valprint.c: Fix indentation.
773 * cris-linux-tdep.c: Fix indentation.
774 * cris-tdep.c: Fix indentation.
775 * darwin-nat-info.c: Fix indentation.
776 * darwin-nat.c: Fix indentation.
777 * darwin-nat.h: Fix indentation.
778 * dbxread.c: Fix indentation.
779 * dcache.c: Fix indentation.
780 * disasm.c: Fix indentation.
781 * dtrace-probe.c: Fix indentation.
782 * dwarf2/abbrev.c: Fix indentation.
783 * dwarf2/attribute.c: Fix indentation.
784 * dwarf2/expr.c: Fix indentation.
785 * dwarf2/frame.c: Fix indentation.
786 * dwarf2/index-cache.c: Fix indentation.
787 * dwarf2/index-write.c: Fix indentation.
788 * dwarf2/line-header.c: Fix indentation.
789 * dwarf2/loc.c: Fix indentation.
790 * dwarf2/macro.c: Fix indentation.
791 * dwarf2/read.c: Fix indentation.
792 * dwarf2/read.h: Fix indentation.
793 * elfread.c: Fix indentation.
794 * eval.c: Fix indentation.
795 * event-top.c: Fix indentation.
796 * exec.c: Fix indentation.
797 * exec.h: Fix indentation.
798 * expprint.c: Fix indentation.
799 * f-lang.c: Fix indentation.
800 * f-typeprint.c: Fix indentation.
801 * f-valprint.c: Fix indentation.
802 * fbsd-nat.c: Fix indentation.
803 * fbsd-tdep.c: Fix indentation.
804 * findvar.c: Fix indentation.
805 * fork-child.c: Fix indentation.
806 * frame-unwind.c: Fix indentation.
807 * frame-unwind.h: Fix indentation.
808 * frame.c: Fix indentation.
809 * frv-linux-tdep.c: Fix indentation.
810 * frv-tdep.c: Fix indentation.
811 * frv-tdep.h: Fix indentation.
812 * ft32-tdep.c: Fix indentation.
813 * gcore.c: Fix indentation.
814 * gdb_bfd.c: Fix indentation.
815 * gdbarch.sh: Fix indentation.
816 * gdbarch.c: Re-generate
817 * gdbarch.h: Re-generate.
818 * gdbcore.h: Fix indentation.
819 * gdbthread.h: Fix indentation.
820 * gdbtypes.c: Fix indentation.
821 * gdbtypes.h: Fix indentation.
822 * glibc-tdep.c: Fix indentation.
823 * gnu-nat.c: Fix indentation.
824 * gnu-nat.h: Fix indentation.
825 * gnu-v2-abi.c: Fix indentation.
826 * gnu-v3-abi.c: Fix indentation.
827 * go32-nat.c: Fix indentation.
828 * guile/guile-internal.h: Fix indentation.
829 * guile/scm-cmd.c: Fix indentation.
830 * guile/scm-frame.c: Fix indentation.
831 * guile/scm-iterator.c: Fix indentation.
832 * guile/scm-math.c: Fix indentation.
833 * guile/scm-ports.c: Fix indentation.
834 * guile/scm-pretty-print.c: Fix indentation.
835 * guile/scm-value.c: Fix indentation.
836 * h8300-tdep.c: Fix indentation.
837 * hppa-linux-nat.c: Fix indentation.
838 * hppa-linux-tdep.c: Fix indentation.
839 * hppa-nbsd-nat.c: Fix indentation.
840 * hppa-nbsd-tdep.c: Fix indentation.
841 * hppa-obsd-nat.c: Fix indentation.
842 * hppa-tdep.c: Fix indentation.
843 * hppa-tdep.h: Fix indentation.
844 * i386-bsd-nat.c: Fix indentation.
845 * i386-darwin-nat.c: Fix indentation.
846 * i386-darwin-tdep.c: Fix indentation.
847 * i386-dicos-tdep.c: Fix indentation.
848 * i386-gnu-nat.c: Fix indentation.
849 * i386-linux-nat.c: Fix indentation.
850 * i386-linux-tdep.c: Fix indentation.
851 * i386-nto-tdep.c: Fix indentation.
852 * i386-obsd-tdep.c: Fix indentation.
853 * i386-sol2-nat.c: Fix indentation.
854 * i386-tdep.c: Fix indentation.
855 * i386-tdep.h: Fix indentation.
856 * i386-windows-tdep.c: Fix indentation.
857 * i387-tdep.c: Fix indentation.
858 * i387-tdep.h: Fix indentation.
859 * ia64-libunwind-tdep.c: Fix indentation.
860 * ia64-libunwind-tdep.h: Fix indentation.
861 * ia64-linux-nat.c: Fix indentation.
862 * ia64-linux-tdep.c: Fix indentation.
863 * ia64-tdep.c: Fix indentation.
864 * ia64-tdep.h: Fix indentation.
865 * ia64-vms-tdep.c: Fix indentation.
866 * infcall.c: Fix indentation.
867 * infcmd.c: Fix indentation.
868 * inferior.c: Fix indentation.
869 * infrun.c: Fix indentation.
870 * iq2000-tdep.c: Fix indentation.
871 * language.c: Fix indentation.
872 * linespec.c: Fix indentation.
873 * linux-fork.c: Fix indentation.
874 * linux-nat.c: Fix indentation.
875 * linux-tdep.c: Fix indentation.
876 * linux-thread-db.c: Fix indentation.
877 * lm32-tdep.c: Fix indentation.
878 * m2-lang.c: Fix indentation.
879 * m2-typeprint.c: Fix indentation.
880 * m2-valprint.c: Fix indentation.
881 * m32c-tdep.c: Fix indentation.
882 * m32r-linux-tdep.c: Fix indentation.
883 * m32r-tdep.c: Fix indentation.
884 * m68hc11-tdep.c: Fix indentation.
885 * m68k-bsd-nat.c: Fix indentation.
886 * m68k-linux-nat.c: Fix indentation.
887 * m68k-linux-tdep.c: Fix indentation.
888 * m68k-tdep.c: Fix indentation.
889 * machoread.c: Fix indentation.
890 * macrocmd.c: Fix indentation.
891 * macroexp.c: Fix indentation.
892 * macroscope.c: Fix indentation.
893 * macrotab.c: Fix indentation.
894 * macrotab.h: Fix indentation.
895 * main.c: Fix indentation.
896 * mdebugread.c: Fix indentation.
897 * mep-tdep.c: Fix indentation.
898 * mi/mi-cmd-catch.c: Fix indentation.
899 * mi/mi-cmd-disas.c: Fix indentation.
900 * mi/mi-cmd-env.c: Fix indentation.
901 * mi/mi-cmd-stack.c: Fix indentation.
902 * mi/mi-cmd-var.c: Fix indentation.
903 * mi/mi-cmds.c: Fix indentation.
904 * mi/mi-main.c: Fix indentation.
905 * mi/mi-parse.c: Fix indentation.
906 * microblaze-tdep.c: Fix indentation.
907 * minidebug.c: Fix indentation.
908 * minsyms.c: Fix indentation.
909 * mips-linux-nat.c: Fix indentation.
910 * mips-linux-tdep.c: Fix indentation.
911 * mips-nbsd-tdep.c: Fix indentation.
912 * mips-tdep.c: Fix indentation.
913 * mn10300-linux-tdep.c: Fix indentation.
914 * mn10300-tdep.c: Fix indentation.
915 * moxie-tdep.c: Fix indentation.
916 * msp430-tdep.c: Fix indentation.
917 * namespace.h: Fix indentation.
918 * nat/fork-inferior.c: Fix indentation.
919 * nat/gdb_ptrace.h: Fix indentation.
920 * nat/linux-namespaces.c: Fix indentation.
921 * nat/linux-osdata.c: Fix indentation.
922 * nat/netbsd-nat.c: Fix indentation.
923 * nat/x86-dregs.c: Fix indentation.
924 * nbsd-nat.c: Fix indentation.
925 * nbsd-tdep.c: Fix indentation.
926 * nios2-linux-tdep.c: Fix indentation.
927 * nios2-tdep.c: Fix indentation.
928 * nto-procfs.c: Fix indentation.
929 * nto-tdep.c: Fix indentation.
930 * objfiles.c: Fix indentation.
931 * objfiles.h: Fix indentation.
932 * opencl-lang.c: Fix indentation.
933 * or1k-tdep.c: Fix indentation.
934 * osabi.c: Fix indentation.
935 * osabi.h: Fix indentation.
936 * osdata.c: Fix indentation.
937 * p-lang.c: Fix indentation.
938 * p-typeprint.c: Fix indentation.
939 * p-valprint.c: Fix indentation.
940 * parse.c: Fix indentation.
941 * ppc-linux-nat.c: Fix indentation.
942 * ppc-linux-tdep.c: Fix indentation.
943 * ppc-nbsd-nat.c: Fix indentation.
944 * ppc-nbsd-tdep.c: Fix indentation.
945 * ppc-obsd-nat.c: Fix indentation.
946 * ppc-ravenscar-thread.c: Fix indentation.
947 * ppc-sysv-tdep.c: Fix indentation.
948 * ppc64-tdep.c: Fix indentation.
949 * printcmd.c: Fix indentation.
950 * proc-api.c: Fix indentation.
951 * producer.c: Fix indentation.
952 * producer.h: Fix indentation.
953 * prologue-value.c: Fix indentation.
954 * prologue-value.h: Fix indentation.
955 * psymtab.c: Fix indentation.
956 * python/py-arch.c: Fix indentation.
957 * python/py-bpevent.c: Fix indentation.
958 * python/py-event.c: Fix indentation.
959 * python/py-event.h: Fix indentation.
960 * python/py-finishbreakpoint.c: Fix indentation.
961 * python/py-frame.c: Fix indentation.
962 * python/py-framefilter.c: Fix indentation.
963 * python/py-inferior.c: Fix indentation.
964 * python/py-infthread.c: Fix indentation.
965 * python/py-objfile.c: Fix indentation.
966 * python/py-prettyprint.c: Fix indentation.
967 * python/py-registers.c: Fix indentation.
968 * python/py-signalevent.c: Fix indentation.
969 * python/py-stopevent.c: Fix indentation.
970 * python/py-stopevent.h: Fix indentation.
971 * python/py-threadevent.c: Fix indentation.
972 * python/py-tui.c: Fix indentation.
973 * python/py-unwind.c: Fix indentation.
974 * python/py-value.c: Fix indentation.
975 * python/py-xmethods.c: Fix indentation.
976 * python/python-internal.h: Fix indentation.
977 * python/python.c: Fix indentation.
978 * ravenscar-thread.c: Fix indentation.
979 * record-btrace.c: Fix indentation.
980 * record-full.c: Fix indentation.
981 * record.c: Fix indentation.
982 * reggroups.c: Fix indentation.
983 * regset.h: Fix indentation.
984 * remote-fileio.c: Fix indentation.
985 * remote.c: Fix indentation.
986 * reverse.c: Fix indentation.
987 * riscv-linux-tdep.c: Fix indentation.
988 * riscv-ravenscar-thread.c: Fix indentation.
989 * riscv-tdep.c: Fix indentation.
990 * rl78-tdep.c: Fix indentation.
991 * rs6000-aix-tdep.c: Fix indentation.
992 * rs6000-lynx178-tdep.c: Fix indentation.
993 * rs6000-nat.c: Fix indentation.
994 * rs6000-tdep.c: Fix indentation.
995 * rust-lang.c: Fix indentation.
996 * rx-tdep.c: Fix indentation.
997 * s12z-tdep.c: Fix indentation.
998 * s390-linux-tdep.c: Fix indentation.
999 * score-tdep.c: Fix indentation.
1000 * ser-base.c: Fix indentation.
1001 * ser-mingw.c: Fix indentation.
1002 * ser-uds.c: Fix indentation.
1003 * ser-unix.c: Fix indentation.
1004 * serial.c: Fix indentation.
1005 * sh-linux-tdep.c: Fix indentation.
1006 * sh-nbsd-tdep.c: Fix indentation.
1007 * sh-tdep.c: Fix indentation.
1008 * skip.c: Fix indentation.
1009 * sol-thread.c: Fix indentation.
1010 * solib-aix.c: Fix indentation.
1011 * solib-darwin.c: Fix indentation.
1012 * solib-frv.c: Fix indentation.
1013 * solib-svr4.c: Fix indentation.
1014 * solib.c: Fix indentation.
1015 * source.c: Fix indentation.
1016 * sparc-linux-tdep.c: Fix indentation.
1017 * sparc-nbsd-tdep.c: Fix indentation.
1018 * sparc-obsd-tdep.c: Fix indentation.
1019 * sparc-ravenscar-thread.c: Fix indentation.
1020 * sparc-tdep.c: Fix indentation.
1021 * sparc64-linux-tdep.c: Fix indentation.
1022 * sparc64-nbsd-tdep.c: Fix indentation.
1023 * sparc64-obsd-tdep.c: Fix indentation.
1024 * sparc64-tdep.c: Fix indentation.
1025 * stabsread.c: Fix indentation.
1026 * stack.c: Fix indentation.
1027 * stap-probe.c: Fix indentation.
1028 * stubs/ia64vms-stub.c: Fix indentation.
1029 * stubs/m32r-stub.c: Fix indentation.
1030 * stubs/m68k-stub.c: Fix indentation.
1031 * stubs/sh-stub.c: Fix indentation.
1032 * stubs/sparc-stub.c: Fix indentation.
1033 * symfile-mem.c: Fix indentation.
1034 * symfile.c: Fix indentation.
1035 * symfile.h: Fix indentation.
1036 * symmisc.c: Fix indentation.
1037 * symtab.c: Fix indentation.
1038 * symtab.h: Fix indentation.
1039 * target-float.c: Fix indentation.
1040 * target.c: Fix indentation.
1041 * target.h: Fix indentation.
1042 * tic6x-tdep.c: Fix indentation.
1043 * tilegx-linux-tdep.c: Fix indentation.
1044 * tilegx-tdep.c: Fix indentation.
1045 * top.c: Fix indentation.
1046 * tracefile-tfile.c: Fix indentation.
1047 * tracepoint.c: Fix indentation.
1048 * tui/tui-disasm.c: Fix indentation.
1049 * tui/tui-io.c: Fix indentation.
1050 * tui/tui-regs.c: Fix indentation.
1051 * tui/tui-stack.c: Fix indentation.
1052 * tui/tui-win.c: Fix indentation.
1053 * tui/tui-winsource.c: Fix indentation.
1054 * tui/tui.c: Fix indentation.
1055 * typeprint.c: Fix indentation.
1056 * ui-out.h: Fix indentation.
1057 * unittests/copy_bitwise-selftests.c: Fix indentation.
1058 * unittests/memory-map-selftests.c: Fix indentation.
1059 * utils.c: Fix indentation.
1060 * v850-tdep.c: Fix indentation.
1061 * valarith.c: Fix indentation.
1062 * valops.c: Fix indentation.
1063 * valprint.c: Fix indentation.
1064 * valprint.h: Fix indentation.
1065 * value.c: Fix indentation.
1066 * value.h: Fix indentation.
1067 * varobj.c: Fix indentation.
1068 * vax-tdep.c: Fix indentation.
1069 * windows-nat.c: Fix indentation.
1070 * windows-tdep.c: Fix indentation.
1071 * xcoffread.c: Fix indentation.
1072 * xml-syscall.c: Fix indentation.
1073 * xml-tdesc.c: Fix indentation.
1074 * xstormy16-tdep.c: Fix indentation.
1075 * xtensa-config.c: Fix indentation.
1076 * xtensa-linux-nat.c: Fix indentation.
1077 * xtensa-linux-tdep.c: Fix indentation.
1078 * xtensa-tdep.c: Fix indentation.
1079
1080 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1081 Craig Blackmore <craig.blackmore@embecosm.com>
1082
1083 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1084 as an unsigned value.
1085
1086 2020-11-01 Tom Tromey <tom@tromey.com>
1087
1088 * dbxread.c (dbx_end_psymtab): Update.
1089 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1090 (build_type_psymtabs_reader): Update.
1091 * xcoffread.c (xcoff_end_psymtab): Update.
1092 * ctfread.c (scan_partial_symbols): Update.
1093 * psymtab.c (sort_pst_symbols): Remove.
1094 (partial_symtab::end): Rename from end_psymtab_common. Inline
1095 sort_pst_symbols.
1096 * psympriv.h (struct partial_symtab) <end>: New method.
1097 (end_psymtab_common): Don't declare.
1098
1099 2020-11-01 Tom Tromey <tom@tromey.com>
1100
1101 * symmisc.c (count_psyms): New function.
1102 (print_objfile_statistics): Use it.
1103 * psymtab.c (append_psymbol_to_list): Remove.
1104 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1105 * objfiles.h (struct objstats) <n_psyms>: Remove.
1106
1107 2020-11-01 Tom Tromey <tom@tromey.com>
1108
1109 * dbxread.c (dbx_end_psymtab): Update.
1110 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1111 (build_type_psymtabs_reader): Update.
1112 * xcoffread.c (xcoff_end_psymtab): Update.
1113 * ctfread.c (scan_partial_symbols): Update.
1114 * psympriv.h (end_psymtab_common): Update.
1115 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1116 (sort_pst_symbols): Likewise.
1117
1118 2020-11-01 Tom Tromey <tom@tromey.com>
1119
1120 * dbxread.c (dbx_symfile_read): Update.
1121 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1122 * xcoffread.c (xcoff_initial_scan): Update.
1123 * psympriv.h (init_psymbol_list): Don't declare.
1124 * psymtab.c (init_psymbol_list): Remove.
1125
1126 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1127
1128 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1129 gnat_encoded_fixed_type_info. Update all callers.
1130
1131 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1132
1133 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1134 line too long.
1135
1136 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1137
1138 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1139 cast_from_fixed. Update all callers.
1140 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1141 Update all callers.
1142 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1143 Update all callers.
1144 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1145 ada_scaling_factor.
1146 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1147 to print_gnat_encoded_fixed_point_type.
1148 * ada-valprint.c: Likewise.
1149
1150 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1153 (debug_prefixed_printf): Add check of debug_displaced flag.
1154 * linux-nat.c (linux_nat_debug_printf): Add check of
1155 debug_linux_nat flag.
1156
1157 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1158
1159 * infrun.c (infrun_debug_printf_1): Remove.
1160 (displaced_debug_printf_1): Remove.
1161 (stop_all_threads): Use debug_prefixed_printf.
1162 * infrun.h (infrun_debug_printf_1): Remove.
1163 (infrun_debug_printf): Use debug_prefixed_printf.
1164 (displaced_debug_printf_1): Remove.
1165 (displaced_debug_printf): Use debug_prefixed_printf.
1166 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1167 (linux_nat_debug_printf): Use debug_prefixed_printf.
1168
1169 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * configure: Re-generate.
1172 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1173 AC_LANG_PROGRAM.
1174
1175 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * configure: Re-generate.
1178
1179 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 * configure: Re-generate.
1182
1183 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * configure: Re-generate.
1186
1187 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 * configure: Re-generate.
1190
1191 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * acinclude.m4: Modernize.
1194 * configure: Re-generate.
1195
1196 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * configure.ac: Modernize.
1199 * configure: Re-generate.
1200
1201 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1204 * configure: Re-generate.
1205 * configure.ac: Remove AM_PROG_CC_STDC.
1206
1207 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1210 AC_CANONICAL_SYSTEM.
1211 * configure: Re-generate.
1212
1213 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1214
1215 * infrun.h (displaced_debug_printf): New macro. Replace
1216 displaced debug prints throughout to use it.
1217 (displaced_debug_printf_1): New declaration.
1218 (displaced_step_dump_bytes): Return string, remove ui_file
1219 parameter, update all callers.
1220 * infrun.c (displaced_debug_printf_1): New function.
1221 (displaced_step_dump_bytes): Return string, remove ui_file
1222 parameter
1223
1224 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1225
1226 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1227
1228 2020-10-30 Tom Tromey <tromey@adacore.com>
1229
1230 * Makefile.in (stamp-init): Depend on config.status.
1231
1232 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1233
1234 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1235
1236 2020-10-30 Pedro Alves <pedro@palves.net>
1237
1238 * thread.c (lookup_selected_frame): Move ...
1239 * frame.c (lookup_selected_frame): ... here.
1240
1241 2020-10-30 Pedro Alves <pedro@palves.net>
1242
1243 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1244 * frame.c
1245 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1246 Use save_selected_frame. Save language as well.
1247 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1248 Use restore_selected_frame, and restore language as well.
1249 (selected_frame_id, selected_frame_level): New.
1250 (selected_frame): Update comments.
1251 (save_selected_frame, restore_selected_frame): New.
1252 (get_selected_frame): Use lookup_selected_frame.
1253 (get_selected_frame_if_set): Delete.
1254 (select_frame): Record selected_frame_level and selected_frame_id.
1255 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1256 fields.
1257 (get_selected_frame): Make 'message' parameter optional.
1258 (get_selected_frame_if_set): Delete declaration.
1259 (select_frame): Update comments.
1260 (save_selected_frame, restore_selected_frame)
1261 (lookup_selected_frame): Declare.
1262 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1263 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1264 New field.
1265 (save_infcall_control_state): Use save_selected_frame.
1266 (restore_selected_frame): Delete.
1267 (restore_infcall_control_state): Use restore_selected_frame.
1268 * stack.c (select_frame_command_core, frame_command_core): Use
1269 get_selected_frame.
1270 * thread.c (restore_selected_frame): Rename to ...
1271 (lookup_selected_frame): ... this and make extern. Select the
1272 current frame if the frame level is -1.
1273 (scoped_restore_current_thread::restore): Also restore the
1274 language.
1275 (scoped_restore_current_thread::~scoped_restore_current_thread):
1276 Don't try/catch.
1277 (scoped_restore_current_thread::scoped_restore_current_thread):
1278 Save the language as well. Use save_selected_frame.
1279
1280 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1283 documentation.
1284 * gdbarch.h: Re-generate.
1285
1286 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1289 parameter.
1290 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1291 Likewise.
1292 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1293 Likewise.
1294 * arch-utils.c (default_displaced_step_hw_singlestep):
1295 Likewise.
1296 * arch-utils.h (default_displaced_step_hw_singlestep):
1297 Likewise.
1298 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1299 Likewise.
1300 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1301 Likewise.
1302 * gdbarch.c: Re-generate.
1303 * gdbarch.h: Re-generate.
1304 * infrun.c (resume_1): Adjust.
1305
1306 2020-10-29 Tom Tromey <tom@tromey.com>
1307
1308 * progspace.c (program_space::~program_space): Don't call
1309 exec_close.
1310
1311 2020-10-29 Tom Tromey <tom@tromey.com>
1312
1313 * exec.c (exec_target::close): Don't change current program
1314 space.
1315
1316 2020-10-29 Tom Tromey <tom@tromey.com>
1317
1318 * symfile.c (add_symbol_file_command): Update.
1319 * exec.c (program_space::add_target_sections): Rename.
1320 * symfile-mem.c (symbol_file_add_from_memory): Update.
1321 * progspace.h (struct program_space) <add_target_sections>:
1322 Declare new overload.
1323 * exec.h (add_target_sections_of_objfile): Don't declare.
1324
1325 2020-10-29 Tom Tromey <tom@tromey.com>
1326
1327 * solib.c (solib_map_sections): Update.
1328 * exec.c (program_space::add_target_sections): Now a method.
1329 (exec_file_attach): Update.
1330 * exec.h (add_target_sections): Don't declare.
1331 * progspace.h (struct program_space) <add_target_sections>:
1332 Declare.
1333
1334 2020-10-29 Tom Tromey <tom@tromey.com>
1335
1336 * progspace.h (struct program_space) <remove_target_sections>:
1337 Declare.
1338 * exec.c (program_space::remove_target_sections): Now a method.
1339 * exec.h (remove_target_sections): Don't declare.
1340
1341 2020-10-29 Tom Tromey <tom@tromey.com>
1342
1343 * inferior.c (delete_inferior): Update.
1344 * progspace.c (program_space::empty): Rename from
1345 program_space_empty_p. Return bool.
1346 * progspace.h (struct program_space) <empty>: New method.
1347 (program_space_empty_p): Don't declare.
1348
1349 2020-10-29 Tom Tromey <tom@tromey.com>
1350
1351 * progspace.c (program_space::~program_space): Don't call
1352 clear_program_space_solib_cache.
1353 (program_space::clear_solib_cache): Rename from
1354 clear_solib_cache.
1355 * solib.c (handle_solib_event): Update.
1356 * progspace.h (struct program_space) <clear_solib_cache>: New
1357 method.
1358 (clear_program_space_solib_cache): Don't declare.
1359
1360 2020-10-29 Tom Tromey <tom@tromey.com>
1361
1362 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1363 * target.c (info_target_command): Update.
1364 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1365 (symbol_file_clear, reread_symbols): Update.
1366 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1367 * stabsread.c (scan_file_globals): Update.
1368 * solib.c (update_solib_list): Update.
1369 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1370 (svr4_fetch_objfile_link_map, enable_break)
1371 (svr4_relocate_main_executable)
1372 (svr4_iterate_over_objfiles_in_search_order): Update.
1373 * solib-frv.c (lm_base, enable_break)
1374 (frv_relocate_main_executable): Update.
1375 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1376 (frv_fetch_objfile_link_map): Update.
1377 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1378 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1379 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1380 * remote.c (remote_target::get_offsets): Update.
1381 (remote_target::start_remote)
1382 (extended_remote_target::post_attach): Update.
1383 * objfiles.c (entry_point_address_query): Update.
1384 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1385 * minsyms.c (get_symbol_leading_char): Update.
1386 * frame.c (inside_main_func): Update.
1387 * progspace.h (symfile_objfile): Remove macro.
1388
1389 2020-10-29 Tom Tromey <tom@tromey.com>
1390
1391 * exec.c (exec_file_attach): Update.
1392 * progspace.c (program_space::exec_close): Update.
1393 * progspace.h (struct program_space) <ebfd>: Now a
1394 gdb_bfd_ref_ptr.
1395 <set_exec_bfd>: Change argument type.
1396 <exec_bfd>: Update.
1397
1398 2020-10-29 Tom Tromey <tom@tromey.com>
1399
1400 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1401 * symfile.c (reread_symbols): Update.
1402 * symfile-mem.c (add_symbol_file_from_memory_command)
1403 (add_vsyscall_page): Update.
1404 * source-cache.c (source_cache::get_plain_source_lines): Update.
1405 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1406 (svr4_current_sos_direct, svr4_exec_displacement)
1407 (svr4_relocate_main_executable): Update.
1408 (svr4_iterate_over_objfiles_in_search_order): Update.
1409 * solib-frv.c (enable_break2, enable_break): Update.
1410 * solib-dsbt.c (lm_base, enable_break): Update.
1411 * solib-darwin.c (find_program_interpreter)
1412 (darwin_solib_create_inferior_hook): Update.
1413 * sol-thread.c (rw_common, ps_pdmodel): Update.
1414 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1415 * remote.c (compare_sections_command)
1416 (remote_target::trace_set_readonly_regions): Update.
1417 * remote-sim.c (get_sim_inferior_data)
1418 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1419 (gdbsim_target_open, gdbsim_target::files_info): Update.
1420 * exec.h (exec_bfd): Remove macro.
1421 * progspace.c (initialize_progspace): Update.
1422 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1423 Update.
1424 * nto-procfs.c (nto_procfs_target::post_attach)
1425 (nto_procfs_target::create_inferior): Update.
1426 * maint.c (maintenance_info_sections): Update.
1427 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1428 Update.
1429 * infcmd.c (post_create_inferior): Update.
1430 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1431 (objfile_find_memory_regions): Update.
1432 * exec.c (validate_exec_file, exec_file_attach)
1433 (exec_read_partial_read_only, print_section_info): Update.
1434 * corelow.c (core_target_open): Update.
1435 * corefile.c (reopen_exec_file, validate_files): Update.
1436 * arm-tdep.c (gdb_print_insn_arm): Update.
1437 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1438 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1439 methods.
1440
1441 2020-10-29 Tom Tromey <tom@tromey.com>
1442
1443 * progspace.h (current_target_sections): Remove macro.
1444 * solib-svr4.c (scan_dyntag): Update.
1445 * solib-dsbt.c (scan_dyntag): Update.
1446 * exec.c (exec_target::close): Update.
1447 (add_target_sections, add_target_sections_of_objfile)
1448 (remove_target_sections, exec_target::get_section_table)
1449 (exec_target::files_info, set_section_command)
1450 (exec_set_section_address, exec_target::has_memory)
1451 (exec_target::has_memory): Update.
1452
1453 2020-10-29 Tom Tromey <tom@tromey.com>
1454
1455 * source-cache.c (source_cache::get_plain_source_lines): Use
1456 current_program_space.
1457 * corefile.c (reopen_exec_file): Use current_program_space.
1458 * exec.c (exec_file_attach): Use current_program_space.
1459 * exec.h (exec_bfd_mtime): Remove.
1460
1461 2020-10-29 Tom Tromey <tom@tromey.com>
1462
1463 * gcore.c (default_gcore_mach): Remove.
1464 (create_gcore_bfd): Update.
1465
1466 2020-10-29 Tom Tromey <tom@tromey.com>
1467
1468 * progspace.c (program_space::exec_close): New method, from
1469 exec_close in exec.c.
1470 * exec.c (exec_close): Move to progspace.c.
1471 (exec_target::close, exec_file_attach): Update.
1472 * progspace.h (struct program_space) <exec_close>: Declare
1473 method.
1474
1475 2020-10-29 Tom Tromey <tom@tromey.com>
1476
1477 * progspace.h (struct program_space) <exec_filename>: Rename from
1478 pspace_exec_filename. Now a unique_xmalloc_ptr.
1479 * inferior.c (print_selected_inferior): Update.
1480 (print_inferior): Update.
1481 * mi/mi-main.c (print_one_inferior): Update.
1482 * exec.h (exec_filename): Remove macro.
1483 * corefile.c (get_exec_file): Update.
1484 * exec.c (exec_close): Update.
1485 (exec_file_attach): Update.
1486 * progspace.c (clone_program_space): Update.
1487 (print_program_space): Update.
1488
1489 2020-10-29 Tom Tromey <tom@tromey.com>
1490
1491 * target-section.h (struct target_section): Add constructor.
1492 * exec.c (build_section_table, add_target_sections_of_objfile):
1493 Update.
1494 * corelow.c (core_target::build_file_mappings): Update.
1495
1496 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497
1498 PR gdb/19318
1499 * inferior.c (detach_inferior_command): Restore the current thread.
1500 (kill_inferior_command): Ditto.
1501
1502 2020-10-28 Tom de Vries <tdevries@suse.de>
1503
1504 PR symtab/26772
1505 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1506 map, check it in the "best match" loop.
1507
1508 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * m32c-tdep.c: Remove unused includes.
1511
1512 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 * xtensa-tdep.c: Remove includes.
1515
1516 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1517
1518 * breakpoint.c (struct condition_command_opts): New struct.
1519 (condition_command_option_defs): New static global.
1520 (make_condition_command_options_def_group): New function.
1521 (condition_completer): Update to consider the '-force' flag.
1522 (condition_command): Use gdb::option for the '-force' flag.
1523
1524 2020-10-27 Tom de Vries <tdevries@suse.de>
1525
1526 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1527 symbols in section check.
1528
1529 2020-10-27 Tom de Vries <tdevries@suse.de>
1530
1531 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1532
1533 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534
1535 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1536 * breakpoint.c: Update the help text of the 'condition' and 'break'
1537 commands.
1538 (set_breakpoint_condition): Take a new bool parameter
1539 to control whether condition definition should be forced even when
1540 the condition expression is invalid in all of the current locations.
1541 (condition_command): Update the call to 'set_breakpoint_condition'.
1542 (find_condition_and_thread): Take the "-force-condition" flag into
1543 account.
1544 * linespec.c (linespec_keywords): Add "-force-condition" as an
1545 element.
1546 (FORCE_KEYWORD_INDEX): New #define.
1547 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1548 as a keyword.
1549 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1550 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1551 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1552 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1553
1554 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555
1556 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1557 * breakpoint.c (set_breakpoint_location_condition): New function.
1558 (set_breakpoint_condition): Disable a breakpoint location if parsing
1559 the condition string gives an error.
1560 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1561 (build_target_condition_list): Ditto.
1562 (build_target_command_list): Ditto.
1563 (build_bpstat_chain): Ditto.
1564 (print_one_breakpoint_location): Ditto.
1565 (print_one_breakpoint): Ditto.
1566 (breakpoint_1): Ditto.
1567 (bp_location::bp_location): Ditto.
1568 (locations_are_equal): Ditto.
1569 (update_breakpoint_locations): Ditto.
1570 (enable_disable_bp_num_loc): Ditto.
1571 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1572 (find_condition_and_thread_for_sals): New static function.
1573 (create_breakpoint): Call find_condition_and_thread_for_sals.
1574 (location_to_sals): Call find_condition_and_thread_for_sals instead
1575 of find_condition_and_thread.
1576
1577 2020-10-26 Tom de Vries <tdevries@suse.de>
1578
1579 * dwarf2/read.c (process_full_comp_unit): Call
1580 dwarf2_find_base_address.
1581
1582 2020-10-26 Tom Tromey <tromey@adacore.com>
1583
1584 * gdbtypes.c (create_range_type): Revert previous patch. Add
1585 comment.
1586
1587 2020-10-26 Pedro Alves <pedro@palves.net>
1588
1589 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1590 (my_waitpid): Use gdb::handle_eintr.
1591
1592 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * acinclude.m4: Update ptrace.m4 path.
1595 * ptrace.m4: Moved to gdbsupport.
1596
1597 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1600 instead of target_gdbarch.
1601
1602 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * jit.c (jit_reader_load_command): Pass current inferior.
1605 (jit_inferior_init): Change parameter type to inferior, use it.
1606 (jit_inferior_created): Remove.
1607 (jit_inferior_created_hook): Pass inferior parameter down.
1608 (_initialize_jit): Use jit_inferior_created_hook instead of
1609 jit_inferior_created.
1610 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1611 * infrun.c (follow_exec): Pass inferior to
1612 jit_inferior_created_hook.
1613
1614 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1617 parameter and use it.
1618 (thread_db_inferior_created): Pass inferior argument.
1619
1620 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1621
1622 * aix-thread.c (aix_thread_inferior_created): Add inferior
1623 parameter.
1624 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1625 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1626 * jit.c (jit_inferior_created): Likewise.
1627 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1628 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1629 * observable.h (inferior_created): Likewise.
1630 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1631 * symfile-mem.c (add_vsyscall_page): Likewise.
1632 * infcmd.c (post_create_inferior): Pass inferior argument.
1633
1634 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1635
1636 GDB 10.1 released.
1637
1638 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1639
1640 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1641 to ada_check_typedef.
1642
1643 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * f-exp.y (f_parse): Rename to...
1646 (f_language::parser): ...this.
1647 * f-lang.c (f_get_encoding): Rename to...
1648 (f_language::get_encoding): ...this.
1649 (f_op_print_tab): Rename to...
1650 (f_language::op_print_tab): ...this.
1651 (exp_descriptor_f): Rename to...
1652 (f_language::exp_descriptor_tab): ...this.
1653 (class f_language): Moved to f-lang.h.
1654 (f_language::language_arch_info): New function, moved out of class
1655 declaration.
1656 (f_language::search_name_hash): Likewise.
1657 (f_language::lookup_symbol_nonlocal): Likewise.
1658 (f_language::get_symbol_name_matcher_inner): Likewise.
1659 * f-lang.h: Add 'valprint.h' include.
1660 (class f_language): Moved here from f-lang.c.
1661 * f-typeprint.c (f_type_print_args): Delete commented out
1662 declaration.
1663 (f_print_typedef): Rename to...
1664 (f_language::print_typedef): ...this.
1665 (f_print_type): Rename to...
1666 (f_language::print_type): ...this.
1667 (f_type_print_varspec_prefix): Delete declaration and rename to...
1668 (f_language::f_type_print_varspec_prefix): ...this.
1669 (f_type_print_varspec_suffix): Delete declaration and rename to...
1670 (f_language::f_type_print_varspec_suffix): ...this.
1671 (f_type_print_base): Delete declaration and rename to...
1672 (f_language::f_type_print_base): ...this.
1673 * f-valprint.c (f_value_print_inner): Rename to...
1674 (f_language::value_print_inner): ...this.
1675 * parse.c: Delete 'f-lang.h' include.
1676
1677 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * language.h (language_defn::print_type): Add variable names in
1680 declaration, and update header comment.
1681
1682 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * ada-lang.c (ada_language::demangle): Rename to...
1685 (ada_language::demangle_symbol): ...this.
1686 * c-lang.c (cplus_language::demangle): Rename to...
1687 (cplus_language::demangle_symbol): ...this.
1688 * d-lang.c (d_language::demangle): Rename to...
1689 (d_language::demangle_symbol): ...this.
1690 * f-lang.c (f_language::demangle): Rename to...
1691 (f_language::demangle_symbol): ...this.
1692 * go-lang.c (go_language::demangle): Rename to...
1693 (go_language::demangle_symbol): ...this.
1694 * language.c (language_demangle): Update call to demangle_symbol.
1695 (auto_or_unknown_language::demangle): Rename to...
1696 (auto_or_unknown_language::demangle_symbol): ...this.
1697 * language.h (language_defn::demangle): Rename to...
1698 (language_defn::demangle_symbol): ...this.
1699 * objc-lang.c (objc_language::demangle): Rename to...
1700 (objc_language::demangle_symbol): ...this.
1701 * rust-lang.c (rust_language::demangle): Rename to...
1702 (rust_language::demangle_symbol): ...this.
1703
1704 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1707 (iterate_over_file_blocks): Replace use of macro with the macros
1708 definition.
1709
1710 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1713 * valprint.c (maybe_print_array_index): Replace use of macro with
1714 the macros definition.
1715
1716 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * ada-lang.c (ada_language::print_array_index): Call value_print
1719 directly.
1720 * language.c (language_defn::print_array_index): Likewise.
1721 * language.h (LA_VALUE_PRINT): Delete.
1722 * valprint.c (value_print): Call value_print on the
1723 current_language directly.
1724
1725 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * language.h (LA_PRINT_TYPEDEF): Delete.
1728 * typeprint.c (typedef_print): Call print_typedef directly on the
1729 current_language object.
1730
1731 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * m2-exp.y (m2_parse): Rename to...
1734 (m2_language::parser): ...this. Update function signature.
1735 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1736 (m2_op_print): Rename to...
1737 (m2_language::op_print_tab): ...this, and make const.
1738 (exp_descriptor_modula2): Rename to...
1739 (m2_language::exp_descriptor_modula2): ...this.
1740 (class m2_language): Move to m2-lang.h.
1741 (m2_language::language_arch_info): New function, moved out of
1742 class declaration.
1743 (m2_language::printchar): New function, body from m2_printchar.
1744 (m2_language::printstr): New function, moved out of class
1745 declaration.
1746 (m2_language::emitchar): Likewise.
1747 * m2-lang.h (m2_parse): Delete declaration.
1748 (m2_print_typedef): Delete declaration.
1749 (m2_value_print_inner): Delete declaration.
1750 (class m2_language): Class declaration moved from m2-lang.c,
1751 larger functions are left in m2-lang.c.
1752 * m2-typeprint.c (m2_print_typedef): Rename to...
1753 (m2_language::print_typedef): ...this, and update function
1754 signature.
1755 * m2-valprint.c (m2_value_print_inner): Rename to...
1756 (m2_language::value_print_inner): ...this, replace use of
1757 LA_PRINT_STRING with a direct call to printstr member function,
1758 and update recursive call.
1759
1760 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * language.c (default_is_string_type_p): Delete, implementation
1763 moved into auto_or_unknown_language::is_string_type_p.
1764 (unk_op_print_tab): Moved into
1765 auto_or_unknown_language::opcode_print_table.
1766 (unknown_language_arch_info): Delete, implementation moved into
1767 auto_or_unknown_language::language_arch_info.
1768 (class auto_or_unknown_language): New class, member functions
1769 copied from unknown_language class, with some updates.
1770 (class unknown_language): Most member functions moved into
1771 auto_or_unknown_language class. Inherit from
1772 auto_or_unknown_language class.
1773 (class auto_language): Inherit from auto_or_unknown_language.
1774 Delete most member functions.
1775
1776 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1777
1778 * stabsread.c (read_member_functions): Remove gdb_assert.
1779
1780 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1781
1782 * gdbtypes.c (init_complex_type): Check target type name.
1783
1784 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * target-debug.h (target_debug_print_struct_target_ops_p):
1787 Remove.
1788 (target_debug_print_async_callback_ftype_p): Remove.
1789 (target_debug_print_struct_trace_state_variable_p): Remove.
1790 (target_debug_print_struct_traceframe_info_p): Remove.
1791 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1792 (target_debug_print_enum_btrace_format): Remove.
1793 (target_debug_print_enum_info_proc_what): Remove.
1794 (target_debug_print_thread_info_pp): Remove.
1795
1796 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1797
1798 * target.h (struct target_ops) <make_corefile_notes>:
1799 Change return type to unique pointer.
1800 * target.c (dummy_make_corefile_notes): Likewise.
1801 * exec.c (struct exec_target) <make_corefile_notes>:
1802 Likewise.
1803 (exec_target::make_corefile_notes): Likewise.
1804 * procfs.c (class procfs_target) <make_corefile_notes>:
1805 Likewise.
1806 (procfs_do_thread_registers): Adjust to unique pointer.
1807 (struct procfs_corefile_thread_data): Add constructor.
1808 <note_data>: Change type to unique pointer.
1809 (procfs_corefile_thread_callback): Adjust to unique pointer.
1810 (procfs_target::make_corefile_notes): Change return type to
1811 unique pointer.
1812 * target-delegates.c: Re-generate.
1813 * gcore.c (write_gcore_file_1): Adjust.
1814 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1815 New.
1816
1817 2020-10-22 Tom de Vries <tdevries@suse.de>
1818
1819 * block.c (find_block_in_blockvector): Make sure the returned block
1820 contains pc.
1821
1822 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 PR gdb/26693
1825 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1826 parameter.
1827 (load_cu): Pass existing CU.
1828 (process_imported_unit_die): Likewise.
1829 (follow_die_offset): Likewise.
1830
1831 2020-10-22 Luis Machado <luis.machado@linaro.org>
1832
1833 * corelow.c (core_target::xfer_partial): Also check for an empty
1834 m_core_unavailable_mappings vector.
1835
1836 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1837
1838 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1839 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1840 * f-exp.y (arglist): Allow for a series of subranges.
1841 (subrange): Add cases for subranges with strides.
1842 * f-lang.c (value_f90_subarray): Catch use of array strides and
1843 throw an error.
1844 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1845
1846 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * expprint.c (print_subexp_standard): Change enum range_type to
1849 range_flag and rename variables to match.
1850 (dump_subexp_body_standard): Likewise.
1851 * expression.h (enum range_type): Rename to...
1852 (enum range_flag): ...this.
1853 (range_types): Rename to...
1854 (range_flags): ...this.
1855 * f-lang.c (value_f90_subarray): Change enum range_type to
1856 range_flag and rename variables to match.
1857 * parse.c (operator_length_standard): Likewise.
1858 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1859 range_type to range_flag.
1860 * rust-lang.c (rust_evaluate_funcall): Likewise.
1861 (rust_range): Likewise.
1862 (rust_compute_range): Likewise.
1863 (rust_subscript): Likewise.
1864
1865 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * expprint.c (print_subexp_standard): Update to reflect changes to
1868 enum range_type.
1869 (dump_subexp_body_standard): Likewise.
1870 * expression.h (enum range_type): Convert to a bit field enum, and
1871 make the enum unsigned.
1872 * f-exp.y (subrange): Update to reflect changes to enum
1873 range_type.
1874 * f-lang.c (value_f90_subarray): Likewise.
1875 * parse.c (operator_length_standard): Likewise.
1876 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1877 * rust-lang.c (rust_range): Likewise.
1878 (rust_compute_range): Likewise.
1879 (rust_subscript): Likewise.
1880
1881 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1884 (displaced_step_in_progress): Fix comment.
1885
1886 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1887
1888 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1889 * gdbarch.c: Re-generate.
1890 * gdbarch.h: Re-generate.
1891 * gcore.c (write_gcore_file_1): Adjust.
1892 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1893 constructor.
1894 <note_data>: Change type to unique pointer.
1895 <abort_iteration>: Change type to bool.
1896 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1897 (fbsd_collect_thread_registers): Return void, adjust.
1898 (struct fbsd_corefile_thread_data): Add construtor.
1899 <note_data>: Change type to unique pointer.
1900 (fbsd_corefile_thread): Adjust.
1901 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1902 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1903 to unique pointer, adjust.
1904 (struct linux_collect_regset_section_cb_data): Add constructor.
1905 <note_data>: Change type to unique pointer.
1906 <abort_iteration>: Change type to bool.
1907 (linux_collect_thread_registers): Return void, adjust.
1908 (struct linux_corefile_thread_data): Add constructor.
1909 <note_data>: Change type to unique pointer.
1910 (linux_corefile_thread): Adjust.
1911 (linux_make_corefile_notes): Return unique pointer, adjust.
1912
1913 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1916 * gdbarch.c: Re-generate.
1917 * gdbarch.h: Re-generate.
1918 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1919 bool.
1920 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1921 Likewise.
1922 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1923 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1924 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1925 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1926
1927 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * gdbarch.sh: Make generated predicates return bool.
1930 * gdbarch.c: Re-generate.
1931 * gdbarch.h: Re-generate.
1932
1933 2020-10-20 Tom Tromey <tom@tromey.com>
1934
1935 * varobj-iter.h (struct varobj_item): Remove typedef.
1936
1937 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * infrun.c (currently_stepping): Change int to bool
1940 (maybe_software_singlestep): Likewise.
1941 (show_stop_on_solib_events): Likewise.
1942 (stepping_past_nonsteppable_watchpoint): Likewise.
1943 (displaced_step_in_progress_any_inferior): Likewise.
1944 (displaced_step_in_progress_thread): Likewise.
1945 (keep_going_stepped_thread): Likewise.
1946 (thread_still_needs_step_over): Likewise.
1947 (start_step_over): Likewise.
1948 (do_target_resume): Likewise.
1949 (resume_1): Likewise.
1950 (clear_proceed_status): Likewise.
1951 (thread_still_needs_step_over_bp): Likewise.
1952 (proceed): Likewise.
1953 (switch_back_to_stepped_thread): Likewise.
1954 (adjust_pc_after_break): Likewise.
1955 (stepped_in_from): Likewise.
1956 (handle_stop_requested): Likewise.
1957 (handle_syscall_event): Likewise.
1958 (handle_no_resumed): Likewise.
1959 (handle_inferior_event): Likewise.
1960 (finish_step_over): Likewise.
1961 (handle_signal_stop): Likewise.
1962 (process_event_stop_test): Likewise.
1963
1964 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * infrun.c (get_displaced_stepping_state): Fix comment.
1967
1968 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1969
1970 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1971
1972 2020-10-19 Tom Tromey <tromey@adacore.com>
1973
1974 PR tui/26719
1975 * tui/tui-winsource.h (struct tui_source_window_base)
1976 <refresh_window>: Rename from refresh_pad.
1977 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1978 Rename from refresh_pad.
1979 (tui_source_window_base::show_source_content)
1980 (tui_source_window_base::do_scroll_horizontal): Update.
1981
1982 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1983
1984 * thread.c (_initialize_thread): Fine-tune the help text of
1985 'info threads'.
1986
1987 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1988
1989 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1990
1991 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1992
1993 * breakpoint.c (handle_jit_event): Add an argument, change how
1994 `jit_event_handler` is called.
1995
1996 2020-10-17 Tom Tromey <tom@tromey.com>
1997
1998 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1999 (scan_xcoff_symtab): Update.
2000 * psymtab.h (class psymtab_storage) <global_psymbols,
2001 static_psymbols, current_global_psymbols,
2002 current_static_psymbols>: Remove.
2003 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2004 (match_partial_symbol, lookup_partial_symbol): Update.
2005 (print_partial_symbols): Change parameters.
2006 (dump_psymtab, recursively_search_psymtabs)
2007 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2008 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2009 (concat): Remove.
2010 (end_psymtab_common): Simplify.
2011 (append_psymbol_to_list): Change parameters.
2012 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2013 (init_psymbol_list): Simplify.
2014 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2015 * psympriv.h (struct partial_symtab) <empty>: New method.
2016 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2017 Remove.
2018 <global_psymbols, static_psymbols>: New members.
2019 <add_psymbol>: New methods.
2020 (add_psymbol_to_list): Don't declare.
2021 (psymbol_placement): Move earlier.
2022 * mdebugread.c (parse_partial_symbols): Update.
2023 (handle_psymbol_enumerators): Change parameters.
2024 (mdebug_expand_psymtab): Update.
2025 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2026 (add_partial_symbol): Update.
2027 * dwarf2/index-write.c (write_psymbols): Change parameters.
2028 (write_one_signatured_type): Update.
2029 (recursively_count_psymbols): Update.
2030 (recursively_write_psymbols): Update.
2031 (class debug_names) <recursively_write_psymbols>: Update.
2032 <write_psymbols>: Change parameters.
2033 <write_one_signatured_type>: Update.
2034 * dbxread.c (read_dbx_symtab): Update.
2035 (dbx_end_psymtab): Use partial_symtab::empty.
2036 * ctfread.c (struct ctf_context) <pst>: New member.
2037 (create_partial_symtab): Set it.
2038 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2039 (scan_partial_symbols): Use the psymtab's context. Update.
2040
2041 2020-10-17 Tom Tromey <tom@tromey.com>
2042
2043 * valprint.c (generic_value_print): Remove comment.
2044 * m2-valprint.c (m2_value_print_inner): Remove comment.
2045 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2046 type.
2047
2048 2020-10-17 Tom de Vries <tdevries@suse.de>
2049
2050 PR symtab/26317
2051 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2052 symbol main.
2053
2054 2020-10-14 Tom de Vries <tdevries@suse.de>
2055
2056 PR gdb/26733
2057 * solib.c (solib_contains_address_p): Handle
2058 'solib->sections == nullptr'.
2059
2060 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 PR gdb/26642
2063 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2064 target can't do async.
2065 * target.c (target_wait): Assert that we don't pass
2066 TARGET_WNOHANG to a target that can't async.
2067
2068 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2069
2070 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2071 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2072 * alpha-bsd-nat.c: Adjust include.
2073 * alpha-bsd-tdep.h: Adjust comment.
2074 * alpha-nbsd-tdep.c: Rename to ...
2075 * alpha-netbsd-tdep.c: ... this, adjust include.
2076 * amd64-nbsd-nat.c: Rename to ...
2077 * amd64-netbsd-nat.c: ... this, adjust include.
2078 * amd64-nbsd-tdep.c: Rename to ...
2079 * amd64-netbsd-tdep.c: ... this, adjust include.
2080 * amd64-tdep.h: Adjust include.
2081 * arm-nbsd-nat.c: Rename to ...
2082 * arm-netbsd-nat.c: ... this, adjust include.
2083 * arm-nbsd-tdep.c: Rename to ...
2084 * arm-netbsd-tdep.c: ... this, adjust include.
2085 * arm-nbsd-tdep.h: Rename to ...
2086 * arm-netbsd-tdep.h: ... this, adjust include.
2087 * configure.nat: Adjust file lists.
2088 * configure.tgt: Likewise.
2089 * hppa-nbsd-nat.c: Rename to ...
2090 * hppa-netbsd-nat.c: ... this, adjust include.
2091 * hppa-nbsd-tdep.c: Rename to ...
2092 * hppa-netbsd-tdep.c: ... this, adjust include.
2093 * i386-nbsd-nat.c: Rename to ...
2094 * i386-netbsd-nat.c: ... this, adjust include.
2095 * i386-nbsd-tdep.c: Rename to ...
2096 * i386-netbsd-tdep.c: ... this, adjust include.
2097 * m68k-bsd-nat.c: Adjust include.
2098 * mips-nbsd-nat.c: Rename to ...
2099 * mips-netbsd-nat.c: ... this, adjust include.
2100 * mips-nbsd-tdep.c: Rename to ...
2101 * mips-netbsd-tdep.c: ... this, adjust include.
2102 * mips-nbsd-tdep.h: Rename to ...
2103 * mips-netbsd-tdep.h: ... this.
2104 * nbsd-nat.c: Rename to ...
2105 * netbsd-nat.c: ... this, adjust include.
2106 * nbsd-nat.h: Rename to ...
2107 * netbsd-nat.h: ... this, adjust include.
2108 * nbsd-tdep.c: Rename to ...
2109 * netbsd-tdep.c: ... this, adjust include.
2110 * nbsd-tdep.h: Rename to ...
2111 * netbsd-tdep.h: ... this.
2112 * ppc-nbsd-nat.c: Rename to ...
2113 * ppc-netbsd-nat.c: ... this, adjust include.
2114 * ppc-nbsd-tdep.c: Rename to ...
2115 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2116 * ppc-nbsd-tdep.h: Rename to ...
2117 * ppc-netbsd-tdep.h: ... this.
2118 * sh-nbsd-nat.c: Rename to ...
2119 * sh-netbsd-nat.c: ... this, adjust include.
2120 * sh-nbsd-tdep.c: Rename to ...
2121 * sh-netbsd-tdep.c: ... this, adjust include.
2122 * sparc-nbsd-nat.c: Rename to ...
2123 * sparc-netbsd-nat.c: ... this.
2124 * sparc-nbsd-tdep.c: Rename to ...
2125 * sparc-netbsd-tdep.c: ... this, adjust include.
2126 * sparc64-nbsd-nat.c: Rename to ...
2127 * sparc64-netbsd-nat.c: ... this.
2128 * sparc64-nbsd-tdep.c: Rename to ...
2129 * sparc64-netbsd-tdep.c: ... this, adjust include.
2130 * sparc64-tdep.h: Adjust comment.
2131 * vax-bsd-nat.c: Adjust include.
2132 * vax-nbsd-tdep.c: Rename to ...
2133 * vax-netbsd-tdep.c: ... this, adjust include.
2134
2135 2020-10-12 Tom Tromey <tom@tromey.com>
2136
2137 * target.h (struct target_ops) <get_section_table>: Update.
2138 (target_get_section_table): Update.
2139 * target.c (target_get_section_table, target_section_by_addr)
2140 (memory_xfer_partial_1): Update.
2141 * target-section.h (target_section_table): Now an alias.
2142 * target-delegates.c: Rebuild.
2143 * target-debug.h (target_debug_print_target_section_table_p):
2144 Rename from target_debug_print_struct_target_section_table_p.
2145 * symfile.c (build_section_addr_info_from_section_table): Update.
2146 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2147 * solib-svr4.c (scan_dyntag): Update.
2148 * solib-dsbt.c (scan_dyntag): Update.
2149 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2150 Update.
2151 * record-full.c (record_full_core_target::xfer_partial): Update.
2152 * progspace.h (struct program_space) <target_sections>: Update.
2153 * exec.h (print_section_info): Update.
2154 * exec.c (exec_target::close, build_section_table)
2155 (add_target_sections, add_target_sections_of_objfile)
2156 (remove_target_sections, exec_on_vfork)
2157 (section_table_available_memory)
2158 (section_table_xfer_memory_partial)
2159 (exec_target::get_section_table, exec_target::xfer_partial)
2160 (print_section_info, set_section_command)
2161 (exec_set_section_address, exec_target::has_memory): Update.
2162 * corelow.c (core_target::build_file_mappings)
2163 (core_target::xfer_partial, core_target::info_proc_mappings)
2164 (core_target::info_proc_mappings): Update.
2165 * bfd-target.c (class target_bfd): Update
2166
2167 2020-10-12 Tom Tromey <tom@tromey.com>
2168
2169 * progspace.c (program_space::~program_space): Don't call
2170 clear_section_table.
2171 * exec.h (clear_section_table): Don't declare.
2172 * exec.c (exec_target::close): Update.
2173 (clear_section_table): Remove.
2174
2175 2020-10-12 Tom Tromey <tom@tromey.com>
2176
2177 * exec.c (add_target_sections_of_objfile): Simplify.
2178
2179 2020-10-12 Tom Tromey <tom@tromey.com>
2180
2181 * solib.c (solib_map_sections): Update.
2182 * record-full.c (record_full_core_open_1): Update.
2183 * exec.h (build_section_table): Return a target_section_table.
2184 * exec.c (exec_file_attach): Update.
2185 (build_section_table): Return a target_section_table.
2186 * corelow.c (core_target::core_target): Update.
2187 * bfd-target.c (target_bfd::target_bfd): Update.
2188
2189 2020-10-12 Tom Tromey <tom@tromey.com>
2190
2191 * target.c (target_section_by_addr, memory_xfer_partial_1):
2192 Update.
2193 * target-section.h (struct target_section_table): Use
2194 std::vector.
2195 * symfile.h (build_section_addr_info_from_section_table): Take a
2196 target_section_table.
2197 * symfile.c (build_section_addr_info_from_section_table): Take a
2198 target_section_table.
2199 * solist.h (struct so_list) <sections>: Change type.
2200 <sections_end>: Remove.
2201 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2202 (solib_contains_address_p): Update.
2203 * solib-svr4.c (scan_dyntag): Update.
2204 * solib-dsbt.c (scan_dyntag): Update.
2205 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2206 Update.
2207 * record-full.c (record_full_core_start, record_full_core_end):
2208 Remove.
2209 (record_full_core_sections): New global.
2210 (record_full_core_open_1, record_full_core_target::xfer_partial):
2211 Update.
2212 * exec.h (build_section_table, section_table_xfer_memory_partial)
2213 (add_target_sections): Take a target_section_table.
2214 * exec.c (exec_file_attach, clear_section_table): Update.
2215 (resize_section_table): Remove.
2216 (build_section_table, add_target_sections): Take a
2217 target_section_table.
2218 (add_target_sections_of_objfile, remove_target_sections)
2219 (exec_on_vfork): Update.
2220 (section_table_available_memory): Take a target_section_table.
2221 (section_table_read_available_memory): Update.
2222 (section_table_xfer_memory_partial): Take a target_section_table.
2223 (print_section_info, set_section_command)
2224 (exec_set_section_address, exec_target::has_memory): Update.
2225 * corelow.c (class core_target) <m_core_section_table,
2226 m_core_file_mappings>: Remove braces.
2227 <~core_target>: Remove.
2228 (core_target::core_target): Update.
2229 (core_target::~core_target): Remove.
2230 (core_target::build_file_mappings)
2231 (core_target::xfer_memory_via_mappings)
2232 (core_target::xfer_partial, core_target::info_proc_mappings):
2233 Update.
2234 * bfd-target.c (target_bfd::xfer_partial): Update.
2235 (target_bfd::target_bfd): Update.
2236 (target_bfd::~target_bfd): Remove.
2237
2238 2020-10-12 Tom Tromey <tom@tromey.com>
2239
2240 * target.h (struct target_section, struct target_section_table):
2241 Move to target-section.h.
2242 * target-section.h: New file.
2243
2244 2020-10-12 Pedro Alves <pedro@palves.net>
2245
2246 PR exp/26602
2247 * valops.c (struct struct_field_searcher): New.
2248 (update_search_result): Rename to ...
2249 (struct_field_searcher::update_result): ... this. Simplify
2250 prototype. Record all found fields.
2251 (do_search_struct_field): Rename to ...
2252 (struct_field_searcher::search): ... this. Simplify prototype.
2253 Maintain stack of visited baseclass path. Call update_result for
2254 fields too. Keep searching fields in baseclasses instead of
2255 stopping at the first found field.
2256 (search_struct_field): Use struct_field_searcher. When looking
2257 for fields, report ambiguous access attempts.
2258
2259 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * frame.c (inside_main_func): Check full symbols as well as
2262 minimal symbols.
2263
2264 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2265
2266 * ada-lang.c (advance_wild_match): Rewrite the function's
2267 description. Change the type of target0, t0 and t1 to char.
2268
2269 2020-10-09 Tom Tromey <tromey@adacore.com>
2270
2271 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2272
2273 2020-10-09 Tom Tromey <tromey@adacore.com>
2274
2275 * ada-lang.h (ada_encode): Return std::string.
2276 * ada-lang.c (ada_encode_1): Return std::string.
2277 (ada_encode): Likewise.
2278 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2279 Update.
2280 * ada-exp.y (block_lookup, write_var_or_type): Update.
2281
2282 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2283
2284 PR exp/26714
2285 * printcmd.c (print_formatted): Handle void results as
2286 unformatted prints.
2287
2288 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * arch/aarch32.c (aarch32_create_target_description): Release the
2291 target_desc_up as late as possible.
2292 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2293 * arch/amd64.c (amd64_create_target_description): Likewise.
2294 * arch/arc.c (arc_create_target_description): Return a
2295 target_desc_up, don't release it.
2296 * arch/arc.h (arc_create_target_description): Update declaration.
2297 (arc_lookup_target_description): Move target_desc_up into the
2298 cache, and return a borrowed pointer.
2299 * arch/arm.c (arm_create_target_description): Release the
2300 target_desc_up as late as possible.
2301 * arch/i386.c (i386_create_target_description): Likewise.
2302 * arch/riscv.h (riscv_create_target_description): Update
2303 declaration to match definition.
2304 * arch/tic6x.c (tic6x_create_target_description): Release the
2305 target_desc_up as late as possible.
2306
2307 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2310 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2311
2312 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2313
2314 * source.c (directory_command): Notify observers that "directories"
2315 parameter has changed.
2316
2317 2020-10-08 Tom Tromey <tom@tromey.com>
2318
2319 * cli/cli-cmds.c (print_disassembly): Style function name and
2320 addresses. Add _() wrappers.
2321
2322 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2323
2324 * NEWS: Mention ARC support in GDBserver.
2325
2326 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * arch/aarch32.c (aarch32_create_target_description): Release
2329 unique_ptr returned from allocate_target_description.
2330 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2331 * arch/amd64.c (amd64_create_target_description): Likewise.
2332 * arch/arc.c (arc_create_target_description): Likewise.
2333 * arch/arm.c (arm_create_target_description): Likewise.
2334 * arch/i386.c (i386_create_target_description): Likewise.
2335 * arch/riscv.c (riscv_create_target_description): Update return
2336 type. Handle allocate_target_description returning a unique_ptr.
2337 (riscv_lookup_target_description): Update to handle unique_ptr.
2338 * arch/tic6x.c (tic6x_create_target_description): Release
2339 unique_ptr returned from allocate_target_description.
2340 * features/microblaze-with-stack-protect.c: Regenerate.
2341 * features/microblaze.c: Regenerate.
2342 * features/mips-dsp-linux.c: Regenerate.
2343 * features/mips-linux.c: Regenerate.
2344 * features/mips64-dsp-linux.c: Regenerate.
2345 * features/mips64-linux.c: Regenerate.
2346 * features/nds32.c: Regenerate.
2347 * features/nios2.c: Regenerate.
2348 * features/or1k.c: Regenerate.
2349 * features/rs6000/powerpc-32.c: Regenerate.
2350 * features/rs6000/powerpc-32l.c: Regenerate.
2351 * features/rs6000/powerpc-403.c: Regenerate.
2352 * features/rs6000/powerpc-403gc.c: Regenerate.
2353 * features/rs6000/powerpc-405.c: Regenerate.
2354 * features/rs6000/powerpc-505.c: Regenerate.
2355 * features/rs6000/powerpc-601.c: Regenerate.
2356 * features/rs6000/powerpc-602.c: Regenerate.
2357 * features/rs6000/powerpc-603.c: Regenerate.
2358 * features/rs6000/powerpc-604.c: Regenerate.
2359 * features/rs6000/powerpc-64.c: Regenerate.
2360 * features/rs6000/powerpc-64l.c: Regenerate.
2361 * features/rs6000/powerpc-7400.c: Regenerate.
2362 * features/rs6000/powerpc-750.c: Regenerate.
2363 * features/rs6000/powerpc-860.c: Regenerate.
2364 * features/rs6000/powerpc-altivec32.c: Regenerate.
2365 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2366 * features/rs6000/powerpc-altivec64.c: Regenerate.
2367 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2368 * features/rs6000/powerpc-e500.c: Regenerate.
2369 * features/rs6000/powerpc-e500l.c: Regenerate.
2370 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2371 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2372 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2373 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2374 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2375 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2376 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2377 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2378 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2379 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2380 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2381 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2382 * features/rs6000/powerpc-vsx32.c: Regenerate.
2383 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2384 * features/rs6000/powerpc-vsx64.c: Regenerate.
2385 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2386 * features/rs6000/rs6000.c: Regenerate.
2387 * features/rx.c: Regenerate.
2388 * features/s390-gs-linux64.c: Regenerate.
2389 * features/s390-linux32.c: Regenerate.
2390 * features/s390-linux32v1.c: Regenerate.
2391 * features/s390-linux32v2.c: Regenerate.
2392 * features/s390-linux64.c: Regenerate.
2393 * features/s390-linux64v1.c: Regenerate.
2394 * features/s390-linux64v2.c: Regenerate.
2395 * features/s390-te-linux64.c: Regenerate.
2396 * features/s390-tevx-linux64.c: Regenerate.
2397 * features/s390-vx-linux64.c: Regenerate.
2398 * features/s390x-gs-linux64.c: Regenerate.
2399 * features/s390x-linux64.c: Regenerate.
2400 * features/s390x-linux64v1.c: Regenerate.
2401 * features/s390x-linux64v2.c: Regenerate.
2402 * features/s390x-te-linux64.c: Regenerate.
2403 * features/s390x-tevx-linux64.c: Regenerate.
2404 * features/s390x-vx-linux64.c: Regenerate.
2405 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2406 from allocate_target_description.
2407 * target-descriptions.c (allocate_target_description): Update
2408 return type.
2409 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2410 allocate_target_description.
2411
2412 2020-10-07 Tom Tromey <tromey@adacore.com>
2413
2414 * unittests/search-memory-selftests.c: New file.
2415 * Makefile.in (SELFTESTS_SRCS): Add
2416 unittests/search-memory-selftests.c.
2417
2418 2020-10-07 Tom Tromey <tromey@adacore.com>
2419
2420 PR gdb/16930:
2421 * findcmd.c (_initialize_mem_search): Mention that the range is
2422 inclusive.
2423
2424 2020-10-07 Tom Tromey <tromey@adacore.com>
2425
2426 * target.h (simple_search_memory): Don't declare.
2427 * target.c (simple_search_memory): Move to gdbsupport.
2428 (default_search_memory): Update.
2429 * remote.c (remote_target::search_memory): Update.
2430
2431 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2432
2433 * Makefile.in (COMPILE): Add CXXFLAGS.
2434 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2435 (check-headers): Add CXXFLAGS.
2436
2437 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2438
2439 * arc-linux-tdep.h: New file.
2440 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2441 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2442 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2443 arc_linux_gregset, arc_linux_v2_regset,
2444 arc_linux_iterate_over_regset_sections,
2445 arc_linux_core_read_description): Implement.
2446 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2447 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2448 (arc_gdbarch_features_create): Add.
2449 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2450
2451 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2452
2453 * arch/arc.h: Rename "arc_gdbarch_features" to
2454 "arc_arch_features".
2455 * arc-tdep.h: Likewise.
2456 * arc-tdep.c: Likewise.
2457
2458 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2459
2460 * infcmd.c (attach_command): Remove the redundant call to
2461 `clear_proceed_status`.
2462
2463 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2464
2465 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2466
2467 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2468
2469 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2470 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2471 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2472
2473 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2474
2475 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2476 (_initialize_break_catch_sig): Don't allocate array.
2477
2478 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * symtab.c (find_pc_line): Return unmapped addresses when the
2481 requested address is also unmapped.
2482
2483 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2484
2485 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2486 tui/tui-out.h.
2487
2488 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2491 type::is_vector instead of TYPE_VECTOR.
2492
2493 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * auto-load.c (auto_load_objfile_script_1): Don't use
2496 debugfile_holder as temporary variable when stripping drive
2497 letter.
2498
2499 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2500
2501 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2502 Add TYPE_CODE_COMPLEX.
2503 (amd64_windows_return_value): Fix types returned via XMM0.
2504
2505 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2506
2507 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2508 AArch64/ARM maintainers.
2509
2510 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2511
2512 * NEWS: Mention set/show debug event-loop.
2513
2514 2020-10-02 Tom Tromey <tromey@adacore.com>
2515
2516 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2517 REG_EXTENDED.
2518
2519 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2520
2521 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2522 * procfs.c (procfs_inferior_created): Remove.
2523 (_initialize_procfs): Don't register procfs_inferior_created.
2524
2525 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * async-event.c (invoke_async_signal_handlers): Add debug
2528 print.
2529 (check_async_event_handlers): Likewise.
2530 * event-top.c (show_debug_event_loop): New function.
2531 (_initialize_event_top): Register "set debug event-loop"
2532 setting.
2533
2534 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2535
2536 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2537 * debug.h: Remove.
2538 * infrun.c: Include gdbsupport/common-debug.h.
2539 * linux-nat.c: Likewise.
2540
2541 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * async-event.h (create_async_signal_handler): Add name
2544 parameter.
2545 (create_async_event_handler): Likewise.
2546 * async-event.c (struct async_signal_handler) <name>: New field.
2547 (struct async_event_handler) <name>: New field.
2548 (create_async_signal_handler): Assign name.
2549 (create_async_event_handler): Assign name.
2550 * event-top.c (async_init_signals): Pass name when creating
2551 handler.
2552 * infrun.c (_initialize_infrun): Likewise.
2553 * record-btrace.c (record_btrace_push_target): Likewise.
2554 * record-full.c (record_full_open): Likewise.
2555 * remote-notif.c (remote_notif_state_allocate): Likewise.
2556 * remote.c (remote_target::open_1): Likewise.
2557 * tui/tui-win.c (tui_initialize_win): Likewise.
2558
2559 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * async-event.c (initialize_async_signal_handlers): Pass name to
2562 add_file_handler
2563 * event-top.c (ui_register_input_event_handler): Likewise.
2564 * linux-nat.c (linux_nat_target::async): Likewise.
2565 * run-on-main-thread.c (_initialize_run_on_main_thread):
2566 Likewise
2567 * ser-base.c (reschedule): Likewise.
2568 (ser_base_async): Likewise.
2569 * tui/tui-io.c: Likewise.
2570 * top.h (struct ui) <num>: New field.
2571 * top.c (highest_ui_num): New variable.
2572 (ui::ui): Initialize num.
2573
2574 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 * observable.h <inferior_created>: Remove parameters. Update all
2577 listeners.
2578 * inferior.h (post_create_inferior): Remove target parameter.
2579 Update all callers.
2580
2581 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2582
2583 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2584 and DW_MACRO_undef_strx.
2585 (dwarf_decode_macros): Likewise
2586 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2587 which is the value of DW_AT_str_offsets_base.
2588 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2589 str_offsets_base.
2590
2591 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2592
2593 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2594
2595 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2596
2597 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2598 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2599
2600 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2601
2602 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2603
2604 2020-09-30 Tom de Vries <tdevries@suse.de>
2605
2606 PR symtab/26683
2607 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2608
2609 2020-09-30 Tom Tromey <tromey@adacore.com>
2610
2611 * dwarf2/read.c (handle_variant): Use constant_value.
2612
2613 2020-09-29 Tom Tromey <tom@tromey.com>
2614
2615 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2616 (read_file_scope, dwarf2_get_pc_bounds)
2617 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2618 (read_structure_type, handle_struct_member_die)
2619 (read_enumeration_type, read_array_type, read_set_type)
2620 (read_tag_pointer_type, read_tag_reference_type)
2621 (read_subroutine_type, read_base_type, read_subrange_type)
2622 (read_full_die_1, partial_die_info::read)
2623 (partial_die_info::read, by, new_symbol)
2624 (dwarf2_const_value_data, dwarf2_const_value_attr)
2625 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2626 (prepare_one_comp_unit): Update.
2627 * dwarf2/attribute.h (DW_UNSND): Remove.
2628
2629 2020-09-29 Tom Tromey <tom@tromey.com>
2630
2631 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2632 (read_subroutine_type, partial_die_info::read)
2633 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2634 (dwarf2_add_member_fn): Update.
2635 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2636 * dwarf2/attribute.c (attribute::as_boolean): New method.
2637
2638 2020-09-29 Tom Tromey <tom@tromey.com>
2639
2640 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2641 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2642 method.
2643 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2644
2645 2020-09-29 Tom Tromey <tom@tromey.com>
2646
2647 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2648 the attribute's form.
2649
2650 2020-09-29 Tom Tromey <tom@tromey.com>
2651
2652 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2653 (dwarf2_add_member_fn): Update.
2654 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2655 * dwarf2/attribute.c (attribute::defaulted): New method, from
2656 is_valid_DW_AT_defaulted.
2657
2658 2020-09-29 Tom Tromey <tom@tromey.com>
2659
2660 * dwarf2/read.c (dw2_get_file_names_reader)
2661 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2662 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2663 (dwarf2_symbol_mark_computed): Use as_unsigned.
2664 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2665 method.
2666 <form_is_section_offset>: Update comment.
2667
2668 2020-09-29 Tom Tromey <tom@tromey.com>
2669
2670 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2671 dwarf2_default_access_attribute. Look up attribute.
2672 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2673 Update.
2674
2675 2020-09-29 Tom Tromey <tom@tromey.com>
2676
2677 * dwarf2/read.c (skip_one_die): Update.
2678 (read_full_die_1): Change how reprocessing is done.
2679 (partial_die_info::read): Update.
2680 (read_attribute_value): Remove need_reprocess parameter.
2681 (read_attribute): Likewise.
2682 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2683 New method.
2684
2685 2020-09-29 Tom Tromey <tom@tromey.com>
2686
2687 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2688 (dwarf2_const_value_attr, dump_die_shallow)
2689 (dwarf2_fetch_constant_bytes): Update.
2690 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2691 comment.
2692 <set_address>: New method.
2693 (DW_ADDR): Remove.
2694 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2695 (attribute::as_string, attribute::as_address): Add assert.
2696
2697 2020-09-29 Tom Tromey <tom@tromey.com>
2698
2699 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2700 (read_attribute_reprocess, read_attribute_value): Update.
2701 (read_attribute): Clear requires_reprocessing.
2702 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2703 form_requires_reprocessing>: New methods.
2704 <string_init>: Clear requires_reprocessing.
2705 <set_unsigned_reprocess>: New method.
2706 <name>: Shrink by one bit.
2707 <requires_reprocessing>: New member.
2708 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2709 method.
2710
2711 2020-09-29 Tom Tromey <tom@tromey.com>
2712
2713 * dwarf2/read.c (read_attribute_value): Update.
2714 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2715 set_unsigned>: New methods.
2716 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2717
2718 2020-09-29 Tom Tromey <tom@tromey.com>
2719
2720 * dwarf2/read.c (get_alignment, read_array_order)
2721 (read_attribute_value, dwarf2_const_value_attr)
2722 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2723 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2724 New methods.
2725 (DW_SND): Remove.
2726
2727 2020-09-29 Tom Tromey <tom@tromey.com>
2728
2729 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2730 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2731 Update.
2732 * dwarf2/attribute.h (struct attribute) <as_signature,
2733 set_signature>: New methods.
2734 (DW_SIGNATURE): Remove.
2735
2736 2020-09-29 Tom Tromey <tom@tromey.com>
2737
2738 * dwarf2/read.c (read_call_site_scope)
2739 (handle_data_member_location, dwarf2_add_member_fn)
2740 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2741 (partial_die_info::read, read_attribute_value)
2742 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2743 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2744 (dwarf2_symbol_mark_computed): Update.
2745 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2746 methods.
2747 (DW_BLOCK): Remove.
2748 * dwarf2/attribute.c (attribute::form_is_block): Add
2749 DW_FORM_data16.
2750
2751 2020-09-29 Tom Tromey <tom@tromey.com>
2752
2753 * dwarf2/read.c (read_cutu_die_from_dwo)
2754 (read_attribute_reprocess, read_attribute_value, read_attribute)
2755 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2756 (dwarf2_fetch_constant_bytes): Update.
2757 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2758 <set_string_noncanonical, set_string_canonical>: New methods.
2759 <string_is_canonical>: Update comment.
2760 <canonical_string_p>: Add assert.
2761 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2762 * dwarf2/attribute.c (attribute::form_is_string): New method.
2763 (attribute::string): Use it.
2764
2765 2020-09-29 Tom Tromey <tom@tromey.com>
2766
2767 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2768 (dump_die_shallow): Use canonical_string_p.
2769 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2770 method.
2771
2772 2020-09-29 Tom Tromey <tom@tromey.com>
2773
2774 * dwarf2/read.c (partial_die_info::read)
2775 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2776 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2777 attribute::as_string.
2778
2779 2020-09-29 Tom Tromey <tom@tromey.com>
2780
2781 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2782 DW_ADDR.
2783 (attribute::string): Don't use DW_STRING.
2784 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2785 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2786
2787 2020-09-29 Tom Tromey <tom@tromey.com>
2788
2789 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2790 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2791 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2792 * dwarf2/attribute.h (struct attribute): Rename methods.
2793 * dwarf2/attribute.c (attribute::as_address): Rename from
2794 value_as_address.
2795 (attribute::as_string): Rename from value_as_string.
2796
2797 2020-09-29 Tom Tromey <tom@tromey.com>
2798
2799 * dwarf2/read.c (partial_die_info::read) <case
2800 DW_AT_linkage_name>: Use value_as_string.
2801 (dwarf2_string_attr): Use value_as_string.
2802 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2803 method.
2804 * dwarf2/attribute.c (attribute::value_as_string): New method.
2805
2806 2020-09-29 Pedro Alves <pedro@palves.net>
2807
2808 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2809 defined before using '#pragma GCC diagnostic' instead of checking
2810 __clang__.
2811
2812 2020-09-28 Tom Tromey <tom@tromey.com>
2813
2814 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2815 (handle_signal_stop): Update.
2816 * procfs.c (procfs_target::insert_watchpoint): Update.
2817 * target.h (target_have_steppable_watchpoint): Now a function.
2818
2819 2020-09-28 Tom Tromey <tom@tromey.com>
2820
2821 * infrun.c (set_schedlock_func): Update.
2822 * target.h (target_can_lock_scheduler): Now a function.
2823
2824 2020-09-28 Tom Tromey <tom@tromey.com>
2825
2826 * inferior.h (class inferior) <has_execution>: Update.
2827 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2828 * valops.c (find_function_in_inferior)
2829 (value_allocate_space_in_inferior): Update.
2830 * top.c (kill_or_detach): Update.
2831 * target.c (target_preopen, set_target_permissions): Update.
2832 (target_has_execution_current): Remove.
2833 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2834 Update.
2835 * solib.c (update_solib_list, reload_shared_libraries): Update.
2836 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2837 * solib-dsbt.c (enable_break): Update.
2838 * score-tdep.c (score7_fetch_inst): Update.
2839 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2840 Update.
2841 * remote.c (remote_target::start_remote)
2842 (remote_target::remote_check_symbols, remote_target::open_1)
2843 (remote_target::remote_detach_1, remote_target::verify_memory)
2844 (remote_target::xfer_partial, remote_target::read_description)
2845 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2846 * record-full.c (record_full_open_1): Update.
2847 * record-btrace.c (record_btrace_target_open): Update.
2848 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2849 (value_nsstring): Update.
2850 * linux-thread-db.c (add_thread_db_info)
2851 (thread_db_find_new_threads_silently, check_thread_db_callback)
2852 (try_thread_db_load_1, record_thread): Update.
2853 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2854 Update.
2855 * linux-fork.c (checkpoint_command): Update.
2856 * infrun.c (set_non_stop, set_observer_mode)
2857 (check_multi_target_resumption, for_each_just_stopped_thread)
2858 (maybe_remove_breakpoints, normal_stop)
2859 (class infcall_suspend_state): Update.
2860 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2861 (info_program_command, attach_command): Update.
2862 * infcall.c (call_function_by_hand_dummy): Update.
2863 * inf-loop.c (inferior_event_handler): Update.
2864 * gcore.c (gcore_command, derive_heap_segment): Update.
2865 * exec.c (exec_file_command): Update.
2866 * eval.c (evaluate_subexp): Update.
2867 * compile/compile.c (compile_to_object): Update.
2868 * cli/cli-dump.c (restore_command): Update.
2869 * breakpoint.c (update_watchpoint)
2870 (update_inserted_breakpoint_locations)
2871 (insert_breakpoint_locations, get_bpstat_thread): Update.
2872 * target.h (target_has_execution): Remove macro.
2873 (target_has_execution_current): Don't declare.
2874 (target_has_execution): Rename from target_has_execution_1. Add
2875 argument default.
2876
2877 2020-09-28 Tom Tromey <tom@tromey.com>
2878
2879 * mi/mi-main.c (exec_reverse_continue)
2880 (mi_cmd_list_target_features): Update.
2881 * infrun.c (set_exec_direction_func): Update.
2882 * target.c (default_execution_direction): Update.
2883 * reverse.c (exec_reverse_once): Update.
2884 * target.h (target_can_execute_reverse): Now a function.
2885
2886 2020-09-28 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui-regs.c (tui_get_register)
2889 (tui_data_window::show_registers): Update.
2890 * thread.c (scoped_restore_current_thread::restore)
2891 (scoped_restore_current_thread::scoped_restore_current_thread):
2892 Update.
2893 * regcache-dump.c (regcache_print): Update.
2894 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2895 Update.
2896 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2897 * mep-tdep.c (current_me_module, current_options): Update.
2898 * linux-thread-db.c (thread_db_load): Update.
2899 * infcmd.c (registers_info, info_vector_command)
2900 (info_float_command): Update.
2901 * ia64-tdep.c (ia64_frame_prev_register)
2902 (ia64_sigtramp_frame_prev_register): Update.
2903 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2904 * gcore.c (derive_stack_segment): Update.
2905 * frame.c (get_current_frame, has_stack_frames): Update.
2906 * findvar.c (language_defn::read_var_value): Update.
2907 * arm-tdep.c (arm_pc_is_thumb): Update.
2908 * target.c (target_has_registers): Rename from
2909 target_has_registers_1.
2910 * target.h (target_has_registers): Remove macro.
2911 (target_has_registers): Rename from target_has_registers_1.
2912
2913 2020-09-28 Tom Tromey <tom@tromey.com>
2914
2915 * windows-tdep.c (tlb_make_value): Update.
2916 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2917 * thread.c (scoped_restore_current_thread::restore)
2918 (scoped_restore_current_thread::scoped_restore_current_thread)
2919 (thread_command): Update.
2920 * stack.c (backtrace_command_1, frame_apply_level_command)
2921 (frame_apply_all_command, frame_apply_command): Update.
2922 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2923 Update.
2924 * gcore.c (derive_stack_segment): Update.
2925 * frame.c (get_current_frame, has_stack_frames): Update.
2926 * auxv.c (info_auxv_command): Update.
2927 * ada-tasks.c (ada_build_task_list): Update.
2928 * target.c (target_has_stack): Rename from target_has_stack_1.
2929 * target.h (target_has_stack): Remove macro.
2930 (target_has_stack): Rename from target_has_stack_1.
2931
2932 2020-09-28 Tom Tromey <tom@tromey.com>
2933
2934 * target.c (target_has_memory): Rename from target_has_memory_1.
2935 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2936 * thread.c (scoped_restore_current_thread::restore)
2937 (scoped_restore_current_thread::scoped_restore_current_thread):
2938 Update.
2939 * frame.c (get_current_frame, has_stack_frames): Update.
2940 * target.h (target_has_memory): Remove macro.
2941 (target_has_memory): Rename from target_has_memory_1.
2942
2943 2020-09-28 Tom Tromey <tom@tromey.com>
2944
2945 * target.c (target_has_all_memory_1): Remove.
2946 * target.h (target_has_all_memory): Remove define.
2947 (target_has_all_memory_1): Don't declare.
2948
2949 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2950
2951 * ser-base.c: Adjust comments formatting.
2952
2953 2020-09-27 Tom Tromey <tom@tromey.com>
2954
2955 PR tui/25342:
2956 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2957
2958 2020-09-27 Tom Tromey <tom@tromey.com>
2959
2960 PR tui/25342:
2961 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2962
2963 2020-09-27 Tom Tromey <tom@tromey.com>
2964
2965 * unittests/tui-selftests.c: Update.
2966 * tui/tui-winsource.h (struct tui_source_window_base)
2967 <extra_margin, show_line_number, refresh_pad>: New methods.
2968 <m_max_length, m_pad>: New members.
2969 (tui_copy_source_line): Update.
2970 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2971 first_col, line_width, ndigits parameters. Add length.
2972 (tui_source_window_base::show_source_line): Write to pad. Line
2973 number now 0-based.
2974 (tui_source_window_base::refresh_pad): New method.
2975 (tui_source_window_base::show_source_content): Write to pad. Call
2976 refresh_pad.
2977 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2978 not refill.
2979 (tui_source_window_base::update_exec_info): Call
2980 show_line_number.
2981 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2982 method.
2983 <m_digits>: New member.
2984 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2985 and m_max_length.
2986 (tui_source_window::show_line_number): New method.
2987 * tui/tui-io.h (tui_puts): Fix comment.
2988 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2989 m_max_length.
2990
2991 2020-09-27 Tom Tromey <tom@tromey.com>
2992
2993 * tui/tui-winsource.c
2994 (tui_source_window_base::set_is_exec_point_at): Don't call
2995 show_source_line.
2996
2997 2020-09-27 Tom Tromey <tom@tromey.com>
2998
2999 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3000 method.
3001 <erase>: Update.
3002 <cursor_x, cursor_y>: Remove.
3003 <m_inner_window>: New member.
3004 (tui_py_window::rerender): Create inner window.
3005 (tui_py_window::output): Write to inner window.
3006
3007 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3008
3009 PR python/26586
3010 * cli/cli-script.c (execute_control_commands): don't set
3011 instream to nullptr here as this breaks the from_tty argument
3012 to gdb.execute in Python.
3013 (execute_user_command): set instream to nullptr here instead.
3014
3015 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * infrun.h (infrun_debug_printf): Fix formatting.
3018 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3019
3020 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3021
3022 * compile/compile-object-load.h (struct munmap_list): Add
3023 explicitly-defined move constructor.
3024
3025 2020-09-24 Tom Tromey <tromey@adacore.com>
3026
3027 PR tui/26638:
3028 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3029 method.
3030 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3031 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3032 (tui_prev_win): Rewrite.
3033
3034 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3035
3036 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3037 in WOW64 processes as SIGINT.
3038 * nat/windows-nat.h: Make wow64_process a shared variable.
3039 * windows-nat.c: Remove static wow64_process variable.
3040
3041 2020-09-23 Tom Tromey <tom@tromey.com>
3042
3043 PR symtab/25470:
3044 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3045 offset and bit size.
3046 * printcmd.c (print_scalar_formatted): Handle zero-length
3047 integer.
3048 (print_scalar_formatted): Use bit_size_differs_p.
3049 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3050 constant.
3051 (union type_specific): <int_stuff>: New member.
3052 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3053 methods.
3054 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3055 TYPE_SPECIFIC_FIELD.
3056 (recursive_dump_type, copy_type_recursive): Update.
3057 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3058 DW_AT_data_bit_offset.
3059
3060 2020-09-23 Tom Tromey <tom@tromey.com>
3061
3062 * utils.h (class gdb_argv): Add move operators.
3063 <append>: New methods.
3064 * compile/compile.c (build_argc_argv): Remove.
3065 (compile_args_argc): Remove.
3066 (compile_args_argv): Change type.
3067 (set_compile_args): Simplify.
3068 (append_args): Remove.
3069 (filter_args): Remove argcp parameter.
3070 (get_args): Return gdb_argv. Simplify.
3071 (compile_to_object): Update.
3072
3073 2020-09-23 Tom Tromey <tom@tromey.com>
3074
3075 * compile/compile-object-run.c (do_module_cleanup)
3076 <~do_module_cleanup> :Remove.
3077 (do_module_cleanup): Update.
3078 * compile/compile-object-load.h (struct munmap_list): Add move
3079 assignment operator.
3080 <source_file>: Now a std::string.
3081 <munmap_list>: Rename. No longer a pointer.
3082 * compile/compile-object-load.c (struct setup_sections_data): Add
3083 constructor.
3084 <setup_one_section>: Declare.
3085 <munmap_list>: Move earlier.
3086 <m_bfd>: New member.
3087 <m_last_size, m_last_section_first, m_last_prot,
3088 m_last_max_alignment>: Rename, add initializers where needed.
3089 (setup_sections_data::setup_one_section): Rename from
3090 setup_sections. Update.
3091 (compile_object_load): Update. Don't use bfd_map_over_sections.
3092
3093 2020-09-23 Tom Tromey <tom@tromey.com>
3094
3095 * compile/compile-object-run.c (struct do_module_cleanup): Add
3096 parameters to constructor. Update destructor.
3097 <source_file, scope, scope_data, out_value_type, out_value_addr,
3098 munmap_list_head, objfile_name_string>: Remove.
3099 <module>: New member.
3100 (do_module_cleanup): Update.
3101 (compile_object_run): Update.
3102
3103 2020-09-23 Tom Tromey <tom@tromey.com>
3104
3105 * compile/compile.c (eval_compile_command): Update.
3106 * compile/compile-object-run.h (compile_object_run): Take a
3107 compile_module_up.
3108 * compile/compile-object-run.c (compile_object_run): Take a
3109 compile_module_up.
3110 * compile/compile-object-load.h (struct compile_module): Add
3111 constructor, destructor.
3112 (compile_module_up): New typedef.
3113 (compile_object_load): Return compile_object_up.
3114 * compile/compile-object-load.c (compile_object_load): Return
3115 compile_module_up.
3116
3117 2020-09-23 Tom Tromey <tom@tromey.com>
3118
3119 * compile/compile-object-run.c (struct do_module_cleanup): Add
3120 constructor, destructor.
3121 <objfile_name_string>: Don't use struct hack.
3122 (do_module_cleanup): Use delete.
3123 (compile_object_run): Use new.
3124
3125 2020-09-23 Tom Tromey <tom@tromey.com>
3126
3127 * compile/compile-cplus-types.c
3128 (compile_cplus_convert_struct_or_union): Use std::vector.
3129 (compile_cplus_convert_func): Likewise.
3130 * compile/compile-c-types.c (convert_func): Use std::vector.
3131
3132 2020-09-21 Tom Tromey <tromey@adacore.com>
3133
3134 * sparc-tdep.c (sparc32_skip_prologue): Use
3135 skip_prologue_using_sal.
3136
3137 2020-09-19 Tom Tromey <tom@tromey.com>
3138
3139 * symfile.c (add_section_size_callback): Remove.
3140 (load_one_section): Rename from load_section_callback. Change
3141 parameters.
3142 (generic_load): Use foreach.
3143
3144 2020-09-19 Tom Tromey <tom@tromey.com>
3145
3146 * exec.c (add_to_section_table): Remove.
3147 (build_section_table): Use foreach.
3148
3149 2020-09-19 Tom Tromey <tom@tromey.com>
3150
3151 * elfread.c (elf_locate_sections): Change parameters.
3152 (elf_symfile_read): Use foreach.
3153
3154 2020-09-19 Tom Tromey <tom@tromey.com>
3155
3156 * cli/cli-dump.c (struct callback_data): Remove.
3157 (restore_one_section): Rename from restore_section_callback.
3158 Change parameters.
3159 (restore_binary_file): Change parameters.
3160 (restore_command): Use foreach.
3161
3162 2020-09-19 Tom Tromey <tom@tromey.com>
3163
3164 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3165 (gcore_copy_callback): Likewise.
3166 (gcore_memory_sections): Use foreach.
3167
3168 2020-09-19 Tom Tromey <tom@tromey.com>
3169
3170 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3171 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3172 parameters.
3173 (generic_elf_osabi_sniffer): Use foreach.
3174 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3175 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3176
3177 2020-09-19 Tom Tromey <tom@tromey.com>
3178
3179 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3180 (dwarf2_get_dwz_file): Use foreach.
3181 (dwarf2_locate_dwo_sections): Change parameters.
3182 (open_and_init_dwo_file): Use foreach.
3183 (dwarf2_locate_common_dwp_sections): Change parameters.
3184 (open_and_init_dwp_file): Use foreach.
3185
3186 2020-09-19 Tom Tromey <tom@tromey.com>
3187
3188 * symfile.h: (find_lowest_section): Don't declare.
3189 * symfile.c (find_lowest_section): Now static. Change
3190 parameters.
3191 (struct place_section_arg): Remove.
3192 (place_section): Change parameters.
3193 (addr_info_make_relative): Use foreach.
3194 (symfile_dummy_outputs): Remove.
3195 (default_symfile_relocate): Use foreach.
3196
3197 2020-09-19 Tom Tromey <tom@tromey.com>
3198
3199 * objfiles.c (add_to_objfile_sections): Rename from
3200 add_to_objfile_sections_full.
3201 (add_to_objfile_sections): Remove.
3202 (build_objfile_section_table): Use foreach.
3203
3204 2020-09-19 Tom Tromey <tom@tromey.com>
3205
3206 * stap-probe.c (get_stap_base_address_1): Remove.
3207 (get_stap_base_address): Use foreach.
3208
3209 2020-09-19 Tom Tromey <tom@tromey.com>
3210
3211 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3212 parameters.
3213 (gdb_bfd_close_or_warn): Use foreach.
3214
3215 2020-09-19 Tom Tromey <tom@tromey.com>
3216
3217 * corelow.c (add_to_thread_list): Change parameters.
3218 (core_target_open): Use foreach.
3219
3220 2020-09-19 Tom Tromey <tom@tromey.com>
3221
3222 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3223 existing function.
3224
3225 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3226
3227 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3228 for arrays.
3229
3230 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * eval.c: Remove 'f-lang.h' include.
3233 (value_f90_subarray): Moved to f-lang.c.
3234 (eval_call): Renamed to...
3235 (evaluate_subexp_do_call): ...this, is no longer static, header
3236 comment moved into header file.
3237 (evaluate_funcall): Update call to eval_call.
3238 (skip_undetermined_arglist): Moved to f-lang.c.
3239 (fortran_value_subarray): Likewise.
3240 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3241 moved to evaluate_subexp_f.
3242 (calc_f77_array_dims): Moved to f-lang.c
3243 * expprint.c (print_subexp_funcall): New function.
3244 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3245 moved to print_subexp_f, OP_FUNCALL uses new function.
3246 (dump_subexp_body_funcall): New function.
3247 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3248 moved to dump_subexp_f, OP_FUNCALL uses new function.
3249 * expression.h (evaluate_subexp_do_call): Declare.
3250 * f-lang.c (value_f90_subarray): Moved from eval.c.
3251 (skip_undetermined_arglist): Likewise.
3252 (calc_f77_array_dims): Likewise.
3253 (fortran_value_subarray): Likewise.
3254 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3255 (operator_length_f): Likewise.
3256 (print_subexp_f): Likewise.
3257 (dump_subexp_body_f): Likewise.
3258 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3259 declaration of this operation to here.
3260 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3261 support moved to operator_length_f.
3262 * parser-defs.h (dump_subexp_body_funcall): Declare.
3263 (print_subexp_funcall): Declare.
3264 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3265 fortran-operator.def.
3266
3267 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * eval.c (fortran_value_subarray): New function, content is taken
3270 from...
3271 (evaluate_subexp_standard): ...here, in two places. Now arrays
3272 and strings both call the new function.
3273 (calc_f77_array_dims): Add header comment, handle strings.
3274
3275 2020-09-18 Victor Collod <vcollod@nvidia.com>
3276
3277 PR gdb/26635
3278 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3279 (i386_analyze_prologue): Call i386_skip_endbr.
3280
3281 2020-09-18 Tom Tromey <tromey@adacore.com>
3282
3283 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3284 (windows_nat_target::wait): Update.
3285 * target/wait.h (enum target_wait_flag): New. Use
3286 DEF_ENUM_FLAGS_TYPE.
3287 * target/target.h (target_wait): Change type of options.
3288 * target.h (target_options_to_string, default_target_wait):
3289 Update.
3290 (struct target_ops) <wait>: Change type of options.
3291 * target.c (target_wait, default_target_wait, do_option): Change
3292 type of "options".
3293 (target_options_to_string): Likewise.
3294 * target-delegates.c: Rebuild.
3295 * target-debug.h (target_debug_print_target_wait_flags): Rename
3296 from target_debug_print_options.
3297 * sol-thread.c (class sol_thread_target) <wait>: Update.
3298 (sol_thread_target::wait): Update.
3299 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3300 (rs6000_nat_target::wait): Update.
3301 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3302 Update.
3303 (remote_target::wait_ns, remote_target::wait_as): Change type of
3304 "options".
3305 (remote_target::wait): Update.
3306 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3307 (gdbsim_target::wait): Update.
3308 * record-full.c (class record_full_base_target) <wait>: Update.
3309 (record_full_wait_1): Change type of "options".
3310 (record_full_base_target::wait): Update.
3311 * record-btrace.c (class record_btrace_target) <wait>: Update.
3312 (record_btrace_target::wait): Update.
3313 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3314 Update.
3315 (ravenscar_thread_target::wait): Update.
3316 * procfs.c (class procfs_target) <wait>: Update.
3317 (procfs_target::wait): Update.
3318 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3319 * obsd-nat.c (obsd_nat_target::wait): Update.
3320 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3321 (nto_procfs_target::wait): Update.
3322 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3323 * nbsd-nat.c (nbsd_wait): Change type of "options".
3324 (nbsd_nat_target::wait): Update.
3325 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3326 (thread_db_target::wait): Update.
3327 * linux-nat.h (class linux_nat_target) <wait>: Update.
3328 * linux-nat.c (linux_nat_target::wait): Update.
3329 (linux_nat_wait_1): Update.
3330 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3331 "options".
3332 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3333 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3334 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3335 (go32_nat_target::wait): Update.
3336 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3337 * gnu-nat.c (gnu_nat_target::wait): Update.
3338 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3339 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3340 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3341 * darwin-nat.c (darwin_nat_target::wait): Update.
3342 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3343 (bsd_uthread_target::wait): Update.
3344 * aix-thread.c (class aix_thread_target) <wait>: Update.
3345 (aix_thread_target::wait): Update.
3346
3347 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3348
3349 * compile/compile-object-run.c (create_copied_type_recursive): New
3350 function.
3351 (compile_object_run): Use new function.
3352
3353 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3354
3355 * NEWS: Mention x86_64 Cygwin core file support.
3356
3357 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3358
3359 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3360 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3361
3362 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3363
3364 * windows-tdep.h: Add prototypes.
3365 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3366 (i386_windows_core_pid_to_str): Move and rename ...
3367 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3368 (windows_core_pid_to_str): ... and here.
3369 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3370
3371 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3372 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3373 (amd64_windows_init_abi_common): ... and register.
3374
3375 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3376
3377 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3378 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3379
3380 2020-09-18 Pedro Alves <pedro@palves.net>
3381
3382 PR gdb/26631
3383 * thread.c (thread_find_command): Switch inferior before calling
3384 target methods.
3385
3386 2020-09-17 Tom Tromey <tromey@adacore.com>
3387
3388 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3389 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3390 (tdesc_arch_data_up): New typedef.
3391 (tdesc_use_registers, tdesc_data_alloc): Update.
3392 (tdesc_data_cleanup): Don't declare.
3393 * target-descriptions.c (tdesc_data_alloc): Return a
3394 tdesc_arch_data_up.
3395 (tdesc_arch_data_deleter::operator()): Rename from
3396 tdesc_data_cleanup. Change argument type.
3397 (tdesc_use_registers): Change early_data to an rvalue reference.
3398 (tdesc_use_registers): Don't use delete.
3399 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3400 * s390-tdep.c (s390_gdbarch_init): Update.
3401 * rx-tdep.c (rx_gdbarch_init): Update.
3402 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3403 * riscv-tdep.c (riscv_gdbarch_init): Update.
3404 * or1k-tdep.c (or1k_gdbarch_init): Update.
3405 * nios2-tdep.c (nios2_gdbarch_init): Update.
3406 * nds32-tdep.c (nds32_gdbarch_init): Update.
3407 * mips-tdep.c (mips_gdbarch_init): Update.
3408 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3409 * m68k-tdep.c (m68k_gdbarch_init): Update.
3410 * i386-tdep.c (i386_gdbarch_init): Update.
3411 * arm-tdep.c (arm_gdbarch_init): Update.
3412 * arc-tdep.c (arc_tdesc_init): Update.
3413 (arc_gdbarch_init): Update.
3414 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3415
3416 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3417
3418 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3419 for WOW64 processes.
3420
3421 2020-09-17 Tom Tromey <tom@tromey.com>
3422
3423 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3424
3425 2020-09-17 Tom Tromey <tom@tromey.com>
3426
3427 * value.c (preserve_values): Update.
3428 * python/py-type.c (save_objfile_types): Update.
3429 * guile/scm-type.c (save_objfile_types): Update.
3430 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3431 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3432 * compile/compile-object-run.c (compile_object_run): Update.
3433
3434 2020-09-17 Tom Tromey <tom@tromey.com>
3435
3436 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3437 Remove.
3438 <m_table>: Now htab_up.
3439 * typeprint.c (typedef_hash_table::recursively_update)
3440 (typedef_hash_table::add_template_parameters)
3441 (typedef_hash_table::typedef_hash_table): Update.
3442 (typedef_hash_table::~typedef_hash_table): Remove.
3443 (typedef_hash_table::typedef_hash_table)
3444 (typedef_hash_table::find_global_typedef)
3445 (typedef_hash_table::find_typedef): Update.
3446
3447 2020-09-17 Tom Tromey <tom@tromey.com>
3448
3449 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3450
3451 2020-09-17 Tom Tromey <tom@tromey.com>
3452
3453 * linespec.c (class decode_compound_collector)
3454 <~decode_compound_collector>: Remove.
3455 <m_unique_syms>: Now htab_up.
3456 (decode_compound_collector::operator ()): Update.
3457 (class symtab_collector) <~symtab_collector>: Remove.
3458 <m_symtab_table>: Now htab_up.
3459 (symtab_collector::operator ()): Update.
3460
3461 2020-09-17 Tom Tromey <tom@tromey.com>
3462
3463 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3464 (filename_seen_cache::clear): Update.
3465 (~filename_seen_cache): Remove.
3466 (filename_seen_cache::seen): Update.
3467 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3468 htab_up.
3469 <~filename_seen_cache>: Remove.
3470 <traverse>: Update.
3471
3472 2020-09-17 Tom Tromey <tom@tromey.com>
3473
3474 * completer.c (completion_tracker::discard_completions)
3475 (completion_tracker::~completion_tracker)
3476 (completion_tracker::maybe_add_completion)
3477 (completion_tracker::remove_completion)
3478 (completion_tracker::recompute_lowest_common_denominator)
3479 (completion_tracker::build_completion_result): Update.
3480 * completer.h (class completion_tracker) <have_completions>:
3481 Update.
3482 <m_entries_hash>: Now htab_up.
3483
3484 2020-09-17 Tom Tromey <tom@tromey.com>
3485
3486 * breakpoint.c (ambiguous_names_p): Use htab_up.
3487
3488 2020-09-17 Tom Tromey <tom@tromey.com>
3489
3490 * auto-load.c (struct auto_load_pspace_info)
3491 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3492 <loaded_script_files, loaded_script_texts>: Change type to
3493 htab_up.
3494 (~auto_load_pspace_info) Remove.
3495 (init_loaded_scripts_info, maybe_add_script_file)
3496 (maybe_add_script_text, auto_load_info_scripts): Update.
3497
3498 2020-09-17 Tom Tromey <tromey@adacore.com>
3499
3500 * c-exp.y (name_obstack): Now static.
3501
3502 2020-09-17 Chungyi Chi <demonic@csie.io>
3503
3504 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3505
3506 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3507
3508 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3509 (add_solib_catchpoint): Likewise.
3510 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3511 to bool.
3512 (add_solib_catchpoint): Change int parameter/variable to bool.
3513 (catch_load_or_unload): Likewise.
3514 (init_catchpoint): Likewise.
3515 (create_fork_vfork_event_catchpoint): Likewise.
3516 (catch_fork_command_1): Likewise.
3517 (catch_exec_command_1): Likewise.
3518
3519 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3522 Change instance_flags to m_instance_flags.
3523
3524 2020-09-16 Tom Tromey <tromey@adacore.com>
3525
3526 PR gdb/26598:
3527 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3528
3529 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3530
3531 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3532 PL_FLAG_EXEC.
3533 (fbsd_nat_target::insert_exec_catchpoint)
3534 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3535 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3536 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3537
3538 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3539
3540 * configure.ac: Remove check for kinfo_getvmmap().
3541 * configure, config.in: Regenerate.
3542 * fbsd-nat.c (fbsd_read_mapping): Remove
3543 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3544 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3545 kinfo_get_vmmap() are always present.
3546
3547 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3548
3549 * fbsd-nat.c: Always include support for
3550 TARGET_OBJECT_SIGNAL_INFO.
3551
3552 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3553
3554 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3555 sysctl and remove procfs fallback.
3556
3557 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3558
3559 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3560 * fbsd-nat.h: Likewise.
3561
3562 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3563
3564 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3565 argument.
3566
3567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * ada-lang.c (ada_language_data): Delete.
3570 (ada_language): Remove references to ada_language_data.
3571 * c-lang.c (c_language_data): Delete.
3572 (c_language): Remove references to c_language_data.
3573 (cplus_language_data): Delete.
3574 (cplus_language): Remove references to cplus_language_data.
3575 (asm_language_data): Delete.
3576 (asm_language): Remove references to asm_language_data.
3577 (minimal_language_data): Delete.
3578 (minimal_language): Remove references to minimal_language_data.
3579 * d-lang.c (d_language_data): Delete.
3580 (d_language): Remove references to d_language_data.
3581 * f-lang.c (f_language_data): Delete.
3582 (f_language): Remove references to f_language_data.
3583 * go-lang.c (go_language_data): Delete.
3584 (go_language): Remove references to go_language_data.
3585 * language.c (unknown_language_data): Delete.
3586 (unknown_language): Remove references to unknown_language_data.
3587 (auto_language_data): Delete.
3588 (auto_language): Remove references to auto_language_data.
3589 * language.h (language_data): Delete struct.
3590 (language_defn): No longer inherit from language_data.
3591 * m2-lang.c (m2_language_data): Delete.
3592 (m2_language): Remove references to m2_language_data.
3593 * objc-lang.c (objc_language_data): Delete.
3594 (objc_language): Remove references to objc_language_data.
3595 * opencl-lang.c (opencl_language_data): Delete.
3596 (opencl_language): Remove references to opencl_language_data.
3597 * p-lang.c (pascal_language_data): Delete.
3598 (pascal_language): Remove references to pascal_language_data.
3599 * rust-lang.c (rust_language_data): Delete.
3600 (rust_language): Remove references to rust_language_data.
3601
3602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3605 initializer.
3606 (ada_language::opcode_print_table): New member function.
3607 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3608 (c_language::opcode_print_table): New member function.
3609 (cplus_language_data): Remove la_op_print_tab initializer.
3610 (cplus_language::opcode_print_table): New member function.
3611 (asm_language_data): Remove la_op_print_tab initializer.
3612 (asm_language::opcode_print_table): New member function.
3613 (minimal_language_data): Remove la_op_print_tab initializer.
3614 (minimal_language::opcode_print_table): New member function.
3615 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3616 (d_language::opcode_print_table): New member function.
3617 * expprint.c (print_subexp_standard): Update call to
3618 opcode_print_table.
3619 (op_string): Likewise.
3620 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3621 (f_language::opcode_print_table): New member function.
3622 * go-lang.c (go_language_data): Remove la_op_print_tab
3623 initializer.
3624 (go_language::opcode_print_table): New member function.
3625 * language.c (unknown_language_data): Remove la_op_print_tab
3626 initializer.
3627 (unknown_language::opcode_print_table): New member function.
3628 (auto_language_data): Remove la_op_print_tab initializer.
3629 (auto_language::opcode_print_table): New member function.
3630 * language.h (language_data): Remove la_op_print_tab field.
3631 (language_defn::opcode_print_table): Declare new member function.
3632 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3633 initializer.
3634 (m2_language::opcode_print_table): New member function.
3635 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3636 initializer.
3637 (objc_language::opcode_print_table): New member function.
3638 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3639 initializer.
3640 (opencl_language::opcode_print_table): New member function.
3641 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3642 initializer.
3643 (pascal_language::opcode_print_table): New member function.
3644 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3645 initializer.
3646 (rust_language::opcode_print_table): New member function.
3647
3648 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3651 (ada_language::expression_ops): New member function.
3652 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3653 (c_language::expression_ops): New member function.
3654 (cplus_language_data): Remove la_exp_desc initializer.
3655 (cplus_language::expression_ops): New member function.
3656 (asm_language_data): Remove la_exp_desc initializer.
3657 (asm_language::expression_ops): New member function.
3658 (minimal_language_data): Remove la_exp_desc initializer.
3659 (minimal_language::expression_ops): New member function.
3660 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3661 (d_language::expression_ops): New member function.
3662 * eval.c (evaluate_subexp): Update call to expression_ops.
3663 * expprint.c (print_subexp): Likewise.
3664 (op_name): Likewise.
3665 (dump_subexp_body): Likewise.
3666 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3667 (f_language::expression_ops): New member function.
3668 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3669 (go_language::expression_ops): New member function.
3670 * language.c (language_defn::expression_ops): New function.
3671 (unknown_language_data): Remove la_exp_desc initializer.
3672 (auto_language_data): Likewise.
3673 * language.h (language_data): Remove la_exp_desc field.
3674 (language_defn::expression_ops): Declare new member function.
3675 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3676 (m2_language::expression_ops): New member function.
3677 * objc-lang.c (objc_language_data): Remove la_exp_desc
3678 initializer.
3679 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3680 initializer.
3681 (opencl_language::expression_ops): New member function.
3682 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3683 * parse.c (operator_length): Update call to expression_ops.
3684 (exp_iterate): Likewise.
3685 * rust-lang.c (rust_language_data): Remove la_exp_desc
3686 initializer.
3687 (ruse_language::expression_ops): New member function.
3688
3689 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3692 initializer.
3693 (ada_language::varobj_ops): New member function.
3694 * c-lang.c (c_language_data): Remove la_varobj_ops
3695 initializer.
3696 (cplus_language_data): Likewise.
3697 (cplus_language::varobj_ops): New member function.
3698 (asm_language_data): Remove la_varobj_ops initializer.
3699 (minimal_language_data): Likewise.
3700 * d-lang.c (d_language_data): Likewise.
3701 * f-lang.c (f_language_data): Likewise.
3702 * go-lang.c (go_language_data): Likewise.
3703 * language.c (language_defn::varobj_ops): New function.
3704 (unknown_language_data): Remove la_varobj_ops
3705 initializer.
3706 (auto_language_data): Likewise.
3707 * language.h (language_data): Remove la_varobj_ops field.
3708 (language_defn::varobj_ops): Declare new member function.
3709 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3710 * objc-lang.c (objc_language_data): Likewise.
3711 * opencl-lang.c (opencl_language_data): Likewise.
3712 * p-lang.c (pascal_language_data): Likewise.
3713 * rust-lang.c (rust_language_data): Likewise.
3714 * varobj.c (varobj_create): Update call to varobj_ops.
3715 * varobj.h (default_varobj_ops): Delete define.
3716
3717 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3720 initializer.
3721 * c-lang.c (c_language_data): Likewise.
3722 (c_language::macro_expansion): New member function.
3723 (cplus_language_data): Likewise.
3724 (cplus_language::macro_expansion): New member function.
3725 (asm_language_data): Likewise.
3726 (asm_language::macro_expansion): New member function.
3727 (minimal_language_data): Likewise.
3728 (minimal_language::macro_expansion): New member function.
3729 * d-lang.c (d_language_data): Remove la_macro_expansion
3730 initializer.
3731 * f-lang.c (f_language_data): Likewise.
3732 * go-lang.c (go_language_data): Likewise.
3733 * language.c (unknown_language_data): Likewise.
3734 (auto_language_data): Likewise.
3735 * language.h (language_data): Remove la_macro_expansion field.
3736 (language_defn::macro_expansion): New member function.
3737 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3738 initializer.
3739 * objc-lang.c (objc_language_data): Likewise.
3740 (objc_language::macro_expansion): New member function.
3741 * opencl-lang.c (opencl_language_data): Likewise.
3742 (opencl_language::macro_expansion): New member function.
3743 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3744 initializer.
3745 * rust-lang.c (rust_language_data): Likewise.
3746 * symtab.c (default_collect_symbol_completion_matches_break_on):
3747 Update call to macro_expansion.
3748
3749 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * ada-lang.c (ada_language_data): Remove la_array_ordering
3752 initializer.
3753 * c-lang.c (c_language_data): Likewise.
3754 (cplus_language_data): Likewise.
3755 (asm_language_data): Likewise.
3756 (minimal_language_data): Likewise.
3757 * d-lang.c (d_language_data): Likewise.
3758 * dwarf2/read.c (read_array_order): Update for call to
3759 array_ordering.
3760 * f-lang.c (f_language_data): Remove la_array_ordering
3761 initializer.
3762 (f_language::array_ordering): New member function.
3763 * go-lang.c (go_language_data): Remove la_array_ordering
3764 initializer.
3765 * language.c (unknown_language_data): Likewise.
3766 (auto_language_data): Likewise.
3767 * language.h (language_data): Delete la_array_ordering field.
3768 (language_defn::array_ordering): New member function.
3769 * m2-lang.c (m2_language_data): Remove la_array_ordering
3770 initializer.
3771 * objc-lang.c (objc_language_data): Likewise.
3772 * opencl-lang.c (opencl_language_data): Likewise.
3773 * p-lang.c (pascal_language_data): Likewise.
3774 * rust-lang.c (rust_language_data): Likewise.
3775
3776 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3779 initializer.
3780 * c-lang.c (c_language_data): Likewise.
3781 (cplus_language_data): Likewise.
3782 (asm_language_data): Likewise.
3783 (minimal_language_data): Likewise.
3784 * d-lang.c (d_language_data): Likewise.
3785 * f-lang.c (f_language_data): Likewise.
3786 (f_language::case_sensitivity): New member function.
3787 * go-lang.c (go_language_data): Remove la_case_sensitivity
3788 initializer.
3789 * language.c (enum case_mode): Moved here from language.h.
3790 (case_mode): Make static.
3791 (show_case_command): Update for case_sensitivity being a method.
3792 (set_case_command): Likewise.
3793 (set_range_case): Likewise.
3794 (unknown_language_data): Remove la_case_sensitivity initializer.
3795 (auto_language_data): Likewise.
3796 * language.h (case_mode): Delete, move enum declaration to
3797 language.c.
3798 (language_data): Delete la_case_sensitivity field.
3799 (language_defn::case_sensitivity): New member function.
3800 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3801 initializer.
3802 * objc-lang.c (objc_language_data): Likewise.
3803 * opencl-lang.c (opencl_language_data): Likewise.
3804 * p-lang.c (pascal_language_data): Likewise.
3805 * rust-lang.c (rust_language_data): Likewise.
3806
3807 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * ada-lang.c (ada_language_data): Remove la_range_check
3810 initializer.
3811 * c-lang.c (c_language_data): Likewise.
3812 (cplus_language_data): Likewise.
3813 (asm_language_data): Likewise.
3814 (minimal_language_data): Likewise.
3815 * d-lang.c (d_language_data): Likewise.
3816 * f-lang.c (f_language_data): Likewise.
3817 (f_language::range_checking_on_by_default): New member function.
3818 * go-lang.c (go_language_data): Remove la_range_check initializer.
3819 * language.c (enum range_mode): Moved here from language.h.
3820 (range_mode): Made static.
3821 (show_range_command): Update to use
3822 range_checking_on_by_default.
3823 (set_range_command): Likewise.
3824 (set_range_case): Likewise.
3825 (unknown_language_data): Remove la_range_check initializer.
3826 (auto_language_data): Likewise.
3827 * language.h (range_mode): Delete. Enum definition moved to
3828 language.c.
3829 (language_data): Remove la_range_check field.
3830 (language_defn::range_checking_on_by_default): New member
3831 function.
3832 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3833 (m2_language::range_checking_on_by_default): New member function.
3834 * objc-lang.c (objc_language_data): Remove la_range_check
3835 initializer.
3836 * opencl-lang.c (opencl_language_data): Likewise.
3837 * p-lang.c (pascal_language_data): Likewise.
3838 (pascal_language::range_checking_on_by_default): New member
3839 function.
3840 * rust-lang.c (rust_language_data): Remove la_range_check
3841 initializer.
3842 (rust_language::range_checking_on_by_default): New member
3843 function.
3844
3845 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3846
3847 * dwarf2/read.c (dwarf2_physname): Remove special case for
3848 language_go.
3849 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3850 member function.
3851
3852 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3853
3854 * ada-lang.c (ada_language_data): Remove
3855 la_store_sym_names_in_linkage_form_p initializer.
3856 (ada_language::store_sym_names_in_linkage_form_p): New member
3857 function.
3858 * c-lang.c (c_language_data): Remove
3859 la_store_sym_names_in_linkage_form_p initializer.
3860 (c_language::store_sym_names_in_linkage_form_p): New member
3861 function.
3862 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3863 initializer.
3864 (asm_language_data): Likewise.
3865 (asm_language::store_sym_names_in_linkage_form_p): New member
3866 function.
3867 (minimal_language_data): Remove
3868 la_store_sym_names_in_linkage_form_p initializer.
3869 (minimal_language::store_sym_names_in_linkage_form_p): New member
3870 function.
3871 * d-lang.c (d_language_data): Remove
3872 la_store_sym_names_in_linkage_form_p initializer.
3873 * dwarf2/read.c (dwarf2_physname): Update call to
3874 store_sym_names_in_linkage_form_p.
3875 * f-lang.c (f_language_data): Remove
3876 la_store_sym_names_in_linkage_form_p initializer.
3877 * go-lang.c (go_language_data): Remove
3878 la_store_sym_names_in_linkage_form_p initializer.
3879 * language.c (unknown_language_data): Remove
3880 la_store_sym_names_in_linkage_form_p initializer.
3881 (unknown_language::store_sym_names_in_linkage_form_p): New member
3882 function.
3883 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3884 initializer.
3885 (auto_language::store_sym_names_in_linkage_form_p): New member
3886 function.
3887 * language.h (language_data): Remove
3888 la_store_sym_names_in_linkage_form_p member variable.
3889 (language_defn::store_sym_names_in_linkage_form_p): New member
3890 function.
3891 * m2-lang.c (m2_language_data): Remove
3892 la_store_sym_names_in_linkage_form_p initializer.
3893 * objc-lang.c (objc_language_data): Likewise.
3894 * opencl-lang.c (opencl_language_data): Likewise.
3895 * p-lang.c (pascal_language_data): Likewise.
3896 * rust-lang.c (rust_language_data): Likewise.
3897
3898 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * ada-lang.c (ada_language_data): Remove string_lower_bound
3901 initializer.
3902 * c-lang.c (c_language_data): Likewise.
3903 (cplus_language_data): Likewise.
3904 (asm_language_data): Likewise.
3905 (minimal_language_data): Likewise.
3906 * d-lang.c (d_language_data): Likewise.
3907 * f-lang.c (f_language_data): Likewise.
3908 * go-lang.c (go_language_data): Likewise.
3909 * language.c (unknown_language_data): Likewise.
3910 (auto_language_data): Likewise.
3911 * language.h (language_data): Remove string_lower_bound field.
3912 (language_defn::string_lower_bound): New member function.
3913 * m2-lang.c (m2_language_data): Remove string_lower_bound
3914 initializer.
3915 (m2_language::string_lower_bound): New member function.
3916 * objc-lang.c (objc_language_data): Remove string_lower_bound
3917 initializer.
3918 * opencl-lang.c (opencl_language_data): Likewise.
3919 * p-lang.c (pascal_language_data): Likewise.
3920 * rust-lang.c (rust_language_data): Likewise.
3921 * valops.c (value_cstring): Update call to string_lower_bound.
3922 (value_string): Likewise.
3923 * value.c (allocate_repeated_value): Likewise.
3924
3925 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3926
3927 * valops.c (value_repeat): Fix incorrect argument name in comment.
3928
3929 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 * ada-lang.c (ada_language_data): Remove c_style_arrays
3932 initializer.
3933 (ada_language::c_style_arrays_p): New member fuction.
3934 * c-lang.c (c_language_data): Remove c_style_arrays
3935 initializer.
3936 (cplus_language_data): Likewise.
3937 (asm_language_data): Likewise.
3938 (minimal_language_data): Likewise.
3939 * d-lang.c (d_language_data): Likewise.
3940 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3941 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3942 (f_language::c_style_arrays_p): New member function.
3943 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3944 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3945 * language.c (unknown_language_data): Remove c_style_arrays
3946 initializer.
3947 (auto_language_data): Likewise.
3948 * language.h (language_data): Remove c_style_arrays field.
3949 (language_defn::c_style_arrays_p): New member function.
3950 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3951 (m2_language::c_style_arrays_p): New member function.
3952 * objc-lang.c (objc_language_data): Remove c_style_arrays
3953 initializer.
3954 * opencl-lang.c (opencl_language_data): Likewise.
3955 * p-lang.c (pascal_language_data): Likewise.
3956 * rust-lang.c (rust_language_data): Likewise.
3957 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3958 and update local variable to a bool.
3959 * valops.c (value_cast): Update call to c_style_arrays_p.
3960 (value_array): Likewise.
3961 * value.c (coerce_array): Likewise.
3962
3963 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * ada-lang.c (ada_language_data): Remove la_language initializer.
3966 * c-lang.c (c_language_data): Likewise.
3967 (cplus_language_data): Likewise.
3968 (asm_language_data): Likewise.
3969 (minimal_language_data): Likewise.
3970 * d-lang.c (d_language_data): Likewise.
3971 * f-lang.c (f_language_data): Likewise.
3972 * go-lang.c (go_language_data): Likewise.
3973 * language.c (unknown_language_data): Likewise.
3974 (auto_language_data): Likewise.
3975 * language.h (language_data): Remove la_language field.
3976 (language_defn::language_defn): Initialise la_language field.
3977 (language_defn::la_language): New member variable.
3978 * m2-lang.c (m2_language_data): Remove la_language field.
3979 * objc-lang.c (objc_language_data): Likewise.
3980 * opencl-lang.c (opencl_language_data): Likewise.
3981 * p-lang.c (pascal_language_data): Likewise.
3982 * rust-lang.c (rust_language_data): Likewise.
3983
3984 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * ada-lang.c (ada_extensions): Delete, moved into
3987 ada_language::filename_extensions.
3988 (ada_language_data): Remove la_filename_extensions initializer.
3989 (ada_language::filename_extensions): New member function.
3990 * c-lang.c (c_extensions): Delete, moved into
3991 c_language::filename_extensions.
3992 (c_language_data): Remove la_filename_extensions initializer.
3993 (c_language::filename_extensions): New member function.
3994 (cplus_extensions): Delete, moved into
3995 cplus_language::filename_extensions.
3996 (cplus_language_data): Remove la_filename_extensions initializer.
3997 (cplus_language::filename_extensions): New member function.
3998 (asm_extensions): Delete, moved into
3999 asm_language::filename_extensions.
4000 (asm_language_data): Remove la_filename_extensions initializer.
4001 (asm_language::filename_extensions): New member function.
4002 (minimal_language_data): Remove la_filename_extensions
4003 initializer.
4004 * d-lang.c (d_extensions): Delete, moved into
4005 d_language::filename_extensions.
4006 (d_language_data): Remove la_filename_extensions initializer.
4007 (d_language::filename_extensions): New member function.
4008 * f-lang.c (f_extensions): Delete, moved into
4009 f_language::filename_extensions.
4010 (f_language_data): Remove la_filename_extensions initializer.
4011 (f_language::filename_extensions): New member function.
4012 * go-lang.c (go_language_data): Remove la_filename_extensions
4013 initializer.
4014 * language.c (add_set_language_command): Update now that
4015 filename_extensions returns a vector.
4016 (unknown_language_data): Remove la_filename_extensions
4017 initializer.
4018 (auto_language_data): Likewise.
4019 * language.h (language_data): Remove la_filename_extensions field.
4020 (language_defn::filename_extensions): New member function.
4021 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4022 initializer.
4023 * objc-lang.c (objc_extensions): Delete, moved into
4024 objc_language::filename_extensions.
4025 (objc_language_data): Remove la_filename_extensions initializer.
4026 (objc_language::filename_extensions): New member function.
4027 * opencl-lang.c (opencl_language_data): Remove
4028 la_filename_extensions initializer.
4029 * p-lang.c (pascal_extensions): Delete, moved into
4030 pascal_language::filename_extensions.
4031 (pascal_language_data): Remove la_filename_extensions initializer.
4032 (pascal_language::filename_extensions): New member function.
4033 * rust-lang.c (rust_extensions): Delete, moved into
4034 rust_language::filename_extensions.
4035 (rust_language_data): Remove la_filename_extensions initializer.
4036 (rust_language::filename_extensions): New member function.
4037 * symfile.c (add_filename_language): Add new assert.
4038
4039 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4040
4041 * ada-lang.c (ada_language_data): Remove la_name and
4042 la_natural_name initializers.
4043 (ada_language::name): New member function.
4044 (ada_language::natural_name): New member function.
4045 * c-lang.c (c_language_data): Remove la_name and
4046 la_natural_name initializers.
4047 (c_language::name): New member function.
4048 (c_language::natural_name): New member function.
4049 (cplus_language_data): Remove la_name and
4050 la_natural_name initializers.
4051 (cplus_language::name): New member function.
4052 (cplus_language::natural_name): New member function.
4053 (asm_language_data): Remove la_name and
4054 la_natural_name initializers.
4055 (asm_language::name): New member function.
4056 (asm_language::natural_name): New member function.
4057 (minimal_language_data): Remove la_name and
4058 la_natural_name initializers.
4059 (minimal_language::name): New member function.
4060 (minimal_language::natural_name): New member function.
4061 * compile/compile.c (compile_to_object): Update call to
4062 lanugage_defn::name.
4063 * d-lang.c (d_language_data): Remove la_name and
4064 la_natural_name initializers.
4065 (d_language::name): New member function.
4066 (d_language::natural_name): New member function.
4067 * expprint.c (print_subexp_standard): Update call to
4068 language_defn::name.
4069 (dump_raw_expression): Likewise
4070 (dump_prefix_expression): Likewise.
4071 * f-lang.c (f_language_data): Remove la_name and
4072 la_natural_name initializers.
4073 (f_language::name): New member function.
4074 (f_language::natural_name): New member function.
4075 * go-lang.c (go_language_data): Remove la_name and
4076 la_natural_name initializers.
4077 (go_language::name): New member function.
4078 (go_language::natural_name): New member function.
4079 * language.c (show_language_command): Update call to
4080 language_defn::name.
4081 (set_language_command): Likewise.
4082 (language_enum): Likewise.
4083 (language_str): Likewise.
4084 (add_set_language_command): Likewise, use
4085 language_defn::natural_name in the doc string.
4086 (unknown_language_data): Remove la_name and
4087 la_natural_name initializers.
4088 (unknown_language::name): New member function.
4089 (unknown_language::natural_name): New member function.
4090 (auto_language_data): Remove la_name and
4091 la_natural_name initializers.
4092 (auto_language::name): New member function.
4093 (auto_language::natural_name): New member function.
4094 (language_lookup_primitive_type_as_symbol): Update call to
4095 language_defn::name.
4096 * language.h (language_data): Remove la_name and la_natural_name
4097 member variables.
4098 (language_defn::name): New member function.
4099 (language_defn::natural_name): New member function.
4100 * m2-lang.c (m2_language_data): Remove la_name and
4101 la_natural_name initializers.
4102 (m2_language::name): New member function.
4103 (m2_language::natural_name): New member function.
4104 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4105 language_defn::natural_name.
4106 * objc-lang.c (objc_language_data): Remove la_name and
4107 la_natural_name initializers.
4108 (objc_language::name): New member function.
4109 (objc_language::natural_name): New member function.
4110 * opencl-lang.c (opencl_language_data): Remove la_name and
4111 la_natural_name initializers.
4112 (opencl_language::name): New member function.
4113 (opencl_language::natural_name): New member function.
4114 * p-lang.c (pascal_language_data): Remove la_name and
4115 la_natural_name initializers.
4116 (pascal_language::name): New member function.
4117 (pascal_language::natural_name): New member function.
4118 * rust-lang.c (rust_language_data): Remove la_name and
4119 la_natural_name initializers.
4120 (rust_language::name): New member function.
4121 (rust_language::natural_name): New member function.
4122 * symtab.c (lookup_language_this): Update call to
4123 language_defn::name.
4124
4125 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4126
4127 * ada-lang.c (ada_language_data): Remove la_name_of_this
4128 initializer.
4129 * ax-gdb.c (gen_expr): Update call to name_of_this.
4130 * c-exp.y (classify_name): Likewise.
4131 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4132 (cplus_language_data): Likewise.
4133 (cplus_language::name_of_this): New member function.
4134 (asm_language_data): Remove la_name_of_this initializer.
4135 (minimal_language_data): Likewise.
4136 * d-lang.c (d_language_data): Likewise.
4137 (d_language::name_of_this): New member function.
4138 * expprint.c (print_subexp_standard): Update call to name_of_this.
4139 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4140 * go-lang.c (go_language_data): Likewise.
4141 * language.c (unknown_language_data): Likewise.
4142 (unknown_language::name_of_this): New member function.
4143 (auto_language_data): Remove la_name_of_this initializer.
4144 (auto_language::name_of_this): New member function.
4145 * language.h (language_data): Delete la_name_of_this member
4146 variable.
4147 (language_defn::name_of_this): New member function.
4148 * m2-lang.c (m2_language_data): Remove la_name_of_this
4149 initializer.
4150 * objc-lang.c (objc_language_data): Likewise.
4151 (objc_language::name_of_this): New member function.
4152 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4153 initializer.
4154 * p-lang.c (pascal_language_data): Likewise.
4155 (pascal_language::name_of_this): New member function.
4156 * rust-lang.c (rust_language_data): Remove la_name_of_this
4157 initializer.
4158 * symtab.c (lookup_language_this): Update call to name_of_this.
4159 (lookup_symbol_aux): Likewise.
4160 * valops.c (value_of_this): Likewise.
4161
4162 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * ada-lang.c (ada_language_data): Remove
4165 la_struct_too_deep_ellipsis initializer.
4166 (ada_language::struct_too_deep_ellipsis): New member function.
4167 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4168 initializer.
4169 (cplus_language_data): Likewise.
4170 (asm_language_data): Likewise.
4171 (minimal_language_data): Likewise.
4172 * cp-valprint.c (cp_print_value): Update call to
4173 struct_too_deep_ellipsis.
4174 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4175 initializer.
4176 * f-lang.c (f_language_data): Likewise.
4177 (f_language::struct_too_deep_ellipsis): New member function.
4178 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4179 initializer.
4180 * language.c (unknown_language_data): Likewise.
4181 (auto_language_data): Likewise.
4182 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4183 member variable.
4184 (language_defn::struct_too_deep_ellipsis): New member function.
4185 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4186 initializer.Q
4187 * objc-lang.c (objc_language_data): Likewise.
4188 * opencl-lang.c (opencl_language_data): Likewise.
4189 * p-lang.c (pascal_language_data): Likewise.
4190 * rust-lang.c (rust_language_data): Likewise.
4191 * valprint.c (val_print_check_max_depth): Update call to
4192 struct_too_deep_ellipsis.
4193
4194 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4195
4196 * MAINTAINERS (Write After Approval): Add myself.
4197
4198 2020-09-15 Tom Tromey <tom@tromey.com>
4199
4200 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4201 Remove.
4202
4203 2020-09-15 Tom Tromey <tom@tromey.com>
4204
4205 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4206 and TYPE_CODE_METHODPTR cases.
4207 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4208 (c_value_print_inner): Update.
4209 * valprint.c (generic_value_print_memberptr): New function, from
4210 c_value_print_memberptr.
4211 (generic_value_print): Use it. Call cplus_print_method_ptr.
4212
4213 2020-09-15 Tom Tromey <tromey@adacore.com>
4214
4215 * python/python-internal.h (PyInt_FromLong): Remove define.
4216 * python/py-value.c (convert_value_from_python): Use
4217 gdb_py_object_from_longest.
4218 * python/py-type.c (typy_get_code): Use
4219 gdb_py_object_from_longest.
4220 * python/py-symtab.c (salpy_get_line): Use
4221 gdb_py_object_from_longest.
4222 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4223 gdb_py_object_from_longest.
4224 * python/py-record.c (recpy_gap_reason_code): Use
4225 gdb_py_object_from_longest.
4226 * python/py-record-btrace.c (recpy_bt_insn_size)
4227 (recpy_bt_func_level, btpy_list_count): Use
4228 gdb_py_object_from_longest.
4229 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4230 gdb_py_object_from_longest. Fix error handling.
4231 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4232 gdb_py_object_from_longest.
4233 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4234 gdb_py_object_from_longest.
4235 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4236 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4237 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4238
4239 2020-09-15 Tom Tromey <tromey@adacore.com>
4240
4241 * python/python.c (gdbpy_parameter_value): Use
4242 gdb_py_object_from_ulongest.
4243
4244 2020-09-15 Tom Tromey <tromey@adacore.com>
4245
4246 * python/py-infevents.c (create_register_changed_event_object):
4247 Use gdb_py_object_from_longest.
4248 * python/py-exitedevent.c (create_exited_event_object): Use
4249 gdb_py_object_from_longest.
4250
4251 2020-09-15 Tom Tromey <tromey@adacore.com>
4252
4253 * python/python.c (gdbpy_parameter_value): Use
4254 gdb_py_object_from_longest.
4255 * python/py-type.c (convert_field, typy_range): Use
4256 gdb_py_object_from_longest.
4257 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4258 gdb_py_object_from_longest.
4259 * python/py-lazy-string.c (stpy_get_length): Use
4260 gdb_py_object_from_longest.
4261 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4262 gdb_py_object_from_longest.
4263 * python/py-infevents.c (create_memory_changed_event_object): Use
4264 gdb_py_object_from_longest.
4265 * python/py-inferior.c (infpy_get_num): Use
4266 gdb_py_object_from_longest.
4267 (infpy_get_pid): Likewise.
4268
4269 2020-09-15 Tom Tromey <tromey@adacore.com>
4270
4271 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4272 defines.
4273 * python/py-value.c (valpy_long): Use
4274 gdb_py_object_from_ulongest.
4275 * python/py-symtab.c (salpy_get_pc): Use
4276 gdb_py_object_from_ulongest.
4277 (salpy_get_last): Likewise.
4278 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4279 gdb_py_object_from_ulongest.
4280 * python/py-lazy-string.c (stpy_get_address): Use
4281 gdb_py_object_from_ulongest.
4282 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4283 * python/py-arch.c (archpy_disassemble): Use
4284 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4285 error handling.
4286
4287 2020-09-15 Tom Tromey <tromey@adacore.com>
4288
4289 * python/python-internal.h (gdb_py_long_from_longest): Remove
4290 defines.
4291 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4292 * python/py-type.c (convert_field, typy_get_sizeof): Use
4293 gdb_py_object_from_longest.
4294 * python/py-record-btrace.c (btpy_list_index): Use
4295 gdb_py_object_from_longest.
4296
4297 2020-09-15 Tom Tromey <tromey@adacore.com>
4298
4299 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4300 * python/py-record.c (recpy_element_number): Use
4301 gdb_py_object_from_longest.
4302 (recpy_gap_number): Likewise.
4303
4304 2020-09-15 Tom Tromey <tromey@adacore.com>
4305
4306 * top.c (ui::ui): Update.
4307 (highest_ui_num): Remove.
4308 * top.h (struct ui) <num>: Remove.
4309
4310 2020-09-15 Tom Tromey <tromey@adacore.com>
4311
4312 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4313 * ui-style.c (ansi_regex_text): Now array.
4314 * rust-exp.y (number_regex_text): Now array.
4315 * linespec.c (linespec_quote_characters): Now array.
4316 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4317 Now arrays.
4318
4319 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4320
4321 * debuginfod-support.c (debuginfod_client_deleter): New.
4322 (debuginfod_client_up): New.
4323 (debuginfod_init): Return debuginfod_client_up.
4324 (debuginfod_source_query): Adjust.
4325 (debuginfod_debuginfo_query): Adjust.
4326
4327 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4328
4329 * debuginfod-support.c (debuginfod_source_query): Use
4330 make_unique_xstrdup.
4331
4332 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4335 with `type::instance_flags`.
4336
4337 2020-09-14 Michael Mullin <masmullin@gmail.com>
4338
4339 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4340 Remove baton parameter.
4341
4342 2020-09-14 Pedro Alves <pedro@palves.net>
4343
4344 * Makefile.in (SELFTESTS_SRCS): Add
4345 unittests/enum-flags-selftests.c.
4346 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4347 btrace_function_flags instead of enum btrace_function_flag.
4348 * compile/compile-c-types.c (convert_qualified): Use
4349 enum_flags::raw.
4350 * compile/compile-cplus-symbols.c (convert_one_symbol)
4351 (convert_symbol_bmsym):
4352 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4353 (compile_cplus_convert_struct_or_union_methods)
4354 (compile_cplus_instance::convert_qualified_base):
4355 * go-exp.y (parse_string_or_char): Add cast to int.
4356 * unittests/enum-flags-selftests.c: New file.
4357 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4358 type to btrace_thread_flags from btrace_thread_flag.
4359 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4360 local's type to btrace_thread_flags from btrace_thread_flag. Add
4361 cast in DEBUG call.
4362
4363 2020-09-14 Pedro Alves <pedro@palves.net>
4364
4365 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4366 * gdbtypes.c (address_space_name_to_int): Rename to ...
4367 (address_space_name_to_type_instance_flags): ... this.
4368 (address_space_int_to_name): Rename to ...
4369 (address_space_type_instance_flags_to_name): ... this.
4370 * gdbtypes.h (address_space_name_to_int): Rename to ...
4371 (address_space_name_to_type_instance_flags): ... this.
4372 (address_space_int_to_name): Rename to ...
4373 (address_space_type_instance_flags_to_name): ... this.
4374 * type-stack.c (type_stack::insert): Adjust to rename.
4375 * type-stack.h (type_stack::insert): Likewise.
4376
4377 2020-09-14 Pedro Alves <pedro@palves.net>
4378 Andrew Burgess <andrew.burgess@embecosm.com>
4379
4380 * avr-tdep.c (avr_address_class_type_flags): Return
4381 type_instance_flags.
4382 (avr_address_class_type_flags_to_name): Take a
4383 type_instance_flags.
4384 (avr_address_class_name_to_type_flags): Return bool and take a
4385 type_instance_flags.
4386 * d-lang.c (build_d_types): Use type::set_instance_flags.
4387 * ft32-tdep.c (ft32_address_class_type_flags): Return
4388 type_instance_flags.
4389 (ft32_address_class_type_flags_to_name): Take a
4390 type_instance_flags.
4391 (ft32_address_class_name_to_type_flags): Return bool and take a
4392 type_instance_flags.
4393 (ft32_gdbarch_init): Use type::set_instance_flags.
4394 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4395 * gdbarch.h, gdbarch.c: Regenerate.
4396 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4397 (address_class_name_to_type_flags): Use type_instance_flags and
4398 bool.
4399 * gdbtypes.c (address_space_name_to_int)
4400 (address_space_int_to_name, make_qualified_type): Use
4401 type_instance_flags.
4402 (make_qualified_type): Use type_instance_flags and
4403 type::set_instance_flags.
4404 (make_type_with_address_space, make_cv_type, make_vector_type)
4405 (check_typedef): Use type_instance_flags.
4406 (recursive_dump_type): Cast type_instance_flags to unsigned for
4407 printing.
4408 (copy_type_recursive): Use type::set_instance_flags.
4409 (gdbtypes_post_init): Use type::set_instance_flags.
4410 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4411 <m_instance_flags>: ... this.
4412 <instance_flags, set_instance_flags>: New methods.
4413 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4414 (SET_TYPE_INSTANCE_FLAGS): New.
4415 (address_space_name_to_int, address_space_int_to_name)
4416 (make_type_with_address_space): Pass flags using
4417 type_instance_flags instead of int.
4418 * stabsread.c (cleanup_undefined_types_noname): Use
4419 type::set_instance_flags.
4420 * s390-tdep.c (s390_address_class_type_flags): Return
4421 type_instance_flags.
4422 (s390_address_class_type_flags_to_name): Take a
4423 type_instance_flags.
4424 (s390_address_class_name_to_type_flags): Return bool and take a
4425 type_instance_flags.
4426 * type-stack.c (type_stack::follow_types): Use
4427 type_instance_flags.
4428 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4429
4430 2020-09-14 Tom Tromey <tromey@adacore.com>
4431
4432 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4433 * x86-tdep.c (x86_is_thunk_register_name)
4434 (x86_in_indirect_branch_thunk): Update.
4435 * sparc64-tdep.c (sparc64_fpu_register_names)
4436 (sparc64_cp0_register_names, sparc64_register_names)
4437 (sparc64_pseudo_register_names): Now const.
4438 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4439 cp0_registers_num>: Now const.
4440 * sparc-tdep.c (sparc_core_register_names)
4441 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4442 (sparc32_pseudo_register_names): Now const.
4443 (validate_tdesc_registers): Update.
4444 * rust-lang.c (rust_extensions): Now const.
4445 * p-lang.c (p_extensions): Now const.
4446 * objc-lang.c (objc_extensions): Now const.
4447 * nto-tdep.c (nto_thread_state_str): Now const.
4448 * moxie-tdep.c (moxie_register_names): Now const.
4449 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4450 Now const.
4451 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4452 (mips_linux_reg_names): Now const.
4453 (mips_gdbarch_init): Update.
4454 * microblaze-tdep.c (microblaze_register_names): Now const.
4455 * m68k-tdep.c (m68k_register_names): Now const.
4456 * m32r-tdep.c (m32r_register_names): Now const.
4457 * ia64-tdep.c (ia64_register_names): Now const.
4458 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4459 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4460 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4461 ymm_avx512_register_names, pkeys_register_names>: Now const.
4462 * i386-tdep.c (i386_register_names, i386_zmm_names)
4463 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4464 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4465 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4466 * f-lang.c (f_extensions): Now const.
4467 * d-lang.c (d_extensions): Now const.
4468 * csky-tdep.c (csky_register_names): Now const.
4469 * charset.c (default_charset_names, charset_enum): Now const.
4470 (_initialize_charset): Update.
4471 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4472 const.
4473 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4474 (bsd_uthread_solib_loaded): Update.
4475 (bsd_uthread_state): Now const.
4476 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4477 (amd64_ymm_avx512_names, amd64_ymmh_names)
4478 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4479 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4480 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4481 (amd64_dword_names): Now const.
4482 * agent.c (can_use_agent_enum): Now const.
4483 * ada-tasks.c (task_states, long_task_states): Now const.
4484 * ada-lang.c (known_runtime_file_name_patterns)
4485 (known_auxiliary_function_name_patterns, attribute_names)
4486 (standard_exc, ada_extensions): Now const.
4487
4488 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4489
4490 * bcache.h (struct bcache) <bcache>: Remove constructor.
4491 <m_hash_function, m_compare_function>: Remove.
4492 <~bcache>: Make virtual.
4493 <compare>: Remove static method, introduce virtual method.
4494 <default_hash>: Remove.
4495 <hash>: New virtual method.
4496 * bcache.c (bcache::expand_hash_table): Update.
4497 (bcache::insert): Update.
4498 (bcache::hash): New.
4499 (bcache::compare): Update comment and parameter names.
4500 * gdbtypes.c (types_deeply_equal): Update.
4501 * psymtab.h (struct psymbol_bcache): New struct.
4502 (class psymtab_storage) <psymtab_storage>: Make default.
4503 <psymbol_cache>: Change type to psymbol_bcache.
4504 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4505 (psymbol_hash): Change to...
4506 (psymbol_bcache::hash): ... this.
4507 (psymbol_compare): Change to...
4508 (psymbol_bcache::compare): ... this.
4509
4510 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4511
4512 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4513 checking for initial lwp.
4514
4515 2020-09-14 Tom Tromey <tromey@adacore.com>
4516
4517 * m68k-tdep.c (m68k_extract_return_value): Use
4518 pointer_result_regnum.
4519 (m68k_store_return_value): Likewise.
4520 (m68k_reg_struct_return_p): Handle vectors and arrays.
4521 (m68k_return_value): Handle arrays.
4522 (m68k_svr4_return_value): Fix single-element aggregate handling.
4523 Handle long double. Adjust for embedded ABI.
4524 (m68k_svr4_init_abi): Set pointer_result_regnum.
4525 (m68k_embedded_init_abi): New function.
4526 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4527 (m68k_osabi_sniffer): New function.
4528 (_initialize_m68k_tdep): Register osabi sniffer.
4529 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4530 member.
4531
4532 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4533
4534 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4535 with gdb::unique_xmalloc_ptr<char>.
4536
4537 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4538
4539 * xml-support.h (xml_fetch_another): Change type to be a
4540 function_view.
4541 (xml_process_xincludes): Remove baton parameter.
4542 (xml_fetch_content_from_file): Change baton parameter to
4543 dirname.
4544 * xml-support.c (struct xinclude_parsing_data)
4545 <xinclude_parsing_data>: Remove baton parameter.
4546 <fetcher_baton>: Remove.
4547 (xinclude_start_include): Adjust.
4548 (xml_process_xincludes): Adjust.
4549 (xml_fetch_content_from_file): Replace baton parameter with
4550 dirname.
4551 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4552 (xml_init_syscalls_info): Use a lambda.
4553 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4554 (file_read_description_xml): Use a lambda.
4555 (fetch_available_features_from_target): Change baton parameter
4556 to target_ops.
4557 (target_read_description_xml): Use a lambda.
4558 (target_fetch_description_xml): Use a lambda.
4559 (string_read_description_xml): Update.
4560
4561 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4562
4563 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4564 uses with type::endianity_is_not_default.
4565
4566 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * gdbtypes.h (struct type) <endianity_is_not_default,
4569 set_endianity_is_not_default>: New methods.
4570 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4571 type::endianity_is_not_default, change all write call sites to
4572 use type::set_endianity_is_not_default.
4573
4574 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4577 uses with type::is_fixed_instance.
4578
4579 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * gdbtypes.h (struct type) <is_fixed_instance,
4582 set_is_fixed_instance>: New methods.
4583 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4584 write call sites to use type::set_is_fixed_instance.
4585
4586 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4589 uses with type::is_gnu_ifunc.
4590
4591 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4594 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4595 use type::set_is_gnu_ifunc.
4596
4597 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4600 uses with type::stub_is_supported.
4601
4602 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4605 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4606 use type::set_stub_is_supported.
4607
4608 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4611 uses with type::is_vector.
4612
4613 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4616 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4617 use type::set_is_vector.
4618
4619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4622 uses with type::has_varargs.
4623
4624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4627 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4628 use type::set_has_varargs.
4629
4630 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4633 uses with type::is_prototyped.
4634
4635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4638 New methods.
4639 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4640 call sites to use type::set_is_prototyped.
4641
4642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4645 uses with type::target_is_stub.
4646
4647 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4650 New methods.
4651 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4652 sites to use type::set_target_is_stub.
4653
4654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbtypes.h (TYPE_STUB): Remove, replace all
4657 uses with type::is_stub.
4658
4659 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4662 (TYPE_STUB): Use type::is_stub, change all write call sites to
4663 use type::set_is_stub.
4664
4665 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4668 type::has_no_signedness.
4669
4670 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * gdbtypes.h (struct type) <has_no_signedness,
4673 set_has_no_signedness>: New methods.
4674 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4675 call sites to use type::set_has_no_signedness.
4676
4677 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4680 type::is_unsigned.
4681
4682 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4685 methods.
4686 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4687 sites to use type::set_is_unsigned.
4688
4689 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4690 Adam Renquinha <arenquinha@cimeq.qc.ca>
4691
4692 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4693 pointer and stack frame offset when unwinding.
4694
4695 2020-09-13 Pedro Alves <pedro@palves.net>
4696
4697 * NEWS: Document "-break-insert --qualified".
4698 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4699
4700 2020-09-13 Pedro Alves <pedro@palves.net>
4701
4702 * linespec.c (classify_mtype, compare_msyms): Delete.
4703 (search_minsyms_for_name): Remove classification logic. Instead
4704 filter out trampoline symbols if we also found an external
4705 function of the same name.
4706
4707 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4708
4709 * NEWS: Create a new section for the next release branch.
4710 Rename the section of the current branch, now that it has
4711 been cut.
4712
4713 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4714
4715 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4716 * version.in: Bump version to 11.0.50.DATE-git.
4717
4718 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4719
4720 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4721
4722 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4723 Felix Willgerodt <Felix.Willgerodt@intel.com>
4724
4725 * gdbarch.sh: Added bfloat16 type.
4726 * gdbarch.c: Regenerated.
4727 * gdbarch.h: Regenerated.
4728 * gdbtypes.c (floatformats_bfloat16): New struct.
4729 (gdbtypes_post_init): Add builtin_bfloat16.
4730 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4731 (floatformats_bfloat16): New struct.
4732 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4733 (i386_ymm_type): Add field "v16_bfloat16"
4734 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4735 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4736 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4737 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4738 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4739 * features/i386/64bit-avx512.c: Regenerated.
4740 * features/i386/64bit-sse.xml: Add bfloat16 type.
4741 * features/i386/64bit-sse.c: Regenerated.
4742
4743 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4744
4745 * i386-tdep.c (i386_zmm_type): Fix field names.
4746 (i386_ymm_type): Fix field names.
4747
4748 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4749
4750 * breakpoint.c: Fix typo in the help message of the
4751 "set breakpoint condition-evaluation" command.
4752
4753 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4754
4755 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4756 * (nbsd_nat_target::pid_to_exec_file)
4757 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4758 (nbsd_nat_target::post_startup_inferior)
4759 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4760 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4761 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4762 * (nbsd_thread_lister): Remove.
4763
4764 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4765
4766 * fork-inferior.c (startup_inferior): Avoid double free.
4767
4768 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4769
4770 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4771 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4772
4773 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4774
4775 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4776 * netbsd-nat.c: Include <sys/ptrace.h>.
4777 * (netbsd_nat::enable_proc_events): Add.
4778
4779 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4780
4781 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4782 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4783 (netbsd_nat::for_each_thread): Add.
4784 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4785 "gdbsupport/common-debug.h".
4786 * (netbsd_nat::netbsd_thread_lister)
4787 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4788 (netbsd_nat::for_each_thread): Add.
4789
4790 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4791
4792 * netbsd-nat.h: Include <unistd.h>.
4793 * (netbsd_nat::pid_to_exec_file): Add.
4794 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4795 * (netbsd_nat::pid_to_exec_file) Add.
4796
4797 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4798
4799 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4800
4801 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4802
4803 * netbsd-nat.h: New file.
4804 * netbsd-nat.c: Likewise.
4805
4806 2020-09-09 Tom Tromey <tromey@adacore.com>
4807
4808 * ada-lang.c (remove_extra_symbols): Do not increment when
4809 removing an element
4810
4811 2020-09-08 Tom Tromey <tromey@adacore.com>
4812
4813 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4814
4815 2020-09-08 Tom Tromey <tromey@adacore.com>
4816
4817 PR win32/25302:
4818 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4819 (gdb_bfd_init_data): New function.
4820 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4821
4822 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4823
4824 * infrun.c (fetch_inferior_event): Use
4825 `switch_to_target_no_thread` to switch the target.
4826
4827 2020-09-06 Tom Tromey <tom@tromey.com>
4828
4829 * symfile.h (dwarf2_free_objfile): Don't declare.
4830
4831 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4832
4833 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4834 to match 16 byte real/complex type generated by Flang compiler.
4835
4836 2020-09-03 Tom de Vries <tdevries@suse.de>
4837
4838 PR breakpoint/26546
4839 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4840 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4841
4842 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4843
4844 * maint.c (index_digits): New function.
4845 (struct maint_print_section_data): Remove.
4846 (print_bfd_section_info): Remove print_data parameter, add arg
4847 and index_digits.
4848 (print_objfile_section_info): Likewise.
4849 (print_bfd_section_info_maybe_relocated): Likewise (plus
4850 objfile).
4851 (maintenance_info_sections): Adjust calls.
4852
4853 2020-09-02 Tom Tromey <tromey@adacore.com>
4854
4855 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4856 for null pointers.
4857 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4858
4859 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4860
4861 * bcache.h (struct bcache) <insert>: Change type of `added` to
4862 pointer to bool.
4863 * bcache.c (bcache::insert): Likewise.
4864 * gdbtypes.c (check_types_worklist): Adjust.
4865 * psymtab.c (add_psymbol_to_bcache): Adjust.
4866
4867 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4868
4869 * corelow.c (unordered_set): Include.
4870 (class core_target): Add field 'm_core_unavailable_mappings'.
4871 (core_target::build_file_mappings): Print only one warning
4872 per inaccessible file. Add unavailable/broken mappings
4873 to m_core_unavailable_mappings.
4874 (core_target::xfer_partial): Call...
4875 (core_target::xfer_memory_via_mappings): New method.
4876
4877 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4878
4879 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4880 type to bool.
4881
4882 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4883
4884 * dwarf2/read.c (struct field_info): Fix indentation.
4885
4886 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4889 ordering in comment.
4890 * frame.c (frame_id_eq): Fix indentation.
4891
4892 2020-08-31 Scott Linder <scott@scottlinder.com>
4893 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4896 inline frame ids in outer frame.
4897
4898 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4901 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4902 (outer_frame_id): Use FID_STACK_OUTER instead of
4903 FID_STACK_INVALID.
4904 (frame_id_p): Don't check for outer_frame_id.
4905
4906 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4909 regnum/frame in value. Call allocate_value_lazy.
4910 * frame.c (frame_unwind_register_value): Use
4911 val_print_not_saved.
4912
4913 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4916
4917 2020-08-29 Pedro Alves <pedro@palves.net>
4918
4919 * progspace.c (print_program_space): Use all_inferiors. Switch to
4920 the inferior before calling target_pid_to_str.
4921
4922 2020-08-28 Tom Tromey <tom@tromey.com>
4923
4924 * xcoffread.c (xcoff_end_psymtab): Update comment.
4925 * dbxread.c (dbx_end_psymtab): Update comment.
4926
4927 2020-08-28 Tom de Vries <tdevries@suse.de>
4928
4929 PR breakpoint/26544
4930 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4931 event_location.
4932 (create_breakpoint): Same.
4933 (base_breakpoint_decode_location): Same.
4934 (bkpt_create_sals_from_location): Same.
4935 (bkpt_decode_location): Same.
4936 (bkpt_probe_create_sals_from_location): Same.
4937 (bkpt_probe_decode_location): Same.
4938 (tracepoint_create_sals_from_location): Same.
4939 (tracepoint_decode_location): Same.
4940 (tracepoint_probe_decode_location): Same.
4941 (strace_marker_create_sals_from_location): Same.
4942 (strace_marker_decode_location): Same.
4943 (create_sals_from_location_default): Same.
4944 (decode_location_default): Same.
4945 * breakpoint.h (struct breakpoint_ops): Same.
4946 (create_breakpoint): Same.
4947 * linespec.h (decode_line_full): Same.
4948 * linespec.c (decode_line_full): Same. Throw error if
4949 result.size () == 0.
4950
4951 2020-08-27 Pedro Alves <pedro@palves.net>
4952
4953 PR gdb/26524
4954 * breakpoint.c (until_break_fsm) <location_breakpoint,
4955 caller_breakpoint>: Delete fields.
4956 <breakpoints>: New field.
4957 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4958 two individual breakpoints.
4959 (until_break_fsm::should_stop): Loop over breakpoints in the
4960 breakpoint vector.
4961 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4962 vector.
4963 (until_break_command): Handle location expanding into multiple
4964 sals.
4965
4966 2020-08-27 Pedro Alves <pedro@palves.net>
4967
4968 PR gdb/26523
4969 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4970 bp_until breakpoints user-specified locations. Update intro
4971 comment.
4972
4973 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4974
4975 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4976 gdb_bfd_sections): New.
4977 * maint.c (print_bfd_section_info): Change param type to
4978 maint_print_section_data.
4979 (print_objfile_section_info): Likewise.
4980 (print_bfd_section_info_maybe_relocated): Likewise.
4981 (maintenance_info_sections): Use gdb_bfd_sections.
4982
4983 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4984
4985 * MAINTAINERS: Add ARC target and maintainer.
4986
4987 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4988
4989 * configure.tgt: ARC support for GNU/Linux.
4990 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4991 * arc-linux-tdep.c: New file.
4992 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4993 * arc-tdep.c (arc_write_pc): Use it.
4994
4995 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4996
4997 * arc-tdep.c (arc_check_for_hardware_loop): New.
4998 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4999
5000 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5001
5002 * arc-tdep.h: Include "gdbarch.h".
5003
5004 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5005
5006 * arch/arc.h
5007 (arc_gdbarch_features): New class to stir the selection of target XML.
5008 (arc_create_target_description): Use FEATURES to choose XML target.
5009 (arc_lookup_target_description): Use arc_create_target_description
5010 to create _new_ target descriptions or return the already created
5011 ones if the FEATURES is the same.
5012 * arch/arc.c: Implementation of prototypes described above.
5013 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5014 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5015 * arc-tdep.c (*_feature_name): Make feature names consistent.
5016 (arc_register_feature): A new struct to hold information about
5017 registers of a particular target/feature.
5018 (arc_check_tdesc_feature): Check if XML provides registers in
5019 compliance with ARC_REGISTER_FEATURE structs.
5020 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5021 (determine_*_reg_feature_set): Which feature name to look for.
5022 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5023 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5024 to expected ISA enums to be used in arc_gdbarch_features structs.
5025 * features/Makefile (FEATURE_XMLFILES): Add new files.
5026 * gdb/features/arc/v1-aux.c: New file.
5027 * gdb/features/arc/v1-aux.xml: Likewise.
5028 * gdb/features/arc/v1-core.c: Likewise.
5029 * gdb/features/arc/v1-core.xml: Likewise.
5030 * gdb/features/arc/v2-aux.c: Likewise.
5031 * gdb/features/arc/v2-aux.xml: Likewise.
5032 * gdb/features/arc/v2-core.c: Likewise.
5033 * gdb/features/arc/v2-core.xml: Likewise.
5034 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5035
5036 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5037 Andrew Burgess <andrew.burgess@embecosm.com>
5038
5039 PR m2/26372
5040 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5041 an assert. Remove single element array indexing pattern as the
5042 MULTI_SUBSCRIPT support will handle this case too.
5043
5044 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * value.h (valprint_check_validity): Move declaration from
5047 here...
5048 * valprint.h (valprint_check_validity): ... to here.
5049
5050 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5051
5052 * debug.h: New file.
5053 * debug.c (debug_prefixed_vprintf): New function.
5054 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5055 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5056
5057 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5058
5059 * infrun.h (infrun_debug_printf_1): New function declaration.
5060 (infrun_debug_printf): New macro.
5061 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5062 throughout.
5063 (infrun_debug_printf): New function.
5064 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5065 (handle_jit_event): Likewise.
5066
5067 2020-08-21 Mark Wielaard <mark@klomp.org>
5068
5069 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5070
5071 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * frame.c (enum class frame_id_status): New.
5074 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5075 (fprintf_frame): Update.
5076 (compute_frame_id): Set frame id status to "computing" on entry.
5077 Set it back to "not_computed" on failure and to "computed" on
5078 success.
5079 (get_frame_id): Assert the frame id is not being computed.
5080 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5081 (create_new_frame): Likewise.
5082 (frame_cleanup_after_sniffer): Update assert.
5083
5084 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5085
5086 * regcache.c (pid_ptid_regcache_map): New type.
5087 (target_ptid_regcache_map): Remove.
5088 (target_pid_ptid_regcache_map): New type.
5089 (regcaches): Change type to target_pid_ptid_regcache_map.
5090 (get_thread_arch_aspace_regcache): Update.
5091 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5092 case.
5093 (regcaches_size): Update.
5094 (regcache_count): Update.
5095 (registers_changed_ptid_target_pid_test): New.
5096 (_initialize_regcache): Register new test.
5097
5098 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * regcache.c (regcache_count): New.
5101 (struct regcache_test_data): New.
5102 (regcache_test_data_up): New.
5103 (populate_regcaches_for_test): New.
5104 (regcaches_test): Remove.
5105 (get_thread_arch_aspace_regcache_test): New.
5106 (registers_changed_ptid_all_test): New.
5107 (registers_changed_ptid_target_test): New.
5108 (registers_changed_ptid_target_ptid_test): New.
5109 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5110 (_initialize_regcache): Register new tests.
5111
5112 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5115 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5116 gdbarch and aspace parameter. Use current inferior's aspace.
5117 Validate regcache's arch value.
5118 (regcaches_test): Update.
5119
5120 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5121
5122 * regcache.c (regcaches_test): Call registers_changed.
5123
5124 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5125
5126 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5127
5128 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5129
5130 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5131 to find the end of prologue for flang compiled binaries.
5132 * arm-tdep.c (arm_skip_prologue): Likewise.
5133 * i386-tdep.c (i386_skip_prologue): Likewise.
5134 * producer.c (producer_is_llvm): New function.
5135 (producer_parsing_tests): Added new tests for clang/flang.
5136 * producer.h (producer_is_llvm): New declaration.
5137
5138 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5139
5140 * linux-nat.c (linux_nat_debug_printf): New function.
5141 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5142
5143 2020-08-18 Aaron Merey <amerey@redhat.com>
5144
5145 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5146 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5147 (CLIBS): Add DEBUGINFOD_LIBS.
5148
5149 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5150
5151 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5152 'gdbarch_num_regs'.
5153
5154 2020-08-17 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5157 ada_get_decoded_value returns NULL.
5158
5159 2020-08-17 Tom Tromey <tromey@adacore.com>
5160
5161 * python/py-inferior.c (infpy_search_memory): Use
5162 gdb_py_object_from_ulongest.
5163 * python/py-infevents.c (create_inferior_call_event_object)
5164 (create_memory_changed_event_object): Use
5165 gdb_py_object_from_ulongest.
5166 * python/py-linetable.c (ltpy_entry_get_pc): Use
5167 gdb_py_object_from_ulongest.
5168
5169 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5170
5171 * loc.c (class symbol_needs_eval_context): Fix indentation.
5172
5173 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5174
5175 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5176 bool.
5177
5178 2020-08-17 Tom de Vries <tdevries@suse.de>
5179
5180 PR gdb/26393
5181 * gdbtypes.c (dump_dynamic_prop): New function.
5182 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5183
5184 2020-08-15 Tom de Vries <tdevries@suse.de>
5185
5186 PR backtrace/26390
5187 * stack.c (print_frame_args): Temporarily set the selected
5188 frame to FRAME while printing the frame's arguments.
5189
5190 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5191
5192 PR breakpoints/26385
5193 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5194 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5195
5196 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5197
5198 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5199 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5200 and >= to check return value instead of == -1 and != -1.
5201
5202 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5203
5204 * utils.h (class gdb_argv) <as_array_view>: New method.
5205 * utils.c (gdb_argv_as_array_view_test): New.
5206 (_initialize_utils): Register selftest.
5207 * maint.c (maintenance_selftest): Use the new method.
5208
5209 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5210
5211 * target.h (supports_dumpcore, dumpcore): New
5212 function declarations.
5213 * target.c (supports_dumpcore, dumpcore): New
5214 functions.
5215 * target-delegates.c: Rebuild.
5216 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5217 and target_dumpcore ().
5218
5219 2020-08-13 Aaron Merey <amerey@redhat.com>
5220
5221 * debuginfod-support.c: Replace global variables with user_data.
5222
5223 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5224
5225 * maint.c (maintenance_selftest): Split args and pass array_view
5226 to run_tests.
5227
5228 2020-08-12 Luis Machado <luis.machado@linaro.org>
5229
5230 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5231 type's length.
5232 Use %s and pulongest to print the length.
5233
5234 2020-08-12 Pedro Alves <palves@redhat.com>
5235
5236 * NEWS: Move "Multi-target debugging support" item to the
5237 "Changes since GDB 9" section.
5238
5239 2020-08-12 Pedro Alves <palves@redhat.com>
5240
5241 PR gdb/26336
5242 * progspace.c (program_space::remove_objfile): Invalidate the
5243 frame cache.
5244
5245 2020-08-11 Tom de Vries <tdevries@suse.de>
5246
5247 * MAINTAINERS: Mark ms1 as deleted.
5248
5249 2020-08-10 Luis Machado <luis.machado@linaro.org>
5250
5251 PR gdb/26310
5252
5253 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5254 act accordingly.
5255 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5256 movz/str/stur/stp skipping behavior.
5257
5258 2020-08-10 Luis Machado <luis.machado@linaro.org>
5259
5260 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5261 struct user_sve_header instead of struct sve_context.
5262
5263 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5264
5265 * read.h (dwarf2_fetch_die_loc_sect_off,
5266 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5267 `void *` parameter with function_view.
5268 * read.c (dwarf2_fetch_die_loc_sect_off,
5269 dwarf2_fetch_die_loc_cu_off): Likewise.
5270 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5271 (per_cu_dwarf_call): Adjust.
5272 (get_frame_address_in_block_wrapper): Remove.
5273 (indirect_synthetic_pointer): Adjust.
5274 (get_ax_pc): Remove.
5275 (dwarf2_compile_expr_to_ax): Adjust.
5276
5277 2020-08-08 Tom de Vries <tdevries@suse.de>
5278
5279 PR build/26344
5280 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5281 constructor.
5282 * regcache.c (get_thread_arch_aspace_regcache): Same.
5283
5284 2020-08-07 Tom Tromey <tromey@adacore.com>
5285
5286 * ravenscar-thread.c
5287 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5288 New method.
5289 (ravenscar_thread_target::wait): Check
5290 runtime_initialized.
5291 (ravenscar_thread_target::prepare_to_store)
5292 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5293 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5294 (ravenscar_thread_target::stopped_by_watchpoint)
5295 (ravenscar_thread_target::stopped_data_address)
5296 (ravenscar_thread_target::core_of_thread): Use
5297 scoped_restore_current_thread and
5298 set_base_thread_from_ravenscar_task.
5299
5300 2020-08-07 Tom Tromey <tromey@adacore.com>
5301
5302 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5303
5304 2020-08-07 Tom Tromey <tromey@adacore.com>
5305
5306 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5307 update_inferior_ptid before update_thread_list.
5308 (temporarily_change_regcache_ptid): New class.
5309 (ravenscar_thread_target::fetch_registers)
5310 (ravenscar_thread_target::store_registers)
5311 (ravenscar_thread_target::prepare_to_store): Use base thread when
5312 forwarding operation.
5313
5314 2020-08-07 Tom Tromey <tromey@adacore.com>
5315
5316 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5317 "is_pid" case.
5318
5319 2020-08-07 Tom Tromey <tromey@adacore.com>
5320
5321 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5322 New methods.
5323 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5324 first.
5325 (ravenscar_thread_target::add_thread): Rename from
5326 ravenscar_add_thread.
5327 (ravenscar_thread_target::update_thread_list): Use a lambda.
5328 (ravenscar_thread_target::xfer_partial): New method.
5329
5330 2020-08-07 Tom Tromey <tromey@adacore.com>
5331
5332 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5333 gdb::function_view.
5334 (iterate_over_live_ada_tasks): Change type of argument.
5335 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5336 of argument.
5337
5338 2020-08-07 Tom Tromey <tromey@adacore.com>
5339
5340 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5341 Remove.
5342 (ravenscar_thread_target::extra_thread_info): Remove.
5343 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5344 defer to target beneath for non-Ravenscar threads.
5345
5346 2020-08-07 Tom Tromey <tromey@adacore.com>
5347
5348 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5349 get_base_thread_from_ravenscar_task>: Now methods.
5350 <m_cpu_map>: New member.
5351 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5352 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5353 (ravenscar_thread_target::task_is_currently_active): Update.
5354 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5355 Now a method.
5356 (ravenscar_thread_target::add_active_thread): Put initial thread
5357 into the m_cpu_map.
5358
5359 2020-08-07 Tom Tromey <tromey@adacore.com>
5360
5361 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5362 event_ptid.
5363
5364 2020-08-07 Tom Tromey <tromey@adacore.com>
5365
5366 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5367 runtime_initialized.
5368
5369 2020-08-07 Tom Tromey <tromey@adacore.com>
5370
5371 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5372 add_active_thread.
5373 (ravenscar_thread_target::add_active_thread): Now public.
5374 (ravenscar_inferior_created): Call add_active_thread after pushing
5375 the target.
5376
5377 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * regcache.c (ptid_regcache_map): New type.
5380 (target_ptid_regcache_map): New type.
5381 (regcaches): Change type to target_ptid_regcache_map.
5382 (get_thread_arch_aspace_regcache): Update to regcaches' new
5383 type.
5384 (regcache_thread_ptid_changed): Likewise.
5385 (registers_changed_ptid): Likewise.
5386 (regcaches_size): Likewise.
5387 (regcaches_test): Update.
5388 (regcache_thread_ptid_changed): Update.
5389 * regcache.h (regcache_up): New type.
5390 * gdbsupport/ptid.h (hash_ptid): New struct.
5391
5392 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * observable.h (thread_ptid_changed): Add parameter
5395 `process_stratum_target *`.
5396 * infrun.c (infrun_thread_ptid_changed): Add parameter
5397 `process_stratum_target *` and use it.
5398 (selftests): New namespace.
5399 (infrun_thread_ptid_changed): New function.
5400 (_initialize_infrun): Register selftest.
5401 * regcache.c (regcache_thread_ptid_changed): Add parameter
5402 `process_stratum_target *` and use it.
5403 (regcache_thread_ptid_changed): New function.
5404 (_initialize_regcache): Register selftest.
5405 * thread.c (thread_change_ptid): Pass target to
5406 thread_ptid_changed observable.
5407
5408 2020-08-06 Caroline Tice <cmtice@google.com>
5409
5410 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5411 (struct dwp_sections): Update field comments. Add loclists and
5412 rnglists fields.
5413 (struct virtual_v2_dwo_sections): Rename struct to
5414 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5415 size & offset fields for loclists and rnglists.
5416 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5417 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5418 skipping dummy type units.
5419 (create_dwp_hash_table): Update the large comment above the function to
5420 discuss Version 5 DWP files as well, with references. Update all the
5421 version checks in the function to check for version 5 as well. Add new
5422 section at the end to create dwp hash table for version 5.
5423 (create_dwp_v2_section): Rename function to
5424 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5425 Add V5 to error message text.
5426 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5427 into calls to create_dwp_v2_or_v5_section.
5428 (create_dwo_unit_in_dwp_v5): New function.
5429 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5430 check for version2; add else clause to handle version 5.
5431 (open_and_init_dwo_file): Add code to check dwarf version & only call
5432 create_debug_types_hash_table (with sections.types) if version is not 5;
5433 else call create_debug_type_hash_table, with sections.info.
5434 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5435 version 5.
5436 (dwarf2_locate_v5_dwp_sections): New function.
5437 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5438 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5439
5440 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * regcache.h (class regcache): Remove friend
5443 registers_changed_ptid.
5444 <regcache_thread_ptid_changed>: Remove.
5445 <regcaches>: Remove.
5446 * regcache.c (regcache::regcaches): Rename to...
5447 (regcaches): ... this. Make static.
5448 (get_thread_arch_aspace_regcache): Update.
5449 (regcache::regcache_thread_ptid_changed): Rename to...
5450 (regcache_thread_ptid_changed): ... this. Update.
5451 (class regcache_access): Remove.
5452 (regcaches_test): Update.
5453 (_initialize_regcache): Update.
5454 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5455 <forward_list>.
5456
5457 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * regcache.h (class regcache) <current_regcache>: Rename to...
5460 <regcaches>: ... this. Move doc here.
5461 * regcache.c (regcache::current_regcache) Rename to...
5462 (regcache::regcaches): ... this. Move doc to header.
5463 (get_thread_arch_aspace_regcache): Update.
5464 (regcache::regcache_thread_ptid_changed): Update.
5465 (registers_changed_ptid): Update.
5466 (class regcache_access) <current_regcache_size>: Rename to...
5467 <regcaches_size>: ... this.
5468 (current_regcache_test): Rename to...
5469 (regcaches_test): ... this.
5470 (_initialize_regcache): Update.
5471
5472 2020-08-06 Victor Collod <vcollod@nvidia.com>
5473
5474 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5475
5476 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5477
5478 * corelow.c (core_target::build_file_mappings): Don't output
5479 null pathname in warning.
5480
5481 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5482
5483 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5484 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5485 gdb.dwarf2/dw2-single-line-discriminators.exp,
5486 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5487
5488 2020-08-05 Tom Tromey <tromey@adacore.com>
5489
5490 PR rust/26197:
5491 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5492 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5493 Fix off-by-one and type size errors in ordinary case.
5494
5495 2020-08-05 Tom de Vries <tdevries@suse.de>
5496
5497 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5498 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5499
5500 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * frame.h (frame_id_p): Return bool.
5503 (frame_id_artificial_p): Return bool.
5504 (frame_id_eq): Return bool.
5505 (has_stack_frames): Return bool.
5506 (get_selected_frame): Fix typo in comment.
5507 (get_frame_pc_if_available): Return bool.
5508 (get_frame_address_in_block_if_available): Return bool.
5509 (get_frame_func_if_available): Return bool.
5510 (read_frame_register_unsigned): Return bool.
5511 (get_frame_register_bytes): Return bool.
5512 (safe_frame_unwind_memory): Return bool.
5513 (deprecated_frame_register_read): Return bool.
5514 (frame_unwinder_is): Return bool.
5515 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5516 bool.
5517 <this_id::p>: Likewise.
5518 <prev_p>: Likewise.
5519 (frame_stash_add): Return bool.
5520 (get_frame_id): Use bool.
5521 (frame_id_build_special) Use bool.
5522 (frame_id_build_unavailable_stack): Use bool.
5523 (frame_id_build): Use bool.
5524 (frame_id_p): Return bool, use true/false instead of 1/0.
5525 (frame_id_artificial_p): Likewise.
5526 (frame_id_eq): Likewise.
5527 (frame_id_inner): Likewise.
5528 (get_frame_func_if_available): Likewise.
5529 (read_frame_register_unsigned): Likewise.
5530 (deprecated_frame_register_read): Likewise.
5531 (get_frame_register_bytes): Likewise.
5532 (has_stack_frames): Likewise.
5533 (inside_main_func): Likewise.
5534 (inside_entry_func): Likewise.
5535 (get_frame_pc_if_available): Likewise.
5536 (get_frame_address_in_block_if_available): Likewise.
5537 (frame_unwinder_is): Likewise.
5538 (safe_frame_unwind_memory): Likewise.
5539 (frame_unwind_arch): Likewise.
5540
5541 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5542
5543 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5544 type to cached_copy_status.
5545 (fprintf_frame): Adjust.
5546 (get_frame_func_if_available): Adjust.
5547 (frame_cleanup_after_sniffer): Adjust.
5548
5549 2020-08-04 Mark Wielaard <mark@klomp.org>
5550
5551 * MAINTAINERS (Write After Approval): Update email address.
5552
5553 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5556 dynamic_prop::const_val.
5557
5558 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5561 dynamic_prop::kind.
5562
5563 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5566
5567 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5568
5569 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5570
5571 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5572 Jose E. Marchesi <jose.marchesi@oracle.com>
5573
5574 * configure.tgt: Add entry for bpf-*-*.
5575 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5576 (ALLDEPFILES): Add bpf-tdep.c.
5577 * bpf-tdep.c: New file.
5578 * MAINTAINERS: Add bpf target and maintainer.
5579 * NEWS: Mention the support for the new target.
5580
5581 2020-08-04 Tom de Vries <tdevries@suse.de>
5582
5583 PR symtab/23270
5584 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5585 Error.
5586
5587 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5588
5589 * syscalls/freebsd.xml: Regenerate.
5590
5591 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5592
5593 * syscalls/update-freebsd.sh: Fix usage and year range.
5594
5595 2020-08-03 Tom de Vries <tdevries@suse.de>
5596
5597 PR symtab/26333
5598 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5599 DW_LNE_lo_user/DW_LNE_hi_user range.
5600
5601 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 PR ada/26318
5604 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5605 kind.
5606
5607 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5608
5609 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5610
5611 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5612
5613 * breakpoint.c (set_breakpoint_condition): Update the condition
5614 expressions after checking that the input condition string parses
5615 successfully and does not contain junk at the end.
5616
5617 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5618
5619 * breakpoint.c (set_breakpoint_condition): Update the
5620 condition string after parsing the new condition successfully.
5621
5622 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5623
5624 * proc-api.c (_STRUCTURED_PROC): Don't define.
5625 * proc-events.c: Likewise.
5626 * proc-flags.c: Likewise.
5627 * proc-why.c: Likewise.
5628 * procfs.c: Likewise.
5629
5630 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5631 * configure, config.in: Regenerate.
5632
5633 2020-07-30 Tom de Vries <tdevries@suse.de>
5634
5635 PR build/26320
5636 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5637 m_red/m_green/m_blue in a union.
5638
5639 2020-07-29 Tom de Vries <tdevries@suse.de>
5640
5641 PR tdep/26280
5642 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5643
5644 2020-07-28 Tom Tromey <tromey@adacore.com>
5645
5646 PR symtab/26270:
5647 * symtab.h (find_pc_partial_function_sym): Declare.
5648 * cli/cli-cmds.c (disassemble_command): Use
5649 find_pc_partial_function_sym. Check asm_demangle.
5650 * blockframe.c (cache_pc_function_sym): New global.
5651 (cache_pc_function_name): Remove.
5652 (clear_pc_function_cache): Update.
5653 (find_pc_partial_function_sym): New function, from
5654 find_pc_partial_function.
5655 (find_pc_partial_function): Rewrite using
5656 find_pc_partial_function_sym.
5657
5658 2020-07-28 Tom Tromey <tromey@adacore.com>
5659
5660 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5661 help. Add usage.
5662
5663 2020-07-28 Tom Tromey <tromey@adacore.com>
5664
5665 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5666 <DW_OP_GNU_variable_value>: Cast to address type.
5667
5668 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5669
5670 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5671 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5672 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5673 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5674 (nbsd_get_siginfo_type): New.
5675 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5676 (_initialize_nbsd_tdep): New.
5677
5678 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5679
5680 PR binutils/26301
5681 * configure: Regenerated.
5682
5683 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5684
5685 PR binutils/26301
5686 * configure: Regenerated.
5687
5688 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5689
5690 * python/py-frame.c: Remove 'user-regs.h' include.
5691 (frapy_read_register): Rewrite to make use of
5692 gdbpy_parse_register_id.
5693 * python/py-registers.c (gdbpy_parse_register_id): New function,
5694 moved here from python/py-unwind.c. Updated the return type, and
5695 also accepts register descriptor objects.
5696 * python/py-unwind.c: Remove 'user-regs.h' include.
5697 (pyuw_parse_register_id): Moved to python/py-registers.c.
5698 (unwind_infopy_add_saved_register): Update to use
5699 gdbpy_parse_register_id.
5700 (pending_framepy_read_register): Likewise.
5701 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5702
5703 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * python/py-registers.c: Add 'user-regs.h' include.
5706 (register_descriptor_iter_find): New function.
5707 (register_descriptor_iterator_object_methods): New static global
5708 methods array.
5709 (register_descriptor_iterator_object_type): Add pointer to methods
5710 array.
5711
5712 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5713
5714 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5715 for all architectures on FreeBSD 11.3 and later.
5716
5717 2020-07-27 Tom Tromey <tromey@adacore.com>
5718
5719 * gcore.h (load_corefile): Don't declare.
5720
5721 2020-07-27 Tom de Vries <tdevries@suse.de>
5722
5723 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5724 * config.in: Regenerate.
5725 * configure: Regenerate.
5726
5727 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5728
5729 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5730 ws2tcpip.h. When checking whether socklen_t type is defined, use
5731 ws2tcpip.h if it is available and sys/socket.h isn't.
5732 * configure: Regenerate.
5733 * config.in: Regenerate.
5734
5735 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5736
5737 PR fortran/23051
5738 PR fortran/26139
5739 * valops.c (value_ind): Pass address to
5740 readjust_indirect_value_type.
5741 * value.c (readjust_indirect_value_type): Make parameter
5742 non-const, and add extra address parameter. Resolve original type
5743 before using it.
5744 * value.h (readjust_indirect_value_type): Update function
5745 signature and comment.
5746
5747 2020-07-25 Tom de Vries <tdevries@suse.de>
5748
5749 PR symtab/26243
5750 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5751 entries.
5752
5753 2020-07-24 Aaron Merey <amerey@redhat.com>
5754
5755 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5756 * configure: Rebuild.
5757
5758 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5759
5760 PR corefiles/26294
5761 * corelow.c (_initialize_corelow): Add period to help text
5762 for "maintenance print core-file-backed-mappings".
5763
5764 2020-07-23 Pedro Alves <pedro@palves.net>
5765
5766 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5767 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5768 meanwhile.
5769 * frame.c (frame_cache_generation, get_frame_cache_generation):
5770 New.
5771 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5772 (get_prev_frame_if_no_cycle): On exception, don't touch
5773 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5774 * frame.h (get_frame_cache_generation): Declare.
5775
5776 2020-07-23 Tom de Vries <tdevries@suse.de>
5777
5778 PR tui/26282
5779 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5780 New default constructor.
5781
5782 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5785 exclude non-statement entries.
5786
5787 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5788
5789 * NEWS (New commands): Mention new command
5790 "maintenance print core-file-backed-mappings".
5791
5792 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5793
5794 * corelow.c (gdbcmd.h): Include.
5795 (core_target::info_proc_mappings): New method.
5796 (get_current_core_target): New function.
5797 (maintenance_print_core_file_backed_mappings): New function.
5798 (_initialize_corelow): Add core-file-backed-mappings to
5799 "maint print" commands.
5800
5801 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5802
5803 * linux-tdep.c (dump_note_entry_p): New function.
5804 (linux_dump_mapping_p_ftype): New typedef.
5805 (linux_find_memory_regions_full): Add new parameter,
5806 should_dump_mapping_p.
5807 (linux_find_memory_regions): Adjust call to
5808 linux_find_memory_regions_full.
5809 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5810 call to linux_find_memory_regions_full.
5811
5812 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5813
5814 * corelow.c (solist.h, unordered_map): Include.
5815 (class core_target): Add field m_core_file_mappings and
5816 method build_file_mappings.
5817 (core_target::core_target): Call build_file_mappings.
5818 (core_target::~core_target): Free memory associated with
5819 m_core_file_mappings.
5820 (core_target::build_file_mappings): New method.
5821 (core_target::xfer_partial): Use m_core_file_mappings
5822 for memory transfers.
5823 * linux-tdep.c (linux_read_core_file_mappings): New
5824 function.
5825 (linux_core_info_proc_mappings): Rewrite to use
5826 linux_read_core_file_mappings.
5827 (linux_init_abi): Register linux_read_core_file_mappings.
5828
5829 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5830
5831 * arch-utils.c (default_read_core_file_mappings): New function.
5832 * arch-utils.c (default_read_core_file_mappings): Declare.
5833 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5834 * gdbarch.h, gdbarch.c: Regenerate.
5835
5836 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5837
5838 PR corefiles/25631
5839 * corelow.c (core_target:xfer_partial): Revise
5840 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5841 case after first checking the stratum beneath the core
5842 target.
5843 (has_all_memory): Return true.
5844 * target.c (raw_memory_xfer_partial): Revise comment
5845 regarding use of has_all_memory.
5846
5847 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5848
5849 * exec.h (section_table_xfer_memory): Revise declaration,
5850 replacing section name parameter with an optional callback
5851 predicate.
5852 * exec.c (section_table_xfer_memory): Likewise.
5853 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5854 of section_table_xfer_memory.
5855
5856 2020-07-22 Tom Tromey <tromey@adacore.com>
5857
5858 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5859 lookup_symbol_search_name.
5860
5861 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5862
5863 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5864 redundant local variable.
5865 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5866 reference, not pointer, update code accordingly.
5867
5868 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5869 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5870
5871 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5872 * jit.c (jit_breakpoint_re_set_internal): Use the
5873 `skip_jit_symbol_lookup` field.
5874
5875 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5876 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5877
5878 * jit.c (jit_read_descriptor): Define the descriptor address once,
5879 use twice.
5880 (jit_breakpoint_deleted): Move the declaration of the loop variable
5881 `iter` into the loop header.
5882 (jit_breakpoint_re_set_internal): Move the declaration of the local
5883 variable `objf_data` to the first point of definition.
5884 (jit_event_handler): Move the declaration of local variables
5885 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5886 Rename `objf` to `jited`.
5887
5888 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5891 Remove.
5892 * jit.c (get_jiter_objfile_data): Update.
5893
5894 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5895 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * jit.c (struct jit_program_space_data): Remove.
5898 (jit_program_space_key): Remove.
5899 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5900 stuff.
5901 (get_jit_program_space_data): Remove.
5902 (jit_breakpoint_deleted): Iterate on all of the program space's
5903 objfiles.
5904 (jit_inferior_init): Likewise.
5905 (jit_breakpoint_re_set_internal): Likewise. Also change return
5906 type to void.
5907 (jit_breakpoint_re_set): Pass current_program_space to
5908 jit_breakpoint_re_set_internal.
5909
5910 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * jit.h (struct jiter_objfile_data) <cached_code_address,
5913 jit_breakpoint>: Move to here from ...
5914 * jit.c (jit_program_space_data): ... here.
5915 (jiter_objfile_data::~jiter_objfile_data): Update.
5916 (jit_breakpoint_deleted): Update.
5917 (jit_breakpoint_re_set_internal): Update.
5918
5919 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5922 checks.
5923 (jit_read_descriptor): Remove NULL check.
5924 (jit_event_handler): Add an assertion.
5925
5926 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * jit.h (struct jit_objfile_data): Split into...
5929 (struct jiter_objfile_data): ... this ...
5930 (struct jited_objfile_data): ... and this.
5931 * objfiles.h (struct objfile) <jit_data>: Remove.
5932 <jiter_data, jited_data>: New fields.
5933 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5934 (jiter_objfile_data::~jiter_objfile_data): ... this.
5935 (get_jit_objfile_data): Rename to ...
5936 (get_jiter_objfile_data): ... this.
5937 (add_objfile_entry): Update.
5938 (jit_read_descriptor): Use get_jiter_objfile_data.
5939 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5940 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5941 (jit_inferior_exit_hook): Use objfile's jited_data field.
5942
5943 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * jit.h: Forward-declare `struct minimal_symbol`.
5946 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5947 constructor, destructor, and an objfile* field.
5948 * jit.c (jit_objfile_data): Remove.
5949 (struct jit_objfile_data): Migrate from here to jit.h.
5950 (jit_objfile_data::~jit_objfile_data): New destructor
5951 implementation with code moved from free_objfile_data.
5952 (free_objfile_data): Delete.
5953 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5954 (jit_find_objf_with_entry_addr): Ditto.
5955 (jit_inferior_exit_hook): Ditto.
5956 (_initialize_jit): Remove the call to
5957 register_objfile_data_with_cleanup.
5958 * objfiles.h (struct objfile) <jit_data>: New field.
5959
5960 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5961
5962 * jit.h: Forward-declare `struct objfile`.
5963 (jit_event_handler): Add a second parameter, the JITer objfile.
5964 * jit.c (jit_read_descriptor): Change the signature to take the
5965 JITer objfile as an argument instead of the jit_program_space_data.
5966 (jit_inferior_init): Update the call to jit_read_descriptor.
5967 (jit_event_handler): Use the new JITer objfile argument when calling
5968 jit_read_descriptor.
5969 * breakpoint.c (handle_jit_event): Update the call to
5970 jit_event_handler to pass the JITer objfile.
5971
5972 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5973
5974 * gdbarch.c: Regenerate.
5975 * gdbarch.h: Regenerate.
5976 * gdbarch.sh (handle_segmentation_fault): Remove method.
5977 * infrun.c (handle_segmentation_fault): Remove.
5978 (print_signal_received_reason): Remove call to
5979 handle_segmentation_fault.
5980
5981 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5982
5983 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5984 Rename to sparc64_linux_report_signal_info and add siggnal
5985 argument.
5986 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5987 instead of sparc64_linux_handle_segmentation_fault.
5988
5989 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5990
5991 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5992 i386_linux_report_signal_info instead of
5993 i386_linux_handle_segmentation_fault.
5994 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5995 to i386_linux_report_signal_info and add siggnal argument.
5996 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5997 of i386_linux_handle_segmentation_fault.
5998 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5999 to i386_linux_report_signal_info and add siggnal argument.
6000
6001 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6002
6003 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6004 hook if present.
6005
6006 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6007
6008 * gdbarch.c: Regenerate.
6009 * gdbarch.h: Regenerate.
6010 * gdbarch.sh (report_signal_info): New method.
6011 * infrun.c (print_signal_received_reason): Invoke gdbarch
6012 report_signal_info hook if present.
6013
6014 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 * python/py-registers.c : Add 'unordered_map' include.
6017 (gdbpy_new_reggroup): Renamed to...
6018 (gdbpy_get_reggroup): ...this. Update to only create register
6019 group descriptors when needed.
6020 (gdbpy_reggroup_iter_next): Update.
6021
6022 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * python/py-registers.c (gdbpy_register_object_data): New static
6025 global.
6026 (gdbpy_register_object_data_init): New function.
6027 (gdbpy_new_register_descriptor): Renamed to...
6028 (gdbpy_get_register_descriptor): ...this, and update to reuse
6029 existing register descriptors where possible.
6030 (gdbpy_register_descriptor_iter_next): Update.
6031 (gdbpy_initialize_registers): Register new gdbarch data.
6032
6033 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6034
6035 * linux-nat.c (stopped_pids): Make static.
6036
6037 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 PR ada/26235
6040 * gdbtypes.c (ada_discrete_type_low_bound,
6041 ada_discrete_type_high_bound): Handle undefined bounds.
6042
6043 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6044
6045 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6046 declaration.
6047 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6048 function.
6049
6050 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6051
6052 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6053 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6054 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6055 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6056 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6057 method.
6058
6059 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6060
6061 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6062 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6063 which are deprecated in Guile 3.0.
6064 * configure.ac (try_guile_versions): Add "guile-3.0".
6065 * configure (try_guile_versions): Regenerate.
6066 * NEWS: Update entry.
6067
6068 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6069 Doug Evans <dje@google.com>
6070
6071 PR gdb/21104
6072 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6073 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6074 USING_GUILE_BEFORE_2_2.
6075 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6076 Change type to 'scm_t_port_type *'.
6077 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6078 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6079 parameter and honor it. Update callers.
6080 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6081 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6082 functions.
6083 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6084 USING_GUILE_BEFORE_2_2.
6085 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6086 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6087 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6088 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6089 and 'SCM_PORT_TYPE'.
6090 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6091 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6092 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6093 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6094 [!USING_GUILE_BEFORE_2_2]: New functions.
6095 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6096 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6097 'gdbscm_memory_port_read'.
6098 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6099 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6100 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6101 function.
6102 (ioscm_init_memory_port): Remove.
6103 (ioscm_init_memory_port_stream): New function
6104 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6105 function.
6106 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6107 Return scm_from_uint (0).
6108 (gdbscm_set_memory_port_read_buffer_size_x)
6109 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6110 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6111 Return scm_from_uint (0).
6112 (gdbscm_set_memory_port_write_buffer_size_x)
6113 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6114 * configure.ac (try_guile_versions): Add "guile-2.2".
6115 * configure: Regenerate.
6116 * NEWS: Add entry.
6117
6118 2020-07-18 Tom Tromey <tom@tromey.com>
6119
6120 * linux-nat.c (linux_multi_process): Remove.
6121 (linux_nat_target::supports_multi_process): Return true.
6122
6123 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6126 (riscv_lookup_target_description): Return pointer out of
6127 unique_ptr.
6128 * target-descriptions.c (allocate_target_description): Add
6129 comment.
6130 (target_desc_deleter::operator()): Likewise.
6131 * target-descriptions.h (struct target_desc_deleter): Moved to
6132 gdbsupport/tdesc.h.
6133 (target_desc_up): Likewise.
6134
6135 2020-07-17 Tom Tromey <tromey@adacore.com>
6136
6137 * linux-nat.c (linux_nat_target::supports_non_stop)
6138 (linux_nat_target::always_non_stop_p): Use "true".
6139 (linux_nat_target::supports_disable_randomization): Use "true" and
6140 "false".
6141
6142 2020-07-16 Caroline Tice <cmtice@google.com>
6143
6144 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6145 (RNGLIST_HEADER_SIZE64): New constant definition.
6146 (struct dwop_section_names): Add rnglists_dwo.
6147 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6148 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6149 (struct dwo_sections): Add rnglists field.
6150 (read_attribut_reprocess): Add tag parameter.
6151 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6152 (cu_debug_rnglists_section): New function (decl & definition).
6153 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6154 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6155 die whose range is being checked; get rnglist section from
6156 cu_debug_rnglists_section, to get from either objfile or dwo file as
6157 appropriate. Add cases for DW_RLE_base_addressx,
6158 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6159 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6160 test inside if-condition and updating complaint message.
6161 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6162 dwarf2_rnglists_process.
6163 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6164 dwarf2_ranges_process.
6165 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6166 need_ranges_base and update comment appropriately. Also pass die tag
6167 to dwarf2_ranges_read.
6168 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6169 need_ranges_base and update comment appropriately. Also pass die tag
6170 to dwarf2_ranges_process.
6171 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6172 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6173 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6174 need_ranges_base and update comment appropriately. Also pass die tag
6175 to read_attribute_reprocess and dwarf2_ranges_read.
6176 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6177 and update function comment appropriately.
6178 (read_loclist_index): Call read_loclists_rnglists_header instead of
6179 read_loclist_header.
6180 (read_rnglist_index): New function.
6181 (read_attribute_reprocess): Add tag parameter. Add code for
6182 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6183 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6184
6185 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6188 being resolved.
6189
6190 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6191
6192 * arch-utils.c (show_architecture): Update formatting of messages.
6193
6194 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6195
6196 * gdbtypes.h (struct type) <bounds>: Handle array and string
6197 types.
6198 * ada-lang.c (assign_aggregate): Use type::bounds on
6199 array/string type.
6200 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6201 * c-varobj.c (c_number_of_children): Likewise.
6202 (c_describe_child): Likewise.
6203 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6204 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6205 (f_type_print_base): Likewise.
6206 * f-valprint.c (f77_array_offset_tbl): Likewise.
6207 (f77_get_upperbound): Likewise.
6208 (f77_print_array_1): Likewise.
6209 * guile/scm-type.c (gdbscm_type_range): Likewise.
6210 * m2-typeprint.c (m2_array): Likewise.
6211 (m2_is_long_set_of_type): Likewise.
6212 * m2-valprint.c (get_long_set_bounds): Likewise.
6213 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6214 * python/py-type.c (typy_range): Likewise.
6215 * rust-lang.c (rust_internal_print_type): Likewise.
6216 * type-stack.c (type_stack::follow_types): Likewise.
6217 * valarith.c (value_subscripted_rvalue): Likewise.
6218 * valops.c (value_cast): Likewise.
6219
6220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6221
6222 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6223 callers to use the equivalent accessor methods.
6224
6225 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6226
6227 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6228 (struct type) <bit_stride>: New method.
6229 (TYPE_BIT_STRIDE): Remove.
6230 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6231
6232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6235 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6236 callers to use the equivalent accessor methods instead.
6237
6238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6239
6240 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6241 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6242 callers to use the equivalent accessor methods instead.
6243
6244 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6247 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6248 to use dynamic_prop::kind.
6249
6250 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6253 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6254 to get the bound property's kind and check against
6255 PROP_UNDEFINED.
6256
6257 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6260 all callers to use type::range_bounds followed by
6261 dynamic_prop::{low,high}.
6262
6263 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6266 const_val, set_const_val, baton, set_locexpr, set_loclist,
6267 set_addr_offset, variant_parts, set_variant_parts,
6268 original_type, set_original_type>: New methods.
6269 <kind>: Rename to...
6270 <m_kind>: ... this. Update all users to use the new methods
6271 instead.
6272 <data>: Rename to...
6273 <m_data>: ... this. Update all users to use the new methods
6274 instead.
6275
6276 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * gdbtypes.c (get_discrete_bounds): Return failure if
6279 the range type's bounds are not both defined and constant
6280 values.
6281 (get_array_bounds): Update comment. Remove undefined bound check.
6282
6283 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6286 the type::bounds method directly.
6287
6288 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6291 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6292 are used to set the range type's bounds to use set_bounds.
6293
6294 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6295
6296 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6297
6298 2020-07-10 Pedro Alves <pedro@palves.net>
6299
6300 * gdbthread.h (inferior_ref): Define.
6301 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6302 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6303 * thread.c
6304 (scoped_restore_current_thread::restore):
6305 Adjust to gdb::ref_ptr.
6306 (scoped_restore_current_thread::~scoped_restore_current_thread):
6307 Remove manual decref handling.
6308 (scoped_restore_current_thread::scoped_restore_current_thread):
6309 Adjust to use
6310 inferior_ref::new_reference/thread_info_ref::new_reference.
6311 Incref the thread before calling get_frame_id instead of after.
6312 Let TARGET_CLOSE_ERROR propagate.
6313
6314 2020-07-10 Pedro Alves <pedro@palves.net>
6315
6316 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6317 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6318 NOT_AVAILABLE_ERROR.
6319 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6320 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6321
6322 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6323 Pedro Alves <pedro@palves.net>
6324
6325 PR gdb/26199
6326 * infrun.c (threads_are_resumed_pending_p): Delete.
6327 (do_target_wait): Remove threads_are_executing and
6328 threads_are_resumed_pending_p checks from the inferior_matches
6329 lambda. Update comments.
6330
6331 2020-07-10 Pedro Alves <pedro@palves.net>
6332
6333 PR gdb/26199
6334 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6335 executing threads.
6336
6337 2020-07-10 Pedro Alves <pedro@palves.net>
6338
6339 PR gdb/26199
6340 * infrun.c (handle_no_resumed): Handle multiple targets.
6341
6342 2020-07-10 Pedro Alves <pedro@palves.net>
6343
6344 PR gdb/26199
6345 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6346 target_is_async_p.
6347
6348 2020-07-10 Pedro Alves <pedro@palves.net>
6349
6350 PR gdb/26199
6351 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6352 threads, not all threads.
6353
6354 2020-07-10 Pedro Alves <pedro@palves.net>
6355
6356 PR gdb/26199
6357 * remote.c (remote_target::open_1): Pass remote target pointer as
6358 data to create_async_event_handler.
6359 (remote_async_inferior_event_handler): Mark async event handler
6360 before returning if the remote target still has either pending
6361 events or unacknowledged notifications.
6362
6363 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6364
6365 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6366 declaration.
6367 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6368 function.
6369
6370 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6371
6372 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6373 inferior_ptid.
6374
6375 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6376
6377 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6378 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6379 AT_FREEBSD_PS_STRINGS.
6380
6381 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6382
6383 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6384 of debugfile path on Windows.
6385
6386 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6387
6388 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6389 argument to 'data'.
6390
6391 2020-07-08 Tom Tromey <tromey@adacore.com>
6392
6393 * ada-lang.c (ada_exception_message_1): Use read_memory.
6394
6395 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6396
6397 PR python/22748
6398 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6399 special handling for inline frames.
6400 * findvar.c (value_of_register_lazy): Skip inline frames when
6401 creating lazy register values.
6402 * frame.c (frame_id_computed_p): Delete definition.
6403 * frame.h (frame_id_computed_p): Delete declaration.
6404
6405 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6406
6407 * NEWS: Mention additions to Python API.
6408 * python/py-arch.c (archpy_register_groups): New function.
6409 (arch_object_methods): Add 'register_groups' method.
6410 * python/py-registers.c (reggroup_iterator_object): New struct.
6411 (reggroup_object): New struct.
6412 (gdbpy_new_reggroup): New function.
6413 (gdbpy_reggroup_to_string): New function.
6414 (gdbpy_reggroup_name): New function.
6415 (gdbpy_reggroup_iter): New function.
6416 (gdbpy_reggroup_iter_next): New function.
6417 (gdbpy_new_reggroup_iterator): New function
6418 (gdbpy_initialize_registers): Register new types.
6419 (reggroup_iterator_object_type): Define new Python type.
6420 (gdbpy_reggroup_getset): New static global.
6421 (reggroup_object_type): Define new Python type.
6422 * python/python-internal.h
6423
6424 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6427 * python/py-arch.c (archpy_registers): New function.
6428 (arch_object_methods): Add 'registers' method.
6429 * python/py-registers.c: New file.
6430 * python/python-internal.h
6431 (gdbpy_new_register_descriptor_iterator): Declare.
6432 (gdbpy_initialize_registers): Declare.
6433 * python/python.c (do_start_initialization): Call
6434 gdbpy_initialize_registers.
6435 * NEWS: Mention additions to the Python API.
6436
6437 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6438
6439 * NEWS: Mention new Python API method.
6440 * python/py-unwind.c (pending_framepy_architecture): New function.
6441 (pending_frame_object_methods): Add architecture method.
6442
6443 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6444
6445 * gdbarch.c: Regenerate.
6446 * gdbarch.h: Regenerate.
6447 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6448 (gdbarch_data): Use internal_error for the case where
6449 deprecated_set_gdbarch_data was originally needed.
6450 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6451 and use passed in obstack.
6452 (libunwind_frame_set_descr): Should no longer get back NULL from
6453 gdbarch_data.
6454 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6455 type.
6456 * user-regs.c (user_regs_init): Update parameters, and use passed
6457 in obstack.
6458 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6459 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6460
6461 2020-07-06 Tom de Vries <tdevries@suse.de>
6462
6463 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6464 End-Of-Sequence in lte_is_less_than.
6465 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6466 "gdb: Don't reorder line table entries too much when sorting".
6467
6468 2020-07-06 Tom de Vries <tdevries@suse.de>
6469
6470 PR tui/26205
6471 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6472
6473 2020-07-05 Tom de Vries <tdevries@suse.de>
6474
6475 PR build/26187
6476 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6477 std::uncaught_exceptions instead of deprecated
6478 std::uncaught_exception.
6479
6480 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6481
6482 * macroexp.h (macro_stringify): Return
6483 gdb::unique_xmalloc_ptr<char>.
6484 * macroexp.c (macro_stringify): Likewise.
6485 * macrotab.c (fixup_definition): Update.
6486
6487 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6490 (lex_one_token): Update.
6491 * macroexp.c (struct macro_buffer) <release>: Return
6492 gdb::unique_xmalloc_ptr<char>.
6493 (macro_stringify): Update.
6494 (macro_expand): Update.
6495 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6496 * macroexp.h (macro_expand_next): Likewise.
6497
6498 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6499
6500 * macroexp.h (macro_lookup_ftype): Remove.
6501 (macro_expand, macro_expand_once, macro_expand_next): Remove
6502 lookup function parameters, add scope parameter.
6503 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6504 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6505 * macroscope.h (standard_macro_lookup): Change parameter type
6506 to macro_scope.
6507 * macroscope.c (standard_macro_lookup): Likewise.
6508 * c-exp.y (lex_one_token): Update.
6509 * macrocmd.c (macro_expand_command): Likewise.
6510 (macro_expand_once_command): Likewise.
6511
6512 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * inf-loop.c (inferior_event_handler): Remove client_data param.
6515 * inf-loop.h (inferior_event_handler): Likewise.
6516 * infcmd.c (step_1): Adjust.
6517 * infrun.c (proceed): Adjust.
6518 (fetch_inferior_event): Remove client_data param.
6519 (infrun_async_inferior_event_handler): Adjust.
6520 * infrun.h (fetch_inferior_event): Remove `void *` param.
6521 * linux-nat.c (handle_target_event): Adjust.
6522 * record-btrace.c (record_btrace_handle_async_inferior_event):
6523 Adjust.
6524 * record-full.c (record_full_async_inferior_event_handler):
6525 Adjust.
6526 * remote.c (remote_async_inferior_event_handler): Adjust.
6527
6528 2020-07-01 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6531 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6532
6533 2020-07-01 Tom Tromey <tom@tromey.com>
6534
6535 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6536 tui_gen_win_info.
6537 (tui_win_info::make_window): Merge with
6538 tui_gen_win_info::make_window.
6539 (tui_win_info::make_visible): Move from tui_gen_win_info.
6540 * tui/tui-win.c (tui_win_info::max_width): Move from
6541 tui_gen_win_info.
6542 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6543 type.
6544 <window_factory>: Likewise.
6545 * tui/tui-layout.c (tui_win_info::resize): Move from
6546 tui_gen_win_info.
6547 (make_standard_window): Change return type.
6548 (get_locator_window, tui_get_window_by_name): Likewise.
6549 (tui_layout_window::apply): Remove a cast.
6550 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6551 (struct tui_win_info): Merge with tui_gen_win_info.
6552 (struct tui_gen_win_info): Remove.
6553
6554 2020-07-01 Tom Tromey <tom@tromey.com>
6555
6556 * tui/tui-stack.h (struct tui_locator_window): Derive from
6557 tui_win_info.
6558 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6559 <can_box>: New method.
6560
6561 2020-07-01 Tom Tromey <tom@tromey.com>
6562
6563 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6564
6565 2020-07-01 Tom Tromey <tom@tromey.com>
6566
6567 * tui/tui-regs.c (tui_data_window::display_registers_from)
6568 (tui_data_window::display_registers_from)
6569 (tui_data_window::first_data_item_displayed)
6570 (tui_data_window::delete_data_content_windows): Update.
6571 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6572 Remove.
6573 (tui_data_window::check_register_values): Update.
6574 (tui_data_item_window::rerender): Add parameters. Update.
6575 (tui_data_item_window::refresh_window): Remove.
6576 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6577 virtual.
6578 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6579 tui_gen_win_info.
6580 <refresh_window, max_height, min_height>: Remove.
6581 <rerender>: Add parameters.
6582 <x, y, visible>: New members.
6583 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6584 <m_item_width>: New member.
6585
6586 2020-07-01 Tom Tromey <tom@tromey.com>
6587
6588 * tui/tui-regs.c (tui_data_window::show_register_group)
6589 (tui_data_window::check_register_values): Update.
6590 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6591 from item_no.
6592
6593 2020-07-01 Tom Tromey <tom@tromey.com>
6594
6595 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6596 useless "if".
6597
6598 2020-07-01 Tom Tromey <tom@tromey.com>
6599
6600 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6601 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6602
6603 2020-07-01 Tom Tromey <tom@tromey.com>
6604
6605 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6606 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6607 (struct tui_line_or_address): Move from tui-data.h.
6608 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6609 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6610 (tui_cmd_window, tui_source_window_base, tui_source_window)
6611 (tui_disasm_window): Don't declare.
6612 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6613 to tui-winsource.h.
6614 (SINGLE_KEY): Move to tui-stack.c.
6615
6616 2020-07-01 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6619 std::string.
6620 * tui/tui-regs.c (class tab_expansion_file): New.
6621 (tab_expansion_file::write): New method.
6622 (tui_register_format): Change return type. Use
6623 tab_expansion_file.
6624 (tui_get_register, tui_data_window::display_registers_from)
6625 (tui_data_item_window::rerender): Update.
6626 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6627 * tui/tui-io.c (tui_expand_tabs): Remove.
6628
6629 2020-07-01 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6632
6633 2020-07-01 Fangrui Song <maskray@google.com>
6634
6635 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6636
6637 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6638
6639 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6640 forms for DW_AT_associated and DW_AT_allocated attributes,
6641 which is already checked in function attr_to_dynamic_prop.
6642
6643 2020-06-30 Tom Tromey <tromey@adacore.com>
6644
6645 * dwarf2/read.c (quirk_rust_enum): Correctly call
6646 alloc_rust_variant for default-less enum.
6647
6648 2020-06-30 Tom Tromey <tromey@adacore.com>
6649
6650 PR build/26183:
6651 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6652 gdb::to_string.
6653
6654 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6657 * gdbarch.h: Re-generate.
6658
6659 2020-06-28 Tom Tromey <tom@tromey.com>
6660
6661 * command.h (cmd_types): Remove.
6662 (cmd_type): Don't declare.
6663 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6664 typedef.
6665 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6666 * cli/cli-decode.c (cmd_type): Remove.
6667
6668 2020-06-27 Pedro Alves <palves@redhat.com>
6669
6670 * fork-child.c (prefork_hook): Adjust.
6671 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6672 Delete.
6673 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6674 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6675 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6676 Remove declarations.
6677 (struct inferior) <set_tty, tty>: New methods.
6678 (struct inferior) <terminal>: Rename to ...
6679 (struct inferior) <m_terminal>: ... this and make private.
6680 * main.c (captured_main_1): Adjust.
6681 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6682 (mi_cmd_inferior_tty_show): Adjust.
6683 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6684 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6685
6686 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6687
6688 * configure.ac: Add --enable-libctf: handle --disable-static
6689 properly.
6690 * acinclude.m4: sinclude ../config/enable.m4.
6691 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6692 (LIBCTF): Substitute in.
6693 (CTF_DEPS): New, likewise.
6694 (CLIBS): libctf needs symbols from libbfd: move earlier.
6695 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6696 flags.
6697 * ctfread.c: Surround in ENABLE_LIBCTF.
6698 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6699 * configure: Regenerate.
6700 * config.in: Likewise.
6701
6702 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6703
6704 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6705
6706 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6707
6708 * inferior.h (struct inferior) <terminal>: Change type to
6709 gdb::unique_xmalloc_ptr<char>.
6710 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6711 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6712 field, adjust to unique pointer.
6713 (get_inferior_io_terminal): Adjust to unique pointer.
6714
6715 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6716
6717 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6718 registers, not just the known core set of registers.
6719
6720 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6723 fflags, frm, and fcsr registers.
6724 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6725 restore groups.
6726 (riscv_tdesc_unknown_reg): New function.
6727 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6728 tdesc_use_registers.
6729 * riscv-tdep.h (struct gdbarch_tdep): Add
6730 unknown_csrs_first_regnum, unknown_csrs_count,
6731 duplicate_fflags_regnum, duplicate_frm_regnum, and
6732 duplicate_fcsr_regnum fields.
6733
6734 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6737 callback, use the callback (when not null) to help number unknown
6738 registers.
6739 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6740 (tdesc_use_registers): Add extra parameter to declaration.
6741
6742 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6743
6744 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6745 in the file.
6746 (class riscv_pending_register_alias): Likewise.
6747 (riscv_register_feature::register_info): Change 'required_p' field
6748 to 'required', and change its type. Add 'check' member function.
6749 (riscv_register_feature::register_info::check): Define new member
6750 function.
6751 (riscv_xreg_feature): Change initialisation of 'required' field.
6752 (riscv_freg_feature): Likewise.
6753 (riscv_virtual_feature): Likewise.
6754 (riscv_csr_feature): Likewise.
6755 (riscv_check_tdesc_feature): Take extra parameter, the csr
6756 tdesc_feature, rewrite the function to use the new
6757 riscv_register_feature::register_info::check function.
6758 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6759
6760 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6761
6762 * features/Makefile: Remove all references to the deleted files
6763 below.
6764 * features/riscv/32bit-csr.c: Deleted.
6765 * features/riscv/32bit-csr.xml: Deleted.
6766 * features/riscv/64bit-csr.c: Deleted.
6767 * features/riscv/64bit-csr.xml: Deleted.
6768 * features/riscv/rebuild-csr-xml.sh: Deleted.
6769
6770 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6771
6772 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6773 whitespace error for declaration of names member variable.
6774 (struct riscv_register_feature): Add new prefer_first_name member
6775 variable, and fix whitespace error in declaration of registers.
6776 (riscv_xreg_feature): Initialize prefer_first_name field.
6777 (riscv_freg_feature): Likewise.
6778 (riscv_virtual_feature): Likewise.
6779 (riscv_csr_feature): Likewise.
6780 (riscv_register_name): Expand on comments. Remove register name
6781 modifications for CSR and virtual registers.
6782
6783 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6784
6785 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6786 errors.
6787
6788 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6791 riscv-opc.h.
6792 (class riscv_pending_register_alias): New class.
6793 (riscv_check_tdesc_feature): Take vector of pending aliases and
6794 populate it as appropriate.
6795 (riscv_setup_register_aliases): Delete.
6796 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6797 to riscv_check_tdesc_feature in all cases. Use the vector to
6798 create the register aliases.
6799
6800 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6801
6802 * sol2-tdep.c (sol2_static_transform_name): Remove.
6803 (sol2_init_abi): Don't register it.
6804 * gdbarch.sh (static_transform_name): Remove.
6805 * gdbarch.c, gdbarch.h: Regenerate.
6806
6807 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6808 gdbarch_static_transform_name.
6809 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6810 * stabsread.c (define_symbol) <'X'>: Remove.
6811 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6812 handling.
6813 <'V'>: Likewise.
6814 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6815 <'S'>: Remove call to gdbarch_static_transform_name.
6816
6817 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6818
6819 * procfs.c (procfs_pre_trace): New function.
6820 (procfs_target::create_inferior): Pass it to fork_inferior.
6821
6822 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6823
6824 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6825 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6826 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6827 sol2-tdep.o, sparc-sol2-tdep.o.
6828 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6829 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6830 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6831 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6832
6833 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6834
6835 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6836 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6837 Call sol2_init_abi.
6838 Remove calls to set_gdbarch_skip_solib_resolver,
6839 set_gdbarch_core_pid_to_str.
6840 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6841 (i386_sol2_static_transform_name): Remove.
6842 (i386_sol2_init_abi): Call sol2_init_abi.
6843 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6844 set_gdbarch_static_transform_name,
6845 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6846 Use sol2_sigtramp_p.
6847 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6848 (sol2_sigtramp_p): New function.
6849 (sol2_static_transform_name): New function.
6850 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6851 (sol2_init_abi): New function.
6852 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6853 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6854 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6855 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6856 (sparc_sol2_static_transform_name): Remove.
6857 (sparc32_sol2_init_abi): Call sol2_init_abi.
6858 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6859 set_gdbarch_static_transform_name,
6860 set_gdbarch_skip_solib_resolver,
6861 set_gdbarch_core_pid_to_str.
6862 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6863 (sparc_sol2_static_transform_name): Remove
6864 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6865 call sol2_sigtramp_p.
6866 (sparc64_sol2_init_abi): Call sol2_init_abi.
6867 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6868 set_gdbarch_static_transform_name,
6869 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6870
6871 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6872
6873 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6874 * exec.c (validate_exec_file): If from_tty, set both
6875 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6876 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6877 and from_tty, unconditionally ask a confirmation.
6878
6879 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6880
6881 * target-descriptions.c (tdesc_architecture_name): Protect against
6882 NULL pointer dereference.
6883 (maint_print_xml_tdesc_cmd): New function.
6884 (_initialize_target_descriptions): Register new 'maint print
6885 xml-tdesc' command and give it the filename completer.
6886 * NEWS: Mention new 'maint print xml-tdesc' command.
6887
6888 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * target-descriptions.c (class tdesc_compatible_info): New class.
6891 (struct target_desc): Change type of compatible vector.
6892 (tdesc_compatible_p): Update for change in type of
6893 target_desc::compatible.
6894 (tdesc_compatible_info_list): New function.
6895 (tdesc_compatible_info_arch_name): New function.
6896 (tdesc_add_compatible): Update for change in type of
6897 target_desc::compatible.
6898 (print_c_tdesc::visit_pre): Likewise.
6899
6900 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6903 whitespace to underscore.
6904 (maint_print_c_tdesc_cmd): Use fake filename for target
6905 descriptions that came from the target.
6906 (_initialize_target_descriptions): Add filename command completion
6907 for 'maint print c-tdesc'.
6908
6909 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6912 lines.
6913
6914 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6917 lines.
6918 (dwarf2_find_location_expression): Likewise.
6919 (call_site_parameter_matches): Likewise.
6920 (dwarf2_compile_expr_to_ax): Likewise.
6921 (disassemble_dwarf_expression): Likewise.
6922 (loclist_describe_location): Likewise.
6923
6924 2020-06-23 Pedro Alves <palves@redhat.com>
6925
6926 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6927 progspace-and-thread.h. Include scoped-mock-context.h instead.
6928 (register_to_value_test): Use scoped_mock_context.
6929 * regcache.c: Include "scoped-mock-context.h".
6930 (cooked_read_test): Don't error out if a target is already pushed.
6931 Use scoped_mock_context. Adjust.
6932 * scoped-mock-context.h: New file.
6933
6934 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6937 initializer.
6938 (ada_language::is_string_type_p): New member function.
6939 * c-lang.c (c_language_data): Delete la_is_string_type_p
6940 initializer.
6941 (cplus_language_data): Likewise.
6942 (asm_language_data): Likewise.
6943 (minimal_language_data): Likewise.
6944 * d-lang.c (d_language_data): Likewise.
6945 * f-lang.c (f_is_string_type_p): Delete function, implementation
6946 moved to f_language::is_string_type_p.
6947 (f_language_data): Delete la_is_string_type_p initializer.
6948 (f_language::is_string_type_p): New member function,
6949 implementation from f_is_string_type_p.
6950 * go-lang.c (go_is_string_type_p): Delete function, implementation
6951 moved to go_language::is_string_type_p.
6952 (go_language_data): Delete la_is_string_type_p initializer.
6953 (go_language::is_string_type_p): New member function,
6954 implementation from go_is_string_type_p.
6955 * language.c (language_defn::is_string_type_p): Define new member
6956 function.
6957 (default_is_string_type_p): Make static, add comment copied from
6958 header file.
6959 (unknown_language_data): Delete la_is_string_type_p initializer.
6960 (unknown_language::is_string_type_p): New member function.
6961 (auto_language_data): Delete la_is_string_type_p initializer.
6962 (auto_language::is_string_type_p): New member function.
6963 * language.h (language_data): Delete la_is_string_type_p field.
6964 (language_defn::is_string_type_p): Declare new function.
6965 (default_is_string_type_p): Delete desclaration, move comment to
6966 definition.
6967 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6968 moved to m2_language::is_string_type_p.
6969 (m2_language_data): Delete la_is_string_type_p initializer.
6970 (m2_language::is_string_type_p): New member function,
6971 implementation from m2_is_string_type_p.
6972 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6973 initializer.
6974 * opencl-lang.c (opencl_language_data): Likewise.
6975 * p-lang.c (pascal_is_string_type_p): Delete function,
6976 implementation moved to pascal_language::is_string_type_p.
6977 (pascal_language_data): Delete la_is_string_type_p initializer.
6978 (pascal_language::is_string_type_p): New member function,
6979 implementation from pascal_is_string_type_p.
6980 * rust-lang.c (rust_is_string_type_p): Delete function,
6981 implementation moved to rust_language::is_string_type_p.
6982 (rust_language_data): Delete la_is_string_type_p initializer.
6983 (rust_language::is_string_type_p): New member function,
6984 implementation from rust_is_string_type_p.
6985 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6986 is_string_type_p.
6987
6988 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * ada-lang.c (ada_language_data): Delete la_print_typedef
6991 initializer.
6992 (ada_language::print_typedef): New member function.
6993 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6994 (cplus_language_data): Likewise.
6995 (asm_language_data): Likewise.
6996 (minimal_language_data): Likewise.
6997 * d-lang.c (d_language_data): Likewise.
6998 * f-lang.c (f_language_data): Likewise.
6999 (f_language::print_typedef): New member function.
7000 * go-lang.c (go_language_data): Delete la_print_typedef
7001 initializer.
7002 * language.c (language_defn::print_typedef): Define member
7003 function.
7004 (unknown_language_data): Delete la_print_typedef initializer.
7005 (unknown_language::print_typedef): New member function.
7006 (auto_language_data): Delete la_print_typedef initializer.
7007 (auto_language::print_typedef): New member function.
7008 * language.h (language_data): Delete la_print_typedef field.
7009 (language_defn::print_typedef): Declare new member function.
7010 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7011 (default_print_typedef): Delete declaration.
7012 * m2-lang.c (m2_language_data): Delete la_print_typedef
7013 initializer.
7014 (m2_language::print_typedef): New member function.
7015 * objc-lang.c (objc_language_data): Delete la_print_typedef
7016 initializer.
7017 * opencl-lang.c (opencl_language_data): Likewise.
7018 * p-lang.c (pascal_language_data): Likewise.
7019 (pascal_language::print_typedef): New member function.
7020 * rust-lang.c (rust_print_typedef): Delete function,
7021 implementation moved to rust_language::print_typedef.
7022 (rust_language): Delete la_print_typedef initializer.
7023 (rust_language::print_typedef): New member function,
7024 implementation from rust_print_typedef.
7025 * typeprint.c (default_print_typedef): Delete.
7026
7027 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7030 (ada_language::printstr): New member function.
7031 * c-lang.c (c_language_data): Delete la_printstr initializer.
7032 (cplus_language_data): Likewise.
7033 (asm_language_data): Likewise.
7034 (minimal_language_data): Likewise.
7035 * d-lang.c (d_language_data): Likewise.
7036 * f-lang.c (f_printstr): Rename to f_language::printstr.
7037 (f_language_data): Delete la_printstr initializer.
7038 (f_language::printstr): New member function, implementation from
7039 f_printstr.
7040 * go-lang.c (go_language_data): Delete la_printstr initializer.
7041 * language.c (language_defn::printstr): Define new member
7042 function.
7043 (unk_lang_printstr): Delete.
7044 (unknown_language_data): Delete la_printstr initializer.
7045 (unknown_language::printstr): New member function.
7046 (auto_language_data): Delete la_printstr initializer.
7047 (auto_language::printstr): New member function.
7048 * language.h (language_data): Delete la_printstr field.
7049 (language_defn::printstr): Declare new member function.
7050 (LA_PRINT_STRING): Update call to printstr.
7051 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7052 (m2_language_data): Delete la_printstr initializer.
7053 (m2_language::printstr): New member function, implementation from
7054 m2_printstr.
7055 * objc-lang.c (objc_language_data): Delete la_printstr
7056 initializer.
7057 * opencl-lang.c (opencl_language_data): Likewise.
7058 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7059 (pascal_language_data): Delete la_printstr initializer.
7060 (pascal_language::printstr): New member function, implementation
7061 from pascal_printstr.
7062 * p-lang.h (pascal_printstr): Delete declaration.
7063 * rust-lang.c (rust_printstr): Update header comment.
7064 (rust_language_data): Delete la_printstr initializer.
7065 (rust_language::printstr): New member function.
7066
7067 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7068
7069 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7070 (ada_language::printchar): New member function.
7071 * c-lang.c (c_language_data): Delete la_printchar initializer.
7072 (cplus_language_data): Likewise.
7073 (asm_language_data): Likewise.
7074 (minimal_language_data): Likewise.
7075 * d-lang.c (d_language_data): Likewise.
7076 * f-lang.c (f_printchar): Rename to f_language::printchar.
7077 (f_language_data): Delete la_printchar initializer.
7078 (f_language::printchar): New member function, implementation from
7079 f_printchar.
7080 * go-lang.c (go_language_data): Delete la_printchar initializer.
7081 * language.c (unk_lang_printchar): Delete.
7082 (language_defn::printchar): Define new member function.
7083 (unknown_language_data): Delete la_printchar initializer.
7084 (unknown_language::printchar): New member function.
7085 (auto_language_data): Delete la_printchar initializer.
7086 (auto_language::printchar): New member function.
7087 * language.h (language_data): Delete la_printchar field.
7088 (language_defn::printchar): Declare new member function.
7089 (LA_PRINT_CHAR): Update call to printchar.
7090 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7091 (m2_language::printchar): New member function.
7092 * objc-lang.c (objc_language_data): Delete la_printchar
7093 initializer.
7094 * opencl-lang.c (opencl_language_data): Likewise.
7095 * p-lang.c (pascal_language_data): Delete la_printchar
7096 initializer.
7097 (pascal_language::printchar): New member function.
7098 * rust-lang.c (rust_printchar): Rename to
7099 rust_language::printchar.
7100 (rust_language_data): Delete la_printchar initializer.
7101 (rust_language::printchar): New member function, implementation
7102 from rust_printchar.
7103
7104 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7105
7106 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7107 (ada_language_data): Delete la_emitchar initializer.
7108 (ada_language::emitchar): New member function, implementation from
7109 emit_char.
7110 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7111 (cplus_language_data): Likewise.
7112 (asm_language_data): Likewise.
7113 (minimal_language_data): Likewise.
7114 * d-lang.c (d_language_data): Likewise.
7115 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7116 (f_language_data): Delete la_emitchar initializer.
7117 (f_language::emitchar): New member function, implementation from
7118 f_emit_char.
7119 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7120 * language.c (unk_lang_emit_char): Delete.
7121 (language_defn::emitchar): New member function definition.
7122 (unknown_language_data): Delete la_emitchar initializer.
7123 (unknown_language::emitchar): New member function.
7124 (auto_language_data): Delete la_emitchar initializer.
7125 (auto_language::emitchar): New member function.
7126 * language.h (language_data): Delete la_emitchar field.
7127 (language_defn::emitchar): New member field declaration.
7128 (LA_EMIT_CHAR): Update call to emitchar.
7129 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7130 (m2_language_data): Delete la_emitchar initializer.
7131 (m2_language::emitchar): New member function, implementation from
7132 m2_emit_char.
7133 * objc-lang.c (objc_language_data): Delete la_emitchar
7134 initializer.
7135 * opencl-lang.c (opencl_language_data): Likewise.
7136 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7137 (pascal_language_data): Delete la_emitchar initializer.
7138 (pascal_language::emitchar): New member function, implementation
7139 from pascal_emit_char.
7140 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7141 (rust_language_data): Delete la_emitchar initializer.
7142 (rust_language::emitchar): New member function, implementation
7143 from rust_emitchar.
7144
7145 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7148 (ada_language_data): Delete la_post_parser initializer.
7149 (ada_language::post_parser): New member function.
7150 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7151 (cplus_language_data): Likewise.
7152 (asm_language_data): Likewise.
7153 (minimal_language_data): Likewise.
7154 * d-lang.c (d_language_data): Likewise.
7155 * f-lang.c (f_language_data): Likewise.
7156 * go-lang.c (go_language_data): Likewise.
7157 * language.c (unknown_language_data): Likewise.
7158 (auto_language_data): Likewise.
7159 * language.h (language_data): Delete la_post_parser field.
7160 (language_defn::post_parser): New member function.
7161 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7162 * objc-lang.c (objc_language_data): Likewise.
7163 * opencl-lang.c (opencl_language_data): Likewise.
7164 * p-lang.c (pascal_language_data): Likewise.
7165 * parse.c (parse_exp_in_context): Update call to post_parser.
7166 (null_post_parser): Delete definition.
7167 * parser-defs.h (null_post_parser): Delete declaration.
7168 * rust-lang.c (rust_language_data): Delete la_post_parser
7169 initializer.
7170
7171 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7172
7173 * ada-lang.c (parse): Rename to ada_language::parser.
7174 (ada_language_data): Delete la_parser initializer.
7175 (ada_language::parser): New member function, implementation from
7176 parse.
7177 * c-lang.c (c_language_data): Delete la_parser initializer.
7178 (cplus_language_data): Likewise.
7179 (asm_language_data): Likewise.
7180 (minimal_language_data): Likewise.
7181 * d-lang.c (d_language_data): Likewise.
7182 (d_language::parser): New member function.
7183 * f-lang.c (f_language_data): Delete la_parser initializer.
7184 (f_language::parser): New member function.
7185 * go-lang.c (go_language_data): Delete la_parser initializer.
7186 (go_language::parser): New member function.
7187 * language.c (unk_lang_parser): Delete.
7188 (language_defn::parser): Define new member function.
7189 (unknown_language_data): Delete la_parser initializer.
7190 (unknown_language::parser): New member function.
7191 (auto_language_data): Delete la_parser initializer.
7192 (auto_language::parser): New member function.
7193 * language.h (language_data): Delete la_parser field.
7194 (language_defn::parser): Declare new member function.
7195 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7196 (m2_language::parser): New member function.
7197 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7198 * opencl-lang.c (opencl_language_data): Likewise.
7199 * p-lang.c (pascal_language_data): Likewise.
7200 (pascal_language::parser): New member function.
7201 * parse.c (parse_exp_in_context): Update call to parser.
7202 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7203 (rust_language::parser): New member function.
7204
7205 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * top.c (print_gdb_configuration): Print --with-python-libdir
7208 configuration value.
7209
7210 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7211
7212 * NEWS: Mention change to the alias command.
7213
7214 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7215
7216 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7217 (alias_command_completer)
7218 (make_alias_options_def_group): New functions.
7219 (alias_opts, alias_option_defs): New struct and array.
7220 (alias_usage_error): Update usage.
7221 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7222 Use option framework.
7223 (_initialize_cli_cmds): Update alias command help.
7224 Update aliases command help.
7225 (show_user):
7226 Add NULL for new default_args lookup_cmd argument.
7227 (valid_command_p): Rename to validate_aliased_command.
7228 Add NULL for new default_args lookup_cmd argument. Verify that the
7229 aliased_command has no default args.
7230 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7231 (lookup_cmd_1, lookup_cmd): New argument default_args.
7232 (add_alias_cmd):
7233 Add NULL for new default_args lookup_cmd argument.
7234 (print_help_for_command): Show default args under the layout
7235 alias some_alias = some_aliased_cmd some_alias_default_arg.
7236 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7237 xfree default_args in destructor.
7238 * cli/cli-script.c (process_next_line, do_define_command):
7239 Add NULL for new default_args lookup_cmd argument.
7240 * command.h: Declare new default_args argument in lookup_cmd
7241 and lookup_cmd_1.
7242 * completer.c (complete_line_internal_1):
7243 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7244 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7245 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7246 Likewise.
7247 * infcmd.c (_initialize_infcmd): Likewise.
7248 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7249 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7250 * python/py-param.c (add_setshow_generic): Likewise.
7251 * remote.c (_initialize_remote): Likewise.
7252 * top.c (execute_command): Prepend default_args if command has some.
7253 (set_verbose):
7254 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7255 * tracepoint.c (validate_actionline, encode_actions_1):
7256 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7257
7258 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7259
7260 * jit.c (jit_read_descriptor): Use bool as the return type.
7261 (jit_breakpoint_re_set_internal): Use bool as the return type.
7262 Invert the return value logic; return true if the jit breakpoint
7263 has been successfully initialized.
7264 (jit_inferior_init): Update the call to
7265 jit_breakpoint_re_set_internal.
7266
7267 2020-06-22 Pedro Alves <palves@redhat.com>
7268
7269 PR gdb/25939
7270 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7271 Use the current inferior instead. Don't return
7272 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7273 wait again.
7274 * sol-thread.c (sol_thread_target::wait): Don't reference
7275 inferior_ptid.
7276 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7277 (sol_update_thread_list_callback): Use the current inferior's pid
7278 instead of inferior_ptid.
7279
7280 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7281
7282 * procfs.c: Cleanup many comments.
7283
7284 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7285 (AFTER_WATCHFLAG): Replace by value.
7286
7287 (MAIN_PROC_NAME_FORMAT): Inline ...
7288 (create_procinfo): ... here.
7289
7290 (procfs_debug_inferior): Remove SYS_exec handling.
7291 (syscall_is_exec): Likewise.
7292 (procfs_set_exec_trap): Likewise.
7293
7294 (syscall_is_lwp_exit): Inline in callers.
7295 (syscall_is_exit): Likewise.
7296 (syscall_is_exec): Likewise.
7297 (syscall_is_lwp_create): Likewise.
7298
7299 (invalidate_cache): Remove #if 0 code.
7300
7301 (make_signal_thread_runnable): Remove.
7302 (procfs_target::resume): Remove #if 0 code.
7303
7304 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7305
7306 PR gdb/25939
7307 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7308 call ...
7309 (procfs_target::create_inferior): ... here.
7310
7311 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7312
7313 * exec.c (validate_exec_file): Ensure the build-id is up to
7314 date by calling reopen_exec_file (that checks file timestamp
7315 to decide to re-read the file).
7316
7317 2020-06-18 Pedro Alves <palves@redhat.com>
7318
7319 PR gdb/25412
7320 * gdbthread.h (delete_thread, delete_thread_silent)
7321 (find_thread_ptid): Update comments.
7322 * thread.c (current_thread_): New global.
7323 (is_current_thread): Move higher, and reimplement.
7324 (inferior_thread): Reimplement.
7325 (set_thread_exited): Use bool. Add assertions.
7326 (add_thread_silent): Simplify thread-reuse handling by always
7327 calling delete_thread.
7328 (delete_thread): Remove intro comment.
7329 (find_thread_ptid): Skip exited threads.
7330 (switch_to_thread_no_regs): Write to current_thread_.
7331 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7332 INFERIOR_PTID. Clear current_thread_.
7333
7334 2020-06-18 Pedro Alves <palves@redhat.com>
7335
7336 * aix-thread.c (pd_update): Use switch_to_thread.
7337
7338 2020-06-18 Pedro Alves <palves@redhat.com>
7339
7340 * ravenscar-thread.c (ravenscar_thread_target): Update.
7341 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7342 (ravenscar_thread_target::add_active_thread): ... this. Don't
7343 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7344 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7345
7346 2020-06-18 Pedro Alves <palves@redhat.com>
7347
7348 * nat/windows-nat.c (current_windows_thread): Remove.
7349 * nat/windows-nat.h (current_windows_thread): Remove.
7350 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7351 Adjust.
7352 (display_selectors): Adjust to fetch the current
7353 windows_thread_info based on inferior_ptid.
7354 (fake_create_process): No longer write to current_windows_thread.
7355 (windows_nat_target::get_windows_debug_event):
7356 Don't set inferior_ptid or current_windows_thread.
7357 (windows_nat_target::wait): Adjust to not rely on
7358 current_windows_thread.
7359 (do_initial_windows_stuff): Now a method of windows_nat_target.
7360 Switch to the last_ptid thread.
7361 (windows_nat_target::attach): Adjust.
7362 (windows_nat_target::detach): Use switch_to_no_thread instead of
7363 writing to inferior_ptid directly.
7364 (windows_nat_target::create_inferior): Adjust.
7365
7366 2020-06-18 Pedro Alves <palves@redhat.com>
7367
7368 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7369
7370 2020-06-18 Pedro Alves <palves@redhat.com>
7371
7372 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7373 after creating it, instead of writing to inferior_ptid. Don't
7374 write to inferior_ptid.
7375
7376 2020-06-18 Pedro Alves <palves@redhat.com>
7377
7378 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7379
7380 2020-06-18 Pedro Alves <palves@redhat.com>
7381
7382 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7383 it, instead of writing to inferior_ptid.
7384
7385 2020-06-18 Pedro Alves <palves@redhat.com>
7386
7387 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7388 to inferior_ptid.
7389
7390 2020-06-18 Pedro Alves <palves@redhat.com>
7391
7392 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7393 instead of writing to inferior_ptid directly.
7394
7395 2020-06-18 Pedro Alves <palves@redhat.com>
7396
7397 * corelow.c (core_target::close): Use switch_to_no_thread instead
7398 of writing to inferior_ptid directly.
7399 (add_to_thread_list, core_target_open): Use switch_to_thread
7400 instead of writing to inferior_ptid directly.
7401
7402 2020-06-18 Pedro Alves <palves@redhat.com>
7403
7404 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7405 inferior_ptid.
7406 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7407 inferior_ptid.
7408 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7409 inferior_ptid directly.
7410 (darwin_nat_target::init_thread_list): Switch to thread, instead
7411 of writing to inferior_ptid.
7412 (darwin_nat_target::attach): Don't write to inferior_ptid.
7413 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7414
7415 2020-06-18 Pedro Alves <palves@redhat.com>
7416
7417 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7418 thread.
7419 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7420 Instead use switch_to_thread.
7421 (gnu_nat_target::detach): Use switch_to_no_thread
7422 instead of writing to inferior_ptid directly. Used passed-in
7423 inferior instead of looking up the inferior by pid.
7424
7425 2020-06-18 Pedro Alves <palves@redhat.com>
7426
7427 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7428 inferior_ptid.
7429
7430 2020-06-18 Pedro Alves <palves@redhat.com>
7431
7432 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7433 inferior_ptid.
7434 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7435 thread.
7436 (nto_procfs_target::detach): Avoid referencing
7437 inferior_ptid. Use switch_to_no_thread instead of writing to
7438 inferior_ptid directly.
7439 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7440 instead of writing to inferior_ptid directly.
7441 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7442 to thread.
7443
7444 2020-06-18 Pedro Alves <palves@redhat.com>
7445
7446 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7447 after creating it, instead of writing to inferior_ptid.
7448 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7449 to inferior_ptid directly.
7450 (gdbsim_target::wait): Don't write to inferior_ptid.
7451
7452 2020-06-18 Pedro Alves <palves@redhat.com>
7453
7454 * remote.c (remote_target::remote_notice_new_inferior): Use
7455 switch_to_thread instead of writing to inferior_ptid directly.
7456 (remote_target::add_current_inferior_and_thread): Use
7457 switch_to_no_thread instead of writing to inferior_ptid directly.
7458 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7459 and switch_to_thread instead of using set_current_inferior or
7460 writing to inferior_ptid directly.
7461
7462 2020-06-18 Pedro Alves <palves@redhat.com>
7463
7464 * tracectf.c (ctf_target_open): Switch to added thread instead of
7465 writing to inferior_ptid directly.
7466 (ctf_target::close): Use switch_to_no_thread instead of writing to
7467 inferior_ptid directly.
7468
7469 2020-06-18 Pedro Alves <palves@redhat.com>
7470
7471 * tracefile-tfile.c (tfile_target_open): Don't write to
7472 inferior_ptid directly, instead switch to added thread.
7473 (tfile_target::close): Use switch_to_no_thread instead of writing
7474 to inferior_ptid directly.
7475
7476 2020-06-18 Pedro Alves <palves@redhat.com>
7477
7478 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7479 (procfs_target::detach): Use switch_to_no_thread
7480 instead of writing to inferior_ptid directly.
7481 (do_attach): Change return type to void. Switch to the added
7482 thread.
7483 (procfs_target::create_inferior): Switch to the added thread.
7484 (procfs_do_thread_registers): Don't write to inferior_ptid.
7485
7486 2020-06-18 Pedro Alves <palves@redhat.com>
7487
7488 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7489 of writing to inferior_ptid.
7490 (scoped_restore_exited_inferior): Delete.
7491 (handle_vfork_child_exec_or_exit): Simplify using
7492 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7493 instead of writing to inferior_ptid.
7494 (THREAD_STOPPED_BY): Delete.
7495 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7496 (thread_stopped_by_hw_breakpoint): Delete.
7497 (save_waitstatus): Use
7498 scoped_restore_current_thread+switch_to_thread, and call
7499 target_stopped_by_watchpoint instead of
7500 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7501 instead of thread_stopped_by_sw_breakpoint, and
7502 target_stopped_by_hw_breakpoint instead of
7503 thread_stopped_by_hw_breakpoint.
7504 (handle_inferior_event)
7505 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7506 inferior_ptid directly, nor
7507 set_current_inferior/set_current_program_space. Use
7508 switch_to_thread / switch_to_inferior_no_thread instead.
7509
7510 2020-06-18 Pedro Alves <palves@redhat.com>
7511
7512 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7513 instead of writing to inferior_ptid.
7514
7515 2020-06-18 Pedro Alves <palves@redhat.com>
7516
7517 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7518 added thread.
7519 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7520 to the added thread.
7521 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7522 instead of writing to inferior_ptid.
7523
7524 2020-06-18 Pedro Alves <palves@redhat.com>
7525
7526 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7527 (register_to_value_test): Mock a program_space too. Heap-allocate
7528 the address space. Don't write to inferior_ptid. Use
7529 switch_to_thread instead.
7530
7531 2020-06-18 Pedro Alves <palves@redhat.com>
7532
7533 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7534 Delete.
7535 (find_signalled_thread()): New, factored out from
7536 linux_make_corefile_notes and adjusted to handle exited threads.
7537 (linux_make_corefile_notes): Adjust to use the new
7538 find_signalled_thread.
7539
7540 2020-06-18 Pedro Alves <palves@redhat.com>
7541
7542 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7543 of saving/restoring inferior_ptid.
7544
7545 2020-06-17 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7548 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7549 declare.
7550 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7551
7552 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7555 of partial symtabs.
7556
7557 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7558
7559 * regformats/reg-arm.dat: Remove.
7560 * regformats/reg-bfin.dat: Remove.
7561 * regformats/reg-cris.dat: Remove.
7562 * regformats/reg-crisv32.dat: Remove.
7563 * regformats/reg-m32r.dat: Remove.
7564 * regformats/reg-tilegx.dat: Remove.
7565 * regformats/reg-tilegx32.dat: Remove.
7566
7567 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * features/Makefile (WHICH): Remove arm files.
7570 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7571 * regformats/arm/arm-with-neon.dat: Remove.
7572 * regformats/arm/arm-with-vfpv2.dat: Remove.
7573 * regformats/arm/arm-with-vfpv3.dat: Remove.
7574
7575 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7576
7577 * features/Makefile (XMLTOC): Remove rx.xml.
7578
7579 2020-06-17 Pedro Alves <palves@redhat.com>
7580
7581 * gdbthread.h (thread_control_state) <trap_expected> Update
7582 comments.
7583
7584 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7585
7586 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7587 ada_language::lookup_symbol_nonlocal.
7588 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7589 (ada_language::lookup_symbol_nonlocal): New member function,
7590 implementation from ada_lookup_symbol_nonlocal.
7591 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7592 initializer.
7593 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7594 initializer.
7595 (cplus_language::lookup_symbol_nonlocal): New member function.
7596 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7597 (minimal_language_data) Likewise.
7598 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7599 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7600 initializer.
7601 (d_language::lookup_symbol_nonlocal): New member function.
7602 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7603 initializer.
7604 (f_language::lookup_symbol_nonlocal): New member function.
7605 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7606 initializer.
7607 * language.c (unknown_language_data): Likewise.
7608 (auto_language_data): Likewise.
7609 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7610 field.
7611 (language_defn::lookup_symbol_nonlocal): New member function.
7612 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7613 initializer.
7614 * objc-lang.c (objc_language_data): Likewise.
7615 * opencl-lang.c (opencl_language_data): Likewise.
7616 * p-lang.c (pascal_language_data): Likewise.
7617 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7618 rust_language::lookup_symbol_nonlocal.
7619 (rust_language_data): Delete la_lookup_symbol_nonlocal
7620 initializer.
7621 (rust_language::lookup_symbol_nonlocal): New member function,
7622 implementation from rust_lookup_symbol_nonlocal.
7623 * symtab.c (lookup_symbol_aux): Update call to
7624 lookup_symbol_nonlocal.
7625 (basic_lookup_symbol_nonlocal): Rename to...
7626 (language_defn::lookup_symbol_nonlocal): ...this, and update
7627 header comment. Remove language_defn parameter, and replace with
7628 uses of `this'.
7629 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7630
7631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7634 initializer.
7635 (ada_language::value_print_inner): New member function.
7636 * c-lang.c (c_language_data): Delete la_value_print_inner
7637 initializer.
7638 (cplus_language_data): Likewise.
7639 (asm_language_data): Likewise.
7640 (minimal_language_data): Likewise.
7641 * d-lang.c (d_language_data): Likewise.
7642 (d_language::value_print_inner): New member function.
7643 * f-lang.c (f_language_data): Delete la_value_print_inner
7644 initializer.
7645 (f_language::value_print_inner): New member function.
7646 * f-lang.h (f_value_print_innner): Rename to...
7647 (f_value_print_inner): ...this (note spelling of 'inner').
7648 * f-valprint.c (f_value_print_innner): Rename to...
7649 (f_value_print_inner): ...this (note spelling of 'inner').
7650 * go-lang.c (go_language_data): Delete la_value_print_inner
7651 initializer.
7652 (go_language::value_print_inner): New member function.
7653 * language.c (language_defn::value_print_inner): Define new member
7654 function.
7655 (unk_lang_value_print_inner): Delete.
7656 (unknown_language_data): Delete la_value_print_inner initializer.
7657 (unknown_language::value_print_inner): New member function.
7658 (auto_language_data): Delete la_value_print_inner initializer.
7659 (auto_language::value_print_inner): New member function.
7660 * language.h (language_data): Delete la_value_print_inner field.
7661 (language_defn::value_print_inner): Delcare new member function.
7662 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7663 initializer.
7664 (m2_language::value_print_inner): New member function.
7665 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7666 initializer.
7667 * opencl-lang.c (opencl_language_data): Likewise.
7668 * p-lang.c (pascal_language_data): Likewise.
7669 (pascal_language::value_print_inner): New member function.
7670 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7671 initializer.
7672 (rust_language::value_print_inner): New member function.
7673 * valprint.c (do_val_print): Update call to value_print_inner.
7674
7675 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7676
7677 * ada-lang.c (ada_language_data): Delete la_value_print
7678 initializer.
7679 (ada_language::value_print): New member function.
7680 * c-lang.c (c_language_data): Delete la_value_print initializer.
7681 (cplus_language_data): Likewise.
7682 (asm_language_data): Likewise.
7683 (minimal_language_data): Likewise.
7684 * d-lang.c (d_language_data): Likewise.
7685 * f-lang.c (f_language_data): Likewise.
7686 * go-lang.c (go_language_data): Likewise.
7687 * language.c (unk_lang_value_print): Delete.
7688 (language_defn::value_print): Define new member function.
7689 (unknown_language_data): Delete la_value_print initializer.
7690 (unknown_language::value_print): New member function.
7691 (auto_language_data): Delete la_value_print initializer.
7692 (auto_language::value_print): New member function.
7693 * language.h (language_data): Delete la_value_print field.
7694 (language_defn::value_print): Declare new member function.
7695 (LA_VALUE_PRINT): Update call to value_print.
7696 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7697 * objc-lang.c (objc_language_data): Likewise.
7698 * opencl-lang.c (opencl_language_data): Likewise.
7699 * p-lang.c (pascal_language_data): Likewise.
7700 (pascal_language::value_print): New member function.
7701 * rust-lang.c (rust_language_data): Delete la_value_print
7702 initializer.
7703
7704 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 * ada-lang.c (ada_watch_location_expression): Rename to
7707 ada_language::watch_location_expression.
7708 (ada_language_data): Delete la_watch_location_expression
7709 initializer.
7710 (ada_language::watch_location_expression): New member function,
7711 implementation from ada_watch_location_expression.
7712 * breakpoint.c (watch_command_1): Update call to
7713 watch_location_expression.
7714 * c-lang.c (c_watch_location_expression): Rename to
7715 language_defn::watch_location_expression.
7716 (c_language_data): Delete la_watch_location_expression
7717 initializer.
7718 (cplus_language_data): Likewise.
7719 (asm_language_data): Likewise.
7720 (minimal_language_data): Likewise.
7721 * c-lang.h (c_watch_location_expression): Delete declaration.
7722 * d-lang.c (d_language_data): Delete la_watch_location_expression
7723 initializer.
7724 * f-lang.c (f_language_data): Likewise.
7725 * go-lang.c (go_language_data): Likewise.
7726 * language.c (language_defn::watch_location_expression): Member
7727 function implementation from c_watch_location_expression.
7728 (unknown_language_data): Delete la_watch_location_expression
7729 initializer.
7730 (auto_language_data): Likewise.
7731 * language.h (language_data): Delete la_watch_location_expression
7732 field.
7733 (language_defn::watch_location_expression): Declare new member
7734 function.
7735 * m2-lang.c (m2_language_data): Delete
7736 la_watch_location_expression initializer.
7737 * objc-lang.c (objc_language_data): Likewise.
7738 * opencl-lang.c (opencl_language_data): Likewise.
7739 * p-lang.c (pascal_language_data): Likewise.
7740 * rust-lang.c (rust_watch_location_expression): Rename to
7741 rust_language::watch_location_expression.
7742 (rust_language_data): Delete la_watch_location_expression
7743 initializer.
7744 (rust_language::watch_location_expression): New member function,
7745 implementation from rust_watch_location_expression.
7746
7747 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7748
7749 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7750 ada_language::collect_symbol_completion_matches.
7751 (ada_language_data): Delete la_collect_symbol_completion_matches
7752 initializer.
7753 (ada_language::collect_symbol_completion_matches): New member
7754 function, implementation from
7755 ada_collect_symbol_completion_matches.
7756 * c-lang.c (c_language_data): Delete
7757 la_collect_symbol_completion_matches initializer.
7758 (cplus_language_data): Likewise.
7759 (asm_language_data): Likewise.
7760 (minimal_language_data): Likewise.
7761 * d-lang.c (d_language_data): Likewise.
7762 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7763 f_language::collect_symbol_completion_matches.
7764 (f_language_data): Delete la_collect_symbol_completion_matches
7765 initializer.
7766 (f_language::collect_symbol_completion_matches) New member
7767 function, implementation from f_collect_symbol_completion_matches.
7768 * go-lang.c (go_language_data): Delete
7769 la_collect_symbol_completion_matches initializer.
7770 * language.c (unknown_language_data): Likewise.
7771 (auto_language_data): Likewise.
7772 * language.h (language_data): Delete
7773 la_collect_symbol_completion_matches field.
7774 (language_defn::collect_symbol_completion_matches): New member
7775 function.
7776 * m2-lang.c (m2_language_data): Delete
7777 la_collect_symbol_completion_matches initializer.
7778 * objc-lang.c (objc_language_data): Likewise.
7779 * opencl-lang.c (opencl_language_data): Likewise.
7780 * p-lang.c (pascal_language_data): Likewise.
7781 * rust-lang.c (rust_language_data): Likewise.
7782 * symtab.c (default_collect_symbol_completion_matches): Delete.
7783 (collect_symbol_completion_matches): Update call to
7784 collect_symbol_completion_matches.
7785 (collect_symbol_completion_matches_type): Likewise.
7786 * symtab.h (default_collect_symbol_completion_matches): Delete
7787 declaration.
7788
7789 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7792 (ada_language_data): Delete la_word_break_characters initializer.
7793 (ada_language::word_break_characters): New member function.
7794 * c-lang.c (c_language_data): Delete la_word_break_characters
7795 initializer.
7796 (cplus_language_data): Likewise.
7797 (asm_language_data): Likewise.
7798 (minimal_language_data): Likewise.
7799 * completer.c: Update global comment.
7800 (advance_to_expression_complete_word_point): Update call to
7801 word_break_characters.
7802 (complete_files_symbols): Likewise.
7803 (complete_line_internal_1): Likewise.
7804 (default_completer_handle_brkchars): Likewise.
7805 (skip_quoted_chars): Likewise.
7806 * d-lang.c (d_language_data): Delete la_word_break_characters
7807 initializer.
7808 * f-lang.c (f_word_break_characters): Delete.
7809 (f_language_data): Delete la_word_break_characters initializer.
7810 (f_language::word_break_characters): New member function.
7811 * go-lang.c (go_language_data): Delete la_word_break_characters
7812 initializer.
7813 * language.c (unknown_language_data): Likewise.
7814 (auto_language_data): Likewise.
7815 * language.h (default_word_break_characters): Move declaration to
7816 earlier in the file.
7817 (language_data): Delete la_word_break_characters field.
7818 (language_defn::word_break_characters): New member function.
7819 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7820 initializer.
7821 * objc-lang.c (objc_language_data): Likewise.
7822 * opencl-lang.c (opencl_language_data): Likewise.
7823 * p-lang.c (pascal_language_data): Likewise.
7824 * rust-lang.c (rust_language_data): Likewise.
7825
7826 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7829 (ada_language_data): Delete la_get_symbol_name_matcher
7830 initializer.
7831 (language_defn::get_symbol_name_matcher_inner): New member
7832 function.
7833 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7834 initializer.
7835 (cplus_language_data): Likewise.
7836 (cplus_language::get_symbol_name_matcher_inner): New member
7837 function.
7838 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7839 (minimal_language_data): Likewise.
7840 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7841 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7842 initializer.
7843 * dictionary.c (iter_match_first_hashed): Update call to
7844 get_symbol_name_matcher.
7845 (iter_match_next_hashed): Likewise.
7846 (iter_match_next_linear): Likewise.
7847 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7848 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7849 initializer.
7850 (f_language::get_symbol_name_matcher_inner): New member function.
7851 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7852 initializer.
7853 * language.c (default_symbol_name_matcher): Update header comment,
7854 make static.
7855 (language_defn::get_symbol_name_matcher): New definition.
7856 (language_defn::get_symbol_name_matcher_inner): Likewise.
7857 (get_symbol_name_matcher): Delete.
7858 (unknown_language_data): Delete la_get_symbol_name_matcher
7859 initializer.
7860 (auto_language_data): Likewise.
7861 * language.h (language_data): Delete la_get_symbol_name_matcher
7862 field.
7863 (language_defn::get_symbol_name_matcher): New member function.
7864 (language_defn::get_symbol_name_matcher_inner): Likewise.
7865 (default_symbol_name_matcher): Delete declaration.
7866 * linespec.c (find_methods): Update call to
7867 get_symbol_name_matcher.
7868 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7869 initializer.
7870 * minsyms.c (lookup_minimal_symbol): Update call to
7871 get_symbol_name_matcher.
7872 (iterate_over_minimal_symbols): Likewise.
7873 * objc-lang.c (objc_language_data): Delete
7874 la_get_symbol_name_matcher initializer.
7875 * opencl-lang.c (opencl_language_data): Likewise.
7876 * p-lang.c (pascal_language_data): Likewise.
7877 * psymtab.c (psymbol_name_matches): Update call to
7878 get_symbol_name_matcher.
7879 * rust-lang.c (rust_language_data): Delete
7880 la_get_symbol_name_matcher initializer.
7881 * symtab.c (symbol_matches_search_name): Update call to
7882 get_symbol_name_matcher.
7883 (compare_symbol_name): Likewise.
7884
7885 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * ada-lang.c (ada_language_data): Delete la_compute_program
7888 initializer.
7889 * c-lang.c (c_language_data): Likewise.
7890 (c_language::compute_program): New member function.
7891 (cplus_language_data): Delete la_compute_program initializer.
7892 (cplus_language::compute_program): New member function.
7893 (asm_language_data): Delete la_compute_program initializer.
7894 (minimal_language_data): Likewise.
7895 * c-lang.h (c_compute_program): Update comment.
7896 (cplus_compute_program): Likewise.
7897 * compile/compile-c-support.c (c_compute_program): Likewise.
7898 (cplus_compute_program): Likewise.
7899 * compile/compile.c (compile_to_object): Update call to
7900 la_compute_program.
7901 * d-lang.c (d_language_data): Delete la_compute_program
7902 initializer.
7903 * f-lang.c (f_language_data): Likewise.
7904 * go-lang.c (go_language_data): Likewise.
7905 * language.c (unknown_language_data): Likewise.
7906 (auto_language_data): Likewise.
7907 * language.h (language_data): Delete la_compute_program field.
7908 (language_defn::compute_program): New member function.
7909 * m2-lang.c (m2_language_data): Delete la_compute_program
7910 initializer.
7911 * objc-lang.c (objc_language_data): Likewise.
7912 * opencl-lang.c (opencl_language_data): Likewise.
7913 * p-lang.c (pascal_language_data): Likewise.
7914 * rust-lang.c (rust_language_data): Likewise.
7915
7916 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * ada-lang.c (ada_language_data) Delete
7919 la_class_name_from_physname initializer.
7920 * c-lang.c (c_language_data): Likewise.
7921 (cplus_language_data): Likewise.
7922 (cplus_language::class_name_from_physname): New member function.
7923 (asm_language_data): Delete la_class_name_from_physname
7924 initializer.
7925 (minimal_language_data): Likewise.
7926 * d-lang.c (d_language_data): Likewise.
7927 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7928 method on language_defn class.
7929 (guess_full_die_structure_name): Likewise.
7930 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7931 initializer.
7932 * go-lang.c (go_language_data): Likewise.
7933 * language.c (language_class_name_from_physname): Delete.
7934 (unk_lang_class_name): Delete.
7935 (unknown_language_data): Delete la_class_name_from_physname
7936 initializer.
7937 (auto_language_data): Likewise.
7938 * language.h (language_data): Delete la_class_name_from_physname
7939 field.
7940 (language_defn::class_name_from_physname): New function.
7941 (language_class_name_from_physname): Delete declaration.
7942 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7943 initializer.
7944 * objc-lang.c (objc_language_data): Likewise.
7945 * opencl-lang.c (opencl_language_data): Likewise.
7946 * p-lang.c (pascal_language_data): Likewise.
7947 * rust-lang.c (rust_language_data): Likewise.
7948
7949 2020-06-16 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-data.h (STATUS_NAME): New macro.
7952 * tui/tui-layout.c (tui_remove_some_windows)
7953 (initialize_known_windows, tui_register_window)
7954 (tui_layout_split::remove_windows, initialize_layouts)
7955 (tui_new_layout_command): Don't use hard-coded window names.
7956
7957 2020-06-16 Tom Tromey <tom@tromey.com>
7958
7959 PR tui/25348:
7960 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7961 tui_initialize_readline. Only run once. Call rl_initialize.
7962 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7963 tui_initialize_readline.
7964 * tui/tui-io.c (tui_setup_io): Call
7965 tui_ensure_readline_initialized.
7966 * tui/tui-interp.c (tui_interp::init): Update.
7967
7968 2020-06-16 Tom Tromey <tom@tromey.com>
7969
7970 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7971 Also preserve the status window.
7972
7973 2020-06-16 Tom Tromey <tom@tromey.com>
7974
7975 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7976 where m_window==nullptr.
7977
7978 2020-06-15 Tom Tromey <tromey@adacore.com>
7979
7980 * windows-nat.c (windows_nat::handle_output_debug_string):
7981 Update.
7982 (windows_nat::handle_ms_vc_exception): Update.
7983 * target.h (target_read_string): Change API.
7984 * target.c (target_read_string): Change API.
7985 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7986 Update.
7987 * solib-frv.c (frv_current_sos): Update.
7988 * solib-dsbt.c (dsbt_current_sos): Update.
7989 * solib-darwin.c (darwin_current_sos): Update.
7990 * linux-thread-db.c (inferior_has_bug): Update.
7991 * expprint.c (print_subexp_standard): Update.
7992 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7993 (ada_exception_message_1): Update.
7994
7995 2020-06-15 Tom Tromey <tromey@adacore.com>
7996
7997 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7998
7999 2020-06-15 Tom Tromey <tromey@adacore.com>
8000
8001 * valprint.c (read_string): Update comment.
8002 * target.c (MIN): Remove.
8003 (target_read_string): Rewrite.
8004
8005 2020-06-15 Tom Tromey <tromey@adacore.com>
8006
8007 * corefile.c (read_memory_string): Remove.
8008 * ada-valprint.c (ada_value_print_ptr): Update.
8009 * ada-lang.h (ada_tag_name): Change return type.
8010 * ada-lang.c (type_from_tag): Update.
8011 (ada_tag_name_from_tsd): Change return type. Use
8012 target_read_string.
8013 (ada_tag_name): Likewise.
8014 * gdbcore.h (read_memory_string): Don't declare.
8015
8016 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8017
8018 * symtab.c (rbreak_command): Ignore Windows drive colon.
8019
8020 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * NEWS: Mention removed GDBserver host support.
8023
8024 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8025
8026 * features/riscv/rebuild-csr-xml.sh: Updated.
8027
8028 2020-06-11 Tom Tromey <tom@tromey.com>
8029
8030 PR gdb/18318:
8031 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8032
8033 2020-06-09 Jonny Grant <jg@jguk.org>
8034 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8035
8036 * main.c (captured_main_1): Don't print new line after help.
8037 (print_gdb_help): add mailing list and IRC channel information
8038 to --help. Add new lines between items in the footer. Remove
8039 quotes around bug url.
8040
8041 2020-06-11 Keith Seitz <keiths@redhat.com>
8042
8043 PR gdb/21356
8044 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8045 Resolve typedefs for type length calculations.
8046
8047 2020-06-10 Tom de Vries <tdevries@suse.de>
8048
8049 PR ada/24713
8050 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8051 (write_psymbols): Enable .gdb_index for ada.
8052 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8053 ada.
8054
8055 2020-06-10 Tom de Vries <tdevries@suse.de>
8056
8057 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8058 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8059 namei" instead of "const char *name" argument.
8060 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8061 dw2_symtab_iter_init.
8062
8063 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8066 to use type::field and field::type instead.
8067
8068 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8071 to use field::type instead.
8072
8073 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * gdbtypes.h (struct field) <type, set_type>: New methods.
8076 Rename `type` field to...
8077 <m_type>: ... this. Change references throughout to use type or
8078 set_type methods.
8079 (FIELD_TYPE): Use field::type. Change call sites that modify
8080 the field's type to use field::set_type instead.
8081
8082 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8085 to use type::index_type instead.
8086
8087 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8088
8089 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8090 methods.
8091 (TYPE_INDEX_TYPE): Use type::index_type.
8092 * gdbtypes.c (create_array_type_with_stride): Likewise.
8093
8094 2020-06-07 Tom Tromey <tom@tromey.com>
8095
8096 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8097 parameter.
8098 (generic_value_print): Update.
8099
8100 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 Revert commit 982a38f60b0.
8103 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8104
8105 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8106
8107 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8108 avoid use after free.
8109
8110 2020-06-05 Tom de Vries <tdevries@suse.de>
8111
8112 * NEWS: Fix typos.
8113
8114 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8117 the per_bfd object.
8118 (dwarf2_read_debug_names): Likewise.
8119 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8120 object when re-using a per_bfd object with an index.
8121
8122 2020-06-03 Tom de Vries <tdevries@suse.de>
8123
8124 PR symtab/26046
8125 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8126 children for C++.
8127 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8128 DW_TAG_subprogram.
8129
8130 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8131
8132 * ada-lang.c (ada_language_data): Delete skip_trampoline
8133 initializer.
8134 * c-lang.c (c_language_data): Likewise.
8135 (cplus_language_data): Likewise.
8136 (cplus_language::skip_trampoline): New member function.
8137 (asm_language_data): Delete skip_trampoline initializer.
8138 (minimal_language_data): Likewise.
8139 * d-lang.c (d_language_data): Likewise.
8140 * f-lang.c (f_language_data): Likewise.
8141 * go-lang.c (go_language_data): Likewise.
8142 * language.c (unk_lang_trampoline): Delete function.
8143 (skip_language_trampoline): Update.
8144 (unknown_language_data): Delete skip_trampoline initializer.
8145 (auto_language_data): Likewise.
8146 * language.h (language_data): Delete skip_trampoline field.
8147 (language_defn::skip_trampoline): New function.
8148 * m2-lang.c (m2_language_data): Delete skip_trampoline
8149 initializer.
8150 * objc-lang.c (objc_skip_trampoline): Delete function, move
8151 implementation to objc_language::skip_trampoline.
8152 (objc_language_data): Delete skip_trampoline initializer.
8153 (objc_language::skip_trampoline): New member function with
8154 implementation from objc_skip_trampoline.
8155 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8156 initializer.
8157 * p-lang.c (pascal_language_data): Likewise.
8158 * rust-lang.c (rust_language_data): Likewise.
8159
8160 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8161
8162 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8163 (ada_language::demangle): New member function.
8164 * c-lang.c (c_language_data): Delete la_demangle initializer.
8165 (cplus_language_data): Delete la_demangle initializer.
8166 (cplus_language::demangle): New member function.
8167 (asm_language_data): Delete la_demangle initializer.
8168 (minimal_language_data): Delete la_demangle initializer.
8169 * d-lang.c (d_language_data): Delete la_demangle initializer.
8170 (d_language::demangle): New member function.
8171 * f-lang.c (f_language_data): Delete la_demangle initializer.
8172 (f_language::demangle): New member function.
8173 * go-lang.c (go_language_data): Delete la_demangle initializer.
8174 (go_language::demangle): New member function.
8175 * language.c (language_demangle): Update.
8176 (unk_lang_demangle): Delete.
8177 (unknown_language_data): Delete la_demangle initializer.
8178 (unknown_language::demangle): New member function.
8179 (auto_language_data): Delete la_demangle initializer.
8180 (auto_language::demangle): New member function.
8181 * language.h (language_data): Delete la_demangle field.
8182 (language_defn::demangle): New function.
8183 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8184 * objc-lang.c (objc_language_data): Delete la_demangle
8185 initializer.
8186 (objc_language::demangle): New member function.
8187 * opencl-lang.c (opencl_language_data): Delete la_demangle
8188 initializer.
8189 * p-lang.c (pascal_language_data): Likewise.
8190 * rust-lang.c (rust_language_data): Likewise.
8191 (rust_language::demangle): New member function.
8192
8193 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8194
8195 * ada-lang.c (ada_language_data): Delete la_print_type
8196 initializer.
8197 (ada_language::print_type): New member function.
8198 * c-lang.c (c_language_data): Delete la_print_type initializer.
8199 (c_language::print_type): New member function.
8200 (cplus_language_data): Delete la_print_type initializer.
8201 (cplus_language::print_type): New member function.
8202 (asm_language_data): Delete la_print_type initializer.
8203 (asm_language::print_type): New member function.
8204 (minimal_language_data): Delete la_print_type initializer.
8205 (minimal_language::print_type): New member function.
8206 * d-lang.c (d_language_data): Delete la_print_type initializer.
8207 (d_language::print_type): New member function.
8208 * f-lang.c (f_language_data): Delete la_print_type initializer.
8209 (f_language::print_type): New member function.
8210 * go-lang.c (go_language_data): Delete la_print_type initializer.
8211 (go_language::print_type): New member function.
8212 * language.c (unk_lang_print_type): Delete.
8213 (unknown_language_data): Delete la_print_type initializer.
8214 (unknown_language::print_type): New member function.
8215 (auto_language_data): Delete la_print_type initializer.
8216 (auto_language::print_type): New member function.
8217 * language.h (language_data): Delete la_print_type field.
8218 (language_defn::print_type): New function.
8219 (LA_PRINT_TYPE): Update.
8220 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8221 (m2_language::print_type): New member function.
8222 * objc-lang.c (objc_language_data): Delete la_print_type
8223 initializer.
8224 (objc_language::print_type): New member function.
8225 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8226 to opencl_language::print_type.
8227 (opencl_language_data): Delete la_print_type initializer.
8228 (opencl_language::print_type): New member function, implementation
8229 from opencl_print_type.
8230 * p-lang.c (pascal_language_data): Delete la_print_type
8231 initializer.
8232 (pascal_language::print_type): New member function.
8233 * rust-lang.c (rust_print_type): Delete, implementation moved to
8234 rust_language::print_type.
8235 (rust_language_data): Delete la_print_type initializer.
8236 (rust_language::print_type): New member function, implementation
8237 from rust_print_type.
8238
8239 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8242 implementation moves to...
8243 (ada_language::sniff_from_mangled_name): ...here. Update return
8244 type.
8245 (ada_language_data): Delete la_sniff_from_mangled_name
8246 initializer.
8247 * c-lang.c (c_language_data): Likewise.
8248 (cplus_language_data): Likewise.
8249 (cplus_language::sniff_from_mangled_name): New member function,
8250 implementation taken from gdb_sniff_from_mangled_name.
8251 (asm_language_data): Delete la_sniff_from_mangled_name
8252 initializer.
8253 (minimal_language_data): Likewise.
8254 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8255 implementation moves to cplus_language::sniff_from_mangled_name.
8256 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8257 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8258 moves to...
8259 (d_language::sniff_from_mangled_name): ...here.
8260 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8261 * f-lang.c (f_language_data): Likewise.
8262 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8263 moves to...
8264 (go_language::sniff_from_mangled_name): ...here.
8265 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8266 * language.c (language_sniff_from_mangled_name): Delete.
8267 (unknown_language_data): Delete la_sniff_from_mangled_name
8268 initializer.
8269 (auto_language_data): Likewise.
8270 * language.h (language_data): Delete la_sniff_from_mangled_name
8271 field.
8272 (language_defn::sniff_from_mangled_name): New function.
8273 (language_sniff_from_mangled_name): Delete declaration.
8274 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8275 field.
8276 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8277 implementation moves to...
8278 (objc_language::sniff_from_mangled_name): ...here.
8279 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8280 * opencl-lang.c (opencl_language_data): Likewise.
8281 * p-lang.c (pascal_language_data): Likewise.
8282 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8283 implementation moves to...
8284 (rust_language::sniff_from_mangled_name): ...here.
8285 (rust_language_data): Delete la_sniff_from_mangled_name
8286 initializer.
8287 * symtab.c (symbol_find_demangled_name): Call
8288 sniff_from_mangled_name member function.
8289
8290 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8291
8292 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8293 initializer.
8294 * c-lang.c (c_language_data): Likewise.
8295 (cplus_language_data): Likewise.
8296 (cplus_language::search_name_hash): New member function.
8297 (asm_language_data): Delete la_search_name_hash initializer.
8298 (minimal_language_data): Likewise.
8299 * d-lang.c (d_language_data): Likewise.
8300 * dictionary.c (default_search_name_hash): Rename to...
8301 (language_defn::search_name_hash): ...this.
8302 * f-lang.c (f_language_data): Likewise.
8303 (f_language::search_name_hash): New member function.
8304 * go-lang.c (go_language_data): Delete la_search_name_hash
8305 initializer.
8306 * language.c (unknown_language_data): Likewise.
8307 (auto_language_data): Likewise.
8308 * language.h (struct language_data): Delete la_search_name_hash
8309 field.
8310 (language_defn::search_name_hash): Declare new member function.
8311 (default_search_name_hash): Delete declaration.
8312 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8313 initializer.
8314 * objc-lang.c (objc_language_data): Likewise.
8315 * opencl-lang.c (opencl_language_data): Likewise.
8316 * p-lang.c (pascal_language_data): Likewise.
8317 * rust-lang.c (rust_language_data): Likewise.
8318 * symtab.c (search_name_hash): Update call.
8319
8320 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8321
8322 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8323 initializer.
8324 * c-lang.c (class compile_instance): Declare.
8325 (c_language_data): Delete la_get_compile_instance initializer.
8326 (c_language::get_compile_instance): New member function.
8327 (cplus_language_data): Delete la_get_compile_instance initializer.
8328 (cplus_language::get_compile_instance): New member function.
8329 (asm_language_data): Delete la_get_compile_instance initializer.
8330 (minimal_language_data): Likewise.
8331 * c-lang.h (c_get_compile_context): Update comment.
8332 (cplus_get_compile_context): Update comment.
8333 * compile/compile.c (compile_to_object): Update calls, don't rely
8334 on function pointer being NULL.
8335 * d-lang.c (d_language_data): Delete la_get_compile_instance
8336 initializer.
8337 * f-lang.c (f_language_data): Likewise.
8338 * go-lang.c (go_language_data): Likewise.
8339 * language.c (unknown_language_data): Likewise.
8340 (auto_language_data): Likewise.
8341 * language.h (language_data): Delete la_get_compile_instance field.
8342 (language_defn::get_compile_instance): New member function.
8343 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8344 initializer.
8345 * objc-lang.c (objc_language_data): Likewise.
8346 * opencl-lang.c (opencl_language_data): Likewise.
8347 * p-lang.c (pascal_language_data): Likewise.
8348 * rust-lang.c (rust_language_data): Likewise.
8349
8350 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8351
8352 * ada-lang.c (ada_add_all_symbols): Update comment.
8353 (ada_iterate_over_symbols): Delete, move implementation to...
8354 (ada_language::iterate_over_symbols): ...here, a new member
8355 function, rewrite to use range based for loop.
8356 (ada_language_data): Delete la_iterate_over_symbols initializer.
8357 * c-lang.c (c_language_data): Likewise.
8358 (cplus_language_data): Likewise.
8359 (asm_language_data): Likewise.
8360 (minimal_language_data): Likewise.
8361 * d-lang.c (d_language_data): Likewise.
8362 * f-lang.c (f_language_data): Likewise.
8363 * go-lang.c (go_language_data): Likewise.
8364 * language.c (unknown_language_data): Likewise.
8365 (auto_language_data): Likewise.
8366 * language.h (language_data): Delete la_iterate_over_symbols field.
8367 (language_defn::iterate_over_symbols): New member function.
8368 (LA_ITERATE_OVER_SYMBOLS): Update.
8369 * linespec.c (iterate_over_all_matching_symtabs): Update.
8370 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8371 initializer.
8372 * objc-lang.c (objc_language_data): Likewise.
8373 * opencl-lang.c (opencl_language_data): Likewise.
8374 * p-lang.c (pascal_language_data): Likewise.
8375 * rust-lang.c (rust_language_data): Likewise.
8376
8377 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * ada-lang.c (ada_language_data): Delete
8380 la_lookup_transparent_type initializer.
8381 * c-lang.c (c_language_data): Likewise.
8382 (cplus_language_data): Likewise.
8383 (cplus_language::lookup_transparent_type): New member function.
8384 (asm_language_data): Delete la_lookup_transparent_type
8385 initializer.
8386 (minimal_language_data): Likewise.
8387 * d-lang.c (d_language_data): Likewise.
8388 * f-lang.c (f_language_data): Likewise.
8389 * go-lang.c (go_language_data): Likewise.
8390 * language.c (unknown_language_data): Likewise.
8391 (auto_language_data): Likewise.
8392 * language.h (struct language_data): Delete
8393 la_lookup_transparent_type field.
8394 (language_defn::lookup_transparent_type): New member function.
8395 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8396 initializer.
8397 * objc-lang.c (objc_language_data): Likewise.
8398 * opencl-lang.c (opencl_language_data): Likewise.
8399 * p-lang.c (pascal_language_data): Likewise.
8400 * rust-lang.c (rust_language_data): Likewise.
8401 * symtab.c (symbol_matches_domain): Update call.
8402
8403 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8404
8405 * ada-lang.c (ada_language_arch_info): Delete function, move
8406 implementation to...
8407 (ada_language::language_arch_info): ...here, a new member
8408 function.
8409 (ada_language_data): Delete la_language_arch_info.
8410 * c-lang.c (c_language_data): Likewise.
8411 (c_language::language_arch_info): New member function.
8412 (cplus_language_arch_info): Delete function, move
8413 implementation to...
8414 (cplus_language::language_arch_info): ...here, a new member
8415 function.
8416 (cplus_language_data): Delete la_language_arch_info.
8417 (asm_language_data): Likewise.
8418 (asm_language::language_arch_info): New member function.
8419 (minimal_language_data): Delete la_language_arch_info.
8420 (minimal_language::language_arch_info): New member function.
8421 * d-lang.c (d_language_arch_info): Delete function, move
8422 implementation to...
8423 (d_language::language_arch_info): ...here, a new member
8424 function.
8425 (d_language_data): Delete la_language_arch_info.
8426 * f-lang.c (f_language_arch_info): Delete function, move
8427 implementation to...
8428 (f_language::language_arch_info): ...here, a new member
8429 function.
8430 (f_language_data): Delete la_language_arch_info.
8431 * go-lang.c (go_language_arch_info): Delete function, move
8432 implementation to...
8433 (go_language::language_arch_info): ...here, a new member
8434 function.
8435 (go_language_data): Delete la_language_arch_info.
8436 * language.c (unknown_language_data): Likewise.
8437 (unknown_language::language_arch_info): New member function.
8438 (auto_language_data): Delete la_language_arch_info.
8439 (auto_language::language_arch_info): New member function.
8440 (language_gdbarch_post_init): Update call to
8441 la_language_arch_info.
8442 * language.h (language_data): Delete la_language_arch_info
8443 function pointer.
8444 (language_defn::language_arch_info): New function.
8445 * m2-lang.c (m2_language_arch_info): Delete function, move
8446 implementation to...
8447 (m2_language::language_arch_info): ...here, a new member
8448 function.
8449 (m2_language_data): Delete la_language_arch_info.
8450 * objc-lang.c (objc_language_arch_info): Delete function, move
8451 implementation to...
8452 (objc_language::language_arch_info): ...here, a new member
8453 function.
8454 (objc_language_data): Delete la_language_arch_info.
8455 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8456 implementation to...
8457 (opencl_language::language_arch_info): ...here, a new member
8458 function.
8459 (opencl_language_data): Delete la_language_arch_info.
8460 * p-lang.c (pascal_language_arch_info): Delete function, move
8461 implementation to...
8462 (pascal_language::language_arch_info): ...here, a new member
8463 function.
8464 (pascal_language_data): Delete la_language_arch_info.
8465 * rust-lang.c (rust_language_arch_info): Delete function, move
8466 implementation to...
8467 (rust_language::language_arch_info): ...here, a new member
8468 function.
8469 (rust_language_data): Delete la_language_arch_info.
8470
8471 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8472
8473 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8474 initializer.
8475 * c-lang.c (c_language_data): Likewise.
8476 (cplus_language_data): Likewise.
8477 (cplus_language::pass_by_reference_info): New method.
8478 (asm_language_data): Delete la_pass_by_reference initializer.
8479 (minimal_language_data): Likewise.
8480 * cp-abi.c (cp_pass_by_reference): Remove use of
8481 default_pass_by_reference.
8482 * d-lang.c (d_language_data): Likewise.
8483 * f-lang.c (f_language_data): Likewise.
8484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8485 default_pass_by_reference.
8486 * go-lang.c (go_language_data): Likewise.
8487 * language.c (language_pass_by_reference): Update.
8488 (default_pass_by_reference): Delete.
8489 (unknown_language_data): Delete la_pass_by_reference
8490 initializer.
8491 (auto_language_data): Likewise.
8492 * language.h (struct language_data): Delete la_pass_by_reference
8493 field.
8494 (language_defn::pass_by_reference_info): New member function.
8495 (default_pass_by_reference): Delete declaration.
8496 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8497 initializer.
8498 * objc-lang.c (objc_language_data): Likewise.
8499 * opencl-lang.c (opencl_language_data): Likewise.
8500 * p-lang.c (pascal_language_data): Likewise.
8501 * rust-lang.c (rust_language_data): Likewise.
8502
8503 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * ada-lang.c (ada_read_var_value): Delete function, move
8506 implementation to...
8507 (ada_language::read_var_value): ...here.
8508 (ada_language_data): Delete la_read_var_value initializer.
8509 * c-lang.c (c_language_data): Likewise.
8510 (cplus_language_data): Likewise.
8511 (minimal_language_data): Likewise.
8512 * d-lang.c (d_language_data): Likewise.
8513 * f-lang.c (f_language_data): Likewise.
8514 * findvar.c (default_read_var_value): Rename to...
8515 (language_defn::read_var_value): ...this.
8516 * findvar.c (read_var_value): Update header comment, and change to
8517 call member function instead of function pointer.
8518 * go-lang.c (go_language_data): Likewise.
8519 * language.c (unknown_language_data): Delete la_read_var_value
8520 initializer.
8521 (auto_language_data): Likewise.
8522 * language.h (struct language_data): Delete la_read_var_value
8523 field.
8524 (language_defn::read_var_value): New member function.
8525 (default_read_var_value): Delete declaration.
8526 * m2-lang.c (m2_language_data): Delete la_read_var_value
8527 initializer.
8528 * objc-lang.c (objc_language_data): Likewise.
8529 * opencl-lang.c (opencl_language_data): Likewise.
8530 * p-lang.c (pascal_language_data): Likewise.
8531 * rust-lang.c (rust_language_data): Likewise.
8532 * value.h (default_read_var_value): Delete declaration.
8533
8534 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8535
8536 * ada-lang.c (ada_print_array_index): Delete function, move
8537 implementation to...
8538 (ada_language::print_array_index): ...here.
8539 (ada_language_data): Delete la_print_array_index initializer.
8540 * c-lang.c (c_language_data): Likewise.
8541 (cplus_language_data): Likewise.
8542 (minimal_language_data): Likewise.
8543 * d-lang.c (d_language_data): Likewise.
8544 * f-lang.c (f_language_data): Likewise.
8545 * go-lang.c (go_language_data): Likewise.
8546 * language.c (default_print_array_index): Delete function, move
8547 implementation to...
8548 (language_defn::print_array_index): ...here.
8549 (unknown_language_data): Delete la_print_array_index initializer.
8550 (auto_language_data): Likewise.
8551 * language.h (struct language_data): Delete la_print_array_index
8552 field.
8553 (language_defn::print_array_index): New member function.
8554 (LA_PRINT_ARRAY_INDEX): Update.
8555 (default_print_array_index): Delete declaration.
8556 * m2-lang.c (m2_language_data): Delete la_print_array_index
8557 initializer.
8558 * objc-lang.c (objc_language_data): Likewise.
8559 * opencl-lang.c (opencl_language_data): Likewise.
8560 * p-lang.c (pascal_language_data): Likewise.
8561 * rust-lang.c (rust_language_data): Likewise.
8562
8563 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8564
8565 * gdb/ada-lang.c (ada_language_defn): Convert to...
8566 (ada_language_data): ...this.
8567 (class ada_language): New class.
8568 (ada_language_defn): New static global.
8569 * gdb/c-lang.c (c_language_defn): Convert to...
8570 (c_language_data): ...this.
8571 (class c_language): New class.
8572 (c_language_defn): New static global.
8573 (cplus_language_defn): Convert to...
8574 (cplus_language_data): ...this.
8575 (class cplus_language): New class.
8576 (cplus_language_defn): New static global.
8577 (asm_language_defn): Convert to...
8578 (asm_language_data): ...this.
8579 (class asm_language): New class.
8580 (asm_language_defn): New static global.
8581 (minimal_language_defn): Convert to...
8582 (minimal_language_data): ...this.
8583 (class minimal_language): New class.
8584 (minimal_language_defn): New static global.
8585 * gdb/d-lang.c (d_language_defn): Convert to...
8586 (d_language_data): ...this.
8587 (class d_language): New class.
8588 (d_language_defn): New static global.
8589 * gdb/f-lang.c (f_language_defn): Convert to...
8590 (f_language_data): ...this.
8591 (class f_language): New class.
8592 (f_language_defn): New static global.
8593 * gdb/go-lang.c (go_language_defn): Convert to...
8594 (go_language_data): ...this.
8595 (class go_language): New class.
8596 (go_language_defn): New static global.
8597 * gdb/language.c (unknown_language_defn): Remove declaration.
8598 (current_language): Initialize to nullptr, real initialization is
8599 moved to _initialize_language.
8600 (languages): Delete global.
8601 (language_defn::languages): Define.
8602 (set_language_command): Use language_defn::languages.
8603 (set_language): Likewise.
8604 (range_error): Likewise.
8605 (language_enum): Likewise.
8606 (language_def): Likewise.
8607 (add_set_language_command): Use language_def::languages for the
8608 language list, and language_def to lookup language pointers.
8609 (skip_language_trampoline): Use language_defn::languages.
8610 (unknown_language_defn): Convert to...
8611 (unknown_language_data): ...this.
8612 (class unknown_language): New class.
8613 (unknown_language_defn): New static global.
8614 (auto_language_defn): Convert to...
8615 (auto_language_data): ...this.
8616 (class auto_language): New class.
8617 (auto_language_defn): New static global.
8618 (language_gdbarch_post_init): Use language_defn::languages.
8619 (_initialize_language): Initialize current_language.
8620 * gdb/language.h (struct language_defn): Rename to...
8621 (struct language_data): ...this.
8622 (struct language_defn): New.
8623 (auto_language_defn): Delete.
8624 (unknown_language_defn): Delete.
8625 (minimal_language_defn): Delete.
8626 (ada_language_defn): Delete.
8627 (asm_language_defn): Delete.
8628 (c_language_defn): Delete.
8629 (cplus_language_defn): Delete.
8630 (d_language_defn): Delete.
8631 (f_language_defn): Delete.
8632 (go_language_defn): Delete.
8633 (m2_language_defn): Delete.
8634 (objc_language_defn): Delete.
8635 (opencl_language_defn): Delete.
8636 (pascal_language_defn): Delete.
8637 (rust_language_defn): Delete.
8638 * gdb/m2-lang.c (m2_language_defn): Convert to...
8639 (m2_language_data): ...this.
8640 (class m2_language): New class.
8641 (m2_language_defn): New static global.
8642 * gdb/objc-lang.c (objc_language_defn): Convert to...
8643 (objc_language_data): ...this.
8644 (class objc_language): New class.
8645 (objc_language_defn): New static global.
8646 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8647 (opencl_language_data): ...this.
8648 (class opencl_language): New class.
8649 (opencl_language_defn): New static global.
8650 * gdb/p-lang.c (pascal_language_defn): Convert to...
8651 (pascal_language_data): ...this.
8652 (class pascal_language): New class.
8653 (pascal_language_defn): New static global.
8654 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8655 language pointer, update comment format.
8656 * gdb/rust-lang.c (rust_language_defn): Convert to...
8657 (rust_language_data): ...this.
8658 (class rust_language): New class.
8659 (rust_language_defn): New static global.
8660
8661 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8664 member variable.
8665 <m_stmt_at_address>: New member variable.
8666 (lnp_state_machine::record_line): Don't record some lines, update
8667 tracking of is_stmt at the same address.
8668 (lnp_state_machine::lnp_state_machine): Initialise new member
8669 variables.
8670
8671 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8672
8673 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8674 "-include gnu-nat-mig.h".
8675 * gnu-nat-mig.h: New file.
8676 * gnu-nat.c: Include "gnu-nat-mig.h".
8677 (exc_server, msg_reply_server, notify_server,
8678 process_reply_server): Remove declarations.
8679
8680 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8681
8682 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8683 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8684 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8685 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8686 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8687 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8688 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8689 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8690 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8691 to gnu_nat_target class.
8692 * gnu-nat.c: Likewise.
8693 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8694 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8695 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8696 object.
8697 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8698 instead of `gnu_target'.
8699
8700 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8701
8702 * i386-gnu-tdep.c: Include "gdbcore.h"
8703 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8704 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8705 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8706 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8707 i386_gnu_sigcontext_addr): New functions
8708 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8709 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8710 tdep.
8711
8712 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8713
8714 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8715 before fork_inferior call. Avoid calling it if target_is_pushed returns
8716 true.
8717
8718 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8719
8720 * gnu-nat.h (gnu_target): New variable declaration.
8721 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8722 gnu_target.
8723 * gnu-nat.c (gnu_target): New variable.
8724 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8725 add_thread_silent, and add_thread calls.
8726 (gnu_nat_target::create_inferior): Pass gnu_target to
8727 add_thread_silent, thread_change_ptid call.
8728 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8729 call.
8730
8731 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8732
8733 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8734 (gnu_nat_target::find_memory_regions): Remove unused
8735 `old_address' variable.
8736
8737 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8738
8739 * gnu-nat.c: Include "gdbarch.h".
8740
8741 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8742
8743 * reply_mig_hack.awk (Error return): Cast function through
8744 void *, to bypass compiler function call check.
8745
8746 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8747
8748 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8749 $(srcdir)/reply_mig_hack.awk.
8750
8751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8752
8753 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8754
8755 2020-05-30 Jonny Grant <jg@jguk.org>
8756
8757 * configure.ac (ACX_BUGURL): change bug URL to https.
8758
8759 2020-05-30 Pedro Alves <palves@redhat.com>
8760
8761 * cp-support.c (replace_typedefs_template): New.
8762 (replace_typedefs_qualified_name): Handle
8763 DEMANGLE_COMPONENT_TEMPLATE.
8764
8765 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8768 dwarf2/index-cache.h, dwarf2/index-write.c,
8769 dwarf2/index-write.h, dwarf2/line-header.c,
8770 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8771 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8772 variables and fields from `dwarf2_per_objfile` to just
8773 `per_objfile` throughout.
8774
8775 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8776
8777 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8778 <push_dwarf_reg_entry_value>: Add comment.
8779
8780 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8781 Keith Seitz <keiths@redhat.com>
8782
8783 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8784 instead of PyEval_ReleaseLock.
8785 (class gdbpy_gil): Move to earlier in file.
8786 (finalize_python): Set gdb_python_initialized.
8787 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8788 when not initialized.
8789
8790 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8793 <push_dwarf_reg_entry_value>: Remove assert. Override
8794 per_objfile with caller_per_objfile.
8795
8796 2020-05-28 Tom de Vries <tdevries@suse.de>
8797
8798 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8799 PR gold/15646 workaround to symbol kind "type".
8800
8801 2020-05-27 Tom Tromey <tromey@adacore.com>
8802
8803 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8804
8805 2020-05-27 Tom Tromey <tromey@adacore.com>
8806
8807 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8808 Use htab_find_with_hash.
8809 <add_abbrev>: Remove "abbrev_number" parameter.
8810 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8811 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8812 (hash_abbrev): Add comment.
8813 (abbrev_table::lookup_abbrev): Move to header file.
8814 (abbrev_table::read): Update.
8815
8816 2020-05-27 Tom Tromey <tromey@adacore.com>
8817
8818 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8819 method.
8820 <canonical_name>: New member.
8821 <raw_name>: Rename from "name".
8822 (partial_die_info): Initialize canonical_name.
8823 (scan_partial_symbols): Check raw_name.
8824 (partial_die_parent_scope, partial_die_full_name)
8825 (add_partial_symbol, add_partial_subprogram)
8826 (add_partial_enumeration, load_partial_dies): Use "name" method.
8827 (partial_die_info::name): New method.
8828 (partial_die_info::read, guess_partial_die_structure_name)
8829 (partial_die_info::fixup): Update.
8830
8831 2020-05-27 Tom Tromey <tromey@adacore.com>
8832
8833 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8834 <get_ref_die_offset>: Inline.
8835 <get_ref_die_offset_complaint>: New method.
8836 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8837 (attribute::get_ref_die_offset_complaint): Rename from
8838 get_ref_die_offset. Just issue complaint.
8839
8840 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8841
8842 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8843
8844 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8845
8846 * exec.c (exec_file_attach): Use errno value of first openp failure.
8847
8848 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8849
8850 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8851 Don't close thread handle.
8852
8853 2020-05-27 Tom Tromey <tom@tromey.com>
8854 Simon Marchi <simon.marchi@efficios.com>
8855
8856 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8857 shared_ptr.
8858 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8859 member.
8860 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8861 dwarf2_per_bfd_objfile_data_key>: New globals.
8862 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8863 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8864 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8865 shared.
8866 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8867 short-circuit when sharing.
8868 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8869 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8870
8871 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8874 to...
8875 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8876 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8877
8878 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8879
8880 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8881 build_name_components, find_name_components_bounds>:
8882 Add per_objfile parameter.
8883 (struct mapped_index) <symbol_name_at>: Likewise.
8884 (struct mapped_debug_names): Remove constructor.
8885 <dwarf2_per_objfile>: Remove field.
8886 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8887 (mapped_index_base::find_name_components_bounds,
8888 mapped_index_base::build_name_components,
8889 dw2_expand_symtabs_matching_symbol): Likewise.
8890 (class mock_mapped_index) <symbol_name_at>: Likewise.
8891 (check_match): Likewise.
8892 (check_find_bounds_finds): Likewise.
8893 (test_mapped_index_find_name_component_bounds): Update.
8894 (CHECK_MATCH): Update.
8895 (dw2_expand_symtabs_matching): Update.
8896 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8897 per_objfile parameter.
8898 <find_vec_in_debug_names>: Likewise.
8899 <m_per_objfile>: New field.
8900 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8901 parameter.
8902 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8903 (dw2_debug_names_iterator::next): Update.
8904 (dw2_debug_names_lookup_symbol): Update.
8905 (dw2_debug_names_expand_symtabs_for_function): Update.
8906 (dw2_debug_names_map_matching_symbols): Update.
8907 (dw2_debug_names_expand_symtabs_matching): Update.
8908 (dwarf2_read_debug_names): Update.
8909
8910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8913 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8914 move to dwarf2_per_objfile.
8915 <read_in_chain>: Remove.
8916 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8917 remove_all_cus, age_comp_units>: New methods.
8918 <m_dwarf2_cus>: New member.
8919 (struct dwarf2_per_cu_data) <cu>: Remove.
8920 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8921 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8922 moved to methods of dwarf2_per_objfile.
8923 (dwarf2_clear_marks): Remove.
8924 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8925 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8926 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8927 (dwarf2_per_objfile::remove_all_cus): New.
8928 (class free_cached_comp_units) <~free_cached_comp_units>:
8929 Update.
8930 (load_cu): Update.
8931 (dw2_do_instantiate_symtab): Adjust.
8932 (fill_in_sig_entry_from_dwo_entry): Adjust.
8933 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8934 (cutu_reader::cutu_reader): Likewise.
8935 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8936 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8937 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8938 and dwarf2_per_objfile::age_comp_units.
8939 (load_partial_comp_unit): Update.
8940 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8941 (process_queue): Likewise.
8942 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8943 backlink.
8944 (dwarf2_read_addr_index): Likewise.
8945 (follow_die_offset): Likewise.
8946 (dwarf2_fetch_die_loc_sect_off): Likewise.
8947 (dwarf2_fetch_constant_bytes): Likewise.
8948 (dwarf2_fetch_die_type_sect_off): Likewise.
8949 (follow_die_sig_1): Likewise.
8950 (load_full_type_unit): Likewise.
8951 (read_signatured_type): Likewise.
8952 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8953 (dwarf2_cu::~dwarf2_cu): Remove.
8954 (dwarf2_per_objfile::get_cu): New.
8955 (dwarf2_per_objfile::set_cu): New.
8956 (age_cached_comp_units): Rename to...
8957 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8958 to std::unordered_map.
8959 (free_one_cached_comp_unit): Rename to...
8960 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8961 to std::unordered_map.
8962 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8963 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8964 a dwarf2_per_objfile in data.
8965 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8966 (dwarf2_clear_marks): Remove.
8967
8968 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8969
8970 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8971 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8972 (init_tu_and_read_dwo_dies): Likewise.
8973 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8974 (cutu_reader::cutu_reader): Likewise.
8975 (load_partial_comp_unit): Likewise.
8976 (process_psymtab_comp_unit): Update.
8977 (build_type_psymtabs_1): Update.
8978 (process_skeletonless_type_unit): Update.
8979 (load_full_comp_unit): Update.
8980 (find_partial_die): Update.
8981 (dwarf2_read_addr_index): Update.
8982 (read_signatured_type): Update.
8983
8984 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8985
8986 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8987 m_header_read_in>: New fields.
8988 <get_header>: New method.
8989 * dwarf2/read.c (per_cu_header_read_in): Remove.
8990 (dwarf2_per_cu_data::get_header): New.
8991 (dwarf2_per_cu_data::addr_size): Update.
8992 (dwarf2_per_cu_data::offset_size): Update.
8993 (dwarf2_per_cu_data::ref_addr_size): Update.
8994
8995 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8996
8997 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8998 (dw2_do_instantiate_symtab): Update.
8999 (queue_and_load_all_dwo_tus): Change parameter from
9000 dwarf2_per_cu_data to dwarf2_cu.
9001 (dwarf2_fetch_die_loc_sect_off): Update.
9002 (dwarf2_fetch_constant_bytes): Update.
9003 (dwarf2_fetch_die_type_sect_off): Update.
9004
9005 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9006
9007 * dwarf2/read.c (process_full_comp_unit,
9008 process_full_type_unit): Remove per_cu, per_objfile paramters.
9009 Add dwarf2_cu parameter.
9010 (process_queue): Update.
9011
9012 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9013
9014 * dwarf2/read.c (create_cu_from_index_list): Replace
9015 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9016 (create_cus_from_index_list): Likewise.
9017 (create_cus_from_index): Likewise.
9018 (create_signatured_type_table_from_index): Likewise.
9019 (create_cus_from_debug_names_list): Likewise.
9020 (create_cus_from_debug_names): Likewise.
9021 (dwarf2_read_gdb_index): Update.
9022 (dwarf2_read_debug_names): Update.
9023
9024 2020-05-27 Tom Tromey <tom@tromey.com>
9025 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * dwarf2/read.h (struct dwarf2_per_objfile)
9028 <get_type_for_signatured_type, set_type_for_signatured_type>:
9029 New methods.
9030 <m_type_map>: New member.
9031 (struct signatured_type) <type>: Remove.
9032 * dwarf2/read.c
9033 (dwarf2_per_objfile::get_type_for_signatured_type,
9034 dwarf2_per_objfile::set_type_for_signatured_type): New.
9035 (get_signatured_type): Use new methods.
9036
9037 2020-05-27 Tom Tromey <tom@tromey.com>
9038 Simon Marchi <simon.marchi@efficios.com>
9039
9040 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9041 (struct dwarf2_per_objfile) <type_units>: New member.
9042 <get_type_unit_group_unshareable>: New method.
9043 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9044 num_symtabs, symtabs>: Remove; move to
9045 type_unit_group_unshareable.
9046 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9047 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9048 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9049
9050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * dwarf2/read.h (struct dwarf2_per_cu_data):
9053 <dwarf2_per_objfile>: Remove.
9054 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9055 dwarf2_per_objfile.
9056 (create_signatured_type_table_from_index): Likewise.
9057 (create_signatured_type_table_from_debug_names): Likewise.
9058 (create_debug_type_hash_table): Likewise.
9059 (fill_in_sig_entry_from_dwo_entry): Likewise.
9060 (create_type_unit_group): Likewise.
9061 (read_comp_units_from_section): Likewise.
9062 (create_cus_hash_table): Likewise.
9063
9064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9067 dwarf2_per_cu_data::dwarf2_per_objfile.
9068 (compute_compunit_symtab_includes): Likewise.
9069 (dwarf2_cu::start_symtab): Likewise.
9070
9071 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9074 parameter.
9075 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9076 (read_namespace_alias): Update.
9077 (lookup_die_type): Update.
9078 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9079 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9080 Update.
9081 (disassemble_dwarf_expression): Update.
9082
9083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * dwarf2/read.h (struct dwarf2_queue_item): Add
9086 dwarf2_per_objfile parameter, assign new parameter.
9087 <per_objfile>: New field.
9088 * dwarf2/read.c (free_one_cached_comp_unit): Add
9089 dwarf2_per_objfile parameter.
9090 (queue_comp_unit): Likewise.
9091 (dw2_do_instantiate_symtab): Update.
9092 (process_psymtab_comp_unit): Update.
9093 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9094 (process_imported_unit_die): Update.
9095 (queue_and_load_dwo_tu): Update.
9096 (follow_die_offset): Update.
9097 (follow_die_sig_1): Update.
9098
9099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9102 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9103 (read_call_site_scope): Assign per_objfile.
9104 (dwarf2_per_cu_data::objfile): Remove.
9105 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9106 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9107 dwarf2_per_objfile parameter.
9108 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9109 dwarf2_per_objfile parameter.
9110 (dwarf_expr_reg_to_entry_parameter): Add output
9111 dwarf2_per_objfile parameter.
9112 (locexpr_get_frame_base): Update.
9113 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9114 <push_dwarf_reg_entry_value>: Update.
9115 <call_site_to_target_addr>: Update.
9116 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9117 parameter.
9118 (value_of_dwarf_reg_entry): Update.
9119 (rw_pieced_value): Update.
9120 (indirect_synthetic_pointer): Update.
9121 (dwarf2_evaluate_property): Update.
9122 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9123 parameter.
9124 (locexpr_read_variable): Update.
9125 (locexpr_get_symbol_read_needs): Update.
9126 (loclist_read_variable): Update.
9127
9128 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9131 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9132 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9133 parameter.
9134 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9135 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9136 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9137 parameter.
9138 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9139 sect_variable_value): Add dwarf2_per_objfile parameter.
9140 (class dwarf_evaluate_loc_desc) <dwarf_call,
9141 dwarf_variable_value>: Update.
9142 (fetch_const_value_from_synthetic_pointer): Add
9143 dwarf2_per_objfile parameter.
9144 (fetch_const_value_from_synthetic_pointer): Update.
9145 (coerced_pieced_ref): Update.
9146 (class symbol_needs_eval_context) <dwarf_call,
9147 dwarf_variable_value>: Update.
9148 (dwarf2_compile_expr_to_ax): Update.
9149
9150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9153 parameter.
9154 (dwarf2_evaluate_loc_desc_full): Update.
9155
9156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9159 parameter.
9160 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9161 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9162 dwarf2_per_objfile parameter.
9163 (decode_debug_loc_dwo_addresses): Likewise.
9164 (dwarf2_find_location_expression): Update.
9165 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9166 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9167 parameter.
9168 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9169 parameter.
9170 (locexpr_describe_location_1): Likewise.
9171 (locexpr_describe_location): Update.
9172
9173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9176 Remove.
9177 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9178 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9179 (dwarf2_compile_property_to_c): Update.
9180 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9181 use text offset from objfile.
9182 (locexpr_tracepoint_var_ref): Update.
9183 (locexpr_generate_c_location): Update.
9184 (loclist_describe_location): Update.
9185 (loclist_tracepoint_var_ref): Update.
9186 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9187 dwarf2_per_objfile parameter.
9188 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9189 use text offset from objfile.
9190 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9191
9192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9193
9194 * dwarf2/expr.h (struct dwarf_expr_context)
9195 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9196 <offset>: Remove.
9197 <per_objfile>: New member.
9198 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9199 dwarf2_per_objfile parameter. Don't set offset, set
9200 per_objfile.
9201 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9202 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9203 a dwarf2_per_objfile object instead of an offset.
9204 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9205 constructor.
9206 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9207 to dwarf2_expr_executor constructor. Don't set offset.
9208 (dwarf2_fetch_cfa_info): Update.
9209 (struct dwarf2_frame_cache) <text_offset>: Remove.
9210 <per_objfile>: New field.
9211 (dwarf2_frame_cache): Update.
9212 (dwarf2_frame_prev_register): Update.
9213 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9214 <dwarf_evaluate_loc_desc>: Add constructor.
9215 (dwarf2_evaluate_loc_desc_full): Update.
9216 (dwarf2_locexpr_baton_eval): Update.
9217 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9218 Add constructor.
9219 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9220
9221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9224 addr_sized_int_type>: Move to dwarf2_cu.
9225 <int_type>: Move to dwarf2_per_objfile.
9226 (struct dwarf2_per_objfile) <int_type>: Move here.
9227 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9228 addr_sized_int_type>: Move here.
9229 (read_func_scope): Update.
9230 (read_array_type): Update.
9231 (read_tag_string_type): Update.
9232 (attr_to_dynamic_prop): Update.
9233 (dwarf2_per_cu_data::int_type): Rename to...
9234 (dwarf2_per_objfile::int_type): ... this.
9235 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9236 (dwarf2_cu::addr_sized_int_type): ... this.
9237 (read_subrange_type): Update.
9238 (dwarf2_per_cu_data::addr_type): Rename to...
9239 (dwarf2_cu::addr_type): ... this.
9240 (set_die_type): Update.
9241
9242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9245 data through per_cu->cu.
9246
9247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9250 dwarf2_per_cu_data parameter fo dwarf2_cu.
9251 (lookup_dwo_type_unit): Likewise.
9252 (read_cutu_die_from_dwo): Likewise.
9253 (lookup_dwo_unit): Likewise.
9254 (open_and_init_dwo_file): Likewise.
9255 (lookup_dwo_cutu): Likewise.
9256 (lookup_dwo_comp_unit): Likewise.
9257 (lookup_dwo_type_unit): Likewise.
9258 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9259 (cutu_reader::cutu_reader): Update.
9260
9261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9264 parameter.
9265 (process_full_type_unit): Likewise.
9266 (process_queue): Update.
9267
9268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * dwarf2/read.c (recursively_compute_inclusions): Add
9271 dwarf2_per_objfile parameter.
9272 (compute_compunit_symtab_includes): Likewise.
9273 (process_cu_includes): Update.
9274
9275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9278 parameter.
9279 (create_type_unit_group): Update.
9280 (process_psymtab_comp_unit_reader): Update.
9281 (build_type_psymtabs_reader): Update.
9282
9283 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9286 object through m_this_cu->cu.
9287
9288 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9289
9290 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9291 the info parameter.
9292 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9293
9294 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9295
9296 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9297 per_objfile parameter.
9298 (load_full_type_unit): Add per_objfile parameter.
9299 (read_signatured_type): Likewise.
9300 (load_full_comp_unit): Likewise.
9301 (load_cu): Likewise.
9302 (dw2_do_instantiate_symtab): Likewise.
9303 (dw2_get_file_names): Likewise.
9304 (dw2_map_symtabs_matching_filename): Update.
9305 (dw_expand_symtabs_matching_file_matcher): Update.
9306 (dw2_map_symbol_filenames): Update.
9307 (process_psymtab_comp_unit): Add per_objfile parameter.
9308 (build_type_psymtabs_1): Update.
9309 (process_skeletonless_type_unit): Update.
9310 (dwarf2_build_psymtabs_hard): Update.
9311 (load_partial_comp_unit): Add per_objfile parameter.
9312 (scan_partial_symbols): Update.
9313 (load_full_comp_unit): Add per_objfile parameter.
9314 (process_imported_unit_die): Update.
9315 (create_cus_hash_table): Update.
9316 (find_partial_die): Update.
9317 (dwarf2_read_addr_index): Update.
9318 (follow_die_offset): Update.
9319 (dwarf2_fetch_die_loc_sect_off): Update.
9320 (dwarf2_fetch_constant_bytes): Update.
9321 (dwarf2_fetch_die_type_sect_off): Update.
9322 (follow_die_sig_1): Update.
9323 (load_full_type_unit): Add per_objfile parameter.
9324 (read_signatured_type): Likewise.
9325
9326 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9329 of objfile_name.
9330
9331 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9332
9333 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9334 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9335 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9336 field.
9337 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9338 (create_cus_from_index): Update.
9339 (dwarf2_read_gdb_index): Update.
9340 (create_cus_from_debug_names): Update.
9341 (dwarf2_read_debug_names): Update.
9342 (get_abbrev_section_for_cu): Update.
9343 (create_all_comp_units): Update.
9344 (read_attribute_value): Update.
9345 (get_debug_line_section): Update.
9346 * dwarf2/index-cache.c (index_cache::store): Update.
9347 * dwarf2/index-write.c (save_gdb_index_command): Update.
9348 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9349
9350 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9351
9352 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9353 member.
9354 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9355 dwarf2_per_cu_data::per_bfd.
9356 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9357 (create_type_unit_group): Likewise.
9358 (queue_comp_unit): Remove reference to
9359 per_cu->dwarf2_per_objfile.
9360 (maybe_queue_comp_unit): Likewise.
9361 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9362 (create_cus_hash_table): Assign new field.
9363
9364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * dwarf2/read.c: Replace
9367 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9368 dwarf2_cu->per_objfile throughout.
9369
9370 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9371
9372 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9373 parameter, don't use per_cu->dwarf2_per_objfile.
9374 (dw2_instantiate_symtab): Likewise.
9375 (dw2_find_last_source_symtab): Update.
9376 (dw2_map_expand_apply): Update.
9377 (dw2_lookup_symbol): Update.
9378 (dw2_expand_symtabs_for_function): Update.
9379 (dw2_expand_all_symtabs): Update.
9380 (dw2_expand_symtabs_with_fullname): Update.
9381 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9382 don't use per_cu->dwarf2_per_objfile.
9383 (dw2_expand_marked_cus): Update.
9384 (dw2_find_pc_sect_compunit_symtab): Update.
9385 (dw2_debug_names_lookup_symbol): Update.
9386 (dw2_debug_names_expand_symtabs_for_function): Update.
9387 (dw2_debug_names_map_matching_symbols): Update.
9388 (dwarf2_psymtab::expand_psymtab): Update.
9389
9390 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9391
9392 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9393 <per_objfile>: New member.
9394 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9395 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9396 call to dwarf2_cu.
9397 (cutu_reader::cutu_reader): Update.
9398 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9399
9400 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9401
9402 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9403 struct dwarf2_per_objfile.
9404 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9405 dwarf2_per_bfd.
9406 * dwarf2/read.c (set_die_type): Update.
9407 (get_die_type_at_offset): Update.
9408
9409 2020-05-27 Tom Tromey <tom@tromey.com>
9410 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9413 method.
9414 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9415 get_symtab, set_symtab>: New methods.
9416 <m_symtabs>: New field.
9417 (struct dwarf2_psymtab): Derive from partial_symtab.
9418 <readin_p, get_compunit_symtab>: Declare methods.
9419 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9420 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9421 New methods.
9422 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9423 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9424 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9425 (dw2_symtab_iter_next, dw2_print_stats)
9426 (dw2_expand_symtabs_with_fullname)
9427 (dw2_expand_symtabs_matching_one)
9428 (dw_expand_symtabs_matching_file_matcher)
9429 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9430 (dw2_debug_names_iterator::next)
9431 (dw2_debug_names_map_matching_symbols)
9432 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9433 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9434 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9435 New methods.
9436 (get_compunit_symtab, process_full_comp_unit)
9437 (process_full_type_unit): Update.
9438 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9439
9440 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9441
9442 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9443 then introduce a new dwarf2_per_objfile type.
9444 <read_line_string>: Move to the new dwarf2_per_objfile type.
9445 <objfile>: Likewise.
9446 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9447 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9448 dwarf2_per_objfile->per_bfd.
9449 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9450 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9451 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9452 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9453 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9454 (dwarf2_per_objfile::locate_sections): Rename to...
9455 (dwarf2_per_bfd::locate_sections): ... this.
9456 (dwarf2_per_objfile::get_cutu): Rename to...
9457 (dwarf2_per_bfd::get_cutu): ... this.
9458 (dwarf2_per_objfile::get_cu): Rename to...
9459 (dwarf2_per_bfd::get_cu): ... this.
9460 (dwarf2_per_objfile::get_tu): Rename to...
9461 (dwarf2_per_bfd::get_tu): ... this.
9462 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9463 (dwarf2_per_bfd::allocate_per_cu): ... this.
9464 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9465 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9466 (get_gdb_index_contents_ftype): Change parameter from
9467 dwarf2_per_objfile to dwarf2_per_bfd.
9468 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9469 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9470
9471 2020-05-27 Tom Tromey <tom@tromey.com>
9472 Simon Marchi <simon.marchi@efficios.com>
9473
9474 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9475 (allocate_piece_closure): Set "per_objfile" member.
9476 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9477 (locexpr_describe_location, loclist_describe_location): Use new
9478 member.
9479 * dwarf2/read.c (read_call_site_scope)
9480 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9481 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9482 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9483 handle_data_member_location): Set per_objfile member.
9484 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9485 member.
9486 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9487
9488 2020-05-27 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9491 allocate_signatured_type>: Declare new methods.
9492 <m_num_psymtabs>: New member.
9493 (struct dwarf2_per_cu_data) <index>: New member.
9494 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9495 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9496 (create_cu_from_index_list): Use allocate_per_cu.
9497 (create_signatured_type_table_from_index)
9498 (create_signatured_type_table_from_debug_names)
9499 (create_debug_type_hash_table, add_type_unit)
9500 (read_comp_units_from_section): Use allocate_signatured_type.
9501
9502 2020-05-27 Tom Tromey <tom@tromey.com>
9503
9504 * psymtab.c (partial_map_expand_apply)
9505 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9506 (psym_lookup_global_symbol_language)
9507 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9508 (psym_print_stats, psym_expand_symtabs_for_function)
9509 (psym_map_symbol_filenames, psym_map_matching_symbols)
9510 (psym_expand_symtabs_matching)
9511 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9512 (maintenance_check_psymtabs): Update.
9513 * psympriv.h (struct partial_symtab) <readin_p,
9514 get_compunit_symtab>: Add objfile parameter.
9515 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9516 Likewise.
9517 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9518 get_compunit_symtab>: Likewise.
9519 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9520
9521 2020-05-27 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9524 member.
9525 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9526 (create_cu_from_index_list)
9527 (create_signatured_type_table_from_index)
9528 (create_signatured_type_table_from_debug_names)
9529 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9530 (dwarf2_create_include_psymtab)
9531 (create_debug_type_hash_table, add_type_unit)
9532 (create_type_unit_group, read_comp_units_from_section)
9533 (dwarf2_compute_name, create_cus_hash_table)
9534 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9535 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9536 obstack.
9537 (dw2_get_real_path): Likewise. Change argument to
9538 dwarf2_per_objfile.
9539
9540 2020-05-27 Luis Machado <luis.machado@linaro.org>
9541
9542 PR tdep/26000
9543 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9544 for ldrd (immediate).
9545
9546 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9547
9548 * command.h: Add comment giving the name of class_tui.
9549 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9550 create the fake command for the help for class_tui.
9551
9552 2020-05-26 Tom Tromey <tromey@adacore.com>
9553
9554 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9555 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9556 (val_atr): New function.
9557 (value_val_atr): Use it.
9558 * ada-valprint.c (print_optional_low_bound): Change low bound
9559 handling for enums.
9560 (val_print_packed_array_elements): Don't call discrete_position.
9561 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9562 discrete_position for enum types.
9563 * language.c (default_print_array_index): Change type.
9564 * language.h (struct language_defn) <la_print_array_index>: Add
9565 index_type parameter, change type of index_value.
9566 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9567 (default_print_array_index): Update.
9568 * valprint.c (maybe_print_array_index): Don't call
9569 value_from_longest. Update.
9570 (value_print_array_elements): Don't call discrete_position.
9571
9572 2020-05-26 Tom Tromey <tromey@adacore.com>
9573
9574 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9575 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9576
9577 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9578
9579 PR gdb/13519
9580 * avr-tdep.c (avr_integer_to_address): Return data or code
9581 address accordingly to the second 'type' argument of the
9582 function.
9583
9584 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9585
9586 * infcmd.c, inferior.h: (construct_inferior_arguments):
9587 Moved function from here to gdbsupport/common-inferior.{h,cc}
9588
9589 2020-05-23 Tom Tromey <tom@tromey.com>
9590
9591 Revert commit eca1f90c:
9592 * NEWS: Remove entry for completion styling.
9593 * completer.c (_rl_completion_prefix_display_length): Move
9594 declaration later.
9595 (gdb_fnprint): Revert.
9596 (gdb_display_match_list_1): Likewise.
9597 * cli/cli-style.c (completion_prefix_style)
9598 (completion_difference_style, completion_suffix_style): Remove.
9599 (_initialize_cli_style): Revert.
9600 * cli/cli-style.h (completion_prefix_style)
9601 (completion_difference_style, completion_suffix_style): Don't
9602 declare.
9603
9604 2020-05-24 Pedro Alves <palves@redhat.com>
9605
9606 * symtab.c (completion_list_add_name): Return boolean indication
9607 of whether the symbol matched.
9608 (completion_list_add_symbol): Don't try to remove C++ aliases if
9609 the symbol didn't match in the first place.
9610 * symtab.h (completion_list_add_name): Return bool.
9611
9612 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9613
9614 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9615 type::field.
9616
9617 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9618
9619 GDB 9.2 released.
9620
9621 2020-05-23 Tom Tromey <tom@tromey.com>
9622
9623 * NEWS: Add entry for completion styling.
9624 * completer.c (_rl_completion_prefix_display_length): Move
9625 declaration earlier.
9626 (gdb_fnprint): Use completion_style.
9627 (gdb_display_match_list_1): Likewise.
9628 * cli/cli-style.c (completion_prefix_style)
9629 (completion_difference_style, completion_suffix_style): New
9630 globals.
9631 (_initialize_cli_style): Register new globals.
9632 * cli/cli-style.h (completion_prefix_style)
9633 (completion_difference_style, completion_suffix_style): Declare.
9634
9635 2020-05-23 Pedro Alves <palves@redhat.com>
9636
9637 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9638 (parse_escape): Use ISDIGIT instead of isdigit.
9639 (puts_debug): Use gdb_isprint instead of isprint.
9640 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9641 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9642 ISSPACE instead of isspace.
9643 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9644 instead of isspace.
9645 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9646 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9647 instead of isxdigit and ISDIGIT instead of isdigit.
9648
9649 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * gdbtypes.h (struct type) <field>: New method.
9652 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9653 or type::field.
9654
9655 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9656
9657 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9658 (TYPE_FIELDS): Use type::fields. Change all call sites that
9659 modify the propery to use type::set_fields instead.
9660
9661 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9664 type::num_fields instead.
9665
9666 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9667
9668 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9669 methods.
9670 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9671 that modify the number of fields to use type::set_num_fields
9672 instead.
9673
9674 2020-05-22 Tom Tromey <tromey@adacore.com>
9675
9676 * compile/compile-object-load.h (munmap_list_free): Don't
9677 declare.
9678
9679 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9680
9681 * annotate.c (annotate_source_line): Update return type, add call
9682 to update current symtab and line.
9683 * annotate.h (annotate_source_line): Update return type, and
9684 extend header comment.
9685 * source.c (info_line_command): Check annotation_level before
9686 calling annotate_source_line.
9687 * stack.c (print_frame_info): If calling annotate_source_line
9688 returns true, then don't print any other source line information.
9689
9690 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9693
9694 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9695
9696 * coffread.c (patch_type): Remove NULL check before xfree.
9697 * corefile.c (set_gnutarget): Likewise.
9698 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9699 * exec.c (build_section_table): Likewise.
9700 * remote.c (remote_target::pass_signals): Likewise.
9701 * utils.c (n_spaces): Likewise.
9702 * cli/cli-script.c (document_command): Likewise.
9703 * i386-windows-tdep.c (core_process_module_section): Likewise.
9704 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9705
9706 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * symfile.c (reread_symbols): Clear objfile's section_offsets
9709 vector and section indices, re-compute them by calling
9710 sym_offsets.
9711
9712 2020-05-20 Tom Tromey <tromey@adacore.com>
9713
9714 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9715 (desc_one_bound, desc_index_type): Compute field name.
9716
9717 2020-05-20 Tom de Vries <tdevries@suse.de>
9718
9719 PR symtab/25833
9720 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9721
9722 2020-05-20 Alan Modra <amodra@gmail.com>
9723
9724 PR 25993
9725 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9726 bfd_set_filename.
9727 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9728 passed to bfd_set_filename.
9729 * symfile-mem.c (add_vsyscall_page): Likewise for string
9730 passed to symbol_file_add_from_memory.
9731 (symbol_file_add_from_memory): Make name param a const char* and
9732 don't strdup.
9733
9734 2020-05-20 Alan Modra <amodra@gmail.com>
9735
9736 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9737 rather than accessing bfd->filename directly.
9738 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9739 and use bfd_section_name.
9740 * dwarf2/frame.c (decode_frame_entry): Likewise.
9741 * exec.c (exec_set_section_address): Likewise.
9742 * solib-aix.c (solib_aix_bfd_open): Likewise.
9743 * stap-probe.c (get_stap_base_address): Likewise.
9744 * symfile.c (reread_symbols): Likewise.
9745
9746 2020-05-19 Tom Tromey <tromey@adacore.com>
9747
9748 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9749
9750 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9753
9754 2020-05-19 Pedro Alves <palves@redhat.com>
9755
9756 * NEWS (set exec-file-mismatch): Adjust entry.
9757 * exec.c: Include "build-id.h".
9758 (validate_exec_file): Try to match build IDs instead of filenames.
9759 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9760 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9761 and pass down 'warn_if_slow'.
9762 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9763 gdb_bfd_open_closure to pass it down.
9764 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9765
9766 2020-05-19 Pedro Alves <palves@redhat.com>
9767
9768 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9769 * target.c (target_fileio_open_1): Rename to target_fileio_open
9770 and make extern. Use bool.
9771 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9772 (target_fileio_read_alloc_1): Adjust.
9773 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9774 (target_fileio_open_warn_if_slow): Delete declaration.
9775
9776 2020-05-19 Pedro Alves <palves@redhat.com>
9777
9778 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9779 Adjust all callers.
9780
9781 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9782
9783 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9784 whether disp is negative.
9785
9786 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * symfile.h (struct symfile_segment_data)
9789 <~symfile_segment_data>: Remove.
9790 <segment_info>: Change to std::vector.
9791 * symfile.c (default_symfile_segments): Update.
9792 * elfread.c (elf_symfile_segments): Update.
9793
9794 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9797 <segments>: New.
9798 <segment_bases, segment_sizes>: Remove.
9799 * symfile.c (default_symfile_segments): Update.
9800 * elfread.c (elf_symfile_segments): Update.
9801 * remote.c (remote_target::get_offsets): Update.
9802 * solib-target.c (solib_target_relocate_section_addresses):
9803 Update.
9804
9805 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9806
9807 * symfile.h (struct symfile_segment_data): Initialize fields.
9808 <~symfile_segment_data>: Add.
9809 (symfile_segment_data_up): New.
9810 (struct sym_fns) <sym_segments>: Return a
9811 symfile_segment_data_up.
9812 (default_symfile_segments): Return a symfile_segment_data_up.
9813 (free_symfile_segment_data): Remove.
9814 (get_symfile_segment_data): Return a symfile_segment_data_up.
9815 * symfile.c (default_symfile_segments): Likewise.
9816 (get_symfile_segment_data): Likewise.
9817 (free_symfile_segment_data): Remove.
9818 (symfile_find_segment_sections): Update.
9819 * elfread.c (elf_symfile_segments): Return a
9820 symfile_segment_data_up.
9821 * remote.c (remote_target::get_offsets): Update.
9822 * solib-target.c (solib_target_relocate_section_addresses):
9823 Update.
9824 * symfile-debug.c (debug_sym_segments): Return a
9825 symfile_segment_data_up.
9826
9827 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9828
9829 PR build/25981
9830 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9831 Hardcode register numbers.
9832
9833 PR build/25981
9834 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9835 procfs_find_LDT_entry): Remove.
9836 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9837 procfs_find_LDT_entry): Remove.
9838 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9839 Remove.
9840
9841 2020-05-17 Pedro Alves <palves@redhat.com>
9842 Andrew Burgess <andrew.burgess@embecosm.com>
9843 Keno Fischer <keno@juliacomputing.com>
9844
9845 PR gdb/25741
9846 * breakpoint.c (build_target_condition_list): Update comments.
9847 (build_target_command_list): Update comments and skip matching
9848 locations.
9849 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9850 a separate function. Simplify "set breakpoint auto-hw off"
9851 handling.
9852 (insert_breakpoints): Update comment.
9853 (tracepoint_locations_match): New parameter. For breakpoints,
9854 compare location types too, if the caller wants to.
9855 (handle_automatic_hardware_breakpoints): New functions.
9856 (bp_location_is_less_than): Also sort by location type and
9857 hardware breakpoint length.
9858 (update_global_location_list): Handle "set breakpoint auto-hw on"
9859 here.
9860 (update_breakpoint_locations): Ask breakpoint_locations_match to
9861 ignore location types.
9862
9863 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9866 type::name instead.
9867
9868 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * gdbtypes.h (struct type) <name, set_name>: New methods.
9871 (TYPE_CODE): Use type::name. Change all call sites used to set
9872 the name to use type::set_name instead.
9873
9874 2020-05-16 Tom Tromey <tom@tromey.com>
9875
9876 * top.c (quit_force): Update.
9877 * infrun.c (handle_no_resumed): Update.
9878 * top.h (all_uis): New function.
9879 (ALL_UIS): Remove.
9880
9881 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9884
9885 2020-05-16 Pedro Alves <palves@redhat.com>
9886
9887 * ia64-linux-nat.c
9888 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9889 Declare method.
9890 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9891
9892 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9895 (sparc64_adi_info): Likewise.
9896
9897 2020-05-15 Tom Tromey <tom@tromey.com>
9898
9899 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9900 block_objfile.
9901 (lookup_objfile_from_block): Remove.
9902 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9903 (lookup_global_symbol): Use block_objfile.
9904 * symtab.h (lookup_objfile_from_block): Don't declare.
9905 * printcmd.c (clear_dangling_display_expressions): Use
9906 block_objfile.
9907 * parse.c (operator_check_standard): Use block_objfile.
9908
9909 2020-05-15 Tom Tromey <tom@tromey.com>
9910
9911 * language.c (language_alloc_type_symbol): Set
9912 SYMBOL_SECTION.
9913 * symtab.c (initialize_objfile_symbol): Remove.
9914 (allocate_symbol): Remove.
9915 (allocate_template_symbol): Remove.
9916 * dwarf2/read.c (fixup_go_packaging): Use "new".
9917 (new_symbol): Use "new".
9918 (read_variable): Don't call initialize_objfile_symbol. Use
9919 "new".
9920 (read_func_scope): Use "new".
9921 * xcoffread.c (process_xcoff_symbol): Don't call
9922 initialize_objfile_symbol.
9923 (SYMBOL_DUP): Remove.
9924 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9925 "new".
9926 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9927 (allocate_template_symbol): Don't declare.
9928 (struct symbol): Add copy constructor. Change defaults.
9929 * jit.c (finalize_symtab): Use "new".
9930 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9931 Use "new".
9932 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9933 (common_block_end): Use "new".
9934 * mdebugread.c (parse_symbol): Use "new".
9935 (new_symbol): Likewise.
9936
9937 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9938
9939 * NEWS: Mention changes to help and apropos.
9940
9941 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9942
9943 * command.h (enum command_class): Improve comments, document
9944 that class_alias is for user-defined aliases, give the class
9945 name for each class, remove unused class_xdb.
9946 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9947 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9948 by a precise class.
9949 * infcmd.c (_initialize_infcmd): Likewise.
9950 * reverse.c (_initialize_reverse): Likewise.
9951 * stack.c (_initialize_stack): Likewise.
9952 * symfile.c (_initialize_symfile): Likewise.
9953 * tracepoint.c (_initialize_tracepoint): Likewise.
9954
9955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9956
9957 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9958 when their aliased command is traversed.
9959 (help_cmd): Add fput_command_names_styled call to
9960 output command name and aliases when command has an alias.
9961
9962 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9963
9964 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9965 * cli/cli-decode.c (help_cmd_list): Declare as static,
9966 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9967 a command together with the command.
9968 (fput_command_name_styled, fput_command_names_styled): New functions.
9969 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9970 fput_command_name_styled.
9971 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9972 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9973
9974 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9975
9976 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9977 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9978 * command.h (cmd_show_list): Likewise.
9979 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9980 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9981
9982 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9983
9984 * unittests/command-def-selftests.c (traverse_command_structure):
9985 Verify all commands of a list have the same prefix command and
9986 that only the top cmdlist commands have a null prefix.
9987
9988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9989
9990 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9991 as prefix, not one of its aliases.
9992 (set_cmd_prefix): Remove.
9993 (do_add_cmd): Centralize the setting of the prefix of a command, when
9994 command is defined after its full chain of prefix commands.
9995 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9996 (add_setshow_cmd_full): Likewise.
9997 (update_prefix_field_of_prefixed_commands): New function.
9998 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9999 update_prefix_field_of_prefixed_commands.
10000 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10001 addresses of remote_set_cmdlist and remote_show_cmdlist given
10002 as argument, not the address of an argument.
10003 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10004 * gdb/remote.c (_initialize_remote): Likewise.
10005
10006 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10007
10008 * cli/cli-cmds.c (alias_command): Check for an existing alias
10009 using lookup_cmd_composition, as valid_command_p is too strict
10010 and forbids aliases that are the prefix of an existing alias
10011 or command.
10012 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10013 command is properly recognised as a valid command.
10014
10015 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10016
10017 * unittests/help-doc-selftests.c: Rename to
10018 unittests/command-def-selftests.c
10019 * unittests/command-def-selftests.c (help_doc_tests): Update some
10020 comments.
10021 (command_structure_tests, traverse_command_structure): New namespace
10022 and function.
10023 (command_structure_invariants_tests): New function.
10024 (_initialize_command_def_selftests) Renamed from
10025 _initialize_help_doc_selftests, register command_structure_invariants
10026 selftest.
10027
10028 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10029
10030 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10031 an alias of 'show'.
10032
10033 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10034
10035 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10036 ada_is_fixed_point_type. Update all callers.
10037 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10038 all callers.
10039 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10040 Update all callers.
10041 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10042 print_fixed_point_type. Update all callers.
10043 * ada-valprint.c (ada_value_print_num): Replace call to
10044 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10045
10046 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10047
10048 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10049 processors.
10050 (cpu_supports_bts): Add CV_AMD case.
10051
10052 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10053 Simon Marchi <simon.marchi@efficios.com>
10054
10055 * infrun.c (stop_all_threads): Collect multiple wait events at
10056 each pass.
10057
10058 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10059
10060 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10061 type::code instead.
10062
10063 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10064
10065 * gdbtypes.h (struct type) <code, set_code>: New methods.
10066 (TYPE_CODE): Use type::code. Change all call sites used to set
10067 the code to use type::set_code instead.
10068
10069 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10070 Tom de Vries <tdevries@suse.de>
10071 Pedro Alves <palves@redhat.com>
10072
10073 PR threads/25478
10074 * infrun.c (stop_all_threads): Do NOT ignore
10075 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10076 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10077 received.
10078 (handle_no_resumed): Remove code handling a live inferior with no
10079 threads.
10080 * remote.c (has_single_non_exited_thread): New.
10081 (remote_target::update_thread_list): Do not delete a thread if is
10082 the last thread of the process.
10083 * thread.c (thread_select): Call delete_exited_threads instead of
10084 prune_threads.
10085
10086 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10087
10088 * infrun.c (stop_all_threads): Enable/disable thread events of all
10089 targets. Move a debug message denoting the end of the function
10090 into the SCOPED_EXIT block.
10091
10092 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10093
10094 * process-stratum-target.h: Include <set>.
10095 (all_non_exited_process_targets, switch_to_target_no_thread): New
10096 function declarations.
10097 * process-stratum-target.c (all_non_exited_process_targets)
10098 (switch_to_target_no_thread): New function implementations.
10099
10100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10101
10102 * infrun.c (handle_inferior_event): Extract out a piece of code
10103 into...
10104 (mark_non_executing_threads): ...this new function.
10105
10106 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10107
10108 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10109 use.
10110
10111 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10112
10113 * regcache.c (regcache_read_pc_protected): New function
10114 implementation that returns 0 if the PC cannot read via
10115 'regcache_read_pc'.
10116 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10117 instead of 'regcache_read_pc'.
10118 (keep_going_pass_signal): Ditto.
10119
10120 2020-05-13 Tom Tromey <tromey@adacore.com>
10121
10122 * ada-lang.c (align_value): Remove.
10123 (ada_template_to_fixed_record_type_1): Use align_up.
10124
10125 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10126
10127 * async-event.c: Update the copyright year.
10128 * async-event.h: Update the copyright year.
10129
10130 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10131
10132 * objfiles.h (is_addr_in_objfile,
10133 shared_objfile_contains_address_p): Return bool.
10134 * objfile.c (is_addr_in_objfile,
10135 shared_objfile_contains_address_p): Return bool.
10136
10137 2020-05-11 Tom Tromey <tromey@adacore.com>
10138
10139 * cli/cli-cmds.c (info_command): Restore.
10140 (_initialize_cli_cmds): Use add_prefix_command for "info".
10141 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10142
10143 2020-05-11 Tom Tromey <tromey@adacore.com>
10144
10145 * ada-lang.c (ada_value_primitive_field): Now public.
10146 * ada-lang.h (ada_value_primitive_field): Declare.
10147 * ada-valprint.c (print_field_values): Use
10148 ada_value_primitive_field for wrapper fields.
10149
10150 2020-05-11 Tom de Vries <tdevries@suse.de>
10151
10152 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10153 MODULE_DOMAIN.
10154
10155 2020-05-11 Tom de Vries <tdevries@suse.de>
10156
10157 PR symtab/25941
10158 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10159 with length 0, if not gdb-produced.
10160 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10161
10162 2020-05-09 Tom de Vries <tdevries@suse.de>
10163
10164 PR gdb/25955
10165 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10166 calculation.
10167
10168 2020-05-09 Tom Tromey <tom@tromey.com>
10169
10170 * top.c (server_command): Now bool.
10171 * top.h (server_command): Now bool.
10172
10173 2020-05-08 Tom Tromey <tromey@adacore.com>
10174
10175 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10176 already being processed.
10177
10178 2020-05-08 Tom Tromey <tom@tromey.com>
10179
10180 * printcmd.c (struct display) <next>: Remove.
10181 <display>: New constructor.
10182 <exp_string>: Now a std::string.
10183 <enabled_p>: Now a bool.
10184 (display_number): Move definition earlier.
10185 (displays): Rename from display_chain. Now a std::vector.
10186 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10187 (display_command): Update.
10188 (do_one_display, disable_display)
10189 (enable_disable_display_command, do_enable_disable_display):
10190 Update.
10191 (free_display): Remove.
10192 (clear_displays): Rewrite.
10193 (delete_display): Update.
10194 (map_display_numbers): Use function_view. Remove "data"
10195 parameter. Update.
10196 (do_delete_display): Remove.
10197 (undisplay_command): Update.
10198 (do_one_display, do_displays, disable_display)
10199 (info_display_command): Update.
10200 (do_enable_disable_display): Remove.
10201 (enable_disable_display_command)
10202 (clear_dangling_display_expressions): Update.
10203
10204 2020-05-08 Tom Tromey <tom@tromey.com>
10205
10206 * symtab.c (set_symbol_cache_size)
10207 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10208 (maintenance_print_symbol_cache_statistics): Update.
10209 * symmisc.c (print_symbol_bcache_statistics)
10210 (print_objfile_statistics, maintenance_print_objfiles)
10211 (maintenance_info_symtabs, maintenance_check_symtabs)
10212 (maintenance_expand_symtabs, maintenance_info_line_tables):
10213 Update.
10214 * symfile-debug.c (set_debug_symfile): Update.
10215 * source.c (forget_cached_source_info): Update.
10216 * python/python.c (gdbpy_progspaces): Update.
10217 * psymtab.c (maintenance_info_psymtabs): Update.
10218 * probe.c (parse_probes): Update.
10219 * linespec.c (iterate_over_all_matching_symtabs)
10220 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10221 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10222 * exec.c (exec_target::close): Update.
10223 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10224 * breakpoint.c (print_one_breakpoint_location)
10225 (create_longjmp_master_breakpoint)
10226 (create_std_terminate_master_breakpoint): Update.
10227 * progspace.c (program_spaces): Now a std::vector.
10228 (maybe_new_address_space): Update.
10229 (add_program_space): Remove.
10230 (program_space::program_space): Update.
10231 (remove_program_space): Update.
10232 (number_of_program_spaces): Remove.
10233 (print_program_space, update_address_spaces): Update.
10234 * progspace.h (program_spaces): Change type.
10235 (ALL_PSPACES): Remove.
10236 (number_of_program_spaces): Don't declare.
10237 (struct program_space) <next>: Remove.
10238
10239 2020-05-08 Tom Tromey <tom@tromey.com>
10240
10241 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10242 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10243 (enable_break): Update.
10244 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10245 (frv_fdpic_find_canonical_descriptor): Update.
10246 (frv_fetch_objfile_link_map): Update.
10247 * progspace.c (program_space::free_all_objfiles): Update.
10248 (program_space::solibs): New method.
10249 * progspace.h (struct program_space) <solibs>: New method.
10250 * solist.h (master_so_list): Don't declare.
10251 (ALL_SO_LIBS): Remove.
10252 * solib.h (so_list_head): Remove.
10253 (update_solib_list): Update comment.
10254 * solib.c (master_so_list): Remove.
10255 (solib_used, update_solib_list, solib_add)
10256 (info_sharedlibrary_command, clear_solib)
10257 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10258
10259 2020-05-08 Tom Tromey <tom@tromey.com>
10260
10261 * extension.c (extension_languages): Now a std::array.
10262 (ALL_EXTENSION_LANGUAGES): Remove.
10263 (get_ext_lang_defn, get_ext_lang_of_file)
10264 (eval_ext_lang_from_control_command): Update.
10265 (finish_ext_lang_initialization)
10266 (auto_load_ext_lang_scripts_for_objfile)
10267 (ext_lang_type_printers::ext_lang_type_printers)
10268 (apply_ext_lang_type_printers)
10269 (ext_lang_type_printers::~ext_lang_type_printers)
10270 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10271 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10272 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10273 (get_matching_xmethod_workers, ext_lang_colorize)
10274 (ext_lang_before_prompt): Update.
10275 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10276
10277 2020-05-08 Tom Tromey <tom@tromey.com>
10278
10279 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10280 overload.
10281 <swap_string, m_string>: Remove.
10282 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10283 Update.
10284 * stabsread.c (define_symbol, read_type): Update.
10285 * linespec.c (find_linespec_symbols): Update.
10286 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10287 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10288 * dbxread.c (read_dbx_symtab): Update.
10289 * cp-support.h (cp_canonicalize_string_full)
10290 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10291 Return unique_xmalloc_ptr.
10292 * cp-support.c (inspect_type): Update.
10293 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10294 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10295 Likewise.
10296 * c-typeprint.c (print_name_maybe_canonical): Update.
10297 * break-catch-throw.c (check_status_exception_catchpoint):
10298 Update.
10299
10300 2020-05-08 Tom de Vries <tdevries@suse.de>
10301
10302 * infrun.c (follow_fork): Copy current_line and current_symtab to
10303 child thread.
10304
10305 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * async-event.c (struct async_signal_handler, struct
10308 async_event_handler): Reformat, remove typedef.
10309
10310 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10313 access thistype->main_type->dyn_prop_list directly.
10314
10315 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10318 (remove_dyn_prop): Remove. Update all users to use
10319 type::remove_dyn_prop.
10320 * gdbtypes.c (remove_dyn_prop): Rename to...
10321 (type::remove_dyn_prop): ... this.
10322
10323 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10324
10325 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10326 (add_dyn_prop): Remove. Update all users to use
10327 type::add_dyn_prop.
10328 * gdbtypes.c (add_dyn_prop): Rename to...
10329 (type::add_dyn_prop): ... this.
10330
10331 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10334 (get_dyn_prop): Remove. Update all users to use
10335 type::dyn_prop.
10336 * gdbtypes.c (get_dyn_prop): Rename to...
10337 (type::dyn_prop): ... this.
10338
10339 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10342
10343 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10346 instruction, skip it if it's there.
10347
10348 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10351
10352 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10355 * gdbtypes.c (recursive_dump_type): Remove use of
10356 TYPE_INCOMPLETE.
10357
10358 2020-05-03 Tom Tromey <tom@tromey.com>
10359
10360 * breakpoint.c (catch_command, tcatch_command): Remove.
10361 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10362 add_show_prefix_cmd.
10363 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10364 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10365 Remove.
10366 (add_internal_problem_command): Use add_basic_prefix_cmd,
10367 add_show_prefix_cmd.
10368 * mips-tdep.c (set_mipsfpu_command): Remove.
10369 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10370 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10371 (_initialize_index_cache): Use add_basic_prefix_cmd.
10372 * memattr.c (dummy_cmd): Remove.
10373 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10374 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10375 (_initialize_tui_win): Use add_basic_prefix_cmd,
10376 add_show_prefix_cmd.
10377 * cli/cli-logging.c (set_logging_command): Remove.
10378 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10379 add_show_prefix_cmd.
10380 (show_logging_command): Remove.
10381 * target.c (target_command): Remove.
10382 (add_target): Use add_basic_prefix_cmd.
10383
10384 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10385
10386 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10387
10388 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10389
10390 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10391 info_command.
10392
10393 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10394
10395 * nbsd-nat.c (nbsd_enable_proc_events)
10396 (nbsd_nat_target::post_startup_inferior): Add.
10397 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10398 (nbsd_nat_target::update_thread_list): Rewrite.
10399 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10400 "PTRACE_LWP_CREATE".
10401 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10402
10403 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10404
10405 * stack.c (_initialize_stack): Remove duplicated creation
10406 of "frame" command and "f" alias.
10407
10408 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10409
10410 PR gdb/18706
10411 * gdbtypes.c (check_typedef): Calculate size of array of
10412 stubbed type.
10413
10414 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10415
10416 PR gdb/15559
10417 * i386-tdep.c (i386_push_dummy_call): Call
10418 i386_thiscall_push_dummy_call.
10419 (i386_thiscall_push_dummy_call): New function.
10420 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10421 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10422 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10423
10424 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * gdbarch.sh (do_read): Add shellcheck disable directive for
10427 warning SC2162.
10428
10429 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10432 "referenced but not assigned" warning.
10433
10434 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10435
10436 * gdbarch.sh: Remove code that sets fallbackdefault.
10437
10438 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * gdbarch.sh: Use shell operators && and || instead of
10441 -a and -o.
10442
10443 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * gdbarch.sh: Use $(...) instead of `...`.
10446
10447 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10448
10449 * gdbarch.sh: Use double quotes around variables.
10450
10451 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * gdbarch.sh: Use %s with printf, instead of variables in the
10454 format string.
10455
10456 2020-04-29 Tom Tromey <tromey@adacore.com>
10457
10458 PR ada/25875:
10459 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10460 type fields here.
10461 (read_enumeration_type): Call
10462 update_enumeration_type_from_children later. Update comments.
10463 (process_enumeration_scope): Don't create type fields.
10464
10465 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10466
10467 * nbsd-tdep.c: Include "xml-syscall.h".
10468 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10469
10470 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10471
10472 * nbsd-nat.c: Include "sys/wait.h".
10473 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10474 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10475 (nbsd_nat_target::remove_exec_catchpoint)
10476 (nbsd_nat_target::set_syscall_catchpoint): Add.
10477 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10478 (nbsd_nat_target::insert_exec_catchpoint)
10479 (nbsd_nat_target::remove_exec_catchpoint)
10480 (nbsd_nat_target::set_syscall_catchpoint): Add.
10481 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10482 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10483 `nbsd_get_syscall_number'.
10484
10485 2020-04-29 Tom Tromey <tom@tromey.com>
10486
10487 * stack.c (print_block_frame_labels): Remove.
10488
10489 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10490
10491 PR gdb/17320
10492 * ada-valprint.c (val_print_packed_array_elements): Move array
10493 end bracket to new line.
10494 (ada_val_print_string): Remove extra spaces before first array
10495 element.
10496 * c-valprint.c (c_value_print_array): Likewise.
10497 * m2-valprint.c (m2_print_array_contents): Likewise.
10498 (m2_value_print_inner): Likewise.
10499 * p-valprint.c (pascal_value_print_inner): Likewise.
10500 * valprint.c (generic_val_print_array): Likewise.
10501 (value_print_array_elements): Move first array element and array
10502 end bracket to new line.
10503
10504 2020-04-29 Tom de Vries <tdevries@suse.de>
10505
10506 PR symtab/25889
10507 * linespec.c (find_method): Fix ix calculation.
10508
10509 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10510
10511 * syscalls/update-netbsd.sh: New file.
10512 * syscalls/netbsd.xml: Regenerate.
10513 * data-directory/Makefile.in: Register `netbsd.xml' in
10514 `SYSCALLS_FILES'.
10515
10516 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10517
10518 * syscalls/update-freebsd.sh: Add double quotes.
10519
10520 2020-04-28 Tom Tromey <tom@tromey.com>
10521
10522 * NEWS: Update.
10523 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10524 (cmdpy_init): Allow class_tui.
10525
10526 2020-04-28 Mark Williams <mark@myosotissp.com>
10527
10528 PR gdb/24480
10529 * dwarf2read.c: Add missing assingments to list_in_scope when
10530 start_symtab was already called.
10531
10532 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10533
10534 PR gdb/25881
10535 * dwarf2/read.c (offset_map_type): Use
10536 gdb:hash_enum<sect_offset> as hash function.
10537
10538 2020-04-28 Tom de Vries <tdevries@suse.de>
10539
10540 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10541 with DW_AT_signature.
10542
10543 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10544
10545 * configure.ac: Remove check for fs_base/gs_base in
10546 user_regs_struct.
10547 * configure: Re-generate.
10548 * config.in: Re-generate.
10549 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10550 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10551 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10552
10553 2020-04-27 Luis Machado <luis.machado@linaro.org>
10554
10555 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10556 problematic inline frame unwinding situation.
10557 * frame.c (frame_id_computed_p): New function.
10558 * frame.h (frame_id_computed_p): New prototype.
10559
10560 2020-04-26 Tom Tromey <tom@tromey.com>
10561
10562 * command.h (enum command_class) <class_pseudo>: Remove.
10563
10564 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10565
10566 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10567 and whitespace.
10568
10569 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10570
10571 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10572 `PT_GET_PROCESS_STATE' block.
10573
10574 2020-04-24 Tom Tromey <tom@tromey.com>
10575
10576 * symtab.h (symbol_get_demangled_name): Don't declare.
10577 * symtab.c (symbol_get_demangled_name): Remove.
10578 (general_symbol_info::natural_name)
10579 (general_symbol_info::demangled_name): Update.
10580
10581 2020-04-24 Tom Tromey <tom@tromey.com>
10582
10583 PR rust/25025:
10584 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10585
10586 2020-04-24 Tom Tromey <tom@tromey.com>
10587
10588 PR symtab/12707:
10589 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10590 exists.
10591 (new_symbol): Likewise.
10592 * compile/compile-object-load.c (get_out_value_type): Use
10593 symbol_matches_search_name.
10594
10595 2020-04-24 Tom Tromey <tom@tromey.com>
10596
10597 * dwarf2/read.c (add_partial_symbol): Do not call
10598 compute_and_set_names.
10599
10600 2020-04-24 Tom Tromey <tom@tromey.com>
10601
10602 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10603 overload.
10604
10605 2020-04-24 Tom Tromey <tom@tromey.com>
10606
10607 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10608 (add_psymbol_to_list): New overload. Make old overload call new
10609 one.
10610 * psympriv.h (add_psymbol_to_list): New overload.
10611
10612 2020-04-24 Tom Tromey <tom@tromey.com>
10613
10614 * dwarf2/read.c (partial_die_info::read) <case
10615 DW_AT_linkage_name>: Use value_as_string.
10616 (dwarf2_string_attr): Use value_as_string.
10617 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10618 method.
10619 * dwarf2/attribute.c (attribute::value_as_string): New method.
10620
10621 2020-04-24 Tom Tromey <tom@tromey.com>
10622
10623 * symtab.c (general_symbol_info::natural_name)
10624 (general_symbol_info::demangled_name): Check for language_rust.
10625
10626 2020-04-24 Tom Tromey <tom@tromey.com>
10627
10628 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10629 (dwarf2_physname): ... from here.
10630 (partial_die_info::read): Add Rust "{" hack.
10631
10632 2020-04-24 Tom Tromey <tom@tromey.com>
10633
10634 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10635 method.
10636 (symbol_set_demangled_name): Don't declare.
10637 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10638 symbol_set_demangled_name.
10639 (general_symbol_info::set_language)
10640 (general_symbol_info::compute_and_set_names): Update.
10641 * minsyms.c (minimal_symbol_reader::install): Update.
10642 * dwarf2/read.c (new_symbol): Update.
10643
10644 2020-04-24 Tom Tromey <tromey@adacore.com>
10645
10646 PR python/23662:
10647 * python/py-type.c (convert_field): Handle
10648 FIELD_LOC_KIND_DWARF_BLOCK.
10649 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10650 (typy_get_dynamic): Nw function.
10651 (type_object_getset): Add "dynamic".
10652 * NEWS: Add entry.
10653
10654 2020-04-24 Tom Tromey <tromey@adacore.com>
10655
10656 * ada-typeprint.c (print_choices, print_variant_part)
10657 (print_record_field_types_dynamic): New functions.
10658 (print_record_field_types): Use print_record_field_types_dynamic.
10659
10660 2020-04-24 Tom Tromey <tromey@adacore.com>
10661
10662 * dwarf2/read.c (handle_data_member_location): New overload.
10663 (dwarf2_add_field): Use it.
10664 (decode_locdesc): Add "computed" parameter. Update comment.
10665 * gdbtypes.c (is_dynamic_type_internal): Also look for
10666 FIELD_LOC_KIND_DWARF_BLOCK.
10667 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10668 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10669 virtual base classes.
10670 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10671 FIELD_LOC_KIND_DWARF_BLOCK.
10672
10673 2020-04-24 Tom Tromey <tromey@adacore.com>
10674
10675 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10676 * gdbtypes.c (is_dynamic_type_internal): Check
10677 TYPE_HAS_DYNAMIC_LENGTH.
10678 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10679 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10680 New macros.
10681 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10682 constant.
10683
10684 2020-04-24 Tom Tromey <tromey@adacore.com>
10685
10686 * dwarf2/read.c (struct variant_field): Rewrite.
10687 (struct variant_part_builder): New.
10688 (struct nextfield): Remove "variant" field. Add "offset".
10689 (struct field_info): Add "current_variant_part" and
10690 "variant_parts".
10691 (alloc_discriminant_info): Remove.
10692 (alloc_rust_variant): New function.
10693 (quirk_rust_enum): Update.
10694 (dwarf2_add_field): Set "offset" member. Don't handle
10695 DW_TAG_variant_part.
10696 (offset_map_type): New typedef.
10697 (convert_variant_range, create_one_variant)
10698 (create_one_variant_part, create_variant_parts)
10699 (add_variant_property): New functions.
10700 (dwarf2_attach_fields_to_type): Call add_variant_property.
10701 (read_structure_type): Don't handle DW_TAG_variant_part.
10702 (handle_variant_part, handle_variant): New functions.
10703 (handle_struct_member_die): Use them.
10704 (process_structure_scope): Don't handle variant parts.
10705 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10706 (struct discriminant_info): Remove.
10707 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10708 (struct main_type) <flag_discriminated_union>: Remove.
10709 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10710 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10711 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10712 Update.
10713 * valops.c (value_union_variant): Remove.
10714 * value.h (value_union_variant): Don't declare.
10715
10716 2020-04-24 Tom Tromey <tromey@adacore.com>
10717
10718 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10719 (ada_value_primitive_packed_val): Update.
10720 * ada-valprint.c (ada_value_print_1): Update.
10721 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10722 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10723 just an address. Use evaluate_for_locexpr_baton.
10724 (dwarf2_evaluate_property): Update.
10725 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10726 array_view.
10727 * findvar.c (default_read_var_value): Update.
10728 * gdbtypes.c (compute_variant_fields_inner)
10729 (resolve_dynamic_type_internal): Update.
10730 (resolve_dynamic_type): Change type of valaddr parameter.
10731 * gdbtypes.h (resolve_dynamic_type): Update.
10732 * valarith.c (value_subscripted_rvalue): Update.
10733 * value.c (value_from_contents_and_address): Update.
10734
10735 2020-04-24 Tom Tromey <tromey@adacore.com>
10736
10737 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10738 "push_initial_value" parameter.
10739 (dwarf2_evaluate_property): Likewise.
10740 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10741
10742 2020-04-24 Tom Tromey <tromey@adacore.com>
10743
10744 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10745 (variant::matches, compute_variant_fields_recurse)
10746 (compute_variant_fields_inner, compute_variant_fields): New
10747 functions.
10748 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10749 Use resolved_type after type is made.
10750 (operator==): Add new cases.
10751 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10752 (struct discriminant_range, struct variant, struct variant_part):
10753 New.
10754 (union dynamic_prop_data) <variant_parts, original_type>: New
10755 members.
10756 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10757 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10758 constants.
10759 * value.c (unpack_bits_as_long): Now public.
10760 * value.h (unpack_bits_as_long): Declare.
10761
10762 2020-04-24 Tom Tromey <tromey@adacore.com>
10763
10764 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10765 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10766
10767 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10768
10769 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10770
10771 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10772
10773 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10774 (remove_fork_catchpoint, post_startup_inferior)
10775 (post_attach): Move...
10776 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10777 (remove_fork_catchpoint, post_startup_inferior)
10778 (post_attach): ...here.
10779 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10780 (remove_fork_catchpoint, post_startup_inferior)
10781 (post_attach): Move...
10782 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10783 (remove_fork_catchpoint, post_startup_inferior)
10784 (post_attach): ...here.
10785
10786 2020-04-24 Tom Tromey <tromey@adacore.com>
10787
10788 * nat/windows-nat.h (struct windows_thread_info)
10789 <pc_adjusted>: New member.
10790 * windows-nat.c (windows_fetch_one_register): Check
10791 pc_adjusted.
10792 (windows_nat_target::get_windows_debug_event)
10793 (windows_nat_target::wait): Set pc_adjusted.
10794
10795 2020-04-24 Tom de Vries <tdevries@suse.de>
10796
10797 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10798 Run gdb-add-index inside temp dir.
10799
10800 2020-04-23 Tom Tromey <tromey@adacore.com>
10801
10802 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10803 in loop.
10804
10805 2020-04-23 Luis Machado <luis.machado@linaro.org>
10806
10807 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10808 get_frame_register instead of gdbarch_unwind_pc.
10809
10810 2020-04-23 Tom de Vries <tdevries@suse.de>
10811
10812 * symtab.c (lookup_global_symbol): Prefer def over decl.
10813
10814 2020-04-23 Tom de Vries <tdevries@suse.de>
10815
10816 PR symtab/25807
10817 * block.c (best_symbol, better_symbol): Promote to external.
10818 * block.h (best_symbol, better_symbol): Declare.
10819 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10820 decl.
10821
10822 2020-04-23 Tom Tromey <tromey@adacore.com>
10823
10824 PR ada/25837:
10825 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10826 "const char *", not a "const std::string &".
10827 <name_and_matcher::operator==>: Update.
10828 * unittests/lookup_name_info-selftests.c: Change type of
10829 "result".
10830
10831 2020-04-23 Tom Tromey <tom@tromey.com>
10832
10833 * inferior.h (iterate_over_inferiors): Don't declare.
10834 * inferior.c (iterate_over_inferiors): Remove.
10835 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10836 Remove.
10837 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10838 use iterate_over_inferiors.
10839 (darwin_resume_inferior_it)
10840 (struct resume_inferior_threads_param)
10841 (darwin_resume_inferior_threads_it): Remove.
10842 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10843
10844 2020-04-23 Tom de Vries <tdevries@suse.de>
10845
10846 * blockframe.c (find_pc_partial_function): Use
10847 find_pc_sect_compunit_symtab rather than
10848 objfile->sf->qf->find_pc_sect_compunit_symtab.
10849
10850 2020-04-22 Tom de Vries <tdevries@suse.de>
10851
10852 PR symtab/25764
10853 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10854 in psymtabs.
10855
10856 2020-04-22 Tom de Vries <tdevries@suse.de>
10857
10858 PR symtab/25801
10859 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10860 symtabs.
10861
10862 2020-04-22 Tom de Vries <tdevries@suse.de>
10863
10864 PR symtab/25700
10865 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10866 CU if already created.
10867
10868 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10869
10870 * infrun.c (displaced_step_fixup): Switch to the event_thread
10871 before calling displaced_step_restore, not after.
10872
10873 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10874
10875 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10876 its inferior is not recorded by us.
10877 (record_btrace_target_open): Replace call to
10878 all_non_exited_threads () with call to current_inferior
10879 ()->non_exited_threads ().
10880 (record_btrace_target::stop_recording): Likewise.
10881 (record_btrace_target::close): Likewise.
10882 (record_btrace_target::wait): Likewise.
10883 (record_btrace_target::record_stop_replaying): Likewise.
10884
10885 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10886
10887 * btrace.c (btrace_enable): Throw an error on double enables and
10888 when enabling recording fails.
10889 (btrace_disable): Throw an error if the thread is not recorded.
10890
10891 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10892
10893 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10894 request if we do not have a thread_info.
10895
10896 2020-04-21 Tom de Vries <tdevries@suse.de>
10897
10898 PR gdb/25471
10899 * thread.c
10900 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10901 exception in get_frame_id.
10902
10903 2020-04-20 Tom Tromey <tromey@adacore.com>
10904
10905 * python/python.c (struct gdbpy_event): Mark move constructor as
10906 noexcept.
10907 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10908 constructor as noexcept.
10909 * completer.h (struct completion_result): Mark move constructor as
10910 noexcept.
10911 * completer.c (completion_result::completion_result): Use
10912 initialization style. Don't call reset_match_list.
10913
10914 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10915
10916 * MAINTAINERS (Write After Approval): Add myself.
10917
10918 2020-04-18 Tom Tromey <tom@tromey.com>
10919
10920 * windows-tdep.c (init_w32_command_list)
10921 (w32_prefix_command_valid): Restore.
10922 (_initialize_windows_tdep): Call init_w32_command_list.
10923
10924 2020-04-18 Tom Tromey <tom@tromey.com>
10925
10926 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10927 * value.c (value_fn_field): Update.
10928 * valops.c (find_function_in_inferior)
10929 (value_allocate_space_in_inferior): Update.
10930 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10931 Update.
10932 * tui/tui-source.c (tui_source_window::set_contents): Update.
10933 * symtab.c (lookup_global_or_static_symbol)
10934 (find_function_start_sal_1, skip_prologue_sal)
10935 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10936 * symmisc.c (dump_msymbols, dump_symtab_1)
10937 (maintenance_print_one_line_table): Update.
10938 * symfile.c (init_entry_point_info, section_is_mapped)
10939 (list_overlays_command, simple_read_overlay_table)
10940 (simple_overlay_update_1): Update.
10941 * stap-probe.c (handle_stap_probe): Update.
10942 * stabsread.c (dbx_init_float_type, define_symbol)
10943 (read_one_struct_field, read_enum_type, read_range_type): Update.
10944 * source.c (info_line_command): Update.
10945 * python/python.c (gdbpy_source_objfile_script)
10946 (gdbpy_execute_objfile_script): Update.
10947 * python/py-type.c (save_objfile_types): Update.
10948 * python/py-objfile.c (py_free_objfile): Update.
10949 * python/py-inferior.c (python_new_objfile): Update.
10950 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10951 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10952 (maintenance_check_psymtabs): Update.
10953 * printcmd.c (info_address_command): Update.
10954 * objfiles.h (struct objfile) <arch>: New method, from
10955 get_objfile_arch.
10956 (get_objfile_arch): Don't declare.
10957 * objfiles.c (get_objfile_arch): Remove.
10958 (filter_overlapping_sections): Update.
10959 * minsyms.c (msymbol_is_function): Update.
10960 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10961 (output_nondebug_symbol): Update.
10962 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10963 (mdebug_expand_psymtab): Update.
10964 * machoread.c (macho_add_oso_symfile): Update.
10965 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10966 Update.
10967 * linux-fork.c (checkpoint_command): Update.
10968 * linespec.c (convert_linespec_to_sals): Update.
10969 * jit.c (finalize_symtab): Update.
10970 * infrun.c (insert_exception_resume_from_probe): Update.
10971 * ia64-tdep.c (ia64_find_unwind_table): Update.
10972 * hppa-tdep.c (internalize_unwinds): Update.
10973 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10974 Update.
10975 * gcore.c (call_target_sbrk): Update.
10976 * elfread.c (record_minimal_symbol, elf_symtab_read)
10977 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10978 (elf_gnu_ifunc_resolve_by_got): Update.
10979 * dwarf2/read.c (create_addrmap_from_index)
10980 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10981 (read_debug_names_from_section)
10982 (process_psymtab_comp_unit_reader, add_partial_symbol)
10983 (add_partial_subprogram, process_full_comp_unit)
10984 (read_file_scope, read_func_scope, read_lexical_block_scope)
10985 (read_call_site_scope, dwarf2_ranges_read)
10986 (dwarf2_record_block_ranges, dwarf2_add_field)
10987 (mark_common_block_symbol_computed, read_tag_pointer_type)
10988 (read_tag_string_type, dwarf2_init_float_type)
10989 (dwarf2_init_complex_target_type, read_base_type)
10990 (partial_die_info::read, partial_die_info::read)
10991 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10992 (dwarf2_fetch_die_loc_sect_off): Update.
10993 * dwarf2/loc.c (dwarf2_find_location_expression)
10994 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10995 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10996 (dwarf2_loc_desc_get_symbol_read_needs)
10997 (locexpr_describe_location_piece, locexpr_describe_location_1)
10998 (loclist_describe_location): Update.
10999 * dwarf2/index-write.c (write_debug_names): Update.
11000 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11001 * dtrace-probe.c (dtrace_process_dof): Update.
11002 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11003 (process_one_symbol): Update.
11004 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11005 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11006 (coff_read_enum_type): Update.
11007 * cli/cli-cmds.c (edit_command, list_command): Update.
11008 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11009 * breakpoint.c (create_overlay_event_breakpoint)
11010 (create_longjmp_master_breakpoint)
11011 (create_std_terminate_master_breakpoint)
11012 (create_exception_master_breakpoint, get_sal_arch): Update.
11013 * block.c (block_gdbarch): Update.
11014 * annotate.c (annotate_source_line): Update.
11015
11016 2020-04-17 Tom Tromey <tromey@adacore.com>
11017
11018 * auto-load.c (show_auto_load_cmd): Remove.
11019 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11020 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11021 (maintenance_print_arc_command): Remove.
11022 * tui/tui-win.c (tui_command): Remove.
11023 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11024 * tui/tui-layout.c (tui_layout_command): Remove.
11025 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11026 * python/python.c (user_set_python, user_show_python): Remove.
11027 (_initialize_python): Use add_basic_prefix_cmd,
11028 add_show_prefix_cmd.
11029 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11030 (install_gdb_commands): Use add_basic_prefix_cmd,
11031 add_show_prefix_cmd.
11032 (info_guile_command): Remove.
11033 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11034 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11035 add_show_prefix_cmd.
11036 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11037 Remove do_set and do_show parameters.
11038 * cli/cli-style.c (set_style, show_style): Remove.
11039 (_initialize_cli_style): Use add_basic_prefix_cmd,
11040 add_show_prefix_cmd.
11041 (cli_style_option::add_setshow_commands): Remove do_set and
11042 do_show parameters.
11043 (cli_style_option::add_setshow_commands): Use
11044 add_basic_prefix_cmd, add_show_prefix_cmd.
11045 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11046 (set_style_name): Remove.
11047 * cli/cli-dump.c (dump_command, append_command): Remove.
11048 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11049 (tekhex_dump_command, binary_dump_command)
11050 (binary_append_command): Remove.
11051 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11052 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11053 (init_w32_command_list): Remove; move into ...
11054 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11055 * valprint.c (set_print, show_print, set_print_raw)
11056 (show_print_raw): Remove.
11057 (_initialize_valprint): Use add_basic_prefix_cmd,
11058 add_show_prefix_cmd.
11059 * typeprint.c (set_print_type, show_print_type): Remove.
11060 (_initialize_typeprint): Use add_basic_prefix_cmd,
11061 add_show_prefix_cmd.
11062 * record.c (set_record_command, show_record_command): Remove.
11063 (_initialize_record): Use add_basic_prefix_cmd,
11064 add_show_prefix_cmd.
11065 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11066 add_show_prefix_cmd.
11067 (info_command, show_command, set_debug, show_debug): Remove.
11068 * top.h (set_history, show_history): Don't declare.
11069 * top.c (set_history, show_history): Remove.
11070 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11071 (unset_tdesc_cmd): Remove.
11072 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11073 add_show_prefix_cmd.
11074 * symtab.c (info_module_command): Remove.
11075 (_initialize_symtab): Use add_basic_prefix_cmd.
11076 * symfile.c (overlay_command): Remove.
11077 (_initialize_symfile): Use add_basic_prefix_cmd.
11078 * sparc64-tdep.c (info_adi_command): Remove.
11079 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11080 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11081 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11084 (_initialize_serial): Use add_basic_prefix_cmd,
11085 add_show_prefix_cmd.
11086 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11087 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11088 add_show_prefix_cmd.
11089 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11090 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11093 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11094 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11095 add_show_prefix_cmd.
11096 * remote.c (remote_command, set_remote_cmd): Remove.
11097 (_initialize_remote): Use add_basic_prefix_cmd.
11098 * record-full.c (set_record_full_command)
11099 (show_record_full_command): Remove.
11100 (_initialize_record_full): Use add_basic_prefix_cmd,
11101 add_show_prefix_cmd.
11102 * record-btrace.c (cmd_set_record_btrace)
11103 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11104 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11105 (cmd_show_record_btrace_pt): Remove.
11106 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11107 add_show_prefix_cmd.
11108 * ravenscar-thread.c (set_ravenscar_command)
11109 (show_ravenscar_command): Remove.
11110 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * mips-tdep.c (show_mips_command, set_mips_command)
11113 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 * maint.c (maintenance_command, maintenance_info_command)
11116 (maintenance_check_command, maintenance_print_command)
11117 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11118 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 (show_per_command_cmd): Remove.
11121 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11122 Remove.
11123 (maintenance_show_test_settings_cmd): Remove.
11124 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11125 add_show_prefix_cmd.
11126 * maint-test-options.c (maintenance_test_options_command):
11127 Remove.
11128 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11129 * macrocmd.c (macro_command): Remove
11130 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11131 * language.c (set_check, show_check): Remove.
11132 (_initialize_language): Use add_basic_prefix_cmd,
11133 add_show_prefix_cmd.
11134 * infcmd.c (unset_command): Remove.
11135 (_initialize_infcmd): Use add_basic_prefix_cmd.
11136 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11137 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11138 add_show_prefix_cmd.
11139 * go32-nat.c (go32_info_dos_command): Remove.
11140 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11141 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11142 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11143 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11144 (_initialize_frame): Use add_basic_prefix_cmd,
11145 add_show_prefix_cmd.
11146 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11147 (_initialize_dcache): Use add_basic_prefix_cmd,
11148 add_show_prefix_cmd.
11149 * cp-support.c (maint_cplus_command): Remove.
11150 (_initialize_cp_support): Use add_basic_prefix_cmd.
11151 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11152 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11153 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11154 add_basic_prefix_cmd, add_show_prefix_cmd.
11155 * breakpoint.c (save_command): Remove.
11156 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11157 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11158 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11159 add_show_prefix_cmd.
11160 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11161 (set_ada_command, show_ada_command): Remove.
11162 (_initialize_ada_language): Use add_basic_prefix_cmd,
11163 add_show_prefix_cmd.
11164 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11165
11166 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11167
11168 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11169 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11170
11171 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11172
11173 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11174 warning messages.
11175
11176 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11177
11178 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11179 import table is not at beginning of .idata section.
11180
11181 2020-04-16 Pedro Alves <palves@redhat.com>
11182
11183 * inferior.c (delete_inferior): Use delete operator directly
11184 instead of delete_program_space.
11185 * progspace.c (add_program_space): New, factored out from
11186 program_space::program_space.
11187 (remove_program_space): New, factored out from
11188 delete_program_space.
11189 (program_space::program_space): Remove intro comment. Rewrite.
11190 (program_space::~program_space): Remove intro comment. Call
11191 remove_program_space.
11192 (delete_program_space): Delete.
11193 * progspace.h (program_space::program_space): Make explicit. Move
11194 intro comment here, adjusted.
11195 (program_space::~program_space): Move intro comment here,
11196 adjusted.
11197 (delete_program_space): Remove.
11198
11199 2020-04-16 Tom Tromey <tromey@adacore.com>
11200
11201 * windows-nat.c (windows_nat::handle_access_violation): New
11202 function.
11203 * nat/windows-nat.h (handle_access_violation): Declare.
11204 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11205 windows-nat.c. Call handle_access_violation.
11206
11207 2020-04-16 Tom de Vries <tdevries@suse.de>
11208
11209 PR symtab/25791
11210 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11211 CUs without psymtab.
11212
11213 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11214
11215 * python/python.c (do_start_initialization): Don't call
11216 PyEval_InitThreads for Python 3.9 and beyond.
11217
11218 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11219
11220 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11221 thread functions.
11222 (obsd_nat_target::wait): Likewise.
11223
11224 2020-04-15 Tom Tromey <tromey@adacore.com>
11225
11226 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11227 (DEBUG_EXCEPT): Use debug_printf.
11228
11229 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * completer.c (class completion_tracker::completion_hash_entry)
11232 <hash_name>: New member function.
11233 (completion_tracker::discard_completions): New callback to hash a
11234 completion_hash_entry, pass this to htab_create_alloc.
11235
11236 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11237
11238 * windows-nat.c (windows_make_so): Warn rather than stopping with
11239 an error if realpath() fails.
11240
11241 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11242
11243 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11244 (nbsd_nat_target::info_proc): Add do_status.
11245
11246 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11247 Tom de Vries <tdevries@suse.de>
11248
11249 PR symtab/25718
11250 * psympriv.h (struct partial_symtab::read_symtab)
11251 (struct partial_symtab::expand_psymtab)
11252 (struct partial_symtab::read_dependencies): Update comments.
11253 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11254 read_symtab for includer.
11255 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11256 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11257 (struct dwarf2_include_psymtab::m_readin): Remove.
11258 (struct dwarf2_include_psymtab::includer): New member function.
11259 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11260
11261 2020-04-14 Tom de Vries <tdevries@suse.de>
11262
11263 PR symtab/25720
11264 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11265 with NULL symbol_matcher and lookup_name.
11266 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11267 and lookup_name.
11268 * dwarf2/read.c (dw2_expand_symtabs_matching)
11269 (dw2_debug_names_expand_symtabs_matching): Same.
11270 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11271 Make lookup_name a pointer. Update comment.
11272 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11273 lookup_name being a pointer.
11274 * symfile.c (expand_symtabs_matching): Same.
11275 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11276 * linespec.c (iterate_over_all_matching_symtabs): Same.
11277
11278 2020-04-13 Tom Tromey <tom@tromey.com>
11279
11280 * run-on-main-thread.c: Update include.
11281 * unittests/main-thread-selftests.c: Update include.
11282 * tui/tui-win.c: Update include.
11283 * tui/tui-io.c: Update include.
11284 * tui/tui-interp.c: Update include.
11285 * tui/tui-hooks.c: Update include.
11286 * top.h: Update include.
11287 * top.c: Update include.
11288 * ser-base.c: Update include.
11289 * remote.c: Update include.
11290 * remote-notif.c: Update include.
11291 * remote-fileio.c: Update include.
11292 * record-full.c: Update include.
11293 * record-btrace.c: Update include.
11294 * python/python.c: Update include.
11295 * posix-hdep.c: Update include.
11296 * mingw-hdep.c: Update include.
11297 * mi/mi-main.c: Update include.
11298 * mi/mi-interp.c: Update include.
11299 * main.c: Update include.
11300 * linux-nat.c: Update include.
11301 * interps.c: Update include.
11302 * infrun.c: Update include.
11303 * inf-loop.c: Update include.
11304 * event-top.c: Update include.
11305 * event-loop.c: Move to ../gdbsupport/.
11306 * event-loop.h: Move to ../gdbsupport/.
11307 * async-event.h: Update include.
11308 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11309
11310 2020-04-13 Tom Tromey <tom@tromey.com>
11311
11312 * tui/tui-win.c: Include async-event.h.
11313 * remote.c: Include async-event.h.
11314 * remote-notif.c: Include async-event.h.
11315 * record-full.c: Include async-event.h.
11316 * record-btrace.c: Include async-event.h.
11317 * infrun.c: Include async-event.h.
11318 * event-top.c: Include async-event.h.
11319 * event-loop.h: Move some declarations to async-event.h.
11320 * event-loop.c: Don't include ser-event.h or top.h. Move some
11321 code to async-event.c.
11322 * async-event.h: New file.
11323 * async-event.c: New file.
11324 * Makefile.in (COMMON_SFILES): Add async-event.c.
11325 (HFILES_NO_SRCDIR): Add async-event.h.
11326
11327 2020-04-13 Tom Tromey <tom@tromey.com>
11328
11329 * utils.c (flush_streams): New function.
11330 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11331
11332 2020-04-13 Tom Tromey <tom@tromey.com>
11333
11334 * event-loop.c (handle_file_event): Use warning, not
11335 printf_unfiltered.
11336
11337 2020-04-13 Tom Tromey <tom@tromey.com>
11338
11339 * event-loop.c: Include <chrono>.
11340
11341 2020-04-13 Tom Tromey <tom@tromey.com>
11342
11343 * gdb_select.h: Move to ../gdbsupport/.
11344 * event-loop.c: Update include path.
11345 * top.c: Update include path.
11346 * ser-base.c: Update include path.
11347 * ui-file.c: Update include path.
11348 * ser-tcp.c: Update include path.
11349 * guile/scm-ports.c: Update include path.
11350 * posix-hdep.c: Update include path.
11351 * ser-unix.c: Update include path.
11352 * gdb_usleep.c: Update include path.
11353 * mingw-hdep.c: Update include path.
11354 * inflow.c: Update include path.
11355 * infrun.c: Update include path.
11356 * event-top.c: Update include path.
11357
11358 2020-04-13 Tom Tromey <tom@tromey.com>
11359
11360 * configure: Rebuild.
11361 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11362
11363 2020-04-13 Tom Tromey <tom@tromey.com>
11364
11365 * event-loop.h (start_event_loop): Don't declare.
11366 * event-loop.c (start_event_loop): Move...
11367 * main.c (start_event_loop): ...here. Now static.
11368
11369 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11370
11371 * MAINTAINERS: Update my email address.
11372
11373 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11374
11375 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11376 IP_ALL.
11377
11378 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11379
11380 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11381 (nbsd_nat_target::info_proc): Add do_cmdline.
11382
11383 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11384
11385 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11386 (nbsd_nat_target::info_proc): Add do_cwd.
11387
11388 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11389
11390 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11391
11392 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11393
11394 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11395 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11396 (nbsd_nat_target::info_proc): New functions.
11397 * nbsd-nat.c (kinfo_get_vmmap): New function.
11398 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11399 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11400 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11401 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11402 functions.
11403 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11404 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11405 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11406 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11407 (KINFO_VME_FLAG_GROWS_DOWN): New.
11408
11409 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11410
11411 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11412 bit shift.
11413
11414 2020-04-10 Tom Tromey <tromey@adacore.com>
11415
11416 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11417
11418 2020-04-10 Tom Tromey <tromey@adacore.com>
11419
11420 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11421 separate debug files.
11422
11423 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11424
11425 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11426 Move to...
11427 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11428 ... here.
11429 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11430 Check for STATUS_WX86_BREAKPOINT.
11431 (windows_nat_target::wait): Same.
11432
11433 2020-04-10 Tom de Vries <tdevries@suse.de>
11434
11435 PR cli/25808
11436 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11437
11438 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11439
11440 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11441 (Write After Approval): Remove Tom de Vries.
11442
11443 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11444
11445 revert partially:
11446 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11447
11448 * buildsym.c (record_line): Fix undefined behavior and preserve
11449 lines at eof.
11450
11451 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11452
11453 * auxv.h (svr4_auxv_parse): New.
11454 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11455 and generic_auxv_parse.
11456 (svr4_auxv_parse): Add.
11457 * obsd-tdep.c: Include "auxv.h".
11458 (obsd_auxv_parse): Remove.
11459 (obsd_init_abi): Remove comment.
11460 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11461 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11462 * nbsd-tdep.c: Include "auxv.h".
11463 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11464
11465 2020-04-08 Tom Tromey <tromey@adacore.com>
11466
11467 * nat/windows-nat.h (last_wait_event): Don't declare.
11468 (wait_for_debug_event): Update comment.
11469 * nat/windows-nat.c (last_wait_event): Now static.
11470
11471 2020-04-08 Tom Tromey <tromey@adacore.com>
11472
11473 * windows-nat.c (wait_for_debug_event): Move to
11474 nat/windows-nat.c.
11475 * nat/windows-nat.h (wait_for_debug_event): Declare.
11476 * nat/windows-nat.c (wait_for_debug_event): Move from
11477 windows-nat.c. No longer static.
11478
11479 2020-04-08 Tom Tromey <tromey@adacore.com>
11480
11481 * windows-nat.c (get_windows_debug_event): Use
11482 fetch_pending_stop.
11483 * nat/windows-nat.h (fetch_pending_stop): Declare.
11484 * nat/windows-nat.c (fetch_pending_stop): New function.
11485
11486 2020-04-08 Tom Tromey <tromey@adacore.com>
11487
11488 * windows-nat.c (windows_continue): Use matching_pending_stop and
11489 continue_last_debug_event.
11490 * nat/windows-nat.h (matching_pending_stop)
11491 (continue_last_debug_event): Declare.
11492 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11493 (matching_pending_stop, continue_last_debug_event): New
11494 functions.
11495
11496 2020-04-08 Tom Tromey <tromey@adacore.com>
11497
11498 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11499 (handle_exception_result): Move to nat/windows-nat.h.
11500 (DEBUG_EXCEPTION_SIMPLE): Remove.
11501 (windows_nat::handle_ms_vc_exception): New function.
11502 (handle_exception): Move to nat/windows-nat.c.
11503 (get_windows_debug_event): Update.
11504 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11505 nat/windows-nat.c.
11506 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11507 (handle_exception_result): Move from windows-nat.c.
11508 (handle_exception): Declare.
11509 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11510 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11511 windows-nat.c.
11512
11513 2020-04-08 Tom Tromey <tromey@adacore.com>
11514
11515 * windows-nat.c (exception_count, event_count): Remove.
11516 (handle_exception, get_windows_debug_event)
11517 (do_initial_windows_stuff): Update.
11518
11519 2020-04-08 Tom Tromey <tromey@adacore.com>
11520
11521 * windows-nat.c (windows_nat::handle_load_dll)
11522 (windows_nat::handle_unload_dll): Rename. No longer static.
11523 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11524 Declare.
11525
11526 2020-04-08 Tom Tromey <tromey@adacore.com>
11527
11528 * complaints.h (stop_whining): Declare at top-level.
11529 (complaint): Don't declare stop_whining.
11530
11531 2020-04-08 Tom Tromey <tromey@adacore.com>
11532
11533 * windows-nat.c (windows_nat::handle_output_debug_string):
11534 Rename. No longer static.
11535 * nat/windows-nat.h (handle_output_debug_string): Declare.
11536
11537 2020-04-08 Tom Tromey <tromey@adacore.com>
11538
11539 * windows-nat.c (current_process_handle, current_process_id)
11540 (main_thread_id, last_sig, current_event, last_wait_event)
11541 (current_windows_thread, desired_stop_thread_id, pending_stops)
11542 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11543 (display_selectors, fake_create_process)
11544 (get_windows_debug_event): Update.
11545 * nat/windows-nat.h (current_process_handle, current_process_id)
11546 (main_thread_id, last_sig, current_event, last_wait_event)
11547 (current_windows_thread, desired_stop_thread_id, pending_stops)
11548 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11549 * nat/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 (siginfo_er): New globals. Move from windows-nat.c.
11553
11554 2020-04-08 Tom Tromey <tromey@adacore.com>
11555
11556 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11557 (handle_load_dll): Update.
11558 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11559
11560 2020-04-08 Tom Tromey <tromey@adacore.com>
11561
11562 * windows-nat.c (enum thread_disposition_type): Move to
11563 nat/windows-nat.h.
11564 (windows_nat::thread_rec): Rename from thread_rec. No longer
11565 static.
11566 (windows_add_thread, windows_nat_target::fetch_registers)
11567 (windows_nat_target::store_registers, handle_exception)
11568 (windows_nat_target::resume, get_windows_debug_event)
11569 (windows_nat_target::get_tib_address)
11570 (windows_nat_target::thread_name)
11571 (windows_nat_target::thread_alive): Update.
11572 * nat/windows-nat.h (enum thread_disposition_type): Move from
11573 windows-nat.c.
11574 (thread_rec): Declare.
11575
11576 2020-04-08 Tom Tromey <tromey@adacore.com>
11577
11578 * windows-nat.c: Add "using namespace".
11579 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11580 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11581
11582 2020-04-08 Tom Tromey <tromey@adacore.com>
11583
11584 * nat/windows-nat.h (struct windows_thread_info): Declare
11585 destructor.
11586 * nat/windows-nat.c (~windows_thread_info): New.
11587
11588 2020-04-08 Tom Tromey <tromey@adacore.com>
11589
11590 PR gdb/22992
11591 * windows-nat.c (current_event): Update comment.
11592 (last_wait_event, desired_stop_thread_id): New globals.
11593 (struct pending_stop): New.
11594 (pending_stops): New global.
11595 (windows_nat_target) <stopped_by_sw_breakpoint>
11596 <supports_stopped_by_sw_breakpoint>: New methods.
11597 (windows_fetch_one_register): Add assertions. Adjust PC.
11598 (windows_continue): Handle pending stops. Suspend other threads
11599 when stepping. Use last_wait_event
11600 (wait_for_debug_event): New function.
11601 (get_windows_debug_event): Use wait_for_debug_event. Handle
11602 pending stops. Queue spurious stops.
11603 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11604 (windows_nat_target::kill): Use wait_for_debug_event.
11605 * nat/windows-nat.h (struct windows_thread_info)
11606 <stopped_at_software_breakpoint>: New field.
11607 * nat/windows-nat.c (windows_thread_info::resume): Clear
11608 stopped_at_software_breakpoint.
11609
11610 2020-04-08 Tom Tromey <tromey@adacore.com>
11611
11612 * windows-nat.c (enum thread_disposition_type): New.
11613 (thread_rec): Replace "get_context" parameter with "disposition";
11614 change type.
11615 (windows_add_thread, windows_nat_target::fetch_registers)
11616 (windows_nat_target::store_registers, handle_exception)
11617 (windows_nat_target::resume, get_windows_debug_event)
11618 (windows_nat_target::get_tib_address)
11619 (windows_nat_target::thread_name)
11620 (windows_nat_target::thread_alive): Update.
11621
11622 2020-04-08 Tom Tromey <tromey@adacore.com>
11623
11624 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11625 (windows_continue): Use windows_continue::resume.
11626 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11627 resume>: Declare new methods.
11628 * nat/windows-nat.c: New file.
11629 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11630
11631 2020-04-08 Tom Tromey <tromey@adacore.com>
11632
11633 * windows-nat.c (windows_add_thread, windows_delete_thread)
11634 (windows_nat_target::fetch_registers)
11635 (windows_nat_target::store_registers, fake_create_process)
11636 (windows_nat_target::resume, windows_nat_target::resume)
11637 (get_windows_debug_event, windows_nat_target::wait)
11638 (windows_nat_target::pid_to_str)
11639 (windows_nat_target::get_tib_address)
11640 (windows_nat_target::get_ada_task_ptid)
11641 (windows_nat_target::thread_name)
11642 (windows_nat_target::thread_alive): Use lwp, not tid.
11643
11644 2020-04-08 Tom Tromey <tromey@adacore.com>
11645
11646 * windows-nat.c (handle_exception)
11647 (windows_nat_target::thread_name): Update.
11648 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11649 <name>: Now unique_xmalloc_ptr.
11650
11651 2020-04-08 Tom Tromey <tromey@adacore.com>
11652
11653 * windows-nat.c (thread_rec)
11654 (windows_nat_target::fetch_registers): Update.
11655 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11656 Update comment.
11657 <debug_registers_changed, reload_context>: Now bool.
11658
11659 2020-04-08 Tom Tromey <tromey@adacore.com>
11660
11661 * windows-nat.c (windows_add_thread): Use new.
11662 (windows_init_thread_list, windows_delete_thread): Use delete.
11663 (get_windows_debug_event): Update.
11664 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11665 destructor, and initializers.
11666
11667 2020-04-08 Tom Tromey <tromey@adacore.com>
11668
11669 * windows-nat.c (struct windows_thread_info): Remove.
11670 * nat/windows-nat.h: New file.
11671
11672 2020-04-08 Tom Tromey <tromey@adacore.com>
11673
11674 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11675 (thread_rec, windows_add_thread, windows_delete_thread)
11676 (windows_continue): Update.
11677
11678 2020-04-08 Tom Tromey <tromey@adacore.com>
11679
11680 * windows-nat.c (struct windows_thread_info): Remove typedef.
11681 (thread_head): Remove.
11682 (thread_list): New global.
11683 (thread_rec, windows_add_thread, windows_init_thread_list)
11684 (windows_delete_thread, windows_continue): Update.
11685
11686 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11687
11688 * windows-tdep.h (windows_init_abi): Add comment.
11689 (cygwin_init_abi): New declaration.
11690 * windows-tdep.c: Split signal enumeration in two, one for
11691 Windows and one for Cygwin.
11692 (windows_gdb_signal_to_target): Only deal with signal of the
11693 Windows OS ABI.
11694 (cygwin_gdb_signal_to_target): New function.
11695 (windows_init_abi): Rename to windows_init_abi_common, don't set
11696 gdb_signal_to_target gdbarch method. Add new new function with
11697 this name.
11698 (cygwin_init_abi): New function.
11699 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11700 comment. Don't call windows_init_abi.
11701 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11702 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11703 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11704 i386_windows_init_abi_common, don't call windows_init_abi. Add
11705 a new function of this name.
11706 (i386_cygwin_init_abi): New function.
11707 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11708 OS ABI Cygwin.
11709
11710 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11711
11712 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11713 parameter.c.
11714 (dwarf2_read_gdb_index): Update.
11715
11716 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11717
11718 * nbsd-tdep.c: Include "objfiles.h".
11719 (nbsd_skip_solib_resolver): New.
11720 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11721
11722 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11723
11724 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11725 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11726 with DW_LLE_base_addressx are being emitted in DWARFv5.
11727 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11728 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11729 unsigned integer.
11730
11731 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11732
11733 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11734 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11735 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11736 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11737 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11738 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11739 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11740
11741
11742 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11743
11744 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11745 (read_loclist_index): New function definition.
11746 (lookup_loclist_base): New function definition.
11747 (read_loclist_header): New function definition.
11748 (dwarf2_cu): Add loclist_base and loclist_header field.
11749 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11750 (read_full_die_1): Read the value of DW_AT_loclists_base.
11751 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11752 (read_attribute_value): Handle DW_FORM_loclistx.
11753 (skip_one_die): Handle DW_FORM_loclistx.
11754 (loclist_header): New structure declaration.
11755 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11756
11757 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11758
11759 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11760 constructor. Remove `addr` parameter from other constructor and
11761 add `per_cu` parameter.
11762 * dwarf2/read.c (create_partial_symtab): Update.
11763
11764 2020-04-07 Tom de Vries <tdevries@suse.de>
11765
11766 PR symtab/25796
11767 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11768 (partial_die_info::fixup): Inherit has_const_value.
11769
11770 2020-04-07 Tom de Vries <tdevries@suse.de>
11771
11772 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11773 symbols without address.
11774
11775 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11776
11777 * nbsd-nat.h (struct thread_info): Add forward declaration.
11778 (nbsd_nat_target::thread_alive): Add.
11779 (nbsd_nat_target::thread_name): Likewise.
11780 (nbsd_nat_target::update_thread_list): Likewise.
11781 (update_thread_list::post_attach): Likewise.
11782 (post_attach::pid_to_str): Likewise.
11783 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11784 (nbsd_thread_lister): Add.
11785 (nbsd_nat_target::thread_alive): Likewise.
11786 (nbsd_nat_target::thread_name): Likewise.
11787 (nbsd_add_threads): Likewise.
11788 (update_thread_list::post_attach): Likewise.
11789 (nbsd_nat_target::update_thread_list): Likewise.
11790 (post_attach::pid_to_str): Likewise.
11791
11792 2020-04-06 Tom Tromey <tromey@adacore.com>
11793
11794 * ada-valprint.c (print_variant_part): Extract the variant field.
11795 (print_field_values): Use the field as the outer value when
11796 recursing.
11797
11798 2020-04-06 Tom Tromey <tromey@adacore.com>
11799
11800 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11801 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11802 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11803 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11804 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11805
11806 2020-04-06 Tom Tromey <tromey@adacore.com>
11807
11808 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11809 TYPE_CODE_ERROR.
11810
11811 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11812
11813 * nbsd-tdep.c: Include "gdbarch.h".
11814 Define enum with NetBSD signal numbers.
11815 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11816 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11817 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11818 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11819 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11820 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11821 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11822 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11823 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11824 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11825 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11826 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11827
11828 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11829
11830 PR gdb/25325
11831 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11832
11833 2020-04-03 Tom Tromey <tromey@adacore.com>
11834
11835 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11836 Read constant block.
11837
11838 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11839
11840 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11841 (gdb_bfd_get_full_section_contents): New declaration.
11842 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11843 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11844 gdb_bfd_get_full_section_contents.
11845
11846 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11847
11848 * exec.c (build_section_table): Replace internal_error with
11849 gdb_assert.
11850 (section_table_xfer_memory_partial): Likewise.
11851 * mdebugread.c (parse_partial_symbols): Likewise.
11852 * psymtab.c (lookup_partial_symbol): Likewise.
11853 * utils.c (wrap_here): Likewise.
11854
11855 2020-04-02 Tom Tromey <tromey@adacore.com>
11856
11857 * f-lang.c (build_fortran_types): Use arch_type to initialize
11858 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11859
11860 2020-04-02 Tom Tromey <tromey@adacore.com>
11861
11862 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11863 of attributes.
11864
11865 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11866 Bernd Edlinger <bernd.edlinger@hotmail.de>
11867 Tom Tromey <tromey@adacore.com>
11868
11869 * buildsym.c (buildsym_compunit::record_line): Remove
11870 deduplication code.
11871
11872 2020-04-02 Tom de Vries <tdevries@suse.de>
11873
11874 PR ada/24671
11875 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11876
11877 2020-04-02 Tom de Vries <tdevries@suse.de>
11878
11879 * dwarf2/read.c (dwarf2_gdb_index_functions,
11880 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11881 NULL.
11882 * psymtab.c (psym_lookup_global_symbol_language): New function.
11883 (psym_functions): Init psym_lookup_global_symbol_language with
11884 psym_lookup_global_symbol_language.
11885 * symfile-debug.c (debug_sym_quick_functions): Init
11886 lookup_global_symbol_language with NULL.
11887 * symfile.c (set_initial_language): Remove fixme comment.
11888 * symfile.h (struct quick_symbol_functions): Add
11889 lookup_global_symbol_language.
11890 * symtab.c (find_quick_global_symbol_language): New function.
11891 (find_main_name): Use find_quick_global_symbol_language.
11892
11893 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11894
11895 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11896
11897 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11898
11899 * buildsym.c (record_line): Fix undefined behavior and preserve
11900 lines at eof.
11901
11902 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11903
11904 * buildsym.c (record_line): Fix the resizing condition.
11905
11906 2020-04-01 Tom Tromey <tom@tromey.com>
11907
11908 * value.h (value_literal_complex): Add comment.
11909 * valops.c (value_literal_complex): Refer to value.h.
11910
11911 2020-04-01 Tom Tromey <tom@tromey.com>
11912
11913 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11914 (scalar_type): New rule, from typebase.
11915 (typebase): Use scalar_type. Recognize complex types.
11916 (field_name): Handle FLOAT_KEYWORD.
11917 (ident_tokens): Add _Complex and __complex__.
11918
11919 2020-04-01 Tom Tromey <tom@tromey.com>
11920
11921 PR exp/25299:
11922 * valarith.c (promotion_type, complex_binop): New functions.
11923 (scalar_binop): Handle complex numbers. Use promotion_type.
11924 (value_pos, value_neg, value_complement): Handle complex numbers.
11925
11926 2020-04-01 Tom Tromey <tom@tromey.com>
11927
11928 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11929 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11930 (parse_number): Handle complex numbers.
11931
11932 2020-04-01 Tom Tromey <tom@tromey.com>
11933
11934 * c-valprint.c (c_decorations): Change complex suffix to "i".
11935
11936 2020-04-01 Tom Tromey <tom@tromey.com>
11937
11938 * valprint.c (generic_value_print_complex): Use accessors.
11939 * value.h (value_real_part, value_imaginary_part): Declare.
11940 * valops.c (value_real_part, value_imaginary_part): New
11941 functions.
11942 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11943
11944 2020-04-01 Tom Tromey <tom@tromey.com>
11945
11946 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11947 (read_range_type): Update.
11948 * mdebugread.c (basic_type): Update.
11949 * go-lang.c (build_go_types): Use init_complex_type.
11950 * gdbtypes.h (struct main_type) <complex_type>: New member.
11951 (init_complex_type): Update.
11952 (arch_complex_type): Don't declare.
11953 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11954 Make name if none given. Use alloc_type_copy. Look for cached
11955 complex type.
11956 (arch_complex_type): Remove.
11957 (gdbtypes_post_init): Use init_complex_type.
11958 * f-lang.c (build_fortran_types): Use init_complex_type.
11959 * dwarf2/read.c (read_base_type): Update.
11960 * d-lang.c (build_d_types): Use init_complex_type.
11961 * ctfread.c (read_base_type): Update.
11962
11963 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11964
11965 * infrun.c (stop_all_threads): Update assertion, plus when
11966 stopping threads, take into account that we might be trying
11967 to stop an all-stop target.
11968 (stop_waiting): Call 'stop_all_threads' if there exists a
11969 non-stop target.
11970
11971 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11972
11973 * target.h (exists_non_stop_target): New function declaration.
11974 * target.c (exists_non_stop_target): New function.
11975
11976 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11977
11978 PR gdb/24789
11979 * eval.c (is_integral_or_integral_reference): New function.
11980 (evaluate_subexp_standard): Allow integer references in
11981 pointer arithmetic.
11982
11983 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11984
11985 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11986 check for no ptid in the stop reply when the target is non-stop.
11987
11988 2020-04-01 Tom Tromey <tromey@adacore.com>
11989
11990 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11991 "name" parameter to rvalue reference. Initialize m_name_holder.
11992 <lookup_name_info>: New overloads.
11993 <name>: Return gdb::string_view.
11994 <c_str>: New method.
11995 <make_ignore_params>: Update.
11996 <search_name_hash>: Update.
11997 <language_lookup_name>: Return const char *.
11998 <m_name>: Change type.
11999 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12000 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12001 (lookup_name_info::match_any): Update.
12002 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12003 Update.
12004 * minsyms.c (linkage_name_str): Update.
12005 * language.c (default_symbol_name_matcher): Update.
12006 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12007 Update.
12008 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12009 (ada_lookup_name_info::ada_lookup_name_info): Update.
12010 (literal_symbol_name_matcher): Update.
12011
12012 2020-04-01 Tom Tromey <tromey@adacore.com>
12013
12014 * psymtab.c (psymtab_search_name): Remove function.
12015 (psym_lookup_symbol): Create search name and lookup name here.
12016 (lookup_partial_symbol): Remove "name" parameter; add
12017 lookup_name.
12018 (psym_expand_symtabs_for_function): Update.
12019
12020 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12021
12022 PR tui/25597:
12023 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12024
12025 2020-03-31 Tom Tromey <tromey@adacore.com>
12026
12027 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12028 memcpy.
12029
12030 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12031
12032 * features/riscv/32bit-csr.xml: Regenerated.
12033 * features/riscv/64bit-csr.xml: Regenerated.
12034
12035 2020-03-30 Tom Tromey <tromey@adacore.com>
12036
12037 * ada-valprint.c (print_variant_part): Update.
12038 * ada-lang.h (ada_which_variant_applies): Update.
12039 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12040 outer_valaddr parameters; replace with "outer" value parameter.
12041 (to_fixed_variant_branch_type): Update.
12042
12043 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12044
12045 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12046 <list>. Remove inclusion of observable.h.
12047 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12048 (struct arch_lwp_info): New struct.
12049 (class ppc_linux_dreg_interface): New class.
12050 (struct ppc_linux_process_info): New struct.
12051 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12052 <low_new_clone, low_forget_process, low_prepare_to_resume>
12053 <copy_thread_dreg_state, mark_thread_stale>
12054 <mark_debug_registers_changed, register_hw_breakpoint>
12055 <clear_hw_breakpoint, register_wp, clear_wp>
12056 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12057 <num_memory_accesses, get_trigger_type>
12058 <create_watchpoint_request, hwdebug_point_cmp>
12059 <init_arch_lwp_info, get_arch_lwp_info>
12060 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12061 methods.
12062 <struct ptid_hash>: New inner struct.
12063 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12064 members.
12065 (saved_dabr_value, hwdebug_info, max_slots_number)
12066 (struct hw_break_tuple, struct thread_points, ppc_threads)
12067 (have_ptrace_hwdebug_interface)
12068 (hwdebug_find_thread_points_by_tid)
12069 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12070 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12071 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12072 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12073 use m_dreg_interface.
12074 (hwdebug_point_cmp): Change to...
12075 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12076 reference arguments instead of pointers.
12077 (ppc_linux_nat_target::ranged_break_num_registers): Use
12078 m_dreg_interface.
12079 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12080 m_dreg_interface. Call register_hw_breakpoint.
12081 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12082 m_dreg_interface. Call clear_hw_breakpoint.
12083 (get_trigger_type): Change to...
12084 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12085 comment.
12086 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12087 use m_dreg_interface. Call register_hw_breakpoint.
12088 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12089 use m_dreg_interface. Call clear_hw_breakpoint.
12090 (can_use_watchpoint_cond_accel): Change to...
12091 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12092 method. Update comment, use m_dreg_interface and
12093 m_process_info.
12094 (calculate_dvc): Change to...
12095 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12096 m_dreg_interface.
12097 (num_memory_accesses): Change to...
12098 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12099 (check_condition): Change to...
12100 (ppc_linux_nat_target::check_condition): ...this method.
12101 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12102 comment, use m_dreg_interface.
12103 (create_watchpoint_request): Change to...
12104 (ppc_linux_nat_target::create_watchpoint_request): ...this
12105 method. Use m_dreg_interface.
12106 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12107 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12108 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12109 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12110 (ppc_linux_nat_target::low_forget_process)
12111 (ppc_linux_nat_target::low_new_fork)
12112 (ppc_linux_nat_target::low_new_clone)
12113 (ppc_linux_nat_target::low_delete_thread)
12114 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12115 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12116 only call mark_thread_stale.
12117 (ppc_linux_thread_exit): Remove.
12118 (ppc_linux_nat_target::stopped_data_address): Change to...
12119 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12120 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12121 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12122 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12123 comment. Call low_stopped_data_address.
12124 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12125 m_dreg_interface.
12126 (ppc_linux_nat_target::masked_watch_num_registers): Use
12127 m_dreg_interface.
12128 (ppc_linux_nat_target::copy_thread_dreg_state)
12129 (ppc_linux_nat_target::mark_thread_stale)
12130 (ppc_linux_nat_target::mark_debug_registers_changed)
12131 (ppc_linux_nat_target::register_hw_breakpoint)
12132 (ppc_linux_nat_target::clear_hw_breakpoint)
12133 (ppc_linux_nat_target::register_wp)
12134 (ppc_linux_nat_target::clear_wp)
12135 (ppc_linux_nat_target::init_arch_lwp_info)
12136 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12137 (_initialize_ppc_linux_nat): Remove observer callback.
12138
12139 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12140
12141 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12142 (ppc_linux_nat_target::auxv_parse)
12143 (ppc_linux_nat_target::read_description)
12144 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12145 Move up.
12146
12147 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12148
12149 * linux-nat.h (low_new_clone): New method.
12150 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12151
12152 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12153
12154 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12155 (dbx_expand_psymtab): ... this.
12156 (start_psymtab): Update.
12157 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12158 (mdebug_expand_psymtab): ... this.
12159 (parse_partial_symbols): Update.
12160 (new_psymtab): Update.
12161 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12162 (xcoff_expand_psymtab): ... this.
12163 (xcoff_start_psymtab): Update.
12164
12165 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12166
12167 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12168 <expand_dependencies>: ... this.
12169 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12170 (partial_symtab::expand_dependencies): ... this.
12171 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12172 Update.
12173 (dwarf2_psymtab::expand_psymtab): Update.
12174 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12175 * mdebugread.c (psymtab_to_symtab_1): Update.
12176 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12177
12178 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12179
12180 * psympriv.h (discard_psymtab): Remove.
12181 * dbxread.c (dbx_end_psymtab): Update.
12182 * xcoffread.c (xcoff_end_psymtab): Update.
12183
12184 2020-03-28 Tom Tromey <tom@tromey.com>
12185
12186 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12187 comment.
12188
12189 2020-03-28 Tom Tromey <tom@tromey.com>
12190
12191 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12192
12193 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12194
12195 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12196
12197 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12198
12199 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12200
12201 2020-03-26 Tom Tromey <tom@tromey.com>
12202
12203 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12204 (mark_common_block_symbol_computed, read_tag_string_type)
12205 (attr_to_dynamic_prop, read_subrange_type): Update.
12206 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12207 to be methods on struct attribute.
12208 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12209 (read_call_site_scope, partial_die_info::read)
12210 (partial_die_info::read, lookup_die_type, follow_die_ref):
12211 Update.
12212 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12213 from dwarf2_get_ref_die_offset.
12214 (attribute::constant_value): New method, from
12215 dwarf2_get_attr_constant_value.
12216 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12217 Declare method.
12218 <constant_value>: New method.
12219
12220 2020-03-26 Tom Tromey <tom@tromey.com>
12221
12222 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12223 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12224 (dwarf_type_encoding_name): Move to stringify.c.
12225 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12226 * dwarf2/stringify.c: New file.
12227 * dwarf2/stringify.h: New file.
12228
12229 2020-03-26 Tom Tromey <tom@tromey.com>
12230
12231 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12232 Rewrite.
12233
12234 2020-03-26 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12237 methods.
12238 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12239 (lookup_ranges_base): Likewise.
12240 (read_cutu_die_from_dwo, read_full_die_1): Update.
12241
12242 2020-03-26 Tom Tromey <tom@tromey.com>
12243
12244 * dwarf2/read.c (read_import_statement, read_file_scope)
12245 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12246 (read_lexical_block_scope, read_call_site_scope)
12247 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12248 (handle_struct_member_die, process_structure_scope)
12249 (update_enumeration_type_from_children)
12250 (process_enumeration_scope, read_array_type, read_common_block)
12251 (read_namespace, read_module, read_subroutine_type): Update.
12252 (sibling_die): Remove.
12253
12254 2020-03-26 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12257 (build_type_psymtabs_reader, read_structure_type)
12258 (read_enumeration_type, read_full_die_1): Update.
12259 (dwarf2_attr_no_follow): Move to die.h.
12260 * dwarf2/die.h (struct die_info) <attr>: New method.
12261
12262 2020-03-26 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12265 <base_address>: Now an optional.
12266 (dwarf2_find_base_address, dwarf2_rnglists_process)
12267 (dwarf2_ranges_process, fill_in_loclist_baton)
12268 (dwarf2_symbol_mark_computed): Update.
12269
12270 2020-03-26 Tom Tromey <tom@tromey.com>
12271
12272 * dwarf2/read.c (struct die_info): Move to die.h.
12273 * dwarf2/die.h: New file.
12274
12275 2020-03-26 Tom Tromey <tom@tromey.com>
12276
12277 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12278 * dwarf2/read.c
12279 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12280 Move to line-header.c.
12281 (read_checked_initial_length_and_offset, read_formatted_entries):
12282 Likewise.
12283 (dwarf_decode_line_header): Split into two.
12284 * dwarf2/line-header.c
12285 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12286 Move from read.c.
12287 (read_checked_initial_length_and_offset, read_formatted_entries):
12288 Likewise.
12289 (dwarf_decode_line_header): New function, split from read.c.
12290
12291 2020-03-26 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12294 Declare method.
12295 * dwarf2/read.c (read_attribute_value): Update.
12296 (dwarf2_per_objfile::read_line_string): Rename from
12297 read_indirect_line_string.
12298 (read_formatted_entries): Update.
12299
12300 2020-03-26 Tom Tromey <tom@tromey.com>
12301
12302 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12303 variable.
12304
12305 2020-03-26 Tom Tromey <tom@tromey.com>
12306
12307 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12308 const.
12309 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12310 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12311 parameter const.
12312
12313 2020-03-26 Tom Tromey <tom@tromey.com>
12314
12315 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12316 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12317 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12318 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12319
12320 2020-03-26 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12323 file_names_size, file_full_name, file_file_name>: Use const.
12324 <file_name_at, file_names>: Add const overload.
12325 * dwarf2/line-header.c (line_header::file_file_name)
12326 (line_header::file_full_name): Update.
12327
12328 2020-03-26 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12331 (macro_start_file, consume_improper_spaces)
12332 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12333 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12334 (dwarf_decode_macros): Move to macro.c.
12335 * dwarf2/macro.c: New file.
12336 * dwarf2/macro.h: New file.
12337 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12338
12339 2020-03-26 Tom Tromey <tom@tromey.com>
12340
12341 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12342 method.
12343 * dwarf2/section.c: New method. From
12344 read_indirect_string_at_offset_from.
12345 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12346 (read_indirect_string_at_offset_from): Move to section.c.
12347 (read_indirect_string_at_offset): Rewrite.
12348 (read_indirect_line_string_at_offset): Remove.
12349 (read_indirect_string, read_indirect_line_string)
12350 (dwarf_decode_macro_bytes): Update.
12351
12352 2020-03-26 Tom Tromey <tom@tromey.com>
12353
12354 * dwarf2/section.h (struct dwarf2_section_info)
12355 <overload_complaint>: Declare.
12356 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12357 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12358 Rename from dwarf2_section_buffer_overflow_complaint.
12359 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12360 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12361
12362 2020-03-26 Tom Tromey <tom@tromey.com>
12363
12364 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12365 Declare.
12366 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12367 Move from read.c.
12368 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12369 to section.c.
12370
12371 2020-03-26 Tom Tromey <tom@tromey.com>
12372
12373 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12374
12375 2020-03-26 Tom Tromey <tom@tromey.com>
12376
12377 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12378 "builder".
12379 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12380 parameter.
12381 (dwarf_decode_macros): Update.
12382
12383 2020-03-26 Tom Tromey <tom@tromey.com>
12384
12385 * dwarf2/read.c (read_attribute_value): Update.
12386 (read_indirect_string_from_dwz): Move to dwz.c; change into
12387 method.
12388 (dwarf_decode_macro_bytes): Update.
12389 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12390 * dwarf2/dwz.c: New file.
12391 * Makefile.in (COMMON_SFILES): Add dwz.c.
12392
12393 2020-03-26 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12396 * dwarf2/read.c: Add include.
12397 * dwarf2/index-write.c: Add include.
12398 * dwarf2/index-cache.c: Add include.
12399 * dwarf2/dwz.h: New file.
12400
12401 2020-03-25 Tom Tromey <tom@tromey.com>
12402
12403 * compile/compile-object-load.c (get_out_value_type): Mention
12404 correct symbol name in error message.
12405
12406 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12407
12408 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12409
12410 2020-03-25 Tom de Vries <tdevries@suse.de>
12411
12412 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12413 * symmisc.c (dump_symtab_1): Print user and includes fields.
12414 (maintenance_info_symtabs): Same.
12415
12416 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12417
12418 PR gdb/25534
12419 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12420 (riscv_regcache_cooked_write): New function.
12421 (riscv_push_dummy_call): Use new function.
12422 (riscv_return_value): Likewise.
12423
12424 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12425
12426 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12427 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12428 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12429 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12430 * infrun.c (follow_fork): Likewise.
12431 (follow_fork_inferior): Likewise.
12432 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12433 * linux-nat.h (class linux_nat_target): Likewise.
12434 * remote.c (class remote_target) <follow_fork>: Likewise.
12435 (remote_target::follow_fork): Likewise.
12436 * target-delegates.c: Re-generate.
12437 * target.c (default_follow_fork): Likewise.
12438 (target_follow_fork): Likewise.
12439 * target.h (struct target_ops) <follow_fork>: Likewise.
12440 (target_follow_fork): Likewise.
12441
12442 2020-03-24 Tom de Vries <tdevries@suse.de>
12443
12444 * psymtab.c (maintenance_info_psymtabs): Print user field.
12445
12446 2020-03-20 Tom Tromey <tromey@adacore.com>
12447
12448 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12449 const.
12450 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12451 const.
12452
12453 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12454
12455 * ptrace.m4: Don't check for ptrace declaration.
12456 * config.in: Re-generate.
12457 * configure: Re-generate.
12458 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12459 not defined.
12460
12461 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12462
12463 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12464 `PTRACE_TYPE_RET'.
12465 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12466 * sparc-nat.c (gdb_ptrace): Likewise.
12467 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12468
12469 2020-03-20 Tom Tromey <tromey@adacore.com>
12470
12471 * c-exp.y (lex_one_token): Fix assert.
12472
12473 2020-03-20 Tom Tromey <tromey@adacore.com>
12474
12475 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12476 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12477 strncpy call.
12478
12479 2020-03-20 Tom Tromey <tromey@adacore.com>
12480
12481 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12482
12483 2020-03-20 Tom Tromey <tromey@adacore.com>
12484
12485 * ada-valprint.c (print_variant_part): Remove parameters; switch
12486 to value-based API.
12487 (print_field_values): Likewise.
12488 (ada_val_print_struct_union): Likewise.
12489 (ada_value_print_1): Update.
12490
12491 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12492
12493 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12494 nbsd_nat_target instead of inf_ptrace_target.
12495 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12496 nbsd_nat_target.
12497
12498 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12499
12500 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12501 it to the ptrace call.
12502 * (store_registers): Likewise.
12503
12504 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12505
12506 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12507 it to the ptrace call.
12508 * (store_registers): Likewise.
12509
12510 2020-03-19 Luis Machado <luis.machado@linaro.org>
12511
12512 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12513 valid, fetch vg value from ptrace.
12514
12515 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12516 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12517 * inf-ptrace.c: Likewise.
12518 * (gdb_ptrace): Add.
12519 * (inf_ptrace_target::resume): Update.
12520 * (inf_ptrace_target::xfer_partial): Likewise.
12521 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12522 * (inf_ptrace_peek_poke): Update.
12523
12524 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12525
12526 * x86-bsd-nat.c (gdb_ptrace): New.
12527 * (x86bsd_dr_set): Add new argument `ptid'.
12528 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12529 x86bsd_dr_set_addr): Update.
12530
12531 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12532
12533 * remote.c (remote_target::process_stop_reply): Handle events for
12534 all threads differently.
12535
12536 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12537
12538 * completer.c (completion_tracker::remove_completion): Define new
12539 function.
12540 * completer.h (completion_tracker::remove_completion): Declare new
12541 function.
12542 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12543 when adding a C++ function symbol.
12544
12545 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12546
12547 * completer.c (completion_tracker::completion_hash_entry): Define
12548 new class.
12549 (advance_to_filename_complete_word_point): Call
12550 recompute_lowest_common_denominator.
12551 (completion_tracker::completion_tracker): Call discard_completions
12552 to setup the hash table.
12553 (completion_tracker::discard_completions): Allow for being called
12554 from the constructor, pass new equal function, and element deleter
12555 when constructing the hash table. Initialise new class member
12556 variables.
12557 (completion_tracker::maybe_add_completion): Remove use of
12558 m_entries_vec, and store more information into m_entries_hash.
12559 (completion_tracker::recompute_lcd_visitor): New function, most
12560 content taken from...
12561 (completion_tracker::recompute_lowest_common_denominator):
12562 ...here, this now just visits each item in the hash calling the
12563 above visitor.
12564 (completion_tracker::build_completion_result): Remove use of
12565 m_entries_vec, call recompute_lowest_common_denominator.
12566 * completer.h (completion_tracker::have_completions): Remove use
12567 of m_entries_vec.
12568 (completion_tracker::completion_hash_entry): Declare new class.
12569 (completion_tracker::recompute_lowest_common_denominator): Change
12570 function signature.
12571 (completion_tracker::recompute_lcd_visitor): Declare new function.
12572 (completion_tracker::m_entries_vec): Delete.
12573 (completion_tracker::m_entries_hash): Initialize to NULL.
12574 (completion_tracker::m_lowest_common_denominator_valid): New
12575 member variable.
12576 (completion_tracker::m_lowest_common_denominator_max_length): New
12577 member variable.
12578
12579 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12580
12581 * regformats/regdef.h: Put reg in gdb namespace.
12582
12583 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12584
12585 * i386-bsd-nat.c (gdb_ptrace): New.
12586 * (i386bsd_fetch_inferior_registers,
12587 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12588 * (i386bsd_fetch_inferior_registers,
12589 i386bsd_store_inferior_registers) Use gdb_ptrace.
12590
12591 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12592
12593 * amd64-bsd-nat.c (gdb_ptrace): New.
12594 * (amd64bsd_fetch_inferior_registers,
12595 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12596 * (amd64bsd_fetch_inferior_registers,
12597 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12598
12599 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12600
12601 * user-regs.c (user_reg::read): Rename to...
12602 (user_reg::xread): ...this.
12603 * (append_user_reg): Rename argument `read' to `xread'.
12604 * (user_reg_add_builtin): Likewise.
12605 * (user_reg_add): Likewise.
12606 * (value_of_user_reg): Likewise.
12607
12608 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12609
12610 * sparc-nat.c (gdb_ptrace): New.
12611 * sparc-nat.c (sparc_fetch_inferior_registers)
12612 (sparc_store_inferior_registers) Remove obsolete comment.
12613 * sparc-nat.c (sparc_fetch_inferior_registers)
12614 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12615 * sparc-nat.c (sparc_fetch_inferior_registers)
12616 (sparc_store_inferior_registers) Use gdb_ptrace.
12617
12618 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12619
12620 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12621 it to the ptrace call.
12622 * sh-nbsd-nat.c (store_registers): Likewise.
12623
12624 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12625
12626 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12627 nbsd_nat_target instead of inf_ptrace_target.
12628 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12629 nbsd_nat_target.
12630
12631 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12632
12633 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12634
12635 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12636
12637 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12638 <sys/sysctl.h>.
12639 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12640
12641 2020-03-17 Tom de Vries <tdevries@suse.de>
12642
12643 PR gdb/23710
12644 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12645 fields.
12646 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12647 fields.
12648 (process_imported_unit_die): Skip import of c++ CUs.
12649
12650 2020-03-16 Tom Tromey <tom@tromey.com>
12651
12652 * p-valprint.c (pascal_object_print_value): Initialize
12653 base_value.
12654
12655 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12656 Shahab Vahedi <shahab@synopsys.com>
12657
12658 * Makefile.in: Add arch/arc.o
12659 * configure.tgt: Likewise.
12660 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12661 (_initialize_arc_tdep): Don't initialize old target descriptions.
12662 (arc_read_description): New function to cache target descriptions.
12663 * arc-tdep.h (arc_read_description): Add proto type.
12664 * arch/arc.c: New file.
12665 * arch/arc.h: Likewise.
12666 * features/Makefile: Replace old target descriptions with new.
12667 * features/arc-arcompact.c: Remove.
12668 * features/arc-arcompact.xml: Likewise.
12669 * features/arc-v2.c: Likewise
12670 * features/arc-v2.xml: Likewise
12671 * features/arc/aux-arcompact.xml: New file.
12672 * features/arc/aux-v2.xml: Likewise.
12673 * features/arc/core-arcompact.xml: Likewise.
12674 * features/arc/core-v2.xml: Likewise.
12675 * features/arc/aux-arcompact.c: Generate.
12676 * features/arc/aux-v2.c: Likewise.
12677 * features/arc/core-arcompact.c: Likewise.
12678 * features/arc/core-v2.c: Likewise.
12679 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12680
12681 2020-03-16 Tom Tromey <tromey@adacore.com>
12682
12683 PR gdb/25663:
12684 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12685 putting value into bcache.
12686
12687 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12688
12689 PR gdb/21500
12690 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12691 to...
12692 (amd64_windows_init_abi_common): ... this. Don't set size of
12693 long type.
12694 (amd64_windows_init_abi): New function.
12695 (amd64_cygwin_init_abi): New function.
12696 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12697 the Cygwin OS ABI.
12698 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12699 comment.
12700
12701 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12702
12703 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12704 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12705 (pe_import_directory_entry): New struct type.
12706 (is_linked_with_cygwin_dll): New function.
12707 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12708 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12709 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12710
12711 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12712
12713 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12714 i386_cygwin_core_osabi_sniffer.
12715
12716 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12717
12718 * i386-cygwin-tdep.c: Rename to...
12719 * i386-windows-tdep.c: ... this.
12720 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12721 i386-windows-tdep.c.
12722 * configure.tgt: Likewise.
12723
12724 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12725
12726 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12727 * osabi.c (gdb_osabi_names): Add "Windows".
12728 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12729 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12730 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12731 i386_cygwin_osabi_sniffer.
12732 (_initialize_i386_cygwin_tdep): Register OS ABI
12733 GDB_OSABI_WINDOWS for i386.
12734 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12735 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12736 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12737 for x86-64.
12738 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12739 when the target matches '*-*-mingw*'.
12740
12741 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12742
12743 * defs.h (enum gdb_osabi): Move to...
12744 * osabi.h (enum gdb_osabi): ... here.
12745 * gdbarch.sh: Include osabi.h in gdbarch.h.
12746 * gdbarch.h: Re-generate.
12747
12748 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12749
12750 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12751 function.
12752 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12753
12754 2020-03-14 Tom Tromey <tom@tromey.com>
12755
12756 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12757 for C++.
12758 (c_type_print_modifier): Likewise. Add "language" parameter.
12759 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12760 (c_type_print_base_1): Update.
12761 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12762 constants.
12763 * type-stack.c (type_stack::insert): Handle tp_atomic and
12764 tp_restrict.
12765 (type_stack::follow_type_instance_flags): Likewise.
12766 (type_stack::follow_types): Likewise. Merge type-following code.
12767 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12768 (space_identifier, cv_with_space_id)
12769 (const_or_volatile_or_space_identifier_noopt)
12770 (const_or_volatile_or_space_identifier): Remove.
12771 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12772 rules.
12773 (ptr_operator, typebase): Update.
12774 (enum token_flag) <FLAG_C>: New constant.
12775 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12776 "_Atomic".
12777 (lex_one_token): Handle FLAG_C.
12778
12779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12780
12781 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12782 it to the ptrace call.
12783 * m68k-bsd-nat.c (store_registers): Likewise.
12784
12785 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12786
12787 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12788 gdb_byte *.
12789 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12790 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12791 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12792
12793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12794
12795 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12796 nbsd_nat_target instead of inf_ptrace_target.
12797 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12798 nbsd_nat_target.
12799
12800 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12801
12802 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12803 register_t.
12804
12805 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12806
12807 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12808 it to the ptrace call.
12809 * alpha-bsd-nat.c (store_registers): Likewise.
12810
12811 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12812
12813 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12814 includes.
12815 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12816 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12817 fill_fpregset): Likewise.
12818
12819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12820
12821 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12822 nbsd_nat_target instead of inf_ptrace_target.
12823 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12824 nbsd_nat_target.
12825
12826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12827
12828 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12829 register_t.
12830
12831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12832
12833 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12834 it to the ptrace call.
12835 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12836 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12837 * arm-nbsd-nat.c (store_register): Likewise.
12838 * arm-nbsd-nat.c (store_regs): Likewise.
12839 * arm-nbsd-nat.c (store_fp_register): Likewise.
12840 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12841
12842 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12843
12844 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12845 nbsd_nat_target instead of inf_ptrace_target.
12846 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12847 nbsd_nat_target.
12848
12849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12850
12851 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12852 it to the ptrace call.
12853 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12854
12855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12856
12857 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12858 it to the ptrace call.
12859 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12860
12861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12862
12863 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12864 gdb_byte *.
12865 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12866
12867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12868
12869 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12870 instead of inf_ptrace_target.
12871 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12872 nbsd_nat_target.
12873
12874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12875
12876 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12877 register_t.
12878
12879 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12880
12881 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12882 register_t.
12883
12884 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12885
12886 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12887 register_t.
12888
12889 2020-03-13 Tom Tromey <tom@tromey.com>
12890
12891 * value.h (val_print): Don't declare.
12892 * valprint.h (val_print_array_elements)
12893 (val_print_scalar_formatted, generic_val_print): Don't declare.
12894 * valprint.c (generic_val_print_array): Take a struct value.
12895 (generic_val_print_ptr, generic_val_print_memberptr)
12896 (generic_val_print_bool, generic_val_print_int)
12897 (generic_val_print_char, generic_val_print_complex)
12898 (generic_val_print): Remove.
12899 (generic_value_print): Update.
12900 (do_val_print): Remove unused parameters. Don't call
12901 la_val_print.
12902 (val_print): Remove.
12903 (common_val_print): Update. Don't call value_check_printable.
12904 (val_print_scalar_formatted, val_print_array_elements): Remove.
12905 * rust-lang.c (rust_val_print): Remove.
12906 (rust_language_defn): Update.
12907 * p-valprint.c (pascal_val_print): Remove.
12908 (pascal_value_print_inner): Update.
12909 (pascal_object_print_val_fields, pascal_object_print_val):
12910 Remove.
12911 (pascal_object_print_static_field): Update.
12912 * p-lang.h (pascal_val_print): Don't declare.
12913 * p-lang.c (pascal_language_defn): Update.
12914 * opencl-lang.c (opencl_language_defn): Update.
12915 * objc-lang.c (objc_language_defn): Update.
12916 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12917 * m2-lang.h (m2_val_print): Don't declare.
12918 * m2-lang.c (m2_language_defn): Update.
12919 * language.h (struct language_defn) <la_val_print>: Remove.
12920 * language.c (unk_lang_value_print_inner): Rename. Change
12921 argument types.
12922 (unknown_language_defn, auto_language_defn): Update.
12923 * go-valprint.c (go_val_print): Remove.
12924 * go-lang.h (go_val_print): Don't declare.
12925 * go-lang.c (go_language_defn): Update.
12926 * f-valprint.c (f_val_print): Remove.
12927 * f-lang.h (f_value_print): Don't declare.
12928 * f-lang.c (f_language_defn): Update.
12929 * d-valprint.c (d_val_print): Remove.
12930 * d-lang.h (d_value_print): Don't declare.
12931 * d-lang.c (d_language_defn): Update.
12932 * cp-valprint.c (cp_print_value_fields)
12933 (cp_print_value_fields_rtti, cp_print_value): Remove.
12934 (cp_print_static_field): Update.
12935 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12936 (c_val_print_struct, c_val_print_union, c_val_print_int)
12937 (c_val_print_memberptr, c_val_print): Remove.
12938 * c-lang.h (c_val_print_array, cp_print_value_fields)
12939 (cp_print_value_fields_rtti): Don't declare.
12940 * c-lang.c (c_language_defn, cplus_language_defn)
12941 (asm_language_defn, minimal_language_defn): Update.
12942 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12943 (ada_val_print_enum): Take a struct value.
12944 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12945 (ada_val_print): Remove.
12946 (ada_value_print_1): Update.
12947 (printable_val_type): Remove.
12948 * ada-lang.h (ada_val_print): Don't declare.
12949 * ada-lang.c (ada_language_defn): Update.
12950
12951 2020-03-13 Tom Tromey <tom@tromey.com>
12952
12953 * valprint.c (do_val_print): Update.
12954 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12955 a struct value.
12956 (value_to_value_object_no_release): Declare.
12957 * python/py-value.c (value_to_value_object_no_release): New
12958 function.
12959 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12960 struct value.
12961 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12962 function.
12963 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12964 a struct value.
12965 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12966 Declare.
12967 (gdbscm_apply_val_pretty_printer): Take a struct value.
12968 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12969 value.
12970 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12971 value.
12972 * extension-priv.h (struct extension_language_ops)
12973 <apply_val_pretty_printer>: Take a struct value.
12974 * cp-valprint.c (cp_print_value): Create a struct value.
12975 (cp_print_value): Update.
12976
12977 2020-03-13 Tom Tromey <tom@tromey.com>
12978
12979 * ada-valprint.c (print_field_values): Call common_val_print.
12980
12981 2020-03-13 Tom Tromey <tom@tromey.com>
12982
12983 * ada-valprint.c (val_print_packed_array_elements): Remove
12984 bitoffset and val parameters. Call common_val_print.
12985 (ada_val_print_string): Remove offset, address, and original_value
12986 parameters.
12987 (ada_val_print_array): Update.
12988 (ada_value_print_array): New function.
12989 (ada_value_print_1): Call it.
12990
12991 2020-03-13 Tom Tromey <tom@tromey.com>
12992
12993 * ada-valprint.c (ada_value_print): Use common_val_print.
12994
12995 2020-03-13 Tom Tromey <tom@tromey.com>
12996
12997 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12998
12999 2020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * ada-valprint.c (ada_value_print_num): New function.
13002 (ada_value_print_1): Use it.
13003
13004 2020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13007
13008 2020-03-13 Tom Tromey <tom@tromey.com>
13009
13010 * ada-valprint.c (ada_value_print_ptr): New function.
13011 (ada_value_print_1): Use it.
13012
13013 2020-03-13 Tom Tromey <tom@tromey.com>
13014
13015 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13016 call common_val_print.
13017 (ada_val_print_1): Update.
13018 (ada_value_print_1): New function.
13019 (ada_value_print_inner): Rewrite.
13020
13021 2020-03-13 Tom Tromey <tom@tromey.com>
13022
13023 * cp-valprint.c (cp_print_value_fields): Update.
13024 (cp_print_value): New function.
13025
13026 2020-03-13 Tom Tromey <tom@tromey.com>
13027
13028 * m2-valprint.c (m2_value_print_inner): Use
13029 cp_print_value_fields.
13030 * cp-valprint.c (cp_print_value_fields): New function.
13031 * c-valprint.c (c_value_print_struct): New function.
13032 (c_value_print_inner): Use c_value_print_struct.
13033 * c-lang.h (cp_print_value_fields): Declare.
13034
13035 2020-03-13 Tom Tromey <tom@tromey.com>
13036
13037 * c-valprint.c (c_value_print_array): New function.
13038 (c_value_print_inner): Use it.
13039
13040 2020-03-13 Tom Tromey <tom@tromey.com>
13041
13042 * c-valprint.c (c_value_print_memberptr): New function.
13043 (c_value_print_inner): Use it.
13044
13045 2020-03-13 Tom Tromey <tom@tromey.com>
13046
13047 * c-valprint.c (c_value_print_int): 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_ptr): 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_inner): Rewrite.
13058
13059 2020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * valprint.c (generic_value_print_complex): New function.
13062 (generic_value_print): Use it.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * valprint.c (generic_val_print_float): Don't call
13067 val_print_scalar_formatted.
13068 (generic_val_print, generic_value_print): Update.
13069
13070 2020-03-13 Tom Tromey <tom@tromey.com>
13071
13072 * valprint.c (generic_value_print_char): New function
13073 (generic_value_print): Use it.
13074
13075 2020-03-13 Tom Tromey <tom@tromey.com>
13076
13077 * valprint.c (generic_value_print_int): New function.
13078 (generic_value_print): Use it.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * valprint.c (generic_value_print_bool): New function.
13083 (generic_value_print): Use it.
13084
13085 2020-03-13 Tom Tromey <tom@tromey.com>
13086
13087 * valprint.c (generic_val_print_func): Simplify.
13088 (generic_val_print, generic_value_print): Update.
13089
13090 2020-03-13 Tom Tromey <tom@tromey.com>
13091
13092 * valprint.c (generic_val_print_flags): Remove.
13093 (generic_val_print, generic_value_print): Update.
13094 (val_print_type_code_flags): Add original_value parameter.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * valprint.c (generic_val_print): Update.
13099 (generic_value_print): Update.
13100 * valprint.c (generic_val_print_enum): Don't call
13101 val_print_scalar_formatted.
13102
13103 2020-03-13 Tom Tromey <tom@tromey.com>
13104
13105 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13106 * valprint.c (generic_value_print_ptr): New function.
13107
13108 2020-03-13 Tom Tromey <tom@tromey.com>
13109
13110 * valprint.c (generic_value_print): Rewrite.
13111
13112 2020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * p-valprint.c (pascal_object_print_value_fields)
13115 (pascal_object_print_value): New functions.
13116
13117 2020-03-13 Tom Tromey <tom@tromey.com>
13118
13119 * p-valprint.c (pascal_value_print_inner): Rewrite.
13120
13121 2020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * f-valprint.c (f_value_print_innner): Rewrite.
13124
13125 2020-03-13 Tom Tromey <tom@tromey.com>
13126
13127 * m2-valprint.c (m2_print_unbounded_array): New overload.
13128 (m2_print_unbounded_array): Update.
13129 (m2_print_array_contents): Take a struct value.
13130 (m2_value_print_inner): Rewrite.
13131
13132 2020-03-13 Tom Tromey <tom@tromey.com>
13133
13134 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13135 (d_value_print_inner): New function.
13136 * d-lang.h (d_value_print_inner): Declare.
13137 * d-lang.c (d_language_defn): Use d_value_print_inner.
13138
13139 2020-03-13 Tom Tromey <tom@tromey.com>
13140
13141 * go-valprint.c (go_value_print_inner): New function.
13142 * go-lang.h (go_value_print_inner): Declare.
13143 * go-lang.c (go_language_defn): Use go_value_print_inner.
13144
13145 2020-03-13 Tom Tromey <tom@tromey.com>
13146
13147 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13148 API.
13149 (rust_val_print): Rewrite.
13150 (rust_value_print_inner): New function, from rust_val_print.
13151 (rust_language_defn): Use rust_value_print_inner.
13152
13153 2020-03-13 Tom Tromey <tom@tromey.com>
13154
13155 * ada-valprint.c (ada_value_print_inner): New function.
13156 * ada-lang.h (ada_value_print_inner): Declare.
13157 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13158
13159 2020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * f-valprint.c (f_value_print_innner): New function.
13162 * f-lang.h (f_value_print_innner): Declare.
13163 * f-lang.c (f_language_defn): Use f_value_print_innner.
13164
13165 2020-03-13 Tom Tromey <tom@tromey.com>
13166
13167 * p-valprint.c (pascal_value_print_inner): New function.
13168 * p-lang.h (pascal_value_print_inner): Declare.
13169 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13170
13171 2020-03-13 Tom Tromey <tom@tromey.com>
13172
13173 * m2-valprint.c (m2_value_print_inner): New function.
13174 * m2-lang.h (m2_value_print_inner): Declare.
13175 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13176
13177 2020-03-13 Tom Tromey <tom@tromey.com>
13178
13179 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13180 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13181 * c-valprint.c (c_value_print_inner): New function.
13182 * c-lang.h (c_value_print_inner): Declare.
13183 * c-lang.c (c_language_defn, cplus_language_defn)
13184 (asm_language_defn, minimal_language_defn): Use
13185 c_value_print_inner.
13186
13187 2020-03-13 Tom Tromey <tom@tromey.com>
13188
13189 * p-valprint.c (pascal_object_print_value_fields): Now static.
13190 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13191
13192 2020-03-13 Tom Tromey <tom@tromey.com>
13193
13194 * c-valprint.c (c_val_print_array): Simplify.
13195
13196 2020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * valprint.c (value_print_array_elements): New function.
13199 * valprint.h (value_print_array_elements): Declare.
13200
13201 2020-03-13 Tom Tromey <tom@tromey.com>
13202
13203 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13204 * mips-tdep.c (mips_print_register): Use
13205 value_print_scalar_formatted.
13206
13207 2020-03-13 Tom Tromey <tom@tromey.com>
13208
13209 * valprint.h (value_print_scalar_formatted): Declare.
13210 * valprint.c (value_print_scalar_formatted): New function.
13211
13212 2020-03-13 Tom Tromey <tom@tromey.com>
13213
13214 * valprint.h (generic_value_print): Declare.
13215 * valprint.c (generic_value_print): New function.
13216
13217 2020-03-13 Tom Tromey <tom@tromey.com>
13218
13219 * valprint.c (do_val_print): Call la_value_print_inner, if
13220 available.
13221 * rust-lang.c (rust_language_defn): Update.
13222 * p-lang.c (pascal_language_defn): Update.
13223 * opencl-lang.c (opencl_language_defn): Update.
13224 * objc-lang.c (objc_language_defn): Update.
13225 * m2-lang.c (m2_language_defn): Update.
13226 * language.h (struct language_defn) <la_value_print_inner>: New
13227 member.
13228 * language.c (unknown_language_defn, auto_language_defn): Update.
13229 * go-lang.c (go_language_defn): Update.
13230 * f-lang.c (f_language_defn): Update.
13231 * d-lang.c (d_language_defn): Update.
13232 * c-lang.c (c_language_defn, cplus_language_defn)
13233 (asm_language_defn, minimal_language_defn): Update.
13234 * ada-lang.c (ada_language_defn): Update.
13235
13236 2020-03-13 Tom Tromey <tom@tromey.com>
13237
13238 * c-valprint.c (c_value_print): Use common_val_print.
13239
13240 2020-03-13 Tom Tromey <tom@tromey.com>
13241
13242 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13243
13244 2020-03-13 Tom Tromey <tom@tromey.com>
13245
13246 * f-valprint.c (f77_print_array_1, f_val_print): Use
13247 common_val_print.
13248
13249 2020-03-13 Tom Tromey <tom@tromey.com>
13250
13251 * riscv-tdep.c (riscv_print_one_register_info): Use
13252 common_val_print.
13253
13254 2020-03-13 Tom Tromey <tom@tromey.com>
13255
13256 * mi/mi-main.c (output_register): Use common_val_print.
13257
13258 2020-03-13 Tom Tromey <tom@tromey.com>
13259
13260 * infcmd.c (default_print_one_register_info): Use
13261 common_val_print.
13262
13263 2020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * valprint.h (common_val_print_checked): Declare.
13266 * valprint.c (common_val_print_checked): New function.
13267 * stack.c (print_frame_arg): Use common_val_print_checked.
13268
13269 2020-03-13 Tom Tromey <tom@tromey.com>
13270
13271 * valprint.c (do_val_print): New function, from val_print.
13272 (val_print): Use do_val_print.
13273 (common_val_print): Use do_val_print.
13274
13275 2020-03-13 Tom Tromey <tom@tromey.com>
13276
13277 * valprint.c (value_print): Use scoped_value_mark.
13278
13279 2020-03-13 Tom de Vries <tdevries@suse.de>
13280
13281 PR symtab/25646
13282 * psymtab.c (partial_symtab::partial_symtab): Don't set
13283 globals_offset and statics_offset. Push element onto
13284 current_global_psymbols and current_static_psymbols stacks.
13285 (concat): New function.
13286 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13287 element from current_global_psymbols and current_static_psymbols
13288 stacks. Concat popped elements to global_psymbols and
13289 static_symbols.
13290 (add_psymbol_to_list): Use current_global_psymbols and
13291 current_static_psymbols stacks.
13292 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13293 current_static_psymbols fields.
13294
13295 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13296
13297 * corelow.c (sniff_core_bfd): Remove.
13298 (class core_target) <m_core_vec>: Remove.
13299 (core_target::core_target): Update.
13300 (core_file_fns): Remove.
13301 (deprecated_add_core_fns): Remove.
13302 (default_core_sniffer): Remove.
13303 (sniff_core_bfd): Remove.
13304 (default_check_format): Remove.
13305 (gdb_check_format): Remove.
13306 (core_target_open): Update.
13307 (core_target::get_core_register_section): Update.
13308 (get_core_registers_cb): Update.
13309 (core_target::fetch_registers): Update.
13310 * gdbcore.h (struct core_fns): Remove.
13311 (deprecated_add_core_fns): Remove.
13312 (default_core_sniffer): Remove.
13313 (default_check_format): Remove.
13314
13315 2020-03-12 Tom Tromey <tom@tromey.com>
13316
13317 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13318 CORE_ADDR.
13319 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13320
13321 2020-03-12 Tom Tromey <tom@tromey.com>
13322
13323 * remote.c (remote_target::download_tracepoint)
13324 (remote_target::enable_tracepoint)
13325 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13326 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13327 sprintf_vma.
13328
13329 2020-03-12 Tom Tromey <tom@tromey.com>
13330
13331 * symfile-mem.c: Update CORE_ADDR size assert.
13332
13333 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13334
13335 * selftest.m4: Move to gdbsupport/.
13336 * acinclude.m4: Update path to selftest.m4.
13337
13338 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13339
13340 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13341 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13342 gdbarch-selfselftests.c and selftest-arch.c.
13343 (SUBDIR_UNITTESTS_OBS): Rename to...
13344 (SELFTESTS_OBS): ... this.
13345 (COMMON_SFILES): Remove disasm-selftests.c and
13346 gdbarch-selftests.c.
13347 * configure.ac: Don't add selftest-arch.{c,o} to
13348 CONFIG_{SRCS,OBS}.
13349 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13350 preprocessor conditions.
13351
13352 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13353
13354 * configure.ac: Don't source bfd/development.sh.
13355 * selftest.m4: Modify comment.
13356 * configure: Re-generate.
13357
13358 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13359
13360 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13361 not "true" or "false".
13362 * configure: Re-generate.
13363
13364 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13365
13366 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13367 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13368 renamed to arm_nbsd_supply_gregset.
13369 (fetch_register): Update to call arm_nbsd_supply_gregset.
13370 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13371 (arm_netbsd_nat_target::fetch_registers): Update.
13372 (fetch_elfcore_registers): Removed.
13373 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13374 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13375 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13376 not require NetBSD system headers.
13377 (arm_nbsd_regset): New struct.
13378 (arm_nbsd_iterate_over_regset_sections): New function.
13379 (arm_netbsd_init_abi_common): Updated to call
13380 set_gdbarch_iterate_over_regset_sections.
13381 * arm-nbsd-tdep.h: New file.
13382
13383 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13384
13385 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13386 recursion.
13387
13388 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13389
13390 * configure: Re-generate.
13391
13392 2020-03-11 Tom Tromey <tromey@adacore.com>
13393
13394 * ada-typeprint.c (print_choices): Fix comment.
13395
13396 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13397
13398 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13399 previous item in the list, when the list has no items.
13400
13401 2020-03-11 Tom de Vries <tdevries@suse.de>
13402
13403 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13404 PROP_LOCLIST handling code.
13405
13406 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13407
13408 * buildsym-legacy.c (record_line): Pass extra parameter to
13409 record_line.
13410 * buildsym.c (buildsym_compunit::record_line): Take an extra
13411 parameter, reduce duplication in the line table, and record the
13412 is_stmt flag in the line table.
13413 * buildsym.h (buildsym_compunit::record_line): Add extra
13414 parameter.
13415 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13416 non-statement lines.
13417 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13418 this to the symtab builder.
13419 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13420 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13421 through to dwarf_record_line_1.
13422 * infrun.c (process_event_stop_test): When stepping, don't stop at
13423 a non-statement instruction, and only refresh the step info when
13424 we land in the middle of a line's range. Also add an extra
13425 comment.
13426 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13427 field.
13428 * record-btrace.c (btrace_find_line_range): Only record lines
13429 marked as is-statement.
13430 * stack.c (frame_show_address): Show the frame address if we are
13431 in a non-statement sal.
13432 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13433 (maintenance_print_one_line_table): Print a header for the is_stmt
13434 column, and include is_stmt information in the output.
13435 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13436 preference to non-statements.
13437 (find_pcs_for_symtab_line): Prefer is-statement entries.
13438 (find_line_common): Likewise.
13439 * symtab.h (struct linetable_entry): Add is_stmt field.
13440 (struct symtab_and_line): Likewise.
13441 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13442 arranging the line table.
13443
13444 2020-03-07 Tom de Vries <tdevries@suse.de>
13445
13446 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13447 DIE.
13448
13449 2020-03-07 Tom Tromey <tom@tromey.com>
13450
13451 * valops.c (value_literal_complex): Remove obsolete comment.
13452 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13453 comment.
13454
13455 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13456
13457 * infrun.h: Forward-declare thread_info.
13458 (set_step_info): Add thread_info parameter, add doc.
13459 * infrun.c (set_step_info): Add thread_info parameter, move doc
13460 to header.
13461 * infrun.c (process_event_stop_test): Pass thread to
13462 set_step_info call.
13463 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13464 set_step_info.
13465 (prepare_one_step): Add thread_info parameter, pass it to
13466 set_step_frame and prepare_one_step (recursive) call.
13467 (step_1): Pass thread to prepare_one_step call.
13468 (step_command_fsm::should_stop): Pass thread to
13469 prepare_one_step.
13470 (until_next_fsm): Pass thread to set_step_frame call.
13471 (finish_command): Pass thread to set_step_info call.
13472
13473 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13474
13475 * windows-tdep.c (windows_solib_create_inferior_hook):
13476 Check if inferior is running.
13477
13478 2020-03-06 Tom de Vries <tdevries@suse.de>
13479
13480 * NEWS: Fix "the the".
13481 * ctfread.c: Same.
13482
13483 2020-03-06 Tom de Vries <tdevries@suse.de>
13484
13485 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13486
13487 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13488
13489 * .dir-locals.el: Add a comment referencing the other copies of
13490 this file.
13491
13492 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13493
13494 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13495 psargs.
13496
13497 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13498
13499 * .gitattributes: New file.
13500
13501 2020-03-04 Tom Tromey <tom@tromey.com>
13502
13503 * symmisc.c (print_symbol_bcache_statistics)
13504 (print_objfile_statistics): Update.
13505 * symfile.c (allocate_symtab): Use intern.
13506 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13507 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13508 macro_cache>: Remove.
13509 <string_cache>: New member.
13510 (struct objfile) <intern>: New methods.
13511 * elfread.c (elf_symtab_read): Use intern.
13512 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13513 (dwarf2_compute_name, dwarf2_physname)
13514 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13515 names.
13516 (guess_partial_die_structure_name): Update.
13517 (partial_die_info::fixup): Intern name.
13518 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13519 name.
13520 (dwarf2_name): Intern name. Update.
13521 * buildsym.c (buildsym_compunit::get_macro_table): Use
13522 string_cache.
13523
13524 2020-03-04 Tom Tromey <tom@tromey.com>
13525
13526 * jit.c (bfd_open_from_target_memory): Make "target" const.
13527 * corefile.c (gnutarget): Now const.
13528 * gdbcore.h (gnutarget): Now const.
13529
13530 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13531
13532 * NEWS: Mention support for WOW64 processes.
13533 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13534 (amd64_windows_segment_register_p): Remove static.
13535 (_initialize_amd64_windows_nat): Update.
13536 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13537 * i386-windows-nat.c (context_offset): Update.
13538 (i386_mappings): Rename and remove static.
13539 (i386_windows_segment_register_p): Remove static.
13540 (_initialize_i386_windows_nat): Update.
13541 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13542 (STATUS_WX86_SINGLE_STEP): New macro.
13543 (EnumProcessModulesEx): New macro.
13544 (Wow64SuspendThread): New macro.
13545 (Wow64GetThreadContext): New macro.
13546 (Wow64SetThreadContext): New macro.
13547 (Wow64GetThreadSelectorEntry): New macro.
13548 (windows_set_context_register_offsets): Add static.
13549 (windows_set_segment_register_p): Likewise.
13550 (windows_add_thread): Adapt for WOW64 processes.
13551 (windows_fetch_one_register): Likewise.
13552 (windows_nat_target::fetch_registers): Likewise.
13553 (windows_store_one_register): Likewise.
13554 (display_selector): Likewise.
13555 (display_selectors): Likewise.
13556 (handle_exception): Likewise.
13557 (windows_continue): Likewise.
13558 (windows_nat_target::resume): Likewise.
13559 (windows_add_all_dlls): Likewise.
13560 (do_initial_windows_stuff): Likewise.
13561 (windows_nat_target::attach): Likewise.
13562 (windows_get_exec_module_filename): Likewise.
13563 (windows_nat_target::create_inferior): Likewise.
13564 (windows_xfer_siginfo): Likewise.
13565 (_initialize_loadable): Initialize Wow64SuspendThread,
13566 Wow64GetThreadContext, Wow64SetThreadContext,
13567 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13568 * windows-nat.h (windows_set_context_register_offsets):
13569 Remove declaration.
13570 (windows_set_segment_register_p): Likewise.
13571 (i386_windows_segment_register_p): Add declaration.
13572 (amd64_windows_segment_register_p): Likewise.
13573
13574 2020-03-04 Luis Machado <luis.machado@linaro.org>
13575
13576 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13577 in "info registers" for AArch64/ARM.
13578
13579 The change caused "info registers" to not print GPR's.
13580
13581 gdb/ChangeLog:
13582
13583 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13584
13585 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13586 when reg->group is empty and reggroup is not.
13587
13588 2020-03-03 Tom Tromey <tromey@adacore.com>
13589
13590 * dwarf2/frame.c (struct dwarf2_frame_cache)
13591 <checked_tailcall_bottom, entry_cfa_sp_offset,
13592 entry_cfa_sp_offset_p>: Remove members.
13593 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13594 (dwarf2_frame_prev_register): Don't call
13595 dwarf2_tailcall_sniffer_first.
13596 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13597 * frame-unwind.c (add_unwinder): New fuction.
13598 (frame_unwind_init): Use it. Add tailcall unwinder.
13599
13600 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13601 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13602
13603 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13604 value should be printed as true.
13605
13606 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13607
13608 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13609 (windows_init_abi): Set and use windows_so_ops.
13610
13611 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13612
13613 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13614 when verifying if dealing with a convenience variable.
13615
13616 2020-03-03 Luis Machado <luis.machado@linaro.org>
13617
13618 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13619
13620 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13621
13622 * infrun.c (gdbarch_supports_displaced_stepping): New.
13623 (use_displaced_stepping): Break up conditions in smaller pieces.
13624 Use gdbarch_supports_displaced_stepping.
13625 (displaced_step_prepare_throw): Use
13626 gdbarch_supports_displaced_stepping.
13627
13628 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13629
13630 * NEWS: Mention new behaviour of the history filename.
13631 * top.c (write_history_p): Add comment.
13632 (show_write_history_p): Add header comment, give a different
13633 message when history writing is on, but the history filename is
13634 empty.
13635 (history_filename): Add comment.
13636 (history_filename_empty): New function.
13637 (show_history_filename): Add header comment, give a different
13638 message when the filename is empty.
13639 (init_history): Compare history_filename against nullptr, and only
13640 read history if the filename is not empty.
13641 (set_history_filename): Add header comment, and only make
13642 non-empty filenames absolute.
13643 (init_main): Make the filename argument to 'set history filename'
13644 optional.
13645
13646 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13647
13648 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13649 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13650 (fetch_fp_register): Update.
13651 (fetch_fp_regs): Update.
13652 (store_fp_register): Update.
13653 (store_fp_regs): Update.
13654 (arm_netbsd_nat_target::read_description): New function.
13655 (fetch_elfcore_registers): Update.
13656
13657 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13658
13659 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13660 general_thread if the stop reply is missing a thread-id.
13661 (remote_target::process_stop_reply): Use the first non-exited
13662 thread if the target didn't pass a thread-id.
13663 * infrun.c (do_target_wait): Move call to
13664 switch_to_inferior_no_thread to ....
13665 (do_target_wait_1): ... here.
13666
13667 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13668
13669 * debuginfod-support.c: Include defs.h first.
13670
13671 2020-02-28 Tom de Vries <tdevries@suse.de>
13672
13673 * symfile.c (set_initial_language): Use default language for lookup.
13674
13675 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13676
13677 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13678 reader variable, pass `this` to read_cutu_die_from_dwo.
13679
13680 2020-02-27 Aaron Merey <amerey@redhat.com>
13681
13682 * source.c (open_source_file): Check for nullptr when computing
13683 srcpath.
13684
13685 2020-02-27 Tom Tromey <tromey@adacore.com>
13686
13687 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13688 member.
13689 (dwarf2_add_field): Don't update nfields.
13690 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13691
13692 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13693
13694 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13695 abs.
13696
13697 2020-02-26 Tom Tromey <tom@tromey.com>
13698
13699 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13700 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13701 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13702 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13703 per_cu_data.
13704
13705 2020-02-26 Tom Tromey <tom@tromey.com>
13706
13707 * dwarf2/index-write.c (psym_index_map): Change type.
13708 (add_address_entry_worker, write_one_signatured_type)
13709 (recursively_count_psymbols, recursively_write_psymbols)
13710 (class debug_names, psyms_seen_size, write_gdbindex)
13711 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13712
13713 2020-02-26 Aaron Merey <amerey@redhat.com>
13714
13715 * Makefile.in: Handle optional debuginfod support.
13716 * NEWS: Update.
13717 * README: Add --with-debuginfod summary.
13718 * config.in: Regenerate.
13719 * configure: Regenerate.
13720 * configure.ac: Handle optional debuginfod support.
13721 * debuginfod-support.c: debuginfod helper functions.
13722 * debuginfod-support.h: Ditto.
13723 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13724 summary.
13725 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13726 when a dwz file cannot be found.
13727 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13728 debuginfo file cannot be found.
13729 * source.c (open_source_file): Query debuginfod servers when a
13730 source file cannot be found.
13731 * top.c (print_gdb_configuration): Include
13732 --{with,without}-debuginfod in the output.
13733
13734 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13735
13736 * thread.c (thr_try_catch_cmd): Print thread name.
13737
13738 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13739
13740 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13742 dwarf2_fetch_die_type_sect_off): Move to...
13743 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13744 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13745 dwarf2_fetch_die_type_sect_off): ... here.
13746 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13747 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13748 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13749
13750 2020-02-26 Tom de Vries <tdevries@suse.de>
13751
13752 PR gdb/25603
13753 * symfile.c (set_initial_language): Exit-early if
13754 language_mode == language_mode_manual.
13755
13756 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13757
13758 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13759 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13760 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13761
13762 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13763
13764 * gdbtypes.c (create_array_type_with_stride): Handle negative
13765 array strides.
13766 * valarith.c (value_subscripted_rvalue): Likewise.
13767
13768 2020-02-25 Luis Machado <luis.machado@linaro.org>
13769
13770 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13771
13772 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13773
13774 * loc.h (dwarf2_get_die_type): Move to...
13775 * read.h (dwarf2_get_die_type): ... here.
13776 * read.c (dwarf2_get_die_type): Move doc to header.
13777
13778 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13779
13780 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13781 'gnulib/Makefile.in' to the list.
13782
13783 2020-02-24 Tom Tromey <tom@tromey.com>
13784
13785 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13786 Remove.
13787 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13788 XOBNEWVEC.
13789
13790 2020-02-24 Tom Tromey <tom@tromey.com>
13791
13792 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13793 New method.
13794 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13795 (dw2_do_instantiate_symtab, dw2_get_file_names)
13796 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13797
13798 2020-02-24 Tom Tromey <tom@tromey.com>
13799
13800 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13801 make_scoped_restore.
13802 (dwarf2_psymtab::read_symtab): Don't clear
13803 reading_partial_symbols.
13804
13805 2020-02-24 Tom de Vries <tdevries@suse.de>
13806
13807 PR gdb/25592
13808 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13809
13810 2020-02-24 Tom de Vries <tdevries@suse.de>
13811
13812 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13813 commands layout next/prev/regs.
13814
13815 2020-02-22 Tom Tromey <tom@tromey.com>
13816
13817 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13818 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13819
13820 2020-02-22 Tom Tromey <tom@tromey.com>
13821
13822 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13823
13824 2020-02-22 Tom Tromey <tom@tromey.com>
13825
13826 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13827 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13828 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13829 * tui/tui.c (_initialize_tui): Add usage text.
13830
13831 2020-02-22 Tom Tromey <tom@tromey.com>
13832
13833 * tui/tui-win.c (tui_set_focus_command)
13834 (tui_set_win_height_command): Use error_no_arg.
13835 (_initialize_tui_win): Update help text.
13836 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13837
13838 2020-02-22 Tom Tromey <tom@tromey.com>
13839
13840 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13841 * tui/tui-disasm.h (struct tui_disasm_window)
13842 <display_start_addr>: Declare.
13843 * tui/tui-source.h (struct tui_source_window)
13844 <display_start_addr>: Declare.
13845 * tui/tui-winsource.h (struct tui_source_window_base)
13846 <show_source_line, display_start_addr>: New methods.
13847 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13848 Rename and move to protected section.
13849 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13850 (tui_source_window_base::do_erase_source_content): Update.
13851 (tui_source_window_base::show_source_line): Now a method.
13852 (tui_source_window_base::show_source_content)
13853 (tui_source_window_base::tui_source_window_base)
13854 (tui_source_window_base::rerender)
13855 (tui_source_window_base::refill)
13856 (tui_source_window_base::do_scroll_horizontal)
13857 (tui_source_window_base::set_is_exec_point_at)
13858 (tui_source_window_base::update_breakpoint_info)
13859 (tui_source_window_base::update_exec_info): Update.
13860 * tui/tui-source.c (tui_source_window::set_contents)
13861 (tui_source_window::showing_source_p)
13862 (tui_source_window::do_scroll_vertical)
13863 (tui_source_window::location_matches_p)
13864 (tui_source_window::line_is_displayed): Update.
13865 (tui_source_window::display_start_addr): New method.
13866 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13867 (tui_disasm_window::do_scroll_vertical)
13868 (tui_disasm_window::location_matches_p): Update.
13869 (tui_disasm_window::display_start_addr): New method.
13870
13871 2020-02-22 Tom Tromey <tom@tromey.com>
13872
13873 * NEWS: Add entry for gdb.register_window_type.
13874 * tui/tui-layout.h (window_factory): New typedef.
13875 (tui_register_window): Declare.
13876 * tui/tui-layout.c (saved_tui_windows): New global.
13877 (tui_apply_current_layout): Use it.
13878 (tui_register_window): New function.
13879 * python/python.c (do_start_initialization): Call
13880 gdbpy_initialize_tui.
13881 (python_GdbMethods): Add "register_window_type" function.
13882 * python/python-internal.h (gdbpy_register_tui_window)
13883 (gdbpy_initialize_tui): Declare.
13884 * python/py-tui.c: New file.
13885 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13886
13887 2020-02-22 Tom Tromey <tom@tromey.com>
13888
13889 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13890
13891 2020-02-22 Tom Tromey <tom@tromey.com>
13892
13893 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13894 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13895 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13896 (tui_set_win_focus_to): Move from tui-win.c.
13897
13898 2020-02-22 Tom Tromey <tom@tromey.com>
13899
13900 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13901 functions.
13902 (known_window_types): New global.
13903 (tui_get_window_by_name): Reimplement.
13904 (initialize_known_windows): New function.
13905 (validate_window_name): Rewrite.
13906 (_initialize_tui_layout): Call initialize_known_windows.
13907
13908 2020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13911 Remove constants.
13912 * tui/tui-winsource.h (struct tui_source_window_base)
13913 <tui_source_window_base>: Remove parameter.
13914 * tui/tui-winsource.c
13915 (tui_source_window_base::tui_source_window_base): Remove
13916 parameter.
13917 (tui_source_window_base::refill): Update.
13918 * tui/tui-stack.h (struct tui_locator_window)
13919 <tui_locator_window>: Update.
13920 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13921 Default the constructor.
13922 * tui/tui-regs.h (struct tui_data_item_window)
13923 <tui_data_item_window>: Default the constructor.
13924 (struct tui_data_window) <tui_data_window>: Likewise.
13925 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13926 Default the constructor.
13927 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13928 Default the constructor.
13929 <type>: Remove.
13930 (struct tui_win_info) <tui_win_info>: Default the constructor.
13931 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13932 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13933 Default the constructor.
13934
13935 2020-02-22 Tom Tromey <tom@tromey.com>
13936
13937 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13938 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13939 * tui/tui-win.c (tui_resize_all): Don't call
13940 tui_delete_invisible_windows.
13941 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13942 done.
13943 (tui_set_layout): Update.
13944 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13945 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13946 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13947
13948 2020-02-22 Tom Tromey <tom@tromey.com>
13949
13950 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13951 correctly.
13952
13953 2020-02-22 Tom Tromey <tom@tromey.com>
13954
13955 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13956
13957 2020-02-22 Tom Tromey <tom@tromey.com>
13958
13959 * tui/tui-winsource.h (struct tui_source_window_iterator)
13960 <inner_iterator>: New etytypedef.
13961 <tui_source_window_iterator>: Take "end" parameter.
13962 <tui_source_window_iterator>: Take iterator.
13963 <operator*, advance>: Update.
13964 <m_iter>: Change type.
13965 <m_end>: New field.
13966 (struct tui_source_windows) <begin, end>: Update.
13967 * tui/tui-layout.c (tui_windows): New global.
13968 (tui_apply_current_layout): Clear tui_windows.
13969 (tui_layout_window::apply): Update tui_windows.
13970 * tui/tui-data.h (tui_windows): Declare.
13971 (all_tui_windows): Now inline function.
13972 (class tui_window_iterator, struct all_tui_windows): Remove.
13973
13974 2020-02-22 Tom Tromey <tom@tromey.com>
13975
13976 PR tui/17850:
13977 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13978 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13979 "height" argument.
13980 (class tui_layout_window) <get_sizes>: Likewise.
13981 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13982 argument.
13983 <get_sizes>: Add "height" argument.
13984 <m_vertical>: New field.
13985 * tui/tui-layout.c (tui_layout_split::clone): Update.
13986 (tui_layout_split::get_sizes): Add "height" argument.
13987 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13988 (tui_new_layout_command): Parse "-horizontal".
13989 (_initialize_tui_layout): Update help string.
13990 (tui_layout_split::specification): Add "-horizontal" when needed.
13991 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13992 argument.
13993 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13994 New methods.
13995
13996 2020-02-22 Tom Tromey <tom@tromey.com>
13997
13998 * tui/tui-layout.h (enum tui_adjust_result): New.
13999 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14000 (class tui_layout_window) <adjust_size>: Return
14001 tui_adjust_result. Rewrite.
14002 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14003 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14004
14005 2020-02-22 Tom Tromey <tom@tromey.com>
14006
14007 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14008 parameter and return types.
14009 (class tui_layout_base) <specification>: Add "depth".
14010 (class tui_layout_window) <specification>: Add "depth".
14011 (class tui_layout_split) <specification>: Add "depth".
14012 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14013 and return types.
14014 (tui_new_layout_command): Parse sub-layouts.
14015 (_initialize_tui_layout): Update help string.
14016 (tui_layout_window::specification): Add "depth".
14017 (add_layout_command): Update.
14018
14019 2020-02-22 Tom Tromey <tom@tromey.com>
14020
14021 * NEWS: Add "tui new-layout" item.
14022 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14023 Add new-layout command to help text.
14024 (validate_window_name): New function.
14025 (tui_new_layout_command): New function.
14026 (_initialize_tui_layout): Register "new-layout".
14027 (tui_layout_window::specification): New method.
14028 (tui_layout_window::specification): New method.
14029 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14030 method.
14031 (class tui_layout_window) <specification>: New method.
14032 (class tui_layout_split) <specification>: New method.
14033
14034 2020-02-22 Tom Tromey <tom@tromey.com>
14035
14036 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14037 * tui/tui-win.c (window_name_completer): Update comment.
14038 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14039 Declare method.
14040 (class tui_layout_window) <replace_window>: Likewise.
14041 (class tui_layout_split) <replace_window>: Likewise.
14042 (tui_set_layout): Don't declare.
14043 (tui_set_initial_layout): Declare function.
14044 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14045 (asm_regs_layout): New globals.
14046 (tui_current_layout, show_layout): Remove.
14047 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14048 (find_layout, tui_apply_layout): New function.
14049 (layout_completer): Remove.
14050 (tui_next_layout): Reimplement.
14051 (tui_next_layout_command): New function.
14052 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14053 (tui_regs_layout): Reimplement.
14054 (tui_regs_layout_command): New function.
14055 (extract_display_start_addr): Rewrite.
14056 (next_layout, prev_layout): Remove.
14057 (tui_layout_window::replace_window): New method.
14058 (tui_layout_split::replace_window): New method.
14059 (destroy_layout): New function.
14060 (layout_list): New global.
14061 (add_layout_command): New function.
14062 (initialize_layouts): Update.
14063 (tui_layout_command): New function.
14064 (_initialize_tui_layout): Install "layout" commands.
14065 * tui/tui-data.h (enum tui_layout_type): Remove.
14066 (tui_current_layout): Don't declare.
14067
14068 2020-02-22 Tom Tromey <tom@tromey.com>
14069
14070 * tui/tui-regs.c (tui_reg_layout): Remove.
14071 (tui_reg_command): Use tui_regs_layout.
14072 * tui/tui-layout.h (tui_reg_command): Declare.
14073 * tui/tui-layout.c (tui_reg_command): New function.
14074
14075 2020-02-22 Tom Tromey <tom@tromey.com>
14076
14077 * tui/tui.c (tui_rl_delete_other_windows): Call
14078 tui_remove_some_windows.
14079 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14080 Declare method.
14081 (class tui_layout_window) <remove_windows>: New method.
14082 (class tui_layout_split) <remove_windows>: Declare.
14083 (tui_remove_some_windows): Declare.
14084 * tui/tui-layout.c (tui_remove_some_windows): New function.
14085 (tui_layout_split::remove_windows): New method.
14086
14087 2020-02-22 Tom Tromey <tom@tromey.com>
14088
14089 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14090 * tui/tui-layout.h (tui_next_layout): Declare.
14091 * tui/tui-layout.c (tui_next_layout): New function.
14092
14093 2020-02-22 Tom Tromey <tom@tromey.com>
14094
14095 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14096 correct coordinates.
14097
14098 2020-02-22 Tom Tromey <tom@tromey.com>
14099
14100 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14101 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14102 DATA_WIN case.
14103
14104 2020-02-22 Tom Tromey <tom@tromey.com>
14105
14106 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14107 TUI_DISASM_WIN, not tui_win_list.
14108
14109 2020-02-22 Tom Tromey <tom@tromey.com>
14110
14111 * valprint.c (generic_val_print_enum_1)
14112 (val_print_type_code_flags): Style member names.
14113 * rust-lang.c (val_print_struct, rust_print_enum)
14114 (rust_print_struct_def, rust_internal_print_type): Style member
14115 names.
14116 * p-valprint.c (pascal_object_print_value_fields): Style member
14117 names. Only call fprintf_symbol_filtered for static members.
14118 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14119 * f-valprint.c (f_val_print): Style member names.
14120 * f-typeprint.c (f_type_print_base): Style member names.
14121 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14122 call fprintf_symbol_filtered for static members.
14123 (cp_print_class_member): Style member names.
14124 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14125 member names.
14126 * ada-valprint.c (ada_print_scalar): Style enum names.
14127 (ada_val_print_enum): Likewise.
14128 * ada-typeprint.c (print_enum_type): Style enum names.
14129
14130 2020-02-21 Tom Tromey <tom@tromey.com>
14131
14132 * psympriv.h (struct partial_symtab): Update comment.
14133
14134 2020-02-21 Tom Tromey <tromey@adacore.com>
14135
14136 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14137 type is CORE_ADDR.
14138
14139 2020-02-21 Tom de Vries <tdevries@suse.de>
14140
14141 PR gdb/25534
14142 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14143 if dependencies[i]->user != NULL.
14144
14145 2020-02-21 Ali Tamur <tamur@google.com>
14146
14147 * dwarf2/read.c (dwarf2_name): Add null check.
14148
14149 2020-02-20 Tom Tromey <tom@tromey.com>
14150
14151 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14152 ">=", in binary search.
14153 (dwarf2_find_containing_comp_unit): New overload.
14154 (run_test): New self-test.
14155 (_initialize_dwarf2_read): Register new test.
14156
14157 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14158
14159 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14160 * riscv-tdep.h: Likewise.
14161 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14162 rv32-only CSR.
14163 * features/riscv/64bit-csr.xml: Regenerated.
14164
14165 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14166 Tom Tromey <tom@tromey.com>
14167
14168 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14169 of 'fputc_unfiltered'.
14170 (putchar_unfiltered): Call 'fputc_unfiltered'.
14171 (fputc_unfiltered): Call 'fputs_unfiltered'.
14172
14173 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14174
14175 * config.in: Regenerate.
14176 * configure: Regenerate.
14177 * configure.ac: Add --with-python-libdir option.
14178 * main.c: Use WITH_PYTHON_LIBDIR.
14179
14180 2020-02-19 Tom Tromey <tom@tromey.com>
14181
14182 * symtab.c (general_symbol_info::compute_and_set_names): Use
14183 obstack_strndup. Simplify call to symbol_set_demangled_name.
14184
14185 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14186
14187 * dwarf2/read.c (allocate_signatured_type_table,
14188 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14189 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14190 Remove objfile parameter, update all callers.
14191
14192 2020-02-19 Doug Evans <dje@google.com>
14193
14194 PR rust/25535
14195 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14196 rust_enum_variant calculation.
14197
14198 2020-02-19 Tom Tromey <tromey@adacore.com>
14199
14200 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14201
14202 2020-02-19 Tom Tromey <tromey@adacore.com>
14203
14204 * ada-lang.c (cache_symbol): Use obstack_strdup.
14205
14206 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14207
14208 * configure: Regenerate.
14209
14210 2020-02-19 Tom Tromey <tromey@adacore.com>
14211
14212 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14213 NULL check.
14214
14215 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14216
14217 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14218
14219 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14220
14221 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14222 if GDBSERVER is not defined.
14223 (riscv_tdesc_cache): Likewise, also store const target_desc.
14224 (STATIC_IN_GDB): Define.
14225 (riscv_create_target_description): Update declaration with
14226 STATIC_IN_GDB.
14227 (riscv_lookup_target_description): New function, only define if
14228 GDBSERVER is not defined.
14229 * arch/riscv.h (riscv_create_target_description): Declare only
14230 when GDBSERVER is defined.
14231 (riscv_lookup_target_description): New declaration when GDBSERVER
14232 is not defined.
14233 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14234 (riscv_linux_read_features): ...this, and return
14235 riscv_gdbarch_features instead of target_desc.
14236 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14237 (riscv_linux_read_description): Rename to...
14238 (riscv_linux_read_features): ...this.
14239 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14240 Update to use riscv_gdbarch_features and
14241 riscv_lookup_target_description.
14242 * riscv-tdep.c (riscv_find_default_target_description): Use
14243 riscv_lookup_target_description instead of
14244 riscv_create_target_description.
14245
14246 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14247
14248 * valprint.c (generic_val_print_enum_1): When printing a flag
14249 enum with value 0 and there is no enumerator with value 0, print
14250 just "0" instead of "(unknown: 0x0)".
14251
14252 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * valprint.c (generic_val_print_enum_1): Print unknown part of
14255 flag enum in hex.
14256
14257 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14258
14259 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14260 flag enums to contain duplicate enumerators.
14261 * valprint.c (generic_val_print_enum_1): Update comment.
14262
14263 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14264
14265 * dwarf2/read.c: Include "count-one-bits.h".
14266 (update_enumeration_type_from_children): If an enumerator has
14267 multiple bits set, don't treat the enumeration as a "flag enum".
14268 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14269 of flag enums have 0 or 1 bit set.
14270
14271 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14272
14273 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14274 conversion.
14275 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14276 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14277 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14278 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14279 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14280
14281 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14282
14283 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14284
14285 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14286
14287 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14288 displaced_step_closure_up.
14289 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14290 (struct displaced_step_closure_up):
14291 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14292 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14293 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14294 Likewise.
14295 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14296 * gdbarch.c, gdbarch.h: Re-generate.
14297 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14298 displaced_step_closure_up.
14299 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14300 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14301 * infrun.h (displaced_step_closure_up): New type alias.
14302 (struct displaced_step_inferior_state) <step_closure>: Change
14303 type to displaced_step_closure_up.
14304 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14305 displaced_step_closure_up.
14306 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14307
14308 2020-02-14 Tom Tromey <tom@tromey.com>
14309
14310 * minidebug.c (gnu_debug_key): New global.
14311 (find_separate_debug_file_in_section): Use it.
14312
14313 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14314
14315 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14316 std::unique_ptr.
14317 * gdbarch.c: Re-generate.
14318 * gdbarch.h: Re-generate.
14319 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14320 change.
14321 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14322 type to std::unique_ptr.
14323 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14324 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14325 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14326 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14327 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14328 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14329 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14330 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14331 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14332
14333 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14334
14335 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14336 std::unique_ptr.
14337 (displaced_step_clear): Rename to...
14338 (displaced_step_reset): ... this. Just call displaced->reset ().
14339 (displaced_step_clear_cleanup): Rename to...
14340 (displaced_step_reset_cleanup): ... this.
14341 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14342 (displaced_step_fixup): Likewise.
14343 (resume_1): Likewise.
14344 (handle_inferior_event): Restore child's memory before calling
14345 displaced_step_fixup on the parent.
14346 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14347 to std::unique_ptr.
14348 <step_closure>: Change type to std::unique_ptr.
14349
14350 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14351
14352 * arm-tdep.c: Include count-one-bits.h.
14353 (cleanup_block_store_pc): Use count_one_bits.
14354 (cleanup_block_load_pc): Use count_one_bits.
14355 (arm_copy_block_xfer): Use count_one_bits.
14356 (thumb2_copy_block_xfer): Use count_one_bits.
14357 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14358 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14359 (thumb_get_next_pcs_raw): Use count_one_bits.
14360 (arm_get_next_pcs_raw): Use count_one_bits_l.
14361 * arch/arm.c (bitcount): Remove.
14362 * arch/arm.h (bitcount): Remove.
14363
14364 2020-02-14 Tom Tromey <tromey@adacore.com>
14365
14366 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14367 Update.
14368 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14369 * dwarf2/loc.c (call_site_find_chain_1): Return
14370 unique_xmalloc_ptr.
14371 (call_site_find_chain): Likewise.
14372
14373 2020-02-14 Richard Biener <rguenther@suse.de>
14374
14375 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14376 on expression with division operators.
14377
14378 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14379
14380 * MAINTAINERS (Write After Approval): Adding myself.
14381
14382 2020-02-12 Tom Tromey <tom@tromey.com>
14383
14384 * event-loop.c (event_data, gdb_event, event_handler_func):
14385 Remove.
14386
14387 2020-02-12 Tom Tromey <tom@tromey.com>
14388
14389 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14390 (dwarf2_frame_objfile_data): Add comment.
14391 (find_comp_unit, set_comp_unit): New functions.
14392 (dwarf2_frame_find_fde): Use find_comp_unit.
14393 (dwarf2_build_frame_info): Use set_comp_unit.
14394
14395 2020-02-12 Tom Tromey <tom@tromey.com>
14396
14397 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14398 (comp_unit): Don't initialize objfile.
14399 (execute_cfa_program): Add text_offset parameter.
14400 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14401 (dwarf2_frame_cache): Update.
14402 (dwarf2_build_frame_info): Don't set "objfile" member.
14403
14404 2020-02-12 Tom Tromey <tom@tromey.com>
14405
14406 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14407 (decode_frame_entry): Likewise.
14408 (dwarf2_build_frame_info): Update.
14409
14410 2020-02-12 Tom Tromey <tom@tromey.com>
14411
14412 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14413 (decode_frame_entry_1): Use the comp_unit obstack.
14414
14415 2020-02-12 Tom Tromey <tom@tromey.com>
14416
14417 * dwarf2/frame.c (struct comp_unit): Add initializers and
14418 constructor.
14419 (dwarf2_frame_objfile_data): Store a comp_unit.
14420 (dwarf2_frame_find_fde): Update.
14421 (dwarf2_build_frame_info): Use "new".
14422
14423 2020-02-12 Tom Tromey <tom@tromey.com>
14424
14425 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14426 (dwarf2_fde_table): Typedef for std::vector.
14427 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14428 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14429 (decode_frame_entry): Update.
14430 (dwarf2_build_frame_info): Use "new".
14431
14432 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14433
14434 * arm-tdep.c (arm_gdbarch_init): Update.
14435 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14436 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14437 have_neon, is_m>: Change to bool.
14438
14439 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14440
14441 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14442
14443 2020-02-12 Tom Tromey <tom@tromey.com>
14444
14445 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14446
14447 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14448
14449 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14450 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14451
14452 2020-02-11 Tom Tromey <tom@tromey.com>
14453
14454 * psymtab.h: Update comment.
14455
14456 2020-02-11 Tom Tromey <tom@tromey.com>
14457
14458 * gdb_obstack.h (struct auto_obstack): Use
14459 DISABLE_COPY_AND_ASSIGN.
14460
14461 2020-02-11 Tom Tromey <tom@tromey.com>
14462
14463 * dwarf2/frame.h (struct objfile): Don't forward declare.
14464
14465 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14466
14467 * cris-tdep.c (cris_supply_gregset): Change signature to match
14468 what struct regset expects.
14469 (cris_regset): New struct.
14470 (fetch_core_registers): Remove.
14471 (cris_iterate_over_regset_sections): New function.
14472 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14473 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14474
14475 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14476
14477 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14478 registers.
14479
14480 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14481
14482 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14483
14484 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14485
14486 * configure: Re-generate.
14487
14488 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14489
14490 * configure: Re-generate.
14491
14492 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14493
14494 * acinclude: Update warning.m4 path.
14495 * warning.m4: Move to gdbsupport.
14496
14497 2020-02-11 Tom Tromey <tromey@adacore.com>
14498
14499 * remote.c (remote_console_output): Update.
14500 * printcmd.c (printf_command): Update.
14501 * event-loop.c (gdb_wait_for_event): Update.
14502 * linux-nat.c (sigchld_handler): Update.
14503 * remote-sim.c (gdb_os_write_stdout): Update.
14504 (gdb_os_flush_stdout): Update.
14505 (gdb_os_flush_stderr): Update.
14506 (gdb_os_write_stderr): Update.
14507 * exceptions.c (print_exception): Update.
14508 * remote-fileio.c (remote_fileio_func_read): Update.
14509 (remote_fileio_func_write): Update.
14510 * tui/tui.c (tui_enable): Update.
14511 * tui/tui-interp.c (tui_interp::init): Update.
14512 * utils.c (init_page_info): Update.
14513 (putchar_unfiltered, fputc_unfiltered): Update.
14514 (gdb_flush): Update.
14515 (emit_style_escape): Update.
14516 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14517 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14518 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14519 (stderr_file::write): Update.
14520 (stderr_file::puts): Update.
14521 * ui-file.h (ui_file_isatty, ui_file_write)
14522 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14523 (ui_file_puts): Don't declare.
14524
14525 2020-02-10 Tom de Vries <tdevries@suse.de>
14526
14527 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14528 sentinel to char *.
14529
14530 2020-02-09 Tom de Vries <tdevries@suse.de>
14531
14532 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14533 filename if it matches "<artificial>".
14534
14535 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14536
14537 * windows-tdep.c (struct enum_value_name): New struct.
14538 (create_enum): New function.
14539 (windows_get_siginfo_type): Create and use enum types.
14540
14541 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14542
14543 * NEWS: Mention $_siginfo support for Windows.
14544 * windows-nat.c (handle_exception): Set siginfo_er.
14545 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14546 (windows_xfer_siginfo): New function.
14547 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14548 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14549 (init_windows_gdbarch_data): New function.
14550 (get_windows_gdbarch_data): New function.
14551 (windows_get_siginfo_type): New function.
14552 (windows_init_abi): Register windows_get_siginfo_type.
14553 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14554
14555 2020-02-08 Tom Tromey <tom@tromey.com>
14556
14557 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14558 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14559 <keep>: Declare method.
14560 <m_keep>: Remove member.
14561 <~cutu_reader>: Remove.
14562 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14563 (cutu_reader::cutu_reader): Update.
14564 (cutu_reader::keep): Rename from ~cutu_reader.
14565 (process_psymtab_comp_unit, build_type_psymtabs_1)
14566 (process_skeletonless_type_unit, load_partial_comp_unit)
14567 (load_full_comp_unit, dwarf2_read_addr_index)
14568 (read_signatured_type): Update.
14569
14570 2020-02-08 Tom Tromey <tom@tromey.com>
14571
14572 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14573 "want_partial_unit" parameter.
14574 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14575 Inline check for DW_TAG_partial_unit.
14576 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14577
14578 2020-02-08 Tom Tromey <tom@tromey.com>
14579
14580 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14581 read.c.
14582 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14583 read.c.
14584
14585 2020-02-08 Tom Tromey <tom@tromey.com>
14586
14587 * dwarf2/read.c (read_address): Move to comp-unit.c.
14588 (dwarf2_rnglists_process, dwarf2_ranges_process)
14589 (read_attribute_value, dwarf_decode_lines_1)
14590 (var_decode_location, decode_locdesc): Update.
14591 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14592 read.c. Remove "cu" parameter.
14593 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14594 method.
14595
14596 2020-02-08 Tom Tromey <tom@tromey.com>
14597
14598 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14599 (read_indirect_line_string): Update.
14600 * dwarf2/comp-unit.c (read_offset): Remove.
14601 (read_comp_unit_head): Update.
14602 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14603 method.
14604 (read_offset): Don't declare.
14605
14606 2020-02-08 Tom Tromey <tom@tromey.com>
14607
14608 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14609 * dwarf2/read.c (struct comp_unit_head): Move to
14610 dwarf2/comp-unit.h.
14611 (enum class rcuh_kind): Move to comp-unit.h.
14612 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14613 (read_comp_unit_head, error_check_comp_unit_head)
14614 (read_and_check_comp_unit_head): Move to comp-unit.c.
14615 (read_offset, dwarf_unit_type_name): Likewise.
14616 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14617 (cutu_reader::cutu_reader, read_call_site_scope)
14618 (find_partial_die, follow_die_offset): Update.
14619 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14620
14621 2020-02-08 Tom Tromey <tom@tromey.com>
14622
14623 * dwarf2/read.c (read_offset_1): Move to leb.c.
14624 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14625 (dwarf_decode_macro_bytes): Update.
14626 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14627 * dwarf2/leb.h (read_offset): Declare.
14628
14629 2020-02-08 Tom Tromey <tom@tromey.com>
14630
14631 * dwarf2/read.c (dwarf2_section_size): Remove.
14632 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14633 Update.
14634 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14635
14636 2020-02-08 Tom Tromey <tom@tromey.com>
14637
14638 * dwarf2/read.c (read_initial_length): Move to leb.c.
14639 * dwarf2/leb.h (read_initial_length): Declare.
14640 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14641 handle_nonstd parameter.
14642 * dwarf2/frame.c (read_initial_length): Remove.
14643 (decode_frame_entry_1): Update.
14644
14645 2020-02-08 Tom Tromey <tom@tromey.com>
14646
14647 * dwarf2/loc.c (dwarf2_find_location_expression)
14648 (dwarf_evaluate_loc_desc::get_tls_address)
14649 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14650 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14651 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14652 (dwarf2_compile_property_to_c)
14653 (dwarf2_loc_desc_get_symbol_read_needs)
14654 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14655 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14656 (loclist_describe_location, loclist_tracepoint_var_ref)
14657 (loclist_generate_c_location): Update.
14658 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14659 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14660 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14661 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14662 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14663 (dwarf2_per_cu_data::addr_size)
14664 (dwarf2_per_cu_data::ref_addr_size)
14665 (dwarf2_per_cu_data::text_offset)
14666 (dwarf2_per_cu_data::addr_type): Now methods.
14667 (per_cu_header_read_in): Make per_cu "const".
14668 (dwarf2_version): Remove.
14669 (dwarf2_per_cu_data::int_type): Now a method.
14670 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14671 (set_die_type, read_array_type, read_subrange_index_type)
14672 (read_tag_string_type, read_subrange_type): Update.
14673 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14674 offset_size, ref_addr_size, text_offset, addr_type, version,
14675 objfile, int_type, addr_sized_int_type>: Declare methods.
14676
14677 2020-02-08 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14680 Move earlier.
14681
14682 2020-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * dwarf2/read.h (dwarf_line_debug): Declare.
14685 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14686 * dwarf2/read.c: Move line_header code to new files.
14687 (dwarf_line_debug): No longer static.
14688 * dwarf2/line-header.c: New file.
14689 * dwarf2/line-header.h: New file.
14690
14691 2020-02-08 Tom Tromey <tom@tromey.com>
14692
14693 * dwarf2/read.c (struct line_header) <file_full_name,
14694 file_file_name>: Return unique_xmalloc_ptr.
14695 (line_header::file_file_name): Update.
14696 (line_header::file_full_name): Update.
14697 (dw2_get_file_names_reader): Update.
14698 (macro_start_file): Update.
14699
14700 2020-02-08 Tom Tromey <tom@tromey.com>
14701
14702 * dwarf2/read.c (struct line_header) <file_full_name,
14703 file_file_name>: Declare methods.
14704 (dw2_get_file_names_reader): Update.
14705 (file_file_name): Now a method.
14706 (file_full_name): Likewise.
14707 (macro_start_file): Update.
14708
14709 2020-02-08 Tom Tromey <tom@tromey.com>
14710
14711 * dwarf2/read.c (dwarf_always_disassemble)
14712 (show_dwarf_always_disassemble): Move to loc.c.
14713 (_initialize_dwarf2_read): Move "always-disassemble" registration
14714 to loc.c.
14715 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14716 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14717 static.
14718 (show_dwarf_always_disassemble): Move from read.c.
14719 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14720
14721 2020-02-08 Tom Tromey <tom@tromey.com>
14722
14723 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14724 (create_quick_file_names_table): Return htab_up.
14725 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14726 Update.
14727 * dwarf2/read.h (struct dwarf2_per_objfile)
14728 <quick_file_names_table>: Now htab_up.
14729
14730 2020-02-08 Tom Tromey <tom@tromey.com>
14731
14732 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14733
14734 2020-02-08 Tom Tromey <tom@tromey.com>
14735
14736 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14737 Rewrite.
14738 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14739 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14740 (abbrev_table::abbrev_table): No longer inline.
14741 (ABBREV_HASH_SIZE): Remove.
14742 (abbrev_table::m_abbrevs): Now an htab_up.
14743
14744 2020-02-08 Tom Tromey <tom@tromey.com>
14745
14746 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14747 (cutu_reader): Update.
14748 (build_type_psymtabs_1): Update.
14749 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14750 (abbrev_table::alloc_abbrev): Update.
14751 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14752 (abbrev_table::read): New static method, renamed from
14753 abbrev_table_read_table.
14754 (abbrev_table::alloc_abbrev)
14755 (abbrev_table::add_abbrev): Now private.
14756 (abbrev_table::abbrev_table): Now private.
14757 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14758
14759 2020-02-08 Tom Tromey <tom@tromey.com>
14760
14761 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14762 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14763 htab_up.
14764
14765 2020-02-08 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14768 htab_up.
14769 (lookup_dwo_unit_in_dwp): Update.
14770 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14771 on obstack.
14772
14773 2020-02-08 Tom Tromey <tom@tromey.com>
14774
14775 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14776 obstack.
14777
14778 2020-02-08 Tom Tromey <tom@tromey.com>
14779
14780 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14781 line_header_hash.
14782 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14783 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14784 Change type to htab_up.
14785
14786 2020-02-08 Tom Tromey <tom@tromey.com>
14787
14788 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14789 htab_up. Don't allocate on obstack.
14790 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14791 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14792 Change type to htab_up.
14793
14794 2020-02-08 Tom Tromey <tom@tromey.com>
14795
14796 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14797 Change type to htab_up.
14798 * dwarf2/read.c (create_signatured_type_table_from_index)
14799 (create_signatured_type_table_from_debug_names)
14800 (create_all_type_units, add_type_unit)
14801 (lookup_dwo_signatured_type, lookup_signatured_type)
14802 (process_skeletonless_type_unit): Update.
14803 (create_debug_type_hash_table, create_debug_types_hash_table):
14804 Change type of types_htab.
14805 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14806 htab_up. Don't allocate on obstack.
14807 (create_cus_hash_table): Change type of cus_htab parameter.
14808 (struct dwo_file) <cus, tus>: Now htab_up.
14809 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14810 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14811 (queue_and_load_all_dwo_tus): Update.
14812 * dwarf2/index-write.c (write_gdbindex): Update.
14813 (write_debug_names): Update.
14814
14815 2020-02-08 Tom Tromey <tom@tromey.com>
14816
14817 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14818 dwarf2/read.c. Remove "next" member. Add constructor ntad
14819 destructor.
14820 (struct dwarf2_per_objfile) <queue>: New member.
14821 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14822 dwarf2/read.h.
14823 (dwarf2_queue, dwarf2_queue_tail): Remove.
14824 (class dwarf2_queue_guard): Add parameter to constructor. Use
14825 DISABLE_COPY_AND_ASSIGN.
14826 <m_per_objfile>: New member.
14827 <~dwarf2_queue_guard>: Rewrite.
14828 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14829 Update.
14830 (~dwarf2_queue_item): New.
14831
14832 2020-02-08 Tom Tromey <tom@tromey.com>
14833
14834 * dwarf2/read.c (struct die_info) <has_children>: New member.
14835 (dw2_get_file_names_reader): Remove has_children.
14836 (dw2_get_file_names): Update.
14837 (read_cutu_die_from_dwo): Remove has_children.
14838 (cutu_reader::init_tu_and_read_dwo_dies)
14839 (cutu_reader::cutu_reader): Update.
14840 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14841 Remove has_children.
14842 (build_type_psymtabs_1, process_skeletonless_type_unit)
14843 (load_partial_comp_unit, load_full_comp_unit): Update.
14844 (create_dwo_cu_reader): Remove has_children.
14845 (create_cus_hash_table, read_die_and_children): Update.
14846 (read_full_die_1,read_full_die): Remove has_children.
14847 (read_signatured_type): Update.
14848 (class cutu_reader) <has_children>: Remove.
14849
14850 2020-02-08 Tom Tromey <tom@tromey.com>
14851
14852 * dwarf2/expr.c: Rename from dwarf2expr.c.
14853 * dwarf2/expr.h: Rename from dwarf2expr.h.
14854 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14855 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14856 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14857 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14858 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14859 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14860 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14861 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14862 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14863 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14864 * dwarf2/loc.c: Rename from dwarf2loc.c.
14865 * dwarf2/loc.h: Rename from dwarf2loc.h.
14866 * dwarf2/read.c: Rename from dwarf2read.c.
14867 * dwarf2/read.h: Rename from dwarf2read.h.
14868 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14869 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14870 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14871 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14872 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14873 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14874 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14875 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14876 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14877 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14878 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14879 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14880 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14881 Update.
14882 * Makefile.in (COMMON_SFILES): Update.
14883 (HFILES_NO_SRCDIR): Update.
14884
14885 2020-02-08 Tom Tromey <tom@tromey.com>
14886
14887 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14888 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14889
14890 2020-02-08 Tom Tromey <tom@tromey.com>
14891
14892 * dwarf2read.h (struct die_info): Don't declare.
14893
14894 2020-02-08 Tom Tromey <tom@tromey.com>
14895
14896 * dwarf2read.h (die_info_ptr): Remove typedef.
14897
14898 2020-02-08 Tom Tromey <tom@tromey.com>
14899
14900 * dwarf2read.c (read_call_site_scope)
14901 (handle_data_member_location, dwarf2_add_member_fn)
14902 (mark_common_block_symbol_computed, read_common_block)
14903 (attr_to_dynamic_prop, partial_die_info::read)
14904 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14905 (dwarf2_symbol_mark_computed, set_die_type): Update.
14906 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14907 method.
14908 (attr_form_is_block): Don't declare.
14909 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14910
14911 2020-02-08 Tom Tromey <tom@tromey.com>
14912
14913 * dwarf2read.c (dwarf2_find_base_address, )
14914 (read_call_site_scope, rust_containing_type)
14915 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14916 (handle_data_member_location, dwarf2_add_member_fn)
14917 (get_alignment, read_structure_type, process_structure_scope)
14918 (mark_common_block_symbol_computed, read_common_block)
14919 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14920 (partial_die_info::read, read_attribute_value, new_symbol)
14921 (lookup_die_type, dwarf2_get_ref_die_offset)
14922 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14923 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14924 (dwarf2_symbol_mark_computed): Update.
14925 * dwarf2/attribute.h (struct attribute) <value_as_address,
14926 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14927 methods.
14928 (value_as_address, attr_form_is_section_offset)
14929 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14930 * dwarf2/attribute.c (attribute::value_as_address)
14931 (attribute::form_is_section_offset, attribute::form_is_constant)
14932 (attribute::form_is_ref): Now methods.
14933
14934 2020-02-08 Tom Tromey <tom@tromey.com>
14935
14936 * dwarf2read.c (struct attribute, DW_STRING)
14937 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14938 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14939 (attr_form_is_block, attr_form_is_section_offset)
14940 (attr_form_is_constant, attr_form_is_ref): Move.
14941 * dwarf2/attribute.h: New file.
14942 * dwarf2/attribute.c: New file, from dwarf2read.c.
14943 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14944
14945 2020-02-08 Tom Tromey <tom@tromey.com>
14946
14947 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14948 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14949 Move.
14950 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14951 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14952 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14953 abbrev.c.
14954 * dwarf2/abbrev.h: New file.
14955 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14956 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14957
14958 2020-02-08 Tom Tromey <tom@tromey.com>
14959
14960 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14961 (dwarf2_section_size, dwarf2_get_section_info)
14962 (create_signatured_type_table_from_debug_names)
14963 (create_addrmap_from_aranges, read_debug_names_from_section)
14964 (get_gdb_index_contents_from_section, read_comp_unit_head)
14965 (error_check_comp_unit_head, read_abbrev_offset)
14966 (create_debug_type_hash_table, init_cu_die_reader)
14967 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14968 (read_comp_units_from_section, create_cus_hash_table)
14969 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14970 (create_dwp_v2_section, dwarf2_rnglists_process)
14971 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14972 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14973 (read_indirect_string_from_dwz, read_addr_index_1)
14974 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14975 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14976 (fill_in_loclist_baton): Update.
14977 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14978 get_containing_section, get_bfd_owner, get_bfd_section,
14979 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14980 (dwarf2_read_section, get_section_name, get_section_file_name)
14981 (get_containing_section, get_section_bfd_owner)
14982 (get_section_bfd_section, get_section_name, get_section_file_name)
14983 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14984 declare.
14985 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14986 (dwarf2_section_info::get_bfd_owner)
14987 (dwarf2_section_info::get_bfd_section)
14988 (dwarf2_section_info::get_name)
14989 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14990 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14991 (dwarf2_section_info::read): Now methods.
14992 * dwarf-index-write.c (class debug_names): Update.
14993
14994 2020-02-08 Tom Tromey <tom@tromey.com>
14995
14996 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14997 Move to dwarf2/section.h.
14998 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14999 (get_section_bfd_section, get_section_name)
15000 (get_section_file_name, get_section_id, get_section_flags)
15001 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15002 dwarf2/section.c.
15003 * dwarf2/section.h: New file.
15004 * dwarf2/section.c: New file, from dwarf2read.c.
15005 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15006
15007 2020-02-08 Tom Tromey <tom@tromey.com>
15008
15009 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15010 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15011 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15012 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15013 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15014 * dwarf2/leb.h: New file, from dwarf2read.c.
15015 * dwarf2/leb.c: New file, from dwarf2read.c.
15016 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15017 Remove.
15018 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15019 (COMMON_SFILES): Add dwarf2/leb.c.
15020
15021 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15022
15023 GDB 9.1 released.
15024
15025 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15026
15027 PR gdb/25190:
15028 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15029 * gdb/remote.c (remote_console_output): Update.
15030 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15031 (ui_file_puts): ...this.
15032 * gdb/ui-file.h (ui_file_puts): Add declaration.
15033 * gdb/utils.c (emit_style_escape): Update.
15034 (flush_wrap_buffer): Update.
15035 (fputs_maybe_filtered): Update.
15036 (fputs_unfiltered): Add function.
15037
15038 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15039
15040 * gdb/event-loop.c (gdb_wait_for_event): Update.
15041 * gdb/printcmd.c (printf_command): Update.
15042 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15043 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15044 (gdb_os_flush_stderr): Update.
15045 * gdb/remote.c (remote_console_output): Update.
15046 * gdb/ui-file.c (gdb_flush): Rename to...
15047 (ui_file_flush): ...this.
15048 (stderr_file::write): Update.
15049 (stderr_file::puts): Update.
15050 * gdb/ui-file.h (gdb_flush): Rename to...
15051 (ui_file_flush): ...this.
15052 * gdb/utils.c (gdb_flush): Add function.
15053 * gdb/utils.h (gdb_flush): Add declaration.
15054
15055 2020-02-07 Tom Tromey <tromey@adacore.com>
15056
15057 PR breakpoints/24915:
15058 * source.c (find_and_open_source): Do not check basenames_may_differ.
15059
15060 2020-02-07 Tom Tromey <tom@tromey.com>
15061
15062 * README: Update gdbserver documentation.
15063 * gdbserver: Move to top level.
15064 * configure.tgt (build_gdbserver): Remove.
15065 * configure.ac: Remove --enable-gdbserver.
15066 * configure: Rebuild.
15067 * Makefile.in (distclean): Don't mention gdbserver.
15068
15069 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15070
15071 * source-cache.c (source_cache::ensure): Surround
15072 get_plain_source_lines with a try/catch.
15073 (source_cache::get_line_charpos): Get rid of try/catch
15074 and only check for the return value of "ensure".
15075 * tui/tui-source.c (tui_source_window::set_contents):
15076 Simplify "nlines" calculation.
15077
15078 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15079
15080 * MAINTAINERS (Write After Approval): Add myself.
15081
15082 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15083
15084 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15085 function call.
15086
15087 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15088
15089 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15090
15091 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15092
15093 * nat/riscv-linux-tdesc.h: New file.
15094 * nat/riscv-linux-tdesc.c: New file, taking code from...
15095 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15096 ... here.
15097 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15098 NATDEPFILES.
15099
15100 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15101
15102 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15103 we don't set the fake simulator ptid to the null_ptid.
15104
15105 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15106
15107 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15108 * gdbthread.h (class thread_info) <resumed>: Likewise.
15109 * infrun.c (resume_1): Likewise.
15110 (proceed): Likewise.
15111 (infrun_thread_stop_requested): Likewise.
15112 (stop_all_threads): Likewise.
15113 (handle_inferior_event): Likewise.
15114 (restart_threads): Likewise.
15115 (finish_step_over): Likewise.
15116 (keep_going_stepped_thread): Likewise.
15117 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15118 (linux_handle_extended_wait): Likewise.
15119 * record-btrace.c (get_thread_current_frame_id): Likewise.
15120 * record-full.c (record_full_wait_1): Likewise.
15121 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15122 * target.c (target_resume): Likewise.
15123 * thread.c (set_running_thread): Likewise.
15124
15125 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15126
15127 * f-valprint.c (f77_print_array_1): Changed datatype of index
15128 variable to LONGEST from int to enable it to contain bound
15129 values correctly.
15130
15131 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15132
15133 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15134 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15135 offsets according to FLEN determined.
15136 (riscv_linux_nat_target::read_description): Determine FLEN
15137 dynamically.
15138 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15139 according to FLEN determined.
15140 (riscv_linux_nat_target::store_registers): Likewise.
15141
15142 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15143
15144 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15145 when reg->group is empty and reggroup is not.
15146
15147 2020-01-31 Tom Tromey <tromey@adacore.com>
15148
15149 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15150 Call beneath target's mourn_inferior after unpushing.
15151
15152 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15153
15154 PR tui/9765
15155 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15156 have enough lines to fill the screen, still return the lowest
15157 address we found.
15158
15159 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15160
15161 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15162 '-', '<', and '>' commands.
15163
15164 2020-01-29 Pedro Alves <palves@redhat.com>
15165 Sergio Durigan Junior <sergiodj@redhat.com>
15166
15167 * infcmd.c (construct_inferior_arguments): Assert that
15168 'argc' is greater than 0.
15169
15170 2020-01-29 Luis Machado <luis.machado@linaro.org>
15171
15172 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15173 (BRK_INSN_MASK): Define to 0xd4200000.
15174 (aarch64_program_breakpoint_here_p): New function.
15175 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15176 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15177 breakpoint.c.
15178 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15179 breakpoint.h
15180 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15181 call gdbarch_program_breakpoint_here_p.
15182 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15183 default_program_breakpoint_here_p, changed return type to bool and
15184 simplified.
15185 * breakpoint.h (program_breakpoint_here): Moved prototype to
15186 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15187 return type to bool.
15188 * gdbarch.c: Regenerate.
15189 * gdbarch.h: Regenerate.
15190 * gdbarch.sh (program_breakpoint_here_p): New method.
15191 * infrun.c (handle_signal_stop): Call
15192 gdbarch_program_breakpoint_here_p.
15193
15194 2020-01-26 Tom Tromey <tom@tromey.com>
15195
15196 * ctfread.c (struct ctf_fp_info): Reindent.
15197 (_initialize_ctfread): Remove.
15198
15199 2020-01-26 Tom Tromey <tom@tromey.com>
15200
15201 * psymtab.c (partial_map_expand_apply)
15202 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15203 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15204 (psym_print_stats, psym_expand_symtabs_for_function)
15205 (psym_map_symbol_filenames, psym_map_matching_symbols)
15206 (psym_expand_symtabs_matching)
15207 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15208 (maintenance_check_psymtabs): Use new methods.
15209 * psympriv.h (struct partial_symtab) <readin_p,
15210 get_compunit_symtab>: New methods.
15211 <readin, compunit_symtab>: Remove members.
15212 (struct standard_psymtab): New.
15213 (struct legacy_psymtab): Derive from standard_psymtab.
15214 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15215 standard_psymtab.
15216 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15217
15218 2020-01-26 Tom Tromey <tom@tromey.com>
15219
15220 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15221 read_dependencies. Add assert.
15222 * psymtab.c (partial_symtab::read_dependencies): New method.
15223 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15224 method.
15225 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15226 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15227 read_dependencies.
15228 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15229 Add assert.
15230
15231 2020-01-26 Tom Tromey <tom@tromey.com>
15232
15233 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15234 Call expand_psymtab.
15235 (xcoff_read_symtab): Call expand_psymtab.
15236 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15237 legacy_expand_psymtab.
15238 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15239 method.
15240 (struct legacy_psymtab) <expand_psymtab>: Implement.
15241 <legacy_expand_psymtab>: New member.
15242 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15243 (parse_partial_symbols): Set legacy_expand_psymtab.
15244 (psymtab_to_symtab_1): Change argument order. Call
15245 expand_psymtab.
15246 (new_psymtab): Set legacy_expand_psymtab.
15247 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15248 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15249 expand_psymtab.
15250 (dwarf2_psymtab::expand_psymtab): Rename from
15251 psymtab_to_symtab_1. Call expand_psymtab.
15252 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15253 (dbx_end_psymtab): Likewise.
15254 (dbx_psymtab_to_symtab_1): Change argument order. Call
15255 expand_psymtab.
15256 (dbx_read_symtab): Call expand_psymtab.
15257 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15258 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15259 (ctf_psymtab::read_symtab): Call expand_psymtab.
15260
15261 2020-01-26 Tom Tromey <tom@tromey.com>
15262
15263 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15264 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15265 messages.
15266 * mdebugread.c (mdebug_read_symtab): Remove prints.
15267 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15268 assert.
15269 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15270
15271 2020-01-26 Tom Tromey <tom@tromey.com>
15272
15273 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15274 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15275 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15276 legacy_symtab.
15277 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15278 * psymtab.c (psymtab_to_symtab): Call method.
15279 (dump_psymtab): Update.
15280 * psympriv.h (struct partial_symtab): Add virtual destructor.
15281 <read_symtab>: New method.
15282 (struct legacy_symtab): New.
15283 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15284 (struct pst_map) <pst>: Now a legacy_psymtab.
15285 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15286 (new_psymtab): Use legacy_psymtab.
15287 * dwarf2read.h (struct dwarf2_psymtab): New.
15288 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15289 * dwarf2read.c (dwarf2_create_include_psymtab)
15290 (dwarf2_build_include_psymtabs, create_type_unit_group)
15291 (create_partial_symtab, process_psymtab_comp_unit_reader)
15292 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15293 (set_partial_user): Use dwarf2_psymtab.
15294 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15295 (psymtab_to_symtab_1, process_full_comp_unit)
15296 (process_full_type_unit, dwarf2_ranges_read)
15297 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15298 (dwarf_decode_lines): Use dwarf2_psymtab.
15299 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15300 (add_address_entry_worker, write_one_signatured_type)
15301 (recursively_count_psymbols, recursively_write_psymbols)
15302 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15303 (write_debug_names): Likewise.
15304 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15305 <pst>: Now a legacy_psymtab.
15306 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15307 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15308 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15309 * ctfread.c (struct ctf_psymtab): New.
15310 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15311 ctf_psymtab.
15312 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15313 (create_partial_symtab): Return a ctf_psymtab.
15314 (scan_partial_symbols): Update.
15315
15316 2020-01-26 Tom Tromey <tom@tromey.com>
15317
15318 * xcoffread.c (xcoff_start_psymtab): Use new.
15319 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15320 renamed from start_psymtab_common.
15321 * psympriv.h (struct partial_symtab): Add new constructor.
15322 (start_psymtab_common): Don't declare.
15323 * mdebugread.c (parse_partial_symbols): Use new.
15324 * dwarf2read.c (create_partial_symtab): Use new.
15325 * dbxread.c (start_psymtab): Use new.
15326 * ctfread.c (create_partial_symtab): Use new.
15327
15328 2020-01-26 Tom Tromey <tom@tromey.com>
15329
15330 * xcoffread.c (xcoff_end_psymtab): Use new.
15331 * psymtab.c (start_psymtab_common): Use new.
15332 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15333 Update.
15334 * psympriv.h (struct partial_symtab): Add parameters to
15335 constructor. Don't inline.
15336 (allocate_psymtab): Don't declare.
15337 * mdebugread.c (new_psymtab): Use new.
15338 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15339 * dbxread.c (dbx_end_psymtab): Use new.
15340
15341 2020-01-26 Tom Tromey <tom@tromey.com>
15342
15343 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15344 allocate_psymtab. Update documentation.
15345 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15346 allocate_psymtab. Do not use new.
15347 (allocate_psymtab): Use new. Update.
15348
15349 2020-01-26 Tom Tromey <tom@tromey.com>
15350
15351 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15352 * psymtab.c (psym_print_stats): Update.
15353 * psympriv.h (struct partial_symtab) <readin,
15354 psymtabs_addrmap_supported, anonymous>: Now bool.
15355 * mdebugread.c (psymtab_to_symtab_1): Update.
15356 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15357 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15358 (process_full_comp_unit, process_full_type_unit): Update.
15359 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15360 * ctfread.c (psymtab_to_symtab): Update.
15361
15362 2020-01-26 Tom Tromey <tom@tromey.com>
15363
15364 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15365 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15366 * psymtab.c (psymtab_storage): Delete psymtabs.
15367 (psymtab_storage::allocate_psymtab): Use new.
15368 (psymtab_storage::discard_psymtab): Use delete.
15369 * psympriv.h (struct partial_symtab): Add constructor and
15370 initializers.
15371
15372 2020-01-26 Tom Tromey <tom@tromey.com>
15373
15374 * machoread.c: Do not include psympriv.h.
15375
15376 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15377
15378 * NEWS: Mention the new option and the set/show commands.
15379
15380 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15381
15382 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15383 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15384 (validate_exec_file): New variables, enums, functions.
15385 (exec_file_locate_attach, print_section_info): Style the filenames.
15386 (_initialize_exec): Install show_exec_file_mismatch_command and
15387 set_exec_file_mismatch_command.
15388 * gdbcore.h (validate_exec_file): Declare.
15389 * infcmd.c (attach_command): Call validate_exec_file.
15390 * remote.c ( remote_target::remote_add_inferior): Likewise.
15391
15392 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15393
15394 * frame.c (find_frame_sal): Move call to get_next_frame into more
15395 inner scope.
15396 * inline-frame.c (inilne_state) <inline_state>: Update argument
15397 types.
15398 (inilne_state) <skipped_symbol>: Rename to...
15399 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15400 (skip_inline_frames): Build vector of skipped symbols and use this
15401 to reate the inline_state.
15402 (inline_skipped_symbol): Add a comment and some assertions, fetch
15403 skipped symbol from the list.
15404
15405 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15406
15407 * buildsym.c (lte_is_less_than): Delete.
15408 (buildsym_compunit::end_symtab_with_blockvector): Create local
15409 lambda function to sort line table entries, and use
15410 std::stable_sort instead of std::sort.
15411 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15412 markers when looking for a previous line.
15413
15414 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15415
15416 * dwarf2read.c (lnp_state_machine::record_line): Include
15417 end_sequence parameter in debug print out. Record the line if we
15418 are at an end_sequence marker even if it's not the start of a
15419 statement.
15420 * symmisc.c (maintenance_print_one_line_table): Print end of
15421 sequence markers with 'END' not '0'.
15422
15423 2020-01-24 Pedro Alves <palves@redhat.com>
15424
15425 PR gdb/25410
15426 * thread.c (scoped_restore_current_thread::restore): Use
15427 switch_to_inferior_no_thread.
15428 * exec.c: Include "progspace-and-thread.h".
15429 (add_target_sections, remove_target_sections):
15430 scoped_restore_current_pspace_and_thread instead of
15431 scoped_restore_current_thread.
15432 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15433 and aspace to the inferior before calling clone_program_space.
15434 Remove stale comment.
15435
15436 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15437
15438 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15439 (arm_netbsd_nat_target::fetch_registers): ...this.
15440 (arm_nbsd_nat_target::store_registers): Rename to...
15441 (arm_netbsd_nat_target::store_registers): ...this.
15442
15443 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15444
15445 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15446 register_t.
15447
15448 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15449
15450 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15451 Update comment.
15452 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15453 Likewise.
15454 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15455 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15456 the correct replacement (iterate_over_regset_sections).
15457 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15458 Update comment.
15459
15460 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15461
15462 PR gdb/23718
15463 * gdb/python/python.c (execute_gdb_command): Call
15464 async_enable_stdin in catch block.
15465
15466 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15467
15468 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15469 SWITCH_THRU_ALL_UIS.
15470
15471 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15472
15473 PR tui/9765
15474 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15475 comment, add extra parameter, and update to store previous symbol
15476 when appropriate.
15477 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15478 add extra parameter.
15479 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15480 remove unneeded parameter, add try/catch around gdb_print_insn,
15481 rewrite to add items to asm_lines vector.
15482 (tui_find_backward_disassembly_start_address): New function.
15483 (tui_find_disassembly_address): Updated throughout.
15484 (tui_disasm_window::set_contents): Update for changes to
15485 tui_disassemble.
15486 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15487 number of lines to scroll.
15488
15489 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15490
15491 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15492 (SECT_OFF_DATA): Likewise.
15493 (SECT_OFF_RODATA): Likewise.
15494 (SECT_OFF_TEXT): Likewise.
15495 (SECT_OFF_BSS): Likewise.
15496 (struct objfile) <text_section_offset, data_section_offset>: New
15497 methods.
15498 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15499 objfile::text_section_offset.
15500 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15501 * coffread.c (coff_symtab_read): Likewise.
15502 (enter_linenos): Likewise.
15503 (process_coff_symbol): Likewise.
15504 * ctfread.c (get_objfile_text_range): Likewise.
15505 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15506 Use objfile::data_section_offset.
15507 * dwarf2-frame.c (execute_cfa_program): Use
15508 objfile::text_section_offset.
15509 (dwarf2_frame_find_fde): Likewise.
15510 * dwarf2read.c (create_addrmap_from_index): Likewise.
15511 (create_addrmap_from_aranges): Likewise.
15512 (dw2_find_pc_sect_compunit_symtab): Likewise.
15513 (process_psymtab_comp_unit_reader): Likewise.
15514 (add_partial_symbol): Likewise.
15515 (add_partial_subprogram): Likewise.
15516 (process_full_comp_unit): Likewise.
15517 (read_file_scope): Likewise.
15518 (read_func_scope): Likewise.
15519 (read_lexical_block_scope): Likewise.
15520 (read_call_site_scope): Likewise.
15521 (dwarf2_rnglists_process): Likewise.
15522 (dwarf2_ranges_process): Likewise.
15523 (dwarf2_ranges_read): Likewise.
15524 (dwarf_decode_lines_1): Likewise.
15525 (new_symbol): Likewise.
15526 (dwarf2_fetch_die_loc_sect_off): Likewise.
15527 (dwarf2_per_cu_text_offset): Likewise.
15528 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15529 * hppa-tdep.c (read_unwind_info): Likewise.
15530 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15531 * psympriv.h (struct partial_symtab): Likewise.
15532 * psymtab.c (find_pc_sect_psymtab): Likewise.
15533 * solib-svr4.c (enable_break): Likewise.
15534 * stap-probe.c (relocate_address): Use
15535 objfile::data_section_offset.
15536 * xcoffread.c (enter_line_range): Use
15537 objfile::text_section_offset.
15538 (read_xcoff_symtab): Likewise.
15539
15540 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15541
15542 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15543 declaration to narrower scopes.
15544
15545 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15546
15547 * darwin-nat.h (struct darwin_exception_msg, enum
15548 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15549 Move up.
15550 (class darwin_nat_target) <wait_1, check_new_threads,
15551 decode_exception_message, decode_message, stop_inferior,
15552 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15553 * darwin-nat.c (darwin_check_new_threads): Rename to...
15554 (darwin_nat_target::check_new_threads): ... this.
15555 (darwin_suspend_inferior_it): Remove.
15556 (darwin_decode_exception_message): Rename to...
15557 (darwin_nat_target::decode_exception_message): ... this.
15558 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15559 (darwin_decode_message): Rename to...
15560 (darwin_nat_target::decode_message): ... this.
15561 (cancel_breakpoint): Rename to...
15562 (darwin_nat_target::cancel_breakpoint): ... this.
15563 (darwin_wait): Rename to...
15564 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15565 instead of iterate_over_inferiors.
15566 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15567 (darwin_stop_inferior): Rename to...
15568 (darwin_nat_target::stop_inferior): ... this.
15569 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15570 (darwin_init_thread_list): Rename to...
15571 (darwin_nat_target::init_thread_list): ... this.
15572 (darwin_ptrace_him): Rename to...
15573 (darwin_nat_target::ptrace_him): ... this.
15574 (darwin_nat_target::create_inferior): Pass lambda function to
15575 fork_inferior.
15576 (darwin_nat_target::detach): Call stop_inferior instead of
15577 darwin_stop_inferior.
15578 * fork-inferior.h (fork_inferior): Change init_trace_fun
15579 parameter to gdb::function_view.
15580 * fork-inferior.c (fork_inferior): Likewise.
15581
15582 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15583
15584 * i386-cygwin-tdep.c (core_process_module_section): Update.
15585 * windows-nat.c (struct lm_info_windows): Add text_offset.
15586 (windows_xfer_shared_libraries): Update.
15587 * windows-tdep.c (windows_xfer_shared_library):
15588 Add text_offset_cached argument.
15589 * windows-tdep.h (windows_xfer_shared_library): Update.
15590
15591 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15592
15593 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15594
15595 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15596
15597 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15598 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15599 replace with range-based for.
15600 (gdbsim_interrupt_inferior): Remove.
15601 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15602 with a range-based for. Inline code from
15603 gdbsim_interrupt_inferior.
15604
15605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15606
15607 * infrun.c (proceed): Fix indentation.
15608
15609 2020-01-21 Tom Tromey <tromey@adacore.com>
15610
15611 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15612 * python/python.c (python_extension_ops): Update.
15613 (gdbpy_colorize): New function.
15614 * python/lib/gdb/__init__.py (colorize): New function.
15615 * extension.h (ext_lang_colorize): Declare.
15616 * extension.c (ext_lang_colorize): New function.
15617 * extension-priv.h (struct extension_language_ops) <colorize>: New
15618 member.
15619 * cli/cli-style.c (_initialize_cli_style): Update help text.
15620
15621 2020-01-21 Luis Machado <luis.machado@linaro.org>
15622
15623 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15624 <cond>: Change type to bool.
15625 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15626 (aarch64_displaced_step_cb): Likewise.
15627 (aarch64_displaced_step_tb): Likewise.
15628
15629 2020-01-21 Luis Machado <luis.machado@linaro.org>
15630
15631 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15632 output.
15633
15634 2020-01-21 Luis Machado <luis.machado@linaro.org>
15635
15636 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15637 <pc_adjust>: Adjust the documentation.
15638 (aarch64_displaced_step_fixup): Check if PC really moved before
15639 adjusting it.
15640
15641 2020-01-19 Tom Tromey <tom@tromey.com>
15642
15643 * disasm.c (~gdb_disassembler): New destructor.
15644 (gdb_buffered_insn_length): Call disassemble_free_target.
15645 * disasm.h (class gdb_disassembler): Declare destructor. Use
15646 DISABLE_COPY_AND_ASSIGN.
15647
15648 2020-01-19 Tom Tromey <tom@tromey.com>
15649
15650 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15651 (die_reader_func_ftype): Remove.
15652 (cutu_reader): New class.
15653 (dw2_get_file_names_reader): Remove "data" parameter.
15654 (dw2_get_file_names): Use cutu_reader.
15655 (create_debug_type_hash_table): Update.
15656 (read_cutu_die_from_dwo): Update comment.
15657 (lookup_dwo_unit): Add dwo_name parameter.
15658 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15659 die_reader_func_ftype and data parameters.
15660 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15661 Remove die_reader_func_ftype and data parameters.
15662 (~cutu_reader): New; from init_cutu_and_read_dies.
15663 (cutu_reader::cutu_reader): Rename from
15664 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15665 and data parameters.
15666 (init_cutu_and_read_dies_simple): Remove.
15667 (struct process_psymtab_comp_unit_data): Remove.
15668 (process_psymtab_comp_unit_reader): Remove data parameter; add
15669 want_partial_unit and pretend_language parameters.
15670 (process_psymtab_comp_unit): Use cutu_reader.
15671 (build_type_psymtabs_reader): Remove data parameter.
15672 (build_type_psymtabs_1): Use cutu_reader.
15673 (process_skeletonless_type_unit): Likewise.
15674 (load_partial_comp_unit_reader): Remove.
15675 (load_partial_comp_unit): Use cutu_reader.
15676 (load_full_comp_unit_reader): Remove.
15677 (load_full_comp_unit): Use cutu_reader.
15678 (struct create_dwo_cu_data): Remove.
15679 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15680 dwo_unit parameters.
15681 (create_cus_hash_table): Use cutu_reader.
15682 (struct dwarf2_read_addr_index_data): Remove.
15683 (dwarf2_read_addr_index_reader): Remove.
15684 (dwarf2_read_addr_index): Use cutu_reader.
15685 (read_signatured_type_reader): Remove.
15686 (read_signatured_type): Use cutu_reader.
15687
15688 2020-01-19 Tom Tromey <tom@tromey.com>
15689
15690 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15691 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15692 (tui_wrefresh): Declare.
15693 * tui/tui-wingeneral.c (suppress_output): New global.
15694 (tui_suppress_output, ~tui_suppress_output): New constructor and
15695 destructor.
15696 (tui_wrefresh): New function.
15697 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15698 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15699 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15700 method.
15701 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15702 tui_wrefresh.
15703 (tui_data_window::no_refresh): New method.
15704 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15705 (tui_reg_command): Use tui_suppress_output
15706 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15707 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15708 method.
15709 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15710
15711 2020-01-19 Tom Tromey <tom@tromey.com>
15712
15713 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15714 Handle case where symtab is null.
15715
15716 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15717
15718 * linux-fork.c (one_fork_p): Simplify.
15719
15720 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15721
15722 * top.c (struct qt_args): Remove.
15723 (kill_or_detach): Change return type to void, replace `void *`
15724 parameter with a proper one.
15725 (print_inferior_quit_action): Likewise.
15726 (quit_confirm): Use range-based for loop to iterate over inferiors.
15727 (quit_force): Likewise.
15728
15729 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15730
15731 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15732 `void *` parameter with proper parameters.
15733 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15734 (print_one_inferior): Change return type to void, replace `void *`
15735 parameter with proper parameters.
15736 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15737 inferiors.
15738 (get_other_inferior): Remove.
15739 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15740 inferiors.
15741
15742 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15743
15744 * mi/mi-interp.c (report_initial_inferior): Remove.
15745 (mi_interp::init): Use range-based for to iterate over inferiors.
15746
15747 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15748
15749 * python/py-inferior.c (build_inferior_list): Remove.
15750 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15751
15752 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15753
15754 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15755 (btrace_stitch_trace): Likewise.
15756 * charset.c (intermediate_encoding): Likewise (vaild).
15757 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15758 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15759 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15760
15761 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15762
15763 * windows-tdep.c (windows_get_tlb_type):
15764 Add rtl_user_process_parameters type.
15765
15766 2020-01-16 Pedro Alves <palves@redhat.com>
15767 Norbert Lange <nolange79@gmail.com>
15768
15769 PR build/24805
15770 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15771 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15772 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15773 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15774 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15775 (ps_plog): Redeclare exported functions with default visibility.
15776
15777 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15778
15779 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15780 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15781
15782 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15783
15784 * infcmd.c (post_create_inferior): Use get_thread_regcache
15785 instead of get_current_regcache.
15786
15787 2020-01-14 Tom Tromey <tom@tromey.com>
15788
15789 PR symtab/12535:
15790 * python/python.c (gdbpy_decode_line): Treat empty string the same
15791 as no argument.
15792
15793 2020-01-14 Tom Tromey <tom@tromey.com>
15794
15795 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15796
15797 2020-01-14 Tom Tromey <tom@tromey.com>
15798
15799 * nat/linux-btrace.c: Don't include <config.h>.
15800 * nat/linux-ptrace.c: Don't include <config.h>.
15801 * nat/x86-linux-dregs.c: Don't include <config.h>.
15802
15803 2020-01-14 Tom Tromey <tom@tromey.com>
15804
15805 * configure: Rebuild.
15806 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15807
15808 2020-01-14 Tom Tromey <tom@tromey.com>
15809
15810 * nat/x86-linux-dregs.c: Include configh.h.
15811 * nat/linux-ptrace.c: Include configh.h.
15812 * nat/linux-btrace.c: Include configh.h.
15813 * defs.h: Include config.h, bfd.h.
15814 * configure.ac: Don't source common.host.
15815 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15816 * configure: Rebuild.
15817 * acinclude.m4: Update path.
15818 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15819 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15820 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15821 (CLIBS): Add LIBSUPPORT.
15822 (CDEPS): Likewise.
15823 (COMMON_SFILES): Remove gdbsupport files.
15824 (HFILES_NO_SRCDIR): Likewise.
15825 (stamp-version): Update path to create-version.sh.
15826 (ALLDEPFILES): Remove gdbsupport files.
15827
15828 2020-01-14 Tom Tromey <tom@tromey.com>
15829
15830 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15831 USE_WIN32API when needed.
15832 * configure.ac (USE_WIN32API): Don't define.
15833 (WIN32LIBS): Use WIN32APILIBS.
15834 * configure: Rebuild.
15835
15836 2020-01-14 Tom Tromey <tom@tromey.com>
15837
15838 * configure: Rebuild.
15839 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15840
15841 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15842
15843 * skip.c (skip_function_command): Make skip w/o arguments use the
15844 name of the inlined function if pc is inside any inlined function.
15845
15846 2020-01-14 Luis Machado <luis.machado@linaro.org>
15847
15848 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15849 * infrun.c (resume_1): Likewise.
15850 (handle_inferior_event): Remove stale comment.
15851 * linux-nat.c (linux_nat_target::resume): Update comments.
15852 (save_stop_reason): Likewise.
15853 (linux_nat_filter_event): Likewise.
15854 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15855
15856 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15857
15858 * elfread.c (record_minimal_symbol): Set section index to 0 for
15859 non-allocatable sections.
15860
15861
15862 2020-01-13 Ali Tamur <tamur@google.com>
15863
15864 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15865 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15866 to gdb::optional. Update comments.
15867 (dwo_file): Update comments.
15868 (read_attribute): Update API to take an additional out parameter,
15869 need_reprocess. This is used to mark attributes that need other
15870 attributes (e.g. str_offsets_base) for correct computation which may not
15871 have been read yet.
15872 (read_attribute_reprocess): New function declaration.
15873 (read_addr_index): Likewise.
15874 (read_dwo_str_index): Likewise.
15875 (read_stub_str_index): Likewise.
15876 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15877 (lookup_addr_base): New function definition.
15878 (lookup_ranges_base): Likewise.
15879 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15880 lookup_ranges_base.
15881 (init_cutu_and_read_dies): Update comments.
15882 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15883 unit. This is used to inherit parent's str_offsets_base and addr_base.
15884 Update comments.
15885 (init_cutu_and_read_dies_simple): Reflect API changes.
15886 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15887 (create_cus_hash_table): Change API to take parent compile unit.
15888 Reflect API changes.
15889 (open_and_init_dwo_file): Reflect API changes.
15890 (dwarf2_get_pc_bounds): Update comments.
15891 (dwarf2_record_block_ranges): Likewise.
15892 (read_full_die_1): Change implementation to reprocess attributes that
15893 need str_offsets_base and addr_base.
15894 (partial_die_info::read): Likewise.
15895 (read_attribute_reprocess): New function definition.
15896 (read_attribute_value): Change API to take an additional out parameter,
15897 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15898 when a non-dwo compile unit has index based attributes.
15899 (read_attribute): Reflect API changes.
15900 (read_addr_index_1): Reflect API changes. Update comments.
15901 (dwarf2_read_addr_index_data): Reflect API changes.
15902 (dwarf2_read_addr_index): Likewise.
15903 (read_str_index): Change API and implementation. This becomes a helper
15904 to be used by the new string index related methods. Update error
15905 message and comments.
15906 (read_dwo_str_index): New function definition.
15907 (read_stub_str_index): Likewise.
15908 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15909 * symfile.h (dwarf2_debug_sections): Likewise.
15910 * xcoffread.c (dwarf2_debug_sections): Likewise.
15911
15912 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15913
15914 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15915 core_reg_sect type to gdb_byte *.
15916 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15917 * cris-tdep.c (fetch_core_registers): Likewise.
15918 * corelow.c (core_target::get_core_register_section): Change
15919 type of `contents` to gdb::byte_vector.
15920
15921 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15922
15923 * tui/tui-wingeneral.c (box_win): Position the title in the center
15924 of the border.
15925
15926 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15927
15928 * corelow.c (core_target::get_core_register_section): Use
15929 std::vector instead of alloca.
15930
15931 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15932
15933 * warning.m4: Add -Wmissing-declarations to build_warnings.
15934 * configure: Re-generate.
15935
15936 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15937
15938 * python/python.c (init__gdb_module): Add declaration.
15939
15940 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15941
15942 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15943 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15944 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15945 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15946 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15947 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15948 * ada-exp.y (_initialize_ada_exp): Add declaration.
15949 * ada-lang.c (_initialize_ada_language): Add declaration.
15950 * ada-tasks.c (_initialize_tasks): Add declaration.
15951 * agent.c (_initialize_agent): Add declaration.
15952 * aix-thread.c (_initialize_aix_thread): Add declaration.
15953 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15954 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15955 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15956 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15957 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15958 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15959 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15960 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15961 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15962 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15963 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15964 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15965 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15966 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15967 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15968 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15969 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15970 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15971 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15972 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15973 * annotate.c (_initialize_annotate): Add declaration.
15974 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15975 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15976 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15977 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15978 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15979 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15980 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15981 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15982 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15983 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15984 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15985 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15986 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15987 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15988 * auto-load.c (_initialize_auto_load): Add declaration.
15989 * auxv.c (_initialize_auxv): Add declaration.
15990 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15991 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15992 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15993 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15994 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15995 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15996 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15997 * breakpoint.c (_initialize_breakpoint): Add declaration.
15998 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15999 * btrace.c (_initialize_btrace): Add declaration.
16000 * charset.c (_initialize_charset): Add declaration.
16001 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16002 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16003 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16004 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16005 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16006 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16007 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16008 * coffread.c (_initialize_coffread): Add declaration.
16009 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16010 * compile/compile.c (_initialize_compile): Add declaration.
16011 * complaints.c (_initialize_complaints): Add declaration.
16012 * completer.c (_initialize_completer): Add declaration.
16013 * copying.c (_initialize_copying): Add declaration.
16014 * corefile.c (_initialize_core): Add declaration.
16015 * corelow.c (_initialize_corelow): Add declaration.
16016 * cp-abi.c (_initialize_cp_abi): Add declaration.
16017 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16018 * cp-support.c (_initialize_cp_support): Add declaration.
16019 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16020 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16021 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16022 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16023 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16024 * ctfread.c (_initialize_ctfread): Add declaration.
16025 * d-lang.c (_initialize_d_language): Add declaration.
16026 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16027 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16028 * dbxread.c (_initialize_dbxread): Add declaration.
16029 * dcache.c (_initialize_dcache): Add declaration.
16030 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16031 * disasm.c (_initialize_disasm): Add declaration.
16032 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16033 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16034 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16035 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16036 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16037 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16038 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16039 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16040 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16041 * elfread.c (_initialize_elfread): Add declaration.
16042 * exec.c (_initialize_exec): Add declaration.
16043 * extension.c (_initialize_extension): Add declaration.
16044 * f-lang.c (_initialize_f_language): Add declaration.
16045 * f-valprint.c (_initialize_f_valprint): Add declaration.
16046 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16047 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16048 * filesystem.c (_initialize_filesystem): Add declaration.
16049 * findcmd.c (_initialize_mem_search): Add declaration.
16050 * findvar.c (_initialize_findvar): Add declaration.
16051 * fork-child.c (_initialize_fork_child): Add declaration.
16052 * frame-base.c (_initialize_frame_base): Add declaration.
16053 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16054 * frame.c (_initialize_frame): Add declaration.
16055 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16056 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16057 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16058 * gcore.c (_initialize_gcore): Add declaration.
16059 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16060 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16061 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16062 * gdbarch.c (_initialize_gdbarch): Add declaration.
16063 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16064 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16065 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16066 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16067 * go-lang.c (_initialize_go_language): Add declaration.
16068 * go32-nat.c (_initialize_go32_nat): Add declaration.
16069 * guile/guile.c (_initialize_guile): Add declaration.
16070 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16071 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16072 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16073 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16074 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16075 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16076 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16077 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16078 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16079 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16080 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16081 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16082 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16083 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16084 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16085 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16086 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16087 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16088 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16089 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16090 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16091 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16092 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16093 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16094 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16095 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16096 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16097 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16098 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16099 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16100 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16101 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16102 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16103 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16104 * infcall.c (_initialize_infcall): Add declaration.
16105 * infcmd.c (_initialize_infcmd): Add declaration.
16106 * inflow.c (_initialize_inflow): Add declaration.
16107 * infrun.c (_initialize_infrun): Add declaration.
16108 * interps.c (_initialize_interpreter): Add declaration.
16109 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16110 * jit.c (_initialize_jit): Add declaration.
16111 * language.c (_initialize_language): Add declaration.
16112 * linux-fork.c (_initialize_linux_fork): Add declaration.
16113 * linux-nat.c (_initialize_linux_nat): Add declaration.
16114 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16115 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16116 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16117 * m2-lang.c (_initialize_m2_language): Add declaration.
16118 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16119 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16120 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16121 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16122 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16123 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16124 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16125 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16126 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16127 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16128 * machoread.c (_initialize_machoread): Add declaration.
16129 * macrocmd.c (_initialize_macrocmd): Add declaration.
16130 * macroscope.c (_initialize_macroscope): Add declaration.
16131 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16132 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16133 * maint.c (_initialize_maint_cmds): Add declaration.
16134 * mdebugread.c (_initialize_mdebugread): Add declaration.
16135 * memattr.c (_initialize_mem): Add declaration.
16136 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16137 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16138 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16139 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16140 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16141 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16142 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16143 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16144 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16145 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16146 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16147 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16148 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16149 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16150 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16151 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16152 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16153 * mipsread.c (_initialize_mipsread): Add declaration.
16154 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16155 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16156 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16157 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16158 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16159 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16160 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16161 * nto-procfs.c (_initialize_procfs): Add declaration.
16162 * objc-lang.c (_initialize_objc_language): Add declaration.
16163 * observable.c (_initialize_observer): Add declaration.
16164 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16165 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16166 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16167 * osabi.c (_initialize_gdb_osabi): Add declaration.
16168 * osdata.c (_initialize_osdata): Add declaration.
16169 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16170 * parse.c (_initialize_parse): Add declaration.
16171 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16172 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16173 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16174 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16175 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16176 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16177 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16178 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16179 * printcmd.c (_initialize_printcmd): Add declaration.
16180 * probe.c (_initialize_probe): Add declaration.
16181 * proc-api.c (_initialize_proc_api): Add declaration.
16182 * proc-events.c (_initialize_proc_events): Add declaration.
16183 * proc-service.c (_initialize_proc_service): Add declaration.
16184 * procfs.c (_initialize_procfs): Add declaration.
16185 * producer.c (_initialize_producer): Add declaration.
16186 * psymtab.c (_initialize_psymtab): Add declaration.
16187 * python/python.c (_initialize_python): Add declaration.
16188 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16189 * record-btrace.c (_initialize_record_btrace): Add declaration.
16190 * record-full.c (_initialize_record_full): Add declaration.
16191 * record.c (_initialize_record): Add declaration.
16192 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16193 * regcache.c (_initialize_regcache): Add declaration.
16194 * reggroups.c (_initialize_reggroup): Add declaration.
16195 * remote-notif.c (_initialize_notif): Add declaration.
16196 * remote-sim.c (_initialize_remote_sim): Add declaration.
16197 * remote.c (_initialize_remote): Add declaration.
16198 * reverse.c (_initialize_reverse): Add declaration.
16199 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16200 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16201 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16202 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16203 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16204 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16205 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16206 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16207 Add declaration.
16208 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16209 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16210 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16211 * rust-exp.y (_initialize_rust_exp): Add declaration.
16212 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16213 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16214 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16215 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16216 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16217 * score-tdep.c (_initialize_score_tdep): Add declaration.
16218 * ser-go32.c (_initialize_ser_dos): Add declaration.
16219 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16220 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16221 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16222 * ser-uds.c (_initialize_ser_socket): Add declaration.
16223 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16224 * serial.c (_initialize_serial): Add declaration.
16225 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16226 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16227 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16228 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16229 * skip.c (_initialize_step_skip): Add declaration.
16230 * sol-thread.c (_initialize_sol_thread): Add declaration.
16231 * solib-aix.c (_initialize_solib_aix): Add declaration.
16232 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16233 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16234 * solib-frv.c (_initialize_frv_solib): Add declaration.
16235 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16236 * solib-target.c (_initialize_solib_target): Add declaration.
16237 * solib.c (_initialize_solib): Add declaration.
16238 * source-cache.c (_initialize_source_cache): Add declaration.
16239 * source.c (_initialize_source): Add declaration.
16240 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16241 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16242 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16243 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16244 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16245 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16246 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16247 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16248 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16249 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16250 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16251 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16252 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16253 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16254 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16255 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16256 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16257 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16258 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16259 * stabsread.c (_initialize_stabsread): Add declaration.
16260 * stack.c (_initialize_stack): Add declaration.
16261 * stap-probe.c (_initialize_stap_probe): Add declaration.
16262 * std-regs.c (_initialize_frame_reg): Add declaration.
16263 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16264 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16265 * symfile.c (_initialize_symfile): Add declaration.
16266 * symmisc.c (_initialize_symmisc): Add declaration.
16267 * symtab.c (_initialize_symtab): Add declaration.
16268 * target.c (_initialize_target): Add declaration.
16269 * target-connection.c (_initialize_target_connection): Add
16270 declaration.
16271 * target-dcache.c (_initialize_target_dcache): Add declaration.
16272 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16273 * thread.c (_initialize_thread): Add declaration.
16274 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16275 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16276 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16277 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16278 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16279 * tracectf.c (_initialize_ctf): Add declaration.
16280 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16281 * tracefile.c (_initialize_tracefile): Add declaration.
16282 * tracepoint.c (_initialize_tracepoint): Add declaration.
16283 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16284 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16285 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16286 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16287 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16288 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16289 * tui/tui.c (_initialize_tui): Add declaration.
16290 * typeprint.c (_initialize_typeprint): Add declaration.
16291 * ui-style.c (_initialize_ui_style): Add declaration.
16292 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16293 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16294 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16295 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16296 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16297 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16298 * unittests/filtered_iterator-selftests.c
16299 (_initialize_filtered_iterator_selftests): Add declaration.
16300 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16301 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16302 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16303 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16304 * unittests/main-thread-selftests.c
16305 (_initialize_main_thread_selftests): Add declaration.
16306 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16307 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16308 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16309 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16310 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16311 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16312 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16313 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16314 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16315 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16316 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16317 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16318 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16319 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16320 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16321 declaration.
16322 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16323 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16324 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16325 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16326 * user-regs.c (_initialize_user_regs): Add declaration.
16327 * utils.c (_initialize_utils): Add declaration.
16328 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16329 * valops.c (_initialize_valops): Add declaration.
16330 * valprint.c (_initialize_valprint): Add declaration.
16331 * value.c (_initialize_values): Add declaration.
16332 * varobj.c (_initialize_varobj): Add declaration.
16333 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16334 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16335 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16336 * windows-nat.c (_initialize_windows_nat): Add declaration.
16337 (_initialize_check_for_gdb_ini): Add declaration.
16338 (_initialize_loadable): Add declaration.
16339 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16340 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16341 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16342 * xcoffread.c (_initialize_xcoffread): Add declaration.
16343 * xml-support.c (_initialize_xml_support): Add declaration.
16344 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16345 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16346 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16347 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16348
16349 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16350
16351 * regformats/regdat.sh: Generate declaration for init function.
16352
16353 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16354
16355 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16356 up.
16357 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16358 close_one_inferior>: New methods.
16359 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16360 pass down target to find_inferior_pid.
16361 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16362 Pass down target to find_inferior_ptid.
16363 (gdbsim_target::create_inferior): Pass down target to
16364 add_thread_silent.
16365 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16366 target down to find_inferior_ptid and switch_to_thread.
16367 (gdbsim_target::close): Update to call close_one_inferior.
16368 (struct resume_data): Remove.
16369 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16370 directly, rather than through a void pointer.
16371 (gdbsim_target::resume): Update to call resume_one_inferior.
16372
16373 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16374
16375 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16376
16377 2020-01-12 Pedro Alves <palves@redhat.com>
16378
16379 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16380 directly for the current inferior instead of
16381 discard_all_inferiors.
16382 (discard_all_inferiors): Delete.
16383
16384 2020-01-11 Tom Tromey <tom@tromey.com>
16385
16386 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16387 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16388 deprecated_safe_get_selected_frame.
16389
16390 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16391
16392 * inferior.c (print_inferior): Switch inferior before printing it.
16393
16394 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16395 Pedro Alves <palves@redhat.com>
16396
16397 * progspace-and-thread.c (switch_to_program_space_and_thread):
16398 Assert there's an inferior for PSPACE. Use
16399 switch_to_inferior_no_thread to switch the inferior too.
16400 * progspace.c (program_space::~program_space): Call
16401 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16402 (program_space::free_all_objfiles): Don't call clear_symtab_users
16403 here.
16404 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16405
16406 2020-01-10 Pedro Alves <palves@redhat.com>
16407
16408 * NEWS: Mention multi-target debugging, "info connections", and
16409 "add-inferior -no-connection".
16410
16411 2020-01-10 Pedro Alves <palves@redhat.com>
16412
16413 * infrun.c: Include "target-connection.h".
16414 (check_multi_target_resumption): New.
16415 (proceed): Call it.
16416 * target-connection.c (make_target_connection_string): Make
16417 extern.
16418 * target-connection.h (make_target_connection_string): Declare.
16419
16420 2020-01-10 Pedro Alves <palves@redhat.com>
16421
16422 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16423 * inferior.c (uiout_field_connection): New function.
16424 (print_inferior): Add new "connection-id" column.
16425 (add_inferior_command): Show connection number/string of added
16426 inferior.
16427 * process-stratum-target.h
16428 (process_stratum_target::connection_string): New virtual method.
16429 (process_stratum_target::connection_number): New field.
16430 * remote.c (remote_target::connection_string): New override.
16431 * target-connection.c: New file.
16432 * target-connection.h: New file.
16433 * target.c (decref_target): Remove process_stratum targets from
16434 the connection list.
16435 (target_stack::push): Add process_stratum targets to the
16436 connection list.
16437
16438 2020-01-10 Pedro Alves <palves@redhat.com>
16439
16440 Revert:
16441 2016-04-12 Pedro Alves <palves@redhat.com>
16442 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16443 Remove references to name.
16444 * serial.h (struct serial) <name>: Delete.
16445
16446 2020-01-10 Pedro Alves <palves@redhat.com>
16447
16448 * gdbarch-selftests.c (register_to_value_test): Remove "target
16449 already pushed" check.
16450
16451 2020-01-10 Pedro Alves <palves@redhat.com>
16452 John Baldwin <jhb@FreeBSD.org>
16453
16454 * aarch64-linux-nat.c
16455 (aarch64_linux_nat_target::thread_architecture): Adjust.
16456 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16457 (task_command_1): Likewise.
16458 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16459 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16460 (aix_thread_target::store_registers)
16461 (aix_thread_target::thread_alive): Adjust.
16462 * amd64-fbsd-tdep.c: Include "inferior.h".
16463 (amd64fbsd_get_thread_local_address): Pass down target.
16464 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16465 thread's gdbarch instead of target_gdbarch.
16466 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16467 get_last_target_status.
16468 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16469 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16470 inferiors.
16471 (update_inserted_breakpoint_locations): Skip if inferiors with no
16472 execution.
16473 (update_global_location_list): When handling moribund locations,
16474 find representative inferior for location's pspace, and use thread
16475 count of its process_stratum target.
16476 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16477 * bsd-uthread.c (bsd_uthread_target::wait): Use
16478 as_process_stratum_target and adjust thread_change_ptid and
16479 add_thread calls.
16480 (bsd_uthread_target::update_thread_list): Use
16481 as_process_stratum_target and adjust find_thread_ptid,
16482 thread_change_ptid and add_thread calls.
16483 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16484 find_thread_ptid call.
16485 * corelow.c (add_to_thread_list): Adjust add_thread call.
16486 (core_target_open): Adjust add_thread_silent and thread_count
16487 calls.
16488 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16489 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16490 * event-top.c (async_disconnect): Pop targets from all inferiors.
16491 * exec.c (add_target_sections): Push exec target on all inferiors
16492 sharing the program space.
16493 (remove_target_sections): Remove the exec target from all
16494 inferiors sharing the program space.
16495 (exec_on_vfork): New.
16496 * exec.h (exec_on_vfork): Declare.
16497 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16498 Pass it down.
16499 (fbsd_nat_target::update_thread_list): Adjust.
16500 (fbsd_nat_target::resume): Adjust.
16501 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16502 down.
16503 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16504 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16505 get_thread_arch_regcache call.
16506 * fork-child.c (gdb_startup_inferior): Pass target down to
16507 startup_inferior and set_executing.
16508 * gdbthread.h (struct process_stratum_target): Forward declare.
16509 (add_thread, add_thread_silent, add_thread_with_info)
16510 (in_thread_list): Add process_stratum_target parameter.
16511 (find_thread_ptid(inferior*, ptid_t)): New overload.
16512 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16513 parameter.
16514 (all_threads()): Delete overload.
16515 (all_threads, all_non_exited_threads): Add process_stratum_target
16516 parameter.
16517 (all_threads_safe): Use brace initialization.
16518 (thread_count): Add process_stratum_target parameter.
16519 (set_resumed, set_running, set_stop_requested, set_executing)
16520 (threads_are_executing, finish_thread_state): Add
16521 process_stratum_target parameter.
16522 (switch_to_thread): Use is_current_thread.
16523 * i386-fbsd-tdep.c: Include "inferior.h".
16524 (i386fbsd_get_thread_local_address): Pass down target.
16525 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16526 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16527 have_inferiors check.
16528 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16529 (inf_ptrace_target::attach): Adjust.
16530 * infcall.c (run_inferior_call): Adjust.
16531 * infcmd.c (run_command_1): Pass target to
16532 scoped_finish_thread_state.
16533 (proceed_thread_callback): Skip inferiors with no execution.
16534 (continue_command): Rename 'all_threads' local to avoid hiding
16535 'all_threads' function. Adjust get_last_target_status call.
16536 (prepare_one_step): Adjust set_running call.
16537 (signal_command): Use user_visible_resume_target. Compare thread
16538 pointers instead of inferior_ptid.
16539 (info_program_command): Adjust to pass down target.
16540 (attach_command): Mark target's 'thread_executing' flag.
16541 (stop_current_target_threads_ns): New, factored out from ...
16542 (interrupt_target_1): ... this. Switch inferior before making
16543 target calls.
16544 * inferior-iter.h
16545 (struct all_inferiors_iterator, struct all_inferiors_range)
16546 (struct all_inferiors_safe_range)
16547 (struct all_non_exited_inferiors_range): Filter on
16548 process_stratum_target too. Remove explicit.
16549 * inferior.c (inferior::inferior): Push dummy target on target
16550 stack.
16551 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16552 Add process_stratum_target parameter, and pass it down.
16553 (have_live_inferiors): Adjust.
16554 (switch_to_inferior_and_push_target): New.
16555 (add_inferior_command, clone_inferior_command): Handle
16556 "-no-connection" parameter. Use
16557 switch_to_inferior_and_push_target.
16558 (_initialize_inferior): Mention "-no-connection" option in
16559 the help of "add-inferior" and "clone-inferior" commands.
16560 * inferior.h: Include "process-stratum-target.h".
16561 (interrupt_target_1): Use bool.
16562 (struct inferior) <push_target, unpush_target, target_is_pushed,
16563 find_target_beneath, top_target, process_target, target_at,
16564 m_stack>: New.
16565 (discard_all_inferiors): Delete.
16566 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16567 (all_inferiors, all_non_exited_inferiors): Add
16568 process_stratum_target parameter.
16569 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16570 (target_last_proc_target): New global.
16571 (follow_fork_inferior): Push target on new inferior. Pass target
16572 to add_thread_silent. Call exec_on_vfork. Handle target's
16573 reference count.
16574 (follow_fork): Adjust get_last_target_status call. Also consider
16575 target.
16576 (follow_exec): Push target on new inferior.
16577 (struct execution_control_state) <target>: New field.
16578 (user_visible_resume_target): New.
16579 (do_target_resume): Call target_async.
16580 (resume_1): Set target's threads_executing flag. Consider resume
16581 target.
16582 (commit_resume_all_targets): New.
16583 (proceed): Also consider resume target. Skip threads of inferiors
16584 with no execution. Commit resumtion in all targets.
16585 (start_remote): Pass current inferior to wait_for_inferior.
16586 (infrun_thread_stop_requested): Consider target as well. Pass
16587 thread_info pointer to clear_inline_frame_state instead of ptid.
16588 (infrun_thread_thread_exit): Consider target as well.
16589 (random_pending_event_thread): New inferior parameter. Use it.
16590 (do_target_wait): Rename to ...
16591 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16592 down.
16593 (threads_are_resumed_pending_p, do_target_wait): New.
16594 (prepare_for_detach): Adjust calls.
16595 (wait_for_inferior): New inferior parameter. Handle it. Use
16596 do_target_wait_1 instead of do_target_wait.
16597 (fetch_inferior_event): Adjust. Switch to representative
16598 inferior. Pass target down.
16599 (set_last_target_status): Add process_stratum_target parameter.
16600 Save target in global.
16601 (get_last_target_status): Add process_stratum_target parameter and
16602 handle it.
16603 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16604 (context_switch): Check inferior_ptid == null_ptid before calling
16605 inferior_thread().
16606 (get_inferior_stop_soon): Pass down target.
16607 (wait_one): Rename to ...
16608 (poll_one_curr_target): ... this.
16609 (struct wait_one_event): New.
16610 (wait_one): New.
16611 (stop_all_threads): Adjust.
16612 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16613 event's target.
16614 (switch_back_to_stepped_thread): Also consider target.
16615 (print_stop_event): Update.
16616 (normal_stop): Update. Also consider the resume target.
16617 * infrun.h (wait_for_inferior): Remove declaration.
16618 (user_visible_resume_target): New declaration.
16619 (get_last_target_status, set_last_target_status): New
16620 process_stratum_target parameter.
16621 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16622 process_stratum_target parameter, and use it.
16623 (clear_inline_frame_state (thread_info*)): New.
16624 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16625 process_stratum_target parameter.
16626 (clear_inline_frame_state (thread_info*)): Declare.
16627 * linux-fork.c (delete_checkpoint_command): Pass target down to
16628 find_thread_ptid.
16629 (checkpoint_command): Adjust.
16630 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16631 instead of just tweaking inferior_ptid.
16632 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16633 (exit_lwp): Pass target down to find_thread_ptid.
16634 (attach_proc_task_lwp_callback): Pass target down to
16635 add_thread/set_running/set_executing.
16636 (linux_nat_target::attach): Pass target down to
16637 thread_change_ptid.
16638 (get_detach_signal): Pass target down to find_thread_ptid.
16639 Consider last target status's target.
16640 (linux_resume_one_lwp_throw, resume_lwp)
16641 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16642 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16643 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16644 (linux_nat_target::async_wait_fd): New.
16645 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16646 target down.
16647 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16648 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16649 * linux-thread-db.c (struct thread_db_info::process_target): New
16650 field.
16651 (add_thread_db_info): Save target.
16652 (get_thread_db_info): New process_stratum_target parameter. Also
16653 match target.
16654 (delete_thread_db_info): New process_stratum_target parameter.
16655 Also match target.
16656 (thread_from_lwp): Adjust to pass down target.
16657 (thread_db_notice_clone): Pass down target.
16658 (check_thread_db_callback): Pass down target.
16659 (try_thread_db_load_1): Always push the thread_db target.
16660 (try_thread_db_load, record_thread): Pass target down.
16661 (thread_db_target::detach): Pass target down. Always unpush the
16662 thread_db target.
16663 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16664 target down. Always unpush the thread_db target.
16665 (find_new_threads_callback, thread_db_find_new_threads_2)
16666 (thread_db_target::update_thread_list): Pass target down.
16667 (thread_db_target::pid_to_str): Pass current inferior down.
16668 (thread_db_target::get_thread_local_address): Pass target down.
16669 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16670 target down.
16671 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16672 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16673 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16674 (procfs_init_inferior): Rename to ...
16675 (procfs_target::procfs_init_inferior): ... this and adjust.
16676 (procfs_target::create_inferior, procfs_notice_thread)
16677 (procfs_do_thread_registers): Adjust.
16678 * ppc-fbsd-tdep.c: Include "inferior.h".
16679 (ppcfbsd_get_thread_local_address): Pass down target.
16680 * proc-service.c (ps_xfer_memory): Switch current inferior and
16681 program space as well.
16682 (get_ps_regcache): Pass target down.
16683 * process-stratum-target.c
16684 (process_stratum_target::thread_address_space)
16685 (process_stratum_target::thread_architecture): Pass target down.
16686 * process-stratum-target.h
16687 (process_stratum_target::threads_executing): New field.
16688 (as_process_stratum_target): New.
16689 * ravenscar-thread.c
16690 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16691 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16692 down.
16693 * record-btrace.c (record_btrace_target::info_record): Adjust.
16694 (record_btrace_target::record_method)
16695 (record_btrace_target::record_is_replaying)
16696 (record_btrace_target::fetch_registers)
16697 (get_thread_current_frame_id, record_btrace_target::resume)
16698 (record_btrace_target::wait, record_btrace_target::stop): Pass
16699 target down.
16700 * record-full.c (record_full_wait_1): Switch to event thread.
16701 Pass target down.
16702 * regcache.c (regcache::regcache)
16703 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16704 process_stratum_target parameter and handle it.
16705 (current_thread_target): New global.
16706 (get_thread_regcache): Add process_stratum_target parameter and
16707 handle it. Switch inferior before calling target method.
16708 (get_thread_regcache): Pass target down.
16709 (get_thread_regcache_for_ptid): Pass target down.
16710 (registers_changed_ptid): Add process_stratum_target parameter and
16711 handle it.
16712 (registers_changed_thread, registers_changed): Pass target down.
16713 (test_get_thread_arch_aspace_regcache): New.
16714 (current_regcache_test): Define a couple local test_target_ops
16715 instances and use them for testing.
16716 (readwrite_regcache): Pass process_stratum_target parameter.
16717 (cooked_read_test, cooked_write_test): Pass mock_target down.
16718 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16719 (get_thread_arch_aspace_regcache): Add process_stratum_target
16720 parameter.
16721 (regcache::target): New method.
16722 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16723 (regcache::registers_changed_ptid): Add process_stratum_target
16724 parameter.
16725 (regcache::m_target): New field.
16726 (registers_changed_ptid): Add process_stratum_target parameter.
16727 * remote.c (remote_state::supports_vCont_probed): New field.
16728 (remote_target::async_wait_fd): New method.
16729 (remote_unpush_and_throw): Add remote_target parameter.
16730 (get_current_remote_target): Adjust.
16731 (remote_target::remote_add_inferior): Push target.
16732 (remote_target::remote_add_thread)
16733 (remote_target::remote_notice_new_inferior)
16734 (get_remote_thread_info): Pass target down.
16735 (remote_target::update_thread_list): Skip threads of inferiors
16736 bound to other targets. (remote_target::close): Don't discard
16737 inferiors. (remote_target::add_current_inferior_and_thread)
16738 (remote_target::process_initial_stop_replies)
16739 (remote_target::start_remote)
16740 (remote_target::remote_serial_quit_handler): Pass down target.
16741 (remote_target::remote_unpush_target): New remote_target
16742 parameter. Unpush the target from all inferiors.
16743 (remote_target::remote_unpush_and_throw): New remote_target
16744 parameter. Pass it down.
16745 (remote_target::open_1): Check whether the current inferior has
16746 execution instead of checking whether any inferior is live. Pass
16747 target down.
16748 (remote_target::remote_detach_1): Pass down target. Use
16749 remote_unpush_target.
16750 (extended_remote_target::attach): Pass down target.
16751 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16752 (remote_target::append_resumption): Pass down target.
16753 (remote_target::append_pending_thread_resumptions)
16754 (remote_target::remote_resume_with_hc, remote_target::resume)
16755 (remote_target::commit_resume): Pass down target.
16756 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16757 (remote_target::interrupt_query)
16758 (remote_target::remove_new_fork_children)
16759 (remote_target::check_pending_events_prevent_wildcard_vcont)
16760 (remote_target::remote_parse_stop_reply)
16761 (remote_target::process_stop_reply): Pass down target.
16762 (first_remote_resumed_thread): New remote_target parameter. Pass
16763 it down.
16764 (remote_target::wait_as): Pass down target.
16765 (unpush_and_perror): New remote_target parameter. Pass it down.
16766 (remote_target::readchar, remote_target::remote_serial_write)
16767 (remote_target::getpkt_or_notif_sane_1)
16768 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16769 down target.
16770 (remote_target::mourn_inferior): Pass down target. Use
16771 remote_unpush_target.
16772 (remote_target::core_of_thread)
16773 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16774 (remote_target::pid_to_exec_file)
16775 (remote_target::thread_handle_to_thread_info): Pass down target.
16776 (remote_target::async_wait_fd): New.
16777 * riscv-fbsd-tdep.c: Include "inferior.h".
16778 (riscv_fbsd_get_thread_local_address): Pass down target.
16779 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16780 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16781 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16782 Adjust.
16783 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16784 * solib-svr4.c (enable_break): Pass down target.
16785 * spu-multiarch.c (parse_spufs_run): Pass down target.
16786 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16787 * target-delegates.c: Regenerate.
16788 * target.c (g_target_stack): Delete.
16789 (current_top_target): Return the current inferior's top target.
16790 (target_has_execution_1): Refer to the passed-in inferior's top
16791 target.
16792 (target_supports_terminal_ours): Check whether the initial
16793 inferior was already created.
16794 (decref_target): New.
16795 (target_stack::push): Incref/decref the target.
16796 (push_target, push_target, unpush_target): Adjust.
16797 (target_stack::unpush): Defref target.
16798 (target_is_pushed): Return bool. Adjust to refer to the current
16799 inferior's target stack.
16800 (dispose_inferior): Delete, and inline parts ...
16801 (target_preopen): ... here. Only dispose of the current inferior.
16802 (target_detach): Hold strong target reference while detaching.
16803 Pass target down.
16804 (target_thread_name): Add assertion.
16805 (target_resume): Pass down target.
16806 (target_ops::beneath, find_target_at): Adjust to refer to the
16807 current inferior's target stack.
16808 (get_dummy_target): New.
16809 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16810 has a thread running.
16811 (initialize_targets): Rename to ...
16812 (_initialize_target): ... this.
16813 * target.h: Include "gdbsupport/refcounted-object.h".
16814 (struct target_ops): Inherit refcounted_object.
16815 (target_ops::shortname, target_ops::longname): Make const.
16816 (target_ops::async_wait_fd): New method.
16817 (decref_target): Declare.
16818 (struct target_ops_ref_policy): New.
16819 (target_ops_ref): New typedef.
16820 (get_dummy_target): Declare function.
16821 (target_is_pushed): Return bool.
16822 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16823 (all_matching_threads_iterator::all_matching_threads_iterator):
16824 Handle filter target.
16825 * thread-iter.h (struct all_matching_threads_iterator, struct
16826 all_matching_threads_range, class all_non_exited_threads_range):
16827 Filter by target too. Remove explicit.
16828 * thread.c (threads_executing): Delete.
16829 (inferior_thread): Pass down current inferior.
16830 (clear_thread_inferior_resources): Pass down thread pointer
16831 instead of ptid_t.
16832 (add_thread_silent, add_thread_with_info, add_thread): Add
16833 process_stratum_target parameter. Use it for thread and inferior
16834 searches.
16835 (is_current_thread): New.
16836 (thread_info::deletable): Use it.
16837 (find_thread_ptid, thread_count, in_thread_list)
16838 (thread_change_ptid, set_resumed, set_running): New
16839 process_stratum_target parameter. Pass it down.
16840 (set_executing): New process_stratum_target parameter. Pass it
16841 down. Adjust reference to 'threads_executing'.
16842 (threads_are_executing): New process_stratum_target parameter.
16843 Adjust reference to 'threads_executing'.
16844 (set_stop_requested, finish_thread_state): New
16845 process_stratum_target parameter. Pass it down.
16846 (switch_to_thread): Also match inferior.
16847 (switch_to_thread): New process_stratum_target parameter. Pass it
16848 down.
16849 (update_threads_executing): Reimplement.
16850 * top.c (quit_force): Pop targets from all inferior.
16851 (gdb_init): Don't call initialize_targets.
16852 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16853 Declare.
16854 (windows_add_thread, windows_delete_thread): Adjust.
16855 (get_windows_debug_event): Rename to ...
16856 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16857 * tracefile-tfile.c (tfile_target_open): Pass down target.
16858 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16859 Forward declare.
16860 (switch_to_thread): Add process_stratum_target parameter.
16861 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16862 parameter. Use it.
16863 (mi_on_resume): Pass target down.
16864 * nat/fork-inferior.c (startup_inferior): Add
16865 process_stratum_target parameter. Pass it down.
16866 * nat/fork-inferior.h (startup_inferior): Add
16867 process_stratum_target parameter.
16868 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16869
16870 2020-01-10 Pedro Alves <palves@redhat.com>
16871
16872 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16873 directly. Instead find the first thread in the thread list and
16874 use switch_to_thread.
16875
16876 2020-01-10 Pedro Alves <palves@redhat.com>
16877
16878 * remote.c (remote_target::remote_add_inferior): Don't bind a
16879 process to the current inferior if the current inferior is already
16880 bound to a process.
16881
16882 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16883 Pedro Alves <palves@redhat.com>
16884
16885 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16886 If no process is specified, return null_ptid instead of
16887 inferior_ptid.
16888 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16889 TARGET_WAITKIND_SIGNALLED with no pid.
16890
16891 2020-01-10 Pedro Alves <palves@redhat.com>
16892
16893 * remote.c (first_remote_resumed_thread): New.
16894 (remote_target::wait_as): Use it as default event_ptid instead of
16895 inferior_ptid.
16896
16897 2020-01-10 Pedro Alves <palves@redhat.com>
16898
16899 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16900
16901 2020-01-10 Pedro Alves <palves@redhat.com>
16902
16903 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16904 not -1.
16905
16906 2020-01-10 Pedro Alves <palves@redhat.com>
16907
16908 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16909 ptid to get_last_target_status.
16910 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16911 ptid to get_last_target_status.
16912 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16913 get_last_target_status.
16914 (info_program_command): Don't pass a target_waitstatus to
16915 get_last_target_status.
16916 * infrun.c (init_wait_for_inferior): Use
16917 nullify_last_target_wait_ptid.
16918 (get_last_target_status): Handle nullptr arguments.
16919 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16920 (print_stop_event): Don't pass a ptid to get_last_target_status.
16921 (normal_stop): Don't pass a ptid to get_last_target_status.
16922 * infrun.h (get_last_target_status, set_last_target_status): Move
16923 comments here and update.
16924 (nullify_last_target_wait_ptid): Declare.
16925 * linux-fork.c (fork_load_infrun_state): Remove local extern
16926 declaration of nullify_last_target_wait_ptid.
16927 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16928 to get_last_target_status.
16929
16930 2020-01-10 Pedro Alves <palves@redhat.com>
16931
16932 * gdbthread.h (scoped_restore_current_thread)
16933 <dont_restore, restore, m_dont_restore>: Declare.
16934 * thread.c (thread_alive): Add assertion. Return bool.
16935 (switch_to_thread_if_alive): New.
16936 (prune_threads): Switch inferior/thread.
16937 (print_thread_info_1): Switch thread before calling target methods.
16938 (scoped_restore_current_thread::restore): New, factored out from
16939 ...
16940 (scoped_restore_current_thread::~scoped_restore_current_thread):
16941 ... this.
16942 (scoped_restore_current_thread::scoped_restore_current_thread):
16943 Add assertion.
16944 (thread_apply_all_command, thread_select): Use
16945 switch_to_thread_if_alive.
16946 * infrun.c (proceed, restart_threads, handle_signal_stop)
16947 (switch_back_to_stepped_thread): Switch current thread before
16948 calling target methods.
16949
16950 2020-01-10 Pedro Alves <palves@redhat.com>
16951
16952 * inferior.c (switch_to_inferior_no_thread): New function,
16953 factored out from ...
16954 (inferior_command): ... here.
16955 * inferior.h (switch_to_inferior_no_thread): Declare.
16956 * mi/mi-main.c (run_one_inferior): Use
16957 switch_to_inferior_no_thread.
16958
16959 2020-01-10 Pedro Alves <palves@redhat.com>
16960
16961 * infcmd.c (kill_command): Remove dead code.
16962
16963 2020-01-10 Pedro Alves <palves@redhat.com>
16964
16965 * remote.c (remote_target::mourn_inferior): No longer check
16966 whether the target is running.
16967
16968 2020-01-10 Pedro Alves <palves@redhat.com>
16969
16970 * corelow.c (core_target::has_execution): Change parameter type to
16971 inferior pointer.
16972 * inferior.c (number_of_live_inferiors): Use
16973 inferior::has_execution instead of target_has_execution_1.
16974 * inferior.h (inferior::has_execution): New.
16975 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16976 inferior::has_execution instead of target_has_execution_1.
16977 * process-stratum-target.c
16978 (process_stratum_target::has_execution): Change parameter type to
16979 inferior pointer. Check the inferior's PID instead of
16980 inferior_ptid.
16981 * process-stratum-target.h
16982 (process_stratum_target::has_execution): Change parameter type to
16983 inferior pointer.
16984 * record-full.c (record_full_core_target::has_execution): Change
16985 parameter type to inferior pointer.
16986 * target.c (target_has_execution_1): Change parameter type to
16987 inferior pointer.
16988 (target_has_execution_current): Adjust.
16989 * target.h (target_ops::has_execution): Change parameter type to
16990 inferior pointer.
16991 (target_has_execution_1): Change parameter type to inferior
16992 pointer. Change return type to bool.
16993 * tracefile.h (tracefile_target::has_execution): Change parameter
16994 type to inferior pointer.
16995
16996 2020-01-10 Pedro Alves <palves@redhat.com>
16997
16998 * exceptions.c (print_flush): Remove current_top_target() check.
16999
17000 2020-01-10 Pedro Alves <palves@redhat.com>
17001
17002 * remote.c (show_remote_exec_file): Show the current inferior's
17003 exec-file instead of the command variable's value.
17004
17005 2020-01-10 Pedro Alves <palves@redhat.com>
17006
17007 * record-full.c (record_full_resume_ptid): New global.
17008 (record_full_target::resume): Set it.
17009 (record_full_wait_1): Use record_full_resume_ptid instead of
17010 inferior_ptid.
17011
17012 2020-01-10 Pedro Alves <palves@redhat.com>
17013
17014 * gdbthread.h (scoped_restore_current_thread)
17015 <dont_restore, restore, m_dont_restore>: Declare.
17016 * thread.c (thread_alive): Add assertion. Return bool.
17017 (switch_to_thread_if_alive): New.
17018 (prune_threads): Switch inferior/thread.
17019 (print_thread_info_1): Switch thread before calling target methods.
17020 (scoped_restore_current_thread::restore): New, factored out from
17021 ...
17022 (scoped_restore_current_thread::~scoped_restore_current_thread):
17023 ... this.
17024 (scoped_restore_current_thread::scoped_restore_current_thread):
17025 Add assertion.
17026 (thread_apply_all_command, thread_select): Use
17027 switch_to_thread_if_alive.
17028
17029 2020-01-10 George Barrett <bob@bob131.so>
17030
17031 * stap-probe.c (stap_modify_semaphore): Don't check for null
17032 semaphores.
17033 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17034 for null semaphores.
17035
17036 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17037
17038 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17039 all source windows, and maintain horizontal scroll status while
17040 doing so.
17041
17042 2020-01-09 Tom Tromey <tom@tromey.com>
17043
17044 PR tui/18932:
17045 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17046 update_source_window, not print_source_lines.
17047
17048 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17049
17050 * tui/tui.c (tui_enable): Register tui hooks after calling
17051 tui_display_main.
17052
17053 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17054
17055 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17056
17057 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17058
17059 * thread.c (print_thread_info_1): Fix indentation.
17060
17061 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17062
17063 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17064 unique_xmalloc_ptr outside the if to always free the demangled name.
17065
17066 2020-01-08 Tom Tromey <tromey@adacore.com>
17067
17068 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17069 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17070 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17071 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17072 Remove.
17073 (section_offsets): New typedef.
17074 * symtab.c (fixup_section, get_msymbol_address): Update.
17075 * symmisc.c (dump_msymbols): Update.
17076 * symfile.h (relative_addr_info_to_section_offsets)
17077 (symfile_map_offsets_to_segments): Update.
17078 * symfile.c (build_section_addr_info_from_objfile)
17079 (init_objfile_sect_indices): Update.
17080 (struct place_section_arg): Change type of "offsets".
17081 (place_section): Update.
17082 (relative_addr_info_to_section_offsets): Change type of
17083 "section_offsets". Remove "num_sections" parameter.
17084 (default_symfile_offsets, syms_from_objfile_1)
17085 (set_objfile_default_section_offset): Update.
17086 (reread_symbols): No need to preserve section offsets by hand.
17087 (symfile_map_offsets_to_segments): Change type of "offsets".
17088 * stap-probe.c (relocate_address): Update.
17089 * stabsread.h (process_one_symbol): Update.
17090 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17091 (solib_target_relocate_section_addresses): Update.
17092 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17093 Update.
17094 * solib-frv.c (frv_relocate_main_executable): Update.
17095 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17096 * solib-aix.c (solib_aix_get_section_offsets): Change return
17097 type.
17098 (solib_aix_solib_create_inferior_hook): Update.
17099 * remote.c (remote_target::get_offsets): Update.
17100 * psymtab.c (find_pc_sect_psymtab): Update.
17101 * psympriv.h (struct partial_symbol) <address, text_low,
17102 text_high>: Update.
17103 * objfiles.h (obj_section_offset): Update.
17104 (struct objfile) <section_offsets>: Change type.
17105 <num_sections>: Remove.
17106 (objfile_relocate): Update.
17107 * objfiles.c (entry_point_address_query): Update
17108 (relocate_one_symbol): Change type of "section_offsets".
17109 (objfile_relocate1, objfile_relocate1): Change type of
17110 "new_offsets".
17111 (objfile_rebase1): Update.
17112 * mipsread.c (mipscoff_symfile_read): Update.
17113 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17114 parameter.
17115 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17116 (parse_external, psymtab_to_symtab_1): Update.
17117 * machoread.c (macho_symfile_offsets): Update.
17118 * ia64-tdep.c (ia64_find_unwind_table): Update.
17119 * hppa-tdep.c (read_unwind_info): Update.
17120 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17121 * dwarf2read.c (create_addrmap_from_index)
17122 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17123 (process_psymtab_comp_unit_reader, add_partial_symbol)
17124 (add_partial_subprogram, process_full_comp_unit)
17125 (read_file_scope, read_func_scope, read_lexical_block_scope)
17126 (read_call_site_scope, dwarf2_rnglists_process)
17127 (dwarf2_ranges_process, dwarf2_ranges_read)
17128 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17129 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17130 Update.
17131 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17132 Update.
17133 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17134 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17135 (process_one_symbol): Change type of "section_offsets".
17136 * ctfread.c (get_objfile_text_range): Update.
17137 * coffread.c (coff_symtab_read, enter_linenos)
17138 (process_coff_symbol): Update.
17139 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17140 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17141
17142 2020-01-08 Tom Tromey <tromey@adacore.com>
17143
17144 * dwarf2read.c (parse_macro_definition): Use std::string.
17145 (parse_macro_definition): Likewise.
17146
17147 2020-01-08 Tom Tromey <tromey@adacore.com>
17148
17149 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17150 (ATTR_ALLOC_CHUNK): Remove.
17151
17152 2020-01-08 Tom Tromey <tromey@adacore.com>
17153
17154 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17155
17156 2020-01-08 Tom Tromey <tromey@adacore.com>
17157
17158 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17159 (dwarf2_compute_name, open_dwo_file): Likewise.
17160 (process_enumeration_scope): Use std::vector.
17161 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17162 (partial_die_info::fixup, dwarf2_start_subfile)
17163 (guess_full_die_structure_name, dwarf2_name): Likewise.
17164 (determine_prefix): Update.
17165 (guess_full_die_structure_name): Make return type const.
17166 (partial_die_full_name): Return unique_xmalloc_ptr.
17167 (DW_FIELD_ALLOC_CHUNK): Remove.
17168
17169 2020-01-07 Tom Tromey <tromey@adacore.com>
17170
17171 PR build/24937:
17172 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17173
17174 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17175
17176 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17177
17178 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17179
17180 * stack.c (print_frame_info): Move disassemble_next_line code
17181 inside source_print block.
17182
17183 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17184
17185 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17186 gdb/signals.h, as we are now using native signal symbols.
17187
17188 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17189
17190 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17191 overflow by an early check of content vs threshold.
17192 * tui/tui-source.c (tui_source_window::line_is_displayed):
17193 Likewise.
17194
17195 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17196
17197 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17198
17199 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17200
17201 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17202 export table if no section contains it's RVA.
17203
17204 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17205
17206 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17207
17208 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17209
17210 * source.c (print_source_lines_base): Set last_line_listed.
17211
17212 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17213
17214 * tui/tui-disasm.c: Remove trailing spaces.
17215
17216 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17217 Pedro Alves <palves@redhat.com>
17218
17219 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17220 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17221 (windows_gdb_signal_to_target): New function, uses the above
17222 enumeration to convert GDB internal signal codes to equivalent
17223 Windows codes.
17224 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17225 * windows-nat.c: Include "gdb_wait.h".
17226 (get_windows_debug_event): Extract the fatal exception from the
17227 exit status and convert to the equivalent Posix signal number.
17228 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17229 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17230 * gdbsupport/gdb_wait.c: New file, implements
17231 windows_status_to_termsig.
17232 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17233 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17234
17235 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17236
17237 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17238 show_layout.
17239
17240 2020-01-05 Luis Machado <luis.machado@linaro.org>
17241
17242 * aarch64-linux-nat.c
17243 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17244 and bfd_mach_aarch64.
17245
17246 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17247
17248 * ui-file.c (stdio_file::can_emit_style_escape)
17249 (tee_file::can_emit_style_escape): Ensure style is used also on
17250 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17251 to gdb_stdout.
17252 * main.c (set_gdb_data_directory): Use file style to output the
17253 warning that the given pathname is not a directory.
17254 * top.c (show_history_filename, gdb_safe_append_history)
17255 (show_gdb_datadir): Use file style.
17256
17257 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17258
17259 * solib-target.c (struct lm_info_target):
17260 Change offsets to be a unique_xmalloc_ptr.
17261 (solib_target_relocate_section_addresses): Update.
17262
17263 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17264
17265 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17266
17267 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17268
17269 * MAINTAINERS (Write After Approval): Add myself.
17270
17271 2020-01-02 Luis Machado <luis.machado@linaro.org>
17272
17273 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17274 Cell BE architecture.
17275 * target.h (struct target_ops) <thread_architecture>: Likewise.
17276
17277 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17278
17279 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17280
17281 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17282
17283 * MAINTAINERS (Write After Approval): Add myself.
17284
17285 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17286
17287 * gdbarch.sh: Update copyright year range of generated files.
17288
17289 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17290
17291 Update copyright year range in all GDB files.
17292
17293 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17294
17295 * copyright.py: Convert to Python 3.
17296
17297 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17298
17299 * copyright.py: Adapt after move of gnulib directory from gdb
17300 directory to toplevel directory.
17301
17302 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17303
17304 * copyright.py (main): Exit if run from the wrong directory.
17305
17306 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17307
17308 * top.c (print_gdb_version): Change copyright year to 2020.
17309
17310 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17311
17312 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17313
17314 For older changes see ChangeLog-2019.
17315 \f
17316 Local Variables:
17317 mode: change-log
17318 left-margin: 8
17319 fill-column: 74
17320 version-control: never
17321 coding: utf-8
17322 End:
This page took 0.377255 seconds and 5 git commands to generate.