Remove two unnecessary variables from evaluate_subexp_standard
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-25 Tom Tromey <tom@tromey.com>
2
3 * eval.c (evaluate_subexp_standard): Remove unnecessary
4 variables.
5
6 2020-11-25 Tom Tromey <tom@tromey.com>
7
8 * d-lang.c: Include parser-defs.h.
9 * rust-lang.c: Include parser-defs.h.
10 * c-lang.h: Do not include parser-defs.h.
11
12 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * regcache.h (struct cached_reg): Remove typedef.
15
16 2020-11-24 Joel Brobecker <brobecker@adacore.com>
17
18 * README: Fix the URL of the MPFR library.
19
20 2020-11-24 Joel Brobecker <brobecker@adacore.com>
21
22 * README: Document the --with-libgmp-prefix configure option.
23
24 2020-11-24 Joel Brobecker <brobecker@adacore.com>
25
26 * NEWS: Add entry documenting support for DWARF-based fixed
27 point types.
28
29 2020-11-24 Joel Brobecker <brobecker@adacore.com>
30
31 * NEWS: Document that building GDB now requires GMP.
32
33 2020-11-24 Joel Brobecker <brobecker@adacore.com>
34
35 * typeprint.c (print_type_scalar): Add handling of
36 TYPE_CODE_FIXED_POINT.
37
38 2020-11-24 Joel Brobecker <brobecker@adacore.com>
39
40 * valarith.c (fixed_point_binop): Replace the
41 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
42 users accordingly.
43
44 2020-11-24 Joel Brobecker <brobecker@adacore.com>
45
46 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
47 replacing fixed_point_scaling_factor. All callers updated
48 throughout this project.
49 (fixed_point_scaling_factor): Delete declaration.
50 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
51 fixed_point_scaling_factor. Adjust implementation accordingly.
52
53 2020-11-24 Joel Brobecker <brobecker@adacore.com>
54
55 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
56 replacing the fixed_point_type_base_type function. All callers
57 updated throughout this project.
58 (fixed_point_type_base_type): Remove declaration.
59 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
60 fixed_point_type_base_type. Adjust implementation accordingly.
61
62 2020-11-24 Joel Brobecker <brobecker@adacore.com>
63
64 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
65 New methods.
66 (INIT_FIXED_POINT_SPECIFIC): Adjust.
67 (TYPE_FIXED_POINT_INFO): Delete macro.
68 (allocate_fixed_point_type_info): Change return type to void.
69 * gdbtypes.c (copy_type_recursive): Replace the use of
70 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
71 (fixed_point_scaling_factor): Likewise.
72 (allocate_fixed_point_type_info): Change return type to void.
73 Adjust implementation accordingly.
74 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
75 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
76
77 2020-11-24 Joel Brobecker <brobecker@adacore.com>
78
79 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
80 into one single gdb::array_view parameter.
81 (gdb_mpz::write): Likewise.
82 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
83 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
84 into one single gdb::array_view parameter.
85 Adjust implementation accordingly.
86 (gdb_mpz::write): Likewise.
87 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
88 * unittests/gmp-utils-selftests.c: Adapt following changes above.
89 * valarith.c, valops.c, valprint.c, value.c: Likewise.
90
91 2020-11-24 Joel Brobecker <brobecker@adacore.com>
92
93 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
94 Change return type to std::string. Update all callers.
95 * gmp-utils.c (gmp_string_printf): Likewise.
96
97 2020-11-24 Joel Brobecker <brobecker@adacore.com>
98
99 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
100 instead of mpq_set_ui to initialize our GMP rational.
101
102 2020-11-23 Tom de Vries <tdevries@suse.de>
103
104 * debuginfod-support.c (debuginfod_source_query)
105 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
106
107 2020-11-21 Tom Tromey <tom@tromey.com>
108
109 * breakpoint.c (watchpoint_exp_is_const): Return bool.
110
111 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
114 Pass 2.0 to pow.
115 (gdb_mpz_write_all_from_small): Likewise.
116
117 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
120 of abs.
121
122 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
123
124 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
125 ctf_arc_open_by_name.
126
127 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
128
129 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
130 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
131
132 2020-11-20 Pedro Alves <pedro@palves.net>
133
134 * language.c (language_arch_info::lookup_primitive_type): Use
135 gdb::function_view instead of gdb::function.
136 (template language_lookup_primitive_type): Rename to ...
137 (language_lookup_primitive_type_1): ... this, and make static.
138 (language_lookup_primitive_type(const struct language_defn *,
139 struct gdbarch *, const char *): Make non-template.
140 (language_lookup_primitive_type(const struct language_defn *,
141 struct gdbarch *, std::function<bool (struct type *)>): Make
142 non-template and use gdb::function_view.
143 * language.h (language_arch_info::lookup_primitive_type): Use
144 gdb::function_view instead of std::function.
145 (language_lookup_primitive_type): No longer template.
146 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
147 lambda instead of a std::function.
148
149 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
150
151 PR tdep/26916
152 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
153 and STOCFH.
154
155 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
156
157 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
158
159 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
162 in `loop_cb` parameter.
163 * gdbarch.c: Re-generate.
164 * gdbarch.h: Re-generate.
165 * arch-utils.c (default_read_core_file_mappings): Remove `other`
166 parameter.
167 * arch-utils.h (default_read_core_file_mappings): Likewise.
168 * corelow.c (core_target::build_file_mappings): Likewise.
169 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
170 (linux_core_info_proc_mappings): Likewise.
171
172 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
175 * NEWS: Mention new options.
176 * f-array-walker.h: New file.
177 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
178 (repack_array_slices): New static global.
179 (show_repack_array_slices): New function.
180 (fortran_array_slicing_debug): New static global.
181 (show_fortran_array_slicing_debug): New function.
182 (value_f90_subarray): Delete.
183 (skip_undetermined_arglist): Delete.
184 (class fortran_array_repacker_base_impl): New class.
185 (class fortran_lazy_array_repacker_impl): New class.
186 (class fortran_array_repacker_impl): New class.
187 (fortran_value_subarray): Complete rewrite.
188 (set_fortran_list): New static global.
189 (show_fortran_list): Likewise.
190 (_initialize_f_language): Register new commands.
191 (fortran_adjust_dynamic_array_base_address_hack): New function.
192 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
193 Declare.
194 * f-valprint.c: Include 'f-array-walker.h'.
195 (class fortran_array_printer_impl): New class.
196 (f77_print_array_1): Delete.
197 (f77_print_array): Delete.
198 (fortran_print_array): New.
199 (f_value_print_inner): Update to call fortran_print_array.
200 * gdbtypes.c: Include 'f-lang.h'.
201 (resolve_dynamic_type_internal): Call
202 fortran_adjust_dynamic_array_base_address_hack.
203
204 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * breakpoint.c (struct watch_options): New struct.
207 (watch_option_defs): New static global.
208 (make_watch_options_def_group): New function.
209 (watch_maybe_just_location): Convert option parsing.
210 (watch_command_completer): New function.
211 (_initialize_breakpoint): Build help text using options mechanism.
212
213 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
216 (watch_command_1): Update parameter types. Convert locals to
217 bool.
218 (watch_command_wrapper): Change parameter type.
219 (watch_maybe_just_location): Change locals to bool.
220 (rwatch_command_wrapper): Update parameter type.
221 (awatch_command_wrapper): Update parameter type.
222 * breakpoint.h (watch_command_wrapper): Change parameter type.
223 (rwatch_command_wrapper): Update parameter type.
224 (awatch_command_wrapper): Update parameter type.
225 * eval.c (fetch_subexp_value): Change parameter type.
226 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
227 'false' not '0'.
228 * value.h (fetch_subexp_value): Change parameter type in
229 declaration.
230
231 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
234 skip_spaces.
235
236 2020-11-18 Keith Seitz <keiths@redhat.com>
237
238 * linux-tdep.c (dump_note_entry_p): Return true instead of
239 checking `filename'.
240
241 2020-11-18 Tom de Vries <tdevries@suse.de>
242
243 * debuginfod-support.c (debuginfod_source_query)
244 (debuginfod_debuginfo_query): Also do early exit if
245 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
246
247 2020-11-18 Tom de Vries <tdevries@suse.de>
248
249 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
250 warning.
251
252 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * gdbtypes.h (get_array_bounds): Return bool, adjust some
255 callers. Move doc here.
256 * gdbtypes.c (get_array_bounds): Return bool
257
258 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
261 assert.
262 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
263 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
264 case to the default.
265
266 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * printcmd.c: Include 'safe-ctype.c'.
269 (skip_over_slash_fmt): New function.
270 (print_command_completer): Call skip_over_slash_fmt.
271 (display_and_x_command_completer): New function.
272 (_initialize_printcmd): Add command completion for 'x' and
273 'display'.
274
275 2020-11-16 Pedro Alves <pedro@palves.net>
276
277 * frame.c (get_prev_frame): Move get_frame_id call from here ...
278 (get_prev_frame_always_1): ... to here.
279 * inline-frame.c (inline_frame_this_id): Mention
280 get_prev_frame_always_1 in comment.
281
282 2020-11-15 Joel Brobecker <brobecker@adacore.com>
283
284 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
285 handling.
286 (value_less): Add fixed-point handling.
287
288 2020-11-15 Joel Brobecker <brobecker@adacore.com>
289
290 * eval.c (binop_promote): Add fixed-point type handling.
291 * valarith.c (fixed_point_binop): New function.
292 (scalar_binop): Add fixed-point type handling.
293 (value_neg): Add fixed-point type handling.
294 * valops.c (value_cast_to_fixed_point): New function.
295 (value_cast): Add fixed-point type handling.
296
297 2020-11-15 Joel Brobecker <brobecker@adacore.com>
298
299 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
300 range types.
301 * c-typeprint.c (c_type_print_varspec_prefix)
302 (c_type_print_varspec_suffix, c_type_print_base_1): Add
303 TYPE_CODE_FIXED_POINT handling.
304 * p-typeprint.c (pascal_type_print_varspec_prefix)
305 (pascal_type_print_varspec_suffix): Likewise.
306 * typeprint.c (print_type_fixed_point): New function.
307 * typeprint.h (print_type_fixed_point): Add declaration.
308
309 2020-11-15 Joel Brobecker <brobecker@adacore.com>
310
311 * printcmd.c (print_scalar_formatted): Add fixed-point type
312 handling when options->format is set.
313
314 2020-11-15 Joel Brobecker <brobecker@adacore.com>
315
316 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
317 * dwarf2/read.c (get_dwarf2_rational_constant)
318 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
319 (has_zero_over_zero_small_attribute): New functions.
320 read_base_type, set_die_type): Add fixed-point type handling.
321 * gdb-gdb.py.in: Add fixed-point type handling.
322 * gdbtypes.c: #include "gmp-utils.h".
323 (create_range_type, set_type_code): Add fixed-point type handling.
324 (init_fixed_point_type): New function.
325 (is_integral_type, is_scalar_type): Add fixed-point type handling.
326 (print_fixed_point_type_info): New function.
327 (recursive_dump_type, copy_type_recursive): Add fixed-point type
328 handling.
329 (fixed_point_type_storage): New typedef.
330 (fixed_point_objfile_key): New static global.
331 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
332 (fixed_point_type_base_type, fixed_point_scaling_factor): New
333 functions.
334 * gdbtypes.h: #include "gmp-utils.h".
335 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
336 (union type_specific) <fixed_point_info>: New field.
337 (struct fixed_point_type_info): New struct.
338 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
339 (init_fixed_point_type, is_fixed_point_type)
340 (fixed_point_type_base_type, fixed_point_scaling_factor)
341 (allocate_fixed_point_type_info): Add declarations.
342 * valprint.c (generic_val_print_fixed_point): New function.
343 (generic_value_print): Add fixed-point type handling.
344 * value.c (value_as_address, unpack_long): Add fixed-point type
345 handling.
346
347 2020-11-15 Joel Brobecker <brobecker@adacore.com>
348
349 * utils.h (uinteger_pow): Add declaration.
350 * utils.c (uinteger_pow): Moved here (without changes)...
351 * valarith.c (uinteger_pow): ... from here.
352
353 2020-11-15 Joel Brobecker <brobecker@adacore.com>
354
355 * gmp-utils.h, gmp-utils.c: New file.
356 * unittests/gmp-utils-selftests.c: New file.
357 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
358 unittests/gmp-utils-selftests.c.
359 (COMMON_SFILES) Add gmp-utils.c.
360 (HFILES_NO_SRCDIR): Add gmp-utils.h.
361
362 2020-11-15 Joel Brobecker <brobecker@adacore.com>
363
364 * configure.ac: Generate an error if a usable GMP library
365 could not be found.
366 * configure: Regenerate.
367
368 2020-11-15 Joel Brobecker <brobecker@adacore.com>
369
370 * configure.ac: Add support for --with-libgmp-prefix.
371 * Makefile.in (LIBGMP): New variable.
372 (CLIBS): Include $(LIBGMP).
373 * configure, config.in: Regenerate
374
375 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
376
377 PR cli/26879
378 * f-exp.y (COMPLETE): New token.
379 (exp): Two new rules for tab-completion.
380 (saw_name_at_eof): New static global.
381 (last_was_structop): Likewise.
382 (yylex): Set new variables, and return COMPLETE token at the end
383 of the input stream in some cases.
384
385 2020-11-14 Tom Tromey <tom@tromey.com>
386
387 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
388
389 2020-11-14 Tom Tromey <tom@tromey.com>
390
391 * opencl-lang.c (opencl_component_ref): Make "comps" const.
392
393 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
394
395 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
396
397 2020-11-13 Tom Tromey <tom@tromey.com>
398
399 * c-lang.c (convert_ucn, convert_octal, convert_hex)
400 (convert_escape, parse_one_string): Constify.
401
402 2020-11-13 Keith Seitz <keiths@redhat.com>
403
404 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
405 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
406 outside of ELF segments" warning for debugin
407
408 2020-11-13 Keith Seitz <keiths@redhat.com>
409
410 PR gdb/23034
411 * elfread.c (elf_symfile_segments): Output a BFD file name
412 for the "Loadable section ... outside of ELF segments" warning.
413
414 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
415
416 PR gdb/26835
417 * arm-tdep.c (class arm_instruction_reader): New.
418 (target_arm_instruction_reader): New.
419 (arm_analyze_prologue): Add instruction reader parameter and use
420 it. Use arm_expand_immediate.
421 (class target_arm_instruction_reader): Adjust.
422 (arm_skip_prologue): Adjust.
423 (arm_expand_immediate): New.
424 (arm_scan_prologue): Adjust.
425 (arm_analyze_prologue_test): New.
426 (class test_arm_instruction_reader): New.
427
428 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * f-lang.c (fortran_argument_convert): Add declaration. Add
431 header comment, taken from f-lang.h. Make static.
432 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
433 (fortran_argument_convert): Delete declaration.
434
435 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * ada-exp.y (find_primitive_type): Make parameter const.
438 * ada-lang.c (enum ada_primitive_types): Delete.
439 (ada_language::language_arch_info): Update.
440 * c-lang.c (enum c_primitive_types): Delete.
441 (c_language_arch_info): Update.
442 (enum cplus_primitive_types): Delete.
443 (cplus_language::language_arch_info): Update.
444 * d-lang.c (enum d_primitive_types): Delete.
445 (d_language::language_arch_info): Update.
446 * f-lang.c (enum f_primitive_types): Delete.
447 (f_language::language_arch_info): Update.
448 * go-lang.c (enum go_primitive_types): Delete.
449 (go_language::language_arch_info): Update.
450 * language.c (auto_or_unknown_language::language_arch_info):
451 Update.
452 (language_gdbarch_post_init): Use obstack_new, use array indexing.
453 (language_string_char_type): Add header comment, call function in
454 language_arch_info.
455 (language_bool_type): Likewise
456 (language_arch_info::bool_type): Define.
457 (language_lookup_primitive_type_1): Delete.
458 (language_lookup_primitive_type): Rewrite as a templated function
459 to call function in language_arch_info, then instantiate twice.
460 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
461 (language_arch_info::lookup_primitive_type_and_symbol): Define.
462 (language_arch_info::lookup_primitive_type): Define twice with
463 different signatures.
464 (language_arch_info::lookup_primitive_type_as_symbol): Define.
465 (language_lookup_primitive_type_as_symbol): Rewrite to call a
466 member function in language_arch_info.
467 * language.h (language_arch_info): Complete rewrite.
468 (language_lookup_primitive_type): Make templated.
469 * m2-lang.c (enum m2_primitive_types): Delete.
470 (m2_language::language_arch_info): Update.
471 * opencl-lang.c (OCL_P_TYPE): Delete.
472 (enum opencl_primitive_types): Delete.
473 (opencl_type_data): Delete.
474 (builtin_opencl_type): Delete.
475 (lookup_opencl_vector_type): Update.
476 (opencl_language::language_arch_info): Update, lots of content
477 moved from...
478 (build_opencl_types): ...here. This function is now deleted.
479 (_initialize_opencl_language): Delete.
480 * p-lang.c (enum pascal_primitive_types): Delete.
481 (pascal_language::language_arch_info): Update.
482 * rust-lang.c (enum rust_primitive_types): Delete.
483 (rust_language::language_arch_info): Update.
484
485 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
488 dwarf2_queue_guard.
489
490 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
491
492 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
493 comment.
494
495 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
496
497 * dwarf2/read.c (dwarf_read_debug_printf,
498 dwarf_read_debug_printf_v): New macros, use throughout the file.
499
500 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
501
502 * arc-linux-tdep.c (collect_register): Populate "eret" by
503 "pc" value from the regcache when asked for "pc" value.
504
505 2020-11-12 Tom Tromey <tom@tromey.com>
506
507 PR rust/26799:
508 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
509 exist.
510
511 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * features/Makefile (XMLTOC): Add rx.xml.
514 (FEATURE_XMLFILES): Remove rx.xml.
515 (FEATURE_CFILES rule): Pass '-single-feature' flag.
516 * features/rx.c: Regenerate.
517 * features/rx.xml: Wrap in `target` tags, and reindent.
518 * target-descriptions.c (struct maint_print_c_tdesc_options): New
519 structure.
520 (maint_print_c_tdesc_opt_def): New typedef.
521 (maint_print_c_tdesc_opt_defs): New static global.
522 (make_maint_print_c_tdesc_options_def_group): New function.
523 (maint_print_c_tdesc_cmd): Make use of command line flags, only
524 print single feature C file for target descriptions containing a
525 single feature.
526 (maint_print_c_tdesc_cmd_completer): New function.
527 (_initialize_target_descriptions): Update call to register command
528 completer, and include command line flag in help text.
529
530 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
533 numbers.
534 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
535 enum values.
536
537 2020-11-10 Tom Tromey <tom@tromey.com>
538
539 * value.h (internalvar_name): Update.
540 * value.c (internalvar_name): Make return type const.
541
542 2020-11-10 Tom Tromey <tom@tromey.com>
543
544 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
545 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
546 const.
547
548 2020-11-10 Tom Tromey <tom@tromey.com>
549
550 * objc-lang.h (value_nsstring): Update.
551 * objc-lang.c (value_nsstring): Make "ptr" const.
552
553 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * expprint.c (print_subexp_funcall): Increment expression position
556 after reading argument count.
557 * f-lang.c (print_subexp_f): Skip over opcode before calling
558 common function.
559 (dump_subexp_body_f): Likewise.
560
561 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
562
563 PR python/26832
564 * configure: Regenerate.
565 * configure.ac: Check for python modules ctypes instead of
566 itertools.
567
568 2020-11-06 Pedro Alves <pedro@palves.net>
569
570 * macroexp.c (struct macro_buffer): Split in two classes. Add
571 uses adjusted.
572 (struct shared_macro_buffer): New, factored out from struct
573 macro_buffer.
574 (struct growable_macro_buffer): New, factored out from struct
575 macro_buffer.
576 (set_token, get_comment, get_identifier, get_pp_number)
577 (get_character_constant, get_string_literal, get_punctuator)
578 (get_next_token_for_substitution): Constify parameters.
579 (substitute_args): Constify locals.
580
581 2020-11-05 Tom Tromey <tom@tromey.com>
582
583 * dwarf2/read.c (read_cutu_die_from_dwo)
584 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
585 (build_type_psymtabs_1): Update.
586 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
587 parameter.
588 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
589 Don't read section. Add assert.
590
591 2020-11-04 Tom Tromey <tromey@adacore.com>
592
593 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
594
595 2020-11-04 Tom Tromey <tromey@adacore.com>
596
597 * ada-typeprint.c (ada_print_type): Handle __T types.
598
599 2020-11-04 Tom Tromey <tromey@adacore.com>
600
601 * dwarf2/read.c (add_partial_symbol, process_die):
602 Handle DW_TAG_array_type.
603 (is_type_tag_for_partial): Add "lang" parameter.
604 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
605
606 2020-11-04 Tom Tromey <tromey@adacore.com>
607
608 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
609
610 2020-11-04 Tom Tromey <tromey@adacore.com>
611
612 * dwarf2/read.c (read_array_type): Only apply stride to innermost
613 array.
614
615 2020-11-04 Tom Tromey <tromey@adacore.com>
616
617 * gdbtypes.c (update_static_array_size): Handle bit stride.
618
619 2020-11-04 Tom Tromey <tromey@adacore.com>
620
621 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
622
623 2020-11-04 Tom Tromey <tromey@adacore.com>
624
625 * ada-lang.c (ada_is_any_packed_array_type): New function.
626 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
627
628 2020-11-04 Tom Tromey <tromey@adacore.com>
629
630 * dwarf2/read.c (recognize_bound_expression)
631 (quirk_ada_thick_pointer): New functions.
632 (read_array_type): Call quirk_ada_thick_pointer.
633 (set_die_type): Add "skip_data_location" parameter.
634 (quirk_ada_thick_pointer): New function.
635 (process_structure_scope): Call quirk_ada_thick_pointer.
636 * ada-lang.c (ada_is_unconstrained_packed_array_type)
637 (decode_packed_array_bitsize): Handle thick pointers without
638 parallel types.
639 (ada_is_gnat_encoded_packed_array_type): Rename from
640 ada_is_packed_array_type.
641 (ada_is_constrained_packed_array_type): Update.
642 * ada-valprint.c (ada_val_print_gnat_array): Remove.
643 (ada_value_print_1): Use ada_get_decoded_value.
644
645 2020-11-04 Tom Tromey <tromey@adacore.com>
646
647 * ada-lang.c (recursively_update_array_bitsize): New function.
648 (decode_constrained_packed_array_type): Call it.
649
650 2020-11-04 Tom Tromey <tromey@adacore.com>
651
652 * ada-lang.c (to_fixed_array_type): Error if
653 decode_constrained_packed_array_type returns NULL.
654
655 2020-11-04 Tom Tromey <tromey@adacore.com>
656
657 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
658
659 2020-11-02 Tom Tromey <tromey@adacore.com>
660
661 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
662 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
663 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
664 * amd64-ravenscar-thread.c: New file.
665 * amd64-ravenscar-thread.h: New file.
666 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
667 * configure.tgt (amd64_tobjs): Add ravenscar objects.
668
669 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * main.c (execute_cmdargs): New function.
672 (captured_main_1): Make use of execute_cmdargs.
673
674 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * NEWS: Mention changes to config file search path.
677 * main.c
678
679 2020-11-02 Tom Tromey <tromey@adacore.com>
680
681 * python/python.c: Consolidate two HAVE_PYTHON blocks.
682 (python_GdbModuleDef): Move earlier. Now static.
683 (do_start_initialization): Consolidate some IS_PY3K blocks.
684
685 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
686
687 * aarch64-linux-tdep.c: Fix indentation.
688 * aarch64-ravenscar-thread.c: Fix indentation.
689 * aarch64-tdep.c: Fix indentation.
690 * aarch64-tdep.h: Fix indentation.
691 * ada-lang.c: Fix indentation.
692 * ada-lang.h: Fix indentation.
693 * ada-tasks.c: Fix indentation.
694 * ada-typeprint.c: Fix indentation.
695 * ada-valprint.c: Fix indentation.
696 * ada-varobj.c: Fix indentation.
697 * addrmap.c: Fix indentation.
698 * addrmap.h: Fix indentation.
699 * agent.c: Fix indentation.
700 * aix-thread.c: Fix indentation.
701 * alpha-bsd-nat.c: Fix indentation.
702 * alpha-linux-tdep.c: Fix indentation.
703 * alpha-mdebug-tdep.c: Fix indentation.
704 * alpha-nbsd-tdep.c: Fix indentation.
705 * alpha-obsd-tdep.c: Fix indentation.
706 * alpha-tdep.c: Fix indentation.
707 * amd64-bsd-nat.c: Fix indentation.
708 * amd64-darwin-tdep.c: Fix indentation.
709 * amd64-linux-nat.c: Fix indentation.
710 * amd64-linux-tdep.c: Fix indentation.
711 * amd64-nat.c: Fix indentation.
712 * amd64-obsd-tdep.c: Fix indentation.
713 * amd64-tdep.c: Fix indentation.
714 * amd64-windows-tdep.c: Fix indentation.
715 * annotate.c: Fix indentation.
716 * arc-tdep.c: Fix indentation.
717 * arch-utils.c: Fix indentation.
718 * arch/arm-get-next-pcs.c: Fix indentation.
719 * arch/arm.c: Fix indentation.
720 * arm-linux-nat.c: Fix indentation.
721 * arm-linux-tdep.c: Fix indentation.
722 * arm-nbsd-tdep.c: Fix indentation.
723 * arm-pikeos-tdep.c: Fix indentation.
724 * arm-tdep.c: Fix indentation.
725 * arm-tdep.h: Fix indentation.
726 * arm-wince-tdep.c: Fix indentation.
727 * auto-load.c: Fix indentation.
728 * auxv.c: Fix indentation.
729 * avr-tdep.c: Fix indentation.
730 * ax-gdb.c: Fix indentation.
731 * ax-general.c: Fix indentation.
732 * bfin-linux-tdep.c: Fix indentation.
733 * block.c: Fix indentation.
734 * block.h: Fix indentation.
735 * blockframe.c: Fix indentation.
736 * bpf-tdep.c: Fix indentation.
737 * break-catch-sig.c: Fix indentation.
738 * break-catch-syscall.c: Fix indentation.
739 * break-catch-throw.c: Fix indentation.
740 * breakpoint.c: Fix indentation.
741 * breakpoint.h: Fix indentation.
742 * bsd-uthread.c: Fix indentation.
743 * btrace.c: Fix indentation.
744 * build-id.c: Fix indentation.
745 * buildsym-legacy.h: Fix indentation.
746 * buildsym.c: Fix indentation.
747 * c-typeprint.c: Fix indentation.
748 * c-valprint.c: Fix indentation.
749 * c-varobj.c: Fix indentation.
750 * charset.c: Fix indentation.
751 * cli/cli-cmds.c: Fix indentation.
752 * cli/cli-decode.c: Fix indentation.
753 * cli/cli-decode.h: Fix indentation.
754 * cli/cli-script.c: Fix indentation.
755 * cli/cli-setshow.c: Fix indentation.
756 * coff-pe-read.c: Fix indentation.
757 * coffread.c: Fix indentation.
758 * compile/compile-cplus-types.c: Fix indentation.
759 * compile/compile-object-load.c: Fix indentation.
760 * compile/compile-object-run.c: Fix indentation.
761 * completer.c: Fix indentation.
762 * corefile.c: Fix indentation.
763 * corelow.c: Fix indentation.
764 * cp-abi.h: Fix indentation.
765 * cp-namespace.c: Fix indentation.
766 * cp-support.c: Fix indentation.
767 * cp-valprint.c: Fix indentation.
768 * cris-linux-tdep.c: Fix indentation.
769 * cris-tdep.c: Fix indentation.
770 * darwin-nat-info.c: Fix indentation.
771 * darwin-nat.c: Fix indentation.
772 * darwin-nat.h: Fix indentation.
773 * dbxread.c: Fix indentation.
774 * dcache.c: Fix indentation.
775 * disasm.c: Fix indentation.
776 * dtrace-probe.c: Fix indentation.
777 * dwarf2/abbrev.c: Fix indentation.
778 * dwarf2/attribute.c: Fix indentation.
779 * dwarf2/expr.c: Fix indentation.
780 * dwarf2/frame.c: Fix indentation.
781 * dwarf2/index-cache.c: Fix indentation.
782 * dwarf2/index-write.c: Fix indentation.
783 * dwarf2/line-header.c: Fix indentation.
784 * dwarf2/loc.c: Fix indentation.
785 * dwarf2/macro.c: Fix indentation.
786 * dwarf2/read.c: Fix indentation.
787 * dwarf2/read.h: Fix indentation.
788 * elfread.c: Fix indentation.
789 * eval.c: Fix indentation.
790 * event-top.c: Fix indentation.
791 * exec.c: Fix indentation.
792 * exec.h: Fix indentation.
793 * expprint.c: Fix indentation.
794 * f-lang.c: Fix indentation.
795 * f-typeprint.c: Fix indentation.
796 * f-valprint.c: Fix indentation.
797 * fbsd-nat.c: Fix indentation.
798 * fbsd-tdep.c: Fix indentation.
799 * findvar.c: Fix indentation.
800 * fork-child.c: Fix indentation.
801 * frame-unwind.c: Fix indentation.
802 * frame-unwind.h: Fix indentation.
803 * frame.c: Fix indentation.
804 * frv-linux-tdep.c: Fix indentation.
805 * frv-tdep.c: Fix indentation.
806 * frv-tdep.h: Fix indentation.
807 * ft32-tdep.c: Fix indentation.
808 * gcore.c: Fix indentation.
809 * gdb_bfd.c: Fix indentation.
810 * gdbarch.sh: Fix indentation.
811 * gdbarch.c: Re-generate
812 * gdbarch.h: Re-generate.
813 * gdbcore.h: Fix indentation.
814 * gdbthread.h: Fix indentation.
815 * gdbtypes.c: Fix indentation.
816 * gdbtypes.h: Fix indentation.
817 * glibc-tdep.c: Fix indentation.
818 * gnu-nat.c: Fix indentation.
819 * gnu-nat.h: Fix indentation.
820 * gnu-v2-abi.c: Fix indentation.
821 * gnu-v3-abi.c: Fix indentation.
822 * go32-nat.c: Fix indentation.
823 * guile/guile-internal.h: Fix indentation.
824 * guile/scm-cmd.c: Fix indentation.
825 * guile/scm-frame.c: Fix indentation.
826 * guile/scm-iterator.c: Fix indentation.
827 * guile/scm-math.c: Fix indentation.
828 * guile/scm-ports.c: Fix indentation.
829 * guile/scm-pretty-print.c: Fix indentation.
830 * guile/scm-value.c: Fix indentation.
831 * h8300-tdep.c: Fix indentation.
832 * hppa-linux-nat.c: Fix indentation.
833 * hppa-linux-tdep.c: Fix indentation.
834 * hppa-nbsd-nat.c: Fix indentation.
835 * hppa-nbsd-tdep.c: Fix indentation.
836 * hppa-obsd-nat.c: Fix indentation.
837 * hppa-tdep.c: Fix indentation.
838 * hppa-tdep.h: Fix indentation.
839 * i386-bsd-nat.c: Fix indentation.
840 * i386-darwin-nat.c: Fix indentation.
841 * i386-darwin-tdep.c: Fix indentation.
842 * i386-dicos-tdep.c: Fix indentation.
843 * i386-gnu-nat.c: Fix indentation.
844 * i386-linux-nat.c: Fix indentation.
845 * i386-linux-tdep.c: Fix indentation.
846 * i386-nto-tdep.c: Fix indentation.
847 * i386-obsd-tdep.c: Fix indentation.
848 * i386-sol2-nat.c: Fix indentation.
849 * i386-tdep.c: Fix indentation.
850 * i386-tdep.h: Fix indentation.
851 * i386-windows-tdep.c: Fix indentation.
852 * i387-tdep.c: Fix indentation.
853 * i387-tdep.h: Fix indentation.
854 * ia64-libunwind-tdep.c: Fix indentation.
855 * ia64-libunwind-tdep.h: Fix indentation.
856 * ia64-linux-nat.c: Fix indentation.
857 * ia64-linux-tdep.c: Fix indentation.
858 * ia64-tdep.c: Fix indentation.
859 * ia64-tdep.h: Fix indentation.
860 * ia64-vms-tdep.c: Fix indentation.
861 * infcall.c: Fix indentation.
862 * infcmd.c: Fix indentation.
863 * inferior.c: Fix indentation.
864 * infrun.c: Fix indentation.
865 * iq2000-tdep.c: Fix indentation.
866 * language.c: Fix indentation.
867 * linespec.c: Fix indentation.
868 * linux-fork.c: Fix indentation.
869 * linux-nat.c: Fix indentation.
870 * linux-tdep.c: Fix indentation.
871 * linux-thread-db.c: Fix indentation.
872 * lm32-tdep.c: Fix indentation.
873 * m2-lang.c: Fix indentation.
874 * m2-typeprint.c: Fix indentation.
875 * m2-valprint.c: Fix indentation.
876 * m32c-tdep.c: Fix indentation.
877 * m32r-linux-tdep.c: Fix indentation.
878 * m32r-tdep.c: Fix indentation.
879 * m68hc11-tdep.c: Fix indentation.
880 * m68k-bsd-nat.c: Fix indentation.
881 * m68k-linux-nat.c: Fix indentation.
882 * m68k-linux-tdep.c: Fix indentation.
883 * m68k-tdep.c: Fix indentation.
884 * machoread.c: Fix indentation.
885 * macrocmd.c: Fix indentation.
886 * macroexp.c: Fix indentation.
887 * macroscope.c: Fix indentation.
888 * macrotab.c: Fix indentation.
889 * macrotab.h: Fix indentation.
890 * main.c: Fix indentation.
891 * mdebugread.c: Fix indentation.
892 * mep-tdep.c: Fix indentation.
893 * mi/mi-cmd-catch.c: Fix indentation.
894 * mi/mi-cmd-disas.c: Fix indentation.
895 * mi/mi-cmd-env.c: Fix indentation.
896 * mi/mi-cmd-stack.c: Fix indentation.
897 * mi/mi-cmd-var.c: Fix indentation.
898 * mi/mi-cmds.c: Fix indentation.
899 * mi/mi-main.c: Fix indentation.
900 * mi/mi-parse.c: Fix indentation.
901 * microblaze-tdep.c: Fix indentation.
902 * minidebug.c: Fix indentation.
903 * minsyms.c: Fix indentation.
904 * mips-linux-nat.c: Fix indentation.
905 * mips-linux-tdep.c: Fix indentation.
906 * mips-nbsd-tdep.c: Fix indentation.
907 * mips-tdep.c: Fix indentation.
908 * mn10300-linux-tdep.c: Fix indentation.
909 * mn10300-tdep.c: Fix indentation.
910 * moxie-tdep.c: Fix indentation.
911 * msp430-tdep.c: Fix indentation.
912 * namespace.h: Fix indentation.
913 * nat/fork-inferior.c: Fix indentation.
914 * nat/gdb_ptrace.h: Fix indentation.
915 * nat/linux-namespaces.c: Fix indentation.
916 * nat/linux-osdata.c: Fix indentation.
917 * nat/netbsd-nat.c: Fix indentation.
918 * nat/x86-dregs.c: Fix indentation.
919 * nbsd-nat.c: Fix indentation.
920 * nbsd-tdep.c: Fix indentation.
921 * nios2-linux-tdep.c: Fix indentation.
922 * nios2-tdep.c: Fix indentation.
923 * nto-procfs.c: Fix indentation.
924 * nto-tdep.c: Fix indentation.
925 * objfiles.c: Fix indentation.
926 * objfiles.h: Fix indentation.
927 * opencl-lang.c: Fix indentation.
928 * or1k-tdep.c: Fix indentation.
929 * osabi.c: Fix indentation.
930 * osabi.h: Fix indentation.
931 * osdata.c: Fix indentation.
932 * p-lang.c: Fix indentation.
933 * p-typeprint.c: Fix indentation.
934 * p-valprint.c: Fix indentation.
935 * parse.c: Fix indentation.
936 * ppc-linux-nat.c: Fix indentation.
937 * ppc-linux-tdep.c: Fix indentation.
938 * ppc-nbsd-nat.c: Fix indentation.
939 * ppc-nbsd-tdep.c: Fix indentation.
940 * ppc-obsd-nat.c: Fix indentation.
941 * ppc-ravenscar-thread.c: Fix indentation.
942 * ppc-sysv-tdep.c: Fix indentation.
943 * ppc64-tdep.c: Fix indentation.
944 * printcmd.c: Fix indentation.
945 * proc-api.c: Fix indentation.
946 * producer.c: Fix indentation.
947 * producer.h: Fix indentation.
948 * prologue-value.c: Fix indentation.
949 * prologue-value.h: Fix indentation.
950 * psymtab.c: Fix indentation.
951 * python/py-arch.c: Fix indentation.
952 * python/py-bpevent.c: Fix indentation.
953 * python/py-event.c: Fix indentation.
954 * python/py-event.h: Fix indentation.
955 * python/py-finishbreakpoint.c: Fix indentation.
956 * python/py-frame.c: Fix indentation.
957 * python/py-framefilter.c: Fix indentation.
958 * python/py-inferior.c: Fix indentation.
959 * python/py-infthread.c: Fix indentation.
960 * python/py-objfile.c: Fix indentation.
961 * python/py-prettyprint.c: Fix indentation.
962 * python/py-registers.c: Fix indentation.
963 * python/py-signalevent.c: Fix indentation.
964 * python/py-stopevent.c: Fix indentation.
965 * python/py-stopevent.h: Fix indentation.
966 * python/py-threadevent.c: Fix indentation.
967 * python/py-tui.c: Fix indentation.
968 * python/py-unwind.c: Fix indentation.
969 * python/py-value.c: Fix indentation.
970 * python/py-xmethods.c: Fix indentation.
971 * python/python-internal.h: Fix indentation.
972 * python/python.c: Fix indentation.
973 * ravenscar-thread.c: Fix indentation.
974 * record-btrace.c: Fix indentation.
975 * record-full.c: Fix indentation.
976 * record.c: Fix indentation.
977 * reggroups.c: Fix indentation.
978 * regset.h: Fix indentation.
979 * remote-fileio.c: Fix indentation.
980 * remote.c: Fix indentation.
981 * reverse.c: Fix indentation.
982 * riscv-linux-tdep.c: Fix indentation.
983 * riscv-ravenscar-thread.c: Fix indentation.
984 * riscv-tdep.c: Fix indentation.
985 * rl78-tdep.c: Fix indentation.
986 * rs6000-aix-tdep.c: Fix indentation.
987 * rs6000-lynx178-tdep.c: Fix indentation.
988 * rs6000-nat.c: Fix indentation.
989 * rs6000-tdep.c: Fix indentation.
990 * rust-lang.c: Fix indentation.
991 * rx-tdep.c: Fix indentation.
992 * s12z-tdep.c: Fix indentation.
993 * s390-linux-tdep.c: Fix indentation.
994 * score-tdep.c: Fix indentation.
995 * ser-base.c: Fix indentation.
996 * ser-mingw.c: Fix indentation.
997 * ser-uds.c: Fix indentation.
998 * ser-unix.c: Fix indentation.
999 * serial.c: Fix indentation.
1000 * sh-linux-tdep.c: Fix indentation.
1001 * sh-nbsd-tdep.c: Fix indentation.
1002 * sh-tdep.c: Fix indentation.
1003 * skip.c: Fix indentation.
1004 * sol-thread.c: Fix indentation.
1005 * solib-aix.c: Fix indentation.
1006 * solib-darwin.c: Fix indentation.
1007 * solib-frv.c: Fix indentation.
1008 * solib-svr4.c: Fix indentation.
1009 * solib.c: Fix indentation.
1010 * source.c: Fix indentation.
1011 * sparc-linux-tdep.c: Fix indentation.
1012 * sparc-nbsd-tdep.c: Fix indentation.
1013 * sparc-obsd-tdep.c: Fix indentation.
1014 * sparc-ravenscar-thread.c: Fix indentation.
1015 * sparc-tdep.c: Fix indentation.
1016 * sparc64-linux-tdep.c: Fix indentation.
1017 * sparc64-nbsd-tdep.c: Fix indentation.
1018 * sparc64-obsd-tdep.c: Fix indentation.
1019 * sparc64-tdep.c: Fix indentation.
1020 * stabsread.c: Fix indentation.
1021 * stack.c: Fix indentation.
1022 * stap-probe.c: Fix indentation.
1023 * stubs/ia64vms-stub.c: Fix indentation.
1024 * stubs/m32r-stub.c: Fix indentation.
1025 * stubs/m68k-stub.c: Fix indentation.
1026 * stubs/sh-stub.c: Fix indentation.
1027 * stubs/sparc-stub.c: Fix indentation.
1028 * symfile-mem.c: Fix indentation.
1029 * symfile.c: Fix indentation.
1030 * symfile.h: Fix indentation.
1031 * symmisc.c: Fix indentation.
1032 * symtab.c: Fix indentation.
1033 * symtab.h: Fix indentation.
1034 * target-float.c: Fix indentation.
1035 * target.c: Fix indentation.
1036 * target.h: Fix indentation.
1037 * tic6x-tdep.c: Fix indentation.
1038 * tilegx-linux-tdep.c: Fix indentation.
1039 * tilegx-tdep.c: Fix indentation.
1040 * top.c: Fix indentation.
1041 * tracefile-tfile.c: Fix indentation.
1042 * tracepoint.c: Fix indentation.
1043 * tui/tui-disasm.c: Fix indentation.
1044 * tui/tui-io.c: Fix indentation.
1045 * tui/tui-regs.c: Fix indentation.
1046 * tui/tui-stack.c: Fix indentation.
1047 * tui/tui-win.c: Fix indentation.
1048 * tui/tui-winsource.c: Fix indentation.
1049 * tui/tui.c: Fix indentation.
1050 * typeprint.c: Fix indentation.
1051 * ui-out.h: Fix indentation.
1052 * unittests/copy_bitwise-selftests.c: Fix indentation.
1053 * unittests/memory-map-selftests.c: Fix indentation.
1054 * utils.c: Fix indentation.
1055 * v850-tdep.c: Fix indentation.
1056 * valarith.c: Fix indentation.
1057 * valops.c: Fix indentation.
1058 * valprint.c: Fix indentation.
1059 * valprint.h: Fix indentation.
1060 * value.c: Fix indentation.
1061 * value.h: Fix indentation.
1062 * varobj.c: Fix indentation.
1063 * vax-tdep.c: Fix indentation.
1064 * windows-nat.c: Fix indentation.
1065 * windows-tdep.c: Fix indentation.
1066 * xcoffread.c: Fix indentation.
1067 * xml-syscall.c: Fix indentation.
1068 * xml-tdesc.c: Fix indentation.
1069 * xstormy16-tdep.c: Fix indentation.
1070 * xtensa-config.c: Fix indentation.
1071 * xtensa-linux-nat.c: Fix indentation.
1072 * xtensa-linux-tdep.c: Fix indentation.
1073 * xtensa-tdep.c: Fix indentation.
1074
1075 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1076 Craig Blackmore <craig.blackmore@embecosm.com>
1077
1078 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1079 as an unsigned value.
1080
1081 2020-11-01 Tom Tromey <tom@tromey.com>
1082
1083 * dbxread.c (dbx_end_psymtab): Update.
1084 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1085 (build_type_psymtabs_reader): Update.
1086 * xcoffread.c (xcoff_end_psymtab): Update.
1087 * ctfread.c (scan_partial_symbols): Update.
1088 * psymtab.c (sort_pst_symbols): Remove.
1089 (partial_symtab::end): Rename from end_psymtab_common. Inline
1090 sort_pst_symbols.
1091 * psympriv.h (struct partial_symtab) <end>: New method.
1092 (end_psymtab_common): Don't declare.
1093
1094 2020-11-01 Tom Tromey <tom@tromey.com>
1095
1096 * symmisc.c (count_psyms): New function.
1097 (print_objfile_statistics): Use it.
1098 * psymtab.c (append_psymbol_to_list): Remove.
1099 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1100 * objfiles.h (struct objstats) <n_psyms>: Remove.
1101
1102 2020-11-01 Tom Tromey <tom@tromey.com>
1103
1104 * dbxread.c (dbx_end_psymtab): Update.
1105 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1106 (build_type_psymtabs_reader): Update.
1107 * xcoffread.c (xcoff_end_psymtab): Update.
1108 * ctfread.c (scan_partial_symbols): Update.
1109 * psympriv.h (end_psymtab_common): Update.
1110 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1111 (sort_pst_symbols): Likewise.
1112
1113 2020-11-01 Tom Tromey <tom@tromey.com>
1114
1115 * dbxread.c (dbx_symfile_read): Update.
1116 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1117 * xcoffread.c (xcoff_initial_scan): Update.
1118 * psympriv.h (init_psymbol_list): Don't declare.
1119 * psymtab.c (init_psymbol_list): Remove.
1120
1121 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1122
1123 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1124 gnat_encoded_fixed_type_info. Update all callers.
1125
1126 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1127
1128 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1129 line too long.
1130
1131 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1132
1133 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1134 cast_from_fixed. Update all callers.
1135 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1136 Update all callers.
1137 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1138 Update all callers.
1139 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1140 ada_scaling_factor.
1141 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1142 to print_gnat_encoded_fixed_point_type.
1143 * ada-valprint.c: Likewise.
1144
1145 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1148 (debug_prefixed_printf): Add check of debug_displaced flag.
1149 * linux-nat.c (linux_nat_debug_printf): Add check of
1150 debug_linux_nat flag.
1151
1152 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1153
1154 * infrun.c (infrun_debug_printf_1): Remove.
1155 (displaced_debug_printf_1): Remove.
1156 (stop_all_threads): Use debug_prefixed_printf.
1157 * infrun.h (infrun_debug_printf_1): Remove.
1158 (infrun_debug_printf): Use debug_prefixed_printf.
1159 (displaced_debug_printf_1): Remove.
1160 (displaced_debug_printf): Use debug_prefixed_printf.
1161 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1162 (linux_nat_debug_printf): Use debug_prefixed_printf.
1163
1164 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * configure: Re-generate.
1167 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1168 AC_LANG_PROGRAM.
1169
1170 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 * configure: Re-generate.
1173
1174 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * configure: Re-generate.
1177
1178 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * configure: Re-generate.
1181
1182 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * configure: Re-generate.
1185
1186 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1187
1188 * acinclude.m4: Modernize.
1189 * configure: Re-generate.
1190
1191 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * configure.ac: Modernize.
1194 * configure: Re-generate.
1195
1196 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1199 * configure: Re-generate.
1200 * configure.ac: Remove AM_PROG_CC_STDC.
1201
1202 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1205 AC_CANONICAL_SYSTEM.
1206 * configure: Re-generate.
1207
1208 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * infrun.h (displaced_debug_printf): New macro. Replace
1211 displaced debug prints throughout to use it.
1212 (displaced_debug_printf_1): New declaration.
1213 (displaced_step_dump_bytes): Return string, remove ui_file
1214 parameter, update all callers.
1215 * infrun.c (displaced_debug_printf_1): New function.
1216 (displaced_step_dump_bytes): Return string, remove ui_file
1217 parameter
1218
1219 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1220
1221 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1222
1223 2020-10-30 Tom Tromey <tromey@adacore.com>
1224
1225 * Makefile.in (stamp-init): Depend on config.status.
1226
1227 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1228
1229 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1230
1231 2020-10-30 Pedro Alves <pedro@palves.net>
1232
1233 * thread.c (lookup_selected_frame): Move ...
1234 * frame.c (lookup_selected_frame): ... here.
1235
1236 2020-10-30 Pedro Alves <pedro@palves.net>
1237
1238 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1239 * frame.c
1240 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1241 Use save_selected_frame. Save language as well.
1242 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1243 Use restore_selected_frame, and restore language as well.
1244 (selected_frame_id, selected_frame_level): New.
1245 (selected_frame): Update comments.
1246 (save_selected_frame, restore_selected_frame): New.
1247 (get_selected_frame): Use lookup_selected_frame.
1248 (get_selected_frame_if_set): Delete.
1249 (select_frame): Record selected_frame_level and selected_frame_id.
1250 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1251 fields.
1252 (get_selected_frame): Make 'message' parameter optional.
1253 (get_selected_frame_if_set): Delete declaration.
1254 (select_frame): Update comments.
1255 (save_selected_frame, restore_selected_frame)
1256 (lookup_selected_frame): Declare.
1257 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1258 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1259 New field.
1260 (save_infcall_control_state): Use save_selected_frame.
1261 (restore_selected_frame): Delete.
1262 (restore_infcall_control_state): Use restore_selected_frame.
1263 * stack.c (select_frame_command_core, frame_command_core): Use
1264 get_selected_frame.
1265 * thread.c (restore_selected_frame): Rename to ...
1266 (lookup_selected_frame): ... this and make extern. Select the
1267 current frame if the frame level is -1.
1268 (scoped_restore_current_thread::restore): Also restore the
1269 language.
1270 (scoped_restore_current_thread::~scoped_restore_current_thread):
1271 Don't try/catch.
1272 (scoped_restore_current_thread::scoped_restore_current_thread):
1273 Save the language as well. Use save_selected_frame.
1274
1275 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1278 documentation.
1279 * gdbarch.h: Re-generate.
1280
1281 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1284 parameter.
1285 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1286 Likewise.
1287 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1288 Likewise.
1289 * arch-utils.c (default_displaced_step_hw_singlestep):
1290 Likewise.
1291 * arch-utils.h (default_displaced_step_hw_singlestep):
1292 Likewise.
1293 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1294 Likewise.
1295 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1296 Likewise.
1297 * gdbarch.c: Re-generate.
1298 * gdbarch.h: Re-generate.
1299 * infrun.c (resume_1): Adjust.
1300
1301 2020-10-29 Tom Tromey <tom@tromey.com>
1302
1303 * progspace.c (program_space::~program_space): Don't call
1304 exec_close.
1305
1306 2020-10-29 Tom Tromey <tom@tromey.com>
1307
1308 * exec.c (exec_target::close): Don't change current program
1309 space.
1310
1311 2020-10-29 Tom Tromey <tom@tromey.com>
1312
1313 * symfile.c (add_symbol_file_command): Update.
1314 * exec.c (program_space::add_target_sections): Rename.
1315 * symfile-mem.c (symbol_file_add_from_memory): Update.
1316 * progspace.h (struct program_space) <add_target_sections>:
1317 Declare new overload.
1318 * exec.h (add_target_sections_of_objfile): Don't declare.
1319
1320 2020-10-29 Tom Tromey <tom@tromey.com>
1321
1322 * solib.c (solib_map_sections): Update.
1323 * exec.c (program_space::add_target_sections): Now a method.
1324 (exec_file_attach): Update.
1325 * exec.h (add_target_sections): Don't declare.
1326 * progspace.h (struct program_space) <add_target_sections>:
1327 Declare.
1328
1329 2020-10-29 Tom Tromey <tom@tromey.com>
1330
1331 * progspace.h (struct program_space) <remove_target_sections>:
1332 Declare.
1333 * exec.c (program_space::remove_target_sections): Now a method.
1334 * exec.h (remove_target_sections): Don't declare.
1335
1336 2020-10-29 Tom Tromey <tom@tromey.com>
1337
1338 * inferior.c (delete_inferior): Update.
1339 * progspace.c (program_space::empty): Rename from
1340 program_space_empty_p. Return bool.
1341 * progspace.h (struct program_space) <empty>: New method.
1342 (program_space_empty_p): Don't declare.
1343
1344 2020-10-29 Tom Tromey <tom@tromey.com>
1345
1346 * progspace.c (program_space::~program_space): Don't call
1347 clear_program_space_solib_cache.
1348 (program_space::clear_solib_cache): Rename from
1349 clear_solib_cache.
1350 * solib.c (handle_solib_event): Update.
1351 * progspace.h (struct program_space) <clear_solib_cache>: New
1352 method.
1353 (clear_program_space_solib_cache): Don't declare.
1354
1355 2020-10-29 Tom Tromey <tom@tromey.com>
1356
1357 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1358 * target.c (info_target_command): Update.
1359 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1360 (symbol_file_clear, reread_symbols): Update.
1361 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1362 * stabsread.c (scan_file_globals): Update.
1363 * solib.c (update_solib_list): Update.
1364 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1365 (svr4_fetch_objfile_link_map, enable_break)
1366 (svr4_relocate_main_executable)
1367 (svr4_iterate_over_objfiles_in_search_order): Update.
1368 * solib-frv.c (lm_base, enable_break)
1369 (frv_relocate_main_executable): Update.
1370 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1371 (frv_fetch_objfile_link_map): Update.
1372 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1373 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1374 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1375 * remote.c (remote_target::get_offsets): Update.
1376 (remote_target::start_remote)
1377 (extended_remote_target::post_attach): Update.
1378 * objfiles.c (entry_point_address_query): Update.
1379 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1380 * minsyms.c (get_symbol_leading_char): Update.
1381 * frame.c (inside_main_func): Update.
1382 * progspace.h (symfile_objfile): Remove macro.
1383
1384 2020-10-29 Tom Tromey <tom@tromey.com>
1385
1386 * exec.c (exec_file_attach): Update.
1387 * progspace.c (program_space::exec_close): Update.
1388 * progspace.h (struct program_space) <ebfd>: Now a
1389 gdb_bfd_ref_ptr.
1390 <set_exec_bfd>: Change argument type.
1391 <exec_bfd>: Update.
1392
1393 2020-10-29 Tom Tromey <tom@tromey.com>
1394
1395 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1396 * symfile.c (reread_symbols): Update.
1397 * symfile-mem.c (add_symbol_file_from_memory_command)
1398 (add_vsyscall_page): Update.
1399 * source-cache.c (source_cache::get_plain_source_lines): Update.
1400 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1401 (svr4_current_sos_direct, svr4_exec_displacement)
1402 (svr4_relocate_main_executable): Update.
1403 (svr4_iterate_over_objfiles_in_search_order): Update.
1404 * solib-frv.c (enable_break2, enable_break): Update.
1405 * solib-dsbt.c (lm_base, enable_break): Update.
1406 * solib-darwin.c (find_program_interpreter)
1407 (darwin_solib_create_inferior_hook): Update.
1408 * sol-thread.c (rw_common, ps_pdmodel): Update.
1409 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1410 * remote.c (compare_sections_command)
1411 (remote_target::trace_set_readonly_regions): Update.
1412 * remote-sim.c (get_sim_inferior_data)
1413 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1414 (gdbsim_target_open, gdbsim_target::files_info): Update.
1415 * exec.h (exec_bfd): Remove macro.
1416 * progspace.c (initialize_progspace): Update.
1417 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1418 Update.
1419 * nto-procfs.c (nto_procfs_target::post_attach)
1420 (nto_procfs_target::create_inferior): Update.
1421 * maint.c (maintenance_info_sections): Update.
1422 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1423 Update.
1424 * infcmd.c (post_create_inferior): Update.
1425 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1426 (objfile_find_memory_regions): Update.
1427 * exec.c (validate_exec_file, exec_file_attach)
1428 (exec_read_partial_read_only, print_section_info): Update.
1429 * corelow.c (core_target_open): Update.
1430 * corefile.c (reopen_exec_file, validate_files): Update.
1431 * arm-tdep.c (gdb_print_insn_arm): Update.
1432 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1433 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1434 methods.
1435
1436 2020-10-29 Tom Tromey <tom@tromey.com>
1437
1438 * progspace.h (current_target_sections): Remove macro.
1439 * solib-svr4.c (scan_dyntag): Update.
1440 * solib-dsbt.c (scan_dyntag): Update.
1441 * exec.c (exec_target::close): Update.
1442 (add_target_sections, add_target_sections_of_objfile)
1443 (remove_target_sections, exec_target::get_section_table)
1444 (exec_target::files_info, set_section_command)
1445 (exec_set_section_address, exec_target::has_memory)
1446 (exec_target::has_memory): Update.
1447
1448 2020-10-29 Tom Tromey <tom@tromey.com>
1449
1450 * source-cache.c (source_cache::get_plain_source_lines): Use
1451 current_program_space.
1452 * corefile.c (reopen_exec_file): Use current_program_space.
1453 * exec.c (exec_file_attach): Use current_program_space.
1454 * exec.h (exec_bfd_mtime): Remove.
1455
1456 2020-10-29 Tom Tromey <tom@tromey.com>
1457
1458 * gcore.c (default_gcore_mach): Remove.
1459 (create_gcore_bfd): Update.
1460
1461 2020-10-29 Tom Tromey <tom@tromey.com>
1462
1463 * progspace.c (program_space::exec_close): New method, from
1464 exec_close in exec.c.
1465 * exec.c (exec_close): Move to progspace.c.
1466 (exec_target::close, exec_file_attach): Update.
1467 * progspace.h (struct program_space) <exec_close>: Declare
1468 method.
1469
1470 2020-10-29 Tom Tromey <tom@tromey.com>
1471
1472 * progspace.h (struct program_space) <exec_filename>: Rename from
1473 pspace_exec_filename. Now a unique_xmalloc_ptr.
1474 * inferior.c (print_selected_inferior): Update.
1475 (print_inferior): Update.
1476 * mi/mi-main.c (print_one_inferior): Update.
1477 * exec.h (exec_filename): Remove macro.
1478 * corefile.c (get_exec_file): Update.
1479 * exec.c (exec_close): Update.
1480 (exec_file_attach): Update.
1481 * progspace.c (clone_program_space): Update.
1482 (print_program_space): Update.
1483
1484 2020-10-29 Tom Tromey <tom@tromey.com>
1485
1486 * target-section.h (struct target_section): Add constructor.
1487 * exec.c (build_section_table, add_target_sections_of_objfile):
1488 Update.
1489 * corelow.c (core_target::build_file_mappings): Update.
1490
1491 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1492
1493 PR gdb/19318
1494 * inferior.c (detach_inferior_command): Restore the current thread.
1495 (kill_inferior_command): Ditto.
1496
1497 2020-10-28 Tom de Vries <tdevries@suse.de>
1498
1499 PR symtab/26772
1500 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1501 map, check it in the "best match" loop.
1502
1503 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 * m32c-tdep.c: Remove unused includes.
1506
1507 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * xtensa-tdep.c: Remove includes.
1510
1511 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1512
1513 * breakpoint.c (struct condition_command_opts): New struct.
1514 (condition_command_option_defs): New static global.
1515 (make_condition_command_options_def_group): New function.
1516 (condition_completer): Update to consider the '-force' flag.
1517 (condition_command): Use gdb::option for the '-force' flag.
1518
1519 2020-10-27 Tom de Vries <tdevries@suse.de>
1520
1521 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1522 symbols in section check.
1523
1524 2020-10-27 Tom de Vries <tdevries@suse.de>
1525
1526 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1527
1528 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1529
1530 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1531 * breakpoint.c: Update the help text of the 'condition' and 'break'
1532 commands.
1533 (set_breakpoint_condition): Take a new bool parameter
1534 to control whether condition definition should be forced even when
1535 the condition expression is invalid in all of the current locations.
1536 (condition_command): Update the call to 'set_breakpoint_condition'.
1537 (find_condition_and_thread): Take the "-force-condition" flag into
1538 account.
1539 * linespec.c (linespec_keywords): Add "-force-condition" as an
1540 element.
1541 (FORCE_KEYWORD_INDEX): New #define.
1542 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1543 as a keyword.
1544 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1545 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1546 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1547 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1548
1549 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550
1551 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1552 * breakpoint.c (set_breakpoint_location_condition): New function.
1553 (set_breakpoint_condition): Disable a breakpoint location if parsing
1554 the condition string gives an error.
1555 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1556 (build_target_condition_list): Ditto.
1557 (build_target_command_list): Ditto.
1558 (build_bpstat_chain): Ditto.
1559 (print_one_breakpoint_location): Ditto.
1560 (print_one_breakpoint): Ditto.
1561 (breakpoint_1): Ditto.
1562 (bp_location::bp_location): Ditto.
1563 (locations_are_equal): Ditto.
1564 (update_breakpoint_locations): Ditto.
1565 (enable_disable_bp_num_loc): Ditto.
1566 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1567 (find_condition_and_thread_for_sals): New static function.
1568 (create_breakpoint): Call find_condition_and_thread_for_sals.
1569 (location_to_sals): Call find_condition_and_thread_for_sals instead
1570 of find_condition_and_thread.
1571
1572 2020-10-26 Tom de Vries <tdevries@suse.de>
1573
1574 * dwarf2/read.c (process_full_comp_unit): Call
1575 dwarf2_find_base_address.
1576
1577 2020-10-26 Tom Tromey <tromey@adacore.com>
1578
1579 * gdbtypes.c (create_range_type): Revert previous patch. Add
1580 comment.
1581
1582 2020-10-26 Pedro Alves <pedro@palves.net>
1583
1584 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1585 (my_waitpid): Use gdb::handle_eintr.
1586
1587 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * acinclude.m4: Update ptrace.m4 path.
1590 * ptrace.m4: Moved to gdbsupport.
1591
1592 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1595 instead of target_gdbarch.
1596
1597 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * jit.c (jit_reader_load_command): Pass current inferior.
1600 (jit_inferior_init): Change parameter type to inferior, use it.
1601 (jit_inferior_created): Remove.
1602 (jit_inferior_created_hook): Pass inferior parameter down.
1603 (_initialize_jit): Use jit_inferior_created_hook instead of
1604 jit_inferior_created.
1605 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1606 * infrun.c (follow_exec): Pass inferior to
1607 jit_inferior_created_hook.
1608
1609 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1612 parameter and use it.
1613 (thread_db_inferior_created): Pass inferior argument.
1614
1615 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1616
1617 * aix-thread.c (aix_thread_inferior_created): Add inferior
1618 parameter.
1619 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1620 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1621 * jit.c (jit_inferior_created): Likewise.
1622 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1623 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1624 * observable.h (inferior_created): Likewise.
1625 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1626 * symfile-mem.c (add_vsyscall_page): Likewise.
1627 * infcmd.c (post_create_inferior): Pass inferior argument.
1628
1629 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1630
1631 GDB 10.1 released.
1632
1633 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1634
1635 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1636 to ada_check_typedef.
1637
1638 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * f-exp.y (f_parse): Rename to...
1641 (f_language::parser): ...this.
1642 * f-lang.c (f_get_encoding): Rename to...
1643 (f_language::get_encoding): ...this.
1644 (f_op_print_tab): Rename to...
1645 (f_language::op_print_tab): ...this.
1646 (exp_descriptor_f): Rename to...
1647 (f_language::exp_descriptor_tab): ...this.
1648 (class f_language): Moved to f-lang.h.
1649 (f_language::language_arch_info): New function, moved out of class
1650 declaration.
1651 (f_language::search_name_hash): Likewise.
1652 (f_language::lookup_symbol_nonlocal): Likewise.
1653 (f_language::get_symbol_name_matcher_inner): Likewise.
1654 * f-lang.h: Add 'valprint.h' include.
1655 (class f_language): Moved here from f-lang.c.
1656 * f-typeprint.c (f_type_print_args): Delete commented out
1657 declaration.
1658 (f_print_typedef): Rename to...
1659 (f_language::print_typedef): ...this.
1660 (f_print_type): Rename to...
1661 (f_language::print_type): ...this.
1662 (f_type_print_varspec_prefix): Delete declaration and rename to...
1663 (f_language::f_type_print_varspec_prefix): ...this.
1664 (f_type_print_varspec_suffix): Delete declaration and rename to...
1665 (f_language::f_type_print_varspec_suffix): ...this.
1666 (f_type_print_base): Delete declaration and rename to...
1667 (f_language::f_type_print_base): ...this.
1668 * f-valprint.c (f_value_print_inner): Rename to...
1669 (f_language::value_print_inner): ...this.
1670 * parse.c: Delete 'f-lang.h' include.
1671
1672 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * language.h (language_defn::print_type): Add variable names in
1675 declaration, and update header comment.
1676
1677 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * ada-lang.c (ada_language::demangle): Rename to...
1680 (ada_language::demangle_symbol): ...this.
1681 * c-lang.c (cplus_language::demangle): Rename to...
1682 (cplus_language::demangle_symbol): ...this.
1683 * d-lang.c (d_language::demangle): Rename to...
1684 (d_language::demangle_symbol): ...this.
1685 * f-lang.c (f_language::demangle): Rename to...
1686 (f_language::demangle_symbol): ...this.
1687 * go-lang.c (go_language::demangle): Rename to...
1688 (go_language::demangle_symbol): ...this.
1689 * language.c (language_demangle): Update call to demangle_symbol.
1690 (auto_or_unknown_language::demangle): Rename to...
1691 (auto_or_unknown_language::demangle_symbol): ...this.
1692 * language.h (language_defn::demangle): Rename to...
1693 (language_defn::demangle_symbol): ...this.
1694 * objc-lang.c (objc_language::demangle): Rename to...
1695 (objc_language::demangle_symbol): ...this.
1696 * rust-lang.c (rust_language::demangle): Rename to...
1697 (rust_language::demangle_symbol): ...this.
1698
1699 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1702 (iterate_over_file_blocks): Replace use of macro with the macros
1703 definition.
1704
1705 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1708 * valprint.c (maybe_print_array_index): Replace use of macro with
1709 the macros definition.
1710
1711 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * ada-lang.c (ada_language::print_array_index): Call value_print
1714 directly.
1715 * language.c (language_defn::print_array_index): Likewise.
1716 * language.h (LA_VALUE_PRINT): Delete.
1717 * valprint.c (value_print): Call value_print on the
1718 current_language directly.
1719
1720 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * language.h (LA_PRINT_TYPEDEF): Delete.
1723 * typeprint.c (typedef_print): Call print_typedef directly on the
1724 current_language object.
1725
1726 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * m2-exp.y (m2_parse): Rename to...
1729 (m2_language::parser): ...this. Update function signature.
1730 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1731 (m2_op_print): Rename to...
1732 (m2_language::op_print_tab): ...this, and make const.
1733 (exp_descriptor_modula2): Rename to...
1734 (m2_language::exp_descriptor_modula2): ...this.
1735 (class m2_language): Move to m2-lang.h.
1736 (m2_language::language_arch_info): New function, moved out of
1737 class declaration.
1738 (m2_language::printchar): New function, body from m2_printchar.
1739 (m2_language::printstr): New function, moved out of class
1740 declaration.
1741 (m2_language::emitchar): Likewise.
1742 * m2-lang.h (m2_parse): Delete declaration.
1743 (m2_print_typedef): Delete declaration.
1744 (m2_value_print_inner): Delete declaration.
1745 (class m2_language): Class declaration moved from m2-lang.c,
1746 larger functions are left in m2-lang.c.
1747 * m2-typeprint.c (m2_print_typedef): Rename to...
1748 (m2_language::print_typedef): ...this, and update function
1749 signature.
1750 * m2-valprint.c (m2_value_print_inner): Rename to...
1751 (m2_language::value_print_inner): ...this, replace use of
1752 LA_PRINT_STRING with a direct call to printstr member function,
1753 and update recursive call.
1754
1755 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * language.c (default_is_string_type_p): Delete, implementation
1758 moved into auto_or_unknown_language::is_string_type_p.
1759 (unk_op_print_tab): Moved into
1760 auto_or_unknown_language::opcode_print_table.
1761 (unknown_language_arch_info): Delete, implementation moved into
1762 auto_or_unknown_language::language_arch_info.
1763 (class auto_or_unknown_language): New class, member functions
1764 copied from unknown_language class, with some updates.
1765 (class unknown_language): Most member functions moved into
1766 auto_or_unknown_language class. Inherit from
1767 auto_or_unknown_language class.
1768 (class auto_language): Inherit from auto_or_unknown_language.
1769 Delete most member functions.
1770
1771 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1772
1773 * stabsread.c (read_member_functions): Remove gdb_assert.
1774
1775 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1776
1777 * gdbtypes.c (init_complex_type): Check target type name.
1778
1779 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * target-debug.h (target_debug_print_struct_target_ops_p):
1782 Remove.
1783 (target_debug_print_async_callback_ftype_p): Remove.
1784 (target_debug_print_struct_trace_state_variable_p): Remove.
1785 (target_debug_print_struct_traceframe_info_p): Remove.
1786 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1787 (target_debug_print_enum_btrace_format): Remove.
1788 (target_debug_print_enum_info_proc_what): Remove.
1789 (target_debug_print_thread_info_pp): Remove.
1790
1791 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * target.h (struct target_ops) <make_corefile_notes>:
1794 Change return type to unique pointer.
1795 * target.c (dummy_make_corefile_notes): Likewise.
1796 * exec.c (struct exec_target) <make_corefile_notes>:
1797 Likewise.
1798 (exec_target::make_corefile_notes): Likewise.
1799 * procfs.c (class procfs_target) <make_corefile_notes>:
1800 Likewise.
1801 (procfs_do_thread_registers): Adjust to unique pointer.
1802 (struct procfs_corefile_thread_data): Add constructor.
1803 <note_data>: Change type to unique pointer.
1804 (procfs_corefile_thread_callback): Adjust to unique pointer.
1805 (procfs_target::make_corefile_notes): Change return type to
1806 unique pointer.
1807 * target-delegates.c: Re-generate.
1808 * gcore.c (write_gcore_file_1): Adjust.
1809 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1810 New.
1811
1812 2020-10-22 Tom de Vries <tdevries@suse.de>
1813
1814 * block.c (find_block_in_blockvector): Make sure the returned block
1815 contains pc.
1816
1817 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 PR gdb/26693
1820 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1821 parameter.
1822 (load_cu): Pass existing CU.
1823 (process_imported_unit_die): Likewise.
1824 (follow_die_offset): Likewise.
1825
1826 2020-10-22 Luis Machado <luis.machado@linaro.org>
1827
1828 * corelow.c (core_target::xfer_partial): Also check for an empty
1829 m_core_unavailable_mappings vector.
1830
1831 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1834 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1835 * f-exp.y (arglist): Allow for a series of subranges.
1836 (subrange): Add cases for subranges with strides.
1837 * f-lang.c (value_f90_subarray): Catch use of array strides and
1838 throw an error.
1839 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1840
1841 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 * expprint.c (print_subexp_standard): Change enum range_type to
1844 range_flag and rename variables to match.
1845 (dump_subexp_body_standard): Likewise.
1846 * expression.h (enum range_type): Rename to...
1847 (enum range_flag): ...this.
1848 (range_types): Rename to...
1849 (range_flags): ...this.
1850 * f-lang.c (value_f90_subarray): Change enum range_type to
1851 range_flag and rename variables to match.
1852 * parse.c (operator_length_standard): Likewise.
1853 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1854 range_type to range_flag.
1855 * rust-lang.c (rust_evaluate_funcall): Likewise.
1856 (rust_range): Likewise.
1857 (rust_compute_range): Likewise.
1858 (rust_subscript): Likewise.
1859
1860 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1861
1862 * expprint.c (print_subexp_standard): Update to reflect changes to
1863 enum range_type.
1864 (dump_subexp_body_standard): Likewise.
1865 * expression.h (enum range_type): Convert to a bit field enum, and
1866 make the enum unsigned.
1867 * f-exp.y (subrange): Update to reflect changes to enum
1868 range_type.
1869 * f-lang.c (value_f90_subarray): Likewise.
1870 * parse.c (operator_length_standard): Likewise.
1871 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1872 * rust-lang.c (rust_range): Likewise.
1873 (rust_compute_range): Likewise.
1874 (rust_subscript): Likewise.
1875
1876 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1879 (displaced_step_in_progress): Fix comment.
1880
1881 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1882
1883 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1884 * gdbarch.c: Re-generate.
1885 * gdbarch.h: Re-generate.
1886 * gcore.c (write_gcore_file_1): Adjust.
1887 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1888 constructor.
1889 <note_data>: Change type to unique pointer.
1890 <abort_iteration>: Change type to bool.
1891 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1892 (fbsd_collect_thread_registers): Return void, adjust.
1893 (struct fbsd_corefile_thread_data): Add construtor.
1894 <note_data>: Change type to unique pointer.
1895 (fbsd_corefile_thread): Adjust.
1896 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1897 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1898 to unique pointer, adjust.
1899 (struct linux_collect_regset_section_cb_data): Add constructor.
1900 <note_data>: Change type to unique pointer.
1901 <abort_iteration>: Change type to bool.
1902 (linux_collect_thread_registers): Return void, adjust.
1903 (struct linux_corefile_thread_data): Add constructor.
1904 <note_data>: Change type to unique pointer.
1905 (linux_corefile_thread): Adjust.
1906 (linux_make_corefile_notes): Return unique pointer, adjust.
1907
1908 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1911 * gdbarch.c: Re-generate.
1912 * gdbarch.h: Re-generate.
1913 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1914 bool.
1915 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1916 Likewise.
1917 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1918 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1919 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1920 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1921
1922 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * gdbarch.sh: Make generated predicates return bool.
1925 * gdbarch.c: Re-generate.
1926 * gdbarch.h: Re-generate.
1927
1928 2020-10-20 Tom Tromey <tom@tromey.com>
1929
1930 * varobj-iter.h (struct varobj_item): Remove typedef.
1931
1932 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * infrun.c (currently_stepping): Change int to bool
1935 (maybe_software_singlestep): Likewise.
1936 (show_stop_on_solib_events): Likewise.
1937 (stepping_past_nonsteppable_watchpoint): Likewise.
1938 (displaced_step_in_progress_any_inferior): Likewise.
1939 (displaced_step_in_progress_thread): Likewise.
1940 (keep_going_stepped_thread): Likewise.
1941 (thread_still_needs_step_over): Likewise.
1942 (start_step_over): Likewise.
1943 (do_target_resume): Likewise.
1944 (resume_1): Likewise.
1945 (clear_proceed_status): Likewise.
1946 (thread_still_needs_step_over_bp): Likewise.
1947 (proceed): Likewise.
1948 (switch_back_to_stepped_thread): Likewise.
1949 (adjust_pc_after_break): Likewise.
1950 (stepped_in_from): Likewise.
1951 (handle_stop_requested): Likewise.
1952 (handle_syscall_event): Likewise.
1953 (handle_no_resumed): Likewise.
1954 (handle_inferior_event): Likewise.
1955 (finish_step_over): Likewise.
1956 (handle_signal_stop): Likewise.
1957 (process_event_stop_test): Likewise.
1958
1959 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * infrun.c (get_displaced_stepping_state): Fix comment.
1962
1963 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1964
1965 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1966
1967 2020-10-19 Tom Tromey <tromey@adacore.com>
1968
1969 PR tui/26719
1970 * tui/tui-winsource.h (struct tui_source_window_base)
1971 <refresh_window>: Rename from refresh_pad.
1972 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1973 Rename from refresh_pad.
1974 (tui_source_window_base::show_source_content)
1975 (tui_source_window_base::do_scroll_horizontal): Update.
1976
1977 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978
1979 * thread.c (_initialize_thread): Fine-tune the help text of
1980 'info threads'.
1981
1982 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1983
1984 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1985
1986 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1987
1988 * breakpoint.c (handle_jit_event): Add an argument, change how
1989 `jit_event_handler` is called.
1990
1991 2020-10-17 Tom Tromey <tom@tromey.com>
1992
1993 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1994 (scan_xcoff_symtab): Update.
1995 * psymtab.h (class psymtab_storage) <global_psymbols,
1996 static_psymbols, current_global_psymbols,
1997 current_static_psymbols>: Remove.
1998 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1999 (match_partial_symbol, lookup_partial_symbol): Update.
2000 (print_partial_symbols): Change parameters.
2001 (dump_psymtab, recursively_search_psymtabs)
2002 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2003 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2004 (concat): Remove.
2005 (end_psymtab_common): Simplify.
2006 (append_psymbol_to_list): Change parameters.
2007 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2008 (init_psymbol_list): Simplify.
2009 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2010 * psympriv.h (struct partial_symtab) <empty>: New method.
2011 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2012 Remove.
2013 <global_psymbols, static_psymbols>: New members.
2014 <add_psymbol>: New methods.
2015 (add_psymbol_to_list): Don't declare.
2016 (psymbol_placement): Move earlier.
2017 * mdebugread.c (parse_partial_symbols): Update.
2018 (handle_psymbol_enumerators): Change parameters.
2019 (mdebug_expand_psymtab): Update.
2020 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2021 (add_partial_symbol): Update.
2022 * dwarf2/index-write.c (write_psymbols): Change parameters.
2023 (write_one_signatured_type): Update.
2024 (recursively_count_psymbols): Update.
2025 (recursively_write_psymbols): Update.
2026 (class debug_names) <recursively_write_psymbols>: Update.
2027 <write_psymbols>: Change parameters.
2028 <write_one_signatured_type>: Update.
2029 * dbxread.c (read_dbx_symtab): Update.
2030 (dbx_end_psymtab): Use partial_symtab::empty.
2031 * ctfread.c (struct ctf_context) <pst>: New member.
2032 (create_partial_symtab): Set it.
2033 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2034 (scan_partial_symbols): Use the psymtab's context. Update.
2035
2036 2020-10-17 Tom Tromey <tom@tromey.com>
2037
2038 * valprint.c (generic_value_print): Remove comment.
2039 * m2-valprint.c (m2_value_print_inner): Remove comment.
2040 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2041 type.
2042
2043 2020-10-17 Tom de Vries <tdevries@suse.de>
2044
2045 PR symtab/26317
2046 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2047 symbol main.
2048
2049 2020-10-14 Tom de Vries <tdevries@suse.de>
2050
2051 PR gdb/26733
2052 * solib.c (solib_contains_address_p): Handle
2053 'solib->sections == nullptr'.
2054
2055 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2056
2057 PR gdb/26642
2058 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2059 target can't do async.
2060 * target.c (target_wait): Assert that we don't pass
2061 TARGET_WNOHANG to a target that can't async.
2062
2063 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2064
2065 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2066 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2067 * alpha-bsd-nat.c: Adjust include.
2068 * alpha-bsd-tdep.h: Adjust comment.
2069 * alpha-nbsd-tdep.c: Rename to ...
2070 * alpha-netbsd-tdep.c: ... this, adjust include.
2071 * amd64-nbsd-nat.c: Rename to ...
2072 * amd64-netbsd-nat.c: ... this, adjust include.
2073 * amd64-nbsd-tdep.c: Rename to ...
2074 * amd64-netbsd-tdep.c: ... this, adjust include.
2075 * amd64-tdep.h: Adjust include.
2076 * arm-nbsd-nat.c: Rename to ...
2077 * arm-netbsd-nat.c: ... this, adjust include.
2078 * arm-nbsd-tdep.c: Rename to ...
2079 * arm-netbsd-tdep.c: ... this, adjust include.
2080 * arm-nbsd-tdep.h: Rename to ...
2081 * arm-netbsd-tdep.h: ... this, adjust include.
2082 * configure.nat: Adjust file lists.
2083 * configure.tgt: Likewise.
2084 * hppa-nbsd-nat.c: Rename to ...
2085 * hppa-netbsd-nat.c: ... this, adjust include.
2086 * hppa-nbsd-tdep.c: Rename to ...
2087 * hppa-netbsd-tdep.c: ... this, adjust include.
2088 * i386-nbsd-nat.c: Rename to ...
2089 * i386-netbsd-nat.c: ... this, adjust include.
2090 * i386-nbsd-tdep.c: Rename to ...
2091 * i386-netbsd-tdep.c: ... this, adjust include.
2092 * m68k-bsd-nat.c: Adjust include.
2093 * mips-nbsd-nat.c: Rename to ...
2094 * mips-netbsd-nat.c: ... this, adjust include.
2095 * mips-nbsd-tdep.c: Rename to ...
2096 * mips-netbsd-tdep.c: ... this, adjust include.
2097 * mips-nbsd-tdep.h: Rename to ...
2098 * mips-netbsd-tdep.h: ... this.
2099 * nbsd-nat.c: Rename to ...
2100 * netbsd-nat.c: ... this, adjust include.
2101 * nbsd-nat.h: Rename to ...
2102 * netbsd-nat.h: ... this, adjust include.
2103 * nbsd-tdep.c: Rename to ...
2104 * netbsd-tdep.c: ... this, adjust include.
2105 * nbsd-tdep.h: Rename to ...
2106 * netbsd-tdep.h: ... this.
2107 * ppc-nbsd-nat.c: Rename to ...
2108 * ppc-netbsd-nat.c: ... this, adjust include.
2109 * ppc-nbsd-tdep.c: Rename to ...
2110 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2111 * ppc-nbsd-tdep.h: Rename to ...
2112 * ppc-netbsd-tdep.h: ... this.
2113 * sh-nbsd-nat.c: Rename to ...
2114 * sh-netbsd-nat.c: ... this, adjust include.
2115 * sh-nbsd-tdep.c: Rename to ...
2116 * sh-netbsd-tdep.c: ... this, adjust include.
2117 * sparc-nbsd-nat.c: Rename to ...
2118 * sparc-netbsd-nat.c: ... this.
2119 * sparc-nbsd-tdep.c: Rename to ...
2120 * sparc-netbsd-tdep.c: ... this, adjust include.
2121 * sparc64-nbsd-nat.c: Rename to ...
2122 * sparc64-netbsd-nat.c: ... this.
2123 * sparc64-nbsd-tdep.c: Rename to ...
2124 * sparc64-netbsd-tdep.c: ... this, adjust include.
2125 * sparc64-tdep.h: Adjust comment.
2126 * vax-bsd-nat.c: Adjust include.
2127 * vax-nbsd-tdep.c: Rename to ...
2128 * vax-netbsd-tdep.c: ... this, adjust include.
2129
2130 2020-10-12 Tom Tromey <tom@tromey.com>
2131
2132 * target.h (struct target_ops) <get_section_table>: Update.
2133 (target_get_section_table): Update.
2134 * target.c (target_get_section_table, target_section_by_addr)
2135 (memory_xfer_partial_1): Update.
2136 * target-section.h (target_section_table): Now an alias.
2137 * target-delegates.c: Rebuild.
2138 * target-debug.h (target_debug_print_target_section_table_p):
2139 Rename from target_debug_print_struct_target_section_table_p.
2140 * symfile.c (build_section_addr_info_from_section_table): Update.
2141 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2142 * solib-svr4.c (scan_dyntag): Update.
2143 * solib-dsbt.c (scan_dyntag): Update.
2144 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2145 Update.
2146 * record-full.c (record_full_core_target::xfer_partial): Update.
2147 * progspace.h (struct program_space) <target_sections>: Update.
2148 * exec.h (print_section_info): Update.
2149 * exec.c (exec_target::close, build_section_table)
2150 (add_target_sections, add_target_sections_of_objfile)
2151 (remove_target_sections, exec_on_vfork)
2152 (section_table_available_memory)
2153 (section_table_xfer_memory_partial)
2154 (exec_target::get_section_table, exec_target::xfer_partial)
2155 (print_section_info, set_section_command)
2156 (exec_set_section_address, exec_target::has_memory): Update.
2157 * corelow.c (core_target::build_file_mappings)
2158 (core_target::xfer_partial, core_target::info_proc_mappings)
2159 (core_target::info_proc_mappings): Update.
2160 * bfd-target.c (class target_bfd): Update
2161
2162 2020-10-12 Tom Tromey <tom@tromey.com>
2163
2164 * progspace.c (program_space::~program_space): Don't call
2165 clear_section_table.
2166 * exec.h (clear_section_table): Don't declare.
2167 * exec.c (exec_target::close): Update.
2168 (clear_section_table): Remove.
2169
2170 2020-10-12 Tom Tromey <tom@tromey.com>
2171
2172 * exec.c (add_target_sections_of_objfile): Simplify.
2173
2174 2020-10-12 Tom Tromey <tom@tromey.com>
2175
2176 * solib.c (solib_map_sections): Update.
2177 * record-full.c (record_full_core_open_1): Update.
2178 * exec.h (build_section_table): Return a target_section_table.
2179 * exec.c (exec_file_attach): Update.
2180 (build_section_table): Return a target_section_table.
2181 * corelow.c (core_target::core_target): Update.
2182 * bfd-target.c (target_bfd::target_bfd): Update.
2183
2184 2020-10-12 Tom Tromey <tom@tromey.com>
2185
2186 * target.c (target_section_by_addr, memory_xfer_partial_1):
2187 Update.
2188 * target-section.h (struct target_section_table): Use
2189 std::vector.
2190 * symfile.h (build_section_addr_info_from_section_table): Take a
2191 target_section_table.
2192 * symfile.c (build_section_addr_info_from_section_table): Take a
2193 target_section_table.
2194 * solist.h (struct so_list) <sections>: Change type.
2195 <sections_end>: Remove.
2196 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2197 (solib_contains_address_p): Update.
2198 * solib-svr4.c (scan_dyntag): Update.
2199 * solib-dsbt.c (scan_dyntag): Update.
2200 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2201 Update.
2202 * record-full.c (record_full_core_start, record_full_core_end):
2203 Remove.
2204 (record_full_core_sections): New global.
2205 (record_full_core_open_1, record_full_core_target::xfer_partial):
2206 Update.
2207 * exec.h (build_section_table, section_table_xfer_memory_partial)
2208 (add_target_sections): Take a target_section_table.
2209 * exec.c (exec_file_attach, clear_section_table): Update.
2210 (resize_section_table): Remove.
2211 (build_section_table, add_target_sections): Take a
2212 target_section_table.
2213 (add_target_sections_of_objfile, remove_target_sections)
2214 (exec_on_vfork): Update.
2215 (section_table_available_memory): Take a target_section_table.
2216 (section_table_read_available_memory): Update.
2217 (section_table_xfer_memory_partial): Take a target_section_table.
2218 (print_section_info, set_section_command)
2219 (exec_set_section_address, exec_target::has_memory): Update.
2220 * corelow.c (class core_target) <m_core_section_table,
2221 m_core_file_mappings>: Remove braces.
2222 <~core_target>: Remove.
2223 (core_target::core_target): Update.
2224 (core_target::~core_target): Remove.
2225 (core_target::build_file_mappings)
2226 (core_target::xfer_memory_via_mappings)
2227 (core_target::xfer_partial, core_target::info_proc_mappings):
2228 Update.
2229 * bfd-target.c (target_bfd::xfer_partial): Update.
2230 (target_bfd::target_bfd): Update.
2231 (target_bfd::~target_bfd): Remove.
2232
2233 2020-10-12 Tom Tromey <tom@tromey.com>
2234
2235 * target.h (struct target_section, struct target_section_table):
2236 Move to target-section.h.
2237 * target-section.h: New file.
2238
2239 2020-10-12 Pedro Alves <pedro@palves.net>
2240
2241 PR exp/26602
2242 * valops.c (struct struct_field_searcher): New.
2243 (update_search_result): Rename to ...
2244 (struct_field_searcher::update_result): ... this. Simplify
2245 prototype. Record all found fields.
2246 (do_search_struct_field): Rename to ...
2247 (struct_field_searcher::search): ... this. Simplify prototype.
2248 Maintain stack of visited baseclass path. Call update_result for
2249 fields too. Keep searching fields in baseclasses instead of
2250 stopping at the first found field.
2251 (search_struct_field): Use struct_field_searcher. When looking
2252 for fields, report ambiguous access attempts.
2253
2254 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * frame.c (inside_main_func): Check full symbols as well as
2257 minimal symbols.
2258
2259 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2260
2261 * ada-lang.c (advance_wild_match): Rewrite the function's
2262 description. Change the type of target0, t0 and t1 to char.
2263
2264 2020-10-09 Tom Tromey <tromey@adacore.com>
2265
2266 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2267
2268 2020-10-09 Tom Tromey <tromey@adacore.com>
2269
2270 * ada-lang.h (ada_encode): Return std::string.
2271 * ada-lang.c (ada_encode_1): Return std::string.
2272 (ada_encode): Likewise.
2273 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2274 Update.
2275 * ada-exp.y (block_lookup, write_var_or_type): Update.
2276
2277 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2278
2279 PR exp/26714
2280 * printcmd.c (print_formatted): Handle void results as
2281 unformatted prints.
2282
2283 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * arch/aarch32.c (aarch32_create_target_description): Release the
2286 target_desc_up as late as possible.
2287 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2288 * arch/amd64.c (amd64_create_target_description): Likewise.
2289 * arch/arc.c (arc_create_target_description): Return a
2290 target_desc_up, don't release it.
2291 * arch/arc.h (arc_create_target_description): Update declaration.
2292 (arc_lookup_target_description): Move target_desc_up into the
2293 cache, and return a borrowed pointer.
2294 * arch/arm.c (arm_create_target_description): Release the
2295 target_desc_up as late as possible.
2296 * arch/i386.c (i386_create_target_description): Likewise.
2297 * arch/riscv.h (riscv_create_target_description): Update
2298 declaration to match definition.
2299 * arch/tic6x.c (tic6x_create_target_description): Release the
2300 target_desc_up as late as possible.
2301
2302 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2305 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2306
2307 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2308
2309 * source.c (directory_command): Notify observers that "directories"
2310 parameter has changed.
2311
2312 2020-10-08 Tom Tromey <tom@tromey.com>
2313
2314 * cli/cli-cmds.c (print_disassembly): Style function name and
2315 addresses. Add _() wrappers.
2316
2317 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2318
2319 * NEWS: Mention ARC support in GDBserver.
2320
2321 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2322
2323 * arch/aarch32.c (aarch32_create_target_description): Release
2324 unique_ptr returned from allocate_target_description.
2325 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2326 * arch/amd64.c (amd64_create_target_description): Likewise.
2327 * arch/arc.c (arc_create_target_description): Likewise.
2328 * arch/arm.c (arm_create_target_description): Likewise.
2329 * arch/i386.c (i386_create_target_description): Likewise.
2330 * arch/riscv.c (riscv_create_target_description): Update return
2331 type. Handle allocate_target_description returning a unique_ptr.
2332 (riscv_lookup_target_description): Update to handle unique_ptr.
2333 * arch/tic6x.c (tic6x_create_target_description): Release
2334 unique_ptr returned from allocate_target_description.
2335 * features/microblaze-with-stack-protect.c: Regenerate.
2336 * features/microblaze.c: Regenerate.
2337 * features/mips-dsp-linux.c: Regenerate.
2338 * features/mips-linux.c: Regenerate.
2339 * features/mips64-dsp-linux.c: Regenerate.
2340 * features/mips64-linux.c: Regenerate.
2341 * features/nds32.c: Regenerate.
2342 * features/nios2.c: Regenerate.
2343 * features/or1k.c: Regenerate.
2344 * features/rs6000/powerpc-32.c: Regenerate.
2345 * features/rs6000/powerpc-32l.c: Regenerate.
2346 * features/rs6000/powerpc-403.c: Regenerate.
2347 * features/rs6000/powerpc-403gc.c: Regenerate.
2348 * features/rs6000/powerpc-405.c: Regenerate.
2349 * features/rs6000/powerpc-505.c: Regenerate.
2350 * features/rs6000/powerpc-601.c: Regenerate.
2351 * features/rs6000/powerpc-602.c: Regenerate.
2352 * features/rs6000/powerpc-603.c: Regenerate.
2353 * features/rs6000/powerpc-604.c: Regenerate.
2354 * features/rs6000/powerpc-64.c: Regenerate.
2355 * features/rs6000/powerpc-64l.c: Regenerate.
2356 * features/rs6000/powerpc-7400.c: Regenerate.
2357 * features/rs6000/powerpc-750.c: Regenerate.
2358 * features/rs6000/powerpc-860.c: Regenerate.
2359 * features/rs6000/powerpc-altivec32.c: Regenerate.
2360 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2361 * features/rs6000/powerpc-altivec64.c: Regenerate.
2362 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2363 * features/rs6000/powerpc-e500.c: Regenerate.
2364 * features/rs6000/powerpc-e500l.c: Regenerate.
2365 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2366 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2367 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2368 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2369 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2370 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2371 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2372 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2373 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2374 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2375 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2376 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2377 * features/rs6000/powerpc-vsx32.c: Regenerate.
2378 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2379 * features/rs6000/powerpc-vsx64.c: Regenerate.
2380 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2381 * features/rs6000/rs6000.c: Regenerate.
2382 * features/rx.c: Regenerate.
2383 * features/s390-gs-linux64.c: Regenerate.
2384 * features/s390-linux32.c: Regenerate.
2385 * features/s390-linux32v1.c: Regenerate.
2386 * features/s390-linux32v2.c: Regenerate.
2387 * features/s390-linux64.c: Regenerate.
2388 * features/s390-linux64v1.c: Regenerate.
2389 * features/s390-linux64v2.c: Regenerate.
2390 * features/s390-te-linux64.c: Regenerate.
2391 * features/s390-tevx-linux64.c: Regenerate.
2392 * features/s390-vx-linux64.c: Regenerate.
2393 * features/s390x-gs-linux64.c: Regenerate.
2394 * features/s390x-linux64.c: Regenerate.
2395 * features/s390x-linux64v1.c: Regenerate.
2396 * features/s390x-linux64v2.c: Regenerate.
2397 * features/s390x-te-linux64.c: Regenerate.
2398 * features/s390x-tevx-linux64.c: Regenerate.
2399 * features/s390x-vx-linux64.c: Regenerate.
2400 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2401 from allocate_target_description.
2402 * target-descriptions.c (allocate_target_description): Update
2403 return type.
2404 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2405 allocate_target_description.
2406
2407 2020-10-07 Tom Tromey <tromey@adacore.com>
2408
2409 * unittests/search-memory-selftests.c: New file.
2410 * Makefile.in (SELFTESTS_SRCS): Add
2411 unittests/search-memory-selftests.c.
2412
2413 2020-10-07 Tom Tromey <tromey@adacore.com>
2414
2415 PR gdb/16930:
2416 * findcmd.c (_initialize_mem_search): Mention that the range is
2417 inclusive.
2418
2419 2020-10-07 Tom Tromey <tromey@adacore.com>
2420
2421 * target.h (simple_search_memory): Don't declare.
2422 * target.c (simple_search_memory): Move to gdbsupport.
2423 (default_search_memory): Update.
2424 * remote.c (remote_target::search_memory): Update.
2425
2426 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * Makefile.in (COMPILE): Add CXXFLAGS.
2429 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2430 (check-headers): Add CXXFLAGS.
2431
2432 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2433
2434 * arc-linux-tdep.h: New file.
2435 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2436 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2437 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2438 arc_linux_gregset, arc_linux_v2_regset,
2439 arc_linux_iterate_over_regset_sections,
2440 arc_linux_core_read_description): Implement.
2441 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2442 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2443 (arc_gdbarch_features_create): Add.
2444 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2445
2446 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2447
2448 * arch/arc.h: Rename "arc_gdbarch_features" to
2449 "arc_arch_features".
2450 * arc-tdep.h: Likewise.
2451 * arc-tdep.c: Likewise.
2452
2453 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2454
2455 * infcmd.c (attach_command): Remove the redundant call to
2456 `clear_proceed_status`.
2457
2458 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2459
2460 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2461
2462 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2463
2464 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2465 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2466 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2467
2468 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2471 (_initialize_break_catch_sig): Don't allocate array.
2472
2473 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * symtab.c (find_pc_line): Return unmapped addresses when the
2476 requested address is also unmapped.
2477
2478 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2481 tui/tui-out.h.
2482
2483 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2484
2485 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2486 type::is_vector instead of TYPE_VECTOR.
2487
2488 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2489
2490 * auto-load.c (auto_load_objfile_script_1): Don't use
2491 debugfile_holder as temporary variable when stripping drive
2492 letter.
2493
2494 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2495
2496 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2497 Add TYPE_CODE_COMPLEX.
2498 (amd64_windows_return_value): Fix types returned via XMM0.
2499
2500 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2501
2502 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2503 AArch64/ARM maintainers.
2504
2505 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * NEWS: Mention set/show debug event-loop.
2508
2509 2020-10-02 Tom Tromey <tromey@adacore.com>
2510
2511 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2512 REG_EXTENDED.
2513
2514 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2515
2516 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2517 * procfs.c (procfs_inferior_created): Remove.
2518 (_initialize_procfs): Don't register procfs_inferior_created.
2519
2520 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2521
2522 * async-event.c (invoke_async_signal_handlers): Add debug
2523 print.
2524 (check_async_event_handlers): Likewise.
2525 * event-top.c (show_debug_event_loop): New function.
2526 (_initialize_event_top): Register "set debug event-loop"
2527 setting.
2528
2529 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2532 * debug.h: Remove.
2533 * infrun.c: Include gdbsupport/common-debug.h.
2534 * linux-nat.c: Likewise.
2535
2536 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 * async-event.h (create_async_signal_handler): Add name
2539 parameter.
2540 (create_async_event_handler): Likewise.
2541 * async-event.c (struct async_signal_handler) <name>: New field.
2542 (struct async_event_handler) <name>: New field.
2543 (create_async_signal_handler): Assign name.
2544 (create_async_event_handler): Assign name.
2545 * event-top.c (async_init_signals): Pass name when creating
2546 handler.
2547 * infrun.c (_initialize_infrun): Likewise.
2548 * record-btrace.c (record_btrace_push_target): Likewise.
2549 * record-full.c (record_full_open): Likewise.
2550 * remote-notif.c (remote_notif_state_allocate): Likewise.
2551 * remote.c (remote_target::open_1): Likewise.
2552 * tui/tui-win.c (tui_initialize_win): Likewise.
2553
2554 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * async-event.c (initialize_async_signal_handlers): Pass name to
2557 add_file_handler
2558 * event-top.c (ui_register_input_event_handler): Likewise.
2559 * linux-nat.c (linux_nat_target::async): Likewise.
2560 * run-on-main-thread.c (_initialize_run_on_main_thread):
2561 Likewise
2562 * ser-base.c (reschedule): Likewise.
2563 (ser_base_async): Likewise.
2564 * tui/tui-io.c: Likewise.
2565 * top.h (struct ui) <num>: New field.
2566 * top.c (highest_ui_num): New variable.
2567 (ui::ui): Initialize num.
2568
2569 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * observable.h <inferior_created>: Remove parameters. Update all
2572 listeners.
2573 * inferior.h (post_create_inferior): Remove target parameter.
2574 Update all callers.
2575
2576 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2577
2578 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2579 and DW_MACRO_undef_strx.
2580 (dwarf_decode_macros): Likewise
2581 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2582 which is the value of DW_AT_str_offsets_base.
2583 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2584 str_offsets_base.
2585
2586 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2587
2588 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2589
2590 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2591
2592 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2593 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2594
2595 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2596
2597 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2598
2599 2020-09-30 Tom de Vries <tdevries@suse.de>
2600
2601 PR symtab/26683
2602 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2603
2604 2020-09-30 Tom Tromey <tromey@adacore.com>
2605
2606 * dwarf2/read.c (handle_variant): Use constant_value.
2607
2608 2020-09-29 Tom Tromey <tom@tromey.com>
2609
2610 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2611 (read_file_scope, dwarf2_get_pc_bounds)
2612 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2613 (read_structure_type, handle_struct_member_die)
2614 (read_enumeration_type, read_array_type, read_set_type)
2615 (read_tag_pointer_type, read_tag_reference_type)
2616 (read_subroutine_type, read_base_type, read_subrange_type)
2617 (read_full_die_1, partial_die_info::read)
2618 (partial_die_info::read, by, new_symbol)
2619 (dwarf2_const_value_data, dwarf2_const_value_attr)
2620 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2621 (prepare_one_comp_unit): Update.
2622 * dwarf2/attribute.h (DW_UNSND): Remove.
2623
2624 2020-09-29 Tom Tromey <tom@tromey.com>
2625
2626 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2627 (read_subroutine_type, partial_die_info::read)
2628 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2629 (dwarf2_add_member_fn): Update.
2630 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2631 * dwarf2/attribute.c (attribute::as_boolean): New method.
2632
2633 2020-09-29 Tom Tromey <tom@tromey.com>
2634
2635 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2636 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2637 method.
2638 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2639
2640 2020-09-29 Tom Tromey <tom@tromey.com>
2641
2642 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2643 the attribute's form.
2644
2645 2020-09-29 Tom Tromey <tom@tromey.com>
2646
2647 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2648 (dwarf2_add_member_fn): Update.
2649 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2650 * dwarf2/attribute.c (attribute::defaulted): New method, from
2651 is_valid_DW_AT_defaulted.
2652
2653 2020-09-29 Tom Tromey <tom@tromey.com>
2654
2655 * dwarf2/read.c (dw2_get_file_names_reader)
2656 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2657 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2658 (dwarf2_symbol_mark_computed): Use as_unsigned.
2659 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2660 method.
2661 <form_is_section_offset>: Update comment.
2662
2663 2020-09-29 Tom Tromey <tom@tromey.com>
2664
2665 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2666 dwarf2_default_access_attribute. Look up attribute.
2667 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2668 Update.
2669
2670 2020-09-29 Tom Tromey <tom@tromey.com>
2671
2672 * dwarf2/read.c (skip_one_die): Update.
2673 (read_full_die_1): Change how reprocessing is done.
2674 (partial_die_info::read): Update.
2675 (read_attribute_value): Remove need_reprocess parameter.
2676 (read_attribute): Likewise.
2677 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2678 New method.
2679
2680 2020-09-29 Tom Tromey <tom@tromey.com>
2681
2682 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2683 (dwarf2_const_value_attr, dump_die_shallow)
2684 (dwarf2_fetch_constant_bytes): Update.
2685 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2686 comment.
2687 <set_address>: New method.
2688 (DW_ADDR): Remove.
2689 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2690 (attribute::as_string, attribute::as_address): Add assert.
2691
2692 2020-09-29 Tom Tromey <tom@tromey.com>
2693
2694 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2695 (read_attribute_reprocess, read_attribute_value): Update.
2696 (read_attribute): Clear requires_reprocessing.
2697 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2698 form_requires_reprocessing>: New methods.
2699 <string_init>: Clear requires_reprocessing.
2700 <set_unsigned_reprocess>: New method.
2701 <name>: Shrink by one bit.
2702 <requires_reprocessing>: New member.
2703 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2704 method.
2705
2706 2020-09-29 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2/read.c (read_attribute_value): Update.
2709 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2710 set_unsigned>: New methods.
2711 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2712
2713 2020-09-29 Tom Tromey <tom@tromey.com>
2714
2715 * dwarf2/read.c (get_alignment, read_array_order)
2716 (read_attribute_value, dwarf2_const_value_attr)
2717 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2718 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2719 New methods.
2720 (DW_SND): Remove.
2721
2722 2020-09-29 Tom Tromey <tom@tromey.com>
2723
2724 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2725 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2726 Update.
2727 * dwarf2/attribute.h (struct attribute) <as_signature,
2728 set_signature>: New methods.
2729 (DW_SIGNATURE): Remove.
2730
2731 2020-09-29 Tom Tromey <tom@tromey.com>
2732
2733 * dwarf2/read.c (read_call_site_scope)
2734 (handle_data_member_location, dwarf2_add_member_fn)
2735 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2736 (partial_die_info::read, read_attribute_value)
2737 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2738 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2739 (dwarf2_symbol_mark_computed): Update.
2740 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2741 methods.
2742 (DW_BLOCK): Remove.
2743 * dwarf2/attribute.c (attribute::form_is_block): Add
2744 DW_FORM_data16.
2745
2746 2020-09-29 Tom Tromey <tom@tromey.com>
2747
2748 * dwarf2/read.c (read_cutu_die_from_dwo)
2749 (read_attribute_reprocess, read_attribute_value, read_attribute)
2750 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2751 (dwarf2_fetch_constant_bytes): Update.
2752 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2753 <set_string_noncanonical, set_string_canonical>: New methods.
2754 <string_is_canonical>: Update comment.
2755 <canonical_string_p>: Add assert.
2756 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2757 * dwarf2/attribute.c (attribute::form_is_string): New method.
2758 (attribute::string): Use it.
2759
2760 2020-09-29 Tom Tromey <tom@tromey.com>
2761
2762 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2763 (dump_die_shallow): Use canonical_string_p.
2764 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2765 method.
2766
2767 2020-09-29 Tom Tromey <tom@tromey.com>
2768
2769 * dwarf2/read.c (partial_die_info::read)
2770 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2771 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2772 attribute::as_string.
2773
2774 2020-09-29 Tom Tromey <tom@tromey.com>
2775
2776 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2777 DW_ADDR.
2778 (attribute::string): Don't use DW_STRING.
2779 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2780 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2781
2782 2020-09-29 Tom Tromey <tom@tromey.com>
2783
2784 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2785 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2786 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2787 * dwarf2/attribute.h (struct attribute): Rename methods.
2788 * dwarf2/attribute.c (attribute::as_address): Rename from
2789 value_as_address.
2790 (attribute::as_string): Rename from value_as_string.
2791
2792 2020-09-29 Tom Tromey <tom@tromey.com>
2793
2794 * dwarf2/read.c (partial_die_info::read) <case
2795 DW_AT_linkage_name>: Use value_as_string.
2796 (dwarf2_string_attr): Use value_as_string.
2797 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2798 method.
2799 * dwarf2/attribute.c (attribute::value_as_string): New method.
2800
2801 2020-09-29 Pedro Alves <pedro@palves.net>
2802
2803 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2804 defined before using '#pragma GCC diagnostic' instead of checking
2805 __clang__.
2806
2807 2020-09-28 Tom Tromey <tom@tromey.com>
2808
2809 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2810 (handle_signal_stop): Update.
2811 * procfs.c (procfs_target::insert_watchpoint): Update.
2812 * target.h (target_have_steppable_watchpoint): Now a function.
2813
2814 2020-09-28 Tom Tromey <tom@tromey.com>
2815
2816 * infrun.c (set_schedlock_func): Update.
2817 * target.h (target_can_lock_scheduler): Now a function.
2818
2819 2020-09-28 Tom Tromey <tom@tromey.com>
2820
2821 * inferior.h (class inferior) <has_execution>: Update.
2822 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2823 * valops.c (find_function_in_inferior)
2824 (value_allocate_space_in_inferior): Update.
2825 * top.c (kill_or_detach): Update.
2826 * target.c (target_preopen, set_target_permissions): Update.
2827 (target_has_execution_current): Remove.
2828 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2829 Update.
2830 * solib.c (update_solib_list, reload_shared_libraries): Update.
2831 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2832 * solib-dsbt.c (enable_break): Update.
2833 * score-tdep.c (score7_fetch_inst): Update.
2834 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2835 Update.
2836 * remote.c (remote_target::start_remote)
2837 (remote_target::remote_check_symbols, remote_target::open_1)
2838 (remote_target::remote_detach_1, remote_target::verify_memory)
2839 (remote_target::xfer_partial, remote_target::read_description)
2840 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2841 * record-full.c (record_full_open_1): Update.
2842 * record-btrace.c (record_btrace_target_open): Update.
2843 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2844 (value_nsstring): Update.
2845 * linux-thread-db.c (add_thread_db_info)
2846 (thread_db_find_new_threads_silently, check_thread_db_callback)
2847 (try_thread_db_load_1, record_thread): Update.
2848 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2849 Update.
2850 * linux-fork.c (checkpoint_command): Update.
2851 * infrun.c (set_non_stop, set_observer_mode)
2852 (check_multi_target_resumption, for_each_just_stopped_thread)
2853 (maybe_remove_breakpoints, normal_stop)
2854 (class infcall_suspend_state): Update.
2855 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2856 (info_program_command, attach_command): Update.
2857 * infcall.c (call_function_by_hand_dummy): Update.
2858 * inf-loop.c (inferior_event_handler): Update.
2859 * gcore.c (gcore_command, derive_heap_segment): Update.
2860 * exec.c (exec_file_command): Update.
2861 * eval.c (evaluate_subexp): Update.
2862 * compile/compile.c (compile_to_object): Update.
2863 * cli/cli-dump.c (restore_command): Update.
2864 * breakpoint.c (update_watchpoint)
2865 (update_inserted_breakpoint_locations)
2866 (insert_breakpoint_locations, get_bpstat_thread): Update.
2867 * target.h (target_has_execution): Remove macro.
2868 (target_has_execution_current): Don't declare.
2869 (target_has_execution): Rename from target_has_execution_1. Add
2870 argument default.
2871
2872 2020-09-28 Tom Tromey <tom@tromey.com>
2873
2874 * mi/mi-main.c (exec_reverse_continue)
2875 (mi_cmd_list_target_features): Update.
2876 * infrun.c (set_exec_direction_func): Update.
2877 * target.c (default_execution_direction): Update.
2878 * reverse.c (exec_reverse_once): Update.
2879 * target.h (target_can_execute_reverse): Now a function.
2880
2881 2020-09-28 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-regs.c (tui_get_register)
2884 (tui_data_window::show_registers): Update.
2885 * thread.c (scoped_restore_current_thread::restore)
2886 (scoped_restore_current_thread::scoped_restore_current_thread):
2887 Update.
2888 * regcache-dump.c (regcache_print): Update.
2889 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2890 Update.
2891 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2892 * mep-tdep.c (current_me_module, current_options): Update.
2893 * linux-thread-db.c (thread_db_load): Update.
2894 * infcmd.c (registers_info, info_vector_command)
2895 (info_float_command): Update.
2896 * ia64-tdep.c (ia64_frame_prev_register)
2897 (ia64_sigtramp_frame_prev_register): Update.
2898 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2899 * gcore.c (derive_stack_segment): Update.
2900 * frame.c (get_current_frame, has_stack_frames): Update.
2901 * findvar.c (language_defn::read_var_value): Update.
2902 * arm-tdep.c (arm_pc_is_thumb): Update.
2903 * target.c (target_has_registers): Rename from
2904 target_has_registers_1.
2905 * target.h (target_has_registers): Remove macro.
2906 (target_has_registers): Rename from target_has_registers_1.
2907
2908 2020-09-28 Tom Tromey <tom@tromey.com>
2909
2910 * windows-tdep.c (tlb_make_value): Update.
2911 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2912 * thread.c (scoped_restore_current_thread::restore)
2913 (scoped_restore_current_thread::scoped_restore_current_thread)
2914 (thread_command): Update.
2915 * stack.c (backtrace_command_1, frame_apply_level_command)
2916 (frame_apply_all_command, frame_apply_command): Update.
2917 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2918 Update.
2919 * gcore.c (derive_stack_segment): Update.
2920 * frame.c (get_current_frame, has_stack_frames): Update.
2921 * auxv.c (info_auxv_command): Update.
2922 * ada-tasks.c (ada_build_task_list): Update.
2923 * target.c (target_has_stack): Rename from target_has_stack_1.
2924 * target.h (target_has_stack): Remove macro.
2925 (target_has_stack): Rename from target_has_stack_1.
2926
2927 2020-09-28 Tom Tromey <tom@tromey.com>
2928
2929 * target.c (target_has_memory): Rename from target_has_memory_1.
2930 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2931 * thread.c (scoped_restore_current_thread::restore)
2932 (scoped_restore_current_thread::scoped_restore_current_thread):
2933 Update.
2934 * frame.c (get_current_frame, has_stack_frames): Update.
2935 * target.h (target_has_memory): Remove macro.
2936 (target_has_memory): Rename from target_has_memory_1.
2937
2938 2020-09-28 Tom Tromey <tom@tromey.com>
2939
2940 * target.c (target_has_all_memory_1): Remove.
2941 * target.h (target_has_all_memory): Remove define.
2942 (target_has_all_memory_1): Don't declare.
2943
2944 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * ser-base.c: Adjust comments formatting.
2947
2948 2020-09-27 Tom Tromey <tom@tromey.com>
2949
2950 PR tui/25342:
2951 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2952
2953 2020-09-27 Tom Tromey <tom@tromey.com>
2954
2955 PR tui/25342:
2956 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2957
2958 2020-09-27 Tom Tromey <tom@tromey.com>
2959
2960 * unittests/tui-selftests.c: Update.
2961 * tui/tui-winsource.h (struct tui_source_window_base)
2962 <extra_margin, show_line_number, refresh_pad>: New methods.
2963 <m_max_length, m_pad>: New members.
2964 (tui_copy_source_line): Update.
2965 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2966 first_col, line_width, ndigits parameters. Add length.
2967 (tui_source_window_base::show_source_line): Write to pad. Line
2968 number now 0-based.
2969 (tui_source_window_base::refresh_pad): New method.
2970 (tui_source_window_base::show_source_content): Write to pad. Call
2971 refresh_pad.
2972 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2973 not refill.
2974 (tui_source_window_base::update_exec_info): Call
2975 show_line_number.
2976 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2977 method.
2978 <m_digits>: New member.
2979 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2980 and m_max_length.
2981 (tui_source_window::show_line_number): New method.
2982 * tui/tui-io.h (tui_puts): Fix comment.
2983 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2984 m_max_length.
2985
2986 2020-09-27 Tom Tromey <tom@tromey.com>
2987
2988 * tui/tui-winsource.c
2989 (tui_source_window_base::set_is_exec_point_at): Don't call
2990 show_source_line.
2991
2992 2020-09-27 Tom Tromey <tom@tromey.com>
2993
2994 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2995 method.
2996 <erase>: Update.
2997 <cursor_x, cursor_y>: Remove.
2998 <m_inner_window>: New member.
2999 (tui_py_window::rerender): Create inner window.
3000 (tui_py_window::output): Write to inner window.
3001
3002 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3003
3004 PR python/26586
3005 * cli/cli-script.c (execute_control_commands): don't set
3006 instream to nullptr here as this breaks the from_tty argument
3007 to gdb.execute in Python.
3008 (execute_user_command): set instream to nullptr here instead.
3009
3010 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * infrun.h (infrun_debug_printf): Fix formatting.
3013 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3014
3015 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3016
3017 * compile/compile-object-load.h (struct munmap_list): Add
3018 explicitly-defined move constructor.
3019
3020 2020-09-24 Tom Tromey <tromey@adacore.com>
3021
3022 PR tui/26638:
3023 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3024 method.
3025 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3026 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3027 (tui_prev_win): Rewrite.
3028
3029 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3030
3031 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3032 in WOW64 processes as SIGINT.
3033 * nat/windows-nat.h: Make wow64_process a shared variable.
3034 * windows-nat.c: Remove static wow64_process variable.
3035
3036 2020-09-23 Tom Tromey <tom@tromey.com>
3037
3038 PR symtab/25470:
3039 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3040 offset and bit size.
3041 * printcmd.c (print_scalar_formatted): Handle zero-length
3042 integer.
3043 (print_scalar_formatted): Use bit_size_differs_p.
3044 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3045 constant.
3046 (union type_specific): <int_stuff>: New member.
3047 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3048 methods.
3049 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3050 TYPE_SPECIFIC_FIELD.
3051 (recursive_dump_type, copy_type_recursive): Update.
3052 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3053 DW_AT_data_bit_offset.
3054
3055 2020-09-23 Tom Tromey <tom@tromey.com>
3056
3057 * utils.h (class gdb_argv): Add move operators.
3058 <append>: New methods.
3059 * compile/compile.c (build_argc_argv): Remove.
3060 (compile_args_argc): Remove.
3061 (compile_args_argv): Change type.
3062 (set_compile_args): Simplify.
3063 (append_args): Remove.
3064 (filter_args): Remove argcp parameter.
3065 (get_args): Return gdb_argv. Simplify.
3066 (compile_to_object): Update.
3067
3068 2020-09-23 Tom Tromey <tom@tromey.com>
3069
3070 * compile/compile-object-run.c (do_module_cleanup)
3071 <~do_module_cleanup> :Remove.
3072 (do_module_cleanup): Update.
3073 * compile/compile-object-load.h (struct munmap_list): Add move
3074 assignment operator.
3075 <source_file>: Now a std::string.
3076 <munmap_list>: Rename. No longer a pointer.
3077 * compile/compile-object-load.c (struct setup_sections_data): Add
3078 constructor.
3079 <setup_one_section>: Declare.
3080 <munmap_list>: Move earlier.
3081 <m_bfd>: New member.
3082 <m_last_size, m_last_section_first, m_last_prot,
3083 m_last_max_alignment>: Rename, add initializers where needed.
3084 (setup_sections_data::setup_one_section): Rename from
3085 setup_sections. Update.
3086 (compile_object_load): Update. Don't use bfd_map_over_sections.
3087
3088 2020-09-23 Tom Tromey <tom@tromey.com>
3089
3090 * compile/compile-object-run.c (struct do_module_cleanup): Add
3091 parameters to constructor. Update destructor.
3092 <source_file, scope, scope_data, out_value_type, out_value_addr,
3093 munmap_list_head, objfile_name_string>: Remove.
3094 <module>: New member.
3095 (do_module_cleanup): Update.
3096 (compile_object_run): Update.
3097
3098 2020-09-23 Tom Tromey <tom@tromey.com>
3099
3100 * compile/compile.c (eval_compile_command): Update.
3101 * compile/compile-object-run.h (compile_object_run): Take a
3102 compile_module_up.
3103 * compile/compile-object-run.c (compile_object_run): Take a
3104 compile_module_up.
3105 * compile/compile-object-load.h (struct compile_module): Add
3106 constructor, destructor.
3107 (compile_module_up): New typedef.
3108 (compile_object_load): Return compile_object_up.
3109 * compile/compile-object-load.c (compile_object_load): Return
3110 compile_module_up.
3111
3112 2020-09-23 Tom Tromey <tom@tromey.com>
3113
3114 * compile/compile-object-run.c (struct do_module_cleanup): Add
3115 constructor, destructor.
3116 <objfile_name_string>: Don't use struct hack.
3117 (do_module_cleanup): Use delete.
3118 (compile_object_run): Use new.
3119
3120 2020-09-23 Tom Tromey <tom@tromey.com>
3121
3122 * compile/compile-cplus-types.c
3123 (compile_cplus_convert_struct_or_union): Use std::vector.
3124 (compile_cplus_convert_func): Likewise.
3125 * compile/compile-c-types.c (convert_func): Use std::vector.
3126
3127 2020-09-21 Tom Tromey <tromey@adacore.com>
3128
3129 * sparc-tdep.c (sparc32_skip_prologue): Use
3130 skip_prologue_using_sal.
3131
3132 2020-09-19 Tom Tromey <tom@tromey.com>
3133
3134 * symfile.c (add_section_size_callback): Remove.
3135 (load_one_section): Rename from load_section_callback. Change
3136 parameters.
3137 (generic_load): Use foreach.
3138
3139 2020-09-19 Tom Tromey <tom@tromey.com>
3140
3141 * exec.c (add_to_section_table): Remove.
3142 (build_section_table): Use foreach.
3143
3144 2020-09-19 Tom Tromey <tom@tromey.com>
3145
3146 * elfread.c (elf_locate_sections): Change parameters.
3147 (elf_symfile_read): Use foreach.
3148
3149 2020-09-19 Tom Tromey <tom@tromey.com>
3150
3151 * cli/cli-dump.c (struct callback_data): Remove.
3152 (restore_one_section): Rename from restore_section_callback.
3153 Change parameters.
3154 (restore_binary_file): Change parameters.
3155 (restore_command): Use foreach.
3156
3157 2020-09-19 Tom Tromey <tom@tromey.com>
3158
3159 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3160 (gcore_copy_callback): Likewise.
3161 (gcore_memory_sections): Use foreach.
3162
3163 2020-09-19 Tom Tromey <tom@tromey.com>
3164
3165 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3166 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3167 parameters.
3168 (generic_elf_osabi_sniffer): Use foreach.
3169 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3170 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3171
3172 2020-09-19 Tom Tromey <tom@tromey.com>
3173
3174 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3175 (dwarf2_get_dwz_file): Use foreach.
3176 (dwarf2_locate_dwo_sections): Change parameters.
3177 (open_and_init_dwo_file): Use foreach.
3178 (dwarf2_locate_common_dwp_sections): Change parameters.
3179 (open_and_init_dwp_file): Use foreach.
3180
3181 2020-09-19 Tom Tromey <tom@tromey.com>
3182
3183 * symfile.h: (find_lowest_section): Don't declare.
3184 * symfile.c (find_lowest_section): Now static. Change
3185 parameters.
3186 (struct place_section_arg): Remove.
3187 (place_section): Change parameters.
3188 (addr_info_make_relative): Use foreach.
3189 (symfile_dummy_outputs): Remove.
3190 (default_symfile_relocate): Use foreach.
3191
3192 2020-09-19 Tom Tromey <tom@tromey.com>
3193
3194 * objfiles.c (add_to_objfile_sections): Rename from
3195 add_to_objfile_sections_full.
3196 (add_to_objfile_sections): Remove.
3197 (build_objfile_section_table): Use foreach.
3198
3199 2020-09-19 Tom Tromey <tom@tromey.com>
3200
3201 * stap-probe.c (get_stap_base_address_1): Remove.
3202 (get_stap_base_address): Use foreach.
3203
3204 2020-09-19 Tom Tromey <tom@tromey.com>
3205
3206 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3207 parameters.
3208 (gdb_bfd_close_or_warn): Use foreach.
3209
3210 2020-09-19 Tom Tromey <tom@tromey.com>
3211
3212 * corelow.c (add_to_thread_list): Change parameters.
3213 (core_target_open): Use foreach.
3214
3215 2020-09-19 Tom Tromey <tom@tromey.com>
3216
3217 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3218 existing function.
3219
3220 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3221
3222 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3223 for arrays.
3224
3225 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3226
3227 * eval.c: Remove 'f-lang.h' include.
3228 (value_f90_subarray): Moved to f-lang.c.
3229 (eval_call): Renamed to...
3230 (evaluate_subexp_do_call): ...this, is no longer static, header
3231 comment moved into header file.
3232 (evaluate_funcall): Update call to eval_call.
3233 (skip_undetermined_arglist): Moved to f-lang.c.
3234 (fortran_value_subarray): Likewise.
3235 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3236 moved to evaluate_subexp_f.
3237 (calc_f77_array_dims): Moved to f-lang.c
3238 * expprint.c (print_subexp_funcall): New function.
3239 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3240 moved to print_subexp_f, OP_FUNCALL uses new function.
3241 (dump_subexp_body_funcall): New function.
3242 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3243 moved to dump_subexp_f, OP_FUNCALL uses new function.
3244 * expression.h (evaluate_subexp_do_call): Declare.
3245 * f-lang.c (value_f90_subarray): Moved from eval.c.
3246 (skip_undetermined_arglist): Likewise.
3247 (calc_f77_array_dims): Likewise.
3248 (fortran_value_subarray): Likewise.
3249 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3250 (operator_length_f): Likewise.
3251 (print_subexp_f): Likewise.
3252 (dump_subexp_body_f): Likewise.
3253 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3254 declaration of this operation to here.
3255 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3256 support moved to operator_length_f.
3257 * parser-defs.h (dump_subexp_body_funcall): Declare.
3258 (print_subexp_funcall): Declare.
3259 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3260 fortran-operator.def.
3261
3262 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3263
3264 * eval.c (fortran_value_subarray): New function, content is taken
3265 from...
3266 (evaluate_subexp_standard): ...here, in two places. Now arrays
3267 and strings both call the new function.
3268 (calc_f77_array_dims): Add header comment, handle strings.
3269
3270 2020-09-18 Victor Collod <vcollod@nvidia.com>
3271
3272 PR gdb/26635
3273 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3274 (i386_analyze_prologue): Call i386_skip_endbr.
3275
3276 2020-09-18 Tom Tromey <tromey@adacore.com>
3277
3278 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3279 (windows_nat_target::wait): Update.
3280 * target/wait.h (enum target_wait_flag): New. Use
3281 DEF_ENUM_FLAGS_TYPE.
3282 * target/target.h (target_wait): Change type of options.
3283 * target.h (target_options_to_string, default_target_wait):
3284 Update.
3285 (struct target_ops) <wait>: Change type of options.
3286 * target.c (target_wait, default_target_wait, do_option): Change
3287 type of "options".
3288 (target_options_to_string): Likewise.
3289 * target-delegates.c: Rebuild.
3290 * target-debug.h (target_debug_print_target_wait_flags): Rename
3291 from target_debug_print_options.
3292 * sol-thread.c (class sol_thread_target) <wait>: Update.
3293 (sol_thread_target::wait): Update.
3294 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3295 (rs6000_nat_target::wait): Update.
3296 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3297 Update.
3298 (remote_target::wait_ns, remote_target::wait_as): Change type of
3299 "options".
3300 (remote_target::wait): Update.
3301 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3302 (gdbsim_target::wait): Update.
3303 * record-full.c (class record_full_base_target) <wait>: Update.
3304 (record_full_wait_1): Change type of "options".
3305 (record_full_base_target::wait): Update.
3306 * record-btrace.c (class record_btrace_target) <wait>: Update.
3307 (record_btrace_target::wait): Update.
3308 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3309 Update.
3310 (ravenscar_thread_target::wait): Update.
3311 * procfs.c (class procfs_target) <wait>: Update.
3312 (procfs_target::wait): Update.
3313 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3314 * obsd-nat.c (obsd_nat_target::wait): Update.
3315 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3316 (nto_procfs_target::wait): Update.
3317 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3318 * nbsd-nat.c (nbsd_wait): Change type of "options".
3319 (nbsd_nat_target::wait): Update.
3320 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3321 (thread_db_target::wait): Update.
3322 * linux-nat.h (class linux_nat_target) <wait>: Update.
3323 * linux-nat.c (linux_nat_target::wait): Update.
3324 (linux_nat_wait_1): Update.
3325 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3326 "options".
3327 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3328 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3329 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3330 (go32_nat_target::wait): Update.
3331 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3332 * gnu-nat.c (gnu_nat_target::wait): Update.
3333 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3334 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3335 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3336 * darwin-nat.c (darwin_nat_target::wait): Update.
3337 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3338 (bsd_uthread_target::wait): Update.
3339 * aix-thread.c (class aix_thread_target) <wait>: Update.
3340 (aix_thread_target::wait): Update.
3341
3342 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * compile/compile-object-run.c (create_copied_type_recursive): New
3345 function.
3346 (compile_object_run): Use new function.
3347
3348 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3349
3350 * NEWS: Mention x86_64 Cygwin core file support.
3351
3352 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3353
3354 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3355 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3356
3357 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3358
3359 * windows-tdep.h: Add prototypes.
3360 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3361 (i386_windows_core_pid_to_str): Move and rename ...
3362 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3363 (windows_core_pid_to_str): ... and here.
3364 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3365
3366 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3367 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3368 (amd64_windows_init_abi_common): ... and register.
3369
3370 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3371
3372 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3373 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3374
3375 2020-09-18 Pedro Alves <pedro@palves.net>
3376
3377 PR gdb/26631
3378 * thread.c (thread_find_command): Switch inferior before calling
3379 target methods.
3380
3381 2020-09-17 Tom Tromey <tromey@adacore.com>
3382
3383 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3384 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3385 (tdesc_arch_data_up): New typedef.
3386 (tdesc_use_registers, tdesc_data_alloc): Update.
3387 (tdesc_data_cleanup): Don't declare.
3388 * target-descriptions.c (tdesc_data_alloc): Return a
3389 tdesc_arch_data_up.
3390 (tdesc_arch_data_deleter::operator()): Rename from
3391 tdesc_data_cleanup. Change argument type.
3392 (tdesc_use_registers): Change early_data to an rvalue reference.
3393 (tdesc_use_registers): Don't use delete.
3394 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3395 * s390-tdep.c (s390_gdbarch_init): Update.
3396 * rx-tdep.c (rx_gdbarch_init): Update.
3397 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3398 * riscv-tdep.c (riscv_gdbarch_init): Update.
3399 * or1k-tdep.c (or1k_gdbarch_init): Update.
3400 * nios2-tdep.c (nios2_gdbarch_init): Update.
3401 * nds32-tdep.c (nds32_gdbarch_init): Update.
3402 * mips-tdep.c (mips_gdbarch_init): Update.
3403 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3404 * m68k-tdep.c (m68k_gdbarch_init): Update.
3405 * i386-tdep.c (i386_gdbarch_init): Update.
3406 * arm-tdep.c (arm_gdbarch_init): Update.
3407 * arc-tdep.c (arc_tdesc_init): Update.
3408 (arc_gdbarch_init): Update.
3409 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3410
3411 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3412
3413 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3414 for WOW64 processes.
3415
3416 2020-09-17 Tom Tromey <tom@tromey.com>
3417
3418 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3419
3420 2020-09-17 Tom Tromey <tom@tromey.com>
3421
3422 * value.c (preserve_values): Update.
3423 * python/py-type.c (save_objfile_types): Update.
3424 * guile/scm-type.c (save_objfile_types): Update.
3425 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3426 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3427 * compile/compile-object-run.c (compile_object_run): Update.
3428
3429 2020-09-17 Tom Tromey <tom@tromey.com>
3430
3431 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3432 Remove.
3433 <m_table>: Now htab_up.
3434 * typeprint.c (typedef_hash_table::recursively_update)
3435 (typedef_hash_table::add_template_parameters)
3436 (typedef_hash_table::typedef_hash_table): Update.
3437 (typedef_hash_table::~typedef_hash_table): Remove.
3438 (typedef_hash_table::typedef_hash_table)
3439 (typedef_hash_table::find_global_typedef)
3440 (typedef_hash_table::find_typedef): Update.
3441
3442 2020-09-17 Tom Tromey <tom@tromey.com>
3443
3444 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3445
3446 2020-09-17 Tom Tromey <tom@tromey.com>
3447
3448 * linespec.c (class decode_compound_collector)
3449 <~decode_compound_collector>: Remove.
3450 <m_unique_syms>: Now htab_up.
3451 (decode_compound_collector::operator ()): Update.
3452 (class symtab_collector) <~symtab_collector>: Remove.
3453 <m_symtab_table>: Now htab_up.
3454 (symtab_collector::operator ()): Update.
3455
3456 2020-09-17 Tom Tromey <tom@tromey.com>
3457
3458 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3459 (filename_seen_cache::clear): Update.
3460 (~filename_seen_cache): Remove.
3461 (filename_seen_cache::seen): Update.
3462 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3463 htab_up.
3464 <~filename_seen_cache>: Remove.
3465 <traverse>: Update.
3466
3467 2020-09-17 Tom Tromey <tom@tromey.com>
3468
3469 * completer.c (completion_tracker::discard_completions)
3470 (completion_tracker::~completion_tracker)
3471 (completion_tracker::maybe_add_completion)
3472 (completion_tracker::remove_completion)
3473 (completion_tracker::recompute_lowest_common_denominator)
3474 (completion_tracker::build_completion_result): Update.
3475 * completer.h (class completion_tracker) <have_completions>:
3476 Update.
3477 <m_entries_hash>: Now htab_up.
3478
3479 2020-09-17 Tom Tromey <tom@tromey.com>
3480
3481 * breakpoint.c (ambiguous_names_p): Use htab_up.
3482
3483 2020-09-17 Tom Tromey <tom@tromey.com>
3484
3485 * auto-load.c (struct auto_load_pspace_info)
3486 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3487 <loaded_script_files, loaded_script_texts>: Change type to
3488 htab_up.
3489 (~auto_load_pspace_info) Remove.
3490 (init_loaded_scripts_info, maybe_add_script_file)
3491 (maybe_add_script_text, auto_load_info_scripts): Update.
3492
3493 2020-09-17 Tom Tromey <tromey@adacore.com>
3494
3495 * c-exp.y (name_obstack): Now static.
3496
3497 2020-09-17 Chungyi Chi <demonic@csie.io>
3498
3499 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3500
3501 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3504 (add_solib_catchpoint): Likewise.
3505 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3506 to bool.
3507 (add_solib_catchpoint): Change int parameter/variable to bool.
3508 (catch_load_or_unload): Likewise.
3509 (init_catchpoint): Likewise.
3510 (create_fork_vfork_event_catchpoint): Likewise.
3511 (catch_fork_command_1): Likewise.
3512 (catch_exec_command_1): Likewise.
3513
3514 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3517 Change instance_flags to m_instance_flags.
3518
3519 2020-09-16 Tom Tromey <tromey@adacore.com>
3520
3521 PR gdb/26598:
3522 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3523
3524 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3525
3526 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3527 PL_FLAG_EXEC.
3528 (fbsd_nat_target::insert_exec_catchpoint)
3529 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3530 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3531 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3532
3533 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3534
3535 * configure.ac: Remove check for kinfo_getvmmap().
3536 * configure, config.in: Regenerate.
3537 * fbsd-nat.c (fbsd_read_mapping): Remove
3538 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3539 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3540 kinfo_get_vmmap() are always present.
3541
3542 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3543
3544 * fbsd-nat.c: Always include support for
3545 TARGET_OBJECT_SIGNAL_INFO.
3546
3547 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3548
3549 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3550 sysctl and remove procfs fallback.
3551
3552 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3553
3554 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3555 * fbsd-nat.h: Likewise.
3556
3557 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3558
3559 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3560 argument.
3561
3562 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * ada-lang.c (ada_language_data): Delete.
3565 (ada_language): Remove references to ada_language_data.
3566 * c-lang.c (c_language_data): Delete.
3567 (c_language): Remove references to c_language_data.
3568 (cplus_language_data): Delete.
3569 (cplus_language): Remove references to cplus_language_data.
3570 (asm_language_data): Delete.
3571 (asm_language): Remove references to asm_language_data.
3572 (minimal_language_data): Delete.
3573 (minimal_language): Remove references to minimal_language_data.
3574 * d-lang.c (d_language_data): Delete.
3575 (d_language): Remove references to d_language_data.
3576 * f-lang.c (f_language_data): Delete.
3577 (f_language): Remove references to f_language_data.
3578 * go-lang.c (go_language_data): Delete.
3579 (go_language): Remove references to go_language_data.
3580 * language.c (unknown_language_data): Delete.
3581 (unknown_language): Remove references to unknown_language_data.
3582 (auto_language_data): Delete.
3583 (auto_language): Remove references to auto_language_data.
3584 * language.h (language_data): Delete struct.
3585 (language_defn): No longer inherit from language_data.
3586 * m2-lang.c (m2_language_data): Delete.
3587 (m2_language): Remove references to m2_language_data.
3588 * objc-lang.c (objc_language_data): Delete.
3589 (objc_language): Remove references to objc_language_data.
3590 * opencl-lang.c (opencl_language_data): Delete.
3591 (opencl_language): Remove references to opencl_language_data.
3592 * p-lang.c (pascal_language_data): Delete.
3593 (pascal_language): Remove references to pascal_language_data.
3594 * rust-lang.c (rust_language_data): Delete.
3595 (rust_language): Remove references to rust_language_data.
3596
3597 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3598
3599 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3600 initializer.
3601 (ada_language::opcode_print_table): New member function.
3602 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3603 (c_language::opcode_print_table): New member function.
3604 (cplus_language_data): Remove la_op_print_tab initializer.
3605 (cplus_language::opcode_print_table): New member function.
3606 (asm_language_data): Remove la_op_print_tab initializer.
3607 (asm_language::opcode_print_table): New member function.
3608 (minimal_language_data): Remove la_op_print_tab initializer.
3609 (minimal_language::opcode_print_table): New member function.
3610 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3611 (d_language::opcode_print_table): New member function.
3612 * expprint.c (print_subexp_standard): Update call to
3613 opcode_print_table.
3614 (op_string): Likewise.
3615 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3616 (f_language::opcode_print_table): New member function.
3617 * go-lang.c (go_language_data): Remove la_op_print_tab
3618 initializer.
3619 (go_language::opcode_print_table): New member function.
3620 * language.c (unknown_language_data): Remove la_op_print_tab
3621 initializer.
3622 (unknown_language::opcode_print_table): New member function.
3623 (auto_language_data): Remove la_op_print_tab initializer.
3624 (auto_language::opcode_print_table): New member function.
3625 * language.h (language_data): Remove la_op_print_tab field.
3626 (language_defn::opcode_print_table): Declare new member function.
3627 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3628 initializer.
3629 (m2_language::opcode_print_table): New member function.
3630 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3631 initializer.
3632 (objc_language::opcode_print_table): New member function.
3633 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3634 initializer.
3635 (opencl_language::opcode_print_table): New member function.
3636 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3637 initializer.
3638 (pascal_language::opcode_print_table): New member function.
3639 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3640 initializer.
3641 (rust_language::opcode_print_table): New member function.
3642
3643 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3646 (ada_language::expression_ops): New member function.
3647 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3648 (c_language::expression_ops): New member function.
3649 (cplus_language_data): Remove la_exp_desc initializer.
3650 (cplus_language::expression_ops): New member function.
3651 (asm_language_data): Remove la_exp_desc initializer.
3652 (asm_language::expression_ops): New member function.
3653 (minimal_language_data): Remove la_exp_desc initializer.
3654 (minimal_language::expression_ops): New member function.
3655 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3656 (d_language::expression_ops): New member function.
3657 * eval.c (evaluate_subexp): Update call to expression_ops.
3658 * expprint.c (print_subexp): Likewise.
3659 (op_name): Likewise.
3660 (dump_subexp_body): Likewise.
3661 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3662 (f_language::expression_ops): New member function.
3663 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3664 (go_language::expression_ops): New member function.
3665 * language.c (language_defn::expression_ops): New function.
3666 (unknown_language_data): Remove la_exp_desc initializer.
3667 (auto_language_data): Likewise.
3668 * language.h (language_data): Remove la_exp_desc field.
3669 (language_defn::expression_ops): Declare new member function.
3670 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3671 (m2_language::expression_ops): New member function.
3672 * objc-lang.c (objc_language_data): Remove la_exp_desc
3673 initializer.
3674 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3675 initializer.
3676 (opencl_language::expression_ops): New member function.
3677 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3678 * parse.c (operator_length): Update call to expression_ops.
3679 (exp_iterate): Likewise.
3680 * rust-lang.c (rust_language_data): Remove la_exp_desc
3681 initializer.
3682 (ruse_language::expression_ops): New member function.
3683
3684 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3687 initializer.
3688 (ada_language::varobj_ops): New member function.
3689 * c-lang.c (c_language_data): Remove la_varobj_ops
3690 initializer.
3691 (cplus_language_data): Likewise.
3692 (cplus_language::varobj_ops): New member function.
3693 (asm_language_data): Remove la_varobj_ops initializer.
3694 (minimal_language_data): Likewise.
3695 * d-lang.c (d_language_data): Likewise.
3696 * f-lang.c (f_language_data): Likewise.
3697 * go-lang.c (go_language_data): Likewise.
3698 * language.c (language_defn::varobj_ops): New function.
3699 (unknown_language_data): Remove la_varobj_ops
3700 initializer.
3701 (auto_language_data): Likewise.
3702 * language.h (language_data): Remove la_varobj_ops field.
3703 (language_defn::varobj_ops): Declare new member function.
3704 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3705 * objc-lang.c (objc_language_data): Likewise.
3706 * opencl-lang.c (opencl_language_data): Likewise.
3707 * p-lang.c (pascal_language_data): Likewise.
3708 * rust-lang.c (rust_language_data): Likewise.
3709 * varobj.c (varobj_create): Update call to varobj_ops.
3710 * varobj.h (default_varobj_ops): Delete define.
3711
3712 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3715 initializer.
3716 * c-lang.c (c_language_data): Likewise.
3717 (c_language::macro_expansion): New member function.
3718 (cplus_language_data): Likewise.
3719 (cplus_language::macro_expansion): New member function.
3720 (asm_language_data): Likewise.
3721 (asm_language::macro_expansion): New member function.
3722 (minimal_language_data): Likewise.
3723 (minimal_language::macro_expansion): New member function.
3724 * d-lang.c (d_language_data): Remove la_macro_expansion
3725 initializer.
3726 * f-lang.c (f_language_data): Likewise.
3727 * go-lang.c (go_language_data): Likewise.
3728 * language.c (unknown_language_data): Likewise.
3729 (auto_language_data): Likewise.
3730 * language.h (language_data): Remove la_macro_expansion field.
3731 (language_defn::macro_expansion): New member function.
3732 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3733 initializer.
3734 * objc-lang.c (objc_language_data): Likewise.
3735 (objc_language::macro_expansion): New member function.
3736 * opencl-lang.c (opencl_language_data): Likewise.
3737 (opencl_language::macro_expansion): New member function.
3738 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3739 initializer.
3740 * rust-lang.c (rust_language_data): Likewise.
3741 * symtab.c (default_collect_symbol_completion_matches_break_on):
3742 Update call to macro_expansion.
3743
3744 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * ada-lang.c (ada_language_data): Remove la_array_ordering
3747 initializer.
3748 * c-lang.c (c_language_data): Likewise.
3749 (cplus_language_data): Likewise.
3750 (asm_language_data): Likewise.
3751 (minimal_language_data): Likewise.
3752 * d-lang.c (d_language_data): Likewise.
3753 * dwarf2/read.c (read_array_order): Update for call to
3754 array_ordering.
3755 * f-lang.c (f_language_data): Remove la_array_ordering
3756 initializer.
3757 (f_language::array_ordering): New member function.
3758 * go-lang.c (go_language_data): Remove la_array_ordering
3759 initializer.
3760 * language.c (unknown_language_data): Likewise.
3761 (auto_language_data): Likewise.
3762 * language.h (language_data): Delete la_array_ordering field.
3763 (language_defn::array_ordering): New member function.
3764 * m2-lang.c (m2_language_data): Remove la_array_ordering
3765 initializer.
3766 * objc-lang.c (objc_language_data): Likewise.
3767 * opencl-lang.c (opencl_language_data): Likewise.
3768 * p-lang.c (pascal_language_data): Likewise.
3769 * rust-lang.c (rust_language_data): Likewise.
3770
3771 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3774 initializer.
3775 * c-lang.c (c_language_data): Likewise.
3776 (cplus_language_data): Likewise.
3777 (asm_language_data): Likewise.
3778 (minimal_language_data): Likewise.
3779 * d-lang.c (d_language_data): Likewise.
3780 * f-lang.c (f_language_data): Likewise.
3781 (f_language::case_sensitivity): New member function.
3782 * go-lang.c (go_language_data): Remove la_case_sensitivity
3783 initializer.
3784 * language.c (enum case_mode): Moved here from language.h.
3785 (case_mode): Make static.
3786 (show_case_command): Update for case_sensitivity being a method.
3787 (set_case_command): Likewise.
3788 (set_range_case): Likewise.
3789 (unknown_language_data): Remove la_case_sensitivity initializer.
3790 (auto_language_data): Likewise.
3791 * language.h (case_mode): Delete, move enum declaration to
3792 language.c.
3793 (language_data): Delete la_case_sensitivity field.
3794 (language_defn::case_sensitivity): New member function.
3795 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3796 initializer.
3797 * objc-lang.c (objc_language_data): Likewise.
3798 * opencl-lang.c (opencl_language_data): Likewise.
3799 * p-lang.c (pascal_language_data): Likewise.
3800 * rust-lang.c (rust_language_data): Likewise.
3801
3802 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * ada-lang.c (ada_language_data): Remove la_range_check
3805 initializer.
3806 * c-lang.c (c_language_data): Likewise.
3807 (cplus_language_data): Likewise.
3808 (asm_language_data): Likewise.
3809 (minimal_language_data): Likewise.
3810 * d-lang.c (d_language_data): Likewise.
3811 * f-lang.c (f_language_data): Likewise.
3812 (f_language::range_checking_on_by_default): New member function.
3813 * go-lang.c (go_language_data): Remove la_range_check initializer.
3814 * language.c (enum range_mode): Moved here from language.h.
3815 (range_mode): Made static.
3816 (show_range_command): Update to use
3817 range_checking_on_by_default.
3818 (set_range_command): Likewise.
3819 (set_range_case): Likewise.
3820 (unknown_language_data): Remove la_range_check initializer.
3821 (auto_language_data): Likewise.
3822 * language.h (range_mode): Delete. Enum definition moved to
3823 language.c.
3824 (language_data): Remove la_range_check field.
3825 (language_defn::range_checking_on_by_default): New member
3826 function.
3827 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3828 (m2_language::range_checking_on_by_default): New member function.
3829 * objc-lang.c (objc_language_data): Remove la_range_check
3830 initializer.
3831 * opencl-lang.c (opencl_language_data): Likewise.
3832 * p-lang.c (pascal_language_data): Likewise.
3833 (pascal_language::range_checking_on_by_default): New member
3834 function.
3835 * rust-lang.c (rust_language_data): Remove la_range_check
3836 initializer.
3837 (rust_language::range_checking_on_by_default): New member
3838 function.
3839
3840 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * dwarf2/read.c (dwarf2_physname): Remove special case for
3843 language_go.
3844 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3845 member function.
3846
3847 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3848
3849 * ada-lang.c (ada_language_data): Remove
3850 la_store_sym_names_in_linkage_form_p initializer.
3851 (ada_language::store_sym_names_in_linkage_form_p): New member
3852 function.
3853 * c-lang.c (c_language_data): Remove
3854 la_store_sym_names_in_linkage_form_p initializer.
3855 (c_language::store_sym_names_in_linkage_form_p): New member
3856 function.
3857 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3858 initializer.
3859 (asm_language_data): Likewise.
3860 (asm_language::store_sym_names_in_linkage_form_p): New member
3861 function.
3862 (minimal_language_data): Remove
3863 la_store_sym_names_in_linkage_form_p initializer.
3864 (minimal_language::store_sym_names_in_linkage_form_p): New member
3865 function.
3866 * d-lang.c (d_language_data): Remove
3867 la_store_sym_names_in_linkage_form_p initializer.
3868 * dwarf2/read.c (dwarf2_physname): Update call to
3869 store_sym_names_in_linkage_form_p.
3870 * f-lang.c (f_language_data): Remove
3871 la_store_sym_names_in_linkage_form_p initializer.
3872 * go-lang.c (go_language_data): Remove
3873 la_store_sym_names_in_linkage_form_p initializer.
3874 * language.c (unknown_language_data): Remove
3875 la_store_sym_names_in_linkage_form_p initializer.
3876 (unknown_language::store_sym_names_in_linkage_form_p): New member
3877 function.
3878 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3879 initializer.
3880 (auto_language::store_sym_names_in_linkage_form_p): New member
3881 function.
3882 * language.h (language_data): Remove
3883 la_store_sym_names_in_linkage_form_p member variable.
3884 (language_defn::store_sym_names_in_linkage_form_p): New member
3885 function.
3886 * m2-lang.c (m2_language_data): Remove
3887 la_store_sym_names_in_linkage_form_p initializer.
3888 * objc-lang.c (objc_language_data): Likewise.
3889 * opencl-lang.c (opencl_language_data): Likewise.
3890 * p-lang.c (pascal_language_data): Likewise.
3891 * rust-lang.c (rust_language_data): Likewise.
3892
3893 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * ada-lang.c (ada_language_data): Remove string_lower_bound
3896 initializer.
3897 * c-lang.c (c_language_data): Likewise.
3898 (cplus_language_data): Likewise.
3899 (asm_language_data): Likewise.
3900 (minimal_language_data): Likewise.
3901 * d-lang.c (d_language_data): Likewise.
3902 * f-lang.c (f_language_data): Likewise.
3903 * go-lang.c (go_language_data): Likewise.
3904 * language.c (unknown_language_data): Likewise.
3905 (auto_language_data): Likewise.
3906 * language.h (language_data): Remove string_lower_bound field.
3907 (language_defn::string_lower_bound): New member function.
3908 * m2-lang.c (m2_language_data): Remove string_lower_bound
3909 initializer.
3910 (m2_language::string_lower_bound): New member function.
3911 * objc-lang.c (objc_language_data): Remove string_lower_bound
3912 initializer.
3913 * opencl-lang.c (opencl_language_data): Likewise.
3914 * p-lang.c (pascal_language_data): Likewise.
3915 * rust-lang.c (rust_language_data): Likewise.
3916 * valops.c (value_cstring): Update call to string_lower_bound.
3917 (value_string): Likewise.
3918 * value.c (allocate_repeated_value): Likewise.
3919
3920 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * valops.c (value_repeat): Fix incorrect argument name in comment.
3923
3924 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * ada-lang.c (ada_language_data): Remove c_style_arrays
3927 initializer.
3928 (ada_language::c_style_arrays_p): New member fuction.
3929 * c-lang.c (c_language_data): Remove c_style_arrays
3930 initializer.
3931 (cplus_language_data): Likewise.
3932 (asm_language_data): Likewise.
3933 (minimal_language_data): Likewise.
3934 * d-lang.c (d_language_data): Likewise.
3935 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3936 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3937 (f_language::c_style_arrays_p): New member function.
3938 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3939 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3940 * language.c (unknown_language_data): Remove c_style_arrays
3941 initializer.
3942 (auto_language_data): Likewise.
3943 * language.h (language_data): Remove c_style_arrays field.
3944 (language_defn::c_style_arrays_p): New member function.
3945 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3946 (m2_language::c_style_arrays_p): New member function.
3947 * objc-lang.c (objc_language_data): Remove c_style_arrays
3948 initializer.
3949 * opencl-lang.c (opencl_language_data): Likewise.
3950 * p-lang.c (pascal_language_data): Likewise.
3951 * rust-lang.c (rust_language_data): Likewise.
3952 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3953 and update local variable to a bool.
3954 * valops.c (value_cast): Update call to c_style_arrays_p.
3955 (value_array): Likewise.
3956 * value.c (coerce_array): Likewise.
3957
3958 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * ada-lang.c (ada_language_data): Remove la_language initializer.
3961 * c-lang.c (c_language_data): Likewise.
3962 (cplus_language_data): Likewise.
3963 (asm_language_data): Likewise.
3964 (minimal_language_data): Likewise.
3965 * d-lang.c (d_language_data): Likewise.
3966 * f-lang.c (f_language_data): Likewise.
3967 * go-lang.c (go_language_data): Likewise.
3968 * language.c (unknown_language_data): Likewise.
3969 (auto_language_data): Likewise.
3970 * language.h (language_data): Remove la_language field.
3971 (language_defn::language_defn): Initialise la_language field.
3972 (language_defn::la_language): New member variable.
3973 * m2-lang.c (m2_language_data): Remove la_language field.
3974 * objc-lang.c (objc_language_data): Likewise.
3975 * opencl-lang.c (opencl_language_data): Likewise.
3976 * p-lang.c (pascal_language_data): Likewise.
3977 * rust-lang.c (rust_language_data): Likewise.
3978
3979 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3980
3981 * ada-lang.c (ada_extensions): Delete, moved into
3982 ada_language::filename_extensions.
3983 (ada_language_data): Remove la_filename_extensions initializer.
3984 (ada_language::filename_extensions): New member function.
3985 * c-lang.c (c_extensions): Delete, moved into
3986 c_language::filename_extensions.
3987 (c_language_data): Remove la_filename_extensions initializer.
3988 (c_language::filename_extensions): New member function.
3989 (cplus_extensions): Delete, moved into
3990 cplus_language::filename_extensions.
3991 (cplus_language_data): Remove la_filename_extensions initializer.
3992 (cplus_language::filename_extensions): New member function.
3993 (asm_extensions): Delete, moved into
3994 asm_language::filename_extensions.
3995 (asm_language_data): Remove la_filename_extensions initializer.
3996 (asm_language::filename_extensions): New member function.
3997 (minimal_language_data): Remove la_filename_extensions
3998 initializer.
3999 * d-lang.c (d_extensions): Delete, moved into
4000 d_language::filename_extensions.
4001 (d_language_data): Remove la_filename_extensions initializer.
4002 (d_language::filename_extensions): New member function.
4003 * f-lang.c (f_extensions): Delete, moved into
4004 f_language::filename_extensions.
4005 (f_language_data): Remove la_filename_extensions initializer.
4006 (f_language::filename_extensions): New member function.
4007 * go-lang.c (go_language_data): Remove la_filename_extensions
4008 initializer.
4009 * language.c (add_set_language_command): Update now that
4010 filename_extensions returns a vector.
4011 (unknown_language_data): Remove la_filename_extensions
4012 initializer.
4013 (auto_language_data): Likewise.
4014 * language.h (language_data): Remove la_filename_extensions field.
4015 (language_defn::filename_extensions): New member function.
4016 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4017 initializer.
4018 * objc-lang.c (objc_extensions): Delete, moved into
4019 objc_language::filename_extensions.
4020 (objc_language_data): Remove la_filename_extensions initializer.
4021 (objc_language::filename_extensions): New member function.
4022 * opencl-lang.c (opencl_language_data): Remove
4023 la_filename_extensions initializer.
4024 * p-lang.c (pascal_extensions): Delete, moved into
4025 pascal_language::filename_extensions.
4026 (pascal_language_data): Remove la_filename_extensions initializer.
4027 (pascal_language::filename_extensions): New member function.
4028 * rust-lang.c (rust_extensions): Delete, moved into
4029 rust_language::filename_extensions.
4030 (rust_language_data): Remove la_filename_extensions initializer.
4031 (rust_language::filename_extensions): New member function.
4032 * symfile.c (add_filename_language): Add new assert.
4033
4034 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 * ada-lang.c (ada_language_data): Remove la_name and
4037 la_natural_name initializers.
4038 (ada_language::name): New member function.
4039 (ada_language::natural_name): New member function.
4040 * c-lang.c (c_language_data): Remove la_name and
4041 la_natural_name initializers.
4042 (c_language::name): New member function.
4043 (c_language::natural_name): New member function.
4044 (cplus_language_data): Remove la_name and
4045 la_natural_name initializers.
4046 (cplus_language::name): New member function.
4047 (cplus_language::natural_name): New member function.
4048 (asm_language_data): Remove la_name and
4049 la_natural_name initializers.
4050 (asm_language::name): New member function.
4051 (asm_language::natural_name): New member function.
4052 (minimal_language_data): Remove la_name and
4053 la_natural_name initializers.
4054 (minimal_language::name): New member function.
4055 (minimal_language::natural_name): New member function.
4056 * compile/compile.c (compile_to_object): Update call to
4057 lanugage_defn::name.
4058 * d-lang.c (d_language_data): Remove la_name and
4059 la_natural_name initializers.
4060 (d_language::name): New member function.
4061 (d_language::natural_name): New member function.
4062 * expprint.c (print_subexp_standard): Update call to
4063 language_defn::name.
4064 (dump_raw_expression): Likewise
4065 (dump_prefix_expression): Likewise.
4066 * f-lang.c (f_language_data): Remove la_name and
4067 la_natural_name initializers.
4068 (f_language::name): New member function.
4069 (f_language::natural_name): New member function.
4070 * go-lang.c (go_language_data): Remove la_name and
4071 la_natural_name initializers.
4072 (go_language::name): New member function.
4073 (go_language::natural_name): New member function.
4074 * language.c (show_language_command): Update call to
4075 language_defn::name.
4076 (set_language_command): Likewise.
4077 (language_enum): Likewise.
4078 (language_str): Likewise.
4079 (add_set_language_command): Likewise, use
4080 language_defn::natural_name in the doc string.
4081 (unknown_language_data): Remove la_name and
4082 la_natural_name initializers.
4083 (unknown_language::name): New member function.
4084 (unknown_language::natural_name): New member function.
4085 (auto_language_data): Remove la_name and
4086 la_natural_name initializers.
4087 (auto_language::name): New member function.
4088 (auto_language::natural_name): New member function.
4089 (language_lookup_primitive_type_as_symbol): Update call to
4090 language_defn::name.
4091 * language.h (language_data): Remove la_name and la_natural_name
4092 member variables.
4093 (language_defn::name): New member function.
4094 (language_defn::natural_name): New member function.
4095 * m2-lang.c (m2_language_data): Remove la_name and
4096 la_natural_name initializers.
4097 (m2_language::name): New member function.
4098 (m2_language::natural_name): New member function.
4099 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4100 language_defn::natural_name.
4101 * objc-lang.c (objc_language_data): Remove la_name and
4102 la_natural_name initializers.
4103 (objc_language::name): New member function.
4104 (objc_language::natural_name): New member function.
4105 * opencl-lang.c (opencl_language_data): Remove la_name and
4106 la_natural_name initializers.
4107 (opencl_language::name): New member function.
4108 (opencl_language::natural_name): New member function.
4109 * p-lang.c (pascal_language_data): Remove la_name and
4110 la_natural_name initializers.
4111 (pascal_language::name): New member function.
4112 (pascal_language::natural_name): New member function.
4113 * rust-lang.c (rust_language_data): Remove la_name and
4114 la_natural_name initializers.
4115 (rust_language::name): New member function.
4116 (rust_language::natural_name): New member function.
4117 * symtab.c (lookup_language_this): Update call to
4118 language_defn::name.
4119
4120 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4121
4122 * ada-lang.c (ada_language_data): Remove la_name_of_this
4123 initializer.
4124 * ax-gdb.c (gen_expr): Update call to name_of_this.
4125 * c-exp.y (classify_name): Likewise.
4126 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4127 (cplus_language_data): Likewise.
4128 (cplus_language::name_of_this): New member function.
4129 (asm_language_data): Remove la_name_of_this initializer.
4130 (minimal_language_data): Likewise.
4131 * d-lang.c (d_language_data): Likewise.
4132 (d_language::name_of_this): New member function.
4133 * expprint.c (print_subexp_standard): Update call to name_of_this.
4134 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4135 * go-lang.c (go_language_data): Likewise.
4136 * language.c (unknown_language_data): Likewise.
4137 (unknown_language::name_of_this): New member function.
4138 (auto_language_data): Remove la_name_of_this initializer.
4139 (auto_language::name_of_this): New member function.
4140 * language.h (language_data): Delete la_name_of_this member
4141 variable.
4142 (language_defn::name_of_this): New member function.
4143 * m2-lang.c (m2_language_data): Remove la_name_of_this
4144 initializer.
4145 * objc-lang.c (objc_language_data): Likewise.
4146 (objc_language::name_of_this): New member function.
4147 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4148 initializer.
4149 * p-lang.c (pascal_language_data): Likewise.
4150 (pascal_language::name_of_this): New member function.
4151 * rust-lang.c (rust_language_data): Remove la_name_of_this
4152 initializer.
4153 * symtab.c (lookup_language_this): Update call to name_of_this.
4154 (lookup_symbol_aux): Likewise.
4155 * valops.c (value_of_this): Likewise.
4156
4157 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4158
4159 * ada-lang.c (ada_language_data): Remove
4160 la_struct_too_deep_ellipsis initializer.
4161 (ada_language::struct_too_deep_ellipsis): New member function.
4162 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4163 initializer.
4164 (cplus_language_data): Likewise.
4165 (asm_language_data): Likewise.
4166 (minimal_language_data): Likewise.
4167 * cp-valprint.c (cp_print_value): Update call to
4168 struct_too_deep_ellipsis.
4169 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4170 initializer.
4171 * f-lang.c (f_language_data): Likewise.
4172 (f_language::struct_too_deep_ellipsis): New member function.
4173 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4174 initializer.
4175 * language.c (unknown_language_data): Likewise.
4176 (auto_language_data): Likewise.
4177 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4178 member variable.
4179 (language_defn::struct_too_deep_ellipsis): New member function.
4180 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4181 initializer.Q
4182 * objc-lang.c (objc_language_data): Likewise.
4183 * opencl-lang.c (opencl_language_data): Likewise.
4184 * p-lang.c (pascal_language_data): Likewise.
4185 * rust-lang.c (rust_language_data): Likewise.
4186 * valprint.c (val_print_check_max_depth): Update call to
4187 struct_too_deep_ellipsis.
4188
4189 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4190
4191 * MAINTAINERS (Write After Approval): Add myself.
4192
4193 2020-09-15 Tom Tromey <tom@tromey.com>
4194
4195 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4196 Remove.
4197
4198 2020-09-15 Tom Tromey <tom@tromey.com>
4199
4200 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4201 and TYPE_CODE_METHODPTR cases.
4202 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4203 (c_value_print_inner): Update.
4204 * valprint.c (generic_value_print_memberptr): New function, from
4205 c_value_print_memberptr.
4206 (generic_value_print): Use it. Call cplus_print_method_ptr.
4207
4208 2020-09-15 Tom Tromey <tromey@adacore.com>
4209
4210 * python/python-internal.h (PyInt_FromLong): Remove define.
4211 * python/py-value.c (convert_value_from_python): Use
4212 gdb_py_object_from_longest.
4213 * python/py-type.c (typy_get_code): Use
4214 gdb_py_object_from_longest.
4215 * python/py-symtab.c (salpy_get_line): Use
4216 gdb_py_object_from_longest.
4217 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4218 gdb_py_object_from_longest.
4219 * python/py-record.c (recpy_gap_reason_code): Use
4220 gdb_py_object_from_longest.
4221 * python/py-record-btrace.c (recpy_bt_insn_size)
4222 (recpy_bt_func_level, btpy_list_count): Use
4223 gdb_py_object_from_longest.
4224 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4225 gdb_py_object_from_longest. Fix error handling.
4226 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4227 gdb_py_object_from_longest.
4228 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4229 gdb_py_object_from_longest.
4230 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4231 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4232 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4233
4234 2020-09-15 Tom Tromey <tromey@adacore.com>
4235
4236 * python/python.c (gdbpy_parameter_value): Use
4237 gdb_py_object_from_ulongest.
4238
4239 2020-09-15 Tom Tromey <tromey@adacore.com>
4240
4241 * python/py-infevents.c (create_register_changed_event_object):
4242 Use gdb_py_object_from_longest.
4243 * python/py-exitedevent.c (create_exited_event_object): Use
4244 gdb_py_object_from_longest.
4245
4246 2020-09-15 Tom Tromey <tromey@adacore.com>
4247
4248 * python/python.c (gdbpy_parameter_value): Use
4249 gdb_py_object_from_longest.
4250 * python/py-type.c (convert_field, typy_range): Use
4251 gdb_py_object_from_longest.
4252 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4253 gdb_py_object_from_longest.
4254 * python/py-lazy-string.c (stpy_get_length): Use
4255 gdb_py_object_from_longest.
4256 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4257 gdb_py_object_from_longest.
4258 * python/py-infevents.c (create_memory_changed_event_object): Use
4259 gdb_py_object_from_longest.
4260 * python/py-inferior.c (infpy_get_num): Use
4261 gdb_py_object_from_longest.
4262 (infpy_get_pid): Likewise.
4263
4264 2020-09-15 Tom Tromey <tromey@adacore.com>
4265
4266 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4267 defines.
4268 * python/py-value.c (valpy_long): Use
4269 gdb_py_object_from_ulongest.
4270 * python/py-symtab.c (salpy_get_pc): Use
4271 gdb_py_object_from_ulongest.
4272 (salpy_get_last): Likewise.
4273 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4274 gdb_py_object_from_ulongest.
4275 * python/py-lazy-string.c (stpy_get_address): Use
4276 gdb_py_object_from_ulongest.
4277 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4278 * python/py-arch.c (archpy_disassemble): Use
4279 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4280 error handling.
4281
4282 2020-09-15 Tom Tromey <tromey@adacore.com>
4283
4284 * python/python-internal.h (gdb_py_long_from_longest): Remove
4285 defines.
4286 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4287 * python/py-type.c (convert_field, typy_get_sizeof): Use
4288 gdb_py_object_from_longest.
4289 * python/py-record-btrace.c (btpy_list_index): Use
4290 gdb_py_object_from_longest.
4291
4292 2020-09-15 Tom Tromey <tromey@adacore.com>
4293
4294 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4295 * python/py-record.c (recpy_element_number): Use
4296 gdb_py_object_from_longest.
4297 (recpy_gap_number): Likewise.
4298
4299 2020-09-15 Tom Tromey <tromey@adacore.com>
4300
4301 * top.c (ui::ui): Update.
4302 (highest_ui_num): Remove.
4303 * top.h (struct ui) <num>: Remove.
4304
4305 2020-09-15 Tom Tromey <tromey@adacore.com>
4306
4307 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4308 * ui-style.c (ansi_regex_text): Now array.
4309 * rust-exp.y (number_regex_text): Now array.
4310 * linespec.c (linespec_quote_characters): Now array.
4311 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4312 Now arrays.
4313
4314 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4315
4316 * debuginfod-support.c (debuginfod_client_deleter): New.
4317 (debuginfod_client_up): New.
4318 (debuginfod_init): Return debuginfod_client_up.
4319 (debuginfod_source_query): Adjust.
4320 (debuginfod_debuginfo_query): Adjust.
4321
4322 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 * debuginfod-support.c (debuginfod_source_query): Use
4325 make_unique_xstrdup.
4326
4327 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4330 with `type::instance_flags`.
4331
4332 2020-09-14 Michael Mullin <masmullin@gmail.com>
4333
4334 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4335 Remove baton parameter.
4336
4337 2020-09-14 Pedro Alves <pedro@palves.net>
4338
4339 * Makefile.in (SELFTESTS_SRCS): Add
4340 unittests/enum-flags-selftests.c.
4341 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4342 btrace_function_flags instead of enum btrace_function_flag.
4343 * compile/compile-c-types.c (convert_qualified): Use
4344 enum_flags::raw.
4345 * compile/compile-cplus-symbols.c (convert_one_symbol)
4346 (convert_symbol_bmsym):
4347 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4348 (compile_cplus_convert_struct_or_union_methods)
4349 (compile_cplus_instance::convert_qualified_base):
4350 * go-exp.y (parse_string_or_char): Add cast to int.
4351 * unittests/enum-flags-selftests.c: New file.
4352 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4353 type to btrace_thread_flags from btrace_thread_flag.
4354 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4355 local's type to btrace_thread_flags from btrace_thread_flag. Add
4356 cast in DEBUG call.
4357
4358 2020-09-14 Pedro Alves <pedro@palves.net>
4359
4360 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4361 * gdbtypes.c (address_space_name_to_int): Rename to ...
4362 (address_space_name_to_type_instance_flags): ... this.
4363 (address_space_int_to_name): Rename to ...
4364 (address_space_type_instance_flags_to_name): ... this.
4365 * gdbtypes.h (address_space_name_to_int): Rename to ...
4366 (address_space_name_to_type_instance_flags): ... this.
4367 (address_space_int_to_name): Rename to ...
4368 (address_space_type_instance_flags_to_name): ... this.
4369 * type-stack.c (type_stack::insert): Adjust to rename.
4370 * type-stack.h (type_stack::insert): Likewise.
4371
4372 2020-09-14 Pedro Alves <pedro@palves.net>
4373 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * avr-tdep.c (avr_address_class_type_flags): Return
4376 type_instance_flags.
4377 (avr_address_class_type_flags_to_name): Take a
4378 type_instance_flags.
4379 (avr_address_class_name_to_type_flags): Return bool and take a
4380 type_instance_flags.
4381 * d-lang.c (build_d_types): Use type::set_instance_flags.
4382 * ft32-tdep.c (ft32_address_class_type_flags): Return
4383 type_instance_flags.
4384 (ft32_address_class_type_flags_to_name): Take a
4385 type_instance_flags.
4386 (ft32_address_class_name_to_type_flags): Return bool and take a
4387 type_instance_flags.
4388 (ft32_gdbarch_init): Use type::set_instance_flags.
4389 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4390 * gdbarch.h, gdbarch.c: Regenerate.
4391 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4392 (address_class_name_to_type_flags): Use type_instance_flags and
4393 bool.
4394 * gdbtypes.c (address_space_name_to_int)
4395 (address_space_int_to_name, make_qualified_type): Use
4396 type_instance_flags.
4397 (make_qualified_type): Use type_instance_flags and
4398 type::set_instance_flags.
4399 (make_type_with_address_space, make_cv_type, make_vector_type)
4400 (check_typedef): Use type_instance_flags.
4401 (recursive_dump_type): Cast type_instance_flags to unsigned for
4402 printing.
4403 (copy_type_recursive): Use type::set_instance_flags.
4404 (gdbtypes_post_init): Use type::set_instance_flags.
4405 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4406 <m_instance_flags>: ... this.
4407 <instance_flags, set_instance_flags>: New methods.
4408 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4409 (SET_TYPE_INSTANCE_FLAGS): New.
4410 (address_space_name_to_int, address_space_int_to_name)
4411 (make_type_with_address_space): Pass flags using
4412 type_instance_flags instead of int.
4413 * stabsread.c (cleanup_undefined_types_noname): Use
4414 type::set_instance_flags.
4415 * s390-tdep.c (s390_address_class_type_flags): Return
4416 type_instance_flags.
4417 (s390_address_class_type_flags_to_name): Take a
4418 type_instance_flags.
4419 (s390_address_class_name_to_type_flags): Return bool and take a
4420 type_instance_flags.
4421 * type-stack.c (type_stack::follow_types): Use
4422 type_instance_flags.
4423 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4424
4425 2020-09-14 Tom Tromey <tromey@adacore.com>
4426
4427 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4428 * x86-tdep.c (x86_is_thunk_register_name)
4429 (x86_in_indirect_branch_thunk): Update.
4430 * sparc64-tdep.c (sparc64_fpu_register_names)
4431 (sparc64_cp0_register_names, sparc64_register_names)
4432 (sparc64_pseudo_register_names): Now const.
4433 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4434 cp0_registers_num>: Now const.
4435 * sparc-tdep.c (sparc_core_register_names)
4436 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4437 (sparc32_pseudo_register_names): Now const.
4438 (validate_tdesc_registers): Update.
4439 * rust-lang.c (rust_extensions): Now const.
4440 * p-lang.c (p_extensions): Now const.
4441 * objc-lang.c (objc_extensions): Now const.
4442 * nto-tdep.c (nto_thread_state_str): Now const.
4443 * moxie-tdep.c (moxie_register_names): Now const.
4444 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4445 Now const.
4446 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4447 (mips_linux_reg_names): Now const.
4448 (mips_gdbarch_init): Update.
4449 * microblaze-tdep.c (microblaze_register_names): Now const.
4450 * m68k-tdep.c (m68k_register_names): Now const.
4451 * m32r-tdep.c (m32r_register_names): Now const.
4452 * ia64-tdep.c (ia64_register_names): Now const.
4453 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4454 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4455 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4456 ymm_avx512_register_names, pkeys_register_names>: Now const.
4457 * i386-tdep.c (i386_register_names, i386_zmm_names)
4458 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4459 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4460 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4461 * f-lang.c (f_extensions): Now const.
4462 * d-lang.c (d_extensions): Now const.
4463 * csky-tdep.c (csky_register_names): Now const.
4464 * charset.c (default_charset_names, charset_enum): Now const.
4465 (_initialize_charset): Update.
4466 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4467 const.
4468 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4469 (bsd_uthread_solib_loaded): Update.
4470 (bsd_uthread_state): Now const.
4471 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4472 (amd64_ymm_avx512_names, amd64_ymmh_names)
4473 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4474 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4475 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4476 (amd64_dword_names): Now const.
4477 * agent.c (can_use_agent_enum): Now const.
4478 * ada-tasks.c (task_states, long_task_states): Now const.
4479 * ada-lang.c (known_runtime_file_name_patterns)
4480 (known_auxiliary_function_name_patterns, attribute_names)
4481 (standard_exc, ada_extensions): Now const.
4482
4483 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4484
4485 * bcache.h (struct bcache) <bcache>: Remove constructor.
4486 <m_hash_function, m_compare_function>: Remove.
4487 <~bcache>: Make virtual.
4488 <compare>: Remove static method, introduce virtual method.
4489 <default_hash>: Remove.
4490 <hash>: New virtual method.
4491 * bcache.c (bcache::expand_hash_table): Update.
4492 (bcache::insert): Update.
4493 (bcache::hash): New.
4494 (bcache::compare): Update comment and parameter names.
4495 * gdbtypes.c (types_deeply_equal): Update.
4496 * psymtab.h (struct psymbol_bcache): New struct.
4497 (class psymtab_storage) <psymtab_storage>: Make default.
4498 <psymbol_cache>: Change type to psymbol_bcache.
4499 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4500 (psymbol_hash): Change to...
4501 (psymbol_bcache::hash): ... this.
4502 (psymbol_compare): Change to...
4503 (psymbol_bcache::compare): ... this.
4504
4505 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4506
4507 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4508 checking for initial lwp.
4509
4510 2020-09-14 Tom Tromey <tromey@adacore.com>
4511
4512 * m68k-tdep.c (m68k_extract_return_value): Use
4513 pointer_result_regnum.
4514 (m68k_store_return_value): Likewise.
4515 (m68k_reg_struct_return_p): Handle vectors and arrays.
4516 (m68k_return_value): Handle arrays.
4517 (m68k_svr4_return_value): Fix single-element aggregate handling.
4518 Handle long double. Adjust for embedded ABI.
4519 (m68k_svr4_init_abi): Set pointer_result_regnum.
4520 (m68k_embedded_init_abi): New function.
4521 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4522 (m68k_osabi_sniffer): New function.
4523 (_initialize_m68k_tdep): Register osabi sniffer.
4524 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4525 member.
4526
4527 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4528
4529 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4530 with gdb::unique_xmalloc_ptr<char>.
4531
4532 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4533
4534 * xml-support.h (xml_fetch_another): Change type to be a
4535 function_view.
4536 (xml_process_xincludes): Remove baton parameter.
4537 (xml_fetch_content_from_file): Change baton parameter to
4538 dirname.
4539 * xml-support.c (struct xinclude_parsing_data)
4540 <xinclude_parsing_data>: Remove baton parameter.
4541 <fetcher_baton>: Remove.
4542 (xinclude_start_include): Adjust.
4543 (xml_process_xincludes): Adjust.
4544 (xml_fetch_content_from_file): Replace baton parameter with
4545 dirname.
4546 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4547 (xml_init_syscalls_info): Use a lambda.
4548 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4549 (file_read_description_xml): Use a lambda.
4550 (fetch_available_features_from_target): Change baton parameter
4551 to target_ops.
4552 (target_read_description_xml): Use a lambda.
4553 (target_fetch_description_xml): Use a lambda.
4554 (string_read_description_xml): Update.
4555
4556 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4557
4558 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4559 uses with type::endianity_is_not_default.
4560
4561 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * gdbtypes.h (struct type) <endianity_is_not_default,
4564 set_endianity_is_not_default>: New methods.
4565 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4566 type::endianity_is_not_default, change all write call sites to
4567 use type::set_endianity_is_not_default.
4568
4569 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4572 uses with type::is_fixed_instance.
4573
4574 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * gdbtypes.h (struct type) <is_fixed_instance,
4577 set_is_fixed_instance>: New methods.
4578 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4579 write call sites to use type::set_is_fixed_instance.
4580
4581 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4584 uses with type::is_gnu_ifunc.
4585
4586 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4589 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4590 use type::set_is_gnu_ifunc.
4591
4592 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4595 uses with type::stub_is_supported.
4596
4597 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4600 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4601 use type::set_stub_is_supported.
4602
4603 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4606 uses with type::is_vector.
4607
4608 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4611 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4612 use type::set_is_vector.
4613
4614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4617 uses with type::has_varargs.
4618
4619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4622 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4623 use type::set_has_varargs.
4624
4625 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4628 uses with type::is_prototyped.
4629
4630 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4633 New methods.
4634 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4635 call sites to use type::set_is_prototyped.
4636
4637 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4640 uses with type::target_is_stub.
4641
4642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4645 New methods.
4646 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4647 sites to use type::set_target_is_stub.
4648
4649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (TYPE_STUB): Remove, replace all
4652 uses with type::is_stub.
4653
4654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4657 (TYPE_STUB): Use type::is_stub, change all write call sites to
4658 use type::set_is_stub.
4659
4660 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4663 type::has_no_signedness.
4664
4665 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * gdbtypes.h (struct type) <has_no_signedness,
4668 set_has_no_signedness>: New methods.
4669 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4670 call sites to use type::set_has_no_signedness.
4671
4672 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4675 type::is_unsigned.
4676
4677 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4680 methods.
4681 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4682 sites to use type::set_is_unsigned.
4683
4684 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4685 Adam Renquinha <arenquinha@cimeq.qc.ca>
4686
4687 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4688 pointer and stack frame offset when unwinding.
4689
4690 2020-09-13 Pedro Alves <pedro@palves.net>
4691
4692 * NEWS: Document "-break-insert --qualified".
4693 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4694
4695 2020-09-13 Pedro Alves <pedro@palves.net>
4696
4697 * linespec.c (classify_mtype, compare_msyms): Delete.
4698 (search_minsyms_for_name): Remove classification logic. Instead
4699 filter out trampoline symbols if we also found an external
4700 function of the same name.
4701
4702 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4703
4704 * NEWS: Create a new section for the next release branch.
4705 Rename the section of the current branch, now that it has
4706 been cut.
4707
4708 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4709
4710 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4711 * version.in: Bump version to 11.0.50.DATE-git.
4712
4713 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4714
4715 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4716
4717 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4718 Felix Willgerodt <Felix.Willgerodt@intel.com>
4719
4720 * gdbarch.sh: Added bfloat16 type.
4721 * gdbarch.c: Regenerated.
4722 * gdbarch.h: Regenerated.
4723 * gdbtypes.c (floatformats_bfloat16): New struct.
4724 (gdbtypes_post_init): Add builtin_bfloat16.
4725 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4726 (floatformats_bfloat16): New struct.
4727 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4728 (i386_ymm_type): Add field "v16_bfloat16"
4729 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4730 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4731 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4732 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4733 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4734 * features/i386/64bit-avx512.c: Regenerated.
4735 * features/i386/64bit-sse.xml: Add bfloat16 type.
4736 * features/i386/64bit-sse.c: Regenerated.
4737
4738 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4739
4740 * i386-tdep.c (i386_zmm_type): Fix field names.
4741 (i386_ymm_type): Fix field names.
4742
4743 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4744
4745 * breakpoint.c: Fix typo in the help message of the
4746 "set breakpoint condition-evaluation" command.
4747
4748 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4749
4750 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4751 * (nbsd_nat_target::pid_to_exec_file)
4752 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4753 (nbsd_nat_target::post_startup_inferior)
4754 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4755 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4756 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4757 * (nbsd_thread_lister): Remove.
4758
4759 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4760
4761 * fork-inferior.c (startup_inferior): Avoid double free.
4762
4763 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4764
4765 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4766 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4767
4768 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4769
4770 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4771 * netbsd-nat.c: Include <sys/ptrace.h>.
4772 * (netbsd_nat::enable_proc_events): Add.
4773
4774 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4775
4776 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4777 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4778 (netbsd_nat::for_each_thread): Add.
4779 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4780 "gdbsupport/common-debug.h".
4781 * (netbsd_nat::netbsd_thread_lister)
4782 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4783 (netbsd_nat::for_each_thread): Add.
4784
4785 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4786
4787 * netbsd-nat.h: Include <unistd.h>.
4788 * (netbsd_nat::pid_to_exec_file): Add.
4789 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4790 * (netbsd_nat::pid_to_exec_file) Add.
4791
4792 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4793
4794 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4795
4796 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4797
4798 * netbsd-nat.h: New file.
4799 * netbsd-nat.c: Likewise.
4800
4801 2020-09-09 Tom Tromey <tromey@adacore.com>
4802
4803 * ada-lang.c (remove_extra_symbols): Do not increment when
4804 removing an element
4805
4806 2020-09-08 Tom Tromey <tromey@adacore.com>
4807
4808 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4809
4810 2020-09-08 Tom Tromey <tromey@adacore.com>
4811
4812 PR win32/25302:
4813 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4814 (gdb_bfd_init_data): New function.
4815 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4816
4817 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4818
4819 * infrun.c (fetch_inferior_event): Use
4820 `switch_to_target_no_thread` to switch the target.
4821
4822 2020-09-06 Tom Tromey <tom@tromey.com>
4823
4824 * symfile.h (dwarf2_free_objfile): Don't declare.
4825
4826 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4827
4828 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4829 to match 16 byte real/complex type generated by Flang compiler.
4830
4831 2020-09-03 Tom de Vries <tdevries@suse.de>
4832
4833 PR breakpoint/26546
4834 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4835 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4836
4837 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4838
4839 * maint.c (index_digits): New function.
4840 (struct maint_print_section_data): Remove.
4841 (print_bfd_section_info): Remove print_data parameter, add arg
4842 and index_digits.
4843 (print_objfile_section_info): Likewise.
4844 (print_bfd_section_info_maybe_relocated): Likewise (plus
4845 objfile).
4846 (maintenance_info_sections): Adjust calls.
4847
4848 2020-09-02 Tom Tromey <tromey@adacore.com>
4849
4850 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4851 for null pointers.
4852 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4853
4854 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4855
4856 * bcache.h (struct bcache) <insert>: Change type of `added` to
4857 pointer to bool.
4858 * bcache.c (bcache::insert): Likewise.
4859 * gdbtypes.c (check_types_worklist): Adjust.
4860 * psymtab.c (add_psymbol_to_bcache): Adjust.
4861
4862 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4863
4864 * corelow.c (unordered_set): Include.
4865 (class core_target): Add field 'm_core_unavailable_mappings'.
4866 (core_target::build_file_mappings): Print only one warning
4867 per inaccessible file. Add unavailable/broken mappings
4868 to m_core_unavailable_mappings.
4869 (core_target::xfer_partial): Call...
4870 (core_target::xfer_memory_via_mappings): New method.
4871
4872 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4873
4874 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4875 type to bool.
4876
4877 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4878
4879 * dwarf2/read.c (struct field_info): Fix indentation.
4880
4881 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4884 ordering in comment.
4885 * frame.c (frame_id_eq): Fix indentation.
4886
4887 2020-08-31 Scott Linder <scott@scottlinder.com>
4888 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4891 inline frame ids in outer frame.
4892
4893 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4896 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4897 (outer_frame_id): Use FID_STACK_OUTER instead of
4898 FID_STACK_INVALID.
4899 (frame_id_p): Don't check for outer_frame_id.
4900
4901 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4902
4903 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4904 regnum/frame in value. Call allocate_value_lazy.
4905 * frame.c (frame_unwind_register_value): Use
4906 val_print_not_saved.
4907
4908 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4911
4912 2020-08-29 Pedro Alves <pedro@palves.net>
4913
4914 * progspace.c (print_program_space): Use all_inferiors. Switch to
4915 the inferior before calling target_pid_to_str.
4916
4917 2020-08-28 Tom Tromey <tom@tromey.com>
4918
4919 * xcoffread.c (xcoff_end_psymtab): Update comment.
4920 * dbxread.c (dbx_end_psymtab): Update comment.
4921
4922 2020-08-28 Tom de Vries <tdevries@suse.de>
4923
4924 PR breakpoint/26544
4925 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4926 event_location.
4927 (create_breakpoint): Same.
4928 (base_breakpoint_decode_location): Same.
4929 (bkpt_create_sals_from_location): Same.
4930 (bkpt_decode_location): Same.
4931 (bkpt_probe_create_sals_from_location): Same.
4932 (bkpt_probe_decode_location): Same.
4933 (tracepoint_create_sals_from_location): Same.
4934 (tracepoint_decode_location): Same.
4935 (tracepoint_probe_decode_location): Same.
4936 (strace_marker_create_sals_from_location): Same.
4937 (strace_marker_decode_location): Same.
4938 (create_sals_from_location_default): Same.
4939 (decode_location_default): Same.
4940 * breakpoint.h (struct breakpoint_ops): Same.
4941 (create_breakpoint): Same.
4942 * linespec.h (decode_line_full): Same.
4943 * linespec.c (decode_line_full): Same. Throw error if
4944 result.size () == 0.
4945
4946 2020-08-27 Pedro Alves <pedro@palves.net>
4947
4948 PR gdb/26524
4949 * breakpoint.c (until_break_fsm) <location_breakpoint,
4950 caller_breakpoint>: Delete fields.
4951 <breakpoints>: New field.
4952 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4953 two individual breakpoints.
4954 (until_break_fsm::should_stop): Loop over breakpoints in the
4955 breakpoint vector.
4956 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4957 vector.
4958 (until_break_command): Handle location expanding into multiple
4959 sals.
4960
4961 2020-08-27 Pedro Alves <pedro@palves.net>
4962
4963 PR gdb/26523
4964 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4965 bp_until breakpoints user-specified locations. Update intro
4966 comment.
4967
4968 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4969
4970 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4971 gdb_bfd_sections): New.
4972 * maint.c (print_bfd_section_info): Change param type to
4973 maint_print_section_data.
4974 (print_objfile_section_info): Likewise.
4975 (print_bfd_section_info_maybe_relocated): Likewise.
4976 (maintenance_info_sections): Use gdb_bfd_sections.
4977
4978 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4979
4980 * MAINTAINERS: Add ARC target and maintainer.
4981
4982 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4983
4984 * configure.tgt: ARC support for GNU/Linux.
4985 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4986 * arc-linux-tdep.c: New file.
4987 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4988 * arc-tdep.c (arc_write_pc): Use it.
4989
4990 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4991
4992 * arc-tdep.c (arc_check_for_hardware_loop): New.
4993 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4994
4995 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4996
4997 * arc-tdep.h: Include "gdbarch.h".
4998
4999 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5000
5001 * arch/arc.h
5002 (arc_gdbarch_features): New class to stir the selection of target XML.
5003 (arc_create_target_description): Use FEATURES to choose XML target.
5004 (arc_lookup_target_description): Use arc_create_target_description
5005 to create _new_ target descriptions or return the already created
5006 ones if the FEATURES is the same.
5007 * arch/arc.c: Implementation of prototypes described above.
5008 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5009 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5010 * arc-tdep.c (*_feature_name): Make feature names consistent.
5011 (arc_register_feature): A new struct to hold information about
5012 registers of a particular target/feature.
5013 (arc_check_tdesc_feature): Check if XML provides registers in
5014 compliance with ARC_REGISTER_FEATURE structs.
5015 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5016 (determine_*_reg_feature_set): Which feature name to look for.
5017 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5018 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5019 to expected ISA enums to be used in arc_gdbarch_features structs.
5020 * features/Makefile (FEATURE_XMLFILES): Add new files.
5021 * gdb/features/arc/v1-aux.c: New file.
5022 * gdb/features/arc/v1-aux.xml: Likewise.
5023 * gdb/features/arc/v1-core.c: Likewise.
5024 * gdb/features/arc/v1-core.xml: Likewise.
5025 * gdb/features/arc/v2-aux.c: Likewise.
5026 * gdb/features/arc/v2-aux.xml: Likewise.
5027 * gdb/features/arc/v2-core.c: Likewise.
5028 * gdb/features/arc/v2-core.xml: Likewise.
5029 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5030
5031 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5032 Andrew Burgess <andrew.burgess@embecosm.com>
5033
5034 PR m2/26372
5035 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5036 an assert. Remove single element array indexing pattern as the
5037 MULTI_SUBSCRIPT support will handle this case too.
5038
5039 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5040
5041 * value.h (valprint_check_validity): Move declaration from
5042 here...
5043 * valprint.h (valprint_check_validity): ... to here.
5044
5045 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * debug.h: New file.
5048 * debug.c (debug_prefixed_vprintf): New function.
5049 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5050 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5051
5052 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5053
5054 * infrun.h (infrun_debug_printf_1): New function declaration.
5055 (infrun_debug_printf): New macro.
5056 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5057 throughout.
5058 (infrun_debug_printf): New function.
5059 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5060 (handle_jit_event): Likewise.
5061
5062 2020-08-21 Mark Wielaard <mark@klomp.org>
5063
5064 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5065
5066 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * frame.c (enum class frame_id_status): New.
5069 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5070 (fprintf_frame): Update.
5071 (compute_frame_id): Set frame id status to "computing" on entry.
5072 Set it back to "not_computed" on failure and to "computed" on
5073 success.
5074 (get_frame_id): Assert the frame id is not being computed.
5075 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5076 (create_new_frame): Likewise.
5077 (frame_cleanup_after_sniffer): Update assert.
5078
5079 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * regcache.c (pid_ptid_regcache_map): New type.
5082 (target_ptid_regcache_map): Remove.
5083 (target_pid_ptid_regcache_map): New type.
5084 (regcaches): Change type to target_pid_ptid_regcache_map.
5085 (get_thread_arch_aspace_regcache): Update.
5086 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5087 case.
5088 (regcaches_size): Update.
5089 (regcache_count): Update.
5090 (registers_changed_ptid_target_pid_test): New.
5091 (_initialize_regcache): Register new test.
5092
5093 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5094
5095 * regcache.c (regcache_count): New.
5096 (struct regcache_test_data): New.
5097 (regcache_test_data_up): New.
5098 (populate_regcaches_for_test): New.
5099 (regcaches_test): Remove.
5100 (get_thread_arch_aspace_regcache_test): New.
5101 (registers_changed_ptid_all_test): New.
5102 (registers_changed_ptid_target_test): New.
5103 (registers_changed_ptid_target_ptid_test): New.
5104 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5105 (_initialize_regcache): Register new tests.
5106
5107 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5110 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5111 gdbarch and aspace parameter. Use current inferior's aspace.
5112 Validate regcache's arch value.
5113 (regcaches_test): Update.
5114
5115 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * regcache.c (regcaches_test): Call registers_changed.
5118
5119 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5120
5121 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5122
5123 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5124
5125 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5126 to find the end of prologue for flang compiled binaries.
5127 * arm-tdep.c (arm_skip_prologue): Likewise.
5128 * i386-tdep.c (i386_skip_prologue): Likewise.
5129 * producer.c (producer_is_llvm): New function.
5130 (producer_parsing_tests): Added new tests for clang/flang.
5131 * producer.h (producer_is_llvm): New declaration.
5132
5133 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * linux-nat.c (linux_nat_debug_printf): New function.
5136 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5137
5138 2020-08-18 Aaron Merey <amerey@redhat.com>
5139
5140 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5141 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5142 (CLIBS): Add DEBUGINFOD_LIBS.
5143
5144 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5145
5146 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5147 'gdbarch_num_regs'.
5148
5149 2020-08-17 Tom Tromey <tromey@adacore.com>
5150
5151 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5152 ada_get_decoded_value returns NULL.
5153
5154 2020-08-17 Tom Tromey <tromey@adacore.com>
5155
5156 * python/py-inferior.c (infpy_search_memory): Use
5157 gdb_py_object_from_ulongest.
5158 * python/py-infevents.c (create_inferior_call_event_object)
5159 (create_memory_changed_event_object): Use
5160 gdb_py_object_from_ulongest.
5161 * python/py-linetable.c (ltpy_entry_get_pc): Use
5162 gdb_py_object_from_ulongest.
5163
5164 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5165
5166 * loc.c (class symbol_needs_eval_context): Fix indentation.
5167
5168 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5171 bool.
5172
5173 2020-08-17 Tom de Vries <tdevries@suse.de>
5174
5175 PR gdb/26393
5176 * gdbtypes.c (dump_dynamic_prop): New function.
5177 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5178
5179 2020-08-15 Tom de Vries <tdevries@suse.de>
5180
5181 PR backtrace/26390
5182 * stack.c (print_frame_args): Temporarily set the selected
5183 frame to FRAME while printing the frame's arguments.
5184
5185 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5186
5187 PR breakpoints/26385
5188 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5189 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5190
5191 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5192
5193 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5194 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5195 and >= to check return value instead of == -1 and != -1.
5196
5197 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * utils.h (class gdb_argv) <as_array_view>: New method.
5200 * utils.c (gdb_argv_as_array_view_test): New.
5201 (_initialize_utils): Register selftest.
5202 * maint.c (maintenance_selftest): Use the new method.
5203
5204 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5205
5206 * target.h (supports_dumpcore, dumpcore): New
5207 function declarations.
5208 * target.c (supports_dumpcore, dumpcore): New
5209 functions.
5210 * target-delegates.c: Rebuild.
5211 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5212 and target_dumpcore ().
5213
5214 2020-08-13 Aaron Merey <amerey@redhat.com>
5215
5216 * debuginfod-support.c: Replace global variables with user_data.
5217
5218 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 * maint.c (maintenance_selftest): Split args and pass array_view
5221 to run_tests.
5222
5223 2020-08-12 Luis Machado <luis.machado@linaro.org>
5224
5225 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5226 type's length.
5227 Use %s and pulongest to print the length.
5228
5229 2020-08-12 Pedro Alves <palves@redhat.com>
5230
5231 * NEWS: Move "Multi-target debugging support" item to the
5232 "Changes since GDB 9" section.
5233
5234 2020-08-12 Pedro Alves <palves@redhat.com>
5235
5236 PR gdb/26336
5237 * progspace.c (program_space::remove_objfile): Invalidate the
5238 frame cache.
5239
5240 2020-08-11 Tom de Vries <tdevries@suse.de>
5241
5242 * MAINTAINERS: Mark ms1 as deleted.
5243
5244 2020-08-10 Luis Machado <luis.machado@linaro.org>
5245
5246 PR gdb/26310
5247
5248 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5249 act accordingly.
5250 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5251 movz/str/stur/stp skipping behavior.
5252
5253 2020-08-10 Luis Machado <luis.machado@linaro.org>
5254
5255 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5256 struct user_sve_header instead of struct sve_context.
5257
5258 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5259
5260 * read.h (dwarf2_fetch_die_loc_sect_off,
5261 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5262 `void *` parameter with function_view.
5263 * read.c (dwarf2_fetch_die_loc_sect_off,
5264 dwarf2_fetch_die_loc_cu_off): Likewise.
5265 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5266 (per_cu_dwarf_call): Adjust.
5267 (get_frame_address_in_block_wrapper): Remove.
5268 (indirect_synthetic_pointer): Adjust.
5269 (get_ax_pc): Remove.
5270 (dwarf2_compile_expr_to_ax): Adjust.
5271
5272 2020-08-08 Tom de Vries <tdevries@suse.de>
5273
5274 PR build/26344
5275 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5276 constructor.
5277 * regcache.c (get_thread_arch_aspace_regcache): Same.
5278
5279 2020-08-07 Tom Tromey <tromey@adacore.com>
5280
5281 * ravenscar-thread.c
5282 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5283 New method.
5284 (ravenscar_thread_target::wait): Check
5285 runtime_initialized.
5286 (ravenscar_thread_target::prepare_to_store)
5287 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5288 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5289 (ravenscar_thread_target::stopped_by_watchpoint)
5290 (ravenscar_thread_target::stopped_data_address)
5291 (ravenscar_thread_target::core_of_thread): Use
5292 scoped_restore_current_thread and
5293 set_base_thread_from_ravenscar_task.
5294
5295 2020-08-07 Tom Tromey <tromey@adacore.com>
5296
5297 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5298
5299 2020-08-07 Tom Tromey <tromey@adacore.com>
5300
5301 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5302 update_inferior_ptid before update_thread_list.
5303 (temporarily_change_regcache_ptid): New class.
5304 (ravenscar_thread_target::fetch_registers)
5305 (ravenscar_thread_target::store_registers)
5306 (ravenscar_thread_target::prepare_to_store): Use base thread when
5307 forwarding operation.
5308
5309 2020-08-07 Tom Tromey <tromey@adacore.com>
5310
5311 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5312 "is_pid" case.
5313
5314 2020-08-07 Tom Tromey <tromey@adacore.com>
5315
5316 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5317 New methods.
5318 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5319 first.
5320 (ravenscar_thread_target::add_thread): Rename from
5321 ravenscar_add_thread.
5322 (ravenscar_thread_target::update_thread_list): Use a lambda.
5323 (ravenscar_thread_target::xfer_partial): New method.
5324
5325 2020-08-07 Tom Tromey <tromey@adacore.com>
5326
5327 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5328 gdb::function_view.
5329 (iterate_over_live_ada_tasks): Change type of argument.
5330 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5331 of argument.
5332
5333 2020-08-07 Tom Tromey <tromey@adacore.com>
5334
5335 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5336 Remove.
5337 (ravenscar_thread_target::extra_thread_info): Remove.
5338 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5339 defer to target beneath for non-Ravenscar threads.
5340
5341 2020-08-07 Tom Tromey <tromey@adacore.com>
5342
5343 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5344 get_base_thread_from_ravenscar_task>: Now methods.
5345 <m_cpu_map>: New member.
5346 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5347 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5348 (ravenscar_thread_target::task_is_currently_active): Update.
5349 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5350 Now a method.
5351 (ravenscar_thread_target::add_active_thread): Put initial thread
5352 into the m_cpu_map.
5353
5354 2020-08-07 Tom Tromey <tromey@adacore.com>
5355
5356 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5357 event_ptid.
5358
5359 2020-08-07 Tom Tromey <tromey@adacore.com>
5360
5361 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5362 runtime_initialized.
5363
5364 2020-08-07 Tom Tromey <tromey@adacore.com>
5365
5366 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5367 add_active_thread.
5368 (ravenscar_thread_target::add_active_thread): Now public.
5369 (ravenscar_inferior_created): Call add_active_thread after pushing
5370 the target.
5371
5372 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5373
5374 * regcache.c (ptid_regcache_map): New type.
5375 (target_ptid_regcache_map): New type.
5376 (regcaches): Change type to target_ptid_regcache_map.
5377 (get_thread_arch_aspace_regcache): Update to regcaches' new
5378 type.
5379 (regcache_thread_ptid_changed): Likewise.
5380 (registers_changed_ptid): Likewise.
5381 (regcaches_size): Likewise.
5382 (regcaches_test): Update.
5383 (regcache_thread_ptid_changed): Update.
5384 * regcache.h (regcache_up): New type.
5385 * gdbsupport/ptid.h (hash_ptid): New struct.
5386
5387 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * observable.h (thread_ptid_changed): Add parameter
5390 `process_stratum_target *`.
5391 * infrun.c (infrun_thread_ptid_changed): Add parameter
5392 `process_stratum_target *` and use it.
5393 (selftests): New namespace.
5394 (infrun_thread_ptid_changed): New function.
5395 (_initialize_infrun): Register selftest.
5396 * regcache.c (regcache_thread_ptid_changed): Add parameter
5397 `process_stratum_target *` and use it.
5398 (regcache_thread_ptid_changed): New function.
5399 (_initialize_regcache): Register selftest.
5400 * thread.c (thread_change_ptid): Pass target to
5401 thread_ptid_changed observable.
5402
5403 2020-08-06 Caroline Tice <cmtice@google.com>
5404
5405 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5406 (struct dwp_sections): Update field comments. Add loclists and
5407 rnglists fields.
5408 (struct virtual_v2_dwo_sections): Rename struct to
5409 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5410 size & offset fields for loclists and rnglists.
5411 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5412 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5413 skipping dummy type units.
5414 (create_dwp_hash_table): Update the large comment above the function to
5415 discuss Version 5 DWP files as well, with references. Update all the
5416 version checks in the function to check for version 5 as well. Add new
5417 section at the end to create dwp hash table for version 5.
5418 (create_dwp_v2_section): Rename function to
5419 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5420 Add V5 to error message text.
5421 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5422 into calls to create_dwp_v2_or_v5_section.
5423 (create_dwo_unit_in_dwp_v5): New function.
5424 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5425 check for version2; add else clause to handle version 5.
5426 (open_and_init_dwo_file): Add code to check dwarf version & only call
5427 create_debug_types_hash_table (with sections.types) if version is not 5;
5428 else call create_debug_type_hash_table, with sections.info.
5429 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5430 version 5.
5431 (dwarf2_locate_v5_dwp_sections): New function.
5432 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5433 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5434
5435 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * regcache.h (class regcache): Remove friend
5438 registers_changed_ptid.
5439 <regcache_thread_ptid_changed>: Remove.
5440 <regcaches>: Remove.
5441 * regcache.c (regcache::regcaches): Rename to...
5442 (regcaches): ... this. Make static.
5443 (get_thread_arch_aspace_regcache): Update.
5444 (regcache::regcache_thread_ptid_changed): Rename to...
5445 (regcache_thread_ptid_changed): ... this. Update.
5446 (class regcache_access): Remove.
5447 (regcaches_test): Update.
5448 (_initialize_regcache): Update.
5449 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5450 <forward_list>.
5451
5452 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * regcache.h (class regcache) <current_regcache>: Rename to...
5455 <regcaches>: ... this. Move doc here.
5456 * regcache.c (regcache::current_regcache) Rename to...
5457 (regcache::regcaches): ... this. Move doc to header.
5458 (get_thread_arch_aspace_regcache): Update.
5459 (regcache::regcache_thread_ptid_changed): Update.
5460 (registers_changed_ptid): Update.
5461 (class regcache_access) <current_regcache_size>: Rename to...
5462 <regcaches_size>: ... this.
5463 (current_regcache_test): Rename to...
5464 (regcaches_test): ... this.
5465 (_initialize_regcache): Update.
5466
5467 2020-08-06 Victor Collod <vcollod@nvidia.com>
5468
5469 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5470
5471 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5472
5473 * corelow.c (core_target::build_file_mappings): Don't output
5474 null pathname in warning.
5475
5476 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5477
5478 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5479 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5480 gdb.dwarf2/dw2-single-line-discriminators.exp,
5481 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5482
5483 2020-08-05 Tom Tromey <tromey@adacore.com>
5484
5485 PR rust/26197:
5486 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5487 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5488 Fix off-by-one and type size errors in ordinary case.
5489
5490 2020-08-05 Tom de Vries <tdevries@suse.de>
5491
5492 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5493 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5494
5495 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * frame.h (frame_id_p): Return bool.
5498 (frame_id_artificial_p): Return bool.
5499 (frame_id_eq): Return bool.
5500 (has_stack_frames): Return bool.
5501 (get_selected_frame): Fix typo in comment.
5502 (get_frame_pc_if_available): Return bool.
5503 (get_frame_address_in_block_if_available): Return bool.
5504 (get_frame_func_if_available): Return bool.
5505 (read_frame_register_unsigned): Return bool.
5506 (get_frame_register_bytes): Return bool.
5507 (safe_frame_unwind_memory): Return bool.
5508 (deprecated_frame_register_read): Return bool.
5509 (frame_unwinder_is): Return bool.
5510 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5511 bool.
5512 <this_id::p>: Likewise.
5513 <prev_p>: Likewise.
5514 (frame_stash_add): Return bool.
5515 (get_frame_id): Use bool.
5516 (frame_id_build_special) Use bool.
5517 (frame_id_build_unavailable_stack): Use bool.
5518 (frame_id_build): Use bool.
5519 (frame_id_p): Return bool, use true/false instead of 1/0.
5520 (frame_id_artificial_p): Likewise.
5521 (frame_id_eq): Likewise.
5522 (frame_id_inner): Likewise.
5523 (get_frame_func_if_available): Likewise.
5524 (read_frame_register_unsigned): Likewise.
5525 (deprecated_frame_register_read): Likewise.
5526 (get_frame_register_bytes): Likewise.
5527 (has_stack_frames): Likewise.
5528 (inside_main_func): Likewise.
5529 (inside_entry_func): Likewise.
5530 (get_frame_pc_if_available): Likewise.
5531 (get_frame_address_in_block_if_available): Likewise.
5532 (frame_unwinder_is): Likewise.
5533 (safe_frame_unwind_memory): Likewise.
5534 (frame_unwind_arch): Likewise.
5535
5536 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5537
5538 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5539 type to cached_copy_status.
5540 (fprintf_frame): Adjust.
5541 (get_frame_func_if_available): Adjust.
5542 (frame_cleanup_after_sniffer): Adjust.
5543
5544 2020-08-04 Mark Wielaard <mark@klomp.org>
5545
5546 * MAINTAINERS (Write After Approval): Update email address.
5547
5548 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5549
5550 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5551 dynamic_prop::const_val.
5552
5553 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5556 dynamic_prop::kind.
5557
5558 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5561
5562 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5563
5564 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5565
5566 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5567 Jose E. Marchesi <jose.marchesi@oracle.com>
5568
5569 * configure.tgt: Add entry for bpf-*-*.
5570 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5571 (ALLDEPFILES): Add bpf-tdep.c.
5572 * bpf-tdep.c: New file.
5573 * MAINTAINERS: Add bpf target and maintainer.
5574 * NEWS: Mention the support for the new target.
5575
5576 2020-08-04 Tom de Vries <tdevries@suse.de>
5577
5578 PR symtab/23270
5579 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5580 Error.
5581
5582 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5583
5584 * syscalls/freebsd.xml: Regenerate.
5585
5586 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5587
5588 * syscalls/update-freebsd.sh: Fix usage and year range.
5589
5590 2020-08-03 Tom de Vries <tdevries@suse.de>
5591
5592 PR symtab/26333
5593 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5594 DW_LNE_lo_user/DW_LNE_hi_user range.
5595
5596 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5597
5598 PR ada/26318
5599 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5600 kind.
5601
5602 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5603
5604 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5605
5606 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5607
5608 * breakpoint.c (set_breakpoint_condition): Update the condition
5609 expressions after checking that the input condition string parses
5610 successfully and does not contain junk at the end.
5611
5612 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5613
5614 * breakpoint.c (set_breakpoint_condition): Update the
5615 condition string after parsing the new condition successfully.
5616
5617 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5618
5619 * proc-api.c (_STRUCTURED_PROC): Don't define.
5620 * proc-events.c: Likewise.
5621 * proc-flags.c: Likewise.
5622 * proc-why.c: Likewise.
5623 * procfs.c: Likewise.
5624
5625 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5626 * configure, config.in: Regenerate.
5627
5628 2020-07-30 Tom de Vries <tdevries@suse.de>
5629
5630 PR build/26320
5631 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5632 m_red/m_green/m_blue in a union.
5633
5634 2020-07-29 Tom de Vries <tdevries@suse.de>
5635
5636 PR tdep/26280
5637 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5638
5639 2020-07-28 Tom Tromey <tromey@adacore.com>
5640
5641 PR symtab/26270:
5642 * symtab.h (find_pc_partial_function_sym): Declare.
5643 * cli/cli-cmds.c (disassemble_command): Use
5644 find_pc_partial_function_sym. Check asm_demangle.
5645 * blockframe.c (cache_pc_function_sym): New global.
5646 (cache_pc_function_name): Remove.
5647 (clear_pc_function_cache): Update.
5648 (find_pc_partial_function_sym): New function, from
5649 find_pc_partial_function.
5650 (find_pc_partial_function): Rewrite using
5651 find_pc_partial_function_sym.
5652
5653 2020-07-28 Tom Tromey <tromey@adacore.com>
5654
5655 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5656 help. Add usage.
5657
5658 2020-07-28 Tom Tromey <tromey@adacore.com>
5659
5660 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5661 <DW_OP_GNU_variable_value>: Cast to address type.
5662
5663 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5664
5665 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5666 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5667 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5668 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5669 (nbsd_get_siginfo_type): New.
5670 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5671 (_initialize_nbsd_tdep): New.
5672
5673 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5674
5675 PR binutils/26301
5676 * configure: Regenerated.
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 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * python/py-frame.c: Remove 'user-regs.h' include.
5686 (frapy_read_register): Rewrite to make use of
5687 gdbpy_parse_register_id.
5688 * python/py-registers.c (gdbpy_parse_register_id): New function,
5689 moved here from python/py-unwind.c. Updated the return type, and
5690 also accepts register descriptor objects.
5691 * python/py-unwind.c: Remove 'user-regs.h' include.
5692 (pyuw_parse_register_id): Moved to python/py-registers.c.
5693 (unwind_infopy_add_saved_register): Update to use
5694 gdbpy_parse_register_id.
5695 (pending_framepy_read_register): Likewise.
5696 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5697
5698 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * python/py-registers.c: Add 'user-regs.h' include.
5701 (register_descriptor_iter_find): New function.
5702 (register_descriptor_iterator_object_methods): New static global
5703 methods array.
5704 (register_descriptor_iterator_object_type): Add pointer to methods
5705 array.
5706
5707 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5708
5709 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5710 for all architectures on FreeBSD 11.3 and later.
5711
5712 2020-07-27 Tom Tromey <tromey@adacore.com>
5713
5714 * gcore.h (load_corefile): Don't declare.
5715
5716 2020-07-27 Tom de Vries <tdevries@suse.de>
5717
5718 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5719 * config.in: Regenerate.
5720 * configure: Regenerate.
5721
5722 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5723
5724 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5725 ws2tcpip.h. When checking whether socklen_t type is defined, use
5726 ws2tcpip.h if it is available and sys/socket.h isn't.
5727 * configure: Regenerate.
5728 * config.in: Regenerate.
5729
5730 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5731
5732 PR fortran/23051
5733 PR fortran/26139
5734 * valops.c (value_ind): Pass address to
5735 readjust_indirect_value_type.
5736 * value.c (readjust_indirect_value_type): Make parameter
5737 non-const, and add extra address parameter. Resolve original type
5738 before using it.
5739 * value.h (readjust_indirect_value_type): Update function
5740 signature and comment.
5741
5742 2020-07-25 Tom de Vries <tdevries@suse.de>
5743
5744 PR symtab/26243
5745 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5746 entries.
5747
5748 2020-07-24 Aaron Merey <amerey@redhat.com>
5749
5750 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5751 * configure: Rebuild.
5752
5753 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5754
5755 PR corefiles/26294
5756 * corelow.c (_initialize_corelow): Add period to help text
5757 for "maintenance print core-file-backed-mappings".
5758
5759 2020-07-23 Pedro Alves <pedro@palves.net>
5760
5761 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5762 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5763 meanwhile.
5764 * frame.c (frame_cache_generation, get_frame_cache_generation):
5765 New.
5766 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5767 (get_prev_frame_if_no_cycle): On exception, don't touch
5768 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5769 * frame.h (get_frame_cache_generation): Declare.
5770
5771 2020-07-23 Tom de Vries <tdevries@suse.de>
5772
5773 PR tui/26282
5774 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5775 New default constructor.
5776
5777 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5780 exclude non-statement entries.
5781
5782 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5783
5784 * NEWS (New commands): Mention new command
5785 "maintenance print core-file-backed-mappings".
5786
5787 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5788
5789 * corelow.c (gdbcmd.h): Include.
5790 (core_target::info_proc_mappings): New method.
5791 (get_current_core_target): New function.
5792 (maintenance_print_core_file_backed_mappings): New function.
5793 (_initialize_corelow): Add core-file-backed-mappings to
5794 "maint print" commands.
5795
5796 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5797
5798 * linux-tdep.c (dump_note_entry_p): New function.
5799 (linux_dump_mapping_p_ftype): New typedef.
5800 (linux_find_memory_regions_full): Add new parameter,
5801 should_dump_mapping_p.
5802 (linux_find_memory_regions): Adjust call to
5803 linux_find_memory_regions_full.
5804 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5805 call to linux_find_memory_regions_full.
5806
5807 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5808
5809 * corelow.c (solist.h, unordered_map): Include.
5810 (class core_target): Add field m_core_file_mappings and
5811 method build_file_mappings.
5812 (core_target::core_target): Call build_file_mappings.
5813 (core_target::~core_target): Free memory associated with
5814 m_core_file_mappings.
5815 (core_target::build_file_mappings): New method.
5816 (core_target::xfer_partial): Use m_core_file_mappings
5817 for memory transfers.
5818 * linux-tdep.c (linux_read_core_file_mappings): New
5819 function.
5820 (linux_core_info_proc_mappings): Rewrite to use
5821 linux_read_core_file_mappings.
5822 (linux_init_abi): Register linux_read_core_file_mappings.
5823
5824 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5825
5826 * arch-utils.c (default_read_core_file_mappings): New function.
5827 * arch-utils.c (default_read_core_file_mappings): Declare.
5828 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5829 * gdbarch.h, gdbarch.c: Regenerate.
5830
5831 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5832
5833 PR corefiles/25631
5834 * corelow.c (core_target:xfer_partial): Revise
5835 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5836 case after first checking the stratum beneath the core
5837 target.
5838 (has_all_memory): Return true.
5839 * target.c (raw_memory_xfer_partial): Revise comment
5840 regarding use of has_all_memory.
5841
5842 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5843
5844 * exec.h (section_table_xfer_memory): Revise declaration,
5845 replacing section name parameter with an optional callback
5846 predicate.
5847 * exec.c (section_table_xfer_memory): Likewise.
5848 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5849 of section_table_xfer_memory.
5850
5851 2020-07-22 Tom Tromey <tromey@adacore.com>
5852
5853 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5854 lookup_symbol_search_name.
5855
5856 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5859 redundant local variable.
5860 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5861 reference, not pointer, update code accordingly.
5862
5863 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5864 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5865
5866 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5867 * jit.c (jit_breakpoint_re_set_internal): Use the
5868 `skip_jit_symbol_lookup` field.
5869
5870 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5871 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5872
5873 * jit.c (jit_read_descriptor): Define the descriptor address once,
5874 use twice.
5875 (jit_breakpoint_deleted): Move the declaration of the loop variable
5876 `iter` into the loop header.
5877 (jit_breakpoint_re_set_internal): Move the declaration of the local
5878 variable `objf_data` to the first point of definition.
5879 (jit_event_handler): Move the declaration of local variables
5880 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5881 Rename `objf` to `jited`.
5882
5883 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5886 Remove.
5887 * jit.c (get_jiter_objfile_data): Update.
5888
5889 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5890 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * jit.c (struct jit_program_space_data): Remove.
5893 (jit_program_space_key): Remove.
5894 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5895 stuff.
5896 (get_jit_program_space_data): Remove.
5897 (jit_breakpoint_deleted): Iterate on all of the program space's
5898 objfiles.
5899 (jit_inferior_init): Likewise.
5900 (jit_breakpoint_re_set_internal): Likewise. Also change return
5901 type to void.
5902 (jit_breakpoint_re_set): Pass current_program_space to
5903 jit_breakpoint_re_set_internal.
5904
5905 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * jit.h (struct jiter_objfile_data) <cached_code_address,
5908 jit_breakpoint>: Move to here from ...
5909 * jit.c (jit_program_space_data): ... here.
5910 (jiter_objfile_data::~jiter_objfile_data): Update.
5911 (jit_breakpoint_deleted): Update.
5912 (jit_breakpoint_re_set_internal): Update.
5913
5914 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5915
5916 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5917 checks.
5918 (jit_read_descriptor): Remove NULL check.
5919 (jit_event_handler): Add an assertion.
5920
5921 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * jit.h (struct jit_objfile_data): Split into...
5924 (struct jiter_objfile_data): ... this ...
5925 (struct jited_objfile_data): ... and this.
5926 * objfiles.h (struct objfile) <jit_data>: Remove.
5927 <jiter_data, jited_data>: New fields.
5928 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5929 (jiter_objfile_data::~jiter_objfile_data): ... this.
5930 (get_jit_objfile_data): Rename to ...
5931 (get_jiter_objfile_data): ... this.
5932 (add_objfile_entry): Update.
5933 (jit_read_descriptor): Use get_jiter_objfile_data.
5934 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5935 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5936 (jit_inferior_exit_hook): Use objfile's jited_data field.
5937
5938 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * jit.h: Forward-declare `struct minimal_symbol`.
5941 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5942 constructor, destructor, and an objfile* field.
5943 * jit.c (jit_objfile_data): Remove.
5944 (struct jit_objfile_data): Migrate from here to jit.h.
5945 (jit_objfile_data::~jit_objfile_data): New destructor
5946 implementation with code moved from free_objfile_data.
5947 (free_objfile_data): Delete.
5948 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5949 (jit_find_objf_with_entry_addr): Ditto.
5950 (jit_inferior_exit_hook): Ditto.
5951 (_initialize_jit): Remove the call to
5952 register_objfile_data_with_cleanup.
5953 * objfiles.h (struct objfile) <jit_data>: New field.
5954
5955 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5956
5957 * jit.h: Forward-declare `struct objfile`.
5958 (jit_event_handler): Add a second parameter, the JITer objfile.
5959 * jit.c (jit_read_descriptor): Change the signature to take the
5960 JITer objfile as an argument instead of the jit_program_space_data.
5961 (jit_inferior_init): Update the call to jit_read_descriptor.
5962 (jit_event_handler): Use the new JITer objfile argument when calling
5963 jit_read_descriptor.
5964 * breakpoint.c (handle_jit_event): Update the call to
5965 jit_event_handler to pass the JITer objfile.
5966
5967 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5968
5969 * gdbarch.c: Regenerate.
5970 * gdbarch.h: Regenerate.
5971 * gdbarch.sh (handle_segmentation_fault): Remove method.
5972 * infrun.c (handle_segmentation_fault): Remove.
5973 (print_signal_received_reason): Remove call to
5974 handle_segmentation_fault.
5975
5976 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5977
5978 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5979 Rename to sparc64_linux_report_signal_info and add siggnal
5980 argument.
5981 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5982 instead of sparc64_linux_handle_segmentation_fault.
5983
5984 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5985
5986 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5987 i386_linux_report_signal_info instead of
5988 i386_linux_handle_segmentation_fault.
5989 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5990 to i386_linux_report_signal_info and add siggnal argument.
5991 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5992 of i386_linux_handle_segmentation_fault.
5993 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5994 to i386_linux_report_signal_info and add siggnal argument.
5995
5996 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5997
5998 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5999 hook if present.
6000
6001 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6002
6003 * gdbarch.c: Regenerate.
6004 * gdbarch.h: Regenerate.
6005 * gdbarch.sh (report_signal_info): New method.
6006 * infrun.c (print_signal_received_reason): Invoke gdbarch
6007 report_signal_info hook if present.
6008
6009 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6010
6011 * python/py-registers.c : Add 'unordered_map' include.
6012 (gdbpy_new_reggroup): Renamed to...
6013 (gdbpy_get_reggroup): ...this. Update to only create register
6014 group descriptors when needed.
6015 (gdbpy_reggroup_iter_next): Update.
6016
6017 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6018
6019 * python/py-registers.c (gdbpy_register_object_data): New static
6020 global.
6021 (gdbpy_register_object_data_init): New function.
6022 (gdbpy_new_register_descriptor): Renamed to...
6023 (gdbpy_get_register_descriptor): ...this, and update to reuse
6024 existing register descriptors where possible.
6025 (gdbpy_register_descriptor_iter_next): Update.
6026 (gdbpy_initialize_registers): Register new gdbarch data.
6027
6028 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6029
6030 * linux-nat.c (stopped_pids): Make static.
6031
6032 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 PR ada/26235
6035 * gdbtypes.c (ada_discrete_type_low_bound,
6036 ada_discrete_type_high_bound): Handle undefined bounds.
6037
6038 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6039
6040 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6041 declaration.
6042 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6043 function.
6044
6045 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6046
6047 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6048 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6049 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6050 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6051 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6052 method.
6053
6054 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6055
6056 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6057 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6058 which are deprecated in Guile 3.0.
6059 * configure.ac (try_guile_versions): Add "guile-3.0".
6060 * configure (try_guile_versions): Regenerate.
6061 * NEWS: Update entry.
6062
6063 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6064 Doug Evans <dje@google.com>
6065
6066 PR gdb/21104
6067 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6068 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6069 USING_GUILE_BEFORE_2_2.
6070 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6071 Change type to 'scm_t_port_type *'.
6072 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6073 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6074 parameter and honor it. Update callers.
6075 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6076 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6077 functions.
6078 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6079 USING_GUILE_BEFORE_2_2.
6080 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6081 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6082 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6083 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6084 and 'SCM_PORT_TYPE'.
6085 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6086 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6087 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6088 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6089 [!USING_GUILE_BEFORE_2_2]: New functions.
6090 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6091 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6092 'gdbscm_memory_port_read'.
6093 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6094 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6095 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6096 function.
6097 (ioscm_init_memory_port): Remove.
6098 (ioscm_init_memory_port_stream): New function
6099 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6100 function.
6101 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6102 Return scm_from_uint (0).
6103 (gdbscm_set_memory_port_read_buffer_size_x)
6104 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6105 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6106 Return scm_from_uint (0).
6107 (gdbscm_set_memory_port_write_buffer_size_x)
6108 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6109 * configure.ac (try_guile_versions): Add "guile-2.2".
6110 * configure: Regenerate.
6111 * NEWS: Add entry.
6112
6113 2020-07-18 Tom Tromey <tom@tromey.com>
6114
6115 * linux-nat.c (linux_multi_process): Remove.
6116 (linux_nat_target::supports_multi_process): Return true.
6117
6118 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6119
6120 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6121 (riscv_lookup_target_description): Return pointer out of
6122 unique_ptr.
6123 * target-descriptions.c (allocate_target_description): Add
6124 comment.
6125 (target_desc_deleter::operator()): Likewise.
6126 * target-descriptions.h (struct target_desc_deleter): Moved to
6127 gdbsupport/tdesc.h.
6128 (target_desc_up): Likewise.
6129
6130 2020-07-17 Tom Tromey <tromey@adacore.com>
6131
6132 * linux-nat.c (linux_nat_target::supports_non_stop)
6133 (linux_nat_target::always_non_stop_p): Use "true".
6134 (linux_nat_target::supports_disable_randomization): Use "true" and
6135 "false".
6136
6137 2020-07-16 Caroline Tice <cmtice@google.com>
6138
6139 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6140 (RNGLIST_HEADER_SIZE64): New constant definition.
6141 (struct dwop_section_names): Add rnglists_dwo.
6142 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6143 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6144 (struct dwo_sections): Add rnglists field.
6145 (read_attribut_reprocess): Add tag parameter.
6146 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6147 (cu_debug_rnglists_section): New function (decl & definition).
6148 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6149 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6150 die whose range is being checked; get rnglist section from
6151 cu_debug_rnglists_section, to get from either objfile or dwo file as
6152 appropriate. Add cases for DW_RLE_base_addressx,
6153 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6154 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6155 test inside if-condition and updating complaint message.
6156 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6157 dwarf2_rnglists_process.
6158 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6159 dwarf2_ranges_process.
6160 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6161 need_ranges_base and update comment appropriately. Also pass die tag
6162 to dwarf2_ranges_read.
6163 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6164 need_ranges_base and update comment appropriately. Also pass die tag
6165 to dwarf2_ranges_process.
6166 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6167 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6168 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6169 need_ranges_base and update comment appropriately. Also pass die tag
6170 to read_attribute_reprocess and dwarf2_ranges_read.
6171 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6172 and update function comment appropriately.
6173 (read_loclist_index): Call read_loclists_rnglists_header instead of
6174 read_loclist_header.
6175 (read_rnglist_index): New function.
6176 (read_attribute_reprocess): Add tag parameter. Add code for
6177 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6178 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6179
6180 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6183 being resolved.
6184
6185 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * arch-utils.c (show_architecture): Update formatting of messages.
6188
6189 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * gdbtypes.h (struct type) <bounds>: Handle array and string
6192 types.
6193 * ada-lang.c (assign_aggregate): Use type::bounds on
6194 array/string type.
6195 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6196 * c-varobj.c (c_number_of_children): Likewise.
6197 (c_describe_child): Likewise.
6198 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6199 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6200 (f_type_print_base): Likewise.
6201 * f-valprint.c (f77_array_offset_tbl): Likewise.
6202 (f77_get_upperbound): Likewise.
6203 (f77_print_array_1): Likewise.
6204 * guile/scm-type.c (gdbscm_type_range): Likewise.
6205 * m2-typeprint.c (m2_array): Likewise.
6206 (m2_is_long_set_of_type): Likewise.
6207 * m2-valprint.c (get_long_set_bounds): Likewise.
6208 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6209 * python/py-type.c (typy_range): Likewise.
6210 * rust-lang.c (rust_internal_print_type): Likewise.
6211 * type-stack.c (type_stack::follow_types): Likewise.
6212 * valarith.c (value_subscripted_rvalue): Likewise.
6213 * valops.c (value_cast): Likewise.
6214
6215 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6218 callers to use the equivalent accessor methods.
6219
6220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6221
6222 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6223 (struct type) <bit_stride>: New method.
6224 (TYPE_BIT_STRIDE): Remove.
6225 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6226
6227 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6228
6229 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6230 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6231 callers to use the equivalent accessor methods instead.
6232
6233 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6236 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6237 callers to use the equivalent accessor methods instead.
6238
6239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6240
6241 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6242 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6243 to use dynamic_prop::kind.
6244
6245 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6248 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6249 to get the bound property's kind and check against
6250 PROP_UNDEFINED.
6251
6252 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6255 all callers to use type::range_bounds followed by
6256 dynamic_prop::{low,high}.
6257
6258 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6261 const_val, set_const_val, baton, set_locexpr, set_loclist,
6262 set_addr_offset, variant_parts, set_variant_parts,
6263 original_type, set_original_type>: New methods.
6264 <kind>: Rename to...
6265 <m_kind>: ... this. Update all users to use the new methods
6266 instead.
6267 <data>: Rename to...
6268 <m_data>: ... this. Update all users to use the new methods
6269 instead.
6270
6271 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6272
6273 * gdbtypes.c (get_discrete_bounds): Return failure if
6274 the range type's bounds are not both defined and constant
6275 values.
6276 (get_array_bounds): Update comment. Remove undefined bound check.
6277
6278 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6281 the type::bounds method directly.
6282
6283 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6284
6285 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6286 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6287 are used to set the range type's bounds to use set_bounds.
6288
6289 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6290
6291 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6292
6293 2020-07-10 Pedro Alves <pedro@palves.net>
6294
6295 * gdbthread.h (inferior_ref): Define.
6296 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6297 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6298 * thread.c
6299 (scoped_restore_current_thread::restore):
6300 Adjust to gdb::ref_ptr.
6301 (scoped_restore_current_thread::~scoped_restore_current_thread):
6302 Remove manual decref handling.
6303 (scoped_restore_current_thread::scoped_restore_current_thread):
6304 Adjust to use
6305 inferior_ref::new_reference/thread_info_ref::new_reference.
6306 Incref the thread before calling get_frame_id instead of after.
6307 Let TARGET_CLOSE_ERROR propagate.
6308
6309 2020-07-10 Pedro Alves <pedro@palves.net>
6310
6311 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6312 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6313 NOT_AVAILABLE_ERROR.
6314 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6315 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6316
6317 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6318 Pedro Alves <pedro@palves.net>
6319
6320 PR gdb/26199
6321 * infrun.c (threads_are_resumed_pending_p): Delete.
6322 (do_target_wait): Remove threads_are_executing and
6323 threads_are_resumed_pending_p checks from the inferior_matches
6324 lambda. Update comments.
6325
6326 2020-07-10 Pedro Alves <pedro@palves.net>
6327
6328 PR gdb/26199
6329 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6330 executing threads.
6331
6332 2020-07-10 Pedro Alves <pedro@palves.net>
6333
6334 PR gdb/26199
6335 * infrun.c (handle_no_resumed): Handle multiple targets.
6336
6337 2020-07-10 Pedro Alves <pedro@palves.net>
6338
6339 PR gdb/26199
6340 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6341 target_is_async_p.
6342
6343 2020-07-10 Pedro Alves <pedro@palves.net>
6344
6345 PR gdb/26199
6346 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6347 threads, not all threads.
6348
6349 2020-07-10 Pedro Alves <pedro@palves.net>
6350
6351 PR gdb/26199
6352 * remote.c (remote_target::open_1): Pass remote target pointer as
6353 data to create_async_event_handler.
6354 (remote_async_inferior_event_handler): Mark async event handler
6355 before returning if the remote target still has either pending
6356 events or unacknowledged notifications.
6357
6358 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6359
6360 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6361 declaration.
6362 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6363 function.
6364
6365 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6366
6367 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6368 inferior_ptid.
6369
6370 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6371
6372 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6373 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6374 AT_FREEBSD_PS_STRINGS.
6375
6376 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6377
6378 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6379 of debugfile path on Windows.
6380
6381 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6382
6383 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6384 argument to 'data'.
6385
6386 2020-07-08 Tom Tromey <tromey@adacore.com>
6387
6388 * ada-lang.c (ada_exception_message_1): Use read_memory.
6389
6390 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 PR python/22748
6393 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6394 special handling for inline frames.
6395 * findvar.c (value_of_register_lazy): Skip inline frames when
6396 creating lazy register values.
6397 * frame.c (frame_id_computed_p): Delete definition.
6398 * frame.h (frame_id_computed_p): Delete declaration.
6399
6400 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6401
6402 * NEWS: Mention additions to Python API.
6403 * python/py-arch.c (archpy_register_groups): New function.
6404 (arch_object_methods): Add 'register_groups' method.
6405 * python/py-registers.c (reggroup_iterator_object): New struct.
6406 (reggroup_object): New struct.
6407 (gdbpy_new_reggroup): New function.
6408 (gdbpy_reggroup_to_string): New function.
6409 (gdbpy_reggroup_name): New function.
6410 (gdbpy_reggroup_iter): New function.
6411 (gdbpy_reggroup_iter_next): New function.
6412 (gdbpy_new_reggroup_iterator): New function
6413 (gdbpy_initialize_registers): Register new types.
6414 (reggroup_iterator_object_type): Define new Python type.
6415 (gdbpy_reggroup_getset): New static global.
6416 (reggroup_object_type): Define new Python type.
6417 * python/python-internal.h
6418
6419 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6422 * python/py-arch.c (archpy_registers): New function.
6423 (arch_object_methods): Add 'registers' method.
6424 * python/py-registers.c: New file.
6425 * python/python-internal.h
6426 (gdbpy_new_register_descriptor_iterator): Declare.
6427 (gdbpy_initialize_registers): Declare.
6428 * python/python.c (do_start_initialization): Call
6429 gdbpy_initialize_registers.
6430 * NEWS: Mention additions to the Python API.
6431
6432 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6433
6434 * NEWS: Mention new Python API method.
6435 * python/py-unwind.c (pending_framepy_architecture): New function.
6436 (pending_frame_object_methods): Add architecture method.
6437
6438 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * gdbarch.c: Regenerate.
6441 * gdbarch.h: Regenerate.
6442 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6443 (gdbarch_data): Use internal_error for the case where
6444 deprecated_set_gdbarch_data was originally needed.
6445 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6446 and use passed in obstack.
6447 (libunwind_frame_set_descr): Should no longer get back NULL from
6448 gdbarch_data.
6449 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6450 type.
6451 * user-regs.c (user_regs_init): Update parameters, and use passed
6452 in obstack.
6453 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6454 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6455
6456 2020-07-06 Tom de Vries <tdevries@suse.de>
6457
6458 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6459 End-Of-Sequence in lte_is_less_than.
6460 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6461 "gdb: Don't reorder line table entries too much when sorting".
6462
6463 2020-07-06 Tom de Vries <tdevries@suse.de>
6464
6465 PR tui/26205
6466 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6467
6468 2020-07-05 Tom de Vries <tdevries@suse.de>
6469
6470 PR build/26187
6471 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6472 std::uncaught_exceptions instead of deprecated
6473 std::uncaught_exception.
6474
6475 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6476
6477 * macroexp.h (macro_stringify): Return
6478 gdb::unique_xmalloc_ptr<char>.
6479 * macroexp.c (macro_stringify): Likewise.
6480 * macrotab.c (fixup_definition): Update.
6481
6482 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6485 (lex_one_token): Update.
6486 * macroexp.c (struct macro_buffer) <release>: Return
6487 gdb::unique_xmalloc_ptr<char>.
6488 (macro_stringify): Update.
6489 (macro_expand): Update.
6490 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6491 * macroexp.h (macro_expand_next): Likewise.
6492
6493 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6494
6495 * macroexp.h (macro_lookup_ftype): Remove.
6496 (macro_expand, macro_expand_once, macro_expand_next): Remove
6497 lookup function parameters, add scope parameter.
6498 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6499 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6500 * macroscope.h (standard_macro_lookup): Change parameter type
6501 to macro_scope.
6502 * macroscope.c (standard_macro_lookup): Likewise.
6503 * c-exp.y (lex_one_token): Update.
6504 * macrocmd.c (macro_expand_command): Likewise.
6505 (macro_expand_once_command): Likewise.
6506
6507 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6508
6509 * inf-loop.c (inferior_event_handler): Remove client_data param.
6510 * inf-loop.h (inferior_event_handler): Likewise.
6511 * infcmd.c (step_1): Adjust.
6512 * infrun.c (proceed): Adjust.
6513 (fetch_inferior_event): Remove client_data param.
6514 (infrun_async_inferior_event_handler): Adjust.
6515 * infrun.h (fetch_inferior_event): Remove `void *` param.
6516 * linux-nat.c (handle_target_event): Adjust.
6517 * record-btrace.c (record_btrace_handle_async_inferior_event):
6518 Adjust.
6519 * record-full.c (record_full_async_inferior_event_handler):
6520 Adjust.
6521 * remote.c (remote_async_inferior_event_handler): Adjust.
6522
6523 2020-07-01 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6526 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6527
6528 2020-07-01 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6531 tui_gen_win_info.
6532 (tui_win_info::make_window): Merge with
6533 tui_gen_win_info::make_window.
6534 (tui_win_info::make_visible): Move from tui_gen_win_info.
6535 * tui/tui-win.c (tui_win_info::max_width): Move from
6536 tui_gen_win_info.
6537 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6538 type.
6539 <window_factory>: Likewise.
6540 * tui/tui-layout.c (tui_win_info::resize): Move from
6541 tui_gen_win_info.
6542 (make_standard_window): Change return type.
6543 (get_locator_window, tui_get_window_by_name): Likewise.
6544 (tui_layout_window::apply): Remove a cast.
6545 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6546 (struct tui_win_info): Merge with tui_gen_win_info.
6547 (struct tui_gen_win_info): Remove.
6548
6549 2020-07-01 Tom Tromey <tom@tromey.com>
6550
6551 * tui/tui-stack.h (struct tui_locator_window): Derive from
6552 tui_win_info.
6553 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6554 <can_box>: New method.
6555
6556 2020-07-01 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6559
6560 2020-07-01 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-regs.c (tui_data_window::display_registers_from)
6563 (tui_data_window::display_registers_from)
6564 (tui_data_window::first_data_item_displayed)
6565 (tui_data_window::delete_data_content_windows): Update.
6566 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6567 Remove.
6568 (tui_data_window::check_register_values): Update.
6569 (tui_data_item_window::rerender): Add parameters. Update.
6570 (tui_data_item_window::refresh_window): Remove.
6571 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6572 virtual.
6573 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6574 tui_gen_win_info.
6575 <refresh_window, max_height, min_height>: Remove.
6576 <rerender>: Add parameters.
6577 <x, y, visible>: New members.
6578 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6579 <m_item_width>: New member.
6580
6581 2020-07-01 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-regs.c (tui_data_window::show_register_group)
6584 (tui_data_window::check_register_values): Update.
6585 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6586 from item_no.
6587
6588 2020-07-01 Tom Tromey <tom@tromey.com>
6589
6590 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6591 useless "if".
6592
6593 2020-07-01 Tom Tromey <tom@tromey.com>
6594
6595 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6596 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6597
6598 2020-07-01 Tom Tromey <tom@tromey.com>
6599
6600 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6601 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6602 (struct tui_line_or_address): Move from tui-data.h.
6603 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6604 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6605 (tui_cmd_window, tui_source_window_base, tui_source_window)
6606 (tui_disasm_window): Don't declare.
6607 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6608 to tui-winsource.h.
6609 (SINGLE_KEY): Move to tui-stack.c.
6610
6611 2020-07-01 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6614 std::string.
6615 * tui/tui-regs.c (class tab_expansion_file): New.
6616 (tab_expansion_file::write): New method.
6617 (tui_register_format): Change return type. Use
6618 tab_expansion_file.
6619 (tui_get_register, tui_data_window::display_registers_from)
6620 (tui_data_item_window::rerender): Update.
6621 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6622 * tui/tui-io.c (tui_expand_tabs): Remove.
6623
6624 2020-07-01 Tom Tromey <tom@tromey.com>
6625
6626 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6627
6628 2020-07-01 Fangrui Song <maskray@google.com>
6629
6630 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6631
6632 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6633
6634 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6635 forms for DW_AT_associated and DW_AT_allocated attributes,
6636 which is already checked in function attr_to_dynamic_prop.
6637
6638 2020-06-30 Tom Tromey <tromey@adacore.com>
6639
6640 * dwarf2/read.c (quirk_rust_enum): Correctly call
6641 alloc_rust_variant for default-less enum.
6642
6643 2020-06-30 Tom Tromey <tromey@adacore.com>
6644
6645 PR build/26183:
6646 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6647 gdb::to_string.
6648
6649 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6652 * gdbarch.h: Re-generate.
6653
6654 2020-06-28 Tom Tromey <tom@tromey.com>
6655
6656 * command.h (cmd_types): Remove.
6657 (cmd_type): Don't declare.
6658 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6659 typedef.
6660 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6661 * cli/cli-decode.c (cmd_type): Remove.
6662
6663 2020-06-27 Pedro Alves <palves@redhat.com>
6664
6665 * fork-child.c (prefork_hook): Adjust.
6666 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6667 Delete.
6668 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6669 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6670 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6671 Remove declarations.
6672 (struct inferior) <set_tty, tty>: New methods.
6673 (struct inferior) <terminal>: Rename to ...
6674 (struct inferior) <m_terminal>: ... this and make private.
6675 * main.c (captured_main_1): Adjust.
6676 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6677 (mi_cmd_inferior_tty_show): Adjust.
6678 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6679 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6680
6681 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6682
6683 * configure.ac: Add --enable-libctf: handle --disable-static
6684 properly.
6685 * acinclude.m4: sinclude ../config/enable.m4.
6686 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6687 (LIBCTF): Substitute in.
6688 (CTF_DEPS): New, likewise.
6689 (CLIBS): libctf needs symbols from libbfd: move earlier.
6690 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6691 flags.
6692 * ctfread.c: Surround in ENABLE_LIBCTF.
6693 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6694 * configure: Regenerate.
6695 * config.in: Likewise.
6696
6697 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6700
6701 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * inferior.h (struct inferior) <terminal>: Change type to
6704 gdb::unique_xmalloc_ptr<char>.
6705 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6706 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6707 field, adjust to unique pointer.
6708 (get_inferior_io_terminal): Adjust to unique pointer.
6709
6710 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6713 registers, not just the known core set of registers.
6714
6715 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6716
6717 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6718 fflags, frm, and fcsr registers.
6719 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6720 restore groups.
6721 (riscv_tdesc_unknown_reg): New function.
6722 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6723 tdesc_use_registers.
6724 * riscv-tdep.h (struct gdbarch_tdep): Add
6725 unknown_csrs_first_regnum, unknown_csrs_count,
6726 duplicate_fflags_regnum, duplicate_frm_regnum, and
6727 duplicate_fcsr_regnum fields.
6728
6729 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6732 callback, use the callback (when not null) to help number unknown
6733 registers.
6734 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6735 (tdesc_use_registers): Add extra parameter to declaration.
6736
6737 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6740 in the file.
6741 (class riscv_pending_register_alias): Likewise.
6742 (riscv_register_feature::register_info): Change 'required_p' field
6743 to 'required', and change its type. Add 'check' member function.
6744 (riscv_register_feature::register_info::check): Define new member
6745 function.
6746 (riscv_xreg_feature): Change initialisation of 'required' field.
6747 (riscv_freg_feature): Likewise.
6748 (riscv_virtual_feature): Likewise.
6749 (riscv_csr_feature): Likewise.
6750 (riscv_check_tdesc_feature): Take extra parameter, the csr
6751 tdesc_feature, rewrite the function to use the new
6752 riscv_register_feature::register_info::check function.
6753 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6754
6755 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * features/Makefile: Remove all references to the deleted files
6758 below.
6759 * features/riscv/32bit-csr.c: Deleted.
6760 * features/riscv/32bit-csr.xml: Deleted.
6761 * features/riscv/64bit-csr.c: Deleted.
6762 * features/riscv/64bit-csr.xml: Deleted.
6763 * features/riscv/rebuild-csr-xml.sh: Deleted.
6764
6765 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6766
6767 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6768 whitespace error for declaration of names member variable.
6769 (struct riscv_register_feature): Add new prefer_first_name member
6770 variable, and fix whitespace error in declaration of registers.
6771 (riscv_xreg_feature): Initialize prefer_first_name field.
6772 (riscv_freg_feature): Likewise.
6773 (riscv_virtual_feature): Likewise.
6774 (riscv_csr_feature): Likewise.
6775 (riscv_register_name): Expand on comments. Remove register name
6776 modifications for CSR and virtual registers.
6777
6778 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6779
6780 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6781 errors.
6782
6783 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6784
6785 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6786 riscv-opc.h.
6787 (class riscv_pending_register_alias): New class.
6788 (riscv_check_tdesc_feature): Take vector of pending aliases and
6789 populate it as appropriate.
6790 (riscv_setup_register_aliases): Delete.
6791 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6792 to riscv_check_tdesc_feature in all cases. Use the vector to
6793 create the register aliases.
6794
6795 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6796
6797 * sol2-tdep.c (sol2_static_transform_name): Remove.
6798 (sol2_init_abi): Don't register it.
6799 * gdbarch.sh (static_transform_name): Remove.
6800 * gdbarch.c, gdbarch.h: Regenerate.
6801
6802 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6803 gdbarch_static_transform_name.
6804 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6805 * stabsread.c (define_symbol) <'X'>: Remove.
6806 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6807 handling.
6808 <'V'>: Likewise.
6809 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6810 <'S'>: Remove call to gdbarch_static_transform_name.
6811
6812 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6813
6814 * procfs.c (procfs_pre_trace): New function.
6815 (procfs_target::create_inferior): Pass it to fork_inferior.
6816
6817 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6818
6819 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6820 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6821 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6822 sol2-tdep.o, sparc-sol2-tdep.o.
6823 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6824 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6825 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6826 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6827
6828 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6829
6830 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6831 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6832 Call sol2_init_abi.
6833 Remove calls to set_gdbarch_skip_solib_resolver,
6834 set_gdbarch_core_pid_to_str.
6835 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6836 (i386_sol2_static_transform_name): Remove.
6837 (i386_sol2_init_abi): Call sol2_init_abi.
6838 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6839 set_gdbarch_static_transform_name,
6840 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6841 Use sol2_sigtramp_p.
6842 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6843 (sol2_sigtramp_p): New function.
6844 (sol2_static_transform_name): New function.
6845 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6846 (sol2_init_abi): New function.
6847 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6848 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6849 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6850 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6851 (sparc_sol2_static_transform_name): Remove.
6852 (sparc32_sol2_init_abi): Call sol2_init_abi.
6853 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6854 set_gdbarch_static_transform_name,
6855 set_gdbarch_skip_solib_resolver,
6856 set_gdbarch_core_pid_to_str.
6857 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6858 (sparc_sol2_static_transform_name): Remove
6859 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6860 call sol2_sigtramp_p.
6861 (sparc64_sol2_init_abi): Call sol2_init_abi.
6862 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6863 set_gdbarch_static_transform_name,
6864 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6865
6866 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6867
6868 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6869 * exec.c (validate_exec_file): If from_tty, set both
6870 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6871 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6872 and from_tty, unconditionally ask a confirmation.
6873
6874 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6875
6876 * target-descriptions.c (tdesc_architecture_name): Protect against
6877 NULL pointer dereference.
6878 (maint_print_xml_tdesc_cmd): New function.
6879 (_initialize_target_descriptions): Register new 'maint print
6880 xml-tdesc' command and give it the filename completer.
6881 * NEWS: Mention new 'maint print xml-tdesc' command.
6882
6883 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6884
6885 * target-descriptions.c (class tdesc_compatible_info): New class.
6886 (struct target_desc): Change type of compatible vector.
6887 (tdesc_compatible_p): Update for change in type of
6888 target_desc::compatible.
6889 (tdesc_compatible_info_list): New function.
6890 (tdesc_compatible_info_arch_name): New function.
6891 (tdesc_add_compatible): Update for change in type of
6892 target_desc::compatible.
6893 (print_c_tdesc::visit_pre): Likewise.
6894
6895 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6898 whitespace to underscore.
6899 (maint_print_c_tdesc_cmd): Use fake filename for target
6900 descriptions that came from the target.
6901 (_initialize_target_descriptions): Add filename command completion
6902 for 'maint print c-tdesc'.
6903
6904 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6905
6906 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6907 lines.
6908
6909 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6912 lines.
6913 (dwarf2_find_location_expression): Likewise.
6914 (call_site_parameter_matches): Likewise.
6915 (dwarf2_compile_expr_to_ax): Likewise.
6916 (disassemble_dwarf_expression): Likewise.
6917 (loclist_describe_location): Likewise.
6918
6919 2020-06-23 Pedro Alves <palves@redhat.com>
6920
6921 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6922 progspace-and-thread.h. Include scoped-mock-context.h instead.
6923 (register_to_value_test): Use scoped_mock_context.
6924 * regcache.c: Include "scoped-mock-context.h".
6925 (cooked_read_test): Don't error out if a target is already pushed.
6926 Use scoped_mock_context. Adjust.
6927 * scoped-mock-context.h: New file.
6928
6929 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6932 initializer.
6933 (ada_language::is_string_type_p): New member function.
6934 * c-lang.c (c_language_data): Delete la_is_string_type_p
6935 initializer.
6936 (cplus_language_data): Likewise.
6937 (asm_language_data): Likewise.
6938 (minimal_language_data): Likewise.
6939 * d-lang.c (d_language_data): Likewise.
6940 * f-lang.c (f_is_string_type_p): Delete function, implementation
6941 moved to f_language::is_string_type_p.
6942 (f_language_data): Delete la_is_string_type_p initializer.
6943 (f_language::is_string_type_p): New member function,
6944 implementation from f_is_string_type_p.
6945 * go-lang.c (go_is_string_type_p): Delete function, implementation
6946 moved to go_language::is_string_type_p.
6947 (go_language_data): Delete la_is_string_type_p initializer.
6948 (go_language::is_string_type_p): New member function,
6949 implementation from go_is_string_type_p.
6950 * language.c (language_defn::is_string_type_p): Define new member
6951 function.
6952 (default_is_string_type_p): Make static, add comment copied from
6953 header file.
6954 (unknown_language_data): Delete la_is_string_type_p initializer.
6955 (unknown_language::is_string_type_p): New member function.
6956 (auto_language_data): Delete la_is_string_type_p initializer.
6957 (auto_language::is_string_type_p): New member function.
6958 * language.h (language_data): Delete la_is_string_type_p field.
6959 (language_defn::is_string_type_p): Declare new function.
6960 (default_is_string_type_p): Delete desclaration, move comment to
6961 definition.
6962 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6963 moved to m2_language::is_string_type_p.
6964 (m2_language_data): Delete la_is_string_type_p initializer.
6965 (m2_language::is_string_type_p): New member function,
6966 implementation from m2_is_string_type_p.
6967 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6968 initializer.
6969 * opencl-lang.c (opencl_language_data): Likewise.
6970 * p-lang.c (pascal_is_string_type_p): Delete function,
6971 implementation moved to pascal_language::is_string_type_p.
6972 (pascal_language_data): Delete la_is_string_type_p initializer.
6973 (pascal_language::is_string_type_p): New member function,
6974 implementation from pascal_is_string_type_p.
6975 * rust-lang.c (rust_is_string_type_p): Delete function,
6976 implementation moved to rust_language::is_string_type_p.
6977 (rust_language_data): Delete la_is_string_type_p initializer.
6978 (rust_language::is_string_type_p): New member function,
6979 implementation from rust_is_string_type_p.
6980 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6981 is_string_type_p.
6982
6983 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * ada-lang.c (ada_language_data): Delete la_print_typedef
6986 initializer.
6987 (ada_language::print_typedef): New member function.
6988 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6989 (cplus_language_data): Likewise.
6990 (asm_language_data): Likewise.
6991 (minimal_language_data): Likewise.
6992 * d-lang.c (d_language_data): Likewise.
6993 * f-lang.c (f_language_data): Likewise.
6994 (f_language::print_typedef): New member function.
6995 * go-lang.c (go_language_data): Delete la_print_typedef
6996 initializer.
6997 * language.c (language_defn::print_typedef): Define member
6998 function.
6999 (unknown_language_data): Delete la_print_typedef initializer.
7000 (unknown_language::print_typedef): New member function.
7001 (auto_language_data): Delete la_print_typedef initializer.
7002 (auto_language::print_typedef): New member function.
7003 * language.h (language_data): Delete la_print_typedef field.
7004 (language_defn::print_typedef): Declare new member function.
7005 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7006 (default_print_typedef): Delete declaration.
7007 * m2-lang.c (m2_language_data): Delete la_print_typedef
7008 initializer.
7009 (m2_language::print_typedef): New member function.
7010 * objc-lang.c (objc_language_data): Delete la_print_typedef
7011 initializer.
7012 * opencl-lang.c (opencl_language_data): Likewise.
7013 * p-lang.c (pascal_language_data): Likewise.
7014 (pascal_language::print_typedef): New member function.
7015 * rust-lang.c (rust_print_typedef): Delete function,
7016 implementation moved to rust_language::print_typedef.
7017 (rust_language): Delete la_print_typedef initializer.
7018 (rust_language::print_typedef): New member function,
7019 implementation from rust_print_typedef.
7020 * typeprint.c (default_print_typedef): Delete.
7021
7022 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7025 (ada_language::printstr): New member function.
7026 * c-lang.c (c_language_data): Delete la_printstr initializer.
7027 (cplus_language_data): Likewise.
7028 (asm_language_data): Likewise.
7029 (minimal_language_data): Likewise.
7030 * d-lang.c (d_language_data): Likewise.
7031 * f-lang.c (f_printstr): Rename to f_language::printstr.
7032 (f_language_data): Delete la_printstr initializer.
7033 (f_language::printstr): New member function, implementation from
7034 f_printstr.
7035 * go-lang.c (go_language_data): Delete la_printstr initializer.
7036 * language.c (language_defn::printstr): Define new member
7037 function.
7038 (unk_lang_printstr): Delete.
7039 (unknown_language_data): Delete la_printstr initializer.
7040 (unknown_language::printstr): New member function.
7041 (auto_language_data): Delete la_printstr initializer.
7042 (auto_language::printstr): New member function.
7043 * language.h (language_data): Delete la_printstr field.
7044 (language_defn::printstr): Declare new member function.
7045 (LA_PRINT_STRING): Update call to printstr.
7046 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7047 (m2_language_data): Delete la_printstr initializer.
7048 (m2_language::printstr): New member function, implementation from
7049 m2_printstr.
7050 * objc-lang.c (objc_language_data): Delete la_printstr
7051 initializer.
7052 * opencl-lang.c (opencl_language_data): Likewise.
7053 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7054 (pascal_language_data): Delete la_printstr initializer.
7055 (pascal_language::printstr): New member function, implementation
7056 from pascal_printstr.
7057 * p-lang.h (pascal_printstr): Delete declaration.
7058 * rust-lang.c (rust_printstr): Update header comment.
7059 (rust_language_data): Delete la_printstr initializer.
7060 (rust_language::printstr): New member function.
7061
7062 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7063
7064 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7065 (ada_language::printchar): New member function.
7066 * c-lang.c (c_language_data): Delete la_printchar initializer.
7067 (cplus_language_data): Likewise.
7068 (asm_language_data): Likewise.
7069 (minimal_language_data): Likewise.
7070 * d-lang.c (d_language_data): Likewise.
7071 * f-lang.c (f_printchar): Rename to f_language::printchar.
7072 (f_language_data): Delete la_printchar initializer.
7073 (f_language::printchar): New member function, implementation from
7074 f_printchar.
7075 * go-lang.c (go_language_data): Delete la_printchar initializer.
7076 * language.c (unk_lang_printchar): Delete.
7077 (language_defn::printchar): Define new member function.
7078 (unknown_language_data): Delete la_printchar initializer.
7079 (unknown_language::printchar): New member function.
7080 (auto_language_data): Delete la_printchar initializer.
7081 (auto_language::printchar): New member function.
7082 * language.h (language_data): Delete la_printchar field.
7083 (language_defn::printchar): Declare new member function.
7084 (LA_PRINT_CHAR): Update call to printchar.
7085 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7086 (m2_language::printchar): New member function.
7087 * objc-lang.c (objc_language_data): Delete la_printchar
7088 initializer.
7089 * opencl-lang.c (opencl_language_data): Likewise.
7090 * p-lang.c (pascal_language_data): Delete la_printchar
7091 initializer.
7092 (pascal_language::printchar): New member function.
7093 * rust-lang.c (rust_printchar): Rename to
7094 rust_language::printchar.
7095 (rust_language_data): Delete la_printchar initializer.
7096 (rust_language::printchar): New member function, implementation
7097 from rust_printchar.
7098
7099 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7100
7101 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7102 (ada_language_data): Delete la_emitchar initializer.
7103 (ada_language::emitchar): New member function, implementation from
7104 emit_char.
7105 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7106 (cplus_language_data): Likewise.
7107 (asm_language_data): Likewise.
7108 (minimal_language_data): Likewise.
7109 * d-lang.c (d_language_data): Likewise.
7110 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7111 (f_language_data): Delete la_emitchar initializer.
7112 (f_language::emitchar): New member function, implementation from
7113 f_emit_char.
7114 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7115 * language.c (unk_lang_emit_char): Delete.
7116 (language_defn::emitchar): New member function definition.
7117 (unknown_language_data): Delete la_emitchar initializer.
7118 (unknown_language::emitchar): New member function.
7119 (auto_language_data): Delete la_emitchar initializer.
7120 (auto_language::emitchar): New member function.
7121 * language.h (language_data): Delete la_emitchar field.
7122 (language_defn::emitchar): New member field declaration.
7123 (LA_EMIT_CHAR): Update call to emitchar.
7124 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7125 (m2_language_data): Delete la_emitchar initializer.
7126 (m2_language::emitchar): New member function, implementation from
7127 m2_emit_char.
7128 * objc-lang.c (objc_language_data): Delete la_emitchar
7129 initializer.
7130 * opencl-lang.c (opencl_language_data): Likewise.
7131 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7132 (pascal_language_data): Delete la_emitchar initializer.
7133 (pascal_language::emitchar): New member function, implementation
7134 from pascal_emit_char.
7135 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7136 (rust_language_data): Delete la_emitchar initializer.
7137 (rust_language::emitchar): New member function, implementation
7138 from rust_emitchar.
7139
7140 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7141
7142 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7143 (ada_language_data): Delete la_post_parser initializer.
7144 (ada_language::post_parser): New member function.
7145 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7146 (cplus_language_data): Likewise.
7147 (asm_language_data): Likewise.
7148 (minimal_language_data): Likewise.
7149 * d-lang.c (d_language_data): Likewise.
7150 * f-lang.c (f_language_data): Likewise.
7151 * go-lang.c (go_language_data): Likewise.
7152 * language.c (unknown_language_data): Likewise.
7153 (auto_language_data): Likewise.
7154 * language.h (language_data): Delete la_post_parser field.
7155 (language_defn::post_parser): New member function.
7156 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7157 * objc-lang.c (objc_language_data): Likewise.
7158 * opencl-lang.c (opencl_language_data): Likewise.
7159 * p-lang.c (pascal_language_data): Likewise.
7160 * parse.c (parse_exp_in_context): Update call to post_parser.
7161 (null_post_parser): Delete definition.
7162 * parser-defs.h (null_post_parser): Delete declaration.
7163 * rust-lang.c (rust_language_data): Delete la_post_parser
7164 initializer.
7165
7166 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * ada-lang.c (parse): Rename to ada_language::parser.
7169 (ada_language_data): Delete la_parser initializer.
7170 (ada_language::parser): New member function, implementation from
7171 parse.
7172 * c-lang.c (c_language_data): Delete la_parser initializer.
7173 (cplus_language_data): Likewise.
7174 (asm_language_data): Likewise.
7175 (minimal_language_data): Likewise.
7176 * d-lang.c (d_language_data): Likewise.
7177 (d_language::parser): New member function.
7178 * f-lang.c (f_language_data): Delete la_parser initializer.
7179 (f_language::parser): New member function.
7180 * go-lang.c (go_language_data): Delete la_parser initializer.
7181 (go_language::parser): New member function.
7182 * language.c (unk_lang_parser): Delete.
7183 (language_defn::parser): Define new member function.
7184 (unknown_language_data): Delete la_parser initializer.
7185 (unknown_language::parser): New member function.
7186 (auto_language_data): Delete la_parser initializer.
7187 (auto_language::parser): New member function.
7188 * language.h (language_data): Delete la_parser field.
7189 (language_defn::parser): Declare new member function.
7190 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7191 (m2_language::parser): New member function.
7192 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7193 * opencl-lang.c (opencl_language_data): Likewise.
7194 * p-lang.c (pascal_language_data): Likewise.
7195 (pascal_language::parser): New member function.
7196 * parse.c (parse_exp_in_context): Update call to parser.
7197 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7198 (rust_language::parser): New member function.
7199
7200 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * top.c (print_gdb_configuration): Print --with-python-libdir
7203 configuration value.
7204
7205 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7206
7207 * NEWS: Mention change to the alias command.
7208
7209 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7210
7211 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7212 (alias_command_completer)
7213 (make_alias_options_def_group): New functions.
7214 (alias_opts, alias_option_defs): New struct and array.
7215 (alias_usage_error): Update usage.
7216 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7217 Use option framework.
7218 (_initialize_cli_cmds): Update alias command help.
7219 Update aliases command help.
7220 (show_user):
7221 Add NULL for new default_args lookup_cmd argument.
7222 (valid_command_p): Rename to validate_aliased_command.
7223 Add NULL for new default_args lookup_cmd argument. Verify that the
7224 aliased_command has no default args.
7225 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7226 (lookup_cmd_1, lookup_cmd): New argument default_args.
7227 (add_alias_cmd):
7228 Add NULL for new default_args lookup_cmd argument.
7229 (print_help_for_command): Show default args under the layout
7230 alias some_alias = some_aliased_cmd some_alias_default_arg.
7231 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7232 xfree default_args in destructor.
7233 * cli/cli-script.c (process_next_line, do_define_command):
7234 Add NULL for new default_args lookup_cmd argument.
7235 * command.h: Declare new default_args argument in lookup_cmd
7236 and lookup_cmd_1.
7237 * completer.c (complete_line_internal_1):
7238 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7239 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7240 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7241 Likewise.
7242 * infcmd.c (_initialize_infcmd): Likewise.
7243 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7244 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7245 * python/py-param.c (add_setshow_generic): Likewise.
7246 * remote.c (_initialize_remote): Likewise.
7247 * top.c (execute_command): Prepend default_args if command has some.
7248 (set_verbose):
7249 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7250 * tracepoint.c (validate_actionline, encode_actions_1):
7251 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7252
7253 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7254
7255 * jit.c (jit_read_descriptor): Use bool as the return type.
7256 (jit_breakpoint_re_set_internal): Use bool as the return type.
7257 Invert the return value logic; return true if the jit breakpoint
7258 has been successfully initialized.
7259 (jit_inferior_init): Update the call to
7260 jit_breakpoint_re_set_internal.
7261
7262 2020-06-22 Pedro Alves <palves@redhat.com>
7263
7264 PR gdb/25939
7265 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7266 Use the current inferior instead. Don't return
7267 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7268 wait again.
7269 * sol-thread.c (sol_thread_target::wait): Don't reference
7270 inferior_ptid.
7271 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7272 (sol_update_thread_list_callback): Use the current inferior's pid
7273 instead of inferior_ptid.
7274
7275 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7276
7277 * procfs.c: Cleanup many comments.
7278
7279 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7280 (AFTER_WATCHFLAG): Replace by value.
7281
7282 (MAIN_PROC_NAME_FORMAT): Inline ...
7283 (create_procinfo): ... here.
7284
7285 (procfs_debug_inferior): Remove SYS_exec handling.
7286 (syscall_is_exec): Likewise.
7287 (procfs_set_exec_trap): Likewise.
7288
7289 (syscall_is_lwp_exit): Inline in callers.
7290 (syscall_is_exit): Likewise.
7291 (syscall_is_exec): Likewise.
7292 (syscall_is_lwp_create): Likewise.
7293
7294 (invalidate_cache): Remove #if 0 code.
7295
7296 (make_signal_thread_runnable): Remove.
7297 (procfs_target::resume): Remove #if 0 code.
7298
7299 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7300
7301 PR gdb/25939
7302 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7303 call ...
7304 (procfs_target::create_inferior): ... here.
7305
7306 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7307
7308 * exec.c (validate_exec_file): Ensure the build-id is up to
7309 date by calling reopen_exec_file (that checks file timestamp
7310 to decide to re-read the file).
7311
7312 2020-06-18 Pedro Alves <palves@redhat.com>
7313
7314 PR gdb/25412
7315 * gdbthread.h (delete_thread, delete_thread_silent)
7316 (find_thread_ptid): Update comments.
7317 * thread.c (current_thread_): New global.
7318 (is_current_thread): Move higher, and reimplement.
7319 (inferior_thread): Reimplement.
7320 (set_thread_exited): Use bool. Add assertions.
7321 (add_thread_silent): Simplify thread-reuse handling by always
7322 calling delete_thread.
7323 (delete_thread): Remove intro comment.
7324 (find_thread_ptid): Skip exited threads.
7325 (switch_to_thread_no_regs): Write to current_thread_.
7326 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7327 INFERIOR_PTID. Clear current_thread_.
7328
7329 2020-06-18 Pedro Alves <palves@redhat.com>
7330
7331 * aix-thread.c (pd_update): Use switch_to_thread.
7332
7333 2020-06-18 Pedro Alves <palves@redhat.com>
7334
7335 * ravenscar-thread.c (ravenscar_thread_target): Update.
7336 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7337 (ravenscar_thread_target::add_active_thread): ... this. Don't
7338 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7339 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7340
7341 2020-06-18 Pedro Alves <palves@redhat.com>
7342
7343 * nat/windows-nat.c (current_windows_thread): Remove.
7344 * nat/windows-nat.h (current_windows_thread): Remove.
7345 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7346 Adjust.
7347 (display_selectors): Adjust to fetch the current
7348 windows_thread_info based on inferior_ptid.
7349 (fake_create_process): No longer write to current_windows_thread.
7350 (windows_nat_target::get_windows_debug_event):
7351 Don't set inferior_ptid or current_windows_thread.
7352 (windows_nat_target::wait): Adjust to not rely on
7353 current_windows_thread.
7354 (do_initial_windows_stuff): Now a method of windows_nat_target.
7355 Switch to the last_ptid thread.
7356 (windows_nat_target::attach): Adjust.
7357 (windows_nat_target::detach): Use switch_to_no_thread instead of
7358 writing to inferior_ptid directly.
7359 (windows_nat_target::create_inferior): Adjust.
7360
7361 2020-06-18 Pedro Alves <palves@redhat.com>
7362
7363 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7364
7365 2020-06-18 Pedro Alves <palves@redhat.com>
7366
7367 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7368 after creating it, instead of writing to inferior_ptid. Don't
7369 write to inferior_ptid.
7370
7371 2020-06-18 Pedro Alves <palves@redhat.com>
7372
7373 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7374
7375 2020-06-18 Pedro Alves <palves@redhat.com>
7376
7377 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7378 it, instead of writing to inferior_ptid.
7379
7380 2020-06-18 Pedro Alves <palves@redhat.com>
7381
7382 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7383 to inferior_ptid.
7384
7385 2020-06-18 Pedro Alves <palves@redhat.com>
7386
7387 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7388 instead of writing to inferior_ptid directly.
7389
7390 2020-06-18 Pedro Alves <palves@redhat.com>
7391
7392 * corelow.c (core_target::close): Use switch_to_no_thread instead
7393 of writing to inferior_ptid directly.
7394 (add_to_thread_list, core_target_open): Use switch_to_thread
7395 instead of writing to inferior_ptid directly.
7396
7397 2020-06-18 Pedro Alves <palves@redhat.com>
7398
7399 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7400 inferior_ptid.
7401 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7402 inferior_ptid.
7403 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7404 inferior_ptid directly.
7405 (darwin_nat_target::init_thread_list): Switch to thread, instead
7406 of writing to inferior_ptid.
7407 (darwin_nat_target::attach): Don't write to inferior_ptid.
7408 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7409
7410 2020-06-18 Pedro Alves <palves@redhat.com>
7411
7412 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7413 thread.
7414 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7415 Instead use switch_to_thread.
7416 (gnu_nat_target::detach): Use switch_to_no_thread
7417 instead of writing to inferior_ptid directly. Used passed-in
7418 inferior instead of looking up the inferior by pid.
7419
7420 2020-06-18 Pedro Alves <palves@redhat.com>
7421
7422 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7423 inferior_ptid.
7424
7425 2020-06-18 Pedro Alves <palves@redhat.com>
7426
7427 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7428 inferior_ptid.
7429 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7430 thread.
7431 (nto_procfs_target::detach): Avoid referencing
7432 inferior_ptid. Use switch_to_no_thread instead of writing to
7433 inferior_ptid directly.
7434 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7435 instead of writing to inferior_ptid directly.
7436 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7437 to thread.
7438
7439 2020-06-18 Pedro Alves <palves@redhat.com>
7440
7441 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7442 after creating it, instead of writing to inferior_ptid.
7443 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7444 to inferior_ptid directly.
7445 (gdbsim_target::wait): Don't write to inferior_ptid.
7446
7447 2020-06-18 Pedro Alves <palves@redhat.com>
7448
7449 * remote.c (remote_target::remote_notice_new_inferior): Use
7450 switch_to_thread instead of writing to inferior_ptid directly.
7451 (remote_target::add_current_inferior_and_thread): Use
7452 switch_to_no_thread instead of writing to inferior_ptid directly.
7453 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7454 and switch_to_thread instead of using set_current_inferior or
7455 writing to inferior_ptid directly.
7456
7457 2020-06-18 Pedro Alves <palves@redhat.com>
7458
7459 * tracectf.c (ctf_target_open): Switch to added thread instead of
7460 writing to inferior_ptid directly.
7461 (ctf_target::close): Use switch_to_no_thread instead of writing to
7462 inferior_ptid directly.
7463
7464 2020-06-18 Pedro Alves <palves@redhat.com>
7465
7466 * tracefile-tfile.c (tfile_target_open): Don't write to
7467 inferior_ptid directly, instead switch to added thread.
7468 (tfile_target::close): Use switch_to_no_thread instead of writing
7469 to inferior_ptid directly.
7470
7471 2020-06-18 Pedro Alves <palves@redhat.com>
7472
7473 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7474 (procfs_target::detach): Use switch_to_no_thread
7475 instead of writing to inferior_ptid directly.
7476 (do_attach): Change return type to void. Switch to the added
7477 thread.
7478 (procfs_target::create_inferior): Switch to the added thread.
7479 (procfs_do_thread_registers): Don't write to inferior_ptid.
7480
7481 2020-06-18 Pedro Alves <palves@redhat.com>
7482
7483 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7484 of writing to inferior_ptid.
7485 (scoped_restore_exited_inferior): Delete.
7486 (handle_vfork_child_exec_or_exit): Simplify using
7487 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7488 instead of writing to inferior_ptid.
7489 (THREAD_STOPPED_BY): Delete.
7490 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7491 (thread_stopped_by_hw_breakpoint): Delete.
7492 (save_waitstatus): Use
7493 scoped_restore_current_thread+switch_to_thread, and call
7494 target_stopped_by_watchpoint instead of
7495 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7496 instead of thread_stopped_by_sw_breakpoint, and
7497 target_stopped_by_hw_breakpoint instead of
7498 thread_stopped_by_hw_breakpoint.
7499 (handle_inferior_event)
7500 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7501 inferior_ptid directly, nor
7502 set_current_inferior/set_current_program_space. Use
7503 switch_to_thread / switch_to_inferior_no_thread instead.
7504
7505 2020-06-18 Pedro Alves <palves@redhat.com>
7506
7507 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7508 instead of writing to inferior_ptid.
7509
7510 2020-06-18 Pedro Alves <palves@redhat.com>
7511
7512 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7513 added thread.
7514 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7515 to the added thread.
7516 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7517 instead of writing to inferior_ptid.
7518
7519 2020-06-18 Pedro Alves <palves@redhat.com>
7520
7521 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7522 (register_to_value_test): Mock a program_space too. Heap-allocate
7523 the address space. Don't write to inferior_ptid. Use
7524 switch_to_thread instead.
7525
7526 2020-06-18 Pedro Alves <palves@redhat.com>
7527
7528 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7529 Delete.
7530 (find_signalled_thread()): New, factored out from
7531 linux_make_corefile_notes and adjusted to handle exited threads.
7532 (linux_make_corefile_notes): Adjust to use the new
7533 find_signalled_thread.
7534
7535 2020-06-18 Pedro Alves <palves@redhat.com>
7536
7537 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7538 of saving/restoring inferior_ptid.
7539
7540 2020-06-17 Tom Tromey <tom@tromey.com>
7541
7542 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7543 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7544 declare.
7545 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7546
7547 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7550 of partial symtabs.
7551
7552 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * regformats/reg-arm.dat: Remove.
7555 * regformats/reg-bfin.dat: Remove.
7556 * regformats/reg-cris.dat: Remove.
7557 * regformats/reg-crisv32.dat: Remove.
7558 * regformats/reg-m32r.dat: Remove.
7559 * regformats/reg-tilegx.dat: Remove.
7560 * regformats/reg-tilegx32.dat: Remove.
7561
7562 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7563
7564 * features/Makefile (WHICH): Remove arm files.
7565 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7566 * regformats/arm/arm-with-neon.dat: Remove.
7567 * regformats/arm/arm-with-vfpv2.dat: Remove.
7568 * regformats/arm/arm-with-vfpv3.dat: Remove.
7569
7570 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * features/Makefile (XMLTOC): Remove rx.xml.
7573
7574 2020-06-17 Pedro Alves <palves@redhat.com>
7575
7576 * gdbthread.h (thread_control_state) <trap_expected> Update
7577 comments.
7578
7579 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7582 ada_language::lookup_symbol_nonlocal.
7583 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7584 (ada_language::lookup_symbol_nonlocal): New member function,
7585 implementation from ada_lookup_symbol_nonlocal.
7586 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7587 initializer.
7588 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7589 initializer.
7590 (cplus_language::lookup_symbol_nonlocal): New member function.
7591 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7592 (minimal_language_data) Likewise.
7593 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7594 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7595 initializer.
7596 (d_language::lookup_symbol_nonlocal): New member function.
7597 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7598 initializer.
7599 (f_language::lookup_symbol_nonlocal): New member function.
7600 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7601 initializer.
7602 * language.c (unknown_language_data): Likewise.
7603 (auto_language_data): Likewise.
7604 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7605 field.
7606 (language_defn::lookup_symbol_nonlocal): New member function.
7607 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7608 initializer.
7609 * objc-lang.c (objc_language_data): Likewise.
7610 * opencl-lang.c (opencl_language_data): Likewise.
7611 * p-lang.c (pascal_language_data): Likewise.
7612 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7613 rust_language::lookup_symbol_nonlocal.
7614 (rust_language_data): Delete la_lookup_symbol_nonlocal
7615 initializer.
7616 (rust_language::lookup_symbol_nonlocal): New member function,
7617 implementation from rust_lookup_symbol_nonlocal.
7618 * symtab.c (lookup_symbol_aux): Update call to
7619 lookup_symbol_nonlocal.
7620 (basic_lookup_symbol_nonlocal): Rename to...
7621 (language_defn::lookup_symbol_nonlocal): ...this, and update
7622 header comment. Remove language_defn parameter, and replace with
7623 uses of `this'.
7624 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7625
7626 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7629 initializer.
7630 (ada_language::value_print_inner): New member function.
7631 * c-lang.c (c_language_data): Delete la_value_print_inner
7632 initializer.
7633 (cplus_language_data): Likewise.
7634 (asm_language_data): Likewise.
7635 (minimal_language_data): Likewise.
7636 * d-lang.c (d_language_data): Likewise.
7637 (d_language::value_print_inner): New member function.
7638 * f-lang.c (f_language_data): Delete la_value_print_inner
7639 initializer.
7640 (f_language::value_print_inner): New member function.
7641 * f-lang.h (f_value_print_innner): Rename to...
7642 (f_value_print_inner): ...this (note spelling of 'inner').
7643 * f-valprint.c (f_value_print_innner): Rename to...
7644 (f_value_print_inner): ...this (note spelling of 'inner').
7645 * go-lang.c (go_language_data): Delete la_value_print_inner
7646 initializer.
7647 (go_language::value_print_inner): New member function.
7648 * language.c (language_defn::value_print_inner): Define new member
7649 function.
7650 (unk_lang_value_print_inner): Delete.
7651 (unknown_language_data): Delete la_value_print_inner initializer.
7652 (unknown_language::value_print_inner): New member function.
7653 (auto_language_data): Delete la_value_print_inner initializer.
7654 (auto_language::value_print_inner): New member function.
7655 * language.h (language_data): Delete la_value_print_inner field.
7656 (language_defn::value_print_inner): Delcare new member function.
7657 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7658 initializer.
7659 (m2_language::value_print_inner): New member function.
7660 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7661 initializer.
7662 * opencl-lang.c (opencl_language_data): Likewise.
7663 * p-lang.c (pascal_language_data): Likewise.
7664 (pascal_language::value_print_inner): New member function.
7665 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7666 initializer.
7667 (rust_language::value_print_inner): New member function.
7668 * valprint.c (do_val_print): Update call to value_print_inner.
7669
7670 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7671
7672 * ada-lang.c (ada_language_data): Delete la_value_print
7673 initializer.
7674 (ada_language::value_print): New member function.
7675 * c-lang.c (c_language_data): Delete la_value_print initializer.
7676 (cplus_language_data): Likewise.
7677 (asm_language_data): Likewise.
7678 (minimal_language_data): Likewise.
7679 * d-lang.c (d_language_data): Likewise.
7680 * f-lang.c (f_language_data): Likewise.
7681 * go-lang.c (go_language_data): Likewise.
7682 * language.c (unk_lang_value_print): Delete.
7683 (language_defn::value_print): Define new member function.
7684 (unknown_language_data): Delete la_value_print initializer.
7685 (unknown_language::value_print): New member function.
7686 (auto_language_data): Delete la_value_print initializer.
7687 (auto_language::value_print): New member function.
7688 * language.h (language_data): Delete la_value_print field.
7689 (language_defn::value_print): Declare new member function.
7690 (LA_VALUE_PRINT): Update call to value_print.
7691 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7692 * objc-lang.c (objc_language_data): Likewise.
7693 * opencl-lang.c (opencl_language_data): Likewise.
7694 * p-lang.c (pascal_language_data): Likewise.
7695 (pascal_language::value_print): New member function.
7696 * rust-lang.c (rust_language_data): Delete la_value_print
7697 initializer.
7698
7699 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * ada-lang.c (ada_watch_location_expression): Rename to
7702 ada_language::watch_location_expression.
7703 (ada_language_data): Delete la_watch_location_expression
7704 initializer.
7705 (ada_language::watch_location_expression): New member function,
7706 implementation from ada_watch_location_expression.
7707 * breakpoint.c (watch_command_1): Update call to
7708 watch_location_expression.
7709 * c-lang.c (c_watch_location_expression): Rename to
7710 language_defn::watch_location_expression.
7711 (c_language_data): Delete la_watch_location_expression
7712 initializer.
7713 (cplus_language_data): Likewise.
7714 (asm_language_data): Likewise.
7715 (minimal_language_data): Likewise.
7716 * c-lang.h (c_watch_location_expression): Delete declaration.
7717 * d-lang.c (d_language_data): Delete la_watch_location_expression
7718 initializer.
7719 * f-lang.c (f_language_data): Likewise.
7720 * go-lang.c (go_language_data): Likewise.
7721 * language.c (language_defn::watch_location_expression): Member
7722 function implementation from c_watch_location_expression.
7723 (unknown_language_data): Delete la_watch_location_expression
7724 initializer.
7725 (auto_language_data): Likewise.
7726 * language.h (language_data): Delete la_watch_location_expression
7727 field.
7728 (language_defn::watch_location_expression): Declare new member
7729 function.
7730 * m2-lang.c (m2_language_data): Delete
7731 la_watch_location_expression initializer.
7732 * objc-lang.c (objc_language_data): Likewise.
7733 * opencl-lang.c (opencl_language_data): Likewise.
7734 * p-lang.c (pascal_language_data): Likewise.
7735 * rust-lang.c (rust_watch_location_expression): Rename to
7736 rust_language::watch_location_expression.
7737 (rust_language_data): Delete la_watch_location_expression
7738 initializer.
7739 (rust_language::watch_location_expression): New member function,
7740 implementation from rust_watch_location_expression.
7741
7742 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7745 ada_language::collect_symbol_completion_matches.
7746 (ada_language_data): Delete la_collect_symbol_completion_matches
7747 initializer.
7748 (ada_language::collect_symbol_completion_matches): New member
7749 function, implementation from
7750 ada_collect_symbol_completion_matches.
7751 * c-lang.c (c_language_data): Delete
7752 la_collect_symbol_completion_matches initializer.
7753 (cplus_language_data): Likewise.
7754 (asm_language_data): Likewise.
7755 (minimal_language_data): Likewise.
7756 * d-lang.c (d_language_data): Likewise.
7757 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7758 f_language::collect_symbol_completion_matches.
7759 (f_language_data): Delete la_collect_symbol_completion_matches
7760 initializer.
7761 (f_language::collect_symbol_completion_matches) New member
7762 function, implementation from f_collect_symbol_completion_matches.
7763 * go-lang.c (go_language_data): Delete
7764 la_collect_symbol_completion_matches initializer.
7765 * language.c (unknown_language_data): Likewise.
7766 (auto_language_data): Likewise.
7767 * language.h (language_data): Delete
7768 la_collect_symbol_completion_matches field.
7769 (language_defn::collect_symbol_completion_matches): New member
7770 function.
7771 * m2-lang.c (m2_language_data): Delete
7772 la_collect_symbol_completion_matches initializer.
7773 * objc-lang.c (objc_language_data): Likewise.
7774 * opencl-lang.c (opencl_language_data): Likewise.
7775 * p-lang.c (pascal_language_data): Likewise.
7776 * rust-lang.c (rust_language_data): Likewise.
7777 * symtab.c (default_collect_symbol_completion_matches): Delete.
7778 (collect_symbol_completion_matches): Update call to
7779 collect_symbol_completion_matches.
7780 (collect_symbol_completion_matches_type): Likewise.
7781 * symtab.h (default_collect_symbol_completion_matches): Delete
7782 declaration.
7783
7784 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7787 (ada_language_data): Delete la_word_break_characters initializer.
7788 (ada_language::word_break_characters): New member function.
7789 * c-lang.c (c_language_data): Delete la_word_break_characters
7790 initializer.
7791 (cplus_language_data): Likewise.
7792 (asm_language_data): Likewise.
7793 (minimal_language_data): Likewise.
7794 * completer.c: Update global comment.
7795 (advance_to_expression_complete_word_point): Update call to
7796 word_break_characters.
7797 (complete_files_symbols): Likewise.
7798 (complete_line_internal_1): Likewise.
7799 (default_completer_handle_brkchars): Likewise.
7800 (skip_quoted_chars): Likewise.
7801 * d-lang.c (d_language_data): Delete la_word_break_characters
7802 initializer.
7803 * f-lang.c (f_word_break_characters): Delete.
7804 (f_language_data): Delete la_word_break_characters initializer.
7805 (f_language::word_break_characters): New member function.
7806 * go-lang.c (go_language_data): Delete la_word_break_characters
7807 initializer.
7808 * language.c (unknown_language_data): Likewise.
7809 (auto_language_data): Likewise.
7810 * language.h (default_word_break_characters): Move declaration to
7811 earlier in the file.
7812 (language_data): Delete la_word_break_characters field.
7813 (language_defn::word_break_characters): New member function.
7814 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7815 initializer.
7816 * objc-lang.c (objc_language_data): Likewise.
7817 * opencl-lang.c (opencl_language_data): Likewise.
7818 * p-lang.c (pascal_language_data): Likewise.
7819 * rust-lang.c (rust_language_data): Likewise.
7820
7821 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7824 (ada_language_data): Delete la_get_symbol_name_matcher
7825 initializer.
7826 (language_defn::get_symbol_name_matcher_inner): New member
7827 function.
7828 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7829 initializer.
7830 (cplus_language_data): Likewise.
7831 (cplus_language::get_symbol_name_matcher_inner): New member
7832 function.
7833 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7834 (minimal_language_data): Likewise.
7835 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7836 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7837 initializer.
7838 * dictionary.c (iter_match_first_hashed): Update call to
7839 get_symbol_name_matcher.
7840 (iter_match_next_hashed): Likewise.
7841 (iter_match_next_linear): Likewise.
7842 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7843 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7844 initializer.
7845 (f_language::get_symbol_name_matcher_inner): New member function.
7846 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7847 initializer.
7848 * language.c (default_symbol_name_matcher): Update header comment,
7849 make static.
7850 (language_defn::get_symbol_name_matcher): New definition.
7851 (language_defn::get_symbol_name_matcher_inner): Likewise.
7852 (get_symbol_name_matcher): Delete.
7853 (unknown_language_data): Delete la_get_symbol_name_matcher
7854 initializer.
7855 (auto_language_data): Likewise.
7856 * language.h (language_data): Delete la_get_symbol_name_matcher
7857 field.
7858 (language_defn::get_symbol_name_matcher): New member function.
7859 (language_defn::get_symbol_name_matcher_inner): Likewise.
7860 (default_symbol_name_matcher): Delete declaration.
7861 * linespec.c (find_methods): Update call to
7862 get_symbol_name_matcher.
7863 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7864 initializer.
7865 * minsyms.c (lookup_minimal_symbol): Update call to
7866 get_symbol_name_matcher.
7867 (iterate_over_minimal_symbols): Likewise.
7868 * objc-lang.c (objc_language_data): Delete
7869 la_get_symbol_name_matcher initializer.
7870 * opencl-lang.c (opencl_language_data): Likewise.
7871 * p-lang.c (pascal_language_data): Likewise.
7872 * psymtab.c (psymbol_name_matches): Update call to
7873 get_symbol_name_matcher.
7874 * rust-lang.c (rust_language_data): Delete
7875 la_get_symbol_name_matcher initializer.
7876 * symtab.c (symbol_matches_search_name): Update call to
7877 get_symbol_name_matcher.
7878 (compare_symbol_name): Likewise.
7879
7880 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * ada-lang.c (ada_language_data): Delete la_compute_program
7883 initializer.
7884 * c-lang.c (c_language_data): Likewise.
7885 (c_language::compute_program): New member function.
7886 (cplus_language_data): Delete la_compute_program initializer.
7887 (cplus_language::compute_program): New member function.
7888 (asm_language_data): Delete la_compute_program initializer.
7889 (minimal_language_data): Likewise.
7890 * c-lang.h (c_compute_program): Update comment.
7891 (cplus_compute_program): Likewise.
7892 * compile/compile-c-support.c (c_compute_program): Likewise.
7893 (cplus_compute_program): Likewise.
7894 * compile/compile.c (compile_to_object): Update call to
7895 la_compute_program.
7896 * d-lang.c (d_language_data): Delete la_compute_program
7897 initializer.
7898 * f-lang.c (f_language_data): Likewise.
7899 * go-lang.c (go_language_data): Likewise.
7900 * language.c (unknown_language_data): Likewise.
7901 (auto_language_data): Likewise.
7902 * language.h (language_data): Delete la_compute_program field.
7903 (language_defn::compute_program): New member function.
7904 * m2-lang.c (m2_language_data): Delete la_compute_program
7905 initializer.
7906 * objc-lang.c (objc_language_data): Likewise.
7907 * opencl-lang.c (opencl_language_data): Likewise.
7908 * p-lang.c (pascal_language_data): Likewise.
7909 * rust-lang.c (rust_language_data): Likewise.
7910
7911 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * ada-lang.c (ada_language_data) Delete
7914 la_class_name_from_physname initializer.
7915 * c-lang.c (c_language_data): Likewise.
7916 (cplus_language_data): Likewise.
7917 (cplus_language::class_name_from_physname): New member function.
7918 (asm_language_data): Delete la_class_name_from_physname
7919 initializer.
7920 (minimal_language_data): Likewise.
7921 * d-lang.c (d_language_data): Likewise.
7922 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7923 method on language_defn class.
7924 (guess_full_die_structure_name): Likewise.
7925 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7926 initializer.
7927 * go-lang.c (go_language_data): Likewise.
7928 * language.c (language_class_name_from_physname): Delete.
7929 (unk_lang_class_name): Delete.
7930 (unknown_language_data): Delete la_class_name_from_physname
7931 initializer.
7932 (auto_language_data): Likewise.
7933 * language.h (language_data): Delete la_class_name_from_physname
7934 field.
7935 (language_defn::class_name_from_physname): New function.
7936 (language_class_name_from_physname): Delete declaration.
7937 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7938 initializer.
7939 * objc-lang.c (objc_language_data): Likewise.
7940 * opencl-lang.c (opencl_language_data): Likewise.
7941 * p-lang.c (pascal_language_data): Likewise.
7942 * rust-lang.c (rust_language_data): Likewise.
7943
7944 2020-06-16 Tom Tromey <tom@tromey.com>
7945
7946 * tui/tui-data.h (STATUS_NAME): New macro.
7947 * tui/tui-layout.c (tui_remove_some_windows)
7948 (initialize_known_windows, tui_register_window)
7949 (tui_layout_split::remove_windows, initialize_layouts)
7950 (tui_new_layout_command): Don't use hard-coded window names.
7951
7952 2020-06-16 Tom Tromey <tom@tromey.com>
7953
7954 PR tui/25348:
7955 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7956 tui_initialize_readline. Only run once. Call rl_initialize.
7957 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7958 tui_initialize_readline.
7959 * tui/tui-io.c (tui_setup_io): Call
7960 tui_ensure_readline_initialized.
7961 * tui/tui-interp.c (tui_interp::init): Update.
7962
7963 2020-06-16 Tom Tromey <tom@tromey.com>
7964
7965 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7966 Also preserve the status window.
7967
7968 2020-06-16 Tom Tromey <tom@tromey.com>
7969
7970 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7971 where m_window==nullptr.
7972
7973 2020-06-15 Tom Tromey <tromey@adacore.com>
7974
7975 * windows-nat.c (windows_nat::handle_output_debug_string):
7976 Update.
7977 (windows_nat::handle_ms_vc_exception): Update.
7978 * target.h (target_read_string): Change API.
7979 * target.c (target_read_string): Change API.
7980 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7981 Update.
7982 * solib-frv.c (frv_current_sos): Update.
7983 * solib-dsbt.c (dsbt_current_sos): Update.
7984 * solib-darwin.c (darwin_current_sos): Update.
7985 * linux-thread-db.c (inferior_has_bug): Update.
7986 * expprint.c (print_subexp_standard): Update.
7987 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7988 (ada_exception_message_1): Update.
7989
7990 2020-06-15 Tom Tromey <tromey@adacore.com>
7991
7992 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7993
7994 2020-06-15 Tom Tromey <tromey@adacore.com>
7995
7996 * valprint.c (read_string): Update comment.
7997 * target.c (MIN): Remove.
7998 (target_read_string): Rewrite.
7999
8000 2020-06-15 Tom Tromey <tromey@adacore.com>
8001
8002 * corefile.c (read_memory_string): Remove.
8003 * ada-valprint.c (ada_value_print_ptr): Update.
8004 * ada-lang.h (ada_tag_name): Change return type.
8005 * ada-lang.c (type_from_tag): Update.
8006 (ada_tag_name_from_tsd): Change return type. Use
8007 target_read_string.
8008 (ada_tag_name): Likewise.
8009 * gdbcore.h (read_memory_string): Don't declare.
8010
8011 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8012
8013 * symtab.c (rbreak_command): Ignore Windows drive colon.
8014
8015 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * NEWS: Mention removed GDBserver host support.
8018
8019 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8020
8021 * features/riscv/rebuild-csr-xml.sh: Updated.
8022
8023 2020-06-11 Tom Tromey <tom@tromey.com>
8024
8025 PR gdb/18318:
8026 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8027
8028 2020-06-09 Jonny Grant <jg@jguk.org>
8029 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8030
8031 * main.c (captured_main_1): Don't print new line after help.
8032 (print_gdb_help): add mailing list and IRC channel information
8033 to --help. Add new lines between items in the footer. Remove
8034 quotes around bug url.
8035
8036 2020-06-11 Keith Seitz <keiths@redhat.com>
8037
8038 PR gdb/21356
8039 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8040 Resolve typedefs for type length calculations.
8041
8042 2020-06-10 Tom de Vries <tdevries@suse.de>
8043
8044 PR ada/24713
8045 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8046 (write_psymbols): Enable .gdb_index for ada.
8047 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8048 ada.
8049
8050 2020-06-10 Tom de Vries <tdevries@suse.de>
8051
8052 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8053 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8054 namei" instead of "const char *name" argument.
8055 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8056 dw2_symtab_iter_init.
8057
8058 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8061 to use type::field and field::type instead.
8062
8063 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8066 to use field::type instead.
8067
8068 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * gdbtypes.h (struct field) <type, set_type>: New methods.
8071 Rename `type` field to...
8072 <m_type>: ... this. Change references throughout to use type or
8073 set_type methods.
8074 (FIELD_TYPE): Use field::type. Change call sites that modify
8075 the field's type to use field::set_type instead.
8076
8077 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8080 to use type::index_type instead.
8081
8082 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8085 methods.
8086 (TYPE_INDEX_TYPE): Use type::index_type.
8087 * gdbtypes.c (create_array_type_with_stride): Likewise.
8088
8089 2020-06-07 Tom Tromey <tom@tromey.com>
8090
8091 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8092 parameter.
8093 (generic_value_print): Update.
8094
8095 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 Revert commit 982a38f60b0.
8098 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8099
8100 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8103 avoid use after free.
8104
8105 2020-06-05 Tom de Vries <tdevries@suse.de>
8106
8107 * NEWS: Fix typos.
8108
8109 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8112 the per_bfd object.
8113 (dwarf2_read_debug_names): Likewise.
8114 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8115 object when re-using a per_bfd object with an index.
8116
8117 2020-06-03 Tom de Vries <tdevries@suse.de>
8118
8119 PR symtab/26046
8120 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8121 children for C++.
8122 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8123 DW_TAG_subprogram.
8124
8125 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8126
8127 * ada-lang.c (ada_language_data): Delete skip_trampoline
8128 initializer.
8129 * c-lang.c (c_language_data): Likewise.
8130 (cplus_language_data): Likewise.
8131 (cplus_language::skip_trampoline): New member function.
8132 (asm_language_data): Delete skip_trampoline initializer.
8133 (minimal_language_data): Likewise.
8134 * d-lang.c (d_language_data): Likewise.
8135 * f-lang.c (f_language_data): Likewise.
8136 * go-lang.c (go_language_data): Likewise.
8137 * language.c (unk_lang_trampoline): Delete function.
8138 (skip_language_trampoline): Update.
8139 (unknown_language_data): Delete skip_trampoline initializer.
8140 (auto_language_data): Likewise.
8141 * language.h (language_data): Delete skip_trampoline field.
8142 (language_defn::skip_trampoline): New function.
8143 * m2-lang.c (m2_language_data): Delete skip_trampoline
8144 initializer.
8145 * objc-lang.c (objc_skip_trampoline): Delete function, move
8146 implementation to objc_language::skip_trampoline.
8147 (objc_language_data): Delete skip_trampoline initializer.
8148 (objc_language::skip_trampoline): New member function with
8149 implementation from objc_skip_trampoline.
8150 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8151 initializer.
8152 * p-lang.c (pascal_language_data): Likewise.
8153 * rust-lang.c (rust_language_data): Likewise.
8154
8155 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8156
8157 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8158 (ada_language::demangle): New member function.
8159 * c-lang.c (c_language_data): Delete la_demangle initializer.
8160 (cplus_language_data): Delete la_demangle initializer.
8161 (cplus_language::demangle): New member function.
8162 (asm_language_data): Delete la_demangle initializer.
8163 (minimal_language_data): Delete la_demangle initializer.
8164 * d-lang.c (d_language_data): Delete la_demangle initializer.
8165 (d_language::demangle): New member function.
8166 * f-lang.c (f_language_data): Delete la_demangle initializer.
8167 (f_language::demangle): New member function.
8168 * go-lang.c (go_language_data): Delete la_demangle initializer.
8169 (go_language::demangle): New member function.
8170 * language.c (language_demangle): Update.
8171 (unk_lang_demangle): Delete.
8172 (unknown_language_data): Delete la_demangle initializer.
8173 (unknown_language::demangle): New member function.
8174 (auto_language_data): Delete la_demangle initializer.
8175 (auto_language::demangle): New member function.
8176 * language.h (language_data): Delete la_demangle field.
8177 (language_defn::demangle): New function.
8178 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8179 * objc-lang.c (objc_language_data): Delete la_demangle
8180 initializer.
8181 (objc_language::demangle): New member function.
8182 * opencl-lang.c (opencl_language_data): Delete la_demangle
8183 initializer.
8184 * p-lang.c (pascal_language_data): Likewise.
8185 * rust-lang.c (rust_language_data): Likewise.
8186 (rust_language::demangle): New member function.
8187
8188 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 * ada-lang.c (ada_language_data): Delete la_print_type
8191 initializer.
8192 (ada_language::print_type): New member function.
8193 * c-lang.c (c_language_data): Delete la_print_type initializer.
8194 (c_language::print_type): New member function.
8195 (cplus_language_data): Delete la_print_type initializer.
8196 (cplus_language::print_type): New member function.
8197 (asm_language_data): Delete la_print_type initializer.
8198 (asm_language::print_type): New member function.
8199 (minimal_language_data): Delete la_print_type initializer.
8200 (minimal_language::print_type): New member function.
8201 * d-lang.c (d_language_data): Delete la_print_type initializer.
8202 (d_language::print_type): New member function.
8203 * f-lang.c (f_language_data): Delete la_print_type initializer.
8204 (f_language::print_type): New member function.
8205 * go-lang.c (go_language_data): Delete la_print_type initializer.
8206 (go_language::print_type): New member function.
8207 * language.c (unk_lang_print_type): Delete.
8208 (unknown_language_data): Delete la_print_type initializer.
8209 (unknown_language::print_type): New member function.
8210 (auto_language_data): Delete la_print_type initializer.
8211 (auto_language::print_type): New member function.
8212 * language.h (language_data): Delete la_print_type field.
8213 (language_defn::print_type): New function.
8214 (LA_PRINT_TYPE): Update.
8215 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8216 (m2_language::print_type): New member function.
8217 * objc-lang.c (objc_language_data): Delete la_print_type
8218 initializer.
8219 (objc_language::print_type): New member function.
8220 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8221 to opencl_language::print_type.
8222 (opencl_language_data): Delete la_print_type initializer.
8223 (opencl_language::print_type): New member function, implementation
8224 from opencl_print_type.
8225 * p-lang.c (pascal_language_data): Delete la_print_type
8226 initializer.
8227 (pascal_language::print_type): New member function.
8228 * rust-lang.c (rust_print_type): Delete, implementation moved to
8229 rust_language::print_type.
8230 (rust_language_data): Delete la_print_type initializer.
8231 (rust_language::print_type): New member function, implementation
8232 from rust_print_type.
8233
8234 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8235
8236 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8237 implementation moves to...
8238 (ada_language::sniff_from_mangled_name): ...here. Update return
8239 type.
8240 (ada_language_data): Delete la_sniff_from_mangled_name
8241 initializer.
8242 * c-lang.c (c_language_data): Likewise.
8243 (cplus_language_data): Likewise.
8244 (cplus_language::sniff_from_mangled_name): New member function,
8245 implementation taken from gdb_sniff_from_mangled_name.
8246 (asm_language_data): Delete la_sniff_from_mangled_name
8247 initializer.
8248 (minimal_language_data): Likewise.
8249 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8250 implementation moves to cplus_language::sniff_from_mangled_name.
8251 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8252 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8253 moves to...
8254 (d_language::sniff_from_mangled_name): ...here.
8255 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8256 * f-lang.c (f_language_data): Likewise.
8257 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8258 moves to...
8259 (go_language::sniff_from_mangled_name): ...here.
8260 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8261 * language.c (language_sniff_from_mangled_name): Delete.
8262 (unknown_language_data): Delete la_sniff_from_mangled_name
8263 initializer.
8264 (auto_language_data): Likewise.
8265 * language.h (language_data): Delete la_sniff_from_mangled_name
8266 field.
8267 (language_defn::sniff_from_mangled_name): New function.
8268 (language_sniff_from_mangled_name): Delete declaration.
8269 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8270 field.
8271 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8272 implementation moves to...
8273 (objc_language::sniff_from_mangled_name): ...here.
8274 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8275 * opencl-lang.c (opencl_language_data): Likewise.
8276 * p-lang.c (pascal_language_data): Likewise.
8277 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8278 implementation moves to...
8279 (rust_language::sniff_from_mangled_name): ...here.
8280 (rust_language_data): Delete la_sniff_from_mangled_name
8281 initializer.
8282 * symtab.c (symbol_find_demangled_name): Call
8283 sniff_from_mangled_name member function.
8284
8285 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8286
8287 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8288 initializer.
8289 * c-lang.c (c_language_data): Likewise.
8290 (cplus_language_data): Likewise.
8291 (cplus_language::search_name_hash): New member function.
8292 (asm_language_data): Delete la_search_name_hash initializer.
8293 (minimal_language_data): Likewise.
8294 * d-lang.c (d_language_data): Likewise.
8295 * dictionary.c (default_search_name_hash): Rename to...
8296 (language_defn::search_name_hash): ...this.
8297 * f-lang.c (f_language_data): Likewise.
8298 (f_language::search_name_hash): New member function.
8299 * go-lang.c (go_language_data): Delete la_search_name_hash
8300 initializer.
8301 * language.c (unknown_language_data): Likewise.
8302 (auto_language_data): Likewise.
8303 * language.h (struct language_data): Delete la_search_name_hash
8304 field.
8305 (language_defn::search_name_hash): Declare new member function.
8306 (default_search_name_hash): Delete declaration.
8307 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8308 initializer.
8309 * objc-lang.c (objc_language_data): Likewise.
8310 * opencl-lang.c (opencl_language_data): Likewise.
8311 * p-lang.c (pascal_language_data): Likewise.
8312 * rust-lang.c (rust_language_data): Likewise.
8313 * symtab.c (search_name_hash): Update call.
8314
8315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8316
8317 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8318 initializer.
8319 * c-lang.c (class compile_instance): Declare.
8320 (c_language_data): Delete la_get_compile_instance initializer.
8321 (c_language::get_compile_instance): New member function.
8322 (cplus_language_data): Delete la_get_compile_instance initializer.
8323 (cplus_language::get_compile_instance): New member function.
8324 (asm_language_data): Delete la_get_compile_instance initializer.
8325 (minimal_language_data): Likewise.
8326 * c-lang.h (c_get_compile_context): Update comment.
8327 (cplus_get_compile_context): Update comment.
8328 * compile/compile.c (compile_to_object): Update calls, don't rely
8329 on function pointer being NULL.
8330 * d-lang.c (d_language_data): Delete la_get_compile_instance
8331 initializer.
8332 * f-lang.c (f_language_data): Likewise.
8333 * go-lang.c (go_language_data): Likewise.
8334 * language.c (unknown_language_data): Likewise.
8335 (auto_language_data): Likewise.
8336 * language.h (language_data): Delete la_get_compile_instance field.
8337 (language_defn::get_compile_instance): New member function.
8338 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8339 initializer.
8340 * objc-lang.c (objc_language_data): Likewise.
8341 * opencl-lang.c (opencl_language_data): Likewise.
8342 * p-lang.c (pascal_language_data): Likewise.
8343 * rust-lang.c (rust_language_data): Likewise.
8344
8345 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8346
8347 * ada-lang.c (ada_add_all_symbols): Update comment.
8348 (ada_iterate_over_symbols): Delete, move implementation to...
8349 (ada_language::iterate_over_symbols): ...here, a new member
8350 function, rewrite to use range based for loop.
8351 (ada_language_data): Delete la_iterate_over_symbols initializer.
8352 * c-lang.c (c_language_data): Likewise.
8353 (cplus_language_data): Likewise.
8354 (asm_language_data): Likewise.
8355 (minimal_language_data): Likewise.
8356 * d-lang.c (d_language_data): Likewise.
8357 * f-lang.c (f_language_data): Likewise.
8358 * go-lang.c (go_language_data): Likewise.
8359 * language.c (unknown_language_data): Likewise.
8360 (auto_language_data): Likewise.
8361 * language.h (language_data): Delete la_iterate_over_symbols field.
8362 (language_defn::iterate_over_symbols): New member function.
8363 (LA_ITERATE_OVER_SYMBOLS): Update.
8364 * linespec.c (iterate_over_all_matching_symtabs): Update.
8365 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8366 initializer.
8367 * objc-lang.c (objc_language_data): Likewise.
8368 * opencl-lang.c (opencl_language_data): Likewise.
8369 * p-lang.c (pascal_language_data): Likewise.
8370 * rust-lang.c (rust_language_data): Likewise.
8371
8372 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8373
8374 * ada-lang.c (ada_language_data): Delete
8375 la_lookup_transparent_type initializer.
8376 * c-lang.c (c_language_data): Likewise.
8377 (cplus_language_data): Likewise.
8378 (cplus_language::lookup_transparent_type): New member function.
8379 (asm_language_data): Delete la_lookup_transparent_type
8380 initializer.
8381 (minimal_language_data): Likewise.
8382 * d-lang.c (d_language_data): Likewise.
8383 * f-lang.c (f_language_data): Likewise.
8384 * go-lang.c (go_language_data): Likewise.
8385 * language.c (unknown_language_data): Likewise.
8386 (auto_language_data): Likewise.
8387 * language.h (struct language_data): Delete
8388 la_lookup_transparent_type field.
8389 (language_defn::lookup_transparent_type): New member function.
8390 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8391 initializer.
8392 * objc-lang.c (objc_language_data): Likewise.
8393 * opencl-lang.c (opencl_language_data): Likewise.
8394 * p-lang.c (pascal_language_data): Likewise.
8395 * rust-lang.c (rust_language_data): Likewise.
8396 * symtab.c (symbol_matches_domain): Update call.
8397
8398 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * ada-lang.c (ada_language_arch_info): Delete function, move
8401 implementation to...
8402 (ada_language::language_arch_info): ...here, a new member
8403 function.
8404 (ada_language_data): Delete la_language_arch_info.
8405 * c-lang.c (c_language_data): Likewise.
8406 (c_language::language_arch_info): New member function.
8407 (cplus_language_arch_info): Delete function, move
8408 implementation to...
8409 (cplus_language::language_arch_info): ...here, a new member
8410 function.
8411 (cplus_language_data): Delete la_language_arch_info.
8412 (asm_language_data): Likewise.
8413 (asm_language::language_arch_info): New member function.
8414 (minimal_language_data): Delete la_language_arch_info.
8415 (minimal_language::language_arch_info): New member function.
8416 * d-lang.c (d_language_arch_info): Delete function, move
8417 implementation to...
8418 (d_language::language_arch_info): ...here, a new member
8419 function.
8420 (d_language_data): Delete la_language_arch_info.
8421 * f-lang.c (f_language_arch_info): Delete function, move
8422 implementation to...
8423 (f_language::language_arch_info): ...here, a new member
8424 function.
8425 (f_language_data): Delete la_language_arch_info.
8426 * go-lang.c (go_language_arch_info): Delete function, move
8427 implementation to...
8428 (go_language::language_arch_info): ...here, a new member
8429 function.
8430 (go_language_data): Delete la_language_arch_info.
8431 * language.c (unknown_language_data): Likewise.
8432 (unknown_language::language_arch_info): New member function.
8433 (auto_language_data): Delete la_language_arch_info.
8434 (auto_language::language_arch_info): New member function.
8435 (language_gdbarch_post_init): Update call to
8436 la_language_arch_info.
8437 * language.h (language_data): Delete la_language_arch_info
8438 function pointer.
8439 (language_defn::language_arch_info): New function.
8440 * m2-lang.c (m2_language_arch_info): Delete function, move
8441 implementation to...
8442 (m2_language::language_arch_info): ...here, a new member
8443 function.
8444 (m2_language_data): Delete la_language_arch_info.
8445 * objc-lang.c (objc_language_arch_info): Delete function, move
8446 implementation to...
8447 (objc_language::language_arch_info): ...here, a new member
8448 function.
8449 (objc_language_data): Delete la_language_arch_info.
8450 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8451 implementation to...
8452 (opencl_language::language_arch_info): ...here, a new member
8453 function.
8454 (opencl_language_data): Delete la_language_arch_info.
8455 * p-lang.c (pascal_language_arch_info): Delete function, move
8456 implementation to...
8457 (pascal_language::language_arch_info): ...here, a new member
8458 function.
8459 (pascal_language_data): Delete la_language_arch_info.
8460 * rust-lang.c (rust_language_arch_info): Delete function, move
8461 implementation to...
8462 (rust_language::language_arch_info): ...here, a new member
8463 function.
8464 (rust_language_data): Delete la_language_arch_info.
8465
8466 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8467
8468 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8469 initializer.
8470 * c-lang.c (c_language_data): Likewise.
8471 (cplus_language_data): Likewise.
8472 (cplus_language::pass_by_reference_info): New method.
8473 (asm_language_data): Delete la_pass_by_reference initializer.
8474 (minimal_language_data): Likewise.
8475 * cp-abi.c (cp_pass_by_reference): Remove use of
8476 default_pass_by_reference.
8477 * d-lang.c (d_language_data): Likewise.
8478 * f-lang.c (f_language_data): Likewise.
8479 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8480 default_pass_by_reference.
8481 * go-lang.c (go_language_data): Likewise.
8482 * language.c (language_pass_by_reference): Update.
8483 (default_pass_by_reference): Delete.
8484 (unknown_language_data): Delete la_pass_by_reference
8485 initializer.
8486 (auto_language_data): Likewise.
8487 * language.h (struct language_data): Delete la_pass_by_reference
8488 field.
8489 (language_defn::pass_by_reference_info): New member function.
8490 (default_pass_by_reference): Delete declaration.
8491 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8492 initializer.
8493 * objc-lang.c (objc_language_data): Likewise.
8494 * opencl-lang.c (opencl_language_data): Likewise.
8495 * p-lang.c (pascal_language_data): Likewise.
8496 * rust-lang.c (rust_language_data): Likewise.
8497
8498 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8499
8500 * ada-lang.c (ada_read_var_value): Delete function, move
8501 implementation to...
8502 (ada_language::read_var_value): ...here.
8503 (ada_language_data): Delete la_read_var_value initializer.
8504 * c-lang.c (c_language_data): Likewise.
8505 (cplus_language_data): Likewise.
8506 (minimal_language_data): Likewise.
8507 * d-lang.c (d_language_data): Likewise.
8508 * f-lang.c (f_language_data): Likewise.
8509 * findvar.c (default_read_var_value): Rename to...
8510 (language_defn::read_var_value): ...this.
8511 * findvar.c (read_var_value): Update header comment, and change to
8512 call member function instead of function pointer.
8513 * go-lang.c (go_language_data): Likewise.
8514 * language.c (unknown_language_data): Delete la_read_var_value
8515 initializer.
8516 (auto_language_data): Likewise.
8517 * language.h (struct language_data): Delete la_read_var_value
8518 field.
8519 (language_defn::read_var_value): New member function.
8520 (default_read_var_value): Delete declaration.
8521 * m2-lang.c (m2_language_data): Delete la_read_var_value
8522 initializer.
8523 * objc-lang.c (objc_language_data): Likewise.
8524 * opencl-lang.c (opencl_language_data): Likewise.
8525 * p-lang.c (pascal_language_data): Likewise.
8526 * rust-lang.c (rust_language_data): Likewise.
8527 * value.h (default_read_var_value): Delete declaration.
8528
8529 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * ada-lang.c (ada_print_array_index): Delete function, move
8532 implementation to...
8533 (ada_language::print_array_index): ...here.
8534 (ada_language_data): Delete la_print_array_index initializer.
8535 * c-lang.c (c_language_data): Likewise.
8536 (cplus_language_data): Likewise.
8537 (minimal_language_data): Likewise.
8538 * d-lang.c (d_language_data): Likewise.
8539 * f-lang.c (f_language_data): Likewise.
8540 * go-lang.c (go_language_data): Likewise.
8541 * language.c (default_print_array_index): Delete function, move
8542 implementation to...
8543 (language_defn::print_array_index): ...here.
8544 (unknown_language_data): Delete la_print_array_index initializer.
8545 (auto_language_data): Likewise.
8546 * language.h (struct language_data): Delete la_print_array_index
8547 field.
8548 (language_defn::print_array_index): New member function.
8549 (LA_PRINT_ARRAY_INDEX): Update.
8550 (default_print_array_index): Delete declaration.
8551 * m2-lang.c (m2_language_data): Delete la_print_array_index
8552 initializer.
8553 * objc-lang.c (objc_language_data): Likewise.
8554 * opencl-lang.c (opencl_language_data): Likewise.
8555 * p-lang.c (pascal_language_data): Likewise.
8556 * rust-lang.c (rust_language_data): Likewise.
8557
8558 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8559
8560 * gdb/ada-lang.c (ada_language_defn): Convert to...
8561 (ada_language_data): ...this.
8562 (class ada_language): New class.
8563 (ada_language_defn): New static global.
8564 * gdb/c-lang.c (c_language_defn): Convert to...
8565 (c_language_data): ...this.
8566 (class c_language): New class.
8567 (c_language_defn): New static global.
8568 (cplus_language_defn): Convert to...
8569 (cplus_language_data): ...this.
8570 (class cplus_language): New class.
8571 (cplus_language_defn): New static global.
8572 (asm_language_defn): Convert to...
8573 (asm_language_data): ...this.
8574 (class asm_language): New class.
8575 (asm_language_defn): New static global.
8576 (minimal_language_defn): Convert to...
8577 (minimal_language_data): ...this.
8578 (class minimal_language): New class.
8579 (minimal_language_defn): New static global.
8580 * gdb/d-lang.c (d_language_defn): Convert to...
8581 (d_language_data): ...this.
8582 (class d_language): New class.
8583 (d_language_defn): New static global.
8584 * gdb/f-lang.c (f_language_defn): Convert to...
8585 (f_language_data): ...this.
8586 (class f_language): New class.
8587 (f_language_defn): New static global.
8588 * gdb/go-lang.c (go_language_defn): Convert to...
8589 (go_language_data): ...this.
8590 (class go_language): New class.
8591 (go_language_defn): New static global.
8592 * gdb/language.c (unknown_language_defn): Remove declaration.
8593 (current_language): Initialize to nullptr, real initialization is
8594 moved to _initialize_language.
8595 (languages): Delete global.
8596 (language_defn::languages): Define.
8597 (set_language_command): Use language_defn::languages.
8598 (set_language): Likewise.
8599 (range_error): Likewise.
8600 (language_enum): Likewise.
8601 (language_def): Likewise.
8602 (add_set_language_command): Use language_def::languages for the
8603 language list, and language_def to lookup language pointers.
8604 (skip_language_trampoline): Use language_defn::languages.
8605 (unknown_language_defn): Convert to...
8606 (unknown_language_data): ...this.
8607 (class unknown_language): New class.
8608 (unknown_language_defn): New static global.
8609 (auto_language_defn): Convert to...
8610 (auto_language_data): ...this.
8611 (class auto_language): New class.
8612 (auto_language_defn): New static global.
8613 (language_gdbarch_post_init): Use language_defn::languages.
8614 (_initialize_language): Initialize current_language.
8615 * gdb/language.h (struct language_defn): Rename to...
8616 (struct language_data): ...this.
8617 (struct language_defn): New.
8618 (auto_language_defn): Delete.
8619 (unknown_language_defn): Delete.
8620 (minimal_language_defn): Delete.
8621 (ada_language_defn): Delete.
8622 (asm_language_defn): Delete.
8623 (c_language_defn): Delete.
8624 (cplus_language_defn): Delete.
8625 (d_language_defn): Delete.
8626 (f_language_defn): Delete.
8627 (go_language_defn): Delete.
8628 (m2_language_defn): Delete.
8629 (objc_language_defn): Delete.
8630 (opencl_language_defn): Delete.
8631 (pascal_language_defn): Delete.
8632 (rust_language_defn): Delete.
8633 * gdb/m2-lang.c (m2_language_defn): Convert to...
8634 (m2_language_data): ...this.
8635 (class m2_language): New class.
8636 (m2_language_defn): New static global.
8637 * gdb/objc-lang.c (objc_language_defn): Convert to...
8638 (objc_language_data): ...this.
8639 (class objc_language): New class.
8640 (objc_language_defn): New static global.
8641 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8642 (opencl_language_data): ...this.
8643 (class opencl_language): New class.
8644 (opencl_language_defn): New static global.
8645 * gdb/p-lang.c (pascal_language_defn): Convert to...
8646 (pascal_language_data): ...this.
8647 (class pascal_language): New class.
8648 (pascal_language_defn): New static global.
8649 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8650 language pointer, update comment format.
8651 * gdb/rust-lang.c (rust_language_defn): Convert to...
8652 (rust_language_data): ...this.
8653 (class rust_language): New class.
8654 (rust_language_defn): New static global.
8655
8656 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8657
8658 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8659 member variable.
8660 <m_stmt_at_address>: New member variable.
8661 (lnp_state_machine::record_line): Don't record some lines, update
8662 tracking of is_stmt at the same address.
8663 (lnp_state_machine::lnp_state_machine): Initialise new member
8664 variables.
8665
8666 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8667
8668 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8669 "-include gnu-nat-mig.h".
8670 * gnu-nat-mig.h: New file.
8671 * gnu-nat.c: Include "gnu-nat-mig.h".
8672 (exc_server, msg_reply_server, notify_server,
8673 process_reply_server): Remove declarations.
8674
8675 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8676
8677 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8678 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8679 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8680 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8681 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8682 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8683 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8684 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8685 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8686 to gnu_nat_target class.
8687 * gnu-nat.c: Likewise.
8688 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8689 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8690 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8691 object.
8692 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8693 instead of `gnu_target'.
8694
8695 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8696
8697 * i386-gnu-tdep.c: Include "gdbcore.h"
8698 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8699 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8700 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8701 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8702 i386_gnu_sigcontext_addr): New functions
8703 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8704 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8705 tdep.
8706
8707 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8708
8709 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8710 before fork_inferior call. Avoid calling it if target_is_pushed returns
8711 true.
8712
8713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8714
8715 * gnu-nat.h (gnu_target): New variable declaration.
8716 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8717 gnu_target.
8718 * gnu-nat.c (gnu_target): New variable.
8719 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8720 add_thread_silent, and add_thread calls.
8721 (gnu_nat_target::create_inferior): Pass gnu_target to
8722 add_thread_silent, thread_change_ptid call.
8723 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8724 call.
8725
8726 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8727
8728 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8729 (gnu_nat_target::find_memory_regions): Remove unused
8730 `old_address' variable.
8731
8732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8733
8734 * gnu-nat.c: Include "gdbarch.h".
8735
8736 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8737
8738 * reply_mig_hack.awk (Error return): Cast function through
8739 void *, to bypass compiler function call check.
8740
8741 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8742
8743 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8744 $(srcdir)/reply_mig_hack.awk.
8745
8746 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8747
8748 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8749
8750 2020-05-30 Jonny Grant <jg@jguk.org>
8751
8752 * configure.ac (ACX_BUGURL): change bug URL to https.
8753
8754 2020-05-30 Pedro Alves <palves@redhat.com>
8755
8756 * cp-support.c (replace_typedefs_template): New.
8757 (replace_typedefs_qualified_name): Handle
8758 DEMANGLE_COMPONENT_TEMPLATE.
8759
8760 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8763 dwarf2/index-cache.h, dwarf2/index-write.c,
8764 dwarf2/index-write.h, dwarf2/line-header.c,
8765 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8766 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8767 variables and fields from `dwarf2_per_objfile` to just
8768 `per_objfile` throughout.
8769
8770 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8771
8772 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8773 <push_dwarf_reg_entry_value>: Add comment.
8774
8775 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8776 Keith Seitz <keiths@redhat.com>
8777
8778 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8779 instead of PyEval_ReleaseLock.
8780 (class gdbpy_gil): Move to earlier in file.
8781 (finalize_python): Set gdb_python_initialized.
8782 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8783 when not initialized.
8784
8785 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8788 <push_dwarf_reg_entry_value>: Remove assert. Override
8789 per_objfile with caller_per_objfile.
8790
8791 2020-05-28 Tom de Vries <tdevries@suse.de>
8792
8793 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8794 PR gold/15646 workaround to symbol kind "type".
8795
8796 2020-05-27 Tom Tromey <tromey@adacore.com>
8797
8798 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8799
8800 2020-05-27 Tom Tromey <tromey@adacore.com>
8801
8802 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8803 Use htab_find_with_hash.
8804 <add_abbrev>: Remove "abbrev_number" parameter.
8805 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8806 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8807 (hash_abbrev): Add comment.
8808 (abbrev_table::lookup_abbrev): Move to header file.
8809 (abbrev_table::read): Update.
8810
8811 2020-05-27 Tom Tromey <tromey@adacore.com>
8812
8813 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8814 method.
8815 <canonical_name>: New member.
8816 <raw_name>: Rename from "name".
8817 (partial_die_info): Initialize canonical_name.
8818 (scan_partial_symbols): Check raw_name.
8819 (partial_die_parent_scope, partial_die_full_name)
8820 (add_partial_symbol, add_partial_subprogram)
8821 (add_partial_enumeration, load_partial_dies): Use "name" method.
8822 (partial_die_info::name): New method.
8823 (partial_die_info::read, guess_partial_die_structure_name)
8824 (partial_die_info::fixup): Update.
8825
8826 2020-05-27 Tom Tromey <tromey@adacore.com>
8827
8828 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8829 <get_ref_die_offset>: Inline.
8830 <get_ref_die_offset_complaint>: New method.
8831 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8832 (attribute::get_ref_die_offset_complaint): Rename from
8833 get_ref_die_offset. Just issue complaint.
8834
8835 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8836
8837 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8838
8839 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8840
8841 * exec.c (exec_file_attach): Use errno value of first openp failure.
8842
8843 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8844
8845 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8846 Don't close thread handle.
8847
8848 2020-05-27 Tom Tromey <tom@tromey.com>
8849 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8852 shared_ptr.
8853 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8854 member.
8855 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8856 dwarf2_per_bfd_objfile_data_key>: New globals.
8857 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8858 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8859 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8860 shared.
8861 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8862 short-circuit when sharing.
8863 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8864 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8865
8866 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8869 to...
8870 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8871 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8872
8873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8874
8875 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8876 build_name_components, find_name_components_bounds>:
8877 Add per_objfile parameter.
8878 (struct mapped_index) <symbol_name_at>: Likewise.
8879 (struct mapped_debug_names): Remove constructor.
8880 <dwarf2_per_objfile>: Remove field.
8881 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8882 (mapped_index_base::find_name_components_bounds,
8883 mapped_index_base::build_name_components,
8884 dw2_expand_symtabs_matching_symbol): Likewise.
8885 (class mock_mapped_index) <symbol_name_at>: Likewise.
8886 (check_match): Likewise.
8887 (check_find_bounds_finds): Likewise.
8888 (test_mapped_index_find_name_component_bounds): Update.
8889 (CHECK_MATCH): Update.
8890 (dw2_expand_symtabs_matching): Update.
8891 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8892 per_objfile parameter.
8893 <find_vec_in_debug_names>: Likewise.
8894 <m_per_objfile>: New field.
8895 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8896 parameter.
8897 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8898 (dw2_debug_names_iterator::next): Update.
8899 (dw2_debug_names_lookup_symbol): Update.
8900 (dw2_debug_names_expand_symtabs_for_function): Update.
8901 (dw2_debug_names_map_matching_symbols): Update.
8902 (dw2_debug_names_expand_symtabs_matching): Update.
8903 (dwarf2_read_debug_names): Update.
8904
8905 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8906
8907 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8908 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8909 move to dwarf2_per_objfile.
8910 <read_in_chain>: Remove.
8911 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8912 remove_all_cus, age_comp_units>: New methods.
8913 <m_dwarf2_cus>: New member.
8914 (struct dwarf2_per_cu_data) <cu>: Remove.
8915 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8916 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8917 moved to methods of dwarf2_per_objfile.
8918 (dwarf2_clear_marks): Remove.
8919 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8920 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8921 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8922 (dwarf2_per_objfile::remove_all_cus): New.
8923 (class free_cached_comp_units) <~free_cached_comp_units>:
8924 Update.
8925 (load_cu): Update.
8926 (dw2_do_instantiate_symtab): Adjust.
8927 (fill_in_sig_entry_from_dwo_entry): Adjust.
8928 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8929 (cutu_reader::cutu_reader): Likewise.
8930 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8931 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8932 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8933 and dwarf2_per_objfile::age_comp_units.
8934 (load_partial_comp_unit): Update.
8935 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8936 (process_queue): Likewise.
8937 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8938 backlink.
8939 (dwarf2_read_addr_index): Likewise.
8940 (follow_die_offset): Likewise.
8941 (dwarf2_fetch_die_loc_sect_off): Likewise.
8942 (dwarf2_fetch_constant_bytes): Likewise.
8943 (dwarf2_fetch_die_type_sect_off): Likewise.
8944 (follow_die_sig_1): Likewise.
8945 (load_full_type_unit): Likewise.
8946 (read_signatured_type): Likewise.
8947 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8948 (dwarf2_cu::~dwarf2_cu): Remove.
8949 (dwarf2_per_objfile::get_cu): New.
8950 (dwarf2_per_objfile::set_cu): New.
8951 (age_cached_comp_units): Rename to...
8952 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8953 to std::unordered_map.
8954 (free_one_cached_comp_unit): Rename to...
8955 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8956 to std::unordered_map.
8957 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8958 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8959 a dwarf2_per_objfile in data.
8960 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8961 (dwarf2_clear_marks): Remove.
8962
8963 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8966 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8967 (init_tu_and_read_dwo_dies): Likewise.
8968 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8969 (cutu_reader::cutu_reader): Likewise.
8970 (load_partial_comp_unit): Likewise.
8971 (process_psymtab_comp_unit): Update.
8972 (build_type_psymtabs_1): Update.
8973 (process_skeletonless_type_unit): Update.
8974 (load_full_comp_unit): Update.
8975 (find_partial_die): Update.
8976 (dwarf2_read_addr_index): Update.
8977 (read_signatured_type): Update.
8978
8979 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8980
8981 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8982 m_header_read_in>: New fields.
8983 <get_header>: New method.
8984 * dwarf2/read.c (per_cu_header_read_in): Remove.
8985 (dwarf2_per_cu_data::get_header): New.
8986 (dwarf2_per_cu_data::addr_size): Update.
8987 (dwarf2_per_cu_data::offset_size): Update.
8988 (dwarf2_per_cu_data::ref_addr_size): Update.
8989
8990 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8991
8992 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8993 (dw2_do_instantiate_symtab): Update.
8994 (queue_and_load_all_dwo_tus): Change parameter from
8995 dwarf2_per_cu_data to dwarf2_cu.
8996 (dwarf2_fetch_die_loc_sect_off): Update.
8997 (dwarf2_fetch_constant_bytes): Update.
8998 (dwarf2_fetch_die_type_sect_off): Update.
8999
9000 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9001
9002 * dwarf2/read.c (process_full_comp_unit,
9003 process_full_type_unit): Remove per_cu, per_objfile paramters.
9004 Add dwarf2_cu parameter.
9005 (process_queue): Update.
9006
9007 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9008
9009 * dwarf2/read.c (create_cu_from_index_list): Replace
9010 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9011 (create_cus_from_index_list): Likewise.
9012 (create_cus_from_index): Likewise.
9013 (create_signatured_type_table_from_index): Likewise.
9014 (create_cus_from_debug_names_list): Likewise.
9015 (create_cus_from_debug_names): Likewise.
9016 (dwarf2_read_gdb_index): Update.
9017 (dwarf2_read_debug_names): Update.
9018
9019 2020-05-27 Tom Tromey <tom@tromey.com>
9020 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * dwarf2/read.h (struct dwarf2_per_objfile)
9023 <get_type_for_signatured_type, set_type_for_signatured_type>:
9024 New methods.
9025 <m_type_map>: New member.
9026 (struct signatured_type) <type>: Remove.
9027 * dwarf2/read.c
9028 (dwarf2_per_objfile::get_type_for_signatured_type,
9029 dwarf2_per_objfile::set_type_for_signatured_type): New.
9030 (get_signatured_type): Use new methods.
9031
9032 2020-05-27 Tom Tromey <tom@tromey.com>
9033 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9036 (struct dwarf2_per_objfile) <type_units>: New member.
9037 <get_type_unit_group_unshareable>: New method.
9038 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9039 num_symtabs, symtabs>: Remove; move to
9040 type_unit_group_unshareable.
9041 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9042 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9043 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9044
9045 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * dwarf2/read.h (struct dwarf2_per_cu_data):
9048 <dwarf2_per_objfile>: Remove.
9049 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9050 dwarf2_per_objfile.
9051 (create_signatured_type_table_from_index): Likewise.
9052 (create_signatured_type_table_from_debug_names): Likewise.
9053 (create_debug_type_hash_table): Likewise.
9054 (fill_in_sig_entry_from_dwo_entry): Likewise.
9055 (create_type_unit_group): Likewise.
9056 (read_comp_units_from_section): Likewise.
9057 (create_cus_hash_table): Likewise.
9058
9059 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9062 dwarf2_per_cu_data::dwarf2_per_objfile.
9063 (compute_compunit_symtab_includes): Likewise.
9064 (dwarf2_cu::start_symtab): Likewise.
9065
9066 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9067
9068 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9069 parameter.
9070 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9071 (read_namespace_alias): Update.
9072 (lookup_die_type): Update.
9073 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9074 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9075 Update.
9076 (disassemble_dwarf_expression): Update.
9077
9078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * dwarf2/read.h (struct dwarf2_queue_item): Add
9081 dwarf2_per_objfile parameter, assign new parameter.
9082 <per_objfile>: New field.
9083 * dwarf2/read.c (free_one_cached_comp_unit): Add
9084 dwarf2_per_objfile parameter.
9085 (queue_comp_unit): Likewise.
9086 (dw2_do_instantiate_symtab): Update.
9087 (process_psymtab_comp_unit): Update.
9088 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9089 (process_imported_unit_die): Update.
9090 (queue_and_load_dwo_tu): Update.
9091 (follow_die_offset): Update.
9092 (follow_die_sig_1): Update.
9093
9094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9097 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9098 (read_call_site_scope): Assign per_objfile.
9099 (dwarf2_per_cu_data::objfile): Remove.
9100 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9101 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9102 dwarf2_per_objfile parameter.
9103 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9104 dwarf2_per_objfile parameter.
9105 (dwarf_expr_reg_to_entry_parameter): Add output
9106 dwarf2_per_objfile parameter.
9107 (locexpr_get_frame_base): Update.
9108 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9109 <push_dwarf_reg_entry_value>: Update.
9110 <call_site_to_target_addr>: Update.
9111 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9112 parameter.
9113 (value_of_dwarf_reg_entry): Update.
9114 (rw_pieced_value): Update.
9115 (indirect_synthetic_pointer): Update.
9116 (dwarf2_evaluate_property): Update.
9117 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9118 parameter.
9119 (locexpr_read_variable): Update.
9120 (locexpr_get_symbol_read_needs): Update.
9121 (loclist_read_variable): Update.
9122
9123 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9126 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9127 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9128 parameter.
9129 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9130 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9131 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9132 parameter.
9133 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9134 sect_variable_value): Add dwarf2_per_objfile parameter.
9135 (class dwarf_evaluate_loc_desc) <dwarf_call,
9136 dwarf_variable_value>: Update.
9137 (fetch_const_value_from_synthetic_pointer): Add
9138 dwarf2_per_objfile parameter.
9139 (fetch_const_value_from_synthetic_pointer): Update.
9140 (coerced_pieced_ref): Update.
9141 (class symbol_needs_eval_context) <dwarf_call,
9142 dwarf_variable_value>: Update.
9143 (dwarf2_compile_expr_to_ax): Update.
9144
9145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9148 parameter.
9149 (dwarf2_evaluate_loc_desc_full): Update.
9150
9151 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9152
9153 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9154 parameter.
9155 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9156 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9157 dwarf2_per_objfile parameter.
9158 (decode_debug_loc_dwo_addresses): Likewise.
9159 (dwarf2_find_location_expression): Update.
9160 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9161 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9162 parameter.
9163 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9164 parameter.
9165 (locexpr_describe_location_1): Likewise.
9166 (locexpr_describe_location): Update.
9167
9168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9171 Remove.
9172 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9173 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9174 (dwarf2_compile_property_to_c): Update.
9175 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9176 use text offset from objfile.
9177 (locexpr_tracepoint_var_ref): Update.
9178 (locexpr_generate_c_location): Update.
9179 (loclist_describe_location): Update.
9180 (loclist_tracepoint_var_ref): Update.
9181 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9182 dwarf2_per_objfile parameter.
9183 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9184 use text offset from objfile.
9185 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9186
9187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * dwarf2/expr.h (struct dwarf_expr_context)
9190 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9191 <offset>: Remove.
9192 <per_objfile>: New member.
9193 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9194 dwarf2_per_objfile parameter. Don't set offset, set
9195 per_objfile.
9196 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9197 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9198 a dwarf2_per_objfile object instead of an offset.
9199 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9200 constructor.
9201 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9202 to dwarf2_expr_executor constructor. Don't set offset.
9203 (dwarf2_fetch_cfa_info): Update.
9204 (struct dwarf2_frame_cache) <text_offset>: Remove.
9205 <per_objfile>: New field.
9206 (dwarf2_frame_cache): Update.
9207 (dwarf2_frame_prev_register): Update.
9208 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9209 <dwarf_evaluate_loc_desc>: Add constructor.
9210 (dwarf2_evaluate_loc_desc_full): Update.
9211 (dwarf2_locexpr_baton_eval): Update.
9212 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9213 Add constructor.
9214 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9215
9216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9219 addr_sized_int_type>: Move to dwarf2_cu.
9220 <int_type>: Move to dwarf2_per_objfile.
9221 (struct dwarf2_per_objfile) <int_type>: Move here.
9222 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9223 addr_sized_int_type>: Move here.
9224 (read_func_scope): Update.
9225 (read_array_type): Update.
9226 (read_tag_string_type): Update.
9227 (attr_to_dynamic_prop): Update.
9228 (dwarf2_per_cu_data::int_type): Rename to...
9229 (dwarf2_per_objfile::int_type): ... this.
9230 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9231 (dwarf2_cu::addr_sized_int_type): ... this.
9232 (read_subrange_type): Update.
9233 (dwarf2_per_cu_data::addr_type): Rename to...
9234 (dwarf2_cu::addr_type): ... this.
9235 (set_die_type): Update.
9236
9237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9240 data through per_cu->cu.
9241
9242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9245 dwarf2_per_cu_data parameter fo dwarf2_cu.
9246 (lookup_dwo_type_unit): Likewise.
9247 (read_cutu_die_from_dwo): Likewise.
9248 (lookup_dwo_unit): Likewise.
9249 (open_and_init_dwo_file): Likewise.
9250 (lookup_dwo_cutu): Likewise.
9251 (lookup_dwo_comp_unit): Likewise.
9252 (lookup_dwo_type_unit): Likewise.
9253 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9254 (cutu_reader::cutu_reader): Update.
9255
9256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9259 parameter.
9260 (process_full_type_unit): Likewise.
9261 (process_queue): Update.
9262
9263 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * dwarf2/read.c (recursively_compute_inclusions): Add
9266 dwarf2_per_objfile parameter.
9267 (compute_compunit_symtab_includes): Likewise.
9268 (process_cu_includes): Update.
9269
9270 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9273 parameter.
9274 (create_type_unit_group): Update.
9275 (process_psymtab_comp_unit_reader): Update.
9276 (build_type_psymtabs_reader): Update.
9277
9278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9281 object through m_this_cu->cu.
9282
9283 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9284
9285 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9286 the info parameter.
9287 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9288
9289 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9290
9291 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9292 per_objfile parameter.
9293 (load_full_type_unit): Add per_objfile parameter.
9294 (read_signatured_type): Likewise.
9295 (load_full_comp_unit): Likewise.
9296 (load_cu): Likewise.
9297 (dw2_do_instantiate_symtab): Likewise.
9298 (dw2_get_file_names): Likewise.
9299 (dw2_map_symtabs_matching_filename): Update.
9300 (dw_expand_symtabs_matching_file_matcher): Update.
9301 (dw2_map_symbol_filenames): Update.
9302 (process_psymtab_comp_unit): Add per_objfile parameter.
9303 (build_type_psymtabs_1): Update.
9304 (process_skeletonless_type_unit): Update.
9305 (dwarf2_build_psymtabs_hard): Update.
9306 (load_partial_comp_unit): Add per_objfile parameter.
9307 (scan_partial_symbols): Update.
9308 (load_full_comp_unit): Add per_objfile parameter.
9309 (process_imported_unit_die): Update.
9310 (create_cus_hash_table): Update.
9311 (find_partial_die): Update.
9312 (dwarf2_read_addr_index): Update.
9313 (follow_die_offset): Update.
9314 (dwarf2_fetch_die_loc_sect_off): Update.
9315 (dwarf2_fetch_constant_bytes): Update.
9316 (dwarf2_fetch_die_type_sect_off): Update.
9317 (follow_die_sig_1): Update.
9318 (load_full_type_unit): Add per_objfile parameter.
9319 (read_signatured_type): Likewise.
9320
9321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9324 of objfile_name.
9325
9326 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9327
9328 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9329 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9330 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9331 field.
9332 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9333 (create_cus_from_index): Update.
9334 (dwarf2_read_gdb_index): Update.
9335 (create_cus_from_debug_names): Update.
9336 (dwarf2_read_debug_names): Update.
9337 (get_abbrev_section_for_cu): Update.
9338 (create_all_comp_units): Update.
9339 (read_attribute_value): Update.
9340 (get_debug_line_section): Update.
9341 * dwarf2/index-cache.c (index_cache::store): Update.
9342 * dwarf2/index-write.c (save_gdb_index_command): Update.
9343 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9344
9345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9346
9347 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9348 member.
9349 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9350 dwarf2_per_cu_data::per_bfd.
9351 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9352 (create_type_unit_group): Likewise.
9353 (queue_comp_unit): Remove reference to
9354 per_cu->dwarf2_per_objfile.
9355 (maybe_queue_comp_unit): Likewise.
9356 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9357 (create_cus_hash_table): Assign new field.
9358
9359 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * dwarf2/read.c: Replace
9362 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9363 dwarf2_cu->per_objfile throughout.
9364
9365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9368 parameter, don't use per_cu->dwarf2_per_objfile.
9369 (dw2_instantiate_symtab): Likewise.
9370 (dw2_find_last_source_symtab): Update.
9371 (dw2_map_expand_apply): Update.
9372 (dw2_lookup_symbol): Update.
9373 (dw2_expand_symtabs_for_function): Update.
9374 (dw2_expand_all_symtabs): Update.
9375 (dw2_expand_symtabs_with_fullname): Update.
9376 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9377 don't use per_cu->dwarf2_per_objfile.
9378 (dw2_expand_marked_cus): Update.
9379 (dw2_find_pc_sect_compunit_symtab): Update.
9380 (dw2_debug_names_lookup_symbol): Update.
9381 (dw2_debug_names_expand_symtabs_for_function): Update.
9382 (dw2_debug_names_map_matching_symbols): Update.
9383 (dwarf2_psymtab::expand_psymtab): Update.
9384
9385 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9388 <per_objfile>: New member.
9389 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9390 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9391 call to dwarf2_cu.
9392 (cutu_reader::cutu_reader): Update.
9393 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9394
9395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9396
9397 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9398 struct dwarf2_per_objfile.
9399 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9400 dwarf2_per_bfd.
9401 * dwarf2/read.c (set_die_type): Update.
9402 (get_die_type_at_offset): Update.
9403
9404 2020-05-27 Tom Tromey <tom@tromey.com>
9405 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9408 method.
9409 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9410 get_symtab, set_symtab>: New methods.
9411 <m_symtabs>: New field.
9412 (struct dwarf2_psymtab): Derive from partial_symtab.
9413 <readin_p, get_compunit_symtab>: Declare methods.
9414 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9415 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9416 New methods.
9417 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9418 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9419 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9420 (dw2_symtab_iter_next, dw2_print_stats)
9421 (dw2_expand_symtabs_with_fullname)
9422 (dw2_expand_symtabs_matching_one)
9423 (dw_expand_symtabs_matching_file_matcher)
9424 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9425 (dw2_debug_names_iterator::next)
9426 (dw2_debug_names_map_matching_symbols)
9427 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9428 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9429 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9430 New methods.
9431 (get_compunit_symtab, process_full_comp_unit)
9432 (process_full_type_unit): Update.
9433 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9434
9435 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9436
9437 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9438 then introduce a new dwarf2_per_objfile type.
9439 <read_line_string>: Move to the new dwarf2_per_objfile type.
9440 <objfile>: Likewise.
9441 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9442 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9443 dwarf2_per_objfile->per_bfd.
9444 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9445 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9446 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9447 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9448 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9449 (dwarf2_per_objfile::locate_sections): Rename to...
9450 (dwarf2_per_bfd::locate_sections): ... this.
9451 (dwarf2_per_objfile::get_cutu): Rename to...
9452 (dwarf2_per_bfd::get_cutu): ... this.
9453 (dwarf2_per_objfile::get_cu): Rename to...
9454 (dwarf2_per_bfd::get_cu): ... this.
9455 (dwarf2_per_objfile::get_tu): Rename to...
9456 (dwarf2_per_bfd::get_tu): ... this.
9457 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9458 (dwarf2_per_bfd::allocate_per_cu): ... this.
9459 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9460 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9461 (get_gdb_index_contents_ftype): Change parameter from
9462 dwarf2_per_objfile to dwarf2_per_bfd.
9463 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9464 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9465
9466 2020-05-27 Tom Tromey <tom@tromey.com>
9467 Simon Marchi <simon.marchi@efficios.com>
9468
9469 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9470 (allocate_piece_closure): Set "per_objfile" member.
9471 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9472 (locexpr_describe_location, loclist_describe_location): Use new
9473 member.
9474 * dwarf2/read.c (read_call_site_scope)
9475 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9476 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9477 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9478 handle_data_member_location): Set per_objfile member.
9479 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9480 member.
9481 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9482
9483 2020-05-27 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9486 allocate_signatured_type>: Declare new methods.
9487 <m_num_psymtabs>: New member.
9488 (struct dwarf2_per_cu_data) <index>: New member.
9489 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9490 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9491 (create_cu_from_index_list): Use allocate_per_cu.
9492 (create_signatured_type_table_from_index)
9493 (create_signatured_type_table_from_debug_names)
9494 (create_debug_type_hash_table, add_type_unit)
9495 (read_comp_units_from_section): Use allocate_signatured_type.
9496
9497 2020-05-27 Tom Tromey <tom@tromey.com>
9498
9499 * psymtab.c (partial_map_expand_apply)
9500 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9501 (psym_lookup_global_symbol_language)
9502 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9503 (psym_print_stats, psym_expand_symtabs_for_function)
9504 (psym_map_symbol_filenames, psym_map_matching_symbols)
9505 (psym_expand_symtabs_matching)
9506 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9507 (maintenance_check_psymtabs): Update.
9508 * psympriv.h (struct partial_symtab) <readin_p,
9509 get_compunit_symtab>: Add objfile parameter.
9510 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9511 Likewise.
9512 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9513 get_compunit_symtab>: Likewise.
9514 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9515
9516 2020-05-27 Tom Tromey <tom@tromey.com>
9517
9518 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9519 member.
9520 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9521 (create_cu_from_index_list)
9522 (create_signatured_type_table_from_index)
9523 (create_signatured_type_table_from_debug_names)
9524 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9525 (dwarf2_create_include_psymtab)
9526 (create_debug_type_hash_table, add_type_unit)
9527 (create_type_unit_group, read_comp_units_from_section)
9528 (dwarf2_compute_name, create_cus_hash_table)
9529 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9530 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9531 obstack.
9532 (dw2_get_real_path): Likewise. Change argument to
9533 dwarf2_per_objfile.
9534
9535 2020-05-27 Luis Machado <luis.machado@linaro.org>
9536
9537 PR tdep/26000
9538 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9539 for ldrd (immediate).
9540
9541 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9542
9543 * command.h: Add comment giving the name of class_tui.
9544 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9545 create the fake command for the help for class_tui.
9546
9547 2020-05-26 Tom Tromey <tromey@adacore.com>
9548
9549 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9550 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9551 (val_atr): New function.
9552 (value_val_atr): Use it.
9553 * ada-valprint.c (print_optional_low_bound): Change low bound
9554 handling for enums.
9555 (val_print_packed_array_elements): Don't call discrete_position.
9556 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9557 discrete_position for enum types.
9558 * language.c (default_print_array_index): Change type.
9559 * language.h (struct language_defn) <la_print_array_index>: Add
9560 index_type parameter, change type of index_value.
9561 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9562 (default_print_array_index): Update.
9563 * valprint.c (maybe_print_array_index): Don't call
9564 value_from_longest. Update.
9565 (value_print_array_elements): Don't call discrete_position.
9566
9567 2020-05-26 Tom Tromey <tromey@adacore.com>
9568
9569 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9570 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9571
9572 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9573
9574 PR gdb/13519
9575 * avr-tdep.c (avr_integer_to_address): Return data or code
9576 address accordingly to the second 'type' argument of the
9577 function.
9578
9579 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9580
9581 * infcmd.c, inferior.h: (construct_inferior_arguments):
9582 Moved function from here to gdbsupport/common-inferior.{h,cc}
9583
9584 2020-05-23 Tom Tromey <tom@tromey.com>
9585
9586 Revert commit eca1f90c:
9587 * NEWS: Remove entry for completion styling.
9588 * completer.c (_rl_completion_prefix_display_length): Move
9589 declaration later.
9590 (gdb_fnprint): Revert.
9591 (gdb_display_match_list_1): Likewise.
9592 * cli/cli-style.c (completion_prefix_style)
9593 (completion_difference_style, completion_suffix_style): Remove.
9594 (_initialize_cli_style): Revert.
9595 * cli/cli-style.h (completion_prefix_style)
9596 (completion_difference_style, completion_suffix_style): Don't
9597 declare.
9598
9599 2020-05-24 Pedro Alves <palves@redhat.com>
9600
9601 * symtab.c (completion_list_add_name): Return boolean indication
9602 of whether the symbol matched.
9603 (completion_list_add_symbol): Don't try to remove C++ aliases if
9604 the symbol didn't match in the first place.
9605 * symtab.h (completion_list_add_name): Return bool.
9606
9607 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9608
9609 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9610 type::field.
9611
9612 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9613
9614 GDB 9.2 released.
9615
9616 2020-05-23 Tom Tromey <tom@tromey.com>
9617
9618 * NEWS: Add entry for completion styling.
9619 * completer.c (_rl_completion_prefix_display_length): Move
9620 declaration earlier.
9621 (gdb_fnprint): Use completion_style.
9622 (gdb_display_match_list_1): Likewise.
9623 * cli/cli-style.c (completion_prefix_style)
9624 (completion_difference_style, completion_suffix_style): New
9625 globals.
9626 (_initialize_cli_style): Register new globals.
9627 * cli/cli-style.h (completion_prefix_style)
9628 (completion_difference_style, completion_suffix_style): Declare.
9629
9630 2020-05-23 Pedro Alves <palves@redhat.com>
9631
9632 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9633 (parse_escape): Use ISDIGIT instead of isdigit.
9634 (puts_debug): Use gdb_isprint instead of isprint.
9635 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9636 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9637 ISSPACE instead of isspace.
9638 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9639 instead of isspace.
9640 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9641 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9642 instead of isxdigit and ISDIGIT instead of isdigit.
9643
9644 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * gdbtypes.h (struct type) <field>: New method.
9647 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9648 or type::field.
9649
9650 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9653 (TYPE_FIELDS): Use type::fields. Change all call sites that
9654 modify the propery to use type::set_fields instead.
9655
9656 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9659 type::num_fields instead.
9660
9661 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9664 methods.
9665 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9666 that modify the number of fields to use type::set_num_fields
9667 instead.
9668
9669 2020-05-22 Tom Tromey <tromey@adacore.com>
9670
9671 * compile/compile-object-load.h (munmap_list_free): Don't
9672 declare.
9673
9674 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9675
9676 * annotate.c (annotate_source_line): Update return type, add call
9677 to update current symtab and line.
9678 * annotate.h (annotate_source_line): Update return type, and
9679 extend header comment.
9680 * source.c (info_line_command): Check annotation_level before
9681 calling annotate_source_line.
9682 * stack.c (print_frame_info): If calling annotate_source_line
9683 returns true, then don't print any other source line information.
9684
9685 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9686
9687 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9688
9689 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9690
9691 * coffread.c (patch_type): Remove NULL check before xfree.
9692 * corefile.c (set_gnutarget): Likewise.
9693 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9694 * exec.c (build_section_table): Likewise.
9695 * remote.c (remote_target::pass_signals): Likewise.
9696 * utils.c (n_spaces): Likewise.
9697 * cli/cli-script.c (document_command): Likewise.
9698 * i386-windows-tdep.c (core_process_module_section): Likewise.
9699 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9700
9701 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9702
9703 * symfile.c (reread_symbols): Clear objfile's section_offsets
9704 vector and section indices, re-compute them by calling
9705 sym_offsets.
9706
9707 2020-05-20 Tom Tromey <tromey@adacore.com>
9708
9709 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9710 (desc_one_bound, desc_index_type): Compute field name.
9711
9712 2020-05-20 Tom de Vries <tdevries@suse.de>
9713
9714 PR symtab/25833
9715 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9716
9717 2020-05-20 Alan Modra <amodra@gmail.com>
9718
9719 PR 25993
9720 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9721 bfd_set_filename.
9722 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9723 passed to bfd_set_filename.
9724 * symfile-mem.c (add_vsyscall_page): Likewise for string
9725 passed to symbol_file_add_from_memory.
9726 (symbol_file_add_from_memory): Make name param a const char* and
9727 don't strdup.
9728
9729 2020-05-20 Alan Modra <amodra@gmail.com>
9730
9731 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9732 rather than accessing bfd->filename directly.
9733 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9734 and use bfd_section_name.
9735 * dwarf2/frame.c (decode_frame_entry): Likewise.
9736 * exec.c (exec_set_section_address): Likewise.
9737 * solib-aix.c (solib_aix_bfd_open): Likewise.
9738 * stap-probe.c (get_stap_base_address): Likewise.
9739 * symfile.c (reread_symbols): Likewise.
9740
9741 2020-05-19 Tom Tromey <tromey@adacore.com>
9742
9743 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9744
9745 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9748
9749 2020-05-19 Pedro Alves <palves@redhat.com>
9750
9751 * NEWS (set exec-file-mismatch): Adjust entry.
9752 * exec.c: Include "build-id.h".
9753 (validate_exec_file): Try to match build IDs instead of filenames.
9754 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9755 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9756 and pass down 'warn_if_slow'.
9757 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9758 gdb_bfd_open_closure to pass it down.
9759 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9760
9761 2020-05-19 Pedro Alves <palves@redhat.com>
9762
9763 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9764 * target.c (target_fileio_open_1): Rename to target_fileio_open
9765 and make extern. Use bool.
9766 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9767 (target_fileio_read_alloc_1): Adjust.
9768 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9769 (target_fileio_open_warn_if_slow): Delete declaration.
9770
9771 2020-05-19 Pedro Alves <palves@redhat.com>
9772
9773 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9774 Adjust all callers.
9775
9776 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9777
9778 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9779 whether disp is negative.
9780
9781 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * symfile.h (struct symfile_segment_data)
9784 <~symfile_segment_data>: Remove.
9785 <segment_info>: Change to std::vector.
9786 * symfile.c (default_symfile_segments): Update.
9787 * elfread.c (elf_symfile_segments): Update.
9788
9789 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9792 <segments>: New.
9793 <segment_bases, segment_sizes>: Remove.
9794 * symfile.c (default_symfile_segments): Update.
9795 * elfread.c (elf_symfile_segments): Update.
9796 * remote.c (remote_target::get_offsets): Update.
9797 * solib-target.c (solib_target_relocate_section_addresses):
9798 Update.
9799
9800 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * symfile.h (struct symfile_segment_data): Initialize fields.
9803 <~symfile_segment_data>: Add.
9804 (symfile_segment_data_up): New.
9805 (struct sym_fns) <sym_segments>: Return a
9806 symfile_segment_data_up.
9807 (default_symfile_segments): Return a symfile_segment_data_up.
9808 (free_symfile_segment_data): Remove.
9809 (get_symfile_segment_data): Return a symfile_segment_data_up.
9810 * symfile.c (default_symfile_segments): Likewise.
9811 (get_symfile_segment_data): Likewise.
9812 (free_symfile_segment_data): Remove.
9813 (symfile_find_segment_sections): Update.
9814 * elfread.c (elf_symfile_segments): Return a
9815 symfile_segment_data_up.
9816 * remote.c (remote_target::get_offsets): Update.
9817 * solib-target.c (solib_target_relocate_section_addresses):
9818 Update.
9819 * symfile-debug.c (debug_sym_segments): Return a
9820 symfile_segment_data_up.
9821
9822 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9823
9824 PR build/25981
9825 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9826 Hardcode register numbers.
9827
9828 PR build/25981
9829 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9830 procfs_find_LDT_entry): Remove.
9831 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9832 procfs_find_LDT_entry): Remove.
9833 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9834 Remove.
9835
9836 2020-05-17 Pedro Alves <palves@redhat.com>
9837 Andrew Burgess <andrew.burgess@embecosm.com>
9838 Keno Fischer <keno@juliacomputing.com>
9839
9840 PR gdb/25741
9841 * breakpoint.c (build_target_condition_list): Update comments.
9842 (build_target_command_list): Update comments and skip matching
9843 locations.
9844 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9845 a separate function. Simplify "set breakpoint auto-hw off"
9846 handling.
9847 (insert_breakpoints): Update comment.
9848 (tracepoint_locations_match): New parameter. For breakpoints,
9849 compare location types too, if the caller wants to.
9850 (handle_automatic_hardware_breakpoints): New functions.
9851 (bp_location_is_less_than): Also sort by location type and
9852 hardware breakpoint length.
9853 (update_global_location_list): Handle "set breakpoint auto-hw on"
9854 here.
9855 (update_breakpoint_locations): Ask breakpoint_locations_match to
9856 ignore location types.
9857
9858 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9859
9860 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9861 type::name instead.
9862
9863 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * gdbtypes.h (struct type) <name, set_name>: New methods.
9866 (TYPE_CODE): Use type::name. Change all call sites used to set
9867 the name to use type::set_name instead.
9868
9869 2020-05-16 Tom Tromey <tom@tromey.com>
9870
9871 * top.c (quit_force): Update.
9872 * infrun.c (handle_no_resumed): Update.
9873 * top.h (all_uis): New function.
9874 (ALL_UIS): Remove.
9875
9876 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9877
9878 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9879
9880 2020-05-16 Pedro Alves <palves@redhat.com>
9881
9882 * ia64-linux-nat.c
9883 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9884 Declare method.
9885 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9886
9887 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9890 (sparc64_adi_info): Likewise.
9891
9892 2020-05-15 Tom Tromey <tom@tromey.com>
9893
9894 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9895 block_objfile.
9896 (lookup_objfile_from_block): Remove.
9897 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9898 (lookup_global_symbol): Use block_objfile.
9899 * symtab.h (lookup_objfile_from_block): Don't declare.
9900 * printcmd.c (clear_dangling_display_expressions): Use
9901 block_objfile.
9902 * parse.c (operator_check_standard): Use block_objfile.
9903
9904 2020-05-15 Tom Tromey <tom@tromey.com>
9905
9906 * language.c (language_alloc_type_symbol): Set
9907 SYMBOL_SECTION.
9908 * symtab.c (initialize_objfile_symbol): Remove.
9909 (allocate_symbol): Remove.
9910 (allocate_template_symbol): Remove.
9911 * dwarf2/read.c (fixup_go_packaging): Use "new".
9912 (new_symbol): Use "new".
9913 (read_variable): Don't call initialize_objfile_symbol. Use
9914 "new".
9915 (read_func_scope): Use "new".
9916 * xcoffread.c (process_xcoff_symbol): Don't call
9917 initialize_objfile_symbol.
9918 (SYMBOL_DUP): Remove.
9919 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9920 "new".
9921 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9922 (allocate_template_symbol): Don't declare.
9923 (struct symbol): Add copy constructor. Change defaults.
9924 * jit.c (finalize_symtab): Use "new".
9925 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9926 Use "new".
9927 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9928 (common_block_end): Use "new".
9929 * mdebugread.c (parse_symbol): Use "new".
9930 (new_symbol): Likewise.
9931
9932 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9933
9934 * NEWS: Mention changes to help and apropos.
9935
9936 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9937
9938 * command.h (enum command_class): Improve comments, document
9939 that class_alias is for user-defined aliases, give the class
9940 name for each class, remove unused class_xdb.
9941 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9942 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9943 by a precise class.
9944 * infcmd.c (_initialize_infcmd): Likewise.
9945 * reverse.c (_initialize_reverse): Likewise.
9946 * stack.c (_initialize_stack): Likewise.
9947 * symfile.c (_initialize_symfile): Likewise.
9948 * tracepoint.c (_initialize_tracepoint): Likewise.
9949
9950 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9951
9952 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9953 when their aliased command is traversed.
9954 (help_cmd): Add fput_command_names_styled call to
9955 output command name and aliases when command has an alias.
9956
9957 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9958
9959 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9960 * cli/cli-decode.c (help_cmd_list): Declare as static,
9961 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9962 a command together with the command.
9963 (fput_command_name_styled, fput_command_names_styled): New functions.
9964 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9965 fput_command_name_styled.
9966 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9967 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9968
9969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9970
9971 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9972 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9973 * command.h (cmd_show_list): Likewise.
9974 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9975 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9976
9977 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9978
9979 * unittests/command-def-selftests.c (traverse_command_structure):
9980 Verify all commands of a list have the same prefix command and
9981 that only the top cmdlist commands have a null prefix.
9982
9983 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9984
9985 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9986 as prefix, not one of its aliases.
9987 (set_cmd_prefix): Remove.
9988 (do_add_cmd): Centralize the setting of the prefix of a command, when
9989 command is defined after its full chain of prefix commands.
9990 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9991 (add_setshow_cmd_full): Likewise.
9992 (update_prefix_field_of_prefixed_commands): New function.
9993 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9994 update_prefix_field_of_prefixed_commands.
9995 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9996 addresses of remote_set_cmdlist and remote_show_cmdlist given
9997 as argument, not the address of an argument.
9998 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9999 * gdb/remote.c (_initialize_remote): Likewise.
10000
10001 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10002
10003 * cli/cli-cmds.c (alias_command): Check for an existing alias
10004 using lookup_cmd_composition, as valid_command_p is too strict
10005 and forbids aliases that are the prefix of an existing alias
10006 or command.
10007 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10008 command is properly recognised as a valid command.
10009
10010 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10011
10012 * unittests/help-doc-selftests.c: Rename to
10013 unittests/command-def-selftests.c
10014 * unittests/command-def-selftests.c (help_doc_tests): Update some
10015 comments.
10016 (command_structure_tests, traverse_command_structure): New namespace
10017 and function.
10018 (command_structure_invariants_tests): New function.
10019 (_initialize_command_def_selftests) Renamed from
10020 _initialize_help_doc_selftests, register command_structure_invariants
10021 selftest.
10022
10023 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10024
10025 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10026 an alias of 'show'.
10027
10028 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10029
10030 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10031 ada_is_fixed_point_type. Update all callers.
10032 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10033 all callers.
10034 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10035 Update all callers.
10036 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10037 print_fixed_point_type. Update all callers.
10038 * ada-valprint.c (ada_value_print_num): Replace call to
10039 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10040
10041 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10042
10043 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10044 processors.
10045 (cpu_supports_bts): Add CV_AMD case.
10046
10047 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10048 Simon Marchi <simon.marchi@efficios.com>
10049
10050 * infrun.c (stop_all_threads): Collect multiple wait events at
10051 each pass.
10052
10053 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10054
10055 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10056 type::code instead.
10057
10058 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10059
10060 * gdbtypes.h (struct type) <code, set_code>: New methods.
10061 (TYPE_CODE): Use type::code. Change all call sites used to set
10062 the code to use type::set_code instead.
10063
10064 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10065 Tom de Vries <tdevries@suse.de>
10066 Pedro Alves <palves@redhat.com>
10067
10068 PR threads/25478
10069 * infrun.c (stop_all_threads): Do NOT ignore
10070 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10071 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10072 received.
10073 (handle_no_resumed): Remove code handling a live inferior with no
10074 threads.
10075 * remote.c (has_single_non_exited_thread): New.
10076 (remote_target::update_thread_list): Do not delete a thread if is
10077 the last thread of the process.
10078 * thread.c (thread_select): Call delete_exited_threads instead of
10079 prune_threads.
10080
10081 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10082
10083 * infrun.c (stop_all_threads): Enable/disable thread events of all
10084 targets. Move a debug message denoting the end of the function
10085 into the SCOPED_EXIT block.
10086
10087 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10088
10089 * process-stratum-target.h: Include <set>.
10090 (all_non_exited_process_targets, switch_to_target_no_thread): New
10091 function declarations.
10092 * process-stratum-target.c (all_non_exited_process_targets)
10093 (switch_to_target_no_thread): New function implementations.
10094
10095 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10096
10097 * infrun.c (handle_inferior_event): Extract out a piece of code
10098 into...
10099 (mark_non_executing_threads): ...this new function.
10100
10101 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10102
10103 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10104 use.
10105
10106 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10107
10108 * regcache.c (regcache_read_pc_protected): New function
10109 implementation that returns 0 if the PC cannot read via
10110 'regcache_read_pc'.
10111 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10112 instead of 'regcache_read_pc'.
10113 (keep_going_pass_signal): Ditto.
10114
10115 2020-05-13 Tom Tromey <tromey@adacore.com>
10116
10117 * ada-lang.c (align_value): Remove.
10118 (ada_template_to_fixed_record_type_1): Use align_up.
10119
10120 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10121
10122 * async-event.c: Update the copyright year.
10123 * async-event.h: Update the copyright year.
10124
10125 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * objfiles.h (is_addr_in_objfile,
10128 shared_objfile_contains_address_p): Return bool.
10129 * objfile.c (is_addr_in_objfile,
10130 shared_objfile_contains_address_p): Return bool.
10131
10132 2020-05-11 Tom Tromey <tromey@adacore.com>
10133
10134 * cli/cli-cmds.c (info_command): Restore.
10135 (_initialize_cli_cmds): Use add_prefix_command for "info".
10136 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10137
10138 2020-05-11 Tom Tromey <tromey@adacore.com>
10139
10140 * ada-lang.c (ada_value_primitive_field): Now public.
10141 * ada-lang.h (ada_value_primitive_field): Declare.
10142 * ada-valprint.c (print_field_values): Use
10143 ada_value_primitive_field for wrapper fields.
10144
10145 2020-05-11 Tom de Vries <tdevries@suse.de>
10146
10147 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10148 MODULE_DOMAIN.
10149
10150 2020-05-11 Tom de Vries <tdevries@suse.de>
10151
10152 PR symtab/25941
10153 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10154 with length 0, if not gdb-produced.
10155 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10156
10157 2020-05-09 Tom de Vries <tdevries@suse.de>
10158
10159 PR gdb/25955
10160 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10161 calculation.
10162
10163 2020-05-09 Tom Tromey <tom@tromey.com>
10164
10165 * top.c (server_command): Now bool.
10166 * top.h (server_command): Now bool.
10167
10168 2020-05-08 Tom Tromey <tromey@adacore.com>
10169
10170 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10171 already being processed.
10172
10173 2020-05-08 Tom Tromey <tom@tromey.com>
10174
10175 * printcmd.c (struct display) <next>: Remove.
10176 <display>: New constructor.
10177 <exp_string>: Now a std::string.
10178 <enabled_p>: Now a bool.
10179 (display_number): Move definition earlier.
10180 (displays): Rename from display_chain. Now a std::vector.
10181 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10182 (display_command): Update.
10183 (do_one_display, disable_display)
10184 (enable_disable_display_command, do_enable_disable_display):
10185 Update.
10186 (free_display): Remove.
10187 (clear_displays): Rewrite.
10188 (delete_display): Update.
10189 (map_display_numbers): Use function_view. Remove "data"
10190 parameter. Update.
10191 (do_delete_display): Remove.
10192 (undisplay_command): Update.
10193 (do_one_display, do_displays, disable_display)
10194 (info_display_command): Update.
10195 (do_enable_disable_display): Remove.
10196 (enable_disable_display_command)
10197 (clear_dangling_display_expressions): Update.
10198
10199 2020-05-08 Tom Tromey <tom@tromey.com>
10200
10201 * symtab.c (set_symbol_cache_size)
10202 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10203 (maintenance_print_symbol_cache_statistics): Update.
10204 * symmisc.c (print_symbol_bcache_statistics)
10205 (print_objfile_statistics, maintenance_print_objfiles)
10206 (maintenance_info_symtabs, maintenance_check_symtabs)
10207 (maintenance_expand_symtabs, maintenance_info_line_tables):
10208 Update.
10209 * symfile-debug.c (set_debug_symfile): Update.
10210 * source.c (forget_cached_source_info): Update.
10211 * python/python.c (gdbpy_progspaces): Update.
10212 * psymtab.c (maintenance_info_psymtabs): Update.
10213 * probe.c (parse_probes): Update.
10214 * linespec.c (iterate_over_all_matching_symtabs)
10215 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10216 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10217 * exec.c (exec_target::close): Update.
10218 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10219 * breakpoint.c (print_one_breakpoint_location)
10220 (create_longjmp_master_breakpoint)
10221 (create_std_terminate_master_breakpoint): Update.
10222 * progspace.c (program_spaces): Now a std::vector.
10223 (maybe_new_address_space): Update.
10224 (add_program_space): Remove.
10225 (program_space::program_space): Update.
10226 (remove_program_space): Update.
10227 (number_of_program_spaces): Remove.
10228 (print_program_space, update_address_spaces): Update.
10229 * progspace.h (program_spaces): Change type.
10230 (ALL_PSPACES): Remove.
10231 (number_of_program_spaces): Don't declare.
10232 (struct program_space) <next>: Remove.
10233
10234 2020-05-08 Tom Tromey <tom@tromey.com>
10235
10236 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10237 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10238 (enable_break): Update.
10239 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10240 (frv_fdpic_find_canonical_descriptor): Update.
10241 (frv_fetch_objfile_link_map): Update.
10242 * progspace.c (program_space::free_all_objfiles): Update.
10243 (program_space::solibs): New method.
10244 * progspace.h (struct program_space) <solibs>: New method.
10245 * solist.h (master_so_list): Don't declare.
10246 (ALL_SO_LIBS): Remove.
10247 * solib.h (so_list_head): Remove.
10248 (update_solib_list): Update comment.
10249 * solib.c (master_so_list): Remove.
10250 (solib_used, update_solib_list, solib_add)
10251 (info_sharedlibrary_command, clear_solib)
10252 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10253
10254 2020-05-08 Tom Tromey <tom@tromey.com>
10255
10256 * extension.c (extension_languages): Now a std::array.
10257 (ALL_EXTENSION_LANGUAGES): Remove.
10258 (get_ext_lang_defn, get_ext_lang_of_file)
10259 (eval_ext_lang_from_control_command): Update.
10260 (finish_ext_lang_initialization)
10261 (auto_load_ext_lang_scripts_for_objfile)
10262 (ext_lang_type_printers::ext_lang_type_printers)
10263 (apply_ext_lang_type_printers)
10264 (ext_lang_type_printers::~ext_lang_type_printers)
10265 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10266 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10267 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10268 (get_matching_xmethod_workers, ext_lang_colorize)
10269 (ext_lang_before_prompt): Update.
10270 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10271
10272 2020-05-08 Tom Tromey <tom@tromey.com>
10273
10274 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10275 overload.
10276 <swap_string, m_string>: Remove.
10277 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10278 Update.
10279 * stabsread.c (define_symbol, read_type): Update.
10280 * linespec.c (find_linespec_symbols): Update.
10281 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10282 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10283 * dbxread.c (read_dbx_symtab): Update.
10284 * cp-support.h (cp_canonicalize_string_full)
10285 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10286 Return unique_xmalloc_ptr.
10287 * cp-support.c (inspect_type): Update.
10288 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10289 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10290 Likewise.
10291 * c-typeprint.c (print_name_maybe_canonical): Update.
10292 * break-catch-throw.c (check_status_exception_catchpoint):
10293 Update.
10294
10295 2020-05-08 Tom de Vries <tdevries@suse.de>
10296
10297 * infrun.c (follow_fork): Copy current_line and current_symtab to
10298 child thread.
10299
10300 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * async-event.c (struct async_signal_handler, struct
10303 async_event_handler): Reformat, remove typedef.
10304
10305 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10308 access thistype->main_type->dyn_prop_list directly.
10309
10310 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10313 (remove_dyn_prop): Remove. Update all users to use
10314 type::remove_dyn_prop.
10315 * gdbtypes.c (remove_dyn_prop): Rename to...
10316 (type::remove_dyn_prop): ... this.
10317
10318 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10319
10320 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10321 (add_dyn_prop): Remove. Update all users to use
10322 type::add_dyn_prop.
10323 * gdbtypes.c (add_dyn_prop): Rename to...
10324 (type::add_dyn_prop): ... this.
10325
10326 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10329 (get_dyn_prop): Remove. Update all users to use
10330 type::dyn_prop.
10331 * gdbtypes.c (get_dyn_prop): Rename to...
10332 (type::dyn_prop): ... this.
10333
10334 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10337
10338 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10341 instruction, skip it if it's there.
10342
10343 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10346
10347 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10348
10349 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10350 * gdbtypes.c (recursive_dump_type): Remove use of
10351 TYPE_INCOMPLETE.
10352
10353 2020-05-03 Tom Tromey <tom@tromey.com>
10354
10355 * breakpoint.c (catch_command, tcatch_command): Remove.
10356 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10357 add_show_prefix_cmd.
10358 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10359 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10360 Remove.
10361 (add_internal_problem_command): Use add_basic_prefix_cmd,
10362 add_show_prefix_cmd.
10363 * mips-tdep.c (set_mipsfpu_command): Remove.
10364 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10365 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10366 (_initialize_index_cache): Use add_basic_prefix_cmd.
10367 * memattr.c (dummy_cmd): Remove.
10368 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10369 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10370 (_initialize_tui_win): Use add_basic_prefix_cmd,
10371 add_show_prefix_cmd.
10372 * cli/cli-logging.c (set_logging_command): Remove.
10373 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10374 add_show_prefix_cmd.
10375 (show_logging_command): Remove.
10376 * target.c (target_command): Remove.
10377 (add_target): Use add_basic_prefix_cmd.
10378
10379 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10380
10381 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10382
10383 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10384
10385 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10386 info_command.
10387
10388 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10389
10390 * nbsd-nat.c (nbsd_enable_proc_events)
10391 (nbsd_nat_target::post_startup_inferior): Add.
10392 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10393 (nbsd_nat_target::update_thread_list): Rewrite.
10394 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10395 "PTRACE_LWP_CREATE".
10396 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10397
10398 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10399
10400 * stack.c (_initialize_stack): Remove duplicated creation
10401 of "frame" command and "f" alias.
10402
10403 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10404
10405 PR gdb/18706
10406 * gdbtypes.c (check_typedef): Calculate size of array of
10407 stubbed type.
10408
10409 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10410
10411 PR gdb/15559
10412 * i386-tdep.c (i386_push_dummy_call): Call
10413 i386_thiscall_push_dummy_call.
10414 (i386_thiscall_push_dummy_call): New function.
10415 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10416 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10417 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10418
10419 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10420
10421 * gdbarch.sh (do_read): Add shellcheck disable directive for
10422 warning SC2162.
10423
10424 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10427 "referenced but not assigned" warning.
10428
10429 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * gdbarch.sh: Remove code that sets fallbackdefault.
10432
10433 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10434
10435 * gdbarch.sh: Use shell operators && and || instead of
10436 -a and -o.
10437
10438 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * gdbarch.sh: Use $(...) instead of `...`.
10441
10442 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10443
10444 * gdbarch.sh: Use double quotes around variables.
10445
10446 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * gdbarch.sh: Use %s with printf, instead of variables in the
10449 format string.
10450
10451 2020-04-29 Tom Tromey <tromey@adacore.com>
10452
10453 PR ada/25875:
10454 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10455 type fields here.
10456 (read_enumeration_type): Call
10457 update_enumeration_type_from_children later. Update comments.
10458 (process_enumeration_scope): Don't create type fields.
10459
10460 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10461
10462 * nbsd-tdep.c: Include "xml-syscall.h".
10463 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10464
10465 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10466
10467 * nbsd-nat.c: Include "sys/wait.h".
10468 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10469 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10470 (nbsd_nat_target::remove_exec_catchpoint)
10471 (nbsd_nat_target::set_syscall_catchpoint): Add.
10472 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10473 (nbsd_nat_target::insert_exec_catchpoint)
10474 (nbsd_nat_target::remove_exec_catchpoint)
10475 (nbsd_nat_target::set_syscall_catchpoint): Add.
10476 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10477 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10478 `nbsd_get_syscall_number'.
10479
10480 2020-04-29 Tom Tromey <tom@tromey.com>
10481
10482 * stack.c (print_block_frame_labels): Remove.
10483
10484 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10485
10486 PR gdb/17320
10487 * ada-valprint.c (val_print_packed_array_elements): Move array
10488 end bracket to new line.
10489 (ada_val_print_string): Remove extra spaces before first array
10490 element.
10491 * c-valprint.c (c_value_print_array): Likewise.
10492 * m2-valprint.c (m2_print_array_contents): Likewise.
10493 (m2_value_print_inner): Likewise.
10494 * p-valprint.c (pascal_value_print_inner): Likewise.
10495 * valprint.c (generic_val_print_array): Likewise.
10496 (value_print_array_elements): Move first array element and array
10497 end bracket to new line.
10498
10499 2020-04-29 Tom de Vries <tdevries@suse.de>
10500
10501 PR symtab/25889
10502 * linespec.c (find_method): Fix ix calculation.
10503
10504 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10505
10506 * syscalls/update-netbsd.sh: New file.
10507 * syscalls/netbsd.xml: Regenerate.
10508 * data-directory/Makefile.in: Register `netbsd.xml' in
10509 `SYSCALLS_FILES'.
10510
10511 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10512
10513 * syscalls/update-freebsd.sh: Add double quotes.
10514
10515 2020-04-28 Tom Tromey <tom@tromey.com>
10516
10517 * NEWS: Update.
10518 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10519 (cmdpy_init): Allow class_tui.
10520
10521 2020-04-28 Mark Williams <mark@myosotissp.com>
10522
10523 PR gdb/24480
10524 * dwarf2read.c: Add missing assingments to list_in_scope when
10525 start_symtab was already called.
10526
10527 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10528
10529 PR gdb/25881
10530 * dwarf2/read.c (offset_map_type): Use
10531 gdb:hash_enum<sect_offset> as hash function.
10532
10533 2020-04-28 Tom de Vries <tdevries@suse.de>
10534
10535 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10536 with DW_AT_signature.
10537
10538 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * configure.ac: Remove check for fs_base/gs_base in
10541 user_regs_struct.
10542 * configure: Re-generate.
10543 * config.in: Re-generate.
10544 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10545 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10546 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10547
10548 2020-04-27 Luis Machado <luis.machado@linaro.org>
10549
10550 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10551 problematic inline frame unwinding situation.
10552 * frame.c (frame_id_computed_p): New function.
10553 * frame.h (frame_id_computed_p): New prototype.
10554
10555 2020-04-26 Tom Tromey <tom@tromey.com>
10556
10557 * command.h (enum command_class) <class_pseudo>: Remove.
10558
10559 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10560
10561 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10562 and whitespace.
10563
10564 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10565
10566 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10567 `PT_GET_PROCESS_STATE' block.
10568
10569 2020-04-24 Tom Tromey <tom@tromey.com>
10570
10571 * symtab.h (symbol_get_demangled_name): Don't declare.
10572 * symtab.c (symbol_get_demangled_name): Remove.
10573 (general_symbol_info::natural_name)
10574 (general_symbol_info::demangled_name): Update.
10575
10576 2020-04-24 Tom Tromey <tom@tromey.com>
10577
10578 PR rust/25025:
10579 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10580
10581 2020-04-24 Tom Tromey <tom@tromey.com>
10582
10583 PR symtab/12707:
10584 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10585 exists.
10586 (new_symbol): Likewise.
10587 * compile/compile-object-load.c (get_out_value_type): Use
10588 symbol_matches_search_name.
10589
10590 2020-04-24 Tom Tromey <tom@tromey.com>
10591
10592 * dwarf2/read.c (add_partial_symbol): Do not call
10593 compute_and_set_names.
10594
10595 2020-04-24 Tom Tromey <tom@tromey.com>
10596
10597 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10598 overload.
10599
10600 2020-04-24 Tom Tromey <tom@tromey.com>
10601
10602 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10603 (add_psymbol_to_list): New overload. Make old overload call new
10604 one.
10605 * psympriv.h (add_psymbol_to_list): New overload.
10606
10607 2020-04-24 Tom Tromey <tom@tromey.com>
10608
10609 * dwarf2/read.c (partial_die_info::read) <case
10610 DW_AT_linkage_name>: Use value_as_string.
10611 (dwarf2_string_attr): Use value_as_string.
10612 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10613 method.
10614 * dwarf2/attribute.c (attribute::value_as_string): New method.
10615
10616 2020-04-24 Tom Tromey <tom@tromey.com>
10617
10618 * symtab.c (general_symbol_info::natural_name)
10619 (general_symbol_info::demangled_name): Check for language_rust.
10620
10621 2020-04-24 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10624 (dwarf2_physname): ... from here.
10625 (partial_die_info::read): Add Rust "{" hack.
10626
10627 2020-04-24 Tom Tromey <tom@tromey.com>
10628
10629 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10630 method.
10631 (symbol_set_demangled_name): Don't declare.
10632 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10633 symbol_set_demangled_name.
10634 (general_symbol_info::set_language)
10635 (general_symbol_info::compute_and_set_names): Update.
10636 * minsyms.c (minimal_symbol_reader::install): Update.
10637 * dwarf2/read.c (new_symbol): Update.
10638
10639 2020-04-24 Tom Tromey <tromey@adacore.com>
10640
10641 PR python/23662:
10642 * python/py-type.c (convert_field): Handle
10643 FIELD_LOC_KIND_DWARF_BLOCK.
10644 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10645 (typy_get_dynamic): Nw function.
10646 (type_object_getset): Add "dynamic".
10647 * NEWS: Add entry.
10648
10649 2020-04-24 Tom Tromey <tromey@adacore.com>
10650
10651 * ada-typeprint.c (print_choices, print_variant_part)
10652 (print_record_field_types_dynamic): New functions.
10653 (print_record_field_types): Use print_record_field_types_dynamic.
10654
10655 2020-04-24 Tom Tromey <tromey@adacore.com>
10656
10657 * dwarf2/read.c (handle_data_member_location): New overload.
10658 (dwarf2_add_field): Use it.
10659 (decode_locdesc): Add "computed" parameter. Update comment.
10660 * gdbtypes.c (is_dynamic_type_internal): Also look for
10661 FIELD_LOC_KIND_DWARF_BLOCK.
10662 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10663 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10664 virtual base classes.
10665 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10666 FIELD_LOC_KIND_DWARF_BLOCK.
10667
10668 2020-04-24 Tom Tromey <tromey@adacore.com>
10669
10670 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10671 * gdbtypes.c (is_dynamic_type_internal): Check
10672 TYPE_HAS_DYNAMIC_LENGTH.
10673 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10674 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10675 New macros.
10676 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10677 constant.
10678
10679 2020-04-24 Tom Tromey <tromey@adacore.com>
10680
10681 * dwarf2/read.c (struct variant_field): Rewrite.
10682 (struct variant_part_builder): New.
10683 (struct nextfield): Remove "variant" field. Add "offset".
10684 (struct field_info): Add "current_variant_part" and
10685 "variant_parts".
10686 (alloc_discriminant_info): Remove.
10687 (alloc_rust_variant): New function.
10688 (quirk_rust_enum): Update.
10689 (dwarf2_add_field): Set "offset" member. Don't handle
10690 DW_TAG_variant_part.
10691 (offset_map_type): New typedef.
10692 (convert_variant_range, create_one_variant)
10693 (create_one_variant_part, create_variant_parts)
10694 (add_variant_property): New functions.
10695 (dwarf2_attach_fields_to_type): Call add_variant_property.
10696 (read_structure_type): Don't handle DW_TAG_variant_part.
10697 (handle_variant_part, handle_variant): New functions.
10698 (handle_struct_member_die): Use them.
10699 (process_structure_scope): Don't handle variant parts.
10700 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10701 (struct discriminant_info): Remove.
10702 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10703 (struct main_type) <flag_discriminated_union>: Remove.
10704 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10705 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10706 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10707 Update.
10708 * valops.c (value_union_variant): Remove.
10709 * value.h (value_union_variant): Don't declare.
10710
10711 2020-04-24 Tom Tromey <tromey@adacore.com>
10712
10713 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10714 (ada_value_primitive_packed_val): Update.
10715 * ada-valprint.c (ada_value_print_1): Update.
10716 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10717 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10718 just an address. Use evaluate_for_locexpr_baton.
10719 (dwarf2_evaluate_property): Update.
10720 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10721 array_view.
10722 * findvar.c (default_read_var_value): Update.
10723 * gdbtypes.c (compute_variant_fields_inner)
10724 (resolve_dynamic_type_internal): Update.
10725 (resolve_dynamic_type): Change type of valaddr parameter.
10726 * gdbtypes.h (resolve_dynamic_type): Update.
10727 * valarith.c (value_subscripted_rvalue): Update.
10728 * value.c (value_from_contents_and_address): Update.
10729
10730 2020-04-24 Tom Tromey <tromey@adacore.com>
10731
10732 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10733 "push_initial_value" parameter.
10734 (dwarf2_evaluate_property): Likewise.
10735 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10736
10737 2020-04-24 Tom Tromey <tromey@adacore.com>
10738
10739 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10740 (variant::matches, compute_variant_fields_recurse)
10741 (compute_variant_fields_inner, compute_variant_fields): New
10742 functions.
10743 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10744 Use resolved_type after type is made.
10745 (operator==): Add new cases.
10746 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10747 (struct discriminant_range, struct variant, struct variant_part):
10748 New.
10749 (union dynamic_prop_data) <variant_parts, original_type>: New
10750 members.
10751 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10752 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10753 constants.
10754 * value.c (unpack_bits_as_long): Now public.
10755 * value.h (unpack_bits_as_long): Declare.
10756
10757 2020-04-24 Tom Tromey <tromey@adacore.com>
10758
10759 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10760 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10761
10762 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10763
10764 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10765
10766 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10767
10768 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10769 (remove_fork_catchpoint, post_startup_inferior)
10770 (post_attach): Move...
10771 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10772 (remove_fork_catchpoint, post_startup_inferior)
10773 (post_attach): ...here.
10774 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10775 (remove_fork_catchpoint, post_startup_inferior)
10776 (post_attach): Move...
10777 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10778 (remove_fork_catchpoint, post_startup_inferior)
10779 (post_attach): ...here.
10780
10781 2020-04-24 Tom Tromey <tromey@adacore.com>
10782
10783 * nat/windows-nat.h (struct windows_thread_info)
10784 <pc_adjusted>: New member.
10785 * windows-nat.c (windows_fetch_one_register): Check
10786 pc_adjusted.
10787 (windows_nat_target::get_windows_debug_event)
10788 (windows_nat_target::wait): Set pc_adjusted.
10789
10790 2020-04-24 Tom de Vries <tdevries@suse.de>
10791
10792 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10793 Run gdb-add-index inside temp dir.
10794
10795 2020-04-23 Tom Tromey <tromey@adacore.com>
10796
10797 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10798 in loop.
10799
10800 2020-04-23 Luis Machado <luis.machado@linaro.org>
10801
10802 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10803 get_frame_register instead of gdbarch_unwind_pc.
10804
10805 2020-04-23 Tom de Vries <tdevries@suse.de>
10806
10807 * symtab.c (lookup_global_symbol): Prefer def over decl.
10808
10809 2020-04-23 Tom de Vries <tdevries@suse.de>
10810
10811 PR symtab/25807
10812 * block.c (best_symbol, better_symbol): Promote to external.
10813 * block.h (best_symbol, better_symbol): Declare.
10814 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10815 decl.
10816
10817 2020-04-23 Tom Tromey <tromey@adacore.com>
10818
10819 PR ada/25837:
10820 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10821 "const char *", not a "const std::string &".
10822 <name_and_matcher::operator==>: Update.
10823 * unittests/lookup_name_info-selftests.c: Change type of
10824 "result".
10825
10826 2020-04-23 Tom Tromey <tom@tromey.com>
10827
10828 * inferior.h (iterate_over_inferiors): Don't declare.
10829 * inferior.c (iterate_over_inferiors): Remove.
10830 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10831 Remove.
10832 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10833 use iterate_over_inferiors.
10834 (darwin_resume_inferior_it)
10835 (struct resume_inferior_threads_param)
10836 (darwin_resume_inferior_threads_it): Remove.
10837 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10838
10839 2020-04-23 Tom de Vries <tdevries@suse.de>
10840
10841 * blockframe.c (find_pc_partial_function): Use
10842 find_pc_sect_compunit_symtab rather than
10843 objfile->sf->qf->find_pc_sect_compunit_symtab.
10844
10845 2020-04-22 Tom de Vries <tdevries@suse.de>
10846
10847 PR symtab/25764
10848 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10849 in psymtabs.
10850
10851 2020-04-22 Tom de Vries <tdevries@suse.de>
10852
10853 PR symtab/25801
10854 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10855 symtabs.
10856
10857 2020-04-22 Tom de Vries <tdevries@suse.de>
10858
10859 PR symtab/25700
10860 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10861 CU if already created.
10862
10863 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10864
10865 * infrun.c (displaced_step_fixup): Switch to the event_thread
10866 before calling displaced_step_restore, not after.
10867
10868 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10869
10870 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10871 its inferior is not recorded by us.
10872 (record_btrace_target_open): Replace call to
10873 all_non_exited_threads () with call to current_inferior
10874 ()->non_exited_threads ().
10875 (record_btrace_target::stop_recording): Likewise.
10876 (record_btrace_target::close): Likewise.
10877 (record_btrace_target::wait): Likewise.
10878 (record_btrace_target::record_stop_replaying): Likewise.
10879
10880 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10881
10882 * btrace.c (btrace_enable): Throw an error on double enables and
10883 when enabling recording fails.
10884 (btrace_disable): Throw an error if the thread is not recorded.
10885
10886 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10887
10888 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10889 request if we do not have a thread_info.
10890
10891 2020-04-21 Tom de Vries <tdevries@suse.de>
10892
10893 PR gdb/25471
10894 * thread.c
10895 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10896 exception in get_frame_id.
10897
10898 2020-04-20 Tom Tromey <tromey@adacore.com>
10899
10900 * python/python.c (struct gdbpy_event): Mark move constructor as
10901 noexcept.
10902 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10903 constructor as noexcept.
10904 * completer.h (struct completion_result): Mark move constructor as
10905 noexcept.
10906 * completer.c (completion_result::completion_result): Use
10907 initialization style. Don't call reset_match_list.
10908
10909 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10910
10911 * MAINTAINERS (Write After Approval): Add myself.
10912
10913 2020-04-18 Tom Tromey <tom@tromey.com>
10914
10915 * windows-tdep.c (init_w32_command_list)
10916 (w32_prefix_command_valid): Restore.
10917 (_initialize_windows_tdep): Call init_w32_command_list.
10918
10919 2020-04-18 Tom Tromey <tom@tromey.com>
10920
10921 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10922 * value.c (value_fn_field): Update.
10923 * valops.c (find_function_in_inferior)
10924 (value_allocate_space_in_inferior): Update.
10925 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10926 Update.
10927 * tui/tui-source.c (tui_source_window::set_contents): Update.
10928 * symtab.c (lookup_global_or_static_symbol)
10929 (find_function_start_sal_1, skip_prologue_sal)
10930 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10931 * symmisc.c (dump_msymbols, dump_symtab_1)
10932 (maintenance_print_one_line_table): Update.
10933 * symfile.c (init_entry_point_info, section_is_mapped)
10934 (list_overlays_command, simple_read_overlay_table)
10935 (simple_overlay_update_1): Update.
10936 * stap-probe.c (handle_stap_probe): Update.
10937 * stabsread.c (dbx_init_float_type, define_symbol)
10938 (read_one_struct_field, read_enum_type, read_range_type): Update.
10939 * source.c (info_line_command): Update.
10940 * python/python.c (gdbpy_source_objfile_script)
10941 (gdbpy_execute_objfile_script): Update.
10942 * python/py-type.c (save_objfile_types): Update.
10943 * python/py-objfile.c (py_free_objfile): Update.
10944 * python/py-inferior.c (python_new_objfile): Update.
10945 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10946 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10947 (maintenance_check_psymtabs): Update.
10948 * printcmd.c (info_address_command): Update.
10949 * objfiles.h (struct objfile) <arch>: New method, from
10950 get_objfile_arch.
10951 (get_objfile_arch): Don't declare.
10952 * objfiles.c (get_objfile_arch): Remove.
10953 (filter_overlapping_sections): Update.
10954 * minsyms.c (msymbol_is_function): Update.
10955 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10956 (output_nondebug_symbol): Update.
10957 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10958 (mdebug_expand_psymtab): Update.
10959 * machoread.c (macho_add_oso_symfile): Update.
10960 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10961 Update.
10962 * linux-fork.c (checkpoint_command): Update.
10963 * linespec.c (convert_linespec_to_sals): Update.
10964 * jit.c (finalize_symtab): Update.
10965 * infrun.c (insert_exception_resume_from_probe): Update.
10966 * ia64-tdep.c (ia64_find_unwind_table): Update.
10967 * hppa-tdep.c (internalize_unwinds): Update.
10968 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10969 Update.
10970 * gcore.c (call_target_sbrk): Update.
10971 * elfread.c (record_minimal_symbol, elf_symtab_read)
10972 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10973 (elf_gnu_ifunc_resolve_by_got): Update.
10974 * dwarf2/read.c (create_addrmap_from_index)
10975 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10976 (read_debug_names_from_section)
10977 (process_psymtab_comp_unit_reader, add_partial_symbol)
10978 (add_partial_subprogram, process_full_comp_unit)
10979 (read_file_scope, read_func_scope, read_lexical_block_scope)
10980 (read_call_site_scope, dwarf2_ranges_read)
10981 (dwarf2_record_block_ranges, dwarf2_add_field)
10982 (mark_common_block_symbol_computed, read_tag_pointer_type)
10983 (read_tag_string_type, dwarf2_init_float_type)
10984 (dwarf2_init_complex_target_type, read_base_type)
10985 (partial_die_info::read, partial_die_info::read)
10986 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10987 (dwarf2_fetch_die_loc_sect_off): Update.
10988 * dwarf2/loc.c (dwarf2_find_location_expression)
10989 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10990 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10991 (dwarf2_loc_desc_get_symbol_read_needs)
10992 (locexpr_describe_location_piece, locexpr_describe_location_1)
10993 (loclist_describe_location): Update.
10994 * dwarf2/index-write.c (write_debug_names): Update.
10995 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10996 * dtrace-probe.c (dtrace_process_dof): Update.
10997 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10998 (process_one_symbol): Update.
10999 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11000 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11001 (coff_read_enum_type): Update.
11002 * cli/cli-cmds.c (edit_command, list_command): Update.
11003 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11004 * breakpoint.c (create_overlay_event_breakpoint)
11005 (create_longjmp_master_breakpoint)
11006 (create_std_terminate_master_breakpoint)
11007 (create_exception_master_breakpoint, get_sal_arch): Update.
11008 * block.c (block_gdbarch): Update.
11009 * annotate.c (annotate_source_line): Update.
11010
11011 2020-04-17 Tom Tromey <tromey@adacore.com>
11012
11013 * auto-load.c (show_auto_load_cmd): Remove.
11014 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11015 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11016 (maintenance_print_arc_command): Remove.
11017 * tui/tui-win.c (tui_command): Remove.
11018 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11019 * tui/tui-layout.c (tui_layout_command): Remove.
11020 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11021 * python/python.c (user_set_python, user_show_python): Remove.
11022 (_initialize_python): Use add_basic_prefix_cmd,
11023 add_show_prefix_cmd.
11024 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11025 (install_gdb_commands): Use add_basic_prefix_cmd,
11026 add_show_prefix_cmd.
11027 (info_guile_command): Remove.
11028 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11029 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11030 add_show_prefix_cmd.
11031 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11032 Remove do_set and do_show parameters.
11033 * cli/cli-style.c (set_style, show_style): Remove.
11034 (_initialize_cli_style): Use add_basic_prefix_cmd,
11035 add_show_prefix_cmd.
11036 (cli_style_option::add_setshow_commands): Remove do_set and
11037 do_show parameters.
11038 (cli_style_option::add_setshow_commands): Use
11039 add_basic_prefix_cmd, add_show_prefix_cmd.
11040 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11041 (set_style_name): Remove.
11042 * cli/cli-dump.c (dump_command, append_command): Remove.
11043 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11044 (tekhex_dump_command, binary_dump_command)
11045 (binary_append_command): Remove.
11046 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11047 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11048 (init_w32_command_list): Remove; move into ...
11049 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11050 * valprint.c (set_print, show_print, set_print_raw)
11051 (show_print_raw): Remove.
11052 (_initialize_valprint): Use add_basic_prefix_cmd,
11053 add_show_prefix_cmd.
11054 * typeprint.c (set_print_type, show_print_type): Remove.
11055 (_initialize_typeprint): Use add_basic_prefix_cmd,
11056 add_show_prefix_cmd.
11057 * record.c (set_record_command, show_record_command): Remove.
11058 (_initialize_record): Use add_basic_prefix_cmd,
11059 add_show_prefix_cmd.
11060 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11061 add_show_prefix_cmd.
11062 (info_command, show_command, set_debug, show_debug): Remove.
11063 * top.h (set_history, show_history): Don't declare.
11064 * top.c (set_history, show_history): Remove.
11065 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11066 (unset_tdesc_cmd): Remove.
11067 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11068 add_show_prefix_cmd.
11069 * symtab.c (info_module_command): Remove.
11070 (_initialize_symtab): Use add_basic_prefix_cmd.
11071 * symfile.c (overlay_command): Remove.
11072 (_initialize_symfile): Use add_basic_prefix_cmd.
11073 * sparc64-tdep.c (info_adi_command): Remove.
11074 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11075 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11076 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11077 add_show_prefix_cmd.
11078 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11079 (_initialize_serial): Use add_basic_prefix_cmd,
11080 add_show_prefix_cmd.
11081 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11082 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11083 add_show_prefix_cmd.
11084 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11085 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11086 add_show_prefix_cmd.
11087 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11088 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11089 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11090 add_show_prefix_cmd.
11091 * remote.c (remote_command, set_remote_cmd): Remove.
11092 (_initialize_remote): Use add_basic_prefix_cmd.
11093 * record-full.c (set_record_full_command)
11094 (show_record_full_command): Remove.
11095 (_initialize_record_full): Use add_basic_prefix_cmd,
11096 add_show_prefix_cmd.
11097 * record-btrace.c (cmd_set_record_btrace)
11098 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11099 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11100 (cmd_show_record_btrace_pt): Remove.
11101 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11102 add_show_prefix_cmd.
11103 * ravenscar-thread.c (set_ravenscar_command)
11104 (show_ravenscar_command): Remove.
11105 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11106 add_show_prefix_cmd.
11107 * mips-tdep.c (show_mips_command, set_mips_command)
11108 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 * maint.c (maintenance_command, maintenance_info_command)
11111 (maintenance_check_command, maintenance_print_command)
11112 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11113 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 (show_per_command_cmd): Remove.
11116 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11117 Remove.
11118 (maintenance_show_test_settings_cmd): Remove.
11119 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11120 add_show_prefix_cmd.
11121 * maint-test-options.c (maintenance_test_options_command):
11122 Remove.
11123 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11124 * macrocmd.c (macro_command): Remove
11125 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11126 * language.c (set_check, show_check): Remove.
11127 (_initialize_language): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 * infcmd.c (unset_command): Remove.
11130 (_initialize_infcmd): Use add_basic_prefix_cmd.
11131 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11132 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11133 add_show_prefix_cmd.
11134 * go32-nat.c (go32_info_dos_command): Remove.
11135 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11136 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11137 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11138 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11139 (_initialize_frame): Use add_basic_prefix_cmd,
11140 add_show_prefix_cmd.
11141 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11142 (_initialize_dcache): Use add_basic_prefix_cmd,
11143 add_show_prefix_cmd.
11144 * cp-support.c (maint_cplus_command): Remove.
11145 (_initialize_cp_support): Use add_basic_prefix_cmd.
11146 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11147 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11148 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11149 add_basic_prefix_cmd, add_show_prefix_cmd.
11150 * breakpoint.c (save_command): Remove.
11151 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11152 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11153 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11154 add_show_prefix_cmd.
11155 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11156 (set_ada_command, show_ada_command): Remove.
11157 (_initialize_ada_language): Use add_basic_prefix_cmd,
11158 add_show_prefix_cmd.
11159 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11160
11161 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11162
11163 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11164 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11165
11166 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11167
11168 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11169 warning messages.
11170
11171 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11172
11173 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11174 import table is not at beginning of .idata section.
11175
11176 2020-04-16 Pedro Alves <palves@redhat.com>
11177
11178 * inferior.c (delete_inferior): Use delete operator directly
11179 instead of delete_program_space.
11180 * progspace.c (add_program_space): New, factored out from
11181 program_space::program_space.
11182 (remove_program_space): New, factored out from
11183 delete_program_space.
11184 (program_space::program_space): Remove intro comment. Rewrite.
11185 (program_space::~program_space): Remove intro comment. Call
11186 remove_program_space.
11187 (delete_program_space): Delete.
11188 * progspace.h (program_space::program_space): Make explicit. Move
11189 intro comment here, adjusted.
11190 (program_space::~program_space): Move intro comment here,
11191 adjusted.
11192 (delete_program_space): Remove.
11193
11194 2020-04-16 Tom Tromey <tromey@adacore.com>
11195
11196 * windows-nat.c (windows_nat::handle_access_violation): New
11197 function.
11198 * nat/windows-nat.h (handle_access_violation): Declare.
11199 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11200 windows-nat.c. Call handle_access_violation.
11201
11202 2020-04-16 Tom de Vries <tdevries@suse.de>
11203
11204 PR symtab/25791
11205 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11206 CUs without psymtab.
11207
11208 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11209
11210 * python/python.c (do_start_initialization): Don't call
11211 PyEval_InitThreads for Python 3.9 and beyond.
11212
11213 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11214
11215 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11216 thread functions.
11217 (obsd_nat_target::wait): Likewise.
11218
11219 2020-04-15 Tom Tromey <tromey@adacore.com>
11220
11221 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11222 (DEBUG_EXCEPT): Use debug_printf.
11223
11224 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11225
11226 * completer.c (class completion_tracker::completion_hash_entry)
11227 <hash_name>: New member function.
11228 (completion_tracker::discard_completions): New callback to hash a
11229 completion_hash_entry, pass this to htab_create_alloc.
11230
11231 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11232
11233 * windows-nat.c (windows_make_so): Warn rather than stopping with
11234 an error if realpath() fails.
11235
11236 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11237
11238 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11239 (nbsd_nat_target::info_proc): Add do_status.
11240
11241 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11242 Tom de Vries <tdevries@suse.de>
11243
11244 PR symtab/25718
11245 * psympriv.h (struct partial_symtab::read_symtab)
11246 (struct partial_symtab::expand_psymtab)
11247 (struct partial_symtab::read_dependencies): Update comments.
11248 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11249 read_symtab for includer.
11250 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11251 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11252 (struct dwarf2_include_psymtab::m_readin): Remove.
11253 (struct dwarf2_include_psymtab::includer): New member function.
11254 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11255
11256 2020-04-14 Tom de Vries <tdevries@suse.de>
11257
11258 PR symtab/25720
11259 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11260 with NULL symbol_matcher and lookup_name.
11261 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11262 and lookup_name.
11263 * dwarf2/read.c (dw2_expand_symtabs_matching)
11264 (dw2_debug_names_expand_symtabs_matching): Same.
11265 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11266 Make lookup_name a pointer. Update comment.
11267 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11268 lookup_name being a pointer.
11269 * symfile.c (expand_symtabs_matching): Same.
11270 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11271 * linespec.c (iterate_over_all_matching_symtabs): Same.
11272
11273 2020-04-13 Tom Tromey <tom@tromey.com>
11274
11275 * run-on-main-thread.c: Update include.
11276 * unittests/main-thread-selftests.c: Update include.
11277 * tui/tui-win.c: Update include.
11278 * tui/tui-io.c: Update include.
11279 * tui/tui-interp.c: Update include.
11280 * tui/tui-hooks.c: Update include.
11281 * top.h: Update include.
11282 * top.c: Update include.
11283 * ser-base.c: Update include.
11284 * remote.c: Update include.
11285 * remote-notif.c: Update include.
11286 * remote-fileio.c: Update include.
11287 * record-full.c: Update include.
11288 * record-btrace.c: Update include.
11289 * python/python.c: Update include.
11290 * posix-hdep.c: Update include.
11291 * mingw-hdep.c: Update include.
11292 * mi/mi-main.c: Update include.
11293 * mi/mi-interp.c: Update include.
11294 * main.c: Update include.
11295 * linux-nat.c: Update include.
11296 * interps.c: Update include.
11297 * infrun.c: Update include.
11298 * inf-loop.c: Update include.
11299 * event-top.c: Update include.
11300 * event-loop.c: Move to ../gdbsupport/.
11301 * event-loop.h: Move to ../gdbsupport/.
11302 * async-event.h: Update include.
11303 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11304
11305 2020-04-13 Tom Tromey <tom@tromey.com>
11306
11307 * tui/tui-win.c: Include async-event.h.
11308 * remote.c: Include async-event.h.
11309 * remote-notif.c: Include async-event.h.
11310 * record-full.c: Include async-event.h.
11311 * record-btrace.c: Include async-event.h.
11312 * infrun.c: Include async-event.h.
11313 * event-top.c: Include async-event.h.
11314 * event-loop.h: Move some declarations to async-event.h.
11315 * event-loop.c: Don't include ser-event.h or top.h. Move some
11316 code to async-event.c.
11317 * async-event.h: New file.
11318 * async-event.c: New file.
11319 * Makefile.in (COMMON_SFILES): Add async-event.c.
11320 (HFILES_NO_SRCDIR): Add async-event.h.
11321
11322 2020-04-13 Tom Tromey <tom@tromey.com>
11323
11324 * utils.c (flush_streams): New function.
11325 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11326
11327 2020-04-13 Tom Tromey <tom@tromey.com>
11328
11329 * event-loop.c (handle_file_event): Use warning, not
11330 printf_unfiltered.
11331
11332 2020-04-13 Tom Tromey <tom@tromey.com>
11333
11334 * event-loop.c: Include <chrono>.
11335
11336 2020-04-13 Tom Tromey <tom@tromey.com>
11337
11338 * gdb_select.h: Move to ../gdbsupport/.
11339 * event-loop.c: Update include path.
11340 * top.c: Update include path.
11341 * ser-base.c: Update include path.
11342 * ui-file.c: Update include path.
11343 * ser-tcp.c: Update include path.
11344 * guile/scm-ports.c: Update include path.
11345 * posix-hdep.c: Update include path.
11346 * ser-unix.c: Update include path.
11347 * gdb_usleep.c: Update include path.
11348 * mingw-hdep.c: Update include path.
11349 * inflow.c: Update include path.
11350 * infrun.c: Update include path.
11351 * event-top.c: Update include path.
11352
11353 2020-04-13 Tom Tromey <tom@tromey.com>
11354
11355 * configure: Rebuild.
11356 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11357
11358 2020-04-13 Tom Tromey <tom@tromey.com>
11359
11360 * event-loop.h (start_event_loop): Don't declare.
11361 * event-loop.c (start_event_loop): Move...
11362 * main.c (start_event_loop): ...here. Now static.
11363
11364 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11365
11366 * MAINTAINERS: Update my email address.
11367
11368 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11369
11370 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11371 IP_ALL.
11372
11373 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11374
11375 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11376 (nbsd_nat_target::info_proc): Add do_cmdline.
11377
11378 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11379
11380 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11381 (nbsd_nat_target::info_proc): Add do_cwd.
11382
11383 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11384
11385 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11386
11387 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11388
11389 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11390 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11391 (nbsd_nat_target::info_proc): New functions.
11392 * nbsd-nat.c (kinfo_get_vmmap): New function.
11393 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11394 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11395 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11396 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11397 functions.
11398 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11399 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11400 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11401 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11402 (KINFO_VME_FLAG_GROWS_DOWN): New.
11403
11404 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11405
11406 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11407 bit shift.
11408
11409 2020-04-10 Tom Tromey <tromey@adacore.com>
11410
11411 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11412
11413 2020-04-10 Tom Tromey <tromey@adacore.com>
11414
11415 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11416 separate debug files.
11417
11418 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11419
11420 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11421 Move to...
11422 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11423 ... here.
11424 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11425 Check for STATUS_WX86_BREAKPOINT.
11426 (windows_nat_target::wait): Same.
11427
11428 2020-04-10 Tom de Vries <tdevries@suse.de>
11429
11430 PR cli/25808
11431 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11432
11433 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11434
11435 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11436 (Write After Approval): Remove Tom de Vries.
11437
11438 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11439
11440 revert partially:
11441 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11442
11443 * buildsym.c (record_line): Fix undefined behavior and preserve
11444 lines at eof.
11445
11446 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11447
11448 * auxv.h (svr4_auxv_parse): New.
11449 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11450 and generic_auxv_parse.
11451 (svr4_auxv_parse): Add.
11452 * obsd-tdep.c: Include "auxv.h".
11453 (obsd_auxv_parse): Remove.
11454 (obsd_init_abi): Remove comment.
11455 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11456 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11457 * nbsd-tdep.c: Include "auxv.h".
11458 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11459
11460 2020-04-08 Tom Tromey <tromey@adacore.com>
11461
11462 * nat/windows-nat.h (last_wait_event): Don't declare.
11463 (wait_for_debug_event): Update comment.
11464 * nat/windows-nat.c (last_wait_event): Now static.
11465
11466 2020-04-08 Tom Tromey <tromey@adacore.com>
11467
11468 * windows-nat.c (wait_for_debug_event): Move to
11469 nat/windows-nat.c.
11470 * nat/windows-nat.h (wait_for_debug_event): Declare.
11471 * nat/windows-nat.c (wait_for_debug_event): Move from
11472 windows-nat.c. No longer static.
11473
11474 2020-04-08 Tom Tromey <tromey@adacore.com>
11475
11476 * windows-nat.c (get_windows_debug_event): Use
11477 fetch_pending_stop.
11478 * nat/windows-nat.h (fetch_pending_stop): Declare.
11479 * nat/windows-nat.c (fetch_pending_stop): New function.
11480
11481 2020-04-08 Tom Tromey <tromey@adacore.com>
11482
11483 * windows-nat.c (windows_continue): Use matching_pending_stop and
11484 continue_last_debug_event.
11485 * nat/windows-nat.h (matching_pending_stop)
11486 (continue_last_debug_event): Declare.
11487 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11488 (matching_pending_stop, continue_last_debug_event): New
11489 functions.
11490
11491 2020-04-08 Tom Tromey <tromey@adacore.com>
11492
11493 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11494 (handle_exception_result): Move to nat/windows-nat.h.
11495 (DEBUG_EXCEPTION_SIMPLE): Remove.
11496 (windows_nat::handle_ms_vc_exception): New function.
11497 (handle_exception): Move to nat/windows-nat.c.
11498 (get_windows_debug_event): Update.
11499 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11500 nat/windows-nat.c.
11501 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11502 (handle_exception_result): Move from windows-nat.c.
11503 (handle_exception): Declare.
11504 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11505 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11506 windows-nat.c.
11507
11508 2020-04-08 Tom Tromey <tromey@adacore.com>
11509
11510 * windows-nat.c (exception_count, event_count): Remove.
11511 (handle_exception, get_windows_debug_event)
11512 (do_initial_windows_stuff): Update.
11513
11514 2020-04-08 Tom Tromey <tromey@adacore.com>
11515
11516 * windows-nat.c (windows_nat::handle_load_dll)
11517 (windows_nat::handle_unload_dll): Rename. No longer static.
11518 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11519 Declare.
11520
11521 2020-04-08 Tom Tromey <tromey@adacore.com>
11522
11523 * complaints.h (stop_whining): Declare at top-level.
11524 (complaint): Don't declare stop_whining.
11525
11526 2020-04-08 Tom Tromey <tromey@adacore.com>
11527
11528 * windows-nat.c (windows_nat::handle_output_debug_string):
11529 Rename. No longer static.
11530 * nat/windows-nat.h (handle_output_debug_string): Declare.
11531
11532 2020-04-08 Tom Tromey <tromey@adacore.com>
11533
11534 * windows-nat.c (current_process_handle, current_process_id)
11535 (main_thread_id, last_sig, current_event, last_wait_event)
11536 (current_windows_thread, desired_stop_thread_id, pending_stops)
11537 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11538 (display_selectors, fake_create_process)
11539 (get_windows_debug_event): Update.
11540 * nat/windows-nat.h (current_process_handle, current_process_id)
11541 (main_thread_id, last_sig, current_event, last_wait_event)
11542 (current_windows_thread, desired_stop_thread_id, pending_stops)
11543 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11544 * nat/windows-nat.c (current_process_handle, current_process_id)
11545 (main_thread_id, last_sig, current_event, last_wait_event)
11546 (current_windows_thread, desired_stop_thread_id, pending_stops)
11547 (siginfo_er): New globals. Move from windows-nat.c.
11548
11549 2020-04-08 Tom Tromey <tromey@adacore.com>
11550
11551 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11552 (handle_load_dll): Update.
11553 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11554
11555 2020-04-08 Tom Tromey <tromey@adacore.com>
11556
11557 * windows-nat.c (enum thread_disposition_type): Move to
11558 nat/windows-nat.h.
11559 (windows_nat::thread_rec): Rename from thread_rec. No longer
11560 static.
11561 (windows_add_thread, windows_nat_target::fetch_registers)
11562 (windows_nat_target::store_registers, handle_exception)
11563 (windows_nat_target::resume, get_windows_debug_event)
11564 (windows_nat_target::get_tib_address)
11565 (windows_nat_target::thread_name)
11566 (windows_nat_target::thread_alive): Update.
11567 * nat/windows-nat.h (enum thread_disposition_type): Move from
11568 windows-nat.c.
11569 (thread_rec): Declare.
11570
11571 2020-04-08 Tom Tromey <tromey@adacore.com>
11572
11573 * windows-nat.c: Add "using namespace".
11574 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11575 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11576
11577 2020-04-08 Tom Tromey <tromey@adacore.com>
11578
11579 * nat/windows-nat.h (struct windows_thread_info): Declare
11580 destructor.
11581 * nat/windows-nat.c (~windows_thread_info): New.
11582
11583 2020-04-08 Tom Tromey <tromey@adacore.com>
11584
11585 PR gdb/22992
11586 * windows-nat.c (current_event): Update comment.
11587 (last_wait_event, desired_stop_thread_id): New globals.
11588 (struct pending_stop): New.
11589 (pending_stops): New global.
11590 (windows_nat_target) <stopped_by_sw_breakpoint>
11591 <supports_stopped_by_sw_breakpoint>: New methods.
11592 (windows_fetch_one_register): Add assertions. Adjust PC.
11593 (windows_continue): Handle pending stops. Suspend other threads
11594 when stepping. Use last_wait_event
11595 (wait_for_debug_event): New function.
11596 (get_windows_debug_event): Use wait_for_debug_event. Handle
11597 pending stops. Queue spurious stops.
11598 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11599 (windows_nat_target::kill): Use wait_for_debug_event.
11600 * nat/windows-nat.h (struct windows_thread_info)
11601 <stopped_at_software_breakpoint>: New field.
11602 * nat/windows-nat.c (windows_thread_info::resume): Clear
11603 stopped_at_software_breakpoint.
11604
11605 2020-04-08 Tom Tromey <tromey@adacore.com>
11606
11607 * windows-nat.c (enum thread_disposition_type): New.
11608 (thread_rec): Replace "get_context" parameter with "disposition";
11609 change type.
11610 (windows_add_thread, windows_nat_target::fetch_registers)
11611 (windows_nat_target::store_registers, handle_exception)
11612 (windows_nat_target::resume, get_windows_debug_event)
11613 (windows_nat_target::get_tib_address)
11614 (windows_nat_target::thread_name)
11615 (windows_nat_target::thread_alive): Update.
11616
11617 2020-04-08 Tom Tromey <tromey@adacore.com>
11618
11619 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11620 (windows_continue): Use windows_continue::resume.
11621 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11622 resume>: Declare new methods.
11623 * nat/windows-nat.c: New file.
11624 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11625
11626 2020-04-08 Tom Tromey <tromey@adacore.com>
11627
11628 * windows-nat.c (windows_add_thread, windows_delete_thread)
11629 (windows_nat_target::fetch_registers)
11630 (windows_nat_target::store_registers, fake_create_process)
11631 (windows_nat_target::resume, windows_nat_target::resume)
11632 (get_windows_debug_event, windows_nat_target::wait)
11633 (windows_nat_target::pid_to_str)
11634 (windows_nat_target::get_tib_address)
11635 (windows_nat_target::get_ada_task_ptid)
11636 (windows_nat_target::thread_name)
11637 (windows_nat_target::thread_alive): Use lwp, not tid.
11638
11639 2020-04-08 Tom Tromey <tromey@adacore.com>
11640
11641 * windows-nat.c (handle_exception)
11642 (windows_nat_target::thread_name): Update.
11643 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11644 <name>: Now unique_xmalloc_ptr.
11645
11646 2020-04-08 Tom Tromey <tromey@adacore.com>
11647
11648 * windows-nat.c (thread_rec)
11649 (windows_nat_target::fetch_registers): Update.
11650 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11651 Update comment.
11652 <debug_registers_changed, reload_context>: Now bool.
11653
11654 2020-04-08 Tom Tromey <tromey@adacore.com>
11655
11656 * windows-nat.c (windows_add_thread): Use new.
11657 (windows_init_thread_list, windows_delete_thread): Use delete.
11658 (get_windows_debug_event): Update.
11659 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11660 destructor, and initializers.
11661
11662 2020-04-08 Tom Tromey <tromey@adacore.com>
11663
11664 * windows-nat.c (struct windows_thread_info): Remove.
11665 * nat/windows-nat.h: New file.
11666
11667 2020-04-08 Tom Tromey <tromey@adacore.com>
11668
11669 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11670 (thread_rec, windows_add_thread, windows_delete_thread)
11671 (windows_continue): Update.
11672
11673 2020-04-08 Tom Tromey <tromey@adacore.com>
11674
11675 * windows-nat.c (struct windows_thread_info): Remove typedef.
11676 (thread_head): Remove.
11677 (thread_list): New global.
11678 (thread_rec, windows_add_thread, windows_init_thread_list)
11679 (windows_delete_thread, windows_continue): Update.
11680
11681 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11682
11683 * windows-tdep.h (windows_init_abi): Add comment.
11684 (cygwin_init_abi): New declaration.
11685 * windows-tdep.c: Split signal enumeration in two, one for
11686 Windows and one for Cygwin.
11687 (windows_gdb_signal_to_target): Only deal with signal of the
11688 Windows OS ABI.
11689 (cygwin_gdb_signal_to_target): New function.
11690 (windows_init_abi): Rename to windows_init_abi_common, don't set
11691 gdb_signal_to_target gdbarch method. Add new new function with
11692 this name.
11693 (cygwin_init_abi): New function.
11694 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11695 comment. Don't call windows_init_abi.
11696 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11697 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11698 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11699 i386_windows_init_abi_common, don't call windows_init_abi. Add
11700 a new function of this name.
11701 (i386_cygwin_init_abi): New function.
11702 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11703 OS ABI Cygwin.
11704
11705 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11706
11707 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11708 parameter.c.
11709 (dwarf2_read_gdb_index): Update.
11710
11711 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11712
11713 * nbsd-tdep.c: Include "objfiles.h".
11714 (nbsd_skip_solib_resolver): New.
11715 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11716
11717 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11718
11719 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11720 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11721 with DW_LLE_base_addressx are being emitted in DWARFv5.
11722 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11723 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11724 unsigned integer.
11725
11726 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11727
11728 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11729 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11730 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11731 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11732 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11733 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11734 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11735
11736
11737 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11738
11739 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11740 (read_loclist_index): New function definition.
11741 (lookup_loclist_base): New function definition.
11742 (read_loclist_header): New function definition.
11743 (dwarf2_cu): Add loclist_base and loclist_header field.
11744 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11745 (read_full_die_1): Read the value of DW_AT_loclists_base.
11746 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11747 (read_attribute_value): Handle DW_FORM_loclistx.
11748 (skip_one_die): Handle DW_FORM_loclistx.
11749 (loclist_header): New structure declaration.
11750 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11751
11752 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11753
11754 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11755 constructor. Remove `addr` parameter from other constructor and
11756 add `per_cu` parameter.
11757 * dwarf2/read.c (create_partial_symtab): Update.
11758
11759 2020-04-07 Tom de Vries <tdevries@suse.de>
11760
11761 PR symtab/25796
11762 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11763 (partial_die_info::fixup): Inherit has_const_value.
11764
11765 2020-04-07 Tom de Vries <tdevries@suse.de>
11766
11767 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11768 symbols without address.
11769
11770 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11771
11772 * nbsd-nat.h (struct thread_info): Add forward declaration.
11773 (nbsd_nat_target::thread_alive): Add.
11774 (nbsd_nat_target::thread_name): Likewise.
11775 (nbsd_nat_target::update_thread_list): Likewise.
11776 (update_thread_list::post_attach): Likewise.
11777 (post_attach::pid_to_str): Likewise.
11778 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11779 (nbsd_thread_lister): Add.
11780 (nbsd_nat_target::thread_alive): Likewise.
11781 (nbsd_nat_target::thread_name): Likewise.
11782 (nbsd_add_threads): Likewise.
11783 (update_thread_list::post_attach): Likewise.
11784 (nbsd_nat_target::update_thread_list): Likewise.
11785 (post_attach::pid_to_str): Likewise.
11786
11787 2020-04-06 Tom Tromey <tromey@adacore.com>
11788
11789 * ada-valprint.c (print_variant_part): Extract the variant field.
11790 (print_field_values): Use the field as the outer value when
11791 recursing.
11792
11793 2020-04-06 Tom Tromey <tromey@adacore.com>
11794
11795 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11796 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11797 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11798 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11799 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11800
11801 2020-04-06 Tom Tromey <tromey@adacore.com>
11802
11803 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11804 TYPE_CODE_ERROR.
11805
11806 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11807
11808 * nbsd-tdep.c: Include "gdbarch.h".
11809 Define enum with NetBSD signal numbers.
11810 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11811 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11812 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11813 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11814 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11815 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11816 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11817 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11818 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11819 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11820 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11821 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11822
11823 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11824
11825 PR gdb/25325
11826 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11827
11828 2020-04-03 Tom Tromey <tromey@adacore.com>
11829
11830 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11831 Read constant block.
11832
11833 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11834
11835 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11836 (gdb_bfd_get_full_section_contents): New declaration.
11837 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11838 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11839 gdb_bfd_get_full_section_contents.
11840
11841 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11842
11843 * exec.c (build_section_table): Replace internal_error with
11844 gdb_assert.
11845 (section_table_xfer_memory_partial): Likewise.
11846 * mdebugread.c (parse_partial_symbols): Likewise.
11847 * psymtab.c (lookup_partial_symbol): Likewise.
11848 * utils.c (wrap_here): Likewise.
11849
11850 2020-04-02 Tom Tromey <tromey@adacore.com>
11851
11852 * f-lang.c (build_fortran_types): Use arch_type to initialize
11853 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11854
11855 2020-04-02 Tom Tromey <tromey@adacore.com>
11856
11857 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11858 of attributes.
11859
11860 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11861 Bernd Edlinger <bernd.edlinger@hotmail.de>
11862 Tom Tromey <tromey@adacore.com>
11863
11864 * buildsym.c (buildsym_compunit::record_line): Remove
11865 deduplication code.
11866
11867 2020-04-02 Tom de Vries <tdevries@suse.de>
11868
11869 PR ada/24671
11870 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11871
11872 2020-04-02 Tom de Vries <tdevries@suse.de>
11873
11874 * dwarf2/read.c (dwarf2_gdb_index_functions,
11875 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11876 NULL.
11877 * psymtab.c (psym_lookup_global_symbol_language): New function.
11878 (psym_functions): Init psym_lookup_global_symbol_language with
11879 psym_lookup_global_symbol_language.
11880 * symfile-debug.c (debug_sym_quick_functions): Init
11881 lookup_global_symbol_language with NULL.
11882 * symfile.c (set_initial_language): Remove fixme comment.
11883 * symfile.h (struct quick_symbol_functions): Add
11884 lookup_global_symbol_language.
11885 * symtab.c (find_quick_global_symbol_language): New function.
11886 (find_main_name): Use find_quick_global_symbol_language.
11887
11888 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11889
11890 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11891
11892 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11893
11894 * buildsym.c (record_line): Fix undefined behavior and preserve
11895 lines at eof.
11896
11897 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11898
11899 * buildsym.c (record_line): Fix the resizing condition.
11900
11901 2020-04-01 Tom Tromey <tom@tromey.com>
11902
11903 * value.h (value_literal_complex): Add comment.
11904 * valops.c (value_literal_complex): Refer to value.h.
11905
11906 2020-04-01 Tom Tromey <tom@tromey.com>
11907
11908 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11909 (scalar_type): New rule, from typebase.
11910 (typebase): Use scalar_type. Recognize complex types.
11911 (field_name): Handle FLOAT_KEYWORD.
11912 (ident_tokens): Add _Complex and __complex__.
11913
11914 2020-04-01 Tom Tromey <tom@tromey.com>
11915
11916 PR exp/25299:
11917 * valarith.c (promotion_type, complex_binop): New functions.
11918 (scalar_binop): Handle complex numbers. Use promotion_type.
11919 (value_pos, value_neg, value_complement): Handle complex numbers.
11920
11921 2020-04-01 Tom Tromey <tom@tromey.com>
11922
11923 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11924 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11925 (parse_number): Handle complex numbers.
11926
11927 2020-04-01 Tom Tromey <tom@tromey.com>
11928
11929 * c-valprint.c (c_decorations): Change complex suffix to "i".
11930
11931 2020-04-01 Tom Tromey <tom@tromey.com>
11932
11933 * valprint.c (generic_value_print_complex): Use accessors.
11934 * value.h (value_real_part, value_imaginary_part): Declare.
11935 * valops.c (value_real_part, value_imaginary_part): New
11936 functions.
11937 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11938
11939 2020-04-01 Tom Tromey <tom@tromey.com>
11940
11941 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11942 (read_range_type): Update.
11943 * mdebugread.c (basic_type): Update.
11944 * go-lang.c (build_go_types): Use init_complex_type.
11945 * gdbtypes.h (struct main_type) <complex_type>: New member.
11946 (init_complex_type): Update.
11947 (arch_complex_type): Don't declare.
11948 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11949 Make name if none given. Use alloc_type_copy. Look for cached
11950 complex type.
11951 (arch_complex_type): Remove.
11952 (gdbtypes_post_init): Use init_complex_type.
11953 * f-lang.c (build_fortran_types): Use init_complex_type.
11954 * dwarf2/read.c (read_base_type): Update.
11955 * d-lang.c (build_d_types): Use init_complex_type.
11956 * ctfread.c (read_base_type): Update.
11957
11958 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11959
11960 * infrun.c (stop_all_threads): Update assertion, plus when
11961 stopping threads, take into account that we might be trying
11962 to stop an all-stop target.
11963 (stop_waiting): Call 'stop_all_threads' if there exists a
11964 non-stop target.
11965
11966 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11967
11968 * target.h (exists_non_stop_target): New function declaration.
11969 * target.c (exists_non_stop_target): New function.
11970
11971 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11972
11973 PR gdb/24789
11974 * eval.c (is_integral_or_integral_reference): New function.
11975 (evaluate_subexp_standard): Allow integer references in
11976 pointer arithmetic.
11977
11978 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11979
11980 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11981 check for no ptid in the stop reply when the target is non-stop.
11982
11983 2020-04-01 Tom Tromey <tromey@adacore.com>
11984
11985 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11986 "name" parameter to rvalue reference. Initialize m_name_holder.
11987 <lookup_name_info>: New overloads.
11988 <name>: Return gdb::string_view.
11989 <c_str>: New method.
11990 <make_ignore_params>: Update.
11991 <search_name_hash>: Update.
11992 <language_lookup_name>: Return const char *.
11993 <m_name>: Change type.
11994 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11995 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11996 (lookup_name_info::match_any): Update.
11997 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11998 Update.
11999 * minsyms.c (linkage_name_str): Update.
12000 * language.c (default_symbol_name_matcher): Update.
12001 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12002 Update.
12003 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12004 (ada_lookup_name_info::ada_lookup_name_info): Update.
12005 (literal_symbol_name_matcher): Update.
12006
12007 2020-04-01 Tom Tromey <tromey@adacore.com>
12008
12009 * psymtab.c (psymtab_search_name): Remove function.
12010 (psym_lookup_symbol): Create search name and lookup name here.
12011 (lookup_partial_symbol): Remove "name" parameter; add
12012 lookup_name.
12013 (psym_expand_symtabs_for_function): Update.
12014
12015 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12016
12017 PR tui/25597:
12018 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12019
12020 2020-03-31 Tom Tromey <tromey@adacore.com>
12021
12022 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12023 memcpy.
12024
12025 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12026
12027 * features/riscv/32bit-csr.xml: Regenerated.
12028 * features/riscv/64bit-csr.xml: Regenerated.
12029
12030 2020-03-30 Tom Tromey <tromey@adacore.com>
12031
12032 * ada-valprint.c (print_variant_part): Update.
12033 * ada-lang.h (ada_which_variant_applies): Update.
12034 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12035 outer_valaddr parameters; replace with "outer" value parameter.
12036 (to_fixed_variant_branch_type): Update.
12037
12038 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12039
12040 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12041 <list>. Remove inclusion of observable.h.
12042 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12043 (struct arch_lwp_info): New struct.
12044 (class ppc_linux_dreg_interface): New class.
12045 (struct ppc_linux_process_info): New struct.
12046 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12047 <low_new_clone, low_forget_process, low_prepare_to_resume>
12048 <copy_thread_dreg_state, mark_thread_stale>
12049 <mark_debug_registers_changed, register_hw_breakpoint>
12050 <clear_hw_breakpoint, register_wp, clear_wp>
12051 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12052 <num_memory_accesses, get_trigger_type>
12053 <create_watchpoint_request, hwdebug_point_cmp>
12054 <init_arch_lwp_info, get_arch_lwp_info>
12055 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12056 methods.
12057 <struct ptid_hash>: New inner struct.
12058 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12059 members.
12060 (saved_dabr_value, hwdebug_info, max_slots_number)
12061 (struct hw_break_tuple, struct thread_points, ppc_threads)
12062 (have_ptrace_hwdebug_interface)
12063 (hwdebug_find_thread_points_by_tid)
12064 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12065 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12066 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12067 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12068 use m_dreg_interface.
12069 (hwdebug_point_cmp): Change to...
12070 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12071 reference arguments instead of pointers.
12072 (ppc_linux_nat_target::ranged_break_num_registers): Use
12073 m_dreg_interface.
12074 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12075 m_dreg_interface. Call register_hw_breakpoint.
12076 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12077 m_dreg_interface. Call clear_hw_breakpoint.
12078 (get_trigger_type): Change to...
12079 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12080 comment.
12081 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12082 use m_dreg_interface. Call register_hw_breakpoint.
12083 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12084 use m_dreg_interface. Call clear_hw_breakpoint.
12085 (can_use_watchpoint_cond_accel): Change to...
12086 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12087 method. Update comment, use m_dreg_interface and
12088 m_process_info.
12089 (calculate_dvc): Change to...
12090 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12091 m_dreg_interface.
12092 (num_memory_accesses): Change to...
12093 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12094 (check_condition): Change to...
12095 (ppc_linux_nat_target::check_condition): ...this method.
12096 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12097 comment, use m_dreg_interface.
12098 (create_watchpoint_request): Change to...
12099 (ppc_linux_nat_target::create_watchpoint_request): ...this
12100 method. Use m_dreg_interface.
12101 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12102 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12103 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12104 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12105 (ppc_linux_nat_target::low_forget_process)
12106 (ppc_linux_nat_target::low_new_fork)
12107 (ppc_linux_nat_target::low_new_clone)
12108 (ppc_linux_nat_target::low_delete_thread)
12109 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12110 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12111 only call mark_thread_stale.
12112 (ppc_linux_thread_exit): Remove.
12113 (ppc_linux_nat_target::stopped_data_address): Change to...
12114 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12115 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12116 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12117 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12118 comment. Call low_stopped_data_address.
12119 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12120 m_dreg_interface.
12121 (ppc_linux_nat_target::masked_watch_num_registers): Use
12122 m_dreg_interface.
12123 (ppc_linux_nat_target::copy_thread_dreg_state)
12124 (ppc_linux_nat_target::mark_thread_stale)
12125 (ppc_linux_nat_target::mark_debug_registers_changed)
12126 (ppc_linux_nat_target::register_hw_breakpoint)
12127 (ppc_linux_nat_target::clear_hw_breakpoint)
12128 (ppc_linux_nat_target::register_wp)
12129 (ppc_linux_nat_target::clear_wp)
12130 (ppc_linux_nat_target::init_arch_lwp_info)
12131 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12132 (_initialize_ppc_linux_nat): Remove observer callback.
12133
12134 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12135
12136 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12137 (ppc_linux_nat_target::auxv_parse)
12138 (ppc_linux_nat_target::read_description)
12139 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12140 Move up.
12141
12142 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12143
12144 * linux-nat.h (low_new_clone): New method.
12145 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12146
12147 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12148
12149 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12150 (dbx_expand_psymtab): ... this.
12151 (start_psymtab): Update.
12152 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12153 (mdebug_expand_psymtab): ... this.
12154 (parse_partial_symbols): Update.
12155 (new_psymtab): Update.
12156 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12157 (xcoff_expand_psymtab): ... this.
12158 (xcoff_start_psymtab): Update.
12159
12160 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12161
12162 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12163 <expand_dependencies>: ... this.
12164 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12165 (partial_symtab::expand_dependencies): ... this.
12166 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12167 Update.
12168 (dwarf2_psymtab::expand_psymtab): Update.
12169 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12170 * mdebugread.c (psymtab_to_symtab_1): Update.
12171 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12172
12173 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12174
12175 * psympriv.h (discard_psymtab): Remove.
12176 * dbxread.c (dbx_end_psymtab): Update.
12177 * xcoffread.c (xcoff_end_psymtab): Update.
12178
12179 2020-03-28 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12182 comment.
12183
12184 2020-03-28 Tom Tromey <tom@tromey.com>
12185
12186 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12187
12188 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12189
12190 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12191
12192 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12193
12194 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12195
12196 2020-03-26 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12199 (mark_common_block_symbol_computed, read_tag_string_type)
12200 (attr_to_dynamic_prop, read_subrange_type): Update.
12201 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12202 to be methods on struct attribute.
12203 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12204 (read_call_site_scope, partial_die_info::read)
12205 (partial_die_info::read, lookup_die_type, follow_die_ref):
12206 Update.
12207 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12208 from dwarf2_get_ref_die_offset.
12209 (attribute::constant_value): New method, from
12210 dwarf2_get_attr_constant_value.
12211 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12212 Declare method.
12213 <constant_value>: New method.
12214
12215 2020-03-26 Tom Tromey <tom@tromey.com>
12216
12217 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12218 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12219 (dwarf_type_encoding_name): Move to stringify.c.
12220 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12221 * dwarf2/stringify.c: New file.
12222 * dwarf2/stringify.h: New file.
12223
12224 2020-03-26 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12227 Rewrite.
12228
12229 2020-03-26 Tom Tromey <tom@tromey.com>
12230
12231 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12232 methods.
12233 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12234 (lookup_ranges_base): Likewise.
12235 (read_cutu_die_from_dwo, read_full_die_1): Update.
12236
12237 2020-03-26 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.c (read_import_statement, read_file_scope)
12240 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12241 (read_lexical_block_scope, read_call_site_scope)
12242 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12243 (handle_struct_member_die, process_structure_scope)
12244 (update_enumeration_type_from_children)
12245 (process_enumeration_scope, read_array_type, read_common_block)
12246 (read_namespace, read_module, read_subroutine_type): Update.
12247 (sibling_die): Remove.
12248
12249 2020-03-26 Tom Tromey <tom@tromey.com>
12250
12251 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12252 (build_type_psymtabs_reader, read_structure_type)
12253 (read_enumeration_type, read_full_die_1): Update.
12254 (dwarf2_attr_no_follow): Move to die.h.
12255 * dwarf2/die.h (struct die_info) <attr>: New method.
12256
12257 2020-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12260 <base_address>: Now an optional.
12261 (dwarf2_find_base_address, dwarf2_rnglists_process)
12262 (dwarf2_ranges_process, fill_in_loclist_baton)
12263 (dwarf2_symbol_mark_computed): Update.
12264
12265 2020-03-26 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/read.c (struct die_info): Move to die.h.
12268 * dwarf2/die.h: New file.
12269
12270 2020-03-26 Tom Tromey <tom@tromey.com>
12271
12272 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12273 * dwarf2/read.c
12274 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12275 Move to line-header.c.
12276 (read_checked_initial_length_and_offset, read_formatted_entries):
12277 Likewise.
12278 (dwarf_decode_line_header): Split into two.
12279 * dwarf2/line-header.c
12280 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12281 Move from read.c.
12282 (read_checked_initial_length_and_offset, read_formatted_entries):
12283 Likewise.
12284 (dwarf_decode_line_header): New function, split from read.c.
12285
12286 2020-03-26 Tom Tromey <tom@tromey.com>
12287
12288 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12289 Declare method.
12290 * dwarf2/read.c (read_attribute_value): Update.
12291 (dwarf2_per_objfile::read_line_string): Rename from
12292 read_indirect_line_string.
12293 (read_formatted_entries): Update.
12294
12295 2020-03-26 Tom Tromey <tom@tromey.com>
12296
12297 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12298 variable.
12299
12300 2020-03-26 Tom Tromey <tom@tromey.com>
12301
12302 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12303 const.
12304 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12305 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12306 parameter const.
12307
12308 2020-03-26 Tom Tromey <tom@tromey.com>
12309
12310 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12311 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12312 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12313 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12314
12315 2020-03-26 Tom Tromey <tom@tromey.com>
12316
12317 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12318 file_names_size, file_full_name, file_file_name>: Use const.
12319 <file_name_at, file_names>: Add const overload.
12320 * dwarf2/line-header.c (line_header::file_file_name)
12321 (line_header::file_full_name): Update.
12322
12323 2020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12326 (macro_start_file, consume_improper_spaces)
12327 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12328 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12329 (dwarf_decode_macros): Move to macro.c.
12330 * dwarf2/macro.c: New file.
12331 * dwarf2/macro.h: New file.
12332 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12333
12334 2020-03-26 Tom Tromey <tom@tromey.com>
12335
12336 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12337 method.
12338 * dwarf2/section.c: New method. From
12339 read_indirect_string_at_offset_from.
12340 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12341 (read_indirect_string_at_offset_from): Move to section.c.
12342 (read_indirect_string_at_offset): Rewrite.
12343 (read_indirect_line_string_at_offset): Remove.
12344 (read_indirect_string, read_indirect_line_string)
12345 (dwarf_decode_macro_bytes): Update.
12346
12347 2020-03-26 Tom Tromey <tom@tromey.com>
12348
12349 * dwarf2/section.h (struct dwarf2_section_info)
12350 <overload_complaint>: Declare.
12351 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12352 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12353 Rename from dwarf2_section_buffer_overflow_complaint.
12354 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12355 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12356
12357 2020-03-26 Tom Tromey <tom@tromey.com>
12358
12359 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12360 Declare.
12361 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12362 Move from read.c.
12363 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12364 to section.c.
12365
12366 2020-03-26 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12369
12370 2020-03-26 Tom Tromey <tom@tromey.com>
12371
12372 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12373 "builder".
12374 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12375 parameter.
12376 (dwarf_decode_macros): Update.
12377
12378 2020-03-26 Tom Tromey <tom@tromey.com>
12379
12380 * dwarf2/read.c (read_attribute_value): Update.
12381 (read_indirect_string_from_dwz): Move to dwz.c; change into
12382 method.
12383 (dwarf_decode_macro_bytes): Update.
12384 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12385 * dwarf2/dwz.c: New file.
12386 * Makefile.in (COMMON_SFILES): Add dwz.c.
12387
12388 2020-03-26 Tom Tromey <tom@tromey.com>
12389
12390 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12391 * dwarf2/read.c: Add include.
12392 * dwarf2/index-write.c: Add include.
12393 * dwarf2/index-cache.c: Add include.
12394 * dwarf2/dwz.h: New file.
12395
12396 2020-03-25 Tom Tromey <tom@tromey.com>
12397
12398 * compile/compile-object-load.c (get_out_value_type): Mention
12399 correct symbol name in error message.
12400
12401 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12402
12403 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12404
12405 2020-03-25 Tom de Vries <tdevries@suse.de>
12406
12407 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12408 * symmisc.c (dump_symtab_1): Print user and includes fields.
12409 (maintenance_info_symtabs): Same.
12410
12411 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12412
12413 PR gdb/25534
12414 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12415 (riscv_regcache_cooked_write): New function.
12416 (riscv_push_dummy_call): Use new function.
12417 (riscv_return_value): Likewise.
12418
12419 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12420
12421 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12422 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12423 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12424 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12425 * infrun.c (follow_fork): Likewise.
12426 (follow_fork_inferior): Likewise.
12427 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12428 * linux-nat.h (class linux_nat_target): Likewise.
12429 * remote.c (class remote_target) <follow_fork>: Likewise.
12430 (remote_target::follow_fork): Likewise.
12431 * target-delegates.c: Re-generate.
12432 * target.c (default_follow_fork): Likewise.
12433 (target_follow_fork): Likewise.
12434 * target.h (struct target_ops) <follow_fork>: Likewise.
12435 (target_follow_fork): Likewise.
12436
12437 2020-03-24 Tom de Vries <tdevries@suse.de>
12438
12439 * psymtab.c (maintenance_info_psymtabs): Print user field.
12440
12441 2020-03-20 Tom Tromey <tromey@adacore.com>
12442
12443 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12444 const.
12445 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12446 const.
12447
12448 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12449
12450 * ptrace.m4: Don't check for ptrace declaration.
12451 * config.in: Re-generate.
12452 * configure: Re-generate.
12453 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12454 not defined.
12455
12456 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12457
12458 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12459 `PTRACE_TYPE_RET'.
12460 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12461 * sparc-nat.c (gdb_ptrace): Likewise.
12462 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12463
12464 2020-03-20 Tom Tromey <tromey@adacore.com>
12465
12466 * c-exp.y (lex_one_token): Fix assert.
12467
12468 2020-03-20 Tom Tromey <tromey@adacore.com>
12469
12470 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12471 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12472 strncpy call.
12473
12474 2020-03-20 Tom Tromey <tromey@adacore.com>
12475
12476 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12477
12478 2020-03-20 Tom Tromey <tromey@adacore.com>
12479
12480 * ada-valprint.c (print_variant_part): Remove parameters; switch
12481 to value-based API.
12482 (print_field_values): Likewise.
12483 (ada_val_print_struct_union): Likewise.
12484 (ada_value_print_1): Update.
12485
12486 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12487
12488 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12489 nbsd_nat_target instead of inf_ptrace_target.
12490 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12491 nbsd_nat_target.
12492
12493 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12494
12495 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12496 it to the ptrace call.
12497 * (store_registers): Likewise.
12498
12499 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12500
12501 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12502 it to the ptrace call.
12503 * (store_registers): Likewise.
12504
12505 2020-03-19 Luis Machado <luis.machado@linaro.org>
12506
12507 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12508 valid, fetch vg value from ptrace.
12509
12510 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12511 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12512 * inf-ptrace.c: Likewise.
12513 * (gdb_ptrace): Add.
12514 * (inf_ptrace_target::resume): Update.
12515 * (inf_ptrace_target::xfer_partial): Likewise.
12516 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12517 * (inf_ptrace_peek_poke): Update.
12518
12519 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12520
12521 * x86-bsd-nat.c (gdb_ptrace): New.
12522 * (x86bsd_dr_set): Add new argument `ptid'.
12523 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12524 x86bsd_dr_set_addr): Update.
12525
12526 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12527
12528 * remote.c (remote_target::process_stop_reply): Handle events for
12529 all threads differently.
12530
12531 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12532
12533 * completer.c (completion_tracker::remove_completion): Define new
12534 function.
12535 * completer.h (completion_tracker::remove_completion): Declare new
12536 function.
12537 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12538 when adding a C++ function symbol.
12539
12540 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12541
12542 * completer.c (completion_tracker::completion_hash_entry): Define
12543 new class.
12544 (advance_to_filename_complete_word_point): Call
12545 recompute_lowest_common_denominator.
12546 (completion_tracker::completion_tracker): Call discard_completions
12547 to setup the hash table.
12548 (completion_tracker::discard_completions): Allow for being called
12549 from the constructor, pass new equal function, and element deleter
12550 when constructing the hash table. Initialise new class member
12551 variables.
12552 (completion_tracker::maybe_add_completion): Remove use of
12553 m_entries_vec, and store more information into m_entries_hash.
12554 (completion_tracker::recompute_lcd_visitor): New function, most
12555 content taken from...
12556 (completion_tracker::recompute_lowest_common_denominator):
12557 ...here, this now just visits each item in the hash calling the
12558 above visitor.
12559 (completion_tracker::build_completion_result): Remove use of
12560 m_entries_vec, call recompute_lowest_common_denominator.
12561 * completer.h (completion_tracker::have_completions): Remove use
12562 of m_entries_vec.
12563 (completion_tracker::completion_hash_entry): Declare new class.
12564 (completion_tracker::recompute_lowest_common_denominator): Change
12565 function signature.
12566 (completion_tracker::recompute_lcd_visitor): Declare new function.
12567 (completion_tracker::m_entries_vec): Delete.
12568 (completion_tracker::m_entries_hash): Initialize to NULL.
12569 (completion_tracker::m_lowest_common_denominator_valid): New
12570 member variable.
12571 (completion_tracker::m_lowest_common_denominator_max_length): New
12572 member variable.
12573
12574 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12575
12576 * regformats/regdef.h: Put reg in gdb namespace.
12577
12578 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12579
12580 * i386-bsd-nat.c (gdb_ptrace): New.
12581 * (i386bsd_fetch_inferior_registers,
12582 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12583 * (i386bsd_fetch_inferior_registers,
12584 i386bsd_store_inferior_registers) Use gdb_ptrace.
12585
12586 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12587
12588 * amd64-bsd-nat.c (gdb_ptrace): New.
12589 * (amd64bsd_fetch_inferior_registers,
12590 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12591 * (amd64bsd_fetch_inferior_registers,
12592 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12593
12594 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12595
12596 * user-regs.c (user_reg::read): Rename to...
12597 (user_reg::xread): ...this.
12598 * (append_user_reg): Rename argument `read' to `xread'.
12599 * (user_reg_add_builtin): Likewise.
12600 * (user_reg_add): Likewise.
12601 * (value_of_user_reg): Likewise.
12602
12603 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12604
12605 * sparc-nat.c (gdb_ptrace): New.
12606 * sparc-nat.c (sparc_fetch_inferior_registers)
12607 (sparc_store_inferior_registers) Remove obsolete comment.
12608 * sparc-nat.c (sparc_fetch_inferior_registers)
12609 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12610 * sparc-nat.c (sparc_fetch_inferior_registers)
12611 (sparc_store_inferior_registers) Use gdb_ptrace.
12612
12613 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12614
12615 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12616 it to the ptrace call.
12617 * sh-nbsd-nat.c (store_registers): Likewise.
12618
12619 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12620
12621 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12622 nbsd_nat_target instead of inf_ptrace_target.
12623 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12624 nbsd_nat_target.
12625
12626 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12627
12628 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12629
12630 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12631
12632 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12633 <sys/sysctl.h>.
12634 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12635
12636 2020-03-17 Tom de Vries <tdevries@suse.de>
12637
12638 PR gdb/23710
12639 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12640 fields.
12641 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12642 fields.
12643 (process_imported_unit_die): Skip import of c++ CUs.
12644
12645 2020-03-16 Tom Tromey <tom@tromey.com>
12646
12647 * p-valprint.c (pascal_object_print_value): Initialize
12648 base_value.
12649
12650 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12651 Shahab Vahedi <shahab@synopsys.com>
12652
12653 * Makefile.in: Add arch/arc.o
12654 * configure.tgt: Likewise.
12655 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12656 (_initialize_arc_tdep): Don't initialize old target descriptions.
12657 (arc_read_description): New function to cache target descriptions.
12658 * arc-tdep.h (arc_read_description): Add proto type.
12659 * arch/arc.c: New file.
12660 * arch/arc.h: Likewise.
12661 * features/Makefile: Replace old target descriptions with new.
12662 * features/arc-arcompact.c: Remove.
12663 * features/arc-arcompact.xml: Likewise.
12664 * features/arc-v2.c: Likewise
12665 * features/arc-v2.xml: Likewise
12666 * features/arc/aux-arcompact.xml: New file.
12667 * features/arc/aux-v2.xml: Likewise.
12668 * features/arc/core-arcompact.xml: Likewise.
12669 * features/arc/core-v2.xml: Likewise.
12670 * features/arc/aux-arcompact.c: Generate.
12671 * features/arc/aux-v2.c: Likewise.
12672 * features/arc/core-arcompact.c: Likewise.
12673 * features/arc/core-v2.c: Likewise.
12674 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12675
12676 2020-03-16 Tom Tromey <tromey@adacore.com>
12677
12678 PR gdb/25663:
12679 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12680 putting value into bcache.
12681
12682 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12683
12684 PR gdb/21500
12685 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12686 to...
12687 (amd64_windows_init_abi_common): ... this. Don't set size of
12688 long type.
12689 (amd64_windows_init_abi): New function.
12690 (amd64_cygwin_init_abi): New function.
12691 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12692 the Cygwin OS ABI.
12693 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12694 comment.
12695
12696 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12697
12698 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12699 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12700 (pe_import_directory_entry): New struct type.
12701 (is_linked_with_cygwin_dll): New function.
12702 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12703 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12704 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12705
12706 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12707
12708 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12709 i386_cygwin_core_osabi_sniffer.
12710
12711 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12712
12713 * i386-cygwin-tdep.c: Rename to...
12714 * i386-windows-tdep.c: ... this.
12715 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12716 i386-windows-tdep.c.
12717 * configure.tgt: Likewise.
12718
12719 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12720
12721 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12722 * osabi.c (gdb_osabi_names): Add "Windows".
12723 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12724 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12725 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12726 i386_cygwin_osabi_sniffer.
12727 (_initialize_i386_cygwin_tdep): Register OS ABI
12728 GDB_OSABI_WINDOWS for i386.
12729 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12730 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12731 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12732 for x86-64.
12733 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12734 when the target matches '*-*-mingw*'.
12735
12736 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12737
12738 * defs.h (enum gdb_osabi): Move to...
12739 * osabi.h (enum gdb_osabi): ... here.
12740 * gdbarch.sh: Include osabi.h in gdbarch.h.
12741 * gdbarch.h: Re-generate.
12742
12743 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12744
12745 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12746 function.
12747 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12748
12749 2020-03-14 Tom Tromey <tom@tromey.com>
12750
12751 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12752 for C++.
12753 (c_type_print_modifier): Likewise. Add "language" parameter.
12754 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12755 (c_type_print_base_1): Update.
12756 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12757 constants.
12758 * type-stack.c (type_stack::insert): Handle tp_atomic and
12759 tp_restrict.
12760 (type_stack::follow_type_instance_flags): Likewise.
12761 (type_stack::follow_types): Likewise. Merge type-following code.
12762 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12763 (space_identifier, cv_with_space_id)
12764 (const_or_volatile_or_space_identifier_noopt)
12765 (const_or_volatile_or_space_identifier): Remove.
12766 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12767 rules.
12768 (ptr_operator, typebase): Update.
12769 (enum token_flag) <FLAG_C>: New constant.
12770 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12771 "_Atomic".
12772 (lex_one_token): Handle FLAG_C.
12773
12774 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12775
12776 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12777 it to the ptrace call.
12778 * m68k-bsd-nat.c (store_registers): Likewise.
12779
12780 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12781
12782 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12783 gdb_byte *.
12784 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12785 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12786 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12787
12788 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12789
12790 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12791 nbsd_nat_target instead of inf_ptrace_target.
12792 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12793 nbsd_nat_target.
12794
12795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12796
12797 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12798 register_t.
12799
12800 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12801
12802 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12803 it to the ptrace call.
12804 * alpha-bsd-nat.c (store_registers): Likewise.
12805
12806 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12807
12808 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12809 includes.
12810 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12811 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12812 fill_fpregset): Likewise.
12813
12814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12815
12816 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12817 nbsd_nat_target instead of inf_ptrace_target.
12818 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12819 nbsd_nat_target.
12820
12821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12822
12823 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12824 register_t.
12825
12826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12827
12828 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12829 it to the ptrace call.
12830 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12831 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12832 * arm-nbsd-nat.c (store_register): Likewise.
12833 * arm-nbsd-nat.c (store_regs): Likewise.
12834 * arm-nbsd-nat.c (store_fp_register): Likewise.
12835 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12836
12837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12838
12839 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12840 nbsd_nat_target instead of inf_ptrace_target.
12841 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12842 nbsd_nat_target.
12843
12844 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12845
12846 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12847 it to the ptrace call.
12848 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12849
12850 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12851
12852 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12853 it to the ptrace call.
12854 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12855
12856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12857
12858 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12859 gdb_byte *.
12860 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12861
12862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12863
12864 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12865 instead of inf_ptrace_target.
12866 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12867 nbsd_nat_target.
12868
12869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12870
12871 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12872 register_t.
12873
12874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12875
12876 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12882 register_t.
12883
12884 2020-03-13 Tom Tromey <tom@tromey.com>
12885
12886 * value.h (val_print): Don't declare.
12887 * valprint.h (val_print_array_elements)
12888 (val_print_scalar_formatted, generic_val_print): Don't declare.
12889 * valprint.c (generic_val_print_array): Take a struct value.
12890 (generic_val_print_ptr, generic_val_print_memberptr)
12891 (generic_val_print_bool, generic_val_print_int)
12892 (generic_val_print_char, generic_val_print_complex)
12893 (generic_val_print): Remove.
12894 (generic_value_print): Update.
12895 (do_val_print): Remove unused parameters. Don't call
12896 la_val_print.
12897 (val_print): Remove.
12898 (common_val_print): Update. Don't call value_check_printable.
12899 (val_print_scalar_formatted, val_print_array_elements): Remove.
12900 * rust-lang.c (rust_val_print): Remove.
12901 (rust_language_defn): Update.
12902 * p-valprint.c (pascal_val_print): Remove.
12903 (pascal_value_print_inner): Update.
12904 (pascal_object_print_val_fields, pascal_object_print_val):
12905 Remove.
12906 (pascal_object_print_static_field): Update.
12907 * p-lang.h (pascal_val_print): Don't declare.
12908 * p-lang.c (pascal_language_defn): Update.
12909 * opencl-lang.c (opencl_language_defn): Update.
12910 * objc-lang.c (objc_language_defn): Update.
12911 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12912 * m2-lang.h (m2_val_print): Don't declare.
12913 * m2-lang.c (m2_language_defn): Update.
12914 * language.h (struct language_defn) <la_val_print>: Remove.
12915 * language.c (unk_lang_value_print_inner): Rename. Change
12916 argument types.
12917 (unknown_language_defn, auto_language_defn): Update.
12918 * go-valprint.c (go_val_print): Remove.
12919 * go-lang.h (go_val_print): Don't declare.
12920 * go-lang.c (go_language_defn): Update.
12921 * f-valprint.c (f_val_print): Remove.
12922 * f-lang.h (f_value_print): Don't declare.
12923 * f-lang.c (f_language_defn): Update.
12924 * d-valprint.c (d_val_print): Remove.
12925 * d-lang.h (d_value_print): Don't declare.
12926 * d-lang.c (d_language_defn): Update.
12927 * cp-valprint.c (cp_print_value_fields)
12928 (cp_print_value_fields_rtti, cp_print_value): Remove.
12929 (cp_print_static_field): Update.
12930 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12931 (c_val_print_struct, c_val_print_union, c_val_print_int)
12932 (c_val_print_memberptr, c_val_print): Remove.
12933 * c-lang.h (c_val_print_array, cp_print_value_fields)
12934 (cp_print_value_fields_rtti): Don't declare.
12935 * c-lang.c (c_language_defn, cplus_language_defn)
12936 (asm_language_defn, minimal_language_defn): Update.
12937 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12938 (ada_val_print_enum): Take a struct value.
12939 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12940 (ada_val_print): Remove.
12941 (ada_value_print_1): Update.
12942 (printable_val_type): Remove.
12943 * ada-lang.h (ada_val_print): Don't declare.
12944 * ada-lang.c (ada_language_defn): Update.
12945
12946 2020-03-13 Tom Tromey <tom@tromey.com>
12947
12948 * valprint.c (do_val_print): Update.
12949 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12950 a struct value.
12951 (value_to_value_object_no_release): Declare.
12952 * python/py-value.c (value_to_value_object_no_release): New
12953 function.
12954 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12955 struct value.
12956 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12957 function.
12958 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12959 a struct value.
12960 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12961 Declare.
12962 (gdbscm_apply_val_pretty_printer): Take a struct value.
12963 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12964 value.
12965 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12966 value.
12967 * extension-priv.h (struct extension_language_ops)
12968 <apply_val_pretty_printer>: Take a struct value.
12969 * cp-valprint.c (cp_print_value): Create a struct value.
12970 (cp_print_value): Update.
12971
12972 2020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * ada-valprint.c (print_field_values): Call common_val_print.
12975
12976 2020-03-13 Tom Tromey <tom@tromey.com>
12977
12978 * ada-valprint.c (val_print_packed_array_elements): Remove
12979 bitoffset and val parameters. Call common_val_print.
12980 (ada_val_print_string): Remove offset, address, and original_value
12981 parameters.
12982 (ada_val_print_array): Update.
12983 (ada_value_print_array): New function.
12984 (ada_value_print_1): Call it.
12985
12986 2020-03-13 Tom Tromey <tom@tromey.com>
12987
12988 * ada-valprint.c (ada_value_print): Use common_val_print.
12989
12990 2020-03-13 Tom Tromey <tom@tromey.com>
12991
12992 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12993
12994 2020-03-13 Tom Tromey <tom@tromey.com>
12995
12996 * ada-valprint.c (ada_value_print_num): New function.
12997 (ada_value_print_1): Use it.
12998
12999 2020-03-13 Tom Tromey <tom@tromey.com>
13000
13001 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13002
13003 2020-03-13 Tom Tromey <tom@tromey.com>
13004
13005 * ada-valprint.c (ada_value_print_ptr): New function.
13006 (ada_value_print_1): Use it.
13007
13008 2020-03-13 Tom Tromey <tom@tromey.com>
13009
13010 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13011 call common_val_print.
13012 (ada_val_print_1): Update.
13013 (ada_value_print_1): New function.
13014 (ada_value_print_inner): Rewrite.
13015
13016 2020-03-13 Tom Tromey <tom@tromey.com>
13017
13018 * cp-valprint.c (cp_print_value_fields): Update.
13019 (cp_print_value): New function.
13020
13021 2020-03-13 Tom Tromey <tom@tromey.com>
13022
13023 * m2-valprint.c (m2_value_print_inner): Use
13024 cp_print_value_fields.
13025 * cp-valprint.c (cp_print_value_fields): New function.
13026 * c-valprint.c (c_value_print_struct): New function.
13027 (c_value_print_inner): Use c_value_print_struct.
13028 * c-lang.h (cp_print_value_fields): Declare.
13029
13030 2020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * c-valprint.c (c_value_print_array): New function.
13033 (c_value_print_inner): Use it.
13034
13035 2020-03-13 Tom Tromey <tom@tromey.com>
13036
13037 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
13053
13054 2020-03-13 Tom Tromey <tom@tromey.com>
13055
13056 * valprint.c (generic_value_print_complex): New function.
13057 (generic_value_print): Use it.
13058
13059 2020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * valprint.c (generic_val_print_float): Don't call
13062 val_print_scalar_formatted.
13063 (generic_val_print, generic_value_print): Update.
13064
13065 2020-03-13 Tom Tromey <tom@tromey.com>
13066
13067 * valprint.c (generic_value_print_char): New function
13068 (generic_value_print): Use it.
13069
13070 2020-03-13 Tom Tromey <tom@tromey.com>
13071
13072 * valprint.c (generic_value_print_int): 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_bool): New function.
13078 (generic_value_print): Use it.
13079
13080 2020-03-13 Tom Tromey <tom@tromey.com>
13081
13082 * valprint.c (generic_val_print_func): Simplify.
13083 (generic_val_print, generic_value_print): Update.
13084
13085 2020-03-13 Tom Tromey <tom@tromey.com>
13086
13087 * valprint.c (generic_val_print_flags): Remove.
13088 (generic_val_print, generic_value_print): Update.
13089 (val_print_type_code_flags): Add original_value parameter.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * valprint.c (generic_val_print): Update.
13094 (generic_value_print): Update.
13095 * valprint.c (generic_val_print_enum): Don't call
13096 val_print_scalar_formatted.
13097
13098 2020-03-13 Tom Tromey <tom@tromey.com>
13099
13100 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13101 * valprint.c (generic_value_print_ptr): New function.
13102
13103 2020-03-13 Tom Tromey <tom@tromey.com>
13104
13105 * valprint.c (generic_value_print): Rewrite.
13106
13107 2020-03-13 Tom Tromey <tom@tromey.com>
13108
13109 * p-valprint.c (pascal_object_print_value_fields)
13110 (pascal_object_print_value): New functions.
13111
13112 2020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * p-valprint.c (pascal_value_print_inner): Rewrite.
13115
13116 2020-03-13 Tom Tromey <tom@tromey.com>
13117
13118 * f-valprint.c (f_value_print_innner): Rewrite.
13119
13120 2020-03-13 Tom Tromey <tom@tromey.com>
13121
13122 * m2-valprint.c (m2_print_unbounded_array): New overload.
13123 (m2_print_unbounded_array): Update.
13124 (m2_print_array_contents): Take a struct value.
13125 (m2_value_print_inner): Rewrite.
13126
13127 2020-03-13 Tom Tromey <tom@tromey.com>
13128
13129 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13130 (d_value_print_inner): New function.
13131 * d-lang.h (d_value_print_inner): Declare.
13132 * d-lang.c (d_language_defn): Use d_value_print_inner.
13133
13134 2020-03-13 Tom Tromey <tom@tromey.com>
13135
13136 * go-valprint.c (go_value_print_inner): New function.
13137 * go-lang.h (go_value_print_inner): Declare.
13138 * go-lang.c (go_language_defn): Use go_value_print_inner.
13139
13140 2020-03-13 Tom Tromey <tom@tromey.com>
13141
13142 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13143 API.
13144 (rust_val_print): Rewrite.
13145 (rust_value_print_inner): New function, from rust_val_print.
13146 (rust_language_defn): Use rust_value_print_inner.
13147
13148 2020-03-13 Tom Tromey <tom@tromey.com>
13149
13150 * ada-valprint.c (ada_value_print_inner): New function.
13151 * ada-lang.h (ada_value_print_inner): Declare.
13152 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13153
13154 2020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * f-valprint.c (f_value_print_innner): New function.
13157 * f-lang.h (f_value_print_innner): Declare.
13158 * f-lang.c (f_language_defn): Use f_value_print_innner.
13159
13160 2020-03-13 Tom Tromey <tom@tromey.com>
13161
13162 * p-valprint.c (pascal_value_print_inner): New function.
13163 * p-lang.h (pascal_value_print_inner): Declare.
13164 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13165
13166 2020-03-13 Tom Tromey <tom@tromey.com>
13167
13168 * m2-valprint.c (m2_value_print_inner): New function.
13169 * m2-lang.h (m2_value_print_inner): Declare.
13170 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13171
13172 2020-03-13 Tom Tromey <tom@tromey.com>
13173
13174 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13175 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13176 * c-valprint.c (c_value_print_inner): New function.
13177 * c-lang.h (c_value_print_inner): Declare.
13178 * c-lang.c (c_language_defn, cplus_language_defn)
13179 (asm_language_defn, minimal_language_defn): Use
13180 c_value_print_inner.
13181
13182 2020-03-13 Tom Tromey <tom@tromey.com>
13183
13184 * p-valprint.c (pascal_object_print_value_fields): Now static.
13185 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13186
13187 2020-03-13 Tom Tromey <tom@tromey.com>
13188
13189 * c-valprint.c (c_val_print_array): Simplify.
13190
13191 2020-03-13 Tom Tromey <tom@tromey.com>
13192
13193 * valprint.c (value_print_array_elements): New function.
13194 * valprint.h (value_print_array_elements): Declare.
13195
13196 2020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13199 * mips-tdep.c (mips_print_register): Use
13200 value_print_scalar_formatted.
13201
13202 2020-03-13 Tom Tromey <tom@tromey.com>
13203
13204 * valprint.h (value_print_scalar_formatted): Declare.
13205 * valprint.c (value_print_scalar_formatted): New function.
13206
13207 2020-03-13 Tom Tromey <tom@tromey.com>
13208
13209 * valprint.h (generic_value_print): Declare.
13210 * valprint.c (generic_value_print): New function.
13211
13212 2020-03-13 Tom Tromey <tom@tromey.com>
13213
13214 * valprint.c (do_val_print): Call la_value_print_inner, if
13215 available.
13216 * rust-lang.c (rust_language_defn): Update.
13217 * p-lang.c (pascal_language_defn): Update.
13218 * opencl-lang.c (opencl_language_defn): Update.
13219 * objc-lang.c (objc_language_defn): Update.
13220 * m2-lang.c (m2_language_defn): Update.
13221 * language.h (struct language_defn) <la_value_print_inner>: New
13222 member.
13223 * language.c (unknown_language_defn, auto_language_defn): Update.
13224 * go-lang.c (go_language_defn): Update.
13225 * f-lang.c (f_language_defn): Update.
13226 * d-lang.c (d_language_defn): Update.
13227 * c-lang.c (c_language_defn, cplus_language_defn)
13228 (asm_language_defn, minimal_language_defn): Update.
13229 * ada-lang.c (ada_language_defn): Update.
13230
13231 2020-03-13 Tom Tromey <tom@tromey.com>
13232
13233 * c-valprint.c (c_value_print): Use common_val_print.
13234
13235 2020-03-13 Tom Tromey <tom@tromey.com>
13236
13237 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13238
13239 2020-03-13 Tom Tromey <tom@tromey.com>
13240
13241 * f-valprint.c (f77_print_array_1, f_val_print): Use
13242 common_val_print.
13243
13244 2020-03-13 Tom Tromey <tom@tromey.com>
13245
13246 * riscv-tdep.c (riscv_print_one_register_info): Use
13247 common_val_print.
13248
13249 2020-03-13 Tom Tromey <tom@tromey.com>
13250
13251 * mi/mi-main.c (output_register): Use common_val_print.
13252
13253 2020-03-13 Tom Tromey <tom@tromey.com>
13254
13255 * infcmd.c (default_print_one_register_info): Use
13256 common_val_print.
13257
13258 2020-03-13 Tom Tromey <tom@tromey.com>
13259
13260 * valprint.h (common_val_print_checked): Declare.
13261 * valprint.c (common_val_print_checked): New function.
13262 * stack.c (print_frame_arg): Use common_val_print_checked.
13263
13264 2020-03-13 Tom Tromey <tom@tromey.com>
13265
13266 * valprint.c (do_val_print): New function, from val_print.
13267 (val_print): Use do_val_print.
13268 (common_val_print): Use do_val_print.
13269
13270 2020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * valprint.c (value_print): Use scoped_value_mark.
13273
13274 2020-03-13 Tom de Vries <tdevries@suse.de>
13275
13276 PR symtab/25646
13277 * psymtab.c (partial_symtab::partial_symtab): Don't set
13278 globals_offset and statics_offset. Push element onto
13279 current_global_psymbols and current_static_psymbols stacks.
13280 (concat): New function.
13281 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13282 element from current_global_psymbols and current_static_psymbols
13283 stacks. Concat popped elements to global_psymbols and
13284 static_symbols.
13285 (add_psymbol_to_list): Use current_global_psymbols and
13286 current_static_psymbols stacks.
13287 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13288 current_static_psymbols fields.
13289
13290 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13291
13292 * corelow.c (sniff_core_bfd): Remove.
13293 (class core_target) <m_core_vec>: Remove.
13294 (core_target::core_target): Update.
13295 (core_file_fns): Remove.
13296 (deprecated_add_core_fns): Remove.
13297 (default_core_sniffer): Remove.
13298 (sniff_core_bfd): Remove.
13299 (default_check_format): Remove.
13300 (gdb_check_format): Remove.
13301 (core_target_open): Update.
13302 (core_target::get_core_register_section): Update.
13303 (get_core_registers_cb): Update.
13304 (core_target::fetch_registers): Update.
13305 * gdbcore.h (struct core_fns): Remove.
13306 (deprecated_add_core_fns): Remove.
13307 (default_core_sniffer): Remove.
13308 (default_check_format): Remove.
13309
13310 2020-03-12 Tom Tromey <tom@tromey.com>
13311
13312 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13313 CORE_ADDR.
13314 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13315
13316 2020-03-12 Tom Tromey <tom@tromey.com>
13317
13318 * remote.c (remote_target::download_tracepoint)
13319 (remote_target::enable_tracepoint)
13320 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13321 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13322 sprintf_vma.
13323
13324 2020-03-12 Tom Tromey <tom@tromey.com>
13325
13326 * symfile-mem.c: Update CORE_ADDR size assert.
13327
13328 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13329
13330 * selftest.m4: Move to gdbsupport/.
13331 * acinclude.m4: Update path to selftest.m4.
13332
13333 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13334
13335 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13336 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13337 gdbarch-selfselftests.c and selftest-arch.c.
13338 (SUBDIR_UNITTESTS_OBS): Rename to...
13339 (SELFTESTS_OBS): ... this.
13340 (COMMON_SFILES): Remove disasm-selftests.c and
13341 gdbarch-selftests.c.
13342 * configure.ac: Don't add selftest-arch.{c,o} to
13343 CONFIG_{SRCS,OBS}.
13344 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13345 preprocessor conditions.
13346
13347 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13348
13349 * configure.ac: Don't source bfd/development.sh.
13350 * selftest.m4: Modify comment.
13351 * configure: Re-generate.
13352
13353 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13354
13355 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13356 not "true" or "false".
13357 * configure: Re-generate.
13358
13359 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13360
13361 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13362 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13363 renamed to arm_nbsd_supply_gregset.
13364 (fetch_register): Update to call arm_nbsd_supply_gregset.
13365 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13366 (arm_netbsd_nat_target::fetch_registers): Update.
13367 (fetch_elfcore_registers): Removed.
13368 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13369 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13370 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13371 not require NetBSD system headers.
13372 (arm_nbsd_regset): New struct.
13373 (arm_nbsd_iterate_over_regset_sections): New function.
13374 (arm_netbsd_init_abi_common): Updated to call
13375 set_gdbarch_iterate_over_regset_sections.
13376 * arm-nbsd-tdep.h: New file.
13377
13378 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13379
13380 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13381 recursion.
13382
13383 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13384
13385 * configure: Re-generate.
13386
13387 2020-03-11 Tom Tromey <tromey@adacore.com>
13388
13389 * ada-typeprint.c (print_choices): Fix comment.
13390
13391 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13392
13393 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13394 previous item in the list, when the list has no items.
13395
13396 2020-03-11 Tom de Vries <tdevries@suse.de>
13397
13398 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13399 PROP_LOCLIST handling code.
13400
13401 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13402
13403 * buildsym-legacy.c (record_line): Pass extra parameter to
13404 record_line.
13405 * buildsym.c (buildsym_compunit::record_line): Take an extra
13406 parameter, reduce duplication in the line table, and record the
13407 is_stmt flag in the line table.
13408 * buildsym.h (buildsym_compunit::record_line): Add extra
13409 parameter.
13410 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13411 non-statement lines.
13412 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13413 this to the symtab builder.
13414 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13415 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13416 through to dwarf_record_line_1.
13417 * infrun.c (process_event_stop_test): When stepping, don't stop at
13418 a non-statement instruction, and only refresh the step info when
13419 we land in the middle of a line's range. Also add an extra
13420 comment.
13421 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13422 field.
13423 * record-btrace.c (btrace_find_line_range): Only record lines
13424 marked as is-statement.
13425 * stack.c (frame_show_address): Show the frame address if we are
13426 in a non-statement sal.
13427 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13428 (maintenance_print_one_line_table): Print a header for the is_stmt
13429 column, and include is_stmt information in the output.
13430 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13431 preference to non-statements.
13432 (find_pcs_for_symtab_line): Prefer is-statement entries.
13433 (find_line_common): Likewise.
13434 * symtab.h (struct linetable_entry): Add is_stmt field.
13435 (struct symtab_and_line): Likewise.
13436 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13437 arranging the line table.
13438
13439 2020-03-07 Tom de Vries <tdevries@suse.de>
13440
13441 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13442 DIE.
13443
13444 2020-03-07 Tom Tromey <tom@tromey.com>
13445
13446 * valops.c (value_literal_complex): Remove obsolete comment.
13447 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13448 comment.
13449
13450 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13451
13452 * infrun.h: Forward-declare thread_info.
13453 (set_step_info): Add thread_info parameter, add doc.
13454 * infrun.c (set_step_info): Add thread_info parameter, move doc
13455 to header.
13456 * infrun.c (process_event_stop_test): Pass thread to
13457 set_step_info call.
13458 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13459 set_step_info.
13460 (prepare_one_step): Add thread_info parameter, pass it to
13461 set_step_frame and prepare_one_step (recursive) call.
13462 (step_1): Pass thread to prepare_one_step call.
13463 (step_command_fsm::should_stop): Pass thread to
13464 prepare_one_step.
13465 (until_next_fsm): Pass thread to set_step_frame call.
13466 (finish_command): Pass thread to set_step_info call.
13467
13468 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13469
13470 * windows-tdep.c (windows_solib_create_inferior_hook):
13471 Check if inferior is running.
13472
13473 2020-03-06 Tom de Vries <tdevries@suse.de>
13474
13475 * NEWS: Fix "the the".
13476 * ctfread.c: Same.
13477
13478 2020-03-06 Tom de Vries <tdevries@suse.de>
13479
13480 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13481
13482 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13483
13484 * .dir-locals.el: Add a comment referencing the other copies of
13485 this file.
13486
13487 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13488
13489 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13490 psargs.
13491
13492 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13493
13494 * .gitattributes: New file.
13495
13496 2020-03-04 Tom Tromey <tom@tromey.com>
13497
13498 * symmisc.c (print_symbol_bcache_statistics)
13499 (print_objfile_statistics): Update.
13500 * symfile.c (allocate_symtab): Use intern.
13501 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13502 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13503 macro_cache>: Remove.
13504 <string_cache>: New member.
13505 (struct objfile) <intern>: New methods.
13506 * elfread.c (elf_symtab_read): Use intern.
13507 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13508 (dwarf2_compute_name, dwarf2_physname)
13509 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13510 names.
13511 (guess_partial_die_structure_name): Update.
13512 (partial_die_info::fixup): Intern name.
13513 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13514 name.
13515 (dwarf2_name): Intern name. Update.
13516 * buildsym.c (buildsym_compunit::get_macro_table): Use
13517 string_cache.
13518
13519 2020-03-04 Tom Tromey <tom@tromey.com>
13520
13521 * jit.c (bfd_open_from_target_memory): Make "target" const.
13522 * corefile.c (gnutarget): Now const.
13523 * gdbcore.h (gnutarget): Now const.
13524
13525 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13526
13527 * NEWS: Mention support for WOW64 processes.
13528 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13529 (amd64_windows_segment_register_p): Remove static.
13530 (_initialize_amd64_windows_nat): Update.
13531 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13532 * i386-windows-nat.c (context_offset): Update.
13533 (i386_mappings): Rename and remove static.
13534 (i386_windows_segment_register_p): Remove static.
13535 (_initialize_i386_windows_nat): Update.
13536 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13537 (STATUS_WX86_SINGLE_STEP): New macro.
13538 (EnumProcessModulesEx): New macro.
13539 (Wow64SuspendThread): New macro.
13540 (Wow64GetThreadContext): New macro.
13541 (Wow64SetThreadContext): New macro.
13542 (Wow64GetThreadSelectorEntry): New macro.
13543 (windows_set_context_register_offsets): Add static.
13544 (windows_set_segment_register_p): Likewise.
13545 (windows_add_thread): Adapt for WOW64 processes.
13546 (windows_fetch_one_register): Likewise.
13547 (windows_nat_target::fetch_registers): Likewise.
13548 (windows_store_one_register): Likewise.
13549 (display_selector): Likewise.
13550 (display_selectors): Likewise.
13551 (handle_exception): Likewise.
13552 (windows_continue): Likewise.
13553 (windows_nat_target::resume): Likewise.
13554 (windows_add_all_dlls): Likewise.
13555 (do_initial_windows_stuff): Likewise.
13556 (windows_nat_target::attach): Likewise.
13557 (windows_get_exec_module_filename): Likewise.
13558 (windows_nat_target::create_inferior): Likewise.
13559 (windows_xfer_siginfo): Likewise.
13560 (_initialize_loadable): Initialize Wow64SuspendThread,
13561 Wow64GetThreadContext, Wow64SetThreadContext,
13562 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13563 * windows-nat.h (windows_set_context_register_offsets):
13564 Remove declaration.
13565 (windows_set_segment_register_p): Likewise.
13566 (i386_windows_segment_register_p): Add declaration.
13567 (amd64_windows_segment_register_p): Likewise.
13568
13569 2020-03-04 Luis Machado <luis.machado@linaro.org>
13570
13571 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13572 in "info registers" for AArch64/ARM.
13573
13574 The change caused "info registers" to not print GPR's.
13575
13576 gdb/ChangeLog:
13577
13578 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13579
13580 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13581 when reg->group is empty and reggroup is not.
13582
13583 2020-03-03 Tom Tromey <tromey@adacore.com>
13584
13585 * dwarf2/frame.c (struct dwarf2_frame_cache)
13586 <checked_tailcall_bottom, entry_cfa_sp_offset,
13587 entry_cfa_sp_offset_p>: Remove members.
13588 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13589 (dwarf2_frame_prev_register): Don't call
13590 dwarf2_tailcall_sniffer_first.
13591 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13592 * frame-unwind.c (add_unwinder): New fuction.
13593 (frame_unwind_init): Use it. Add tailcall unwinder.
13594
13595 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13596 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13597
13598 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13599 value should be printed as true.
13600
13601 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13602
13603 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13604 (windows_init_abi): Set and use windows_so_ops.
13605
13606 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13607
13608 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13609 when verifying if dealing with a convenience variable.
13610
13611 2020-03-03 Luis Machado <luis.machado@linaro.org>
13612
13613 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13614
13615 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13616
13617 * infrun.c (gdbarch_supports_displaced_stepping): New.
13618 (use_displaced_stepping): Break up conditions in smaller pieces.
13619 Use gdbarch_supports_displaced_stepping.
13620 (displaced_step_prepare_throw): Use
13621 gdbarch_supports_displaced_stepping.
13622
13623 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13624
13625 * NEWS: Mention new behaviour of the history filename.
13626 * top.c (write_history_p): Add comment.
13627 (show_write_history_p): Add header comment, give a different
13628 message when history writing is on, but the history filename is
13629 empty.
13630 (history_filename): Add comment.
13631 (history_filename_empty): New function.
13632 (show_history_filename): Add header comment, give a different
13633 message when the filename is empty.
13634 (init_history): Compare history_filename against nullptr, and only
13635 read history if the filename is not empty.
13636 (set_history_filename): Add header comment, and only make
13637 non-empty filenames absolute.
13638 (init_main): Make the filename argument to 'set history filename'
13639 optional.
13640
13641 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13642
13643 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13644 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13645 (fetch_fp_register): Update.
13646 (fetch_fp_regs): Update.
13647 (store_fp_register): Update.
13648 (store_fp_regs): Update.
13649 (arm_netbsd_nat_target::read_description): New function.
13650 (fetch_elfcore_registers): Update.
13651
13652 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13653
13654 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13655 general_thread if the stop reply is missing a thread-id.
13656 (remote_target::process_stop_reply): Use the first non-exited
13657 thread if the target didn't pass a thread-id.
13658 * infrun.c (do_target_wait): Move call to
13659 switch_to_inferior_no_thread to ....
13660 (do_target_wait_1): ... here.
13661
13662 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13663
13664 * debuginfod-support.c: Include defs.h first.
13665
13666 2020-02-28 Tom de Vries <tdevries@suse.de>
13667
13668 * symfile.c (set_initial_language): Use default language for lookup.
13669
13670 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13671
13672 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13673 reader variable, pass `this` to read_cutu_die_from_dwo.
13674
13675 2020-02-27 Aaron Merey <amerey@redhat.com>
13676
13677 * source.c (open_source_file): Check for nullptr when computing
13678 srcpath.
13679
13680 2020-02-27 Tom Tromey <tromey@adacore.com>
13681
13682 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13683 member.
13684 (dwarf2_add_field): Don't update nfields.
13685 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13686
13687 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13688
13689 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13690 abs.
13691
13692 2020-02-26 Tom Tromey <tom@tromey.com>
13693
13694 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13695 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13696 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13697 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13698 per_cu_data.
13699
13700 2020-02-26 Tom Tromey <tom@tromey.com>
13701
13702 * dwarf2/index-write.c (psym_index_map): Change type.
13703 (add_address_entry_worker, write_one_signatured_type)
13704 (recursively_count_psymbols, recursively_write_psymbols)
13705 (class debug_names, psyms_seen_size, write_gdbindex)
13706 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13707
13708 2020-02-26 Aaron Merey <amerey@redhat.com>
13709
13710 * Makefile.in: Handle optional debuginfod support.
13711 * NEWS: Update.
13712 * README: Add --with-debuginfod summary.
13713 * config.in: Regenerate.
13714 * configure: Regenerate.
13715 * configure.ac: Handle optional debuginfod support.
13716 * debuginfod-support.c: debuginfod helper functions.
13717 * debuginfod-support.h: Ditto.
13718 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13719 summary.
13720 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13721 when a dwz file cannot be found.
13722 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13723 debuginfo file cannot be found.
13724 * source.c (open_source_file): Query debuginfod servers when a
13725 source file cannot be found.
13726 * top.c (print_gdb_configuration): Include
13727 --{with,without}-debuginfod in the output.
13728
13729 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13730
13731 * thread.c (thr_try_catch_cmd): Print thread name.
13732
13733 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13734
13735 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13736 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13737 dwarf2_fetch_die_type_sect_off): Move to...
13738 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13739 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13740 dwarf2_fetch_die_type_sect_off): ... here.
13741 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13742 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13743 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13744
13745 2020-02-26 Tom de Vries <tdevries@suse.de>
13746
13747 PR gdb/25603
13748 * symfile.c (set_initial_language): Exit-early if
13749 language_mode == language_mode_manual.
13750
13751 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13752
13753 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13754 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13755 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13756
13757 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13758
13759 * gdbtypes.c (create_array_type_with_stride): Handle negative
13760 array strides.
13761 * valarith.c (value_subscripted_rvalue): Likewise.
13762
13763 2020-02-25 Luis Machado <luis.machado@linaro.org>
13764
13765 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13766
13767 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13768
13769 * loc.h (dwarf2_get_die_type): Move to...
13770 * read.h (dwarf2_get_die_type): ... here.
13771 * read.c (dwarf2_get_die_type): Move doc to header.
13772
13773 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13774
13775 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13776 'gnulib/Makefile.in' to the list.
13777
13778 2020-02-24 Tom Tromey <tom@tromey.com>
13779
13780 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13781 Remove.
13782 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13783 XOBNEWVEC.
13784
13785 2020-02-24 Tom Tromey <tom@tromey.com>
13786
13787 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13788 New method.
13789 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13790 (dw2_do_instantiate_symtab, dw2_get_file_names)
13791 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13792
13793 2020-02-24 Tom Tromey <tom@tromey.com>
13794
13795 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13796 make_scoped_restore.
13797 (dwarf2_psymtab::read_symtab): Don't clear
13798 reading_partial_symbols.
13799
13800 2020-02-24 Tom de Vries <tdevries@suse.de>
13801
13802 PR gdb/25592
13803 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13804
13805 2020-02-24 Tom de Vries <tdevries@suse.de>
13806
13807 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13808 commands layout next/prev/regs.
13809
13810 2020-02-22 Tom Tromey <tom@tromey.com>
13811
13812 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13813 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13814
13815 2020-02-22 Tom Tromey <tom@tromey.com>
13816
13817 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13818
13819 2020-02-22 Tom Tromey <tom@tromey.com>
13820
13821 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13822 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13823 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13824 * tui/tui.c (_initialize_tui): Add usage text.
13825
13826 2020-02-22 Tom Tromey <tom@tromey.com>
13827
13828 * tui/tui-win.c (tui_set_focus_command)
13829 (tui_set_win_height_command): Use error_no_arg.
13830 (_initialize_tui_win): Update help text.
13831 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13832
13833 2020-02-22 Tom Tromey <tom@tromey.com>
13834
13835 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13836 * tui/tui-disasm.h (struct tui_disasm_window)
13837 <display_start_addr>: Declare.
13838 * tui/tui-source.h (struct tui_source_window)
13839 <display_start_addr>: Declare.
13840 * tui/tui-winsource.h (struct tui_source_window_base)
13841 <show_source_line, display_start_addr>: New methods.
13842 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13843 Rename and move to protected section.
13844 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13845 (tui_source_window_base::do_erase_source_content): Update.
13846 (tui_source_window_base::show_source_line): Now a method.
13847 (tui_source_window_base::show_source_content)
13848 (tui_source_window_base::tui_source_window_base)
13849 (tui_source_window_base::rerender)
13850 (tui_source_window_base::refill)
13851 (tui_source_window_base::do_scroll_horizontal)
13852 (tui_source_window_base::set_is_exec_point_at)
13853 (tui_source_window_base::update_breakpoint_info)
13854 (tui_source_window_base::update_exec_info): Update.
13855 * tui/tui-source.c (tui_source_window::set_contents)
13856 (tui_source_window::showing_source_p)
13857 (tui_source_window::do_scroll_vertical)
13858 (tui_source_window::location_matches_p)
13859 (tui_source_window::line_is_displayed): Update.
13860 (tui_source_window::display_start_addr): New method.
13861 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13862 (tui_disasm_window::do_scroll_vertical)
13863 (tui_disasm_window::location_matches_p): Update.
13864 (tui_disasm_window::display_start_addr): New method.
13865
13866 2020-02-22 Tom Tromey <tom@tromey.com>
13867
13868 * NEWS: Add entry for gdb.register_window_type.
13869 * tui/tui-layout.h (window_factory): New typedef.
13870 (tui_register_window): Declare.
13871 * tui/tui-layout.c (saved_tui_windows): New global.
13872 (tui_apply_current_layout): Use it.
13873 (tui_register_window): New function.
13874 * python/python.c (do_start_initialization): Call
13875 gdbpy_initialize_tui.
13876 (python_GdbMethods): Add "register_window_type" function.
13877 * python/python-internal.h (gdbpy_register_tui_window)
13878 (gdbpy_initialize_tui): Declare.
13879 * python/py-tui.c: New file.
13880 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13881
13882 2020-02-22 Tom Tromey <tom@tromey.com>
13883
13884 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13885
13886 2020-02-22 Tom Tromey <tom@tromey.com>
13887
13888 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13889 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13890 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13891 (tui_set_win_focus_to): Move from tui-win.c.
13892
13893 2020-02-22 Tom Tromey <tom@tromey.com>
13894
13895 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13896 functions.
13897 (known_window_types): New global.
13898 (tui_get_window_by_name): Reimplement.
13899 (initialize_known_windows): New function.
13900 (validate_window_name): Rewrite.
13901 (_initialize_tui_layout): Call initialize_known_windows.
13902
13903 2020-02-22 Tom Tromey <tom@tromey.com>
13904
13905 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13906 Remove constants.
13907 * tui/tui-winsource.h (struct tui_source_window_base)
13908 <tui_source_window_base>: Remove parameter.
13909 * tui/tui-winsource.c
13910 (tui_source_window_base::tui_source_window_base): Remove
13911 parameter.
13912 (tui_source_window_base::refill): Update.
13913 * tui/tui-stack.h (struct tui_locator_window)
13914 <tui_locator_window>: Update.
13915 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13916 Default the constructor.
13917 * tui/tui-regs.h (struct tui_data_item_window)
13918 <tui_data_item_window>: Default the constructor.
13919 (struct tui_data_window) <tui_data_window>: Likewise.
13920 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13921 Default the constructor.
13922 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13923 Default the constructor.
13924 <type>: Remove.
13925 (struct tui_win_info) <tui_win_info>: Default the constructor.
13926 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13927 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13928 Default the constructor.
13929
13930 2020-02-22 Tom Tromey <tom@tromey.com>
13931
13932 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13933 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13934 * tui/tui-win.c (tui_resize_all): Don't call
13935 tui_delete_invisible_windows.
13936 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13937 done.
13938 (tui_set_layout): Update.
13939 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13940 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13941 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13942
13943 2020-02-22 Tom Tromey <tom@tromey.com>
13944
13945 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13946 correctly.
13947
13948 2020-02-22 Tom Tromey <tom@tromey.com>
13949
13950 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13951
13952 2020-02-22 Tom Tromey <tom@tromey.com>
13953
13954 * tui/tui-winsource.h (struct tui_source_window_iterator)
13955 <inner_iterator>: New etytypedef.
13956 <tui_source_window_iterator>: Take "end" parameter.
13957 <tui_source_window_iterator>: Take iterator.
13958 <operator*, advance>: Update.
13959 <m_iter>: Change type.
13960 <m_end>: New field.
13961 (struct tui_source_windows) <begin, end>: Update.
13962 * tui/tui-layout.c (tui_windows): New global.
13963 (tui_apply_current_layout): Clear tui_windows.
13964 (tui_layout_window::apply): Update tui_windows.
13965 * tui/tui-data.h (tui_windows): Declare.
13966 (all_tui_windows): Now inline function.
13967 (class tui_window_iterator, struct all_tui_windows): Remove.
13968
13969 2020-02-22 Tom Tromey <tom@tromey.com>
13970
13971 PR tui/17850:
13972 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13973 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13974 "height" argument.
13975 (class tui_layout_window) <get_sizes>: Likewise.
13976 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13977 argument.
13978 <get_sizes>: Add "height" argument.
13979 <m_vertical>: New field.
13980 * tui/tui-layout.c (tui_layout_split::clone): Update.
13981 (tui_layout_split::get_sizes): Add "height" argument.
13982 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13983 (tui_new_layout_command): Parse "-horizontal".
13984 (_initialize_tui_layout): Update help string.
13985 (tui_layout_split::specification): Add "-horizontal" when needed.
13986 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13987 argument.
13988 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13989 New methods.
13990
13991 2020-02-22 Tom Tromey <tom@tromey.com>
13992
13993 * tui/tui-layout.h (enum tui_adjust_result): New.
13994 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13995 (class tui_layout_window) <adjust_size>: Return
13996 tui_adjust_result. Rewrite.
13997 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13998 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13999
14000 2020-02-22 Tom Tromey <tom@tromey.com>
14001
14002 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14003 parameter and return types.
14004 (class tui_layout_base) <specification>: Add "depth".
14005 (class tui_layout_window) <specification>: Add "depth".
14006 (class tui_layout_split) <specification>: Add "depth".
14007 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14008 and return types.
14009 (tui_new_layout_command): Parse sub-layouts.
14010 (_initialize_tui_layout): Update help string.
14011 (tui_layout_window::specification): Add "depth".
14012 (add_layout_command): Update.
14013
14014 2020-02-22 Tom Tromey <tom@tromey.com>
14015
14016 * NEWS: Add "tui new-layout" item.
14017 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14018 Add new-layout command to help text.
14019 (validate_window_name): New function.
14020 (tui_new_layout_command): New function.
14021 (_initialize_tui_layout): Register "new-layout".
14022 (tui_layout_window::specification): New method.
14023 (tui_layout_window::specification): New method.
14024 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14025 method.
14026 (class tui_layout_window) <specification>: New method.
14027 (class tui_layout_split) <specification>: New method.
14028
14029 2020-02-22 Tom Tromey <tom@tromey.com>
14030
14031 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14032 * tui/tui-win.c (window_name_completer): Update comment.
14033 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14034 Declare method.
14035 (class tui_layout_window) <replace_window>: Likewise.
14036 (class tui_layout_split) <replace_window>: Likewise.
14037 (tui_set_layout): Don't declare.
14038 (tui_set_initial_layout): Declare function.
14039 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14040 (asm_regs_layout): New globals.
14041 (tui_current_layout, show_layout): Remove.
14042 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14043 (find_layout, tui_apply_layout): New function.
14044 (layout_completer): Remove.
14045 (tui_next_layout): Reimplement.
14046 (tui_next_layout_command): New function.
14047 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14048 (tui_regs_layout): Reimplement.
14049 (tui_regs_layout_command): New function.
14050 (extract_display_start_addr): Rewrite.
14051 (next_layout, prev_layout): Remove.
14052 (tui_layout_window::replace_window): New method.
14053 (tui_layout_split::replace_window): New method.
14054 (destroy_layout): New function.
14055 (layout_list): New global.
14056 (add_layout_command): New function.
14057 (initialize_layouts): Update.
14058 (tui_layout_command): New function.
14059 (_initialize_tui_layout): Install "layout" commands.
14060 * tui/tui-data.h (enum tui_layout_type): Remove.
14061 (tui_current_layout): Don't declare.
14062
14063 2020-02-22 Tom Tromey <tom@tromey.com>
14064
14065 * tui/tui-regs.c (tui_reg_layout): Remove.
14066 (tui_reg_command): Use tui_regs_layout.
14067 * tui/tui-layout.h (tui_reg_command): Declare.
14068 * tui/tui-layout.c (tui_reg_command): New function.
14069
14070 2020-02-22 Tom Tromey <tom@tromey.com>
14071
14072 * tui/tui.c (tui_rl_delete_other_windows): Call
14073 tui_remove_some_windows.
14074 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14075 Declare method.
14076 (class tui_layout_window) <remove_windows>: New method.
14077 (class tui_layout_split) <remove_windows>: Declare.
14078 (tui_remove_some_windows): Declare.
14079 * tui/tui-layout.c (tui_remove_some_windows): New function.
14080 (tui_layout_split::remove_windows): New method.
14081
14082 2020-02-22 Tom Tromey <tom@tromey.com>
14083
14084 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14085 * tui/tui-layout.h (tui_next_layout): Declare.
14086 * tui/tui-layout.c (tui_next_layout): New function.
14087
14088 2020-02-22 Tom Tromey <tom@tromey.com>
14089
14090 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14091 correct coordinates.
14092
14093 2020-02-22 Tom Tromey <tom@tromey.com>
14094
14095 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14096 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14097 DATA_WIN case.
14098
14099 2020-02-22 Tom Tromey <tom@tromey.com>
14100
14101 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14102 TUI_DISASM_WIN, not tui_win_list.
14103
14104 2020-02-22 Tom Tromey <tom@tromey.com>
14105
14106 * valprint.c (generic_val_print_enum_1)
14107 (val_print_type_code_flags): Style member names.
14108 * rust-lang.c (val_print_struct, rust_print_enum)
14109 (rust_print_struct_def, rust_internal_print_type): Style member
14110 names.
14111 * p-valprint.c (pascal_object_print_value_fields): Style member
14112 names. Only call fprintf_symbol_filtered for static members.
14113 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14114 * f-valprint.c (f_val_print): Style member names.
14115 * f-typeprint.c (f_type_print_base): Style member names.
14116 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14117 call fprintf_symbol_filtered for static members.
14118 (cp_print_class_member): Style member names.
14119 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14120 member names.
14121 * ada-valprint.c (ada_print_scalar): Style enum names.
14122 (ada_val_print_enum): Likewise.
14123 * ada-typeprint.c (print_enum_type): Style enum names.
14124
14125 2020-02-21 Tom Tromey <tom@tromey.com>
14126
14127 * psympriv.h (struct partial_symtab): Update comment.
14128
14129 2020-02-21 Tom Tromey <tromey@adacore.com>
14130
14131 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14132 type is CORE_ADDR.
14133
14134 2020-02-21 Tom de Vries <tdevries@suse.de>
14135
14136 PR gdb/25534
14137 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14138 if dependencies[i]->user != NULL.
14139
14140 2020-02-21 Ali Tamur <tamur@google.com>
14141
14142 * dwarf2/read.c (dwarf2_name): Add null check.
14143
14144 2020-02-20 Tom Tromey <tom@tromey.com>
14145
14146 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14147 ">=", in binary search.
14148 (dwarf2_find_containing_comp_unit): New overload.
14149 (run_test): New self-test.
14150 (_initialize_dwarf2_read): Register new test.
14151
14152 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14153
14154 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14155 * riscv-tdep.h: Likewise.
14156 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14157 rv32-only CSR.
14158 * features/riscv/64bit-csr.xml: Regenerated.
14159
14160 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14161 Tom Tromey <tom@tromey.com>
14162
14163 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14164 of 'fputc_unfiltered'.
14165 (putchar_unfiltered): Call 'fputc_unfiltered'.
14166 (fputc_unfiltered): Call 'fputs_unfiltered'.
14167
14168 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14169
14170 * config.in: Regenerate.
14171 * configure: Regenerate.
14172 * configure.ac: Add --with-python-libdir option.
14173 * main.c: Use WITH_PYTHON_LIBDIR.
14174
14175 2020-02-19 Tom Tromey <tom@tromey.com>
14176
14177 * symtab.c (general_symbol_info::compute_and_set_names): Use
14178 obstack_strndup. Simplify call to symbol_set_demangled_name.
14179
14180 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14181
14182 * dwarf2/read.c (allocate_signatured_type_table,
14183 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14184 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14185 Remove objfile parameter, update all callers.
14186
14187 2020-02-19 Doug Evans <dje@google.com>
14188
14189 PR rust/25535
14190 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14191 rust_enum_variant calculation.
14192
14193 2020-02-19 Tom Tromey <tromey@adacore.com>
14194
14195 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14196
14197 2020-02-19 Tom Tromey <tromey@adacore.com>
14198
14199 * ada-lang.c (cache_symbol): Use obstack_strdup.
14200
14201 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14202
14203 * configure: Regenerate.
14204
14205 2020-02-19 Tom Tromey <tromey@adacore.com>
14206
14207 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14208 NULL check.
14209
14210 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14211
14212 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14213
14214 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14215
14216 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14217 if GDBSERVER is not defined.
14218 (riscv_tdesc_cache): Likewise, also store const target_desc.
14219 (STATIC_IN_GDB): Define.
14220 (riscv_create_target_description): Update declaration with
14221 STATIC_IN_GDB.
14222 (riscv_lookup_target_description): New function, only define if
14223 GDBSERVER is not defined.
14224 * arch/riscv.h (riscv_create_target_description): Declare only
14225 when GDBSERVER is defined.
14226 (riscv_lookup_target_description): New declaration when GDBSERVER
14227 is not defined.
14228 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14229 (riscv_linux_read_features): ...this, and return
14230 riscv_gdbarch_features instead of target_desc.
14231 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14232 (riscv_linux_read_description): Rename to...
14233 (riscv_linux_read_features): ...this.
14234 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14235 Update to use riscv_gdbarch_features and
14236 riscv_lookup_target_description.
14237 * riscv-tdep.c (riscv_find_default_target_description): Use
14238 riscv_lookup_target_description instead of
14239 riscv_create_target_description.
14240
14241 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * valprint.c (generic_val_print_enum_1): When printing a flag
14244 enum with value 0 and there is no enumerator with value 0, print
14245 just "0" instead of "(unknown: 0x0)".
14246
14247 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14248
14249 * valprint.c (generic_val_print_enum_1): Print unknown part of
14250 flag enum in hex.
14251
14252 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14255 flag enums to contain duplicate enumerators.
14256 * valprint.c (generic_val_print_enum_1): Update comment.
14257
14258 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14259
14260 * dwarf2/read.c: Include "count-one-bits.h".
14261 (update_enumeration_type_from_children): If an enumerator has
14262 multiple bits set, don't treat the enumeration as a "flag enum".
14263 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14264 of flag enums have 0 or 1 bit set.
14265
14266 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14267
14268 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14269 conversion.
14270 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14271 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14272 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14273 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14274 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14275
14276 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14277
14278 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14279
14280 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14281
14282 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14283 displaced_step_closure_up.
14284 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14285 (struct displaced_step_closure_up):
14286 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14287 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14288 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14289 Likewise.
14290 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14291 * gdbarch.c, gdbarch.h: Re-generate.
14292 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14293 displaced_step_closure_up.
14294 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14295 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14296 * infrun.h (displaced_step_closure_up): New type alias.
14297 (struct displaced_step_inferior_state) <step_closure>: Change
14298 type to displaced_step_closure_up.
14299 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14300 displaced_step_closure_up.
14301 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14302
14303 2020-02-14 Tom Tromey <tom@tromey.com>
14304
14305 * minidebug.c (gnu_debug_key): New global.
14306 (find_separate_debug_file_in_section): Use it.
14307
14308 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14309
14310 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14311 std::unique_ptr.
14312 * gdbarch.c: Re-generate.
14313 * gdbarch.h: Re-generate.
14314 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14315 change.
14316 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14317 type to std::unique_ptr.
14318 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14319 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14320 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14321 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14322 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14323 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14324 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14325 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14326 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14327
14328 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14329
14330 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14331 std::unique_ptr.
14332 (displaced_step_clear): Rename to...
14333 (displaced_step_reset): ... this. Just call displaced->reset ().
14334 (displaced_step_clear_cleanup): Rename to...
14335 (displaced_step_reset_cleanup): ... this.
14336 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14337 (displaced_step_fixup): Likewise.
14338 (resume_1): Likewise.
14339 (handle_inferior_event): Restore child's memory before calling
14340 displaced_step_fixup on the parent.
14341 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14342 to std::unique_ptr.
14343 <step_closure>: Change type to std::unique_ptr.
14344
14345 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14346
14347 * arm-tdep.c: Include count-one-bits.h.
14348 (cleanup_block_store_pc): Use count_one_bits.
14349 (cleanup_block_load_pc): Use count_one_bits.
14350 (arm_copy_block_xfer): Use count_one_bits.
14351 (thumb2_copy_block_xfer): Use count_one_bits.
14352 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14353 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14354 (thumb_get_next_pcs_raw): Use count_one_bits.
14355 (arm_get_next_pcs_raw): Use count_one_bits_l.
14356 * arch/arm.c (bitcount): Remove.
14357 * arch/arm.h (bitcount): Remove.
14358
14359 2020-02-14 Tom Tromey <tromey@adacore.com>
14360
14361 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14362 Update.
14363 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14364 * dwarf2/loc.c (call_site_find_chain_1): Return
14365 unique_xmalloc_ptr.
14366 (call_site_find_chain): Likewise.
14367
14368 2020-02-14 Richard Biener <rguenther@suse.de>
14369
14370 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14371 on expression with division operators.
14372
14373 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14374
14375 * MAINTAINERS (Write After Approval): Adding myself.
14376
14377 2020-02-12 Tom Tromey <tom@tromey.com>
14378
14379 * event-loop.c (event_data, gdb_event, event_handler_func):
14380 Remove.
14381
14382 2020-02-12 Tom Tromey <tom@tromey.com>
14383
14384 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14385 (dwarf2_frame_objfile_data): Add comment.
14386 (find_comp_unit, set_comp_unit): New functions.
14387 (dwarf2_frame_find_fde): Use find_comp_unit.
14388 (dwarf2_build_frame_info): Use set_comp_unit.
14389
14390 2020-02-12 Tom Tromey <tom@tromey.com>
14391
14392 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14393 (comp_unit): Don't initialize objfile.
14394 (execute_cfa_program): Add text_offset parameter.
14395 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14396 (dwarf2_frame_cache): Update.
14397 (dwarf2_build_frame_info): Don't set "objfile" member.
14398
14399 2020-02-12 Tom Tromey <tom@tromey.com>
14400
14401 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14402 (decode_frame_entry): Likewise.
14403 (dwarf2_build_frame_info): Update.
14404
14405 2020-02-12 Tom Tromey <tom@tromey.com>
14406
14407 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14408 (decode_frame_entry_1): Use the comp_unit obstack.
14409
14410 2020-02-12 Tom Tromey <tom@tromey.com>
14411
14412 * dwarf2/frame.c (struct comp_unit): Add initializers and
14413 constructor.
14414 (dwarf2_frame_objfile_data): Store a comp_unit.
14415 (dwarf2_frame_find_fde): Update.
14416 (dwarf2_build_frame_info): Use "new".
14417
14418 2020-02-12 Tom Tromey <tom@tromey.com>
14419
14420 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14421 (dwarf2_fde_table): Typedef for std::vector.
14422 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14423 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14424 (decode_frame_entry): Update.
14425 (dwarf2_build_frame_info): Use "new".
14426
14427 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14428
14429 * arm-tdep.c (arm_gdbarch_init): Update.
14430 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14431 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14432 have_neon, is_m>: Change to bool.
14433
14434 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14435
14436 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14437
14438 2020-02-12 Tom Tromey <tom@tromey.com>
14439
14440 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14441
14442 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14443
14444 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14445 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14446
14447 2020-02-11 Tom Tromey <tom@tromey.com>
14448
14449 * psymtab.h: Update comment.
14450
14451 2020-02-11 Tom Tromey <tom@tromey.com>
14452
14453 * gdb_obstack.h (struct auto_obstack): Use
14454 DISABLE_COPY_AND_ASSIGN.
14455
14456 2020-02-11 Tom Tromey <tom@tromey.com>
14457
14458 * dwarf2/frame.h (struct objfile): Don't forward declare.
14459
14460 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14461
14462 * cris-tdep.c (cris_supply_gregset): Change signature to match
14463 what struct regset expects.
14464 (cris_regset): New struct.
14465 (fetch_core_registers): Remove.
14466 (cris_iterate_over_regset_sections): New function.
14467 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14468 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14469
14470 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14471
14472 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14473 registers.
14474
14475 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14476
14477 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14478
14479 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14480
14481 * configure: Re-generate.
14482
14483 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14484
14485 * configure: Re-generate.
14486
14487 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14488
14489 * acinclude: Update warning.m4 path.
14490 * warning.m4: Move to gdbsupport.
14491
14492 2020-02-11 Tom Tromey <tromey@adacore.com>
14493
14494 * remote.c (remote_console_output): Update.
14495 * printcmd.c (printf_command): Update.
14496 * event-loop.c (gdb_wait_for_event): Update.
14497 * linux-nat.c (sigchld_handler): Update.
14498 * remote-sim.c (gdb_os_write_stdout): Update.
14499 (gdb_os_flush_stdout): Update.
14500 (gdb_os_flush_stderr): Update.
14501 (gdb_os_write_stderr): Update.
14502 * exceptions.c (print_exception): Update.
14503 * remote-fileio.c (remote_fileio_func_read): Update.
14504 (remote_fileio_func_write): Update.
14505 * tui/tui.c (tui_enable): Update.
14506 * tui/tui-interp.c (tui_interp::init): Update.
14507 * utils.c (init_page_info): Update.
14508 (putchar_unfiltered, fputc_unfiltered): Update.
14509 (gdb_flush): Update.
14510 (emit_style_escape): Update.
14511 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14512 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14513 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14514 (stderr_file::write): Update.
14515 (stderr_file::puts): Update.
14516 * ui-file.h (ui_file_isatty, ui_file_write)
14517 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14518 (ui_file_puts): Don't declare.
14519
14520 2020-02-10 Tom de Vries <tdevries@suse.de>
14521
14522 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14523 sentinel to char *.
14524
14525 2020-02-09 Tom de Vries <tdevries@suse.de>
14526
14527 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14528 filename if it matches "<artificial>".
14529
14530 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14531
14532 * windows-tdep.c (struct enum_value_name): New struct.
14533 (create_enum): New function.
14534 (windows_get_siginfo_type): Create and use enum types.
14535
14536 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14537
14538 * NEWS: Mention $_siginfo support for Windows.
14539 * windows-nat.c (handle_exception): Set siginfo_er.
14540 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14541 (windows_xfer_siginfo): New function.
14542 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14543 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14544 (init_windows_gdbarch_data): New function.
14545 (get_windows_gdbarch_data): New function.
14546 (windows_get_siginfo_type): New function.
14547 (windows_init_abi): Register windows_get_siginfo_type.
14548 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14549
14550 2020-02-08 Tom Tromey <tom@tromey.com>
14551
14552 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14553 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14554 <keep>: Declare method.
14555 <m_keep>: Remove member.
14556 <~cutu_reader>: Remove.
14557 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14558 (cutu_reader::cutu_reader): Update.
14559 (cutu_reader::keep): Rename from ~cutu_reader.
14560 (process_psymtab_comp_unit, build_type_psymtabs_1)
14561 (process_skeletonless_type_unit, load_partial_comp_unit)
14562 (load_full_comp_unit, dwarf2_read_addr_index)
14563 (read_signatured_type): Update.
14564
14565 2020-02-08 Tom Tromey <tom@tromey.com>
14566
14567 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14568 "want_partial_unit" parameter.
14569 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14570 Inline check for DW_TAG_partial_unit.
14571 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14572
14573 2020-02-08 Tom Tromey <tom@tromey.com>
14574
14575 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14576 read.c.
14577 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14578 read.c.
14579
14580 2020-02-08 Tom Tromey <tom@tromey.com>
14581
14582 * dwarf2/read.c (read_address): Move to comp-unit.c.
14583 (dwarf2_rnglists_process, dwarf2_ranges_process)
14584 (read_attribute_value, dwarf_decode_lines_1)
14585 (var_decode_location, decode_locdesc): Update.
14586 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14587 read.c. Remove "cu" parameter.
14588 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14589 method.
14590
14591 2020-02-08 Tom Tromey <tom@tromey.com>
14592
14593 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14594 (read_indirect_line_string): Update.
14595 * dwarf2/comp-unit.c (read_offset): Remove.
14596 (read_comp_unit_head): Update.
14597 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14598 method.
14599 (read_offset): Don't declare.
14600
14601 2020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14604 * dwarf2/read.c (struct comp_unit_head): Move to
14605 dwarf2/comp-unit.h.
14606 (enum class rcuh_kind): Move to comp-unit.h.
14607 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14608 (read_comp_unit_head, error_check_comp_unit_head)
14609 (read_and_check_comp_unit_head): Move to comp-unit.c.
14610 (read_offset, dwarf_unit_type_name): Likewise.
14611 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14612 (cutu_reader::cutu_reader, read_call_site_scope)
14613 (find_partial_die, follow_die_offset): Update.
14614 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14615
14616 2020-02-08 Tom Tromey <tom@tromey.com>
14617
14618 * dwarf2/read.c (read_offset_1): Move to leb.c.
14619 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14620 (dwarf_decode_macro_bytes): Update.
14621 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14622 * dwarf2/leb.h (read_offset): Declare.
14623
14624 2020-02-08 Tom Tromey <tom@tromey.com>
14625
14626 * dwarf2/read.c (dwarf2_section_size): Remove.
14627 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14628 Update.
14629 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14630
14631 2020-02-08 Tom Tromey <tom@tromey.com>
14632
14633 * dwarf2/read.c (read_initial_length): Move to leb.c.
14634 * dwarf2/leb.h (read_initial_length): Declare.
14635 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14636 handle_nonstd parameter.
14637 * dwarf2/frame.c (read_initial_length): Remove.
14638 (decode_frame_entry_1): Update.
14639
14640 2020-02-08 Tom Tromey <tom@tromey.com>
14641
14642 * dwarf2/loc.c (dwarf2_find_location_expression)
14643 (dwarf_evaluate_loc_desc::get_tls_address)
14644 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14645 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14646 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14647 (dwarf2_compile_property_to_c)
14648 (dwarf2_loc_desc_get_symbol_read_needs)
14649 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14650 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14651 (loclist_describe_location, loclist_tracepoint_var_ref)
14652 (loclist_generate_c_location): Update.
14653 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14654 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14655 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14656 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14657 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14658 (dwarf2_per_cu_data::addr_size)
14659 (dwarf2_per_cu_data::ref_addr_size)
14660 (dwarf2_per_cu_data::text_offset)
14661 (dwarf2_per_cu_data::addr_type): Now methods.
14662 (per_cu_header_read_in): Make per_cu "const".
14663 (dwarf2_version): Remove.
14664 (dwarf2_per_cu_data::int_type): Now a method.
14665 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14666 (set_die_type, read_array_type, read_subrange_index_type)
14667 (read_tag_string_type, read_subrange_type): Update.
14668 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14669 offset_size, ref_addr_size, text_offset, addr_type, version,
14670 objfile, int_type, addr_sized_int_type>: Declare methods.
14671
14672 2020-02-08 Tom Tromey <tom@tromey.com>
14673
14674 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14675 Move earlier.
14676
14677 2020-02-08 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2/read.h (dwarf_line_debug): Declare.
14680 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14681 * dwarf2/read.c: Move line_header code to new files.
14682 (dwarf_line_debug): No longer static.
14683 * dwarf2/line-header.c: New file.
14684 * dwarf2/line-header.h: New file.
14685
14686 2020-02-08 Tom Tromey <tom@tromey.com>
14687
14688 * dwarf2/read.c (struct line_header) <file_full_name,
14689 file_file_name>: Return unique_xmalloc_ptr.
14690 (line_header::file_file_name): Update.
14691 (line_header::file_full_name): Update.
14692 (dw2_get_file_names_reader): Update.
14693 (macro_start_file): Update.
14694
14695 2020-02-08 Tom Tromey <tom@tromey.com>
14696
14697 * dwarf2/read.c (struct line_header) <file_full_name,
14698 file_file_name>: Declare methods.
14699 (dw2_get_file_names_reader): Update.
14700 (file_file_name): Now a method.
14701 (file_full_name): Likewise.
14702 (macro_start_file): Update.
14703
14704 2020-02-08 Tom Tromey <tom@tromey.com>
14705
14706 * dwarf2/read.c (dwarf_always_disassemble)
14707 (show_dwarf_always_disassemble): Move to loc.c.
14708 (_initialize_dwarf2_read): Move "always-disassemble" registration
14709 to loc.c.
14710 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14711 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14712 static.
14713 (show_dwarf_always_disassemble): Move from read.c.
14714 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14715
14716 2020-02-08 Tom Tromey <tom@tromey.com>
14717
14718 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14719 (create_quick_file_names_table): Return htab_up.
14720 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14721 Update.
14722 * dwarf2/read.h (struct dwarf2_per_objfile)
14723 <quick_file_names_table>: Now htab_up.
14724
14725 2020-02-08 Tom Tromey <tom@tromey.com>
14726
14727 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14728
14729 2020-02-08 Tom Tromey <tom@tromey.com>
14730
14731 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14732 Rewrite.
14733 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14734 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14735 (abbrev_table::abbrev_table): No longer inline.
14736 (ABBREV_HASH_SIZE): Remove.
14737 (abbrev_table::m_abbrevs): Now an htab_up.
14738
14739 2020-02-08 Tom Tromey <tom@tromey.com>
14740
14741 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14742 (cutu_reader): Update.
14743 (build_type_psymtabs_1): Update.
14744 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14745 (abbrev_table::alloc_abbrev): Update.
14746 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14747 (abbrev_table::read): New static method, renamed from
14748 abbrev_table_read_table.
14749 (abbrev_table::alloc_abbrev)
14750 (abbrev_table::add_abbrev): Now private.
14751 (abbrev_table::abbrev_table): Now private.
14752 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14753
14754 2020-02-08 Tom Tromey <tom@tromey.com>
14755
14756 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14757 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14758 htab_up.
14759
14760 2020-02-08 Tom Tromey <tom@tromey.com>
14761
14762 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14763 htab_up.
14764 (lookup_dwo_unit_in_dwp): Update.
14765 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14766 on obstack.
14767
14768 2020-02-08 Tom Tromey <tom@tromey.com>
14769
14770 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14771 obstack.
14772
14773 2020-02-08 Tom Tromey <tom@tromey.com>
14774
14775 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14776 line_header_hash.
14777 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14778 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14779 Change type to htab_up.
14780
14781 2020-02-08 Tom Tromey <tom@tromey.com>
14782
14783 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14784 htab_up. Don't allocate on obstack.
14785 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14786 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14787 Change type to htab_up.
14788
14789 2020-02-08 Tom Tromey <tom@tromey.com>
14790
14791 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14792 Change type to htab_up.
14793 * dwarf2/read.c (create_signatured_type_table_from_index)
14794 (create_signatured_type_table_from_debug_names)
14795 (create_all_type_units, add_type_unit)
14796 (lookup_dwo_signatured_type, lookup_signatured_type)
14797 (process_skeletonless_type_unit): Update.
14798 (create_debug_type_hash_table, create_debug_types_hash_table):
14799 Change type of types_htab.
14800 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14801 htab_up. Don't allocate on obstack.
14802 (create_cus_hash_table): Change type of cus_htab parameter.
14803 (struct dwo_file) <cus, tus>: Now htab_up.
14804 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14805 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14806 (queue_and_load_all_dwo_tus): Update.
14807 * dwarf2/index-write.c (write_gdbindex): Update.
14808 (write_debug_names): Update.
14809
14810 2020-02-08 Tom Tromey <tom@tromey.com>
14811
14812 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14813 dwarf2/read.c. Remove "next" member. Add constructor ntad
14814 destructor.
14815 (struct dwarf2_per_objfile) <queue>: New member.
14816 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14817 dwarf2/read.h.
14818 (dwarf2_queue, dwarf2_queue_tail): Remove.
14819 (class dwarf2_queue_guard): Add parameter to constructor. Use
14820 DISABLE_COPY_AND_ASSIGN.
14821 <m_per_objfile>: New member.
14822 <~dwarf2_queue_guard>: Rewrite.
14823 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14824 Update.
14825 (~dwarf2_queue_item): New.
14826
14827 2020-02-08 Tom Tromey <tom@tromey.com>
14828
14829 * dwarf2/read.c (struct die_info) <has_children>: New member.
14830 (dw2_get_file_names_reader): Remove has_children.
14831 (dw2_get_file_names): Update.
14832 (read_cutu_die_from_dwo): Remove has_children.
14833 (cutu_reader::init_tu_and_read_dwo_dies)
14834 (cutu_reader::cutu_reader): Update.
14835 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14836 Remove has_children.
14837 (build_type_psymtabs_1, process_skeletonless_type_unit)
14838 (load_partial_comp_unit, load_full_comp_unit): Update.
14839 (create_dwo_cu_reader): Remove has_children.
14840 (create_cus_hash_table, read_die_and_children): Update.
14841 (read_full_die_1,read_full_die): Remove has_children.
14842 (read_signatured_type): Update.
14843 (class cutu_reader) <has_children>: Remove.
14844
14845 2020-02-08 Tom Tromey <tom@tromey.com>
14846
14847 * dwarf2/expr.c: Rename from dwarf2expr.c.
14848 * dwarf2/expr.h: Rename from dwarf2expr.h.
14849 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14850 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14851 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14852 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14853 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14854 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14855 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14856 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14857 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14858 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14859 * dwarf2/loc.c: Rename from dwarf2loc.c.
14860 * dwarf2/loc.h: Rename from dwarf2loc.h.
14861 * dwarf2/read.c: Rename from dwarf2read.c.
14862 * dwarf2/read.h: Rename from dwarf2read.h.
14863 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14864 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14865 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14866 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14867 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14868 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14869 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14870 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14871 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14872 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14873 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14874 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14875 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14876 Update.
14877 * Makefile.in (COMMON_SFILES): Update.
14878 (HFILES_NO_SRCDIR): Update.
14879
14880 2020-02-08 Tom Tromey <tom@tromey.com>
14881
14882 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14883 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14884
14885 2020-02-08 Tom Tromey <tom@tromey.com>
14886
14887 * dwarf2read.h (struct die_info): Don't declare.
14888
14889 2020-02-08 Tom Tromey <tom@tromey.com>
14890
14891 * dwarf2read.h (die_info_ptr): Remove typedef.
14892
14893 2020-02-08 Tom Tromey <tom@tromey.com>
14894
14895 * dwarf2read.c (read_call_site_scope)
14896 (handle_data_member_location, dwarf2_add_member_fn)
14897 (mark_common_block_symbol_computed, read_common_block)
14898 (attr_to_dynamic_prop, partial_die_info::read)
14899 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14900 (dwarf2_symbol_mark_computed, set_die_type): Update.
14901 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14902 method.
14903 (attr_form_is_block): Don't declare.
14904 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14905
14906 2020-02-08 Tom Tromey <tom@tromey.com>
14907
14908 * dwarf2read.c (dwarf2_find_base_address, )
14909 (read_call_site_scope, rust_containing_type)
14910 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14911 (handle_data_member_location, dwarf2_add_member_fn)
14912 (get_alignment, read_structure_type, process_structure_scope)
14913 (mark_common_block_symbol_computed, read_common_block)
14914 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14915 (partial_die_info::read, read_attribute_value, new_symbol)
14916 (lookup_die_type, dwarf2_get_ref_die_offset)
14917 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14918 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14919 (dwarf2_symbol_mark_computed): Update.
14920 * dwarf2/attribute.h (struct attribute) <value_as_address,
14921 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14922 methods.
14923 (value_as_address, attr_form_is_section_offset)
14924 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14925 * dwarf2/attribute.c (attribute::value_as_address)
14926 (attribute::form_is_section_offset, attribute::form_is_constant)
14927 (attribute::form_is_ref): Now methods.
14928
14929 2020-02-08 Tom Tromey <tom@tromey.com>
14930
14931 * dwarf2read.c (struct attribute, DW_STRING)
14932 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14933 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14934 (attr_form_is_block, attr_form_is_section_offset)
14935 (attr_form_is_constant, attr_form_is_ref): Move.
14936 * dwarf2/attribute.h: New file.
14937 * dwarf2/attribute.c: New file, from dwarf2read.c.
14938 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14939
14940 2020-02-08 Tom Tromey <tom@tromey.com>
14941
14942 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14943 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14944 Move.
14945 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14946 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14947 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14948 abbrev.c.
14949 * dwarf2/abbrev.h: New file.
14950 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14951 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14952
14953 2020-02-08 Tom Tromey <tom@tromey.com>
14954
14955 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14956 (dwarf2_section_size, dwarf2_get_section_info)
14957 (create_signatured_type_table_from_debug_names)
14958 (create_addrmap_from_aranges, read_debug_names_from_section)
14959 (get_gdb_index_contents_from_section, read_comp_unit_head)
14960 (error_check_comp_unit_head, read_abbrev_offset)
14961 (create_debug_type_hash_table, init_cu_die_reader)
14962 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14963 (read_comp_units_from_section, create_cus_hash_table)
14964 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14965 (create_dwp_v2_section, dwarf2_rnglists_process)
14966 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14967 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14968 (read_indirect_string_from_dwz, read_addr_index_1)
14969 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14970 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14971 (fill_in_loclist_baton): Update.
14972 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14973 get_containing_section, get_bfd_owner, get_bfd_section,
14974 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14975 (dwarf2_read_section, get_section_name, get_section_file_name)
14976 (get_containing_section, get_section_bfd_owner)
14977 (get_section_bfd_section, get_section_name, get_section_file_name)
14978 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14979 declare.
14980 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14981 (dwarf2_section_info::get_bfd_owner)
14982 (dwarf2_section_info::get_bfd_section)
14983 (dwarf2_section_info::get_name)
14984 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14985 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14986 (dwarf2_section_info::read): Now methods.
14987 * dwarf-index-write.c (class debug_names): Update.
14988
14989 2020-02-08 Tom Tromey <tom@tromey.com>
14990
14991 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14992 Move to dwarf2/section.h.
14993 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14994 (get_section_bfd_section, get_section_name)
14995 (get_section_file_name, get_section_id, get_section_flags)
14996 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14997 dwarf2/section.c.
14998 * dwarf2/section.h: New file.
14999 * dwarf2/section.c: New file, from dwarf2read.c.
15000 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15001
15002 2020-02-08 Tom Tromey <tom@tromey.com>
15003
15004 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15005 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15006 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15007 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15008 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15009 * dwarf2/leb.h: New file, from dwarf2read.c.
15010 * dwarf2/leb.c: New file, from dwarf2read.c.
15011 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15012 Remove.
15013 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15014 (COMMON_SFILES): Add dwarf2/leb.c.
15015
15016 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15017
15018 GDB 9.1 released.
15019
15020 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15021
15022 PR gdb/25190:
15023 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15024 * gdb/remote.c (remote_console_output): Update.
15025 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15026 (ui_file_puts): ...this.
15027 * gdb/ui-file.h (ui_file_puts): Add declaration.
15028 * gdb/utils.c (emit_style_escape): Update.
15029 (flush_wrap_buffer): Update.
15030 (fputs_maybe_filtered): Update.
15031 (fputs_unfiltered): Add function.
15032
15033 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15034
15035 * gdb/event-loop.c (gdb_wait_for_event): Update.
15036 * gdb/printcmd.c (printf_command): Update.
15037 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15038 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15039 (gdb_os_flush_stderr): Update.
15040 * gdb/remote.c (remote_console_output): Update.
15041 * gdb/ui-file.c (gdb_flush): Rename to...
15042 (ui_file_flush): ...this.
15043 (stderr_file::write): Update.
15044 (stderr_file::puts): Update.
15045 * gdb/ui-file.h (gdb_flush): Rename to...
15046 (ui_file_flush): ...this.
15047 * gdb/utils.c (gdb_flush): Add function.
15048 * gdb/utils.h (gdb_flush): Add declaration.
15049
15050 2020-02-07 Tom Tromey <tromey@adacore.com>
15051
15052 PR breakpoints/24915:
15053 * source.c (find_and_open_source): Do not check basenames_may_differ.
15054
15055 2020-02-07 Tom Tromey <tom@tromey.com>
15056
15057 * README: Update gdbserver documentation.
15058 * gdbserver: Move to top level.
15059 * configure.tgt (build_gdbserver): Remove.
15060 * configure.ac: Remove --enable-gdbserver.
15061 * configure: Rebuild.
15062 * Makefile.in (distclean): Don't mention gdbserver.
15063
15064 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15065
15066 * source-cache.c (source_cache::ensure): Surround
15067 get_plain_source_lines with a try/catch.
15068 (source_cache::get_line_charpos): Get rid of try/catch
15069 and only check for the return value of "ensure".
15070 * tui/tui-source.c (tui_source_window::set_contents):
15071 Simplify "nlines" calculation.
15072
15073 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15074
15075 * MAINTAINERS (Write After Approval): Add myself.
15076
15077 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15078
15079 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15080 function call.
15081
15082 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15083
15084 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15085
15086 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15087
15088 * nat/riscv-linux-tdesc.h: New file.
15089 * nat/riscv-linux-tdesc.c: New file, taking code from...
15090 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15091 ... here.
15092 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15093 NATDEPFILES.
15094
15095 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15096
15097 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15098 we don't set the fake simulator ptid to the null_ptid.
15099
15100 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15101
15102 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15103 * gdbthread.h (class thread_info) <resumed>: Likewise.
15104 * infrun.c (resume_1): Likewise.
15105 (proceed): Likewise.
15106 (infrun_thread_stop_requested): Likewise.
15107 (stop_all_threads): Likewise.
15108 (handle_inferior_event): Likewise.
15109 (restart_threads): Likewise.
15110 (finish_step_over): Likewise.
15111 (keep_going_stepped_thread): Likewise.
15112 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15113 (linux_handle_extended_wait): Likewise.
15114 * record-btrace.c (get_thread_current_frame_id): Likewise.
15115 * record-full.c (record_full_wait_1): Likewise.
15116 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15117 * target.c (target_resume): Likewise.
15118 * thread.c (set_running_thread): Likewise.
15119
15120 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15121
15122 * f-valprint.c (f77_print_array_1): Changed datatype of index
15123 variable to LONGEST from int to enable it to contain bound
15124 values correctly.
15125
15126 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15127
15128 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15129 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15130 offsets according to FLEN determined.
15131 (riscv_linux_nat_target::read_description): Determine FLEN
15132 dynamically.
15133 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15134 according to FLEN determined.
15135 (riscv_linux_nat_target::store_registers): Likewise.
15136
15137 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15138
15139 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15140 when reg->group is empty and reggroup is not.
15141
15142 2020-01-31 Tom Tromey <tromey@adacore.com>
15143
15144 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15145 Call beneath target's mourn_inferior after unpushing.
15146
15147 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15148
15149 PR tui/9765
15150 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15151 have enough lines to fill the screen, still return the lowest
15152 address we found.
15153
15154 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15155
15156 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15157 '-', '<', and '>' commands.
15158
15159 2020-01-29 Pedro Alves <palves@redhat.com>
15160 Sergio Durigan Junior <sergiodj@redhat.com>
15161
15162 * infcmd.c (construct_inferior_arguments): Assert that
15163 'argc' is greater than 0.
15164
15165 2020-01-29 Luis Machado <luis.machado@linaro.org>
15166
15167 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15168 (BRK_INSN_MASK): Define to 0xd4200000.
15169 (aarch64_program_breakpoint_here_p): New function.
15170 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15171 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15172 breakpoint.c.
15173 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15174 breakpoint.h
15175 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15176 call gdbarch_program_breakpoint_here_p.
15177 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15178 default_program_breakpoint_here_p, changed return type to bool and
15179 simplified.
15180 * breakpoint.h (program_breakpoint_here): Moved prototype to
15181 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15182 return type to bool.
15183 * gdbarch.c: Regenerate.
15184 * gdbarch.h: Regenerate.
15185 * gdbarch.sh (program_breakpoint_here_p): New method.
15186 * infrun.c (handle_signal_stop): Call
15187 gdbarch_program_breakpoint_here_p.
15188
15189 2020-01-26 Tom Tromey <tom@tromey.com>
15190
15191 * ctfread.c (struct ctf_fp_info): Reindent.
15192 (_initialize_ctfread): Remove.
15193
15194 2020-01-26 Tom Tromey <tom@tromey.com>
15195
15196 * psymtab.c (partial_map_expand_apply)
15197 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15198 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15199 (psym_print_stats, psym_expand_symtabs_for_function)
15200 (psym_map_symbol_filenames, psym_map_matching_symbols)
15201 (psym_expand_symtabs_matching)
15202 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15203 (maintenance_check_psymtabs): Use new methods.
15204 * psympriv.h (struct partial_symtab) <readin_p,
15205 get_compunit_symtab>: New methods.
15206 <readin, compunit_symtab>: Remove members.
15207 (struct standard_psymtab): New.
15208 (struct legacy_psymtab): Derive from standard_psymtab.
15209 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15210 standard_psymtab.
15211 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15212
15213 2020-01-26 Tom Tromey <tom@tromey.com>
15214
15215 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15216 read_dependencies. Add assert.
15217 * psymtab.c (partial_symtab::read_dependencies): New method.
15218 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15219 method.
15220 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15221 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15222 read_dependencies.
15223 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15224 Add assert.
15225
15226 2020-01-26 Tom Tromey <tom@tromey.com>
15227
15228 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15229 Call expand_psymtab.
15230 (xcoff_read_symtab): Call expand_psymtab.
15231 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15232 legacy_expand_psymtab.
15233 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15234 method.
15235 (struct legacy_psymtab) <expand_psymtab>: Implement.
15236 <legacy_expand_psymtab>: New member.
15237 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15238 (parse_partial_symbols): Set legacy_expand_psymtab.
15239 (psymtab_to_symtab_1): Change argument order. Call
15240 expand_psymtab.
15241 (new_psymtab): Set legacy_expand_psymtab.
15242 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15243 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15244 expand_psymtab.
15245 (dwarf2_psymtab::expand_psymtab): Rename from
15246 psymtab_to_symtab_1. Call expand_psymtab.
15247 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15248 (dbx_end_psymtab): Likewise.
15249 (dbx_psymtab_to_symtab_1): Change argument order. Call
15250 expand_psymtab.
15251 (dbx_read_symtab): Call expand_psymtab.
15252 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15253 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15254 (ctf_psymtab::read_symtab): Call expand_psymtab.
15255
15256 2020-01-26 Tom Tromey <tom@tromey.com>
15257
15258 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15259 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15260 messages.
15261 * mdebugread.c (mdebug_read_symtab): Remove prints.
15262 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15263 assert.
15264 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15265
15266 2020-01-26 Tom Tromey <tom@tromey.com>
15267
15268 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15269 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15270 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15271 legacy_symtab.
15272 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15273 * psymtab.c (psymtab_to_symtab): Call method.
15274 (dump_psymtab): Update.
15275 * psympriv.h (struct partial_symtab): Add virtual destructor.
15276 <read_symtab>: New method.
15277 (struct legacy_symtab): New.
15278 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15279 (struct pst_map) <pst>: Now a legacy_psymtab.
15280 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15281 (new_psymtab): Use legacy_psymtab.
15282 * dwarf2read.h (struct dwarf2_psymtab): New.
15283 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15284 * dwarf2read.c (dwarf2_create_include_psymtab)
15285 (dwarf2_build_include_psymtabs, create_type_unit_group)
15286 (create_partial_symtab, process_psymtab_comp_unit_reader)
15287 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15288 (set_partial_user): Use dwarf2_psymtab.
15289 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15290 (psymtab_to_symtab_1, process_full_comp_unit)
15291 (process_full_type_unit, dwarf2_ranges_read)
15292 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15293 (dwarf_decode_lines): Use dwarf2_psymtab.
15294 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15295 (add_address_entry_worker, write_one_signatured_type)
15296 (recursively_count_psymbols, recursively_write_psymbols)
15297 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15298 (write_debug_names): Likewise.
15299 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15300 <pst>: Now a legacy_psymtab.
15301 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15302 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15303 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15304 * ctfread.c (struct ctf_psymtab): New.
15305 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15306 ctf_psymtab.
15307 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15308 (create_partial_symtab): Return a ctf_psymtab.
15309 (scan_partial_symbols): Update.
15310
15311 2020-01-26 Tom Tromey <tom@tromey.com>
15312
15313 * xcoffread.c (xcoff_start_psymtab): Use new.
15314 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15315 renamed from start_psymtab_common.
15316 * psympriv.h (struct partial_symtab): Add new constructor.
15317 (start_psymtab_common): Don't declare.
15318 * mdebugread.c (parse_partial_symbols): Use new.
15319 * dwarf2read.c (create_partial_symtab): Use new.
15320 * dbxread.c (start_psymtab): Use new.
15321 * ctfread.c (create_partial_symtab): Use new.
15322
15323 2020-01-26 Tom Tromey <tom@tromey.com>
15324
15325 * xcoffread.c (xcoff_end_psymtab): Use new.
15326 * psymtab.c (start_psymtab_common): Use new.
15327 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15328 Update.
15329 * psympriv.h (struct partial_symtab): Add parameters to
15330 constructor. Don't inline.
15331 (allocate_psymtab): Don't declare.
15332 * mdebugread.c (new_psymtab): Use new.
15333 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15334 * dbxread.c (dbx_end_psymtab): Use new.
15335
15336 2020-01-26 Tom Tromey <tom@tromey.com>
15337
15338 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15339 allocate_psymtab. Update documentation.
15340 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15341 allocate_psymtab. Do not use new.
15342 (allocate_psymtab): Use new. Update.
15343
15344 2020-01-26 Tom Tromey <tom@tromey.com>
15345
15346 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15347 * psymtab.c (psym_print_stats): Update.
15348 * psympriv.h (struct partial_symtab) <readin,
15349 psymtabs_addrmap_supported, anonymous>: Now bool.
15350 * mdebugread.c (psymtab_to_symtab_1): Update.
15351 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15352 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15353 (process_full_comp_unit, process_full_type_unit): Update.
15354 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15355 * ctfread.c (psymtab_to_symtab): Update.
15356
15357 2020-01-26 Tom Tromey <tom@tromey.com>
15358
15359 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15360 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15361 * psymtab.c (psymtab_storage): Delete psymtabs.
15362 (psymtab_storage::allocate_psymtab): Use new.
15363 (psymtab_storage::discard_psymtab): Use delete.
15364 * psympriv.h (struct partial_symtab): Add constructor and
15365 initializers.
15366
15367 2020-01-26 Tom Tromey <tom@tromey.com>
15368
15369 * machoread.c: Do not include psympriv.h.
15370
15371 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15372
15373 * NEWS: Mention the new option and the set/show commands.
15374
15375 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15376
15377 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15378 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15379 (validate_exec_file): New variables, enums, functions.
15380 (exec_file_locate_attach, print_section_info): Style the filenames.
15381 (_initialize_exec): Install show_exec_file_mismatch_command and
15382 set_exec_file_mismatch_command.
15383 * gdbcore.h (validate_exec_file): Declare.
15384 * infcmd.c (attach_command): Call validate_exec_file.
15385 * remote.c ( remote_target::remote_add_inferior): Likewise.
15386
15387 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15388
15389 * frame.c (find_frame_sal): Move call to get_next_frame into more
15390 inner scope.
15391 * inline-frame.c (inilne_state) <inline_state>: Update argument
15392 types.
15393 (inilne_state) <skipped_symbol>: Rename to...
15394 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15395 (skip_inline_frames): Build vector of skipped symbols and use this
15396 to reate the inline_state.
15397 (inline_skipped_symbol): Add a comment and some assertions, fetch
15398 skipped symbol from the list.
15399
15400 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15401
15402 * buildsym.c (lte_is_less_than): Delete.
15403 (buildsym_compunit::end_symtab_with_blockvector): Create local
15404 lambda function to sort line table entries, and use
15405 std::stable_sort instead of std::sort.
15406 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15407 markers when looking for a previous line.
15408
15409 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15410
15411 * dwarf2read.c (lnp_state_machine::record_line): Include
15412 end_sequence parameter in debug print out. Record the line if we
15413 are at an end_sequence marker even if it's not the start of a
15414 statement.
15415 * symmisc.c (maintenance_print_one_line_table): Print end of
15416 sequence markers with 'END' not '0'.
15417
15418 2020-01-24 Pedro Alves <palves@redhat.com>
15419
15420 PR gdb/25410
15421 * thread.c (scoped_restore_current_thread::restore): Use
15422 switch_to_inferior_no_thread.
15423 * exec.c: Include "progspace-and-thread.h".
15424 (add_target_sections, remove_target_sections):
15425 scoped_restore_current_pspace_and_thread instead of
15426 scoped_restore_current_thread.
15427 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15428 and aspace to the inferior before calling clone_program_space.
15429 Remove stale comment.
15430
15431 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15432
15433 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15434 (arm_netbsd_nat_target::fetch_registers): ...this.
15435 (arm_nbsd_nat_target::store_registers): Rename to...
15436 (arm_netbsd_nat_target::store_registers): ...this.
15437
15438 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15439
15440 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15441 register_t.
15442
15443 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15444
15445 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15446 Update comment.
15447 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15448 Likewise.
15449 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15450 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15451 the correct replacement (iterate_over_regset_sections).
15452 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15453 Update comment.
15454
15455 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15456
15457 PR gdb/23718
15458 * gdb/python/python.c (execute_gdb_command): Call
15459 async_enable_stdin in catch block.
15460
15461 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15462
15463 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15464 SWITCH_THRU_ALL_UIS.
15465
15466 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15467
15468 PR tui/9765
15469 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15470 comment, add extra parameter, and update to store previous symbol
15471 when appropriate.
15472 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15473 add extra parameter.
15474 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15475 remove unneeded parameter, add try/catch around gdb_print_insn,
15476 rewrite to add items to asm_lines vector.
15477 (tui_find_backward_disassembly_start_address): New function.
15478 (tui_find_disassembly_address): Updated throughout.
15479 (tui_disasm_window::set_contents): Update for changes to
15480 tui_disassemble.
15481 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15482 number of lines to scroll.
15483
15484 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15485
15486 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15487 (SECT_OFF_DATA): Likewise.
15488 (SECT_OFF_RODATA): Likewise.
15489 (SECT_OFF_TEXT): Likewise.
15490 (SECT_OFF_BSS): Likewise.
15491 (struct objfile) <text_section_offset, data_section_offset>: New
15492 methods.
15493 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15494 objfile::text_section_offset.
15495 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15496 * coffread.c (coff_symtab_read): Likewise.
15497 (enter_linenos): Likewise.
15498 (process_coff_symbol): Likewise.
15499 * ctfread.c (get_objfile_text_range): Likewise.
15500 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15501 Use objfile::data_section_offset.
15502 * dwarf2-frame.c (execute_cfa_program): Use
15503 objfile::text_section_offset.
15504 (dwarf2_frame_find_fde): Likewise.
15505 * dwarf2read.c (create_addrmap_from_index): Likewise.
15506 (create_addrmap_from_aranges): Likewise.
15507 (dw2_find_pc_sect_compunit_symtab): Likewise.
15508 (process_psymtab_comp_unit_reader): Likewise.
15509 (add_partial_symbol): Likewise.
15510 (add_partial_subprogram): Likewise.
15511 (process_full_comp_unit): Likewise.
15512 (read_file_scope): Likewise.
15513 (read_func_scope): Likewise.
15514 (read_lexical_block_scope): Likewise.
15515 (read_call_site_scope): Likewise.
15516 (dwarf2_rnglists_process): Likewise.
15517 (dwarf2_ranges_process): Likewise.
15518 (dwarf2_ranges_read): Likewise.
15519 (dwarf_decode_lines_1): Likewise.
15520 (new_symbol): Likewise.
15521 (dwarf2_fetch_die_loc_sect_off): Likewise.
15522 (dwarf2_per_cu_text_offset): Likewise.
15523 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15524 * hppa-tdep.c (read_unwind_info): Likewise.
15525 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15526 * psympriv.h (struct partial_symtab): Likewise.
15527 * psymtab.c (find_pc_sect_psymtab): Likewise.
15528 * solib-svr4.c (enable_break): Likewise.
15529 * stap-probe.c (relocate_address): Use
15530 objfile::data_section_offset.
15531 * xcoffread.c (enter_line_range): Use
15532 objfile::text_section_offset.
15533 (read_xcoff_symtab): Likewise.
15534
15535 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15536
15537 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15538 declaration to narrower scopes.
15539
15540 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15541
15542 * darwin-nat.h (struct darwin_exception_msg, enum
15543 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15544 Move up.
15545 (class darwin_nat_target) <wait_1, check_new_threads,
15546 decode_exception_message, decode_message, stop_inferior,
15547 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15548 * darwin-nat.c (darwin_check_new_threads): Rename to...
15549 (darwin_nat_target::check_new_threads): ... this.
15550 (darwin_suspend_inferior_it): Remove.
15551 (darwin_decode_exception_message): Rename to...
15552 (darwin_nat_target::decode_exception_message): ... this.
15553 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15554 (darwin_decode_message): Rename to...
15555 (darwin_nat_target::decode_message): ... this.
15556 (cancel_breakpoint): Rename to...
15557 (darwin_nat_target::cancel_breakpoint): ... this.
15558 (darwin_wait): Rename to...
15559 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15560 instead of iterate_over_inferiors.
15561 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15562 (darwin_stop_inferior): Rename to...
15563 (darwin_nat_target::stop_inferior): ... this.
15564 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15565 (darwin_init_thread_list): Rename to...
15566 (darwin_nat_target::init_thread_list): ... this.
15567 (darwin_ptrace_him): Rename to...
15568 (darwin_nat_target::ptrace_him): ... this.
15569 (darwin_nat_target::create_inferior): Pass lambda function to
15570 fork_inferior.
15571 (darwin_nat_target::detach): Call stop_inferior instead of
15572 darwin_stop_inferior.
15573 * fork-inferior.h (fork_inferior): Change init_trace_fun
15574 parameter to gdb::function_view.
15575 * fork-inferior.c (fork_inferior): Likewise.
15576
15577 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15578
15579 * i386-cygwin-tdep.c (core_process_module_section): Update.
15580 * windows-nat.c (struct lm_info_windows): Add text_offset.
15581 (windows_xfer_shared_libraries): Update.
15582 * windows-tdep.c (windows_xfer_shared_library):
15583 Add text_offset_cached argument.
15584 * windows-tdep.h (windows_xfer_shared_library): Update.
15585
15586 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15587
15588 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15589
15590 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15591
15592 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15593 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15594 replace with range-based for.
15595 (gdbsim_interrupt_inferior): Remove.
15596 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15597 with a range-based for. Inline code from
15598 gdbsim_interrupt_inferior.
15599
15600 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15601
15602 * infrun.c (proceed): Fix indentation.
15603
15604 2020-01-21 Tom Tromey <tromey@adacore.com>
15605
15606 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15607 * python/python.c (python_extension_ops): Update.
15608 (gdbpy_colorize): New function.
15609 * python/lib/gdb/__init__.py (colorize): New function.
15610 * extension.h (ext_lang_colorize): Declare.
15611 * extension.c (ext_lang_colorize): New function.
15612 * extension-priv.h (struct extension_language_ops) <colorize>: New
15613 member.
15614 * cli/cli-style.c (_initialize_cli_style): Update help text.
15615
15616 2020-01-21 Luis Machado <luis.machado@linaro.org>
15617
15618 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15619 <cond>: Change type to bool.
15620 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15621 (aarch64_displaced_step_cb): Likewise.
15622 (aarch64_displaced_step_tb): Likewise.
15623
15624 2020-01-21 Luis Machado <luis.machado@linaro.org>
15625
15626 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15627 output.
15628
15629 2020-01-21 Luis Machado <luis.machado@linaro.org>
15630
15631 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15632 <pc_adjust>: Adjust the documentation.
15633 (aarch64_displaced_step_fixup): Check if PC really moved before
15634 adjusting it.
15635
15636 2020-01-19 Tom Tromey <tom@tromey.com>
15637
15638 * disasm.c (~gdb_disassembler): New destructor.
15639 (gdb_buffered_insn_length): Call disassemble_free_target.
15640 * disasm.h (class gdb_disassembler): Declare destructor. Use
15641 DISABLE_COPY_AND_ASSIGN.
15642
15643 2020-01-19 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15646 (die_reader_func_ftype): Remove.
15647 (cutu_reader): New class.
15648 (dw2_get_file_names_reader): Remove "data" parameter.
15649 (dw2_get_file_names): Use cutu_reader.
15650 (create_debug_type_hash_table): Update.
15651 (read_cutu_die_from_dwo): Update comment.
15652 (lookup_dwo_unit): Add dwo_name parameter.
15653 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15654 die_reader_func_ftype and data parameters.
15655 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15656 Remove die_reader_func_ftype and data parameters.
15657 (~cutu_reader): New; from init_cutu_and_read_dies.
15658 (cutu_reader::cutu_reader): Rename from
15659 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15660 and data parameters.
15661 (init_cutu_and_read_dies_simple): Remove.
15662 (struct process_psymtab_comp_unit_data): Remove.
15663 (process_psymtab_comp_unit_reader): Remove data parameter; add
15664 want_partial_unit and pretend_language parameters.
15665 (process_psymtab_comp_unit): Use cutu_reader.
15666 (build_type_psymtabs_reader): Remove data parameter.
15667 (build_type_psymtabs_1): Use cutu_reader.
15668 (process_skeletonless_type_unit): Likewise.
15669 (load_partial_comp_unit_reader): Remove.
15670 (load_partial_comp_unit): Use cutu_reader.
15671 (load_full_comp_unit_reader): Remove.
15672 (load_full_comp_unit): Use cutu_reader.
15673 (struct create_dwo_cu_data): Remove.
15674 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15675 dwo_unit parameters.
15676 (create_cus_hash_table): Use cutu_reader.
15677 (struct dwarf2_read_addr_index_data): Remove.
15678 (dwarf2_read_addr_index_reader): Remove.
15679 (dwarf2_read_addr_index): Use cutu_reader.
15680 (read_signatured_type_reader): Remove.
15681 (read_signatured_type): Use cutu_reader.
15682
15683 2020-01-19 Tom Tromey <tom@tromey.com>
15684
15685 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15686 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15687 (tui_wrefresh): Declare.
15688 * tui/tui-wingeneral.c (suppress_output): New global.
15689 (tui_suppress_output, ~tui_suppress_output): New constructor and
15690 destructor.
15691 (tui_wrefresh): New function.
15692 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15693 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15694 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15695 method.
15696 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15697 tui_wrefresh.
15698 (tui_data_window::no_refresh): New method.
15699 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15700 (tui_reg_command): Use tui_suppress_output
15701 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15702 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15703 method.
15704 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15705
15706 2020-01-19 Tom Tromey <tom@tromey.com>
15707
15708 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15709 Handle case where symtab is null.
15710
15711 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15712
15713 * linux-fork.c (one_fork_p): Simplify.
15714
15715 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15716
15717 * top.c (struct qt_args): Remove.
15718 (kill_or_detach): Change return type to void, replace `void *`
15719 parameter with a proper one.
15720 (print_inferior_quit_action): Likewise.
15721 (quit_confirm): Use range-based for loop to iterate over inferiors.
15722 (quit_force): Likewise.
15723
15724 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15725
15726 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15727 `void *` parameter with proper parameters.
15728 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15729 (print_one_inferior): Change return type to void, replace `void *`
15730 parameter with proper parameters.
15731 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15732 inferiors.
15733 (get_other_inferior): Remove.
15734 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15735 inferiors.
15736
15737 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15738
15739 * mi/mi-interp.c (report_initial_inferior): Remove.
15740 (mi_interp::init): Use range-based for to iterate over inferiors.
15741
15742 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15743
15744 * python/py-inferior.c (build_inferior_list): Remove.
15745 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15746
15747 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15748
15749 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15750 (btrace_stitch_trace): Likewise.
15751 * charset.c (intermediate_encoding): Likewise (vaild).
15752 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15753 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15754 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15755
15756 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15757
15758 * windows-tdep.c (windows_get_tlb_type):
15759 Add rtl_user_process_parameters type.
15760
15761 2020-01-16 Pedro Alves <palves@redhat.com>
15762 Norbert Lange <nolange79@gmail.com>
15763
15764 PR build/24805
15765 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15766 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15767 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15768 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15769 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15770 (ps_plog): Redeclare exported functions with default visibility.
15771
15772 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15773
15774 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15775 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15776
15777 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15778
15779 * infcmd.c (post_create_inferior): Use get_thread_regcache
15780 instead of get_current_regcache.
15781
15782 2020-01-14 Tom Tromey <tom@tromey.com>
15783
15784 PR symtab/12535:
15785 * python/python.c (gdbpy_decode_line): Treat empty string the same
15786 as no argument.
15787
15788 2020-01-14 Tom Tromey <tom@tromey.com>
15789
15790 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15791
15792 2020-01-14 Tom Tromey <tom@tromey.com>
15793
15794 * nat/linux-btrace.c: Don't include <config.h>.
15795 * nat/linux-ptrace.c: Don't include <config.h>.
15796 * nat/x86-linux-dregs.c: Don't include <config.h>.
15797
15798 2020-01-14 Tom Tromey <tom@tromey.com>
15799
15800 * configure: Rebuild.
15801 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15802
15803 2020-01-14 Tom Tromey <tom@tromey.com>
15804
15805 * nat/x86-linux-dregs.c: Include configh.h.
15806 * nat/linux-ptrace.c: Include configh.h.
15807 * nat/linux-btrace.c: Include configh.h.
15808 * defs.h: Include config.h, bfd.h.
15809 * configure.ac: Don't source common.host.
15810 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15811 * configure: Rebuild.
15812 * acinclude.m4: Update path.
15813 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15814 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15815 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15816 (CLIBS): Add LIBSUPPORT.
15817 (CDEPS): Likewise.
15818 (COMMON_SFILES): Remove gdbsupport files.
15819 (HFILES_NO_SRCDIR): Likewise.
15820 (stamp-version): Update path to create-version.sh.
15821 (ALLDEPFILES): Remove gdbsupport files.
15822
15823 2020-01-14 Tom Tromey <tom@tromey.com>
15824
15825 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15826 USE_WIN32API when needed.
15827 * configure.ac (USE_WIN32API): Don't define.
15828 (WIN32LIBS): Use WIN32APILIBS.
15829 * configure: Rebuild.
15830
15831 2020-01-14 Tom Tromey <tom@tromey.com>
15832
15833 * configure: Rebuild.
15834 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15835
15836 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15837
15838 * skip.c (skip_function_command): Make skip w/o arguments use the
15839 name of the inlined function if pc is inside any inlined function.
15840
15841 2020-01-14 Luis Machado <luis.machado@linaro.org>
15842
15843 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15844 * infrun.c (resume_1): Likewise.
15845 (handle_inferior_event): Remove stale comment.
15846 * linux-nat.c (linux_nat_target::resume): Update comments.
15847 (save_stop_reason): Likewise.
15848 (linux_nat_filter_event): Likewise.
15849 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15850
15851 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15852
15853 * elfread.c (record_minimal_symbol): Set section index to 0 for
15854 non-allocatable sections.
15855
15856
15857 2020-01-13 Ali Tamur <tamur@google.com>
15858
15859 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15860 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15861 to gdb::optional. Update comments.
15862 (dwo_file): Update comments.
15863 (read_attribute): Update API to take an additional out parameter,
15864 need_reprocess. This is used to mark attributes that need other
15865 attributes (e.g. str_offsets_base) for correct computation which may not
15866 have been read yet.
15867 (read_attribute_reprocess): New function declaration.
15868 (read_addr_index): Likewise.
15869 (read_dwo_str_index): Likewise.
15870 (read_stub_str_index): Likewise.
15871 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15872 (lookup_addr_base): New function definition.
15873 (lookup_ranges_base): Likewise.
15874 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15875 lookup_ranges_base.
15876 (init_cutu_and_read_dies): Update comments.
15877 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15878 unit. This is used to inherit parent's str_offsets_base and addr_base.
15879 Update comments.
15880 (init_cutu_and_read_dies_simple): Reflect API changes.
15881 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15882 (create_cus_hash_table): Change API to take parent compile unit.
15883 Reflect API changes.
15884 (open_and_init_dwo_file): Reflect API changes.
15885 (dwarf2_get_pc_bounds): Update comments.
15886 (dwarf2_record_block_ranges): Likewise.
15887 (read_full_die_1): Change implementation to reprocess attributes that
15888 need str_offsets_base and addr_base.
15889 (partial_die_info::read): Likewise.
15890 (read_attribute_reprocess): New function definition.
15891 (read_attribute_value): Change API to take an additional out parameter,
15892 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15893 when a non-dwo compile unit has index based attributes.
15894 (read_attribute): Reflect API changes.
15895 (read_addr_index_1): Reflect API changes. Update comments.
15896 (dwarf2_read_addr_index_data): Reflect API changes.
15897 (dwarf2_read_addr_index): Likewise.
15898 (read_str_index): Change API and implementation. This becomes a helper
15899 to be used by the new string index related methods. Update error
15900 message and comments.
15901 (read_dwo_str_index): New function definition.
15902 (read_stub_str_index): Likewise.
15903 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15904 * symfile.h (dwarf2_debug_sections): Likewise.
15905 * xcoffread.c (dwarf2_debug_sections): Likewise.
15906
15907 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15908
15909 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15910 core_reg_sect type to gdb_byte *.
15911 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15912 * cris-tdep.c (fetch_core_registers): Likewise.
15913 * corelow.c (core_target::get_core_register_section): Change
15914 type of `contents` to gdb::byte_vector.
15915
15916 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15917
15918 * tui/tui-wingeneral.c (box_win): Position the title in the center
15919 of the border.
15920
15921 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15922
15923 * corelow.c (core_target::get_core_register_section): Use
15924 std::vector instead of alloca.
15925
15926 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15927
15928 * warning.m4: Add -Wmissing-declarations to build_warnings.
15929 * configure: Re-generate.
15930
15931 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15932
15933 * python/python.c (init__gdb_module): Add declaration.
15934
15935 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15936
15937 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15938 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15939 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15940 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15941 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15942 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15943 * ada-exp.y (_initialize_ada_exp): Add declaration.
15944 * ada-lang.c (_initialize_ada_language): Add declaration.
15945 * ada-tasks.c (_initialize_tasks): Add declaration.
15946 * agent.c (_initialize_agent): Add declaration.
15947 * aix-thread.c (_initialize_aix_thread): Add declaration.
15948 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15949 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15950 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15951 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15952 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15953 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15954 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15955 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15956 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15957 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15958 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15959 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15960 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15961 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15962 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15963 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15964 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15965 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15966 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15967 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15968 * annotate.c (_initialize_annotate): Add declaration.
15969 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15970 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15971 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15972 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15973 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15974 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15975 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15976 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15977 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15978 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15979 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15980 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15981 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15982 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15983 * auto-load.c (_initialize_auto_load): Add declaration.
15984 * auxv.c (_initialize_auxv): Add declaration.
15985 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15986 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15987 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15988 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15989 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15990 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15991 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15992 * breakpoint.c (_initialize_breakpoint): Add declaration.
15993 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15994 * btrace.c (_initialize_btrace): Add declaration.
15995 * charset.c (_initialize_charset): Add declaration.
15996 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15997 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15998 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15999 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16000 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16001 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16002 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16003 * coffread.c (_initialize_coffread): Add declaration.
16004 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16005 * compile/compile.c (_initialize_compile): Add declaration.
16006 * complaints.c (_initialize_complaints): Add declaration.
16007 * completer.c (_initialize_completer): Add declaration.
16008 * copying.c (_initialize_copying): Add declaration.
16009 * corefile.c (_initialize_core): Add declaration.
16010 * corelow.c (_initialize_corelow): Add declaration.
16011 * cp-abi.c (_initialize_cp_abi): Add declaration.
16012 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16013 * cp-support.c (_initialize_cp_support): Add declaration.
16014 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16015 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16016 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16017 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16018 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16019 * ctfread.c (_initialize_ctfread): Add declaration.
16020 * d-lang.c (_initialize_d_language): Add declaration.
16021 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16022 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16023 * dbxread.c (_initialize_dbxread): Add declaration.
16024 * dcache.c (_initialize_dcache): Add declaration.
16025 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16026 * disasm.c (_initialize_disasm): Add declaration.
16027 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16028 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16029 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16030 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16031 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16032 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16033 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16034 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16035 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16036 * elfread.c (_initialize_elfread): Add declaration.
16037 * exec.c (_initialize_exec): Add declaration.
16038 * extension.c (_initialize_extension): Add declaration.
16039 * f-lang.c (_initialize_f_language): Add declaration.
16040 * f-valprint.c (_initialize_f_valprint): Add declaration.
16041 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16042 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16043 * filesystem.c (_initialize_filesystem): Add declaration.
16044 * findcmd.c (_initialize_mem_search): Add declaration.
16045 * findvar.c (_initialize_findvar): Add declaration.
16046 * fork-child.c (_initialize_fork_child): Add declaration.
16047 * frame-base.c (_initialize_frame_base): Add declaration.
16048 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16049 * frame.c (_initialize_frame): Add declaration.
16050 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16051 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16052 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16053 * gcore.c (_initialize_gcore): Add declaration.
16054 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16055 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16056 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16057 * gdbarch.c (_initialize_gdbarch): Add declaration.
16058 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16059 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16060 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16061 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16062 * go-lang.c (_initialize_go_language): Add declaration.
16063 * go32-nat.c (_initialize_go32_nat): Add declaration.
16064 * guile/guile.c (_initialize_guile): Add declaration.
16065 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16066 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16067 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16068 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16069 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16070 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16071 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16072 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16073 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16074 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16075 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16076 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16077 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16078 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16079 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16080 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16081 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16082 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16083 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16084 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16085 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16086 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16087 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16088 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16089 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16090 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16091 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16092 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16093 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16094 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16095 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16096 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16097 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16098 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16099 * infcall.c (_initialize_infcall): Add declaration.
16100 * infcmd.c (_initialize_infcmd): Add declaration.
16101 * inflow.c (_initialize_inflow): Add declaration.
16102 * infrun.c (_initialize_infrun): Add declaration.
16103 * interps.c (_initialize_interpreter): Add declaration.
16104 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16105 * jit.c (_initialize_jit): Add declaration.
16106 * language.c (_initialize_language): Add declaration.
16107 * linux-fork.c (_initialize_linux_fork): Add declaration.
16108 * linux-nat.c (_initialize_linux_nat): Add declaration.
16109 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16110 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16111 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16112 * m2-lang.c (_initialize_m2_language): Add declaration.
16113 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16114 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16115 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16116 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16117 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16118 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16119 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16120 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16121 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16122 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16123 * machoread.c (_initialize_machoread): Add declaration.
16124 * macrocmd.c (_initialize_macrocmd): Add declaration.
16125 * macroscope.c (_initialize_macroscope): Add declaration.
16126 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16127 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16128 * maint.c (_initialize_maint_cmds): Add declaration.
16129 * mdebugread.c (_initialize_mdebugread): Add declaration.
16130 * memattr.c (_initialize_mem): Add declaration.
16131 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16132 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16133 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16134 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16135 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16136 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16137 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16138 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16139 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16140 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16141 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16142 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16143 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16144 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16145 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16146 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16147 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16148 * mipsread.c (_initialize_mipsread): Add declaration.
16149 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16150 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16151 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16152 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16153 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16154 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16155 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16156 * nto-procfs.c (_initialize_procfs): Add declaration.
16157 * objc-lang.c (_initialize_objc_language): Add declaration.
16158 * observable.c (_initialize_observer): Add declaration.
16159 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16160 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16161 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16162 * osabi.c (_initialize_gdb_osabi): Add declaration.
16163 * osdata.c (_initialize_osdata): Add declaration.
16164 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16165 * parse.c (_initialize_parse): Add declaration.
16166 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16167 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16168 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16169 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16170 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16171 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16172 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16173 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16174 * printcmd.c (_initialize_printcmd): Add declaration.
16175 * probe.c (_initialize_probe): Add declaration.
16176 * proc-api.c (_initialize_proc_api): Add declaration.
16177 * proc-events.c (_initialize_proc_events): Add declaration.
16178 * proc-service.c (_initialize_proc_service): Add declaration.
16179 * procfs.c (_initialize_procfs): Add declaration.
16180 * producer.c (_initialize_producer): Add declaration.
16181 * psymtab.c (_initialize_psymtab): Add declaration.
16182 * python/python.c (_initialize_python): Add declaration.
16183 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16184 * record-btrace.c (_initialize_record_btrace): Add declaration.
16185 * record-full.c (_initialize_record_full): Add declaration.
16186 * record.c (_initialize_record): Add declaration.
16187 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16188 * regcache.c (_initialize_regcache): Add declaration.
16189 * reggroups.c (_initialize_reggroup): Add declaration.
16190 * remote-notif.c (_initialize_notif): Add declaration.
16191 * remote-sim.c (_initialize_remote_sim): Add declaration.
16192 * remote.c (_initialize_remote): Add declaration.
16193 * reverse.c (_initialize_reverse): Add declaration.
16194 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16195 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16196 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16197 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16198 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16199 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16200 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16201 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16202 Add declaration.
16203 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16204 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16205 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16206 * rust-exp.y (_initialize_rust_exp): Add declaration.
16207 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16208 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16209 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16210 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16211 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16212 * score-tdep.c (_initialize_score_tdep): Add declaration.
16213 * ser-go32.c (_initialize_ser_dos): Add declaration.
16214 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16215 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16216 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16217 * ser-uds.c (_initialize_ser_socket): Add declaration.
16218 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16219 * serial.c (_initialize_serial): Add declaration.
16220 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16221 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16222 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16223 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16224 * skip.c (_initialize_step_skip): Add declaration.
16225 * sol-thread.c (_initialize_sol_thread): Add declaration.
16226 * solib-aix.c (_initialize_solib_aix): Add declaration.
16227 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16228 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16229 * solib-frv.c (_initialize_frv_solib): Add declaration.
16230 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16231 * solib-target.c (_initialize_solib_target): Add declaration.
16232 * solib.c (_initialize_solib): Add declaration.
16233 * source-cache.c (_initialize_source_cache): Add declaration.
16234 * source.c (_initialize_source): Add declaration.
16235 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16236 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16237 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16238 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16239 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16240 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16241 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16242 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16243 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16244 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16245 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16246 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16247 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16248 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16249 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16250 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16251 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16252 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16253 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16254 * stabsread.c (_initialize_stabsread): Add declaration.
16255 * stack.c (_initialize_stack): Add declaration.
16256 * stap-probe.c (_initialize_stap_probe): Add declaration.
16257 * std-regs.c (_initialize_frame_reg): Add declaration.
16258 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16259 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16260 * symfile.c (_initialize_symfile): Add declaration.
16261 * symmisc.c (_initialize_symmisc): Add declaration.
16262 * symtab.c (_initialize_symtab): Add declaration.
16263 * target.c (_initialize_target): Add declaration.
16264 * target-connection.c (_initialize_target_connection): Add
16265 declaration.
16266 * target-dcache.c (_initialize_target_dcache): Add declaration.
16267 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16268 * thread.c (_initialize_thread): Add declaration.
16269 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16270 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16271 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16272 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16273 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16274 * tracectf.c (_initialize_ctf): Add declaration.
16275 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16276 * tracefile.c (_initialize_tracefile): Add declaration.
16277 * tracepoint.c (_initialize_tracepoint): Add declaration.
16278 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16279 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16280 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16281 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16282 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16283 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16284 * tui/tui.c (_initialize_tui): Add declaration.
16285 * typeprint.c (_initialize_typeprint): Add declaration.
16286 * ui-style.c (_initialize_ui_style): Add declaration.
16287 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16288 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16289 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16290 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16291 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16292 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16293 * unittests/filtered_iterator-selftests.c
16294 (_initialize_filtered_iterator_selftests): Add declaration.
16295 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16296 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16297 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16298 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16299 * unittests/main-thread-selftests.c
16300 (_initialize_main_thread_selftests): Add declaration.
16301 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16302 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16303 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16304 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16305 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16306 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16307 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16308 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16309 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16310 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16311 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16312 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16313 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16314 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16315 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16316 declaration.
16317 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16318 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16319 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16320 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16321 * user-regs.c (_initialize_user_regs): Add declaration.
16322 * utils.c (_initialize_utils): Add declaration.
16323 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16324 * valops.c (_initialize_valops): Add declaration.
16325 * valprint.c (_initialize_valprint): Add declaration.
16326 * value.c (_initialize_values): Add declaration.
16327 * varobj.c (_initialize_varobj): Add declaration.
16328 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16329 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16330 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16331 * windows-nat.c (_initialize_windows_nat): Add declaration.
16332 (_initialize_check_for_gdb_ini): Add declaration.
16333 (_initialize_loadable): Add declaration.
16334 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16335 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16336 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16337 * xcoffread.c (_initialize_xcoffread): Add declaration.
16338 * xml-support.c (_initialize_xml_support): Add declaration.
16339 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16340 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16341 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16342 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16343
16344 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16345
16346 * regformats/regdat.sh: Generate declaration for init function.
16347
16348 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16349
16350 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16351 up.
16352 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16353 close_one_inferior>: New methods.
16354 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16355 pass down target to find_inferior_pid.
16356 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16357 Pass down target to find_inferior_ptid.
16358 (gdbsim_target::create_inferior): Pass down target to
16359 add_thread_silent.
16360 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16361 target down to find_inferior_ptid and switch_to_thread.
16362 (gdbsim_target::close): Update to call close_one_inferior.
16363 (struct resume_data): Remove.
16364 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16365 directly, rather than through a void pointer.
16366 (gdbsim_target::resume): Update to call resume_one_inferior.
16367
16368 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16369
16370 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16371
16372 2020-01-12 Pedro Alves <palves@redhat.com>
16373
16374 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16375 directly for the current inferior instead of
16376 discard_all_inferiors.
16377 (discard_all_inferiors): Delete.
16378
16379 2020-01-11 Tom Tromey <tom@tromey.com>
16380
16381 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16382 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16383 deprecated_safe_get_selected_frame.
16384
16385 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16386
16387 * inferior.c (print_inferior): Switch inferior before printing it.
16388
16389 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16390 Pedro Alves <palves@redhat.com>
16391
16392 * progspace-and-thread.c (switch_to_program_space_and_thread):
16393 Assert there's an inferior for PSPACE. Use
16394 switch_to_inferior_no_thread to switch the inferior too.
16395 * progspace.c (program_space::~program_space): Call
16396 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16397 (program_space::free_all_objfiles): Don't call clear_symtab_users
16398 here.
16399 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16400
16401 2020-01-10 Pedro Alves <palves@redhat.com>
16402
16403 * NEWS: Mention multi-target debugging, "info connections", and
16404 "add-inferior -no-connection".
16405
16406 2020-01-10 Pedro Alves <palves@redhat.com>
16407
16408 * infrun.c: Include "target-connection.h".
16409 (check_multi_target_resumption): New.
16410 (proceed): Call it.
16411 * target-connection.c (make_target_connection_string): Make
16412 extern.
16413 * target-connection.h (make_target_connection_string): Declare.
16414
16415 2020-01-10 Pedro Alves <palves@redhat.com>
16416
16417 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16418 * inferior.c (uiout_field_connection): New function.
16419 (print_inferior): Add new "connection-id" column.
16420 (add_inferior_command): Show connection number/string of added
16421 inferior.
16422 * process-stratum-target.h
16423 (process_stratum_target::connection_string): New virtual method.
16424 (process_stratum_target::connection_number): New field.
16425 * remote.c (remote_target::connection_string): New override.
16426 * target-connection.c: New file.
16427 * target-connection.h: New file.
16428 * target.c (decref_target): Remove process_stratum targets from
16429 the connection list.
16430 (target_stack::push): Add process_stratum targets to the
16431 connection list.
16432
16433 2020-01-10 Pedro Alves <palves@redhat.com>
16434
16435 Revert:
16436 2016-04-12 Pedro Alves <palves@redhat.com>
16437 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16438 Remove references to name.
16439 * serial.h (struct serial) <name>: Delete.
16440
16441 2020-01-10 Pedro Alves <palves@redhat.com>
16442
16443 * gdbarch-selftests.c (register_to_value_test): Remove "target
16444 already pushed" check.
16445
16446 2020-01-10 Pedro Alves <palves@redhat.com>
16447 John Baldwin <jhb@FreeBSD.org>
16448
16449 * aarch64-linux-nat.c
16450 (aarch64_linux_nat_target::thread_architecture): Adjust.
16451 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16452 (task_command_1): Likewise.
16453 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16454 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16455 (aix_thread_target::store_registers)
16456 (aix_thread_target::thread_alive): Adjust.
16457 * amd64-fbsd-tdep.c: Include "inferior.h".
16458 (amd64fbsd_get_thread_local_address): Pass down target.
16459 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16460 thread's gdbarch instead of target_gdbarch.
16461 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16462 get_last_target_status.
16463 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16464 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16465 inferiors.
16466 (update_inserted_breakpoint_locations): Skip if inferiors with no
16467 execution.
16468 (update_global_location_list): When handling moribund locations,
16469 find representative inferior for location's pspace, and use thread
16470 count of its process_stratum target.
16471 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16472 * bsd-uthread.c (bsd_uthread_target::wait): Use
16473 as_process_stratum_target and adjust thread_change_ptid and
16474 add_thread calls.
16475 (bsd_uthread_target::update_thread_list): Use
16476 as_process_stratum_target and adjust find_thread_ptid,
16477 thread_change_ptid and add_thread calls.
16478 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16479 find_thread_ptid call.
16480 * corelow.c (add_to_thread_list): Adjust add_thread call.
16481 (core_target_open): Adjust add_thread_silent and thread_count
16482 calls.
16483 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16484 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16485 * event-top.c (async_disconnect): Pop targets from all inferiors.
16486 * exec.c (add_target_sections): Push exec target on all inferiors
16487 sharing the program space.
16488 (remove_target_sections): Remove the exec target from all
16489 inferiors sharing the program space.
16490 (exec_on_vfork): New.
16491 * exec.h (exec_on_vfork): Declare.
16492 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16493 Pass it down.
16494 (fbsd_nat_target::update_thread_list): Adjust.
16495 (fbsd_nat_target::resume): Adjust.
16496 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16497 down.
16498 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16499 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16500 get_thread_arch_regcache call.
16501 * fork-child.c (gdb_startup_inferior): Pass target down to
16502 startup_inferior and set_executing.
16503 * gdbthread.h (struct process_stratum_target): Forward declare.
16504 (add_thread, add_thread_silent, add_thread_with_info)
16505 (in_thread_list): Add process_stratum_target parameter.
16506 (find_thread_ptid(inferior*, ptid_t)): New overload.
16507 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16508 parameter.
16509 (all_threads()): Delete overload.
16510 (all_threads, all_non_exited_threads): Add process_stratum_target
16511 parameter.
16512 (all_threads_safe): Use brace initialization.
16513 (thread_count): Add process_stratum_target parameter.
16514 (set_resumed, set_running, set_stop_requested, set_executing)
16515 (threads_are_executing, finish_thread_state): Add
16516 process_stratum_target parameter.
16517 (switch_to_thread): Use is_current_thread.
16518 * i386-fbsd-tdep.c: Include "inferior.h".
16519 (i386fbsd_get_thread_local_address): Pass down target.
16520 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16521 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16522 have_inferiors check.
16523 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16524 (inf_ptrace_target::attach): Adjust.
16525 * infcall.c (run_inferior_call): Adjust.
16526 * infcmd.c (run_command_1): Pass target to
16527 scoped_finish_thread_state.
16528 (proceed_thread_callback): Skip inferiors with no execution.
16529 (continue_command): Rename 'all_threads' local to avoid hiding
16530 'all_threads' function. Adjust get_last_target_status call.
16531 (prepare_one_step): Adjust set_running call.
16532 (signal_command): Use user_visible_resume_target. Compare thread
16533 pointers instead of inferior_ptid.
16534 (info_program_command): Adjust to pass down target.
16535 (attach_command): Mark target's 'thread_executing' flag.
16536 (stop_current_target_threads_ns): New, factored out from ...
16537 (interrupt_target_1): ... this. Switch inferior before making
16538 target calls.
16539 * inferior-iter.h
16540 (struct all_inferiors_iterator, struct all_inferiors_range)
16541 (struct all_inferiors_safe_range)
16542 (struct all_non_exited_inferiors_range): Filter on
16543 process_stratum_target too. Remove explicit.
16544 * inferior.c (inferior::inferior): Push dummy target on target
16545 stack.
16546 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16547 Add process_stratum_target parameter, and pass it down.
16548 (have_live_inferiors): Adjust.
16549 (switch_to_inferior_and_push_target): New.
16550 (add_inferior_command, clone_inferior_command): Handle
16551 "-no-connection" parameter. Use
16552 switch_to_inferior_and_push_target.
16553 (_initialize_inferior): Mention "-no-connection" option in
16554 the help of "add-inferior" and "clone-inferior" commands.
16555 * inferior.h: Include "process-stratum-target.h".
16556 (interrupt_target_1): Use bool.
16557 (struct inferior) <push_target, unpush_target, target_is_pushed,
16558 find_target_beneath, top_target, process_target, target_at,
16559 m_stack>: New.
16560 (discard_all_inferiors): Delete.
16561 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16562 (all_inferiors, all_non_exited_inferiors): Add
16563 process_stratum_target parameter.
16564 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16565 (target_last_proc_target): New global.
16566 (follow_fork_inferior): Push target on new inferior. Pass target
16567 to add_thread_silent. Call exec_on_vfork. Handle target's
16568 reference count.
16569 (follow_fork): Adjust get_last_target_status call. Also consider
16570 target.
16571 (follow_exec): Push target on new inferior.
16572 (struct execution_control_state) <target>: New field.
16573 (user_visible_resume_target): New.
16574 (do_target_resume): Call target_async.
16575 (resume_1): Set target's threads_executing flag. Consider resume
16576 target.
16577 (commit_resume_all_targets): New.
16578 (proceed): Also consider resume target. Skip threads of inferiors
16579 with no execution. Commit resumtion in all targets.
16580 (start_remote): Pass current inferior to wait_for_inferior.
16581 (infrun_thread_stop_requested): Consider target as well. Pass
16582 thread_info pointer to clear_inline_frame_state instead of ptid.
16583 (infrun_thread_thread_exit): Consider target as well.
16584 (random_pending_event_thread): New inferior parameter. Use it.
16585 (do_target_wait): Rename to ...
16586 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16587 down.
16588 (threads_are_resumed_pending_p, do_target_wait): New.
16589 (prepare_for_detach): Adjust calls.
16590 (wait_for_inferior): New inferior parameter. Handle it. Use
16591 do_target_wait_1 instead of do_target_wait.
16592 (fetch_inferior_event): Adjust. Switch to representative
16593 inferior. Pass target down.
16594 (set_last_target_status): Add process_stratum_target parameter.
16595 Save target in global.
16596 (get_last_target_status): Add process_stratum_target parameter and
16597 handle it.
16598 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16599 (context_switch): Check inferior_ptid == null_ptid before calling
16600 inferior_thread().
16601 (get_inferior_stop_soon): Pass down target.
16602 (wait_one): Rename to ...
16603 (poll_one_curr_target): ... this.
16604 (struct wait_one_event): New.
16605 (wait_one): New.
16606 (stop_all_threads): Adjust.
16607 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16608 event's target.
16609 (switch_back_to_stepped_thread): Also consider target.
16610 (print_stop_event): Update.
16611 (normal_stop): Update. Also consider the resume target.
16612 * infrun.h (wait_for_inferior): Remove declaration.
16613 (user_visible_resume_target): New declaration.
16614 (get_last_target_status, set_last_target_status): New
16615 process_stratum_target parameter.
16616 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16617 process_stratum_target parameter, and use it.
16618 (clear_inline_frame_state (thread_info*)): New.
16619 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16620 process_stratum_target parameter.
16621 (clear_inline_frame_state (thread_info*)): Declare.
16622 * linux-fork.c (delete_checkpoint_command): Pass target down to
16623 find_thread_ptid.
16624 (checkpoint_command): Adjust.
16625 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16626 instead of just tweaking inferior_ptid.
16627 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16628 (exit_lwp): Pass target down to find_thread_ptid.
16629 (attach_proc_task_lwp_callback): Pass target down to
16630 add_thread/set_running/set_executing.
16631 (linux_nat_target::attach): Pass target down to
16632 thread_change_ptid.
16633 (get_detach_signal): Pass target down to find_thread_ptid.
16634 Consider last target status's target.
16635 (linux_resume_one_lwp_throw, resume_lwp)
16636 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16637 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16638 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16639 (linux_nat_target::async_wait_fd): New.
16640 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16641 target down.
16642 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16643 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16644 * linux-thread-db.c (struct thread_db_info::process_target): New
16645 field.
16646 (add_thread_db_info): Save target.
16647 (get_thread_db_info): New process_stratum_target parameter. Also
16648 match target.
16649 (delete_thread_db_info): New process_stratum_target parameter.
16650 Also match target.
16651 (thread_from_lwp): Adjust to pass down target.
16652 (thread_db_notice_clone): Pass down target.
16653 (check_thread_db_callback): Pass down target.
16654 (try_thread_db_load_1): Always push the thread_db target.
16655 (try_thread_db_load, record_thread): Pass target down.
16656 (thread_db_target::detach): Pass target down. Always unpush the
16657 thread_db target.
16658 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16659 target down. Always unpush the thread_db target.
16660 (find_new_threads_callback, thread_db_find_new_threads_2)
16661 (thread_db_target::update_thread_list): Pass target down.
16662 (thread_db_target::pid_to_str): Pass current inferior down.
16663 (thread_db_target::get_thread_local_address): Pass target down.
16664 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16665 target down.
16666 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16667 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16668 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16669 (procfs_init_inferior): Rename to ...
16670 (procfs_target::procfs_init_inferior): ... this and adjust.
16671 (procfs_target::create_inferior, procfs_notice_thread)
16672 (procfs_do_thread_registers): Adjust.
16673 * ppc-fbsd-tdep.c: Include "inferior.h".
16674 (ppcfbsd_get_thread_local_address): Pass down target.
16675 * proc-service.c (ps_xfer_memory): Switch current inferior and
16676 program space as well.
16677 (get_ps_regcache): Pass target down.
16678 * process-stratum-target.c
16679 (process_stratum_target::thread_address_space)
16680 (process_stratum_target::thread_architecture): Pass target down.
16681 * process-stratum-target.h
16682 (process_stratum_target::threads_executing): New field.
16683 (as_process_stratum_target): New.
16684 * ravenscar-thread.c
16685 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16686 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16687 down.
16688 * record-btrace.c (record_btrace_target::info_record): Adjust.
16689 (record_btrace_target::record_method)
16690 (record_btrace_target::record_is_replaying)
16691 (record_btrace_target::fetch_registers)
16692 (get_thread_current_frame_id, record_btrace_target::resume)
16693 (record_btrace_target::wait, record_btrace_target::stop): Pass
16694 target down.
16695 * record-full.c (record_full_wait_1): Switch to event thread.
16696 Pass target down.
16697 * regcache.c (regcache::regcache)
16698 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16699 process_stratum_target parameter and handle it.
16700 (current_thread_target): New global.
16701 (get_thread_regcache): Add process_stratum_target parameter and
16702 handle it. Switch inferior before calling target method.
16703 (get_thread_regcache): Pass target down.
16704 (get_thread_regcache_for_ptid): Pass target down.
16705 (registers_changed_ptid): Add process_stratum_target parameter and
16706 handle it.
16707 (registers_changed_thread, registers_changed): Pass target down.
16708 (test_get_thread_arch_aspace_regcache): New.
16709 (current_regcache_test): Define a couple local test_target_ops
16710 instances and use them for testing.
16711 (readwrite_regcache): Pass process_stratum_target parameter.
16712 (cooked_read_test, cooked_write_test): Pass mock_target down.
16713 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16714 (get_thread_arch_aspace_regcache): Add process_stratum_target
16715 parameter.
16716 (regcache::target): New method.
16717 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16718 (regcache::registers_changed_ptid): Add process_stratum_target
16719 parameter.
16720 (regcache::m_target): New field.
16721 (registers_changed_ptid): Add process_stratum_target parameter.
16722 * remote.c (remote_state::supports_vCont_probed): New field.
16723 (remote_target::async_wait_fd): New method.
16724 (remote_unpush_and_throw): Add remote_target parameter.
16725 (get_current_remote_target): Adjust.
16726 (remote_target::remote_add_inferior): Push target.
16727 (remote_target::remote_add_thread)
16728 (remote_target::remote_notice_new_inferior)
16729 (get_remote_thread_info): Pass target down.
16730 (remote_target::update_thread_list): Skip threads of inferiors
16731 bound to other targets. (remote_target::close): Don't discard
16732 inferiors. (remote_target::add_current_inferior_and_thread)
16733 (remote_target::process_initial_stop_replies)
16734 (remote_target::start_remote)
16735 (remote_target::remote_serial_quit_handler): Pass down target.
16736 (remote_target::remote_unpush_target): New remote_target
16737 parameter. Unpush the target from all inferiors.
16738 (remote_target::remote_unpush_and_throw): New remote_target
16739 parameter. Pass it down.
16740 (remote_target::open_1): Check whether the current inferior has
16741 execution instead of checking whether any inferior is live. Pass
16742 target down.
16743 (remote_target::remote_detach_1): Pass down target. Use
16744 remote_unpush_target.
16745 (extended_remote_target::attach): Pass down target.
16746 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16747 (remote_target::append_resumption): Pass down target.
16748 (remote_target::append_pending_thread_resumptions)
16749 (remote_target::remote_resume_with_hc, remote_target::resume)
16750 (remote_target::commit_resume): Pass down target.
16751 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16752 (remote_target::interrupt_query)
16753 (remote_target::remove_new_fork_children)
16754 (remote_target::check_pending_events_prevent_wildcard_vcont)
16755 (remote_target::remote_parse_stop_reply)
16756 (remote_target::process_stop_reply): Pass down target.
16757 (first_remote_resumed_thread): New remote_target parameter. Pass
16758 it down.
16759 (remote_target::wait_as): Pass down target.
16760 (unpush_and_perror): New remote_target parameter. Pass it down.
16761 (remote_target::readchar, remote_target::remote_serial_write)
16762 (remote_target::getpkt_or_notif_sane_1)
16763 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16764 down target.
16765 (remote_target::mourn_inferior): Pass down target. Use
16766 remote_unpush_target.
16767 (remote_target::core_of_thread)
16768 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16769 (remote_target::pid_to_exec_file)
16770 (remote_target::thread_handle_to_thread_info): Pass down target.
16771 (remote_target::async_wait_fd): New.
16772 * riscv-fbsd-tdep.c: Include "inferior.h".
16773 (riscv_fbsd_get_thread_local_address): Pass down target.
16774 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16775 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16776 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16777 Adjust.
16778 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16779 * solib-svr4.c (enable_break): Pass down target.
16780 * spu-multiarch.c (parse_spufs_run): Pass down target.
16781 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16782 * target-delegates.c: Regenerate.
16783 * target.c (g_target_stack): Delete.
16784 (current_top_target): Return the current inferior's top target.
16785 (target_has_execution_1): Refer to the passed-in inferior's top
16786 target.
16787 (target_supports_terminal_ours): Check whether the initial
16788 inferior was already created.
16789 (decref_target): New.
16790 (target_stack::push): Incref/decref the target.
16791 (push_target, push_target, unpush_target): Adjust.
16792 (target_stack::unpush): Defref target.
16793 (target_is_pushed): Return bool. Adjust to refer to the current
16794 inferior's target stack.
16795 (dispose_inferior): Delete, and inline parts ...
16796 (target_preopen): ... here. Only dispose of the current inferior.
16797 (target_detach): Hold strong target reference while detaching.
16798 Pass target down.
16799 (target_thread_name): Add assertion.
16800 (target_resume): Pass down target.
16801 (target_ops::beneath, find_target_at): Adjust to refer to the
16802 current inferior's target stack.
16803 (get_dummy_target): New.
16804 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16805 has a thread running.
16806 (initialize_targets): Rename to ...
16807 (_initialize_target): ... this.
16808 * target.h: Include "gdbsupport/refcounted-object.h".
16809 (struct target_ops): Inherit refcounted_object.
16810 (target_ops::shortname, target_ops::longname): Make const.
16811 (target_ops::async_wait_fd): New method.
16812 (decref_target): Declare.
16813 (struct target_ops_ref_policy): New.
16814 (target_ops_ref): New typedef.
16815 (get_dummy_target): Declare function.
16816 (target_is_pushed): Return bool.
16817 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16818 (all_matching_threads_iterator::all_matching_threads_iterator):
16819 Handle filter target.
16820 * thread-iter.h (struct all_matching_threads_iterator, struct
16821 all_matching_threads_range, class all_non_exited_threads_range):
16822 Filter by target too. Remove explicit.
16823 * thread.c (threads_executing): Delete.
16824 (inferior_thread): Pass down current inferior.
16825 (clear_thread_inferior_resources): Pass down thread pointer
16826 instead of ptid_t.
16827 (add_thread_silent, add_thread_with_info, add_thread): Add
16828 process_stratum_target parameter. Use it for thread and inferior
16829 searches.
16830 (is_current_thread): New.
16831 (thread_info::deletable): Use it.
16832 (find_thread_ptid, thread_count, in_thread_list)
16833 (thread_change_ptid, set_resumed, set_running): New
16834 process_stratum_target parameter. Pass it down.
16835 (set_executing): New process_stratum_target parameter. Pass it
16836 down. Adjust reference to 'threads_executing'.
16837 (threads_are_executing): New process_stratum_target parameter.
16838 Adjust reference to 'threads_executing'.
16839 (set_stop_requested, finish_thread_state): New
16840 process_stratum_target parameter. Pass it down.
16841 (switch_to_thread): Also match inferior.
16842 (switch_to_thread): New process_stratum_target parameter. Pass it
16843 down.
16844 (update_threads_executing): Reimplement.
16845 * top.c (quit_force): Pop targets from all inferior.
16846 (gdb_init): Don't call initialize_targets.
16847 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16848 Declare.
16849 (windows_add_thread, windows_delete_thread): Adjust.
16850 (get_windows_debug_event): Rename to ...
16851 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16852 * tracefile-tfile.c (tfile_target_open): Pass down target.
16853 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16854 Forward declare.
16855 (switch_to_thread): Add process_stratum_target parameter.
16856 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16857 parameter. Use it.
16858 (mi_on_resume): Pass target down.
16859 * nat/fork-inferior.c (startup_inferior): Add
16860 process_stratum_target parameter. Pass it down.
16861 * nat/fork-inferior.h (startup_inferior): Add
16862 process_stratum_target parameter.
16863 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16864
16865 2020-01-10 Pedro Alves <palves@redhat.com>
16866
16867 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16868 directly. Instead find the first thread in the thread list and
16869 use switch_to_thread.
16870
16871 2020-01-10 Pedro Alves <palves@redhat.com>
16872
16873 * remote.c (remote_target::remote_add_inferior): Don't bind a
16874 process to the current inferior if the current inferior is already
16875 bound to a process.
16876
16877 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16878 Pedro Alves <palves@redhat.com>
16879
16880 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16881 If no process is specified, return null_ptid instead of
16882 inferior_ptid.
16883 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16884 TARGET_WAITKIND_SIGNALLED with no pid.
16885
16886 2020-01-10 Pedro Alves <palves@redhat.com>
16887
16888 * remote.c (first_remote_resumed_thread): New.
16889 (remote_target::wait_as): Use it as default event_ptid instead of
16890 inferior_ptid.
16891
16892 2020-01-10 Pedro Alves <palves@redhat.com>
16893
16894 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16895
16896 2020-01-10 Pedro Alves <palves@redhat.com>
16897
16898 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16899 not -1.
16900
16901 2020-01-10 Pedro Alves <palves@redhat.com>
16902
16903 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16904 ptid to get_last_target_status.
16905 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16906 ptid to get_last_target_status.
16907 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16908 get_last_target_status.
16909 (info_program_command): Don't pass a target_waitstatus to
16910 get_last_target_status.
16911 * infrun.c (init_wait_for_inferior): Use
16912 nullify_last_target_wait_ptid.
16913 (get_last_target_status): Handle nullptr arguments.
16914 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16915 (print_stop_event): Don't pass a ptid to get_last_target_status.
16916 (normal_stop): Don't pass a ptid to get_last_target_status.
16917 * infrun.h (get_last_target_status, set_last_target_status): Move
16918 comments here and update.
16919 (nullify_last_target_wait_ptid): Declare.
16920 * linux-fork.c (fork_load_infrun_state): Remove local extern
16921 declaration of nullify_last_target_wait_ptid.
16922 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16923 to get_last_target_status.
16924
16925 2020-01-10 Pedro Alves <palves@redhat.com>
16926
16927 * gdbthread.h (scoped_restore_current_thread)
16928 <dont_restore, restore, m_dont_restore>: Declare.
16929 * thread.c (thread_alive): Add assertion. Return bool.
16930 (switch_to_thread_if_alive): New.
16931 (prune_threads): Switch inferior/thread.
16932 (print_thread_info_1): Switch thread before calling target methods.
16933 (scoped_restore_current_thread::restore): New, factored out from
16934 ...
16935 (scoped_restore_current_thread::~scoped_restore_current_thread):
16936 ... this.
16937 (scoped_restore_current_thread::scoped_restore_current_thread):
16938 Add assertion.
16939 (thread_apply_all_command, thread_select): Use
16940 switch_to_thread_if_alive.
16941 * infrun.c (proceed, restart_threads, handle_signal_stop)
16942 (switch_back_to_stepped_thread): Switch current thread before
16943 calling target methods.
16944
16945 2020-01-10 Pedro Alves <palves@redhat.com>
16946
16947 * inferior.c (switch_to_inferior_no_thread): New function,
16948 factored out from ...
16949 (inferior_command): ... here.
16950 * inferior.h (switch_to_inferior_no_thread): Declare.
16951 * mi/mi-main.c (run_one_inferior): Use
16952 switch_to_inferior_no_thread.
16953
16954 2020-01-10 Pedro Alves <palves@redhat.com>
16955
16956 * infcmd.c (kill_command): Remove dead code.
16957
16958 2020-01-10 Pedro Alves <palves@redhat.com>
16959
16960 * remote.c (remote_target::mourn_inferior): No longer check
16961 whether the target is running.
16962
16963 2020-01-10 Pedro Alves <palves@redhat.com>
16964
16965 * corelow.c (core_target::has_execution): Change parameter type to
16966 inferior pointer.
16967 * inferior.c (number_of_live_inferiors): Use
16968 inferior::has_execution instead of target_has_execution_1.
16969 * inferior.h (inferior::has_execution): New.
16970 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16971 inferior::has_execution instead of target_has_execution_1.
16972 * process-stratum-target.c
16973 (process_stratum_target::has_execution): Change parameter type to
16974 inferior pointer. Check the inferior's PID instead of
16975 inferior_ptid.
16976 * process-stratum-target.h
16977 (process_stratum_target::has_execution): Change parameter type to
16978 inferior pointer.
16979 * record-full.c (record_full_core_target::has_execution): Change
16980 parameter type to inferior pointer.
16981 * target.c (target_has_execution_1): Change parameter type to
16982 inferior pointer.
16983 (target_has_execution_current): Adjust.
16984 * target.h (target_ops::has_execution): Change parameter type to
16985 inferior pointer.
16986 (target_has_execution_1): Change parameter type to inferior
16987 pointer. Change return type to bool.
16988 * tracefile.h (tracefile_target::has_execution): Change parameter
16989 type to inferior pointer.
16990
16991 2020-01-10 Pedro Alves <palves@redhat.com>
16992
16993 * exceptions.c (print_flush): Remove current_top_target() check.
16994
16995 2020-01-10 Pedro Alves <palves@redhat.com>
16996
16997 * remote.c (show_remote_exec_file): Show the current inferior's
16998 exec-file instead of the command variable's value.
16999
17000 2020-01-10 Pedro Alves <palves@redhat.com>
17001
17002 * record-full.c (record_full_resume_ptid): New global.
17003 (record_full_target::resume): Set it.
17004 (record_full_wait_1): Use record_full_resume_ptid instead of
17005 inferior_ptid.
17006
17007 2020-01-10 Pedro Alves <palves@redhat.com>
17008
17009 * gdbthread.h (scoped_restore_current_thread)
17010 <dont_restore, restore, m_dont_restore>: Declare.
17011 * thread.c (thread_alive): Add assertion. Return bool.
17012 (switch_to_thread_if_alive): New.
17013 (prune_threads): Switch inferior/thread.
17014 (print_thread_info_1): Switch thread before calling target methods.
17015 (scoped_restore_current_thread::restore): New, factored out from
17016 ...
17017 (scoped_restore_current_thread::~scoped_restore_current_thread):
17018 ... this.
17019 (scoped_restore_current_thread::scoped_restore_current_thread):
17020 Add assertion.
17021 (thread_apply_all_command, thread_select): Use
17022 switch_to_thread_if_alive.
17023
17024 2020-01-10 George Barrett <bob@bob131.so>
17025
17026 * stap-probe.c (stap_modify_semaphore): Don't check for null
17027 semaphores.
17028 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17029 for null semaphores.
17030
17031 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17032
17033 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17034 all source windows, and maintain horizontal scroll status while
17035 doing so.
17036
17037 2020-01-09 Tom Tromey <tom@tromey.com>
17038
17039 PR tui/18932:
17040 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17041 update_source_window, not print_source_lines.
17042
17043 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17044
17045 * tui/tui.c (tui_enable): Register tui hooks after calling
17046 tui_display_main.
17047
17048 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17049
17050 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17051
17052 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17053
17054 * thread.c (print_thread_info_1): Fix indentation.
17055
17056 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17057
17058 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17059 unique_xmalloc_ptr outside the if to always free the demangled name.
17060
17061 2020-01-08 Tom Tromey <tromey@adacore.com>
17062
17063 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17064 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17065 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17066 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17067 Remove.
17068 (section_offsets): New typedef.
17069 * symtab.c (fixup_section, get_msymbol_address): Update.
17070 * symmisc.c (dump_msymbols): Update.
17071 * symfile.h (relative_addr_info_to_section_offsets)
17072 (symfile_map_offsets_to_segments): Update.
17073 * symfile.c (build_section_addr_info_from_objfile)
17074 (init_objfile_sect_indices): Update.
17075 (struct place_section_arg): Change type of "offsets".
17076 (place_section): Update.
17077 (relative_addr_info_to_section_offsets): Change type of
17078 "section_offsets". Remove "num_sections" parameter.
17079 (default_symfile_offsets, syms_from_objfile_1)
17080 (set_objfile_default_section_offset): Update.
17081 (reread_symbols): No need to preserve section offsets by hand.
17082 (symfile_map_offsets_to_segments): Change type of "offsets".
17083 * stap-probe.c (relocate_address): Update.
17084 * stabsread.h (process_one_symbol): Update.
17085 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17086 (solib_target_relocate_section_addresses): Update.
17087 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17088 Update.
17089 * solib-frv.c (frv_relocate_main_executable): Update.
17090 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17091 * solib-aix.c (solib_aix_get_section_offsets): Change return
17092 type.
17093 (solib_aix_solib_create_inferior_hook): Update.
17094 * remote.c (remote_target::get_offsets): Update.
17095 * psymtab.c (find_pc_sect_psymtab): Update.
17096 * psympriv.h (struct partial_symbol) <address, text_low,
17097 text_high>: Update.
17098 * objfiles.h (obj_section_offset): Update.
17099 (struct objfile) <section_offsets>: Change type.
17100 <num_sections>: Remove.
17101 (objfile_relocate): Update.
17102 * objfiles.c (entry_point_address_query): Update
17103 (relocate_one_symbol): Change type of "section_offsets".
17104 (objfile_relocate1, objfile_relocate1): Change type of
17105 "new_offsets".
17106 (objfile_rebase1): Update.
17107 * mipsread.c (mipscoff_symfile_read): Update.
17108 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17109 parameter.
17110 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17111 (parse_external, psymtab_to_symtab_1): Update.
17112 * machoread.c (macho_symfile_offsets): Update.
17113 * ia64-tdep.c (ia64_find_unwind_table): Update.
17114 * hppa-tdep.c (read_unwind_info): Update.
17115 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17116 * dwarf2read.c (create_addrmap_from_index)
17117 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17118 (process_psymtab_comp_unit_reader, add_partial_symbol)
17119 (add_partial_subprogram, process_full_comp_unit)
17120 (read_file_scope, read_func_scope, read_lexical_block_scope)
17121 (read_call_site_scope, dwarf2_rnglists_process)
17122 (dwarf2_ranges_process, dwarf2_ranges_read)
17123 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17124 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17125 Update.
17126 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17127 Update.
17128 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17129 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17130 (process_one_symbol): Change type of "section_offsets".
17131 * ctfread.c (get_objfile_text_range): Update.
17132 * coffread.c (coff_symtab_read, enter_linenos)
17133 (process_coff_symbol): Update.
17134 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17135 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17136
17137 2020-01-08 Tom Tromey <tromey@adacore.com>
17138
17139 * dwarf2read.c (parse_macro_definition): Use std::string.
17140 (parse_macro_definition): Likewise.
17141
17142 2020-01-08 Tom Tromey <tromey@adacore.com>
17143
17144 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17145 (ATTR_ALLOC_CHUNK): Remove.
17146
17147 2020-01-08 Tom Tromey <tromey@adacore.com>
17148
17149 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17150
17151 2020-01-08 Tom Tromey <tromey@adacore.com>
17152
17153 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17154 (dwarf2_compute_name, open_dwo_file): Likewise.
17155 (process_enumeration_scope): Use std::vector.
17156 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17157 (partial_die_info::fixup, dwarf2_start_subfile)
17158 (guess_full_die_structure_name, dwarf2_name): Likewise.
17159 (determine_prefix): Update.
17160 (guess_full_die_structure_name): Make return type const.
17161 (partial_die_full_name): Return unique_xmalloc_ptr.
17162 (DW_FIELD_ALLOC_CHUNK): Remove.
17163
17164 2020-01-07 Tom Tromey <tromey@adacore.com>
17165
17166 PR build/24937:
17167 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17168
17169 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17170
17171 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17172
17173 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17174
17175 * stack.c (print_frame_info): Move disassemble_next_line code
17176 inside source_print block.
17177
17178 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17179
17180 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17181 gdb/signals.h, as we are now using native signal symbols.
17182
17183 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17184
17185 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17186 overflow by an early check of content vs threshold.
17187 * tui/tui-source.c (tui_source_window::line_is_displayed):
17188 Likewise.
17189
17190 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17191
17192 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17193
17194 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17195
17196 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17197 export table if no section contains it's RVA.
17198
17199 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17200
17201 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17202
17203 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17204
17205 * source.c (print_source_lines_base): Set last_line_listed.
17206
17207 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17208
17209 * tui/tui-disasm.c: Remove trailing spaces.
17210
17211 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17212 Pedro Alves <palves@redhat.com>
17213
17214 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17215 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17216 (windows_gdb_signal_to_target): New function, uses the above
17217 enumeration to convert GDB internal signal codes to equivalent
17218 Windows codes.
17219 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17220 * windows-nat.c: Include "gdb_wait.h".
17221 (get_windows_debug_event): Extract the fatal exception from the
17222 exit status and convert to the equivalent Posix signal number.
17223 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17224 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17225 * gdbsupport/gdb_wait.c: New file, implements
17226 windows_status_to_termsig.
17227 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17228 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17229
17230 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17231
17232 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17233 show_layout.
17234
17235 2020-01-05 Luis Machado <luis.machado@linaro.org>
17236
17237 * aarch64-linux-nat.c
17238 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17239 and bfd_mach_aarch64.
17240
17241 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17242
17243 * ui-file.c (stdio_file::can_emit_style_escape)
17244 (tee_file::can_emit_style_escape): Ensure style is used also on
17245 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17246 to gdb_stdout.
17247 * main.c (set_gdb_data_directory): Use file style to output the
17248 warning that the given pathname is not a directory.
17249 * top.c (show_history_filename, gdb_safe_append_history)
17250 (show_gdb_datadir): Use file style.
17251
17252 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17253
17254 * solib-target.c (struct lm_info_target):
17255 Change offsets to be a unique_xmalloc_ptr.
17256 (solib_target_relocate_section_addresses): Update.
17257
17258 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17259
17260 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17261
17262 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17263
17264 * MAINTAINERS (Write After Approval): Add myself.
17265
17266 2020-01-02 Luis Machado <luis.machado@linaro.org>
17267
17268 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17269 Cell BE architecture.
17270 * target.h (struct target_ops) <thread_architecture>: Likewise.
17271
17272 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17273
17274 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17275
17276 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17277
17278 * MAINTAINERS (Write After Approval): Add myself.
17279
17280 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17281
17282 * gdbarch.sh: Update copyright year range of generated files.
17283
17284 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17285
17286 Update copyright year range in all GDB files.
17287
17288 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17289
17290 * copyright.py: Convert to Python 3.
17291
17292 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17293
17294 * copyright.py: Adapt after move of gnulib directory from gdb
17295 directory to toplevel directory.
17296
17297 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17298
17299 * copyright.py (main): Exit if run from the wrong directory.
17300
17301 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17302
17303 * top.c (print_gdb_version): Change copyright year to 2020.
17304
17305 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17306
17307 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17308
17309 For older changes see ChangeLog-2019.
17310 \f
17311 Local Variables:
17312 mode: change-log
17313 left-margin: 8
17314 fill-column: 74
17315 version-control: never
17316 coding: utf-8
17317 End:
This page took 0.358272 seconds and 5 git commands to generate.