[gdb] Don't return non-existing path in debuginfod_source_query
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-30 Tom de Vries <tdevries@suse.de>
2
3 * debuginfod-support.c (debuginfod_source_query)
4 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
5
6 2020-11-30 Tom Tromey <tom@tromey.com>
7
8 * rust-lang.c (rust_op_name): Remove.
9 (exp_descriptor_rust): Update.
10 * parser-defs.h (op_name_standard): Don't declare.
11 (struct exp_descriptor) <op_name>: Remove.
12 * parse.c (exp_descriptor_standard): Update.
13 * opencl-lang.c (exp_descriptor_opencl): Update.
14 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
15 * f-lang.c (op_name_f): Remove.
16 (f_language::exp_descriptor_tab): Update.
17 * expression.h (op_name): Update.
18 * expprint.c (op_name): Rewrite.
19 (op_name_standard): Remove.
20 (dump_raw_expression, dump_subexp): Update.
21 * c-lang.c (exp_descriptor_c): Update.
22 * ax-gdb.c (gen_expr): Update.
23 * ada-lang.c (ada_op_name): Remove.
24 (ada_exp_descriptor): Update.
25
26 2020-11-30 Tom Tromey <tom@tromey.com>
27
28 * eval.c (init_array_element): Remove.
29 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
30
31 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
32
33 PR tui/26973
34 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
35 static locator win info.
36
37 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
38
39 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
40 program.
41
42 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
45 is always initialized.
46
47 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
48
49 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
50 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
51
52 2020-11-25 Tom Tromey <tom@tromey.com>
53
54 * eval.c (evaluate_subexp_standard): Remove unnecessary
55 variables.
56
57 2020-11-25 Tom Tromey <tom@tromey.com>
58
59 * d-lang.c: Include parser-defs.h.
60 * rust-lang.c: Include parser-defs.h.
61 * c-lang.h: Do not include parser-defs.h.
62
63 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * regcache.h (struct cached_reg): Remove typedef.
66
67 2020-11-24 Joel Brobecker <brobecker@adacore.com>
68
69 * README: Fix the URL of the MPFR library.
70
71 2020-11-24 Joel Brobecker <brobecker@adacore.com>
72
73 * README: Document the --with-libgmp-prefix configure option.
74
75 2020-11-24 Joel Brobecker <brobecker@adacore.com>
76
77 * NEWS: Add entry documenting support for DWARF-based fixed
78 point types.
79
80 2020-11-24 Joel Brobecker <brobecker@adacore.com>
81
82 * NEWS: Document that building GDB now requires GMP.
83
84 2020-11-24 Joel Brobecker <brobecker@adacore.com>
85
86 * typeprint.c (print_type_scalar): Add handling of
87 TYPE_CODE_FIXED_POINT.
88
89 2020-11-24 Joel Brobecker <brobecker@adacore.com>
90
91 * valarith.c (fixed_point_binop): Replace the
92 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
93 users accordingly.
94
95 2020-11-24 Joel Brobecker <brobecker@adacore.com>
96
97 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
98 replacing fixed_point_scaling_factor. All callers updated
99 throughout this project.
100 (fixed_point_scaling_factor): Delete declaration.
101 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
102 fixed_point_scaling_factor. Adjust implementation accordingly.
103
104 2020-11-24 Joel Brobecker <brobecker@adacore.com>
105
106 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
107 replacing the fixed_point_type_base_type function. All callers
108 updated throughout this project.
109 (fixed_point_type_base_type): Remove declaration.
110 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
111 fixed_point_type_base_type. Adjust implementation accordingly.
112
113 2020-11-24 Joel Brobecker <brobecker@adacore.com>
114
115 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
116 New methods.
117 (INIT_FIXED_POINT_SPECIFIC): Adjust.
118 (TYPE_FIXED_POINT_INFO): Delete macro.
119 (allocate_fixed_point_type_info): Change return type to void.
120 * gdbtypes.c (copy_type_recursive): Replace the use of
121 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
122 (fixed_point_scaling_factor): Likewise.
123 (allocate_fixed_point_type_info): Change return type to void.
124 Adjust implementation accordingly.
125 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
126 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
127
128 2020-11-24 Joel Brobecker <brobecker@adacore.com>
129
130 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
131 into one single gdb::array_view parameter.
132 (gdb_mpz::write): Likewise.
133 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
134 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
135 into one single gdb::array_view parameter.
136 Adjust implementation accordingly.
137 (gdb_mpz::write): Likewise.
138 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
139 * unittests/gmp-utils-selftests.c: Adapt following changes above.
140 * valarith.c, valops.c, valprint.c, value.c: Likewise.
141
142 2020-11-24 Joel Brobecker <brobecker@adacore.com>
143
144 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
145 Change return type to std::string. Update all callers.
146 * gmp-utils.c (gmp_string_printf): Likewise.
147
148 2020-11-24 Joel Brobecker <brobecker@adacore.com>
149
150 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
151 instead of mpq_set_ui to initialize our GMP rational.
152
153 2020-11-23 Tom de Vries <tdevries@suse.de>
154
155 * debuginfod-support.c (debuginfod_source_query)
156 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
157
158 2020-11-21 Tom Tromey <tom@tromey.com>
159
160 * breakpoint.c (watchpoint_exp_is_const): Return bool.
161
162 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
165 Pass 2.0 to pow.
166 (gdb_mpz_write_all_from_small): Likewise.
167
168 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
171 of abs.
172
173 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
174
175 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
176 ctf_arc_open_by_name.
177
178 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
179
180 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
181 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
182
183 2020-11-20 Pedro Alves <pedro@palves.net>
184
185 * language.c (language_arch_info::lookup_primitive_type): Use
186 gdb::function_view instead of gdb::function.
187 (template language_lookup_primitive_type): Rename to ...
188 (language_lookup_primitive_type_1): ... this, and make static.
189 (language_lookup_primitive_type(const struct language_defn *,
190 struct gdbarch *, const char *): Make non-template.
191 (language_lookup_primitive_type(const struct language_defn *,
192 struct gdbarch *, std::function<bool (struct type *)>): Make
193 non-template and use gdb::function_view.
194 * language.h (language_arch_info::lookup_primitive_type): Use
195 gdb::function_view instead of std::function.
196 (language_lookup_primitive_type): No longer template.
197 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
198 lambda instead of a std::function.
199
200 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
201
202 PR tdep/26916
203 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
204 and STOCFH.
205
206 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
209
210 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
213 in `loop_cb` parameter.
214 * gdbarch.c: Re-generate.
215 * gdbarch.h: Re-generate.
216 * arch-utils.c (default_read_core_file_mappings): Remove `other`
217 parameter.
218 * arch-utils.h (default_read_core_file_mappings): Likewise.
219 * corelow.c (core_target::build_file_mappings): Likewise.
220 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
221 (linux_core_info_proc_mappings): Likewise.
222
223 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
226 * NEWS: Mention new options.
227 * f-array-walker.h: New file.
228 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
229 (repack_array_slices): New static global.
230 (show_repack_array_slices): New function.
231 (fortran_array_slicing_debug): New static global.
232 (show_fortran_array_slicing_debug): New function.
233 (value_f90_subarray): Delete.
234 (skip_undetermined_arglist): Delete.
235 (class fortran_array_repacker_base_impl): New class.
236 (class fortran_lazy_array_repacker_impl): New class.
237 (class fortran_array_repacker_impl): New class.
238 (fortran_value_subarray): Complete rewrite.
239 (set_fortran_list): New static global.
240 (show_fortran_list): Likewise.
241 (_initialize_f_language): Register new commands.
242 (fortran_adjust_dynamic_array_base_address_hack): New function.
243 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
244 Declare.
245 * f-valprint.c: Include 'f-array-walker.h'.
246 (class fortran_array_printer_impl): New class.
247 (f77_print_array_1): Delete.
248 (f77_print_array): Delete.
249 (fortran_print_array): New.
250 (f_value_print_inner): Update to call fortran_print_array.
251 * gdbtypes.c: Include 'f-lang.h'.
252 (resolve_dynamic_type_internal): Call
253 fortran_adjust_dynamic_array_base_address_hack.
254
255 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * breakpoint.c (struct watch_options): New struct.
258 (watch_option_defs): New static global.
259 (make_watch_options_def_group): New function.
260 (watch_maybe_just_location): Convert option parsing.
261 (watch_command_completer): New function.
262 (_initialize_breakpoint): Build help text using options mechanism.
263
264 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
267 (watch_command_1): Update parameter types. Convert locals to
268 bool.
269 (watch_command_wrapper): Change parameter type.
270 (watch_maybe_just_location): Change locals to bool.
271 (rwatch_command_wrapper): Update parameter type.
272 (awatch_command_wrapper): Update parameter type.
273 * breakpoint.h (watch_command_wrapper): Change parameter type.
274 (rwatch_command_wrapper): Update parameter type.
275 (awatch_command_wrapper): Update parameter type.
276 * eval.c (fetch_subexp_value): Change parameter type.
277 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
278 'false' not '0'.
279 * value.h (fetch_subexp_value): Change parameter type in
280 declaration.
281
282 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
285 skip_spaces.
286
287 2020-11-18 Keith Seitz <keiths@redhat.com>
288
289 * linux-tdep.c (dump_note_entry_p): Return true instead of
290 checking `filename'.
291
292 2020-11-18 Tom de Vries <tdevries@suse.de>
293
294 * debuginfod-support.c (debuginfod_source_query)
295 (debuginfod_debuginfo_query): Also do early exit if
296 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
297
298 2020-11-18 Tom de Vries <tdevries@suse.de>
299
300 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
301 warning.
302
303 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * gdbtypes.h (get_array_bounds): Return bool, adjust some
306 callers. Move doc here.
307 * gdbtypes.c (get_array_bounds): Return bool
308
309 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
312 assert.
313 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
314 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
315 case to the default.
316
317 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * printcmd.c: Include 'safe-ctype.c'.
320 (skip_over_slash_fmt): New function.
321 (print_command_completer): Call skip_over_slash_fmt.
322 (display_and_x_command_completer): New function.
323 (_initialize_printcmd): Add command completion for 'x' and
324 'display'.
325
326 2020-11-16 Pedro Alves <pedro@palves.net>
327
328 * frame.c (get_prev_frame): Move get_frame_id call from here ...
329 (get_prev_frame_always_1): ... to here.
330 * inline-frame.c (inline_frame_this_id): Mention
331 get_prev_frame_always_1 in comment.
332
333 2020-11-15 Joel Brobecker <brobecker@adacore.com>
334
335 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
336 handling.
337 (value_less): Add fixed-point handling.
338
339 2020-11-15 Joel Brobecker <brobecker@adacore.com>
340
341 * eval.c (binop_promote): Add fixed-point type handling.
342 * valarith.c (fixed_point_binop): New function.
343 (scalar_binop): Add fixed-point type handling.
344 (value_neg): Add fixed-point type handling.
345 * valops.c (value_cast_to_fixed_point): New function.
346 (value_cast): Add fixed-point type handling.
347
348 2020-11-15 Joel Brobecker <brobecker@adacore.com>
349
350 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
351 range types.
352 * c-typeprint.c (c_type_print_varspec_prefix)
353 (c_type_print_varspec_suffix, c_type_print_base_1): Add
354 TYPE_CODE_FIXED_POINT handling.
355 * p-typeprint.c (pascal_type_print_varspec_prefix)
356 (pascal_type_print_varspec_suffix): Likewise.
357 * typeprint.c (print_type_fixed_point): New function.
358 * typeprint.h (print_type_fixed_point): Add declaration.
359
360 2020-11-15 Joel Brobecker <brobecker@adacore.com>
361
362 * printcmd.c (print_scalar_formatted): Add fixed-point type
363 handling when options->format is set.
364
365 2020-11-15 Joel Brobecker <brobecker@adacore.com>
366
367 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
368 * dwarf2/read.c (get_dwarf2_rational_constant)
369 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
370 (has_zero_over_zero_small_attribute): New functions.
371 read_base_type, set_die_type): Add fixed-point type handling.
372 * gdb-gdb.py.in: Add fixed-point type handling.
373 * gdbtypes.c: #include "gmp-utils.h".
374 (create_range_type, set_type_code): Add fixed-point type handling.
375 (init_fixed_point_type): New function.
376 (is_integral_type, is_scalar_type): Add fixed-point type handling.
377 (print_fixed_point_type_info): New function.
378 (recursive_dump_type, copy_type_recursive): Add fixed-point type
379 handling.
380 (fixed_point_type_storage): New typedef.
381 (fixed_point_objfile_key): New static global.
382 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
383 (fixed_point_type_base_type, fixed_point_scaling_factor): New
384 functions.
385 * gdbtypes.h: #include "gmp-utils.h".
386 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
387 (union type_specific) <fixed_point_info>: New field.
388 (struct fixed_point_type_info): New struct.
389 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
390 (init_fixed_point_type, is_fixed_point_type)
391 (fixed_point_type_base_type, fixed_point_scaling_factor)
392 (allocate_fixed_point_type_info): Add declarations.
393 * valprint.c (generic_val_print_fixed_point): New function.
394 (generic_value_print): Add fixed-point type handling.
395 * value.c (value_as_address, unpack_long): Add fixed-point type
396 handling.
397
398 2020-11-15 Joel Brobecker <brobecker@adacore.com>
399
400 * utils.h (uinteger_pow): Add declaration.
401 * utils.c (uinteger_pow): Moved here (without changes)...
402 * valarith.c (uinteger_pow): ... from here.
403
404 2020-11-15 Joel Brobecker <brobecker@adacore.com>
405
406 * gmp-utils.h, gmp-utils.c: New file.
407 * unittests/gmp-utils-selftests.c: New file.
408 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
409 unittests/gmp-utils-selftests.c.
410 (COMMON_SFILES) Add gmp-utils.c.
411 (HFILES_NO_SRCDIR): Add gmp-utils.h.
412
413 2020-11-15 Joel Brobecker <brobecker@adacore.com>
414
415 * configure.ac: Generate an error if a usable GMP library
416 could not be found.
417 * configure: Regenerate.
418
419 2020-11-15 Joel Brobecker <brobecker@adacore.com>
420
421 * configure.ac: Add support for --with-libgmp-prefix.
422 * Makefile.in (LIBGMP): New variable.
423 (CLIBS): Include $(LIBGMP).
424 * configure, config.in: Regenerate
425
426 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 PR cli/26879
429 * f-exp.y (COMPLETE): New token.
430 (exp): Two new rules for tab-completion.
431 (saw_name_at_eof): New static global.
432 (last_was_structop): Likewise.
433 (yylex): Set new variables, and return COMPLETE token at the end
434 of the input stream in some cases.
435
436 2020-11-14 Tom Tromey <tom@tromey.com>
437
438 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
439
440 2020-11-14 Tom Tromey <tom@tromey.com>
441
442 * opencl-lang.c (opencl_component_ref): Make "comps" const.
443
444 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
447
448 2020-11-13 Tom Tromey <tom@tromey.com>
449
450 * c-lang.c (convert_ucn, convert_octal, convert_hex)
451 (convert_escape, parse_one_string): Constify.
452
453 2020-11-13 Keith Seitz <keiths@redhat.com>
454
455 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
456 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
457 outside of ELF segments" warning for debugin
458
459 2020-11-13 Keith Seitz <keiths@redhat.com>
460
461 PR gdb/23034
462 * elfread.c (elf_symfile_segments): Output a BFD file name
463 for the "Loadable section ... outside of ELF segments" warning.
464
465 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
466
467 PR gdb/26835
468 * arm-tdep.c (class arm_instruction_reader): New.
469 (target_arm_instruction_reader): New.
470 (arm_analyze_prologue): Add instruction reader parameter and use
471 it. Use arm_expand_immediate.
472 (class target_arm_instruction_reader): Adjust.
473 (arm_skip_prologue): Adjust.
474 (arm_expand_immediate): New.
475 (arm_scan_prologue): Adjust.
476 (arm_analyze_prologue_test): New.
477 (class test_arm_instruction_reader): New.
478
479 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * f-lang.c (fortran_argument_convert): Add declaration. Add
482 header comment, taken from f-lang.h. Make static.
483 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
484 (fortran_argument_convert): Delete declaration.
485
486 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * ada-exp.y (find_primitive_type): Make parameter const.
489 * ada-lang.c (enum ada_primitive_types): Delete.
490 (ada_language::language_arch_info): Update.
491 * c-lang.c (enum c_primitive_types): Delete.
492 (c_language_arch_info): Update.
493 (enum cplus_primitive_types): Delete.
494 (cplus_language::language_arch_info): Update.
495 * d-lang.c (enum d_primitive_types): Delete.
496 (d_language::language_arch_info): Update.
497 * f-lang.c (enum f_primitive_types): Delete.
498 (f_language::language_arch_info): Update.
499 * go-lang.c (enum go_primitive_types): Delete.
500 (go_language::language_arch_info): Update.
501 * language.c (auto_or_unknown_language::language_arch_info):
502 Update.
503 (language_gdbarch_post_init): Use obstack_new, use array indexing.
504 (language_string_char_type): Add header comment, call function in
505 language_arch_info.
506 (language_bool_type): Likewise
507 (language_arch_info::bool_type): Define.
508 (language_lookup_primitive_type_1): Delete.
509 (language_lookup_primitive_type): Rewrite as a templated function
510 to call function in language_arch_info, then instantiate twice.
511 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
512 (language_arch_info::lookup_primitive_type_and_symbol): Define.
513 (language_arch_info::lookup_primitive_type): Define twice with
514 different signatures.
515 (language_arch_info::lookup_primitive_type_as_symbol): Define.
516 (language_lookup_primitive_type_as_symbol): Rewrite to call a
517 member function in language_arch_info.
518 * language.h (language_arch_info): Complete rewrite.
519 (language_lookup_primitive_type): Make templated.
520 * m2-lang.c (enum m2_primitive_types): Delete.
521 (m2_language::language_arch_info): Update.
522 * opencl-lang.c (OCL_P_TYPE): Delete.
523 (enum opencl_primitive_types): Delete.
524 (opencl_type_data): Delete.
525 (builtin_opencl_type): Delete.
526 (lookup_opencl_vector_type): Update.
527 (opencl_language::language_arch_info): Update, lots of content
528 moved from...
529 (build_opencl_types): ...here. This function is now deleted.
530 (_initialize_opencl_language): Delete.
531 * p-lang.c (enum pascal_primitive_types): Delete.
532 (pascal_language::language_arch_info): Update.
533 * rust-lang.c (enum rust_primitive_types): Delete.
534 (rust_language::language_arch_info): Update.
535
536 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
537
538 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
539 dwarf2_queue_guard.
540
541 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
542
543 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
544 comment.
545
546 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * dwarf2/read.c (dwarf_read_debug_printf,
549 dwarf_read_debug_printf_v): New macros, use throughout the file.
550
551 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
552
553 * arc-linux-tdep.c (collect_register): Populate "eret" by
554 "pc" value from the regcache when asked for "pc" value.
555
556 2020-11-12 Tom Tromey <tom@tromey.com>
557
558 PR rust/26799:
559 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
560 exist.
561
562 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
563
564 * features/Makefile (XMLTOC): Add rx.xml.
565 (FEATURE_XMLFILES): Remove rx.xml.
566 (FEATURE_CFILES rule): Pass '-single-feature' flag.
567 * features/rx.c: Regenerate.
568 * features/rx.xml: Wrap in `target` tags, and reindent.
569 * target-descriptions.c (struct maint_print_c_tdesc_options): New
570 structure.
571 (maint_print_c_tdesc_opt_def): New typedef.
572 (maint_print_c_tdesc_opt_defs): New static global.
573 (make_maint_print_c_tdesc_options_def_group): New function.
574 (maint_print_c_tdesc_cmd): Make use of command line flags, only
575 print single feature C file for target descriptions containing a
576 single feature.
577 (maint_print_c_tdesc_cmd_completer): New function.
578 (_initialize_target_descriptions): Update call to register command
579 completer, and include command line flag in help text.
580
581 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
584 numbers.
585 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
586 enum values.
587
588 2020-11-10 Tom Tromey <tom@tromey.com>
589
590 * value.h (internalvar_name): Update.
591 * value.c (internalvar_name): Make return type const.
592
593 2020-11-10 Tom Tromey <tom@tromey.com>
594
595 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
596 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
597 const.
598
599 2020-11-10 Tom Tromey <tom@tromey.com>
600
601 * objc-lang.h (value_nsstring): Update.
602 * objc-lang.c (value_nsstring): Make "ptr" const.
603
604 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * expprint.c (print_subexp_funcall): Increment expression position
607 after reading argument count.
608 * f-lang.c (print_subexp_f): Skip over opcode before calling
609 common function.
610 (dump_subexp_body_f): Likewise.
611
612 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
613
614 PR python/26832
615 * configure: Regenerate.
616 * configure.ac: Check for python modules ctypes instead of
617 itertools.
618
619 2020-11-06 Pedro Alves <pedro@palves.net>
620
621 * macroexp.c (struct macro_buffer): Split in two classes. Add
622 uses adjusted.
623 (struct shared_macro_buffer): New, factored out from struct
624 macro_buffer.
625 (struct growable_macro_buffer): New, factored out from struct
626 macro_buffer.
627 (set_token, get_comment, get_identifier, get_pp_number)
628 (get_character_constant, get_string_literal, get_punctuator)
629 (get_next_token_for_substitution): Constify parameters.
630 (substitute_args): Constify locals.
631
632 2020-11-05 Tom Tromey <tom@tromey.com>
633
634 * dwarf2/read.c (read_cutu_die_from_dwo)
635 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
636 (build_type_psymtabs_1): Update.
637 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
638 parameter.
639 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
640 Don't read section. Add assert.
641
642 2020-11-04 Tom Tromey <tromey@adacore.com>
643
644 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
645
646 2020-11-04 Tom Tromey <tromey@adacore.com>
647
648 * ada-typeprint.c (ada_print_type): Handle __T types.
649
650 2020-11-04 Tom Tromey <tromey@adacore.com>
651
652 * dwarf2/read.c (add_partial_symbol, process_die):
653 Handle DW_TAG_array_type.
654 (is_type_tag_for_partial): Add "lang" parameter.
655 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
656
657 2020-11-04 Tom Tromey <tromey@adacore.com>
658
659 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
660
661 2020-11-04 Tom Tromey <tromey@adacore.com>
662
663 * dwarf2/read.c (read_array_type): Only apply stride to innermost
664 array.
665
666 2020-11-04 Tom Tromey <tromey@adacore.com>
667
668 * gdbtypes.c (update_static_array_size): Handle bit stride.
669
670 2020-11-04 Tom Tromey <tromey@adacore.com>
671
672 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
673
674 2020-11-04 Tom Tromey <tromey@adacore.com>
675
676 * ada-lang.c (ada_is_any_packed_array_type): New function.
677 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
678
679 2020-11-04 Tom Tromey <tromey@adacore.com>
680
681 * dwarf2/read.c (recognize_bound_expression)
682 (quirk_ada_thick_pointer): New functions.
683 (read_array_type): Call quirk_ada_thick_pointer.
684 (set_die_type): Add "skip_data_location" parameter.
685 (quirk_ada_thick_pointer): New function.
686 (process_structure_scope): Call quirk_ada_thick_pointer.
687 * ada-lang.c (ada_is_unconstrained_packed_array_type)
688 (decode_packed_array_bitsize): Handle thick pointers without
689 parallel types.
690 (ada_is_gnat_encoded_packed_array_type): Rename from
691 ada_is_packed_array_type.
692 (ada_is_constrained_packed_array_type): Update.
693 * ada-valprint.c (ada_val_print_gnat_array): Remove.
694 (ada_value_print_1): Use ada_get_decoded_value.
695
696 2020-11-04 Tom Tromey <tromey@adacore.com>
697
698 * ada-lang.c (recursively_update_array_bitsize): New function.
699 (decode_constrained_packed_array_type): Call it.
700
701 2020-11-04 Tom Tromey <tromey@adacore.com>
702
703 * ada-lang.c (to_fixed_array_type): Error if
704 decode_constrained_packed_array_type returns NULL.
705
706 2020-11-04 Tom Tromey <tromey@adacore.com>
707
708 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
709
710 2020-11-02 Tom Tromey <tromey@adacore.com>
711
712 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
713 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
714 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
715 * amd64-ravenscar-thread.c: New file.
716 * amd64-ravenscar-thread.h: New file.
717 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
718 * configure.tgt (amd64_tobjs): Add ravenscar objects.
719
720 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * main.c (execute_cmdargs): New function.
723 (captured_main_1): Make use of execute_cmdargs.
724
725 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * NEWS: Mention changes to config file search path.
728 * main.c
729
730 2020-11-02 Tom Tromey <tromey@adacore.com>
731
732 * python/python.c: Consolidate two HAVE_PYTHON blocks.
733 (python_GdbModuleDef): Move earlier. Now static.
734 (do_start_initialization): Consolidate some IS_PY3K blocks.
735
736 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
737
738 * aarch64-linux-tdep.c: Fix indentation.
739 * aarch64-ravenscar-thread.c: Fix indentation.
740 * aarch64-tdep.c: Fix indentation.
741 * aarch64-tdep.h: Fix indentation.
742 * ada-lang.c: Fix indentation.
743 * ada-lang.h: Fix indentation.
744 * ada-tasks.c: Fix indentation.
745 * ada-typeprint.c: Fix indentation.
746 * ada-valprint.c: Fix indentation.
747 * ada-varobj.c: Fix indentation.
748 * addrmap.c: Fix indentation.
749 * addrmap.h: Fix indentation.
750 * agent.c: Fix indentation.
751 * aix-thread.c: Fix indentation.
752 * alpha-bsd-nat.c: Fix indentation.
753 * alpha-linux-tdep.c: Fix indentation.
754 * alpha-mdebug-tdep.c: Fix indentation.
755 * alpha-nbsd-tdep.c: Fix indentation.
756 * alpha-obsd-tdep.c: Fix indentation.
757 * alpha-tdep.c: Fix indentation.
758 * amd64-bsd-nat.c: Fix indentation.
759 * amd64-darwin-tdep.c: Fix indentation.
760 * amd64-linux-nat.c: Fix indentation.
761 * amd64-linux-tdep.c: Fix indentation.
762 * amd64-nat.c: Fix indentation.
763 * amd64-obsd-tdep.c: Fix indentation.
764 * amd64-tdep.c: Fix indentation.
765 * amd64-windows-tdep.c: Fix indentation.
766 * annotate.c: Fix indentation.
767 * arc-tdep.c: Fix indentation.
768 * arch-utils.c: Fix indentation.
769 * arch/arm-get-next-pcs.c: Fix indentation.
770 * arch/arm.c: Fix indentation.
771 * arm-linux-nat.c: Fix indentation.
772 * arm-linux-tdep.c: Fix indentation.
773 * arm-nbsd-tdep.c: Fix indentation.
774 * arm-pikeos-tdep.c: Fix indentation.
775 * arm-tdep.c: Fix indentation.
776 * arm-tdep.h: Fix indentation.
777 * arm-wince-tdep.c: Fix indentation.
778 * auto-load.c: Fix indentation.
779 * auxv.c: Fix indentation.
780 * avr-tdep.c: Fix indentation.
781 * ax-gdb.c: Fix indentation.
782 * ax-general.c: Fix indentation.
783 * bfin-linux-tdep.c: Fix indentation.
784 * block.c: Fix indentation.
785 * block.h: Fix indentation.
786 * blockframe.c: Fix indentation.
787 * bpf-tdep.c: Fix indentation.
788 * break-catch-sig.c: Fix indentation.
789 * break-catch-syscall.c: Fix indentation.
790 * break-catch-throw.c: Fix indentation.
791 * breakpoint.c: Fix indentation.
792 * breakpoint.h: Fix indentation.
793 * bsd-uthread.c: Fix indentation.
794 * btrace.c: Fix indentation.
795 * build-id.c: Fix indentation.
796 * buildsym-legacy.h: Fix indentation.
797 * buildsym.c: Fix indentation.
798 * c-typeprint.c: Fix indentation.
799 * c-valprint.c: Fix indentation.
800 * c-varobj.c: Fix indentation.
801 * charset.c: Fix indentation.
802 * cli/cli-cmds.c: Fix indentation.
803 * cli/cli-decode.c: Fix indentation.
804 * cli/cli-decode.h: Fix indentation.
805 * cli/cli-script.c: Fix indentation.
806 * cli/cli-setshow.c: Fix indentation.
807 * coff-pe-read.c: Fix indentation.
808 * coffread.c: Fix indentation.
809 * compile/compile-cplus-types.c: Fix indentation.
810 * compile/compile-object-load.c: Fix indentation.
811 * compile/compile-object-run.c: Fix indentation.
812 * completer.c: Fix indentation.
813 * corefile.c: Fix indentation.
814 * corelow.c: Fix indentation.
815 * cp-abi.h: Fix indentation.
816 * cp-namespace.c: Fix indentation.
817 * cp-support.c: Fix indentation.
818 * cp-valprint.c: Fix indentation.
819 * cris-linux-tdep.c: Fix indentation.
820 * cris-tdep.c: Fix indentation.
821 * darwin-nat-info.c: Fix indentation.
822 * darwin-nat.c: Fix indentation.
823 * darwin-nat.h: Fix indentation.
824 * dbxread.c: Fix indentation.
825 * dcache.c: Fix indentation.
826 * disasm.c: Fix indentation.
827 * dtrace-probe.c: Fix indentation.
828 * dwarf2/abbrev.c: Fix indentation.
829 * dwarf2/attribute.c: Fix indentation.
830 * dwarf2/expr.c: Fix indentation.
831 * dwarf2/frame.c: Fix indentation.
832 * dwarf2/index-cache.c: Fix indentation.
833 * dwarf2/index-write.c: Fix indentation.
834 * dwarf2/line-header.c: Fix indentation.
835 * dwarf2/loc.c: Fix indentation.
836 * dwarf2/macro.c: Fix indentation.
837 * dwarf2/read.c: Fix indentation.
838 * dwarf2/read.h: Fix indentation.
839 * elfread.c: Fix indentation.
840 * eval.c: Fix indentation.
841 * event-top.c: Fix indentation.
842 * exec.c: Fix indentation.
843 * exec.h: Fix indentation.
844 * expprint.c: Fix indentation.
845 * f-lang.c: Fix indentation.
846 * f-typeprint.c: Fix indentation.
847 * f-valprint.c: Fix indentation.
848 * fbsd-nat.c: Fix indentation.
849 * fbsd-tdep.c: Fix indentation.
850 * findvar.c: Fix indentation.
851 * fork-child.c: Fix indentation.
852 * frame-unwind.c: Fix indentation.
853 * frame-unwind.h: Fix indentation.
854 * frame.c: Fix indentation.
855 * frv-linux-tdep.c: Fix indentation.
856 * frv-tdep.c: Fix indentation.
857 * frv-tdep.h: Fix indentation.
858 * ft32-tdep.c: Fix indentation.
859 * gcore.c: Fix indentation.
860 * gdb_bfd.c: Fix indentation.
861 * gdbarch.sh: Fix indentation.
862 * gdbarch.c: Re-generate
863 * gdbarch.h: Re-generate.
864 * gdbcore.h: Fix indentation.
865 * gdbthread.h: Fix indentation.
866 * gdbtypes.c: Fix indentation.
867 * gdbtypes.h: Fix indentation.
868 * glibc-tdep.c: Fix indentation.
869 * gnu-nat.c: Fix indentation.
870 * gnu-nat.h: Fix indentation.
871 * gnu-v2-abi.c: Fix indentation.
872 * gnu-v3-abi.c: Fix indentation.
873 * go32-nat.c: Fix indentation.
874 * guile/guile-internal.h: Fix indentation.
875 * guile/scm-cmd.c: Fix indentation.
876 * guile/scm-frame.c: Fix indentation.
877 * guile/scm-iterator.c: Fix indentation.
878 * guile/scm-math.c: Fix indentation.
879 * guile/scm-ports.c: Fix indentation.
880 * guile/scm-pretty-print.c: Fix indentation.
881 * guile/scm-value.c: Fix indentation.
882 * h8300-tdep.c: Fix indentation.
883 * hppa-linux-nat.c: Fix indentation.
884 * hppa-linux-tdep.c: Fix indentation.
885 * hppa-nbsd-nat.c: Fix indentation.
886 * hppa-nbsd-tdep.c: Fix indentation.
887 * hppa-obsd-nat.c: Fix indentation.
888 * hppa-tdep.c: Fix indentation.
889 * hppa-tdep.h: Fix indentation.
890 * i386-bsd-nat.c: Fix indentation.
891 * i386-darwin-nat.c: Fix indentation.
892 * i386-darwin-tdep.c: Fix indentation.
893 * i386-dicos-tdep.c: Fix indentation.
894 * i386-gnu-nat.c: Fix indentation.
895 * i386-linux-nat.c: Fix indentation.
896 * i386-linux-tdep.c: Fix indentation.
897 * i386-nto-tdep.c: Fix indentation.
898 * i386-obsd-tdep.c: Fix indentation.
899 * i386-sol2-nat.c: Fix indentation.
900 * i386-tdep.c: Fix indentation.
901 * i386-tdep.h: Fix indentation.
902 * i386-windows-tdep.c: Fix indentation.
903 * i387-tdep.c: Fix indentation.
904 * i387-tdep.h: Fix indentation.
905 * ia64-libunwind-tdep.c: Fix indentation.
906 * ia64-libunwind-tdep.h: Fix indentation.
907 * ia64-linux-nat.c: Fix indentation.
908 * ia64-linux-tdep.c: Fix indentation.
909 * ia64-tdep.c: Fix indentation.
910 * ia64-tdep.h: Fix indentation.
911 * ia64-vms-tdep.c: Fix indentation.
912 * infcall.c: Fix indentation.
913 * infcmd.c: Fix indentation.
914 * inferior.c: Fix indentation.
915 * infrun.c: Fix indentation.
916 * iq2000-tdep.c: Fix indentation.
917 * language.c: Fix indentation.
918 * linespec.c: Fix indentation.
919 * linux-fork.c: Fix indentation.
920 * linux-nat.c: Fix indentation.
921 * linux-tdep.c: Fix indentation.
922 * linux-thread-db.c: Fix indentation.
923 * lm32-tdep.c: Fix indentation.
924 * m2-lang.c: Fix indentation.
925 * m2-typeprint.c: Fix indentation.
926 * m2-valprint.c: Fix indentation.
927 * m32c-tdep.c: Fix indentation.
928 * m32r-linux-tdep.c: Fix indentation.
929 * m32r-tdep.c: Fix indentation.
930 * m68hc11-tdep.c: Fix indentation.
931 * m68k-bsd-nat.c: Fix indentation.
932 * m68k-linux-nat.c: Fix indentation.
933 * m68k-linux-tdep.c: Fix indentation.
934 * m68k-tdep.c: Fix indentation.
935 * machoread.c: Fix indentation.
936 * macrocmd.c: Fix indentation.
937 * macroexp.c: Fix indentation.
938 * macroscope.c: Fix indentation.
939 * macrotab.c: Fix indentation.
940 * macrotab.h: Fix indentation.
941 * main.c: Fix indentation.
942 * mdebugread.c: Fix indentation.
943 * mep-tdep.c: Fix indentation.
944 * mi/mi-cmd-catch.c: Fix indentation.
945 * mi/mi-cmd-disas.c: Fix indentation.
946 * mi/mi-cmd-env.c: Fix indentation.
947 * mi/mi-cmd-stack.c: Fix indentation.
948 * mi/mi-cmd-var.c: Fix indentation.
949 * mi/mi-cmds.c: Fix indentation.
950 * mi/mi-main.c: Fix indentation.
951 * mi/mi-parse.c: Fix indentation.
952 * microblaze-tdep.c: Fix indentation.
953 * minidebug.c: Fix indentation.
954 * minsyms.c: Fix indentation.
955 * mips-linux-nat.c: Fix indentation.
956 * mips-linux-tdep.c: Fix indentation.
957 * mips-nbsd-tdep.c: Fix indentation.
958 * mips-tdep.c: Fix indentation.
959 * mn10300-linux-tdep.c: Fix indentation.
960 * mn10300-tdep.c: Fix indentation.
961 * moxie-tdep.c: Fix indentation.
962 * msp430-tdep.c: Fix indentation.
963 * namespace.h: Fix indentation.
964 * nat/fork-inferior.c: Fix indentation.
965 * nat/gdb_ptrace.h: Fix indentation.
966 * nat/linux-namespaces.c: Fix indentation.
967 * nat/linux-osdata.c: Fix indentation.
968 * nat/netbsd-nat.c: Fix indentation.
969 * nat/x86-dregs.c: Fix indentation.
970 * nbsd-nat.c: Fix indentation.
971 * nbsd-tdep.c: Fix indentation.
972 * nios2-linux-tdep.c: Fix indentation.
973 * nios2-tdep.c: Fix indentation.
974 * nto-procfs.c: Fix indentation.
975 * nto-tdep.c: Fix indentation.
976 * objfiles.c: Fix indentation.
977 * objfiles.h: Fix indentation.
978 * opencl-lang.c: Fix indentation.
979 * or1k-tdep.c: Fix indentation.
980 * osabi.c: Fix indentation.
981 * osabi.h: Fix indentation.
982 * osdata.c: Fix indentation.
983 * p-lang.c: Fix indentation.
984 * p-typeprint.c: Fix indentation.
985 * p-valprint.c: Fix indentation.
986 * parse.c: Fix indentation.
987 * ppc-linux-nat.c: Fix indentation.
988 * ppc-linux-tdep.c: Fix indentation.
989 * ppc-nbsd-nat.c: Fix indentation.
990 * ppc-nbsd-tdep.c: Fix indentation.
991 * ppc-obsd-nat.c: Fix indentation.
992 * ppc-ravenscar-thread.c: Fix indentation.
993 * ppc-sysv-tdep.c: Fix indentation.
994 * ppc64-tdep.c: Fix indentation.
995 * printcmd.c: Fix indentation.
996 * proc-api.c: Fix indentation.
997 * producer.c: Fix indentation.
998 * producer.h: Fix indentation.
999 * prologue-value.c: Fix indentation.
1000 * prologue-value.h: Fix indentation.
1001 * psymtab.c: Fix indentation.
1002 * python/py-arch.c: Fix indentation.
1003 * python/py-bpevent.c: Fix indentation.
1004 * python/py-event.c: Fix indentation.
1005 * python/py-event.h: Fix indentation.
1006 * python/py-finishbreakpoint.c: Fix indentation.
1007 * python/py-frame.c: Fix indentation.
1008 * python/py-framefilter.c: Fix indentation.
1009 * python/py-inferior.c: Fix indentation.
1010 * python/py-infthread.c: Fix indentation.
1011 * python/py-objfile.c: Fix indentation.
1012 * python/py-prettyprint.c: Fix indentation.
1013 * python/py-registers.c: Fix indentation.
1014 * python/py-signalevent.c: Fix indentation.
1015 * python/py-stopevent.c: Fix indentation.
1016 * python/py-stopevent.h: Fix indentation.
1017 * python/py-threadevent.c: Fix indentation.
1018 * python/py-tui.c: Fix indentation.
1019 * python/py-unwind.c: Fix indentation.
1020 * python/py-value.c: Fix indentation.
1021 * python/py-xmethods.c: Fix indentation.
1022 * python/python-internal.h: Fix indentation.
1023 * python/python.c: Fix indentation.
1024 * ravenscar-thread.c: Fix indentation.
1025 * record-btrace.c: Fix indentation.
1026 * record-full.c: Fix indentation.
1027 * record.c: Fix indentation.
1028 * reggroups.c: Fix indentation.
1029 * regset.h: Fix indentation.
1030 * remote-fileio.c: Fix indentation.
1031 * remote.c: Fix indentation.
1032 * reverse.c: Fix indentation.
1033 * riscv-linux-tdep.c: Fix indentation.
1034 * riscv-ravenscar-thread.c: Fix indentation.
1035 * riscv-tdep.c: Fix indentation.
1036 * rl78-tdep.c: Fix indentation.
1037 * rs6000-aix-tdep.c: Fix indentation.
1038 * rs6000-lynx178-tdep.c: Fix indentation.
1039 * rs6000-nat.c: Fix indentation.
1040 * rs6000-tdep.c: Fix indentation.
1041 * rust-lang.c: Fix indentation.
1042 * rx-tdep.c: Fix indentation.
1043 * s12z-tdep.c: Fix indentation.
1044 * s390-linux-tdep.c: Fix indentation.
1045 * score-tdep.c: Fix indentation.
1046 * ser-base.c: Fix indentation.
1047 * ser-mingw.c: Fix indentation.
1048 * ser-uds.c: Fix indentation.
1049 * ser-unix.c: Fix indentation.
1050 * serial.c: Fix indentation.
1051 * sh-linux-tdep.c: Fix indentation.
1052 * sh-nbsd-tdep.c: Fix indentation.
1053 * sh-tdep.c: Fix indentation.
1054 * skip.c: Fix indentation.
1055 * sol-thread.c: Fix indentation.
1056 * solib-aix.c: Fix indentation.
1057 * solib-darwin.c: Fix indentation.
1058 * solib-frv.c: Fix indentation.
1059 * solib-svr4.c: Fix indentation.
1060 * solib.c: Fix indentation.
1061 * source.c: Fix indentation.
1062 * sparc-linux-tdep.c: Fix indentation.
1063 * sparc-nbsd-tdep.c: Fix indentation.
1064 * sparc-obsd-tdep.c: Fix indentation.
1065 * sparc-ravenscar-thread.c: Fix indentation.
1066 * sparc-tdep.c: Fix indentation.
1067 * sparc64-linux-tdep.c: Fix indentation.
1068 * sparc64-nbsd-tdep.c: Fix indentation.
1069 * sparc64-obsd-tdep.c: Fix indentation.
1070 * sparc64-tdep.c: Fix indentation.
1071 * stabsread.c: Fix indentation.
1072 * stack.c: Fix indentation.
1073 * stap-probe.c: Fix indentation.
1074 * stubs/ia64vms-stub.c: Fix indentation.
1075 * stubs/m32r-stub.c: Fix indentation.
1076 * stubs/m68k-stub.c: Fix indentation.
1077 * stubs/sh-stub.c: Fix indentation.
1078 * stubs/sparc-stub.c: Fix indentation.
1079 * symfile-mem.c: Fix indentation.
1080 * symfile.c: Fix indentation.
1081 * symfile.h: Fix indentation.
1082 * symmisc.c: Fix indentation.
1083 * symtab.c: Fix indentation.
1084 * symtab.h: Fix indentation.
1085 * target-float.c: Fix indentation.
1086 * target.c: Fix indentation.
1087 * target.h: Fix indentation.
1088 * tic6x-tdep.c: Fix indentation.
1089 * tilegx-linux-tdep.c: Fix indentation.
1090 * tilegx-tdep.c: Fix indentation.
1091 * top.c: Fix indentation.
1092 * tracefile-tfile.c: Fix indentation.
1093 * tracepoint.c: Fix indentation.
1094 * tui/tui-disasm.c: Fix indentation.
1095 * tui/tui-io.c: Fix indentation.
1096 * tui/tui-regs.c: Fix indentation.
1097 * tui/tui-stack.c: Fix indentation.
1098 * tui/tui-win.c: Fix indentation.
1099 * tui/tui-winsource.c: Fix indentation.
1100 * tui/tui.c: Fix indentation.
1101 * typeprint.c: Fix indentation.
1102 * ui-out.h: Fix indentation.
1103 * unittests/copy_bitwise-selftests.c: Fix indentation.
1104 * unittests/memory-map-selftests.c: Fix indentation.
1105 * utils.c: Fix indentation.
1106 * v850-tdep.c: Fix indentation.
1107 * valarith.c: Fix indentation.
1108 * valops.c: Fix indentation.
1109 * valprint.c: Fix indentation.
1110 * valprint.h: Fix indentation.
1111 * value.c: Fix indentation.
1112 * value.h: Fix indentation.
1113 * varobj.c: Fix indentation.
1114 * vax-tdep.c: Fix indentation.
1115 * windows-nat.c: Fix indentation.
1116 * windows-tdep.c: Fix indentation.
1117 * xcoffread.c: Fix indentation.
1118 * xml-syscall.c: Fix indentation.
1119 * xml-tdesc.c: Fix indentation.
1120 * xstormy16-tdep.c: Fix indentation.
1121 * xtensa-config.c: Fix indentation.
1122 * xtensa-linux-nat.c: Fix indentation.
1123 * xtensa-linux-tdep.c: Fix indentation.
1124 * xtensa-tdep.c: Fix indentation.
1125
1126 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1127 Craig Blackmore <craig.blackmore@embecosm.com>
1128
1129 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1130 as an unsigned value.
1131
1132 2020-11-01 Tom Tromey <tom@tromey.com>
1133
1134 * dbxread.c (dbx_end_psymtab): Update.
1135 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1136 (build_type_psymtabs_reader): Update.
1137 * xcoffread.c (xcoff_end_psymtab): Update.
1138 * ctfread.c (scan_partial_symbols): Update.
1139 * psymtab.c (sort_pst_symbols): Remove.
1140 (partial_symtab::end): Rename from end_psymtab_common. Inline
1141 sort_pst_symbols.
1142 * psympriv.h (struct partial_symtab) <end>: New method.
1143 (end_psymtab_common): Don't declare.
1144
1145 2020-11-01 Tom Tromey <tom@tromey.com>
1146
1147 * symmisc.c (count_psyms): New function.
1148 (print_objfile_statistics): Use it.
1149 * psymtab.c (append_psymbol_to_list): Remove.
1150 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1151 * objfiles.h (struct objstats) <n_psyms>: Remove.
1152
1153 2020-11-01 Tom Tromey <tom@tromey.com>
1154
1155 * dbxread.c (dbx_end_psymtab): Update.
1156 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1157 (build_type_psymtabs_reader): Update.
1158 * xcoffread.c (xcoff_end_psymtab): Update.
1159 * ctfread.c (scan_partial_symbols): Update.
1160 * psympriv.h (end_psymtab_common): Update.
1161 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1162 (sort_pst_symbols): Likewise.
1163
1164 2020-11-01 Tom Tromey <tom@tromey.com>
1165
1166 * dbxread.c (dbx_symfile_read): Update.
1167 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1168 * xcoffread.c (xcoff_initial_scan): Update.
1169 * psympriv.h (init_psymbol_list): Don't declare.
1170 * psymtab.c (init_psymbol_list): Remove.
1171
1172 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1173
1174 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1175 gnat_encoded_fixed_type_info. Update all callers.
1176
1177 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1178
1179 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1180 line too long.
1181
1182 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1183
1184 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1185 cast_from_fixed. Update all callers.
1186 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1187 Update all callers.
1188 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1189 Update all callers.
1190 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1191 ada_scaling_factor.
1192 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1193 to print_gnat_encoded_fixed_point_type.
1194 * ada-valprint.c: Likewise.
1195
1196 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1199 (debug_prefixed_printf): Add check of debug_displaced flag.
1200 * linux-nat.c (linux_nat_debug_printf): Add check of
1201 debug_linux_nat flag.
1202
1203 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * infrun.c (infrun_debug_printf_1): Remove.
1206 (displaced_debug_printf_1): Remove.
1207 (stop_all_threads): Use debug_prefixed_printf.
1208 * infrun.h (infrun_debug_printf_1): Remove.
1209 (infrun_debug_printf): Use debug_prefixed_printf.
1210 (displaced_debug_printf_1): Remove.
1211 (displaced_debug_printf): Use debug_prefixed_printf.
1212 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1213 (linux_nat_debug_printf): Use debug_prefixed_printf.
1214
1215 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1216
1217 * configure: Re-generate.
1218 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1219 AC_LANG_PROGRAM.
1220
1221 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1222
1223 * configure: Re-generate.
1224
1225 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * configure: Re-generate.
1228
1229 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * configure: Re-generate.
1232
1233 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 * configure: Re-generate.
1236
1237 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 * acinclude.m4: Modernize.
1240 * configure: Re-generate.
1241
1242 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * configure.ac: Modernize.
1245 * configure: Re-generate.
1246
1247 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1250 * configure: Re-generate.
1251 * configure.ac: Remove AM_PROG_CC_STDC.
1252
1253 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1256 AC_CANONICAL_SYSTEM.
1257 * configure: Re-generate.
1258
1259 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1260
1261 * infrun.h (displaced_debug_printf): New macro. Replace
1262 displaced debug prints throughout to use it.
1263 (displaced_debug_printf_1): New declaration.
1264 (displaced_step_dump_bytes): Return string, remove ui_file
1265 parameter, update all callers.
1266 * infrun.c (displaced_debug_printf_1): New function.
1267 (displaced_step_dump_bytes): Return string, remove ui_file
1268 parameter
1269
1270 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1273
1274 2020-10-30 Tom Tromey <tromey@adacore.com>
1275
1276 * Makefile.in (stamp-init): Depend on config.status.
1277
1278 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1279
1280 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1281
1282 2020-10-30 Pedro Alves <pedro@palves.net>
1283
1284 * thread.c (lookup_selected_frame): Move ...
1285 * frame.c (lookup_selected_frame): ... here.
1286
1287 2020-10-30 Pedro Alves <pedro@palves.net>
1288
1289 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1290 * frame.c
1291 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1292 Use save_selected_frame. Save language as well.
1293 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1294 Use restore_selected_frame, and restore language as well.
1295 (selected_frame_id, selected_frame_level): New.
1296 (selected_frame): Update comments.
1297 (save_selected_frame, restore_selected_frame): New.
1298 (get_selected_frame): Use lookup_selected_frame.
1299 (get_selected_frame_if_set): Delete.
1300 (select_frame): Record selected_frame_level and selected_frame_id.
1301 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1302 fields.
1303 (get_selected_frame): Make 'message' parameter optional.
1304 (get_selected_frame_if_set): Delete declaration.
1305 (select_frame): Update comments.
1306 (save_selected_frame, restore_selected_frame)
1307 (lookup_selected_frame): Declare.
1308 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1309 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1310 New field.
1311 (save_infcall_control_state): Use save_selected_frame.
1312 (restore_selected_frame): Delete.
1313 (restore_infcall_control_state): Use restore_selected_frame.
1314 * stack.c (select_frame_command_core, frame_command_core): Use
1315 get_selected_frame.
1316 * thread.c (restore_selected_frame): Rename to ...
1317 (lookup_selected_frame): ... this and make extern. Select the
1318 current frame if the frame level is -1.
1319 (scoped_restore_current_thread::restore): Also restore the
1320 language.
1321 (scoped_restore_current_thread::~scoped_restore_current_thread):
1322 Don't try/catch.
1323 (scoped_restore_current_thread::scoped_restore_current_thread):
1324 Save the language as well. Use save_selected_frame.
1325
1326 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1329 documentation.
1330 * gdbarch.h: Re-generate.
1331
1332 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1335 parameter.
1336 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1337 Likewise.
1338 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1339 Likewise.
1340 * arch-utils.c (default_displaced_step_hw_singlestep):
1341 Likewise.
1342 * arch-utils.h (default_displaced_step_hw_singlestep):
1343 Likewise.
1344 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1345 Likewise.
1346 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1347 Likewise.
1348 * gdbarch.c: Re-generate.
1349 * gdbarch.h: Re-generate.
1350 * infrun.c (resume_1): Adjust.
1351
1352 2020-10-29 Tom Tromey <tom@tromey.com>
1353
1354 * progspace.c (program_space::~program_space): Don't call
1355 exec_close.
1356
1357 2020-10-29 Tom Tromey <tom@tromey.com>
1358
1359 * exec.c (exec_target::close): Don't change current program
1360 space.
1361
1362 2020-10-29 Tom Tromey <tom@tromey.com>
1363
1364 * symfile.c (add_symbol_file_command): Update.
1365 * exec.c (program_space::add_target_sections): Rename.
1366 * symfile-mem.c (symbol_file_add_from_memory): Update.
1367 * progspace.h (struct program_space) <add_target_sections>:
1368 Declare new overload.
1369 * exec.h (add_target_sections_of_objfile): Don't declare.
1370
1371 2020-10-29 Tom Tromey <tom@tromey.com>
1372
1373 * solib.c (solib_map_sections): Update.
1374 * exec.c (program_space::add_target_sections): Now a method.
1375 (exec_file_attach): Update.
1376 * exec.h (add_target_sections): Don't declare.
1377 * progspace.h (struct program_space) <add_target_sections>:
1378 Declare.
1379
1380 2020-10-29 Tom Tromey <tom@tromey.com>
1381
1382 * progspace.h (struct program_space) <remove_target_sections>:
1383 Declare.
1384 * exec.c (program_space::remove_target_sections): Now a method.
1385 * exec.h (remove_target_sections): Don't declare.
1386
1387 2020-10-29 Tom Tromey <tom@tromey.com>
1388
1389 * inferior.c (delete_inferior): Update.
1390 * progspace.c (program_space::empty): Rename from
1391 program_space_empty_p. Return bool.
1392 * progspace.h (struct program_space) <empty>: New method.
1393 (program_space_empty_p): Don't declare.
1394
1395 2020-10-29 Tom Tromey <tom@tromey.com>
1396
1397 * progspace.c (program_space::~program_space): Don't call
1398 clear_program_space_solib_cache.
1399 (program_space::clear_solib_cache): Rename from
1400 clear_solib_cache.
1401 * solib.c (handle_solib_event): Update.
1402 * progspace.h (struct program_space) <clear_solib_cache>: New
1403 method.
1404 (clear_program_space_solib_cache): Don't declare.
1405
1406 2020-10-29 Tom Tromey <tom@tromey.com>
1407
1408 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1409 * target.c (info_target_command): Update.
1410 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1411 (symbol_file_clear, reread_symbols): Update.
1412 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1413 * stabsread.c (scan_file_globals): Update.
1414 * solib.c (update_solib_list): Update.
1415 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1416 (svr4_fetch_objfile_link_map, enable_break)
1417 (svr4_relocate_main_executable)
1418 (svr4_iterate_over_objfiles_in_search_order): Update.
1419 * solib-frv.c (lm_base, enable_break)
1420 (frv_relocate_main_executable): Update.
1421 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1422 (frv_fetch_objfile_link_map): Update.
1423 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1424 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1425 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1426 * remote.c (remote_target::get_offsets): Update.
1427 (remote_target::start_remote)
1428 (extended_remote_target::post_attach): Update.
1429 * objfiles.c (entry_point_address_query): Update.
1430 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1431 * minsyms.c (get_symbol_leading_char): Update.
1432 * frame.c (inside_main_func): Update.
1433 * progspace.h (symfile_objfile): Remove macro.
1434
1435 2020-10-29 Tom Tromey <tom@tromey.com>
1436
1437 * exec.c (exec_file_attach): Update.
1438 * progspace.c (program_space::exec_close): Update.
1439 * progspace.h (struct program_space) <ebfd>: Now a
1440 gdb_bfd_ref_ptr.
1441 <set_exec_bfd>: Change argument type.
1442 <exec_bfd>: Update.
1443
1444 2020-10-29 Tom Tromey <tom@tromey.com>
1445
1446 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1447 * symfile.c (reread_symbols): Update.
1448 * symfile-mem.c (add_symbol_file_from_memory_command)
1449 (add_vsyscall_page): Update.
1450 * source-cache.c (source_cache::get_plain_source_lines): Update.
1451 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1452 (svr4_current_sos_direct, svr4_exec_displacement)
1453 (svr4_relocate_main_executable): Update.
1454 (svr4_iterate_over_objfiles_in_search_order): Update.
1455 * solib-frv.c (enable_break2, enable_break): Update.
1456 * solib-dsbt.c (lm_base, enable_break): Update.
1457 * solib-darwin.c (find_program_interpreter)
1458 (darwin_solib_create_inferior_hook): Update.
1459 * sol-thread.c (rw_common, ps_pdmodel): Update.
1460 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1461 * remote.c (compare_sections_command)
1462 (remote_target::trace_set_readonly_regions): Update.
1463 * remote-sim.c (get_sim_inferior_data)
1464 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1465 (gdbsim_target_open, gdbsim_target::files_info): Update.
1466 * exec.h (exec_bfd): Remove macro.
1467 * progspace.c (initialize_progspace): Update.
1468 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1469 Update.
1470 * nto-procfs.c (nto_procfs_target::post_attach)
1471 (nto_procfs_target::create_inferior): Update.
1472 * maint.c (maintenance_info_sections): Update.
1473 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1474 Update.
1475 * infcmd.c (post_create_inferior): Update.
1476 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1477 (objfile_find_memory_regions): Update.
1478 * exec.c (validate_exec_file, exec_file_attach)
1479 (exec_read_partial_read_only, print_section_info): Update.
1480 * corelow.c (core_target_open): Update.
1481 * corefile.c (reopen_exec_file, validate_files): Update.
1482 * arm-tdep.c (gdb_print_insn_arm): Update.
1483 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1484 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1485 methods.
1486
1487 2020-10-29 Tom Tromey <tom@tromey.com>
1488
1489 * progspace.h (current_target_sections): Remove macro.
1490 * solib-svr4.c (scan_dyntag): Update.
1491 * solib-dsbt.c (scan_dyntag): Update.
1492 * exec.c (exec_target::close): Update.
1493 (add_target_sections, add_target_sections_of_objfile)
1494 (remove_target_sections, exec_target::get_section_table)
1495 (exec_target::files_info, set_section_command)
1496 (exec_set_section_address, exec_target::has_memory)
1497 (exec_target::has_memory): Update.
1498
1499 2020-10-29 Tom Tromey <tom@tromey.com>
1500
1501 * source-cache.c (source_cache::get_plain_source_lines): Use
1502 current_program_space.
1503 * corefile.c (reopen_exec_file): Use current_program_space.
1504 * exec.c (exec_file_attach): Use current_program_space.
1505 * exec.h (exec_bfd_mtime): Remove.
1506
1507 2020-10-29 Tom Tromey <tom@tromey.com>
1508
1509 * gcore.c (default_gcore_mach): Remove.
1510 (create_gcore_bfd): Update.
1511
1512 2020-10-29 Tom Tromey <tom@tromey.com>
1513
1514 * progspace.c (program_space::exec_close): New method, from
1515 exec_close in exec.c.
1516 * exec.c (exec_close): Move to progspace.c.
1517 (exec_target::close, exec_file_attach): Update.
1518 * progspace.h (struct program_space) <exec_close>: Declare
1519 method.
1520
1521 2020-10-29 Tom Tromey <tom@tromey.com>
1522
1523 * progspace.h (struct program_space) <exec_filename>: Rename from
1524 pspace_exec_filename. Now a unique_xmalloc_ptr.
1525 * inferior.c (print_selected_inferior): Update.
1526 (print_inferior): Update.
1527 * mi/mi-main.c (print_one_inferior): Update.
1528 * exec.h (exec_filename): Remove macro.
1529 * corefile.c (get_exec_file): Update.
1530 * exec.c (exec_close): Update.
1531 (exec_file_attach): Update.
1532 * progspace.c (clone_program_space): Update.
1533 (print_program_space): Update.
1534
1535 2020-10-29 Tom Tromey <tom@tromey.com>
1536
1537 * target-section.h (struct target_section): Add constructor.
1538 * exec.c (build_section_table, add_target_sections_of_objfile):
1539 Update.
1540 * corelow.c (core_target::build_file_mappings): Update.
1541
1542 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1543
1544 PR gdb/19318
1545 * inferior.c (detach_inferior_command): Restore the current thread.
1546 (kill_inferior_command): Ditto.
1547
1548 2020-10-28 Tom de Vries <tdevries@suse.de>
1549
1550 PR symtab/26772
1551 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1552 map, check it in the "best match" loop.
1553
1554 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * m32c-tdep.c: Remove unused includes.
1557
1558 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * xtensa-tdep.c: Remove includes.
1561
1562 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1563
1564 * breakpoint.c (struct condition_command_opts): New struct.
1565 (condition_command_option_defs): New static global.
1566 (make_condition_command_options_def_group): New function.
1567 (condition_completer): Update to consider the '-force' flag.
1568 (condition_command): Use gdb::option for the '-force' flag.
1569
1570 2020-10-27 Tom de Vries <tdevries@suse.de>
1571
1572 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1573 symbols in section check.
1574
1575 2020-10-27 Tom de Vries <tdevries@suse.de>
1576
1577 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1578
1579 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580
1581 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1582 * breakpoint.c: Update the help text of the 'condition' and 'break'
1583 commands.
1584 (set_breakpoint_condition): Take a new bool parameter
1585 to control whether condition definition should be forced even when
1586 the condition expression is invalid in all of the current locations.
1587 (condition_command): Update the call to 'set_breakpoint_condition'.
1588 (find_condition_and_thread): Take the "-force-condition" flag into
1589 account.
1590 * linespec.c (linespec_keywords): Add "-force-condition" as an
1591 element.
1592 (FORCE_KEYWORD_INDEX): New #define.
1593 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1594 as a keyword.
1595 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1596 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1597 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1598 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1599
1600 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1601
1602 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1603 * breakpoint.c (set_breakpoint_location_condition): New function.
1604 (set_breakpoint_condition): Disable a breakpoint location if parsing
1605 the condition string gives an error.
1606 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1607 (build_target_condition_list): Ditto.
1608 (build_target_command_list): Ditto.
1609 (build_bpstat_chain): Ditto.
1610 (print_one_breakpoint_location): Ditto.
1611 (print_one_breakpoint): Ditto.
1612 (breakpoint_1): Ditto.
1613 (bp_location::bp_location): Ditto.
1614 (locations_are_equal): Ditto.
1615 (update_breakpoint_locations): Ditto.
1616 (enable_disable_bp_num_loc): Ditto.
1617 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1618 (find_condition_and_thread_for_sals): New static function.
1619 (create_breakpoint): Call find_condition_and_thread_for_sals.
1620 (location_to_sals): Call find_condition_and_thread_for_sals instead
1621 of find_condition_and_thread.
1622
1623 2020-10-26 Tom de Vries <tdevries@suse.de>
1624
1625 * dwarf2/read.c (process_full_comp_unit): Call
1626 dwarf2_find_base_address.
1627
1628 2020-10-26 Tom Tromey <tromey@adacore.com>
1629
1630 * gdbtypes.c (create_range_type): Revert previous patch. Add
1631 comment.
1632
1633 2020-10-26 Pedro Alves <pedro@palves.net>
1634
1635 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1636 (my_waitpid): Use gdb::handle_eintr.
1637
1638 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1639
1640 * acinclude.m4: Update ptrace.m4 path.
1641 * ptrace.m4: Moved to gdbsupport.
1642
1643 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1644
1645 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1646 instead of target_gdbarch.
1647
1648 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * jit.c (jit_reader_load_command): Pass current inferior.
1651 (jit_inferior_init): Change parameter type to inferior, use it.
1652 (jit_inferior_created): Remove.
1653 (jit_inferior_created_hook): Pass inferior parameter down.
1654 (_initialize_jit): Use jit_inferior_created_hook instead of
1655 jit_inferior_created.
1656 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1657 * infrun.c (follow_exec): Pass inferior to
1658 jit_inferior_created_hook.
1659
1660 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1663 parameter and use it.
1664 (thread_db_inferior_created): Pass inferior argument.
1665
1666 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1667
1668 * aix-thread.c (aix_thread_inferior_created): Add inferior
1669 parameter.
1670 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1671 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1672 * jit.c (jit_inferior_created): Likewise.
1673 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1674 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1675 * observable.h (inferior_created): Likewise.
1676 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1677 * symfile-mem.c (add_vsyscall_page): Likewise.
1678 * infcmd.c (post_create_inferior): Pass inferior argument.
1679
1680 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1681
1682 GDB 10.1 released.
1683
1684 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1685
1686 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1687 to ada_check_typedef.
1688
1689 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 * f-exp.y (f_parse): Rename to...
1692 (f_language::parser): ...this.
1693 * f-lang.c (f_get_encoding): Rename to...
1694 (f_language::get_encoding): ...this.
1695 (f_op_print_tab): Rename to...
1696 (f_language::op_print_tab): ...this.
1697 (exp_descriptor_f): Rename to...
1698 (f_language::exp_descriptor_tab): ...this.
1699 (class f_language): Moved to f-lang.h.
1700 (f_language::language_arch_info): New function, moved out of class
1701 declaration.
1702 (f_language::search_name_hash): Likewise.
1703 (f_language::lookup_symbol_nonlocal): Likewise.
1704 (f_language::get_symbol_name_matcher_inner): Likewise.
1705 * f-lang.h: Add 'valprint.h' include.
1706 (class f_language): Moved here from f-lang.c.
1707 * f-typeprint.c (f_type_print_args): Delete commented out
1708 declaration.
1709 (f_print_typedef): Rename to...
1710 (f_language::print_typedef): ...this.
1711 (f_print_type): Rename to...
1712 (f_language::print_type): ...this.
1713 (f_type_print_varspec_prefix): Delete declaration and rename to...
1714 (f_language::f_type_print_varspec_prefix): ...this.
1715 (f_type_print_varspec_suffix): Delete declaration and rename to...
1716 (f_language::f_type_print_varspec_suffix): ...this.
1717 (f_type_print_base): Delete declaration and rename to...
1718 (f_language::f_type_print_base): ...this.
1719 * f-valprint.c (f_value_print_inner): Rename to...
1720 (f_language::value_print_inner): ...this.
1721 * parse.c: Delete 'f-lang.h' include.
1722
1723 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * language.h (language_defn::print_type): Add variable names in
1726 declaration, and update header comment.
1727
1728 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * ada-lang.c (ada_language::demangle): Rename to...
1731 (ada_language::demangle_symbol): ...this.
1732 * c-lang.c (cplus_language::demangle): Rename to...
1733 (cplus_language::demangle_symbol): ...this.
1734 * d-lang.c (d_language::demangle): Rename to...
1735 (d_language::demangle_symbol): ...this.
1736 * f-lang.c (f_language::demangle): Rename to...
1737 (f_language::demangle_symbol): ...this.
1738 * go-lang.c (go_language::demangle): Rename to...
1739 (go_language::demangle_symbol): ...this.
1740 * language.c (language_demangle): Update call to demangle_symbol.
1741 (auto_or_unknown_language::demangle): Rename to...
1742 (auto_or_unknown_language::demangle_symbol): ...this.
1743 * language.h (language_defn::demangle): Rename to...
1744 (language_defn::demangle_symbol): ...this.
1745 * objc-lang.c (objc_language::demangle): Rename to...
1746 (objc_language::demangle_symbol): ...this.
1747 * rust-lang.c (rust_language::demangle): Rename to...
1748 (rust_language::demangle_symbol): ...this.
1749
1750 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1753 (iterate_over_file_blocks): Replace use of macro with the macros
1754 definition.
1755
1756 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1759 * valprint.c (maybe_print_array_index): Replace use of macro with
1760 the macros definition.
1761
1762 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1763
1764 * ada-lang.c (ada_language::print_array_index): Call value_print
1765 directly.
1766 * language.c (language_defn::print_array_index): Likewise.
1767 * language.h (LA_VALUE_PRINT): Delete.
1768 * valprint.c (value_print): Call value_print on the
1769 current_language directly.
1770
1771 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * language.h (LA_PRINT_TYPEDEF): Delete.
1774 * typeprint.c (typedef_print): Call print_typedef directly on the
1775 current_language object.
1776
1777 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * m2-exp.y (m2_parse): Rename to...
1780 (m2_language::parser): ...this. Update function signature.
1781 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1782 (m2_op_print): Rename to...
1783 (m2_language::op_print_tab): ...this, and make const.
1784 (exp_descriptor_modula2): Rename to...
1785 (m2_language::exp_descriptor_modula2): ...this.
1786 (class m2_language): Move to m2-lang.h.
1787 (m2_language::language_arch_info): New function, moved out of
1788 class declaration.
1789 (m2_language::printchar): New function, body from m2_printchar.
1790 (m2_language::printstr): New function, moved out of class
1791 declaration.
1792 (m2_language::emitchar): Likewise.
1793 * m2-lang.h (m2_parse): Delete declaration.
1794 (m2_print_typedef): Delete declaration.
1795 (m2_value_print_inner): Delete declaration.
1796 (class m2_language): Class declaration moved from m2-lang.c,
1797 larger functions are left in m2-lang.c.
1798 * m2-typeprint.c (m2_print_typedef): Rename to...
1799 (m2_language::print_typedef): ...this, and update function
1800 signature.
1801 * m2-valprint.c (m2_value_print_inner): Rename to...
1802 (m2_language::value_print_inner): ...this, replace use of
1803 LA_PRINT_STRING with a direct call to printstr member function,
1804 and update recursive call.
1805
1806 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * language.c (default_is_string_type_p): Delete, implementation
1809 moved into auto_or_unknown_language::is_string_type_p.
1810 (unk_op_print_tab): Moved into
1811 auto_or_unknown_language::opcode_print_table.
1812 (unknown_language_arch_info): Delete, implementation moved into
1813 auto_or_unknown_language::language_arch_info.
1814 (class auto_or_unknown_language): New class, member functions
1815 copied from unknown_language class, with some updates.
1816 (class unknown_language): Most member functions moved into
1817 auto_or_unknown_language class. Inherit from
1818 auto_or_unknown_language class.
1819 (class auto_language): Inherit from auto_or_unknown_language.
1820 Delete most member functions.
1821
1822 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1823
1824 * stabsread.c (read_member_functions): Remove gdb_assert.
1825
1826 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1827
1828 * gdbtypes.c (init_complex_type): Check target type name.
1829
1830 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1831
1832 * target-debug.h (target_debug_print_struct_target_ops_p):
1833 Remove.
1834 (target_debug_print_async_callback_ftype_p): Remove.
1835 (target_debug_print_struct_trace_state_variable_p): Remove.
1836 (target_debug_print_struct_traceframe_info_p): Remove.
1837 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1838 (target_debug_print_enum_btrace_format): Remove.
1839 (target_debug_print_enum_info_proc_what): Remove.
1840 (target_debug_print_thread_info_pp): Remove.
1841
1842 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1843
1844 * target.h (struct target_ops) <make_corefile_notes>:
1845 Change return type to unique pointer.
1846 * target.c (dummy_make_corefile_notes): Likewise.
1847 * exec.c (struct exec_target) <make_corefile_notes>:
1848 Likewise.
1849 (exec_target::make_corefile_notes): Likewise.
1850 * procfs.c (class procfs_target) <make_corefile_notes>:
1851 Likewise.
1852 (procfs_do_thread_registers): Adjust to unique pointer.
1853 (struct procfs_corefile_thread_data): Add constructor.
1854 <note_data>: Change type to unique pointer.
1855 (procfs_corefile_thread_callback): Adjust to unique pointer.
1856 (procfs_target::make_corefile_notes): Change return type to
1857 unique pointer.
1858 * target-delegates.c: Re-generate.
1859 * gcore.c (write_gcore_file_1): Adjust.
1860 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1861 New.
1862
1863 2020-10-22 Tom de Vries <tdevries@suse.de>
1864
1865 * block.c (find_block_in_blockvector): Make sure the returned block
1866 contains pc.
1867
1868 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 PR gdb/26693
1871 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1872 parameter.
1873 (load_cu): Pass existing CU.
1874 (process_imported_unit_die): Likewise.
1875 (follow_die_offset): Likewise.
1876
1877 2020-10-22 Luis Machado <luis.machado@linaro.org>
1878
1879 * corelow.c (core_target::xfer_partial): Also check for an empty
1880 m_core_unavailable_mappings vector.
1881
1882 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1885 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1886 * f-exp.y (arglist): Allow for a series of subranges.
1887 (subrange): Add cases for subranges with strides.
1888 * f-lang.c (value_f90_subarray): Catch use of array strides and
1889 throw an error.
1890 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1891
1892 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * expprint.c (print_subexp_standard): Change enum range_type to
1895 range_flag and rename variables to match.
1896 (dump_subexp_body_standard): Likewise.
1897 * expression.h (enum range_type): Rename to...
1898 (enum range_flag): ...this.
1899 (range_types): Rename to...
1900 (range_flags): ...this.
1901 * f-lang.c (value_f90_subarray): Change enum range_type to
1902 range_flag and rename variables to match.
1903 * parse.c (operator_length_standard): Likewise.
1904 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1905 range_type to range_flag.
1906 * rust-lang.c (rust_evaluate_funcall): Likewise.
1907 (rust_range): Likewise.
1908 (rust_compute_range): Likewise.
1909 (rust_subscript): Likewise.
1910
1911 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * expprint.c (print_subexp_standard): Update to reflect changes to
1914 enum range_type.
1915 (dump_subexp_body_standard): Likewise.
1916 * expression.h (enum range_type): Convert to a bit field enum, and
1917 make the enum unsigned.
1918 * f-exp.y (subrange): Update to reflect changes to enum
1919 range_type.
1920 * f-lang.c (value_f90_subarray): Likewise.
1921 * parse.c (operator_length_standard): Likewise.
1922 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1923 * rust-lang.c (rust_range): Likewise.
1924 (rust_compute_range): Likewise.
1925 (rust_subscript): Likewise.
1926
1927 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1928
1929 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1930 (displaced_step_in_progress): Fix comment.
1931
1932 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1935 * gdbarch.c: Re-generate.
1936 * gdbarch.h: Re-generate.
1937 * gcore.c (write_gcore_file_1): Adjust.
1938 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1939 constructor.
1940 <note_data>: Change type to unique pointer.
1941 <abort_iteration>: Change type to bool.
1942 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1943 (fbsd_collect_thread_registers): Return void, adjust.
1944 (struct fbsd_corefile_thread_data): Add construtor.
1945 <note_data>: Change type to unique pointer.
1946 (fbsd_corefile_thread): Adjust.
1947 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1948 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1949 to unique pointer, adjust.
1950 (struct linux_collect_regset_section_cb_data): Add constructor.
1951 <note_data>: Change type to unique pointer.
1952 <abort_iteration>: Change type to bool.
1953 (linux_collect_thread_registers): Return void, adjust.
1954 (struct linux_corefile_thread_data): Add constructor.
1955 <note_data>: Change type to unique pointer.
1956 (linux_corefile_thread): Adjust.
1957 (linux_make_corefile_notes): Return unique pointer, adjust.
1958
1959 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1962 * gdbarch.c: Re-generate.
1963 * gdbarch.h: Re-generate.
1964 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1965 bool.
1966 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1967 Likewise.
1968 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1969 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1970 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1971 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1972
1973 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1974
1975 * gdbarch.sh: Make generated predicates return bool.
1976 * gdbarch.c: Re-generate.
1977 * gdbarch.h: Re-generate.
1978
1979 2020-10-20 Tom Tromey <tom@tromey.com>
1980
1981 * varobj-iter.h (struct varobj_item): Remove typedef.
1982
1983 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1984
1985 * infrun.c (currently_stepping): Change int to bool
1986 (maybe_software_singlestep): Likewise.
1987 (show_stop_on_solib_events): Likewise.
1988 (stepping_past_nonsteppable_watchpoint): Likewise.
1989 (displaced_step_in_progress_any_inferior): Likewise.
1990 (displaced_step_in_progress_thread): Likewise.
1991 (keep_going_stepped_thread): Likewise.
1992 (thread_still_needs_step_over): Likewise.
1993 (start_step_over): Likewise.
1994 (do_target_resume): Likewise.
1995 (resume_1): Likewise.
1996 (clear_proceed_status): Likewise.
1997 (thread_still_needs_step_over_bp): Likewise.
1998 (proceed): Likewise.
1999 (switch_back_to_stepped_thread): Likewise.
2000 (adjust_pc_after_break): Likewise.
2001 (stepped_in_from): Likewise.
2002 (handle_stop_requested): Likewise.
2003 (handle_syscall_event): Likewise.
2004 (handle_no_resumed): Likewise.
2005 (handle_inferior_event): Likewise.
2006 (finish_step_over): Likewise.
2007 (handle_signal_stop): Likewise.
2008 (process_event_stop_test): Likewise.
2009
2010 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * infrun.c (get_displaced_stepping_state): Fix comment.
2013
2014 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2015
2016 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2017
2018 2020-10-19 Tom Tromey <tromey@adacore.com>
2019
2020 PR tui/26719
2021 * tui/tui-winsource.h (struct tui_source_window_base)
2022 <refresh_window>: Rename from refresh_pad.
2023 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2024 Rename from refresh_pad.
2025 (tui_source_window_base::show_source_content)
2026 (tui_source_window_base::do_scroll_horizontal): Update.
2027
2028 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2029
2030 * thread.c (_initialize_thread): Fine-tune the help text of
2031 'info threads'.
2032
2033 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2034
2035 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2036
2037 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2038
2039 * breakpoint.c (handle_jit_event): Add an argument, change how
2040 `jit_event_handler` is called.
2041
2042 2020-10-17 Tom Tromey <tom@tromey.com>
2043
2044 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2045 (scan_xcoff_symtab): Update.
2046 * psymtab.h (class psymtab_storage) <global_psymbols,
2047 static_psymbols, current_global_psymbols,
2048 current_static_psymbols>: Remove.
2049 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2050 (match_partial_symbol, lookup_partial_symbol): Update.
2051 (print_partial_symbols): Change parameters.
2052 (dump_psymtab, recursively_search_psymtabs)
2053 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2054 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2055 (concat): Remove.
2056 (end_psymtab_common): Simplify.
2057 (append_psymbol_to_list): Change parameters.
2058 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2059 (init_psymbol_list): Simplify.
2060 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2061 * psympriv.h (struct partial_symtab) <empty>: New method.
2062 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2063 Remove.
2064 <global_psymbols, static_psymbols>: New members.
2065 <add_psymbol>: New methods.
2066 (add_psymbol_to_list): Don't declare.
2067 (psymbol_placement): Move earlier.
2068 * mdebugread.c (parse_partial_symbols): Update.
2069 (handle_psymbol_enumerators): Change parameters.
2070 (mdebug_expand_psymtab): Update.
2071 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2072 (add_partial_symbol): Update.
2073 * dwarf2/index-write.c (write_psymbols): Change parameters.
2074 (write_one_signatured_type): Update.
2075 (recursively_count_psymbols): Update.
2076 (recursively_write_psymbols): Update.
2077 (class debug_names) <recursively_write_psymbols>: Update.
2078 <write_psymbols>: Change parameters.
2079 <write_one_signatured_type>: Update.
2080 * dbxread.c (read_dbx_symtab): Update.
2081 (dbx_end_psymtab): Use partial_symtab::empty.
2082 * ctfread.c (struct ctf_context) <pst>: New member.
2083 (create_partial_symtab): Set it.
2084 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2085 (scan_partial_symbols): Use the psymtab's context. Update.
2086
2087 2020-10-17 Tom Tromey <tom@tromey.com>
2088
2089 * valprint.c (generic_value_print): Remove comment.
2090 * m2-valprint.c (m2_value_print_inner): Remove comment.
2091 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2092 type.
2093
2094 2020-10-17 Tom de Vries <tdevries@suse.de>
2095
2096 PR symtab/26317
2097 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2098 symbol main.
2099
2100 2020-10-14 Tom de Vries <tdevries@suse.de>
2101
2102 PR gdb/26733
2103 * solib.c (solib_contains_address_p): Handle
2104 'solib->sections == nullptr'.
2105
2106 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 PR gdb/26642
2109 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2110 target can't do async.
2111 * target.c (target_wait): Assert that we don't pass
2112 TARGET_WNOHANG to a target that can't async.
2113
2114 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2115
2116 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2117 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2118 * alpha-bsd-nat.c: Adjust include.
2119 * alpha-bsd-tdep.h: Adjust comment.
2120 * alpha-nbsd-tdep.c: Rename to ...
2121 * alpha-netbsd-tdep.c: ... this, adjust include.
2122 * amd64-nbsd-nat.c: Rename to ...
2123 * amd64-netbsd-nat.c: ... this, adjust include.
2124 * amd64-nbsd-tdep.c: Rename to ...
2125 * amd64-netbsd-tdep.c: ... this, adjust include.
2126 * amd64-tdep.h: Adjust include.
2127 * arm-nbsd-nat.c: Rename to ...
2128 * arm-netbsd-nat.c: ... this, adjust include.
2129 * arm-nbsd-tdep.c: Rename to ...
2130 * arm-netbsd-tdep.c: ... this, adjust include.
2131 * arm-nbsd-tdep.h: Rename to ...
2132 * arm-netbsd-tdep.h: ... this, adjust include.
2133 * configure.nat: Adjust file lists.
2134 * configure.tgt: Likewise.
2135 * hppa-nbsd-nat.c: Rename to ...
2136 * hppa-netbsd-nat.c: ... this, adjust include.
2137 * hppa-nbsd-tdep.c: Rename to ...
2138 * hppa-netbsd-tdep.c: ... this, adjust include.
2139 * i386-nbsd-nat.c: Rename to ...
2140 * i386-netbsd-nat.c: ... this, adjust include.
2141 * i386-nbsd-tdep.c: Rename to ...
2142 * i386-netbsd-tdep.c: ... this, adjust include.
2143 * m68k-bsd-nat.c: Adjust include.
2144 * mips-nbsd-nat.c: Rename to ...
2145 * mips-netbsd-nat.c: ... this, adjust include.
2146 * mips-nbsd-tdep.c: Rename to ...
2147 * mips-netbsd-tdep.c: ... this, adjust include.
2148 * mips-nbsd-tdep.h: Rename to ...
2149 * mips-netbsd-tdep.h: ... this.
2150 * nbsd-nat.c: Rename to ...
2151 * netbsd-nat.c: ... this, adjust include.
2152 * nbsd-nat.h: Rename to ...
2153 * netbsd-nat.h: ... this, adjust include.
2154 * nbsd-tdep.c: Rename to ...
2155 * netbsd-tdep.c: ... this, adjust include.
2156 * nbsd-tdep.h: Rename to ...
2157 * netbsd-tdep.h: ... this.
2158 * ppc-nbsd-nat.c: Rename to ...
2159 * ppc-netbsd-nat.c: ... this, adjust include.
2160 * ppc-nbsd-tdep.c: Rename to ...
2161 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2162 * ppc-nbsd-tdep.h: Rename to ...
2163 * ppc-netbsd-tdep.h: ... this.
2164 * sh-nbsd-nat.c: Rename to ...
2165 * sh-netbsd-nat.c: ... this, adjust include.
2166 * sh-nbsd-tdep.c: Rename to ...
2167 * sh-netbsd-tdep.c: ... this, adjust include.
2168 * sparc-nbsd-nat.c: Rename to ...
2169 * sparc-netbsd-nat.c: ... this.
2170 * sparc-nbsd-tdep.c: Rename to ...
2171 * sparc-netbsd-tdep.c: ... this, adjust include.
2172 * sparc64-nbsd-nat.c: Rename to ...
2173 * sparc64-netbsd-nat.c: ... this.
2174 * sparc64-nbsd-tdep.c: Rename to ...
2175 * sparc64-netbsd-tdep.c: ... this, adjust include.
2176 * sparc64-tdep.h: Adjust comment.
2177 * vax-bsd-nat.c: Adjust include.
2178 * vax-nbsd-tdep.c: Rename to ...
2179 * vax-netbsd-tdep.c: ... this, adjust include.
2180
2181 2020-10-12 Tom Tromey <tom@tromey.com>
2182
2183 * target.h (struct target_ops) <get_section_table>: Update.
2184 (target_get_section_table): Update.
2185 * target.c (target_get_section_table, target_section_by_addr)
2186 (memory_xfer_partial_1): Update.
2187 * target-section.h (target_section_table): Now an alias.
2188 * target-delegates.c: Rebuild.
2189 * target-debug.h (target_debug_print_target_section_table_p):
2190 Rename from target_debug_print_struct_target_section_table_p.
2191 * symfile.c (build_section_addr_info_from_section_table): Update.
2192 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2193 * solib-svr4.c (scan_dyntag): Update.
2194 * solib-dsbt.c (scan_dyntag): Update.
2195 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2196 Update.
2197 * record-full.c (record_full_core_target::xfer_partial): Update.
2198 * progspace.h (struct program_space) <target_sections>: Update.
2199 * exec.h (print_section_info): Update.
2200 * exec.c (exec_target::close, build_section_table)
2201 (add_target_sections, add_target_sections_of_objfile)
2202 (remove_target_sections, exec_on_vfork)
2203 (section_table_available_memory)
2204 (section_table_xfer_memory_partial)
2205 (exec_target::get_section_table, exec_target::xfer_partial)
2206 (print_section_info, set_section_command)
2207 (exec_set_section_address, exec_target::has_memory): Update.
2208 * corelow.c (core_target::build_file_mappings)
2209 (core_target::xfer_partial, core_target::info_proc_mappings)
2210 (core_target::info_proc_mappings): Update.
2211 * bfd-target.c (class target_bfd): Update
2212
2213 2020-10-12 Tom Tromey <tom@tromey.com>
2214
2215 * progspace.c (program_space::~program_space): Don't call
2216 clear_section_table.
2217 * exec.h (clear_section_table): Don't declare.
2218 * exec.c (exec_target::close): Update.
2219 (clear_section_table): Remove.
2220
2221 2020-10-12 Tom Tromey <tom@tromey.com>
2222
2223 * exec.c (add_target_sections_of_objfile): Simplify.
2224
2225 2020-10-12 Tom Tromey <tom@tromey.com>
2226
2227 * solib.c (solib_map_sections): Update.
2228 * record-full.c (record_full_core_open_1): Update.
2229 * exec.h (build_section_table): Return a target_section_table.
2230 * exec.c (exec_file_attach): Update.
2231 (build_section_table): Return a target_section_table.
2232 * corelow.c (core_target::core_target): Update.
2233 * bfd-target.c (target_bfd::target_bfd): Update.
2234
2235 2020-10-12 Tom Tromey <tom@tromey.com>
2236
2237 * target.c (target_section_by_addr, memory_xfer_partial_1):
2238 Update.
2239 * target-section.h (struct target_section_table): Use
2240 std::vector.
2241 * symfile.h (build_section_addr_info_from_section_table): Take a
2242 target_section_table.
2243 * symfile.c (build_section_addr_info_from_section_table): Take a
2244 target_section_table.
2245 * solist.h (struct so_list) <sections>: Change type.
2246 <sections_end>: Remove.
2247 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2248 (solib_contains_address_p): Update.
2249 * solib-svr4.c (scan_dyntag): Update.
2250 * solib-dsbt.c (scan_dyntag): Update.
2251 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2252 Update.
2253 * record-full.c (record_full_core_start, record_full_core_end):
2254 Remove.
2255 (record_full_core_sections): New global.
2256 (record_full_core_open_1, record_full_core_target::xfer_partial):
2257 Update.
2258 * exec.h (build_section_table, section_table_xfer_memory_partial)
2259 (add_target_sections): Take a target_section_table.
2260 * exec.c (exec_file_attach, clear_section_table): Update.
2261 (resize_section_table): Remove.
2262 (build_section_table, add_target_sections): Take a
2263 target_section_table.
2264 (add_target_sections_of_objfile, remove_target_sections)
2265 (exec_on_vfork): Update.
2266 (section_table_available_memory): Take a target_section_table.
2267 (section_table_read_available_memory): Update.
2268 (section_table_xfer_memory_partial): Take a target_section_table.
2269 (print_section_info, set_section_command)
2270 (exec_set_section_address, exec_target::has_memory): Update.
2271 * corelow.c (class core_target) <m_core_section_table,
2272 m_core_file_mappings>: Remove braces.
2273 <~core_target>: Remove.
2274 (core_target::core_target): Update.
2275 (core_target::~core_target): Remove.
2276 (core_target::build_file_mappings)
2277 (core_target::xfer_memory_via_mappings)
2278 (core_target::xfer_partial, core_target::info_proc_mappings):
2279 Update.
2280 * bfd-target.c (target_bfd::xfer_partial): Update.
2281 (target_bfd::target_bfd): Update.
2282 (target_bfd::~target_bfd): Remove.
2283
2284 2020-10-12 Tom Tromey <tom@tromey.com>
2285
2286 * target.h (struct target_section, struct target_section_table):
2287 Move to target-section.h.
2288 * target-section.h: New file.
2289
2290 2020-10-12 Pedro Alves <pedro@palves.net>
2291
2292 PR exp/26602
2293 * valops.c (struct struct_field_searcher): New.
2294 (update_search_result): Rename to ...
2295 (struct_field_searcher::update_result): ... this. Simplify
2296 prototype. Record all found fields.
2297 (do_search_struct_field): Rename to ...
2298 (struct_field_searcher::search): ... this. Simplify prototype.
2299 Maintain stack of visited baseclass path. Call update_result for
2300 fields too. Keep searching fields in baseclasses instead of
2301 stopping at the first found field.
2302 (search_struct_field): Use struct_field_searcher. When looking
2303 for fields, report ambiguous access attempts.
2304
2305 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * frame.c (inside_main_func): Check full symbols as well as
2308 minimal symbols.
2309
2310 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2311
2312 * ada-lang.c (advance_wild_match): Rewrite the function's
2313 description. Change the type of target0, t0 and t1 to char.
2314
2315 2020-10-09 Tom Tromey <tromey@adacore.com>
2316
2317 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2318
2319 2020-10-09 Tom Tromey <tromey@adacore.com>
2320
2321 * ada-lang.h (ada_encode): Return std::string.
2322 * ada-lang.c (ada_encode_1): Return std::string.
2323 (ada_encode): Likewise.
2324 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2325 Update.
2326 * ada-exp.y (block_lookup, write_var_or_type): Update.
2327
2328 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2329
2330 PR exp/26714
2331 * printcmd.c (print_formatted): Handle void results as
2332 unformatted prints.
2333
2334 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * arch/aarch32.c (aarch32_create_target_description): Release the
2337 target_desc_up as late as possible.
2338 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2339 * arch/amd64.c (amd64_create_target_description): Likewise.
2340 * arch/arc.c (arc_create_target_description): Return a
2341 target_desc_up, don't release it.
2342 * arch/arc.h (arc_create_target_description): Update declaration.
2343 (arc_lookup_target_description): Move target_desc_up into the
2344 cache, and return a borrowed pointer.
2345 * arch/arm.c (arm_create_target_description): Release the
2346 target_desc_up as late as possible.
2347 * arch/i386.c (i386_create_target_description): Likewise.
2348 * arch/riscv.h (riscv_create_target_description): Update
2349 declaration to match definition.
2350 * arch/tic6x.c (tic6x_create_target_description): Release the
2351 target_desc_up as late as possible.
2352
2353 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2356 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2357
2358 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2359
2360 * source.c (directory_command): Notify observers that "directories"
2361 parameter has changed.
2362
2363 2020-10-08 Tom Tromey <tom@tromey.com>
2364
2365 * cli/cli-cmds.c (print_disassembly): Style function name and
2366 addresses. Add _() wrappers.
2367
2368 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2369
2370 * NEWS: Mention ARC support in GDBserver.
2371
2372 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * arch/aarch32.c (aarch32_create_target_description): Release
2375 unique_ptr returned from allocate_target_description.
2376 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2377 * arch/amd64.c (amd64_create_target_description): Likewise.
2378 * arch/arc.c (arc_create_target_description): Likewise.
2379 * arch/arm.c (arm_create_target_description): Likewise.
2380 * arch/i386.c (i386_create_target_description): Likewise.
2381 * arch/riscv.c (riscv_create_target_description): Update return
2382 type. Handle allocate_target_description returning a unique_ptr.
2383 (riscv_lookup_target_description): Update to handle unique_ptr.
2384 * arch/tic6x.c (tic6x_create_target_description): Release
2385 unique_ptr returned from allocate_target_description.
2386 * features/microblaze-with-stack-protect.c: Regenerate.
2387 * features/microblaze.c: Regenerate.
2388 * features/mips-dsp-linux.c: Regenerate.
2389 * features/mips-linux.c: Regenerate.
2390 * features/mips64-dsp-linux.c: Regenerate.
2391 * features/mips64-linux.c: Regenerate.
2392 * features/nds32.c: Regenerate.
2393 * features/nios2.c: Regenerate.
2394 * features/or1k.c: Regenerate.
2395 * features/rs6000/powerpc-32.c: Regenerate.
2396 * features/rs6000/powerpc-32l.c: Regenerate.
2397 * features/rs6000/powerpc-403.c: Regenerate.
2398 * features/rs6000/powerpc-403gc.c: Regenerate.
2399 * features/rs6000/powerpc-405.c: Regenerate.
2400 * features/rs6000/powerpc-505.c: Regenerate.
2401 * features/rs6000/powerpc-601.c: Regenerate.
2402 * features/rs6000/powerpc-602.c: Regenerate.
2403 * features/rs6000/powerpc-603.c: Regenerate.
2404 * features/rs6000/powerpc-604.c: Regenerate.
2405 * features/rs6000/powerpc-64.c: Regenerate.
2406 * features/rs6000/powerpc-64l.c: Regenerate.
2407 * features/rs6000/powerpc-7400.c: Regenerate.
2408 * features/rs6000/powerpc-750.c: Regenerate.
2409 * features/rs6000/powerpc-860.c: Regenerate.
2410 * features/rs6000/powerpc-altivec32.c: Regenerate.
2411 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2412 * features/rs6000/powerpc-altivec64.c: Regenerate.
2413 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2414 * features/rs6000/powerpc-e500.c: Regenerate.
2415 * features/rs6000/powerpc-e500l.c: Regenerate.
2416 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2417 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2418 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2419 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2420 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2421 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2422 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2423 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2424 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2425 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2426 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2427 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2428 * features/rs6000/powerpc-vsx32.c: Regenerate.
2429 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2430 * features/rs6000/powerpc-vsx64.c: Regenerate.
2431 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2432 * features/rs6000/rs6000.c: Regenerate.
2433 * features/rx.c: Regenerate.
2434 * features/s390-gs-linux64.c: Regenerate.
2435 * features/s390-linux32.c: Regenerate.
2436 * features/s390-linux32v1.c: Regenerate.
2437 * features/s390-linux32v2.c: Regenerate.
2438 * features/s390-linux64.c: Regenerate.
2439 * features/s390-linux64v1.c: Regenerate.
2440 * features/s390-linux64v2.c: Regenerate.
2441 * features/s390-te-linux64.c: Regenerate.
2442 * features/s390-tevx-linux64.c: Regenerate.
2443 * features/s390-vx-linux64.c: Regenerate.
2444 * features/s390x-gs-linux64.c: Regenerate.
2445 * features/s390x-linux64.c: Regenerate.
2446 * features/s390x-linux64v1.c: Regenerate.
2447 * features/s390x-linux64v2.c: Regenerate.
2448 * features/s390x-te-linux64.c: Regenerate.
2449 * features/s390x-tevx-linux64.c: Regenerate.
2450 * features/s390x-vx-linux64.c: Regenerate.
2451 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2452 from allocate_target_description.
2453 * target-descriptions.c (allocate_target_description): Update
2454 return type.
2455 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2456 allocate_target_description.
2457
2458 2020-10-07 Tom Tromey <tromey@adacore.com>
2459
2460 * unittests/search-memory-selftests.c: New file.
2461 * Makefile.in (SELFTESTS_SRCS): Add
2462 unittests/search-memory-selftests.c.
2463
2464 2020-10-07 Tom Tromey <tromey@adacore.com>
2465
2466 PR gdb/16930:
2467 * findcmd.c (_initialize_mem_search): Mention that the range is
2468 inclusive.
2469
2470 2020-10-07 Tom Tromey <tromey@adacore.com>
2471
2472 * target.h (simple_search_memory): Don't declare.
2473 * target.c (simple_search_memory): Move to gdbsupport.
2474 (default_search_memory): Update.
2475 * remote.c (remote_target::search_memory): Update.
2476
2477 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * Makefile.in (COMPILE): Add CXXFLAGS.
2480 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2481 (check-headers): Add CXXFLAGS.
2482
2483 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2484
2485 * arc-linux-tdep.h: New file.
2486 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2487 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2488 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2489 arc_linux_gregset, arc_linux_v2_regset,
2490 arc_linux_iterate_over_regset_sections,
2491 arc_linux_core_read_description): Implement.
2492 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2493 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2494 (arc_gdbarch_features_create): Add.
2495 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2496
2497 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2498
2499 * arch/arc.h: Rename "arc_gdbarch_features" to
2500 "arc_arch_features".
2501 * arc-tdep.h: Likewise.
2502 * arc-tdep.c: Likewise.
2503
2504 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2505
2506 * infcmd.c (attach_command): Remove the redundant call to
2507 `clear_proceed_status`.
2508
2509 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2510
2511 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2512
2513 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2514
2515 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2516 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2517 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2518
2519 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2522 (_initialize_break_catch_sig): Don't allocate array.
2523
2524 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 * symtab.c (find_pc_line): Return unmapped addresses when the
2527 requested address is also unmapped.
2528
2529 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2530
2531 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2532 tui/tui-out.h.
2533
2534 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2537 type::is_vector instead of TYPE_VECTOR.
2538
2539 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * auto-load.c (auto_load_objfile_script_1): Don't use
2542 debugfile_holder as temporary variable when stripping drive
2543 letter.
2544
2545 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2546
2547 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2548 Add TYPE_CODE_COMPLEX.
2549 (amd64_windows_return_value): Fix types returned via XMM0.
2550
2551 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2552
2553 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2554 AArch64/ARM maintainers.
2555
2556 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * NEWS: Mention set/show debug event-loop.
2559
2560 2020-10-02 Tom Tromey <tromey@adacore.com>
2561
2562 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2563 REG_EXTENDED.
2564
2565 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2566
2567 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2568 * procfs.c (procfs_inferior_created): Remove.
2569 (_initialize_procfs): Don't register procfs_inferior_created.
2570
2571 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2572
2573 * async-event.c (invoke_async_signal_handlers): Add debug
2574 print.
2575 (check_async_event_handlers): Likewise.
2576 * event-top.c (show_debug_event_loop): New function.
2577 (_initialize_event_top): Register "set debug event-loop"
2578 setting.
2579
2580 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2583 * debug.h: Remove.
2584 * infrun.c: Include gdbsupport/common-debug.h.
2585 * linux-nat.c: Likewise.
2586
2587 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * async-event.h (create_async_signal_handler): Add name
2590 parameter.
2591 (create_async_event_handler): Likewise.
2592 * async-event.c (struct async_signal_handler) <name>: New field.
2593 (struct async_event_handler) <name>: New field.
2594 (create_async_signal_handler): Assign name.
2595 (create_async_event_handler): Assign name.
2596 * event-top.c (async_init_signals): Pass name when creating
2597 handler.
2598 * infrun.c (_initialize_infrun): Likewise.
2599 * record-btrace.c (record_btrace_push_target): Likewise.
2600 * record-full.c (record_full_open): Likewise.
2601 * remote-notif.c (remote_notif_state_allocate): Likewise.
2602 * remote.c (remote_target::open_1): Likewise.
2603 * tui/tui-win.c (tui_initialize_win): Likewise.
2604
2605 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2606
2607 * async-event.c (initialize_async_signal_handlers): Pass name to
2608 add_file_handler
2609 * event-top.c (ui_register_input_event_handler): Likewise.
2610 * linux-nat.c (linux_nat_target::async): Likewise.
2611 * run-on-main-thread.c (_initialize_run_on_main_thread):
2612 Likewise
2613 * ser-base.c (reschedule): Likewise.
2614 (ser_base_async): Likewise.
2615 * tui/tui-io.c: Likewise.
2616 * top.h (struct ui) <num>: New field.
2617 * top.c (highest_ui_num): New variable.
2618 (ui::ui): Initialize num.
2619
2620 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 * observable.h <inferior_created>: Remove parameters. Update all
2623 listeners.
2624 * inferior.h (post_create_inferior): Remove target parameter.
2625 Update all callers.
2626
2627 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2628
2629 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2630 and DW_MACRO_undef_strx.
2631 (dwarf_decode_macros): Likewise
2632 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2633 which is the value of DW_AT_str_offsets_base.
2634 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2635 str_offsets_base.
2636
2637 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2638
2639 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2640
2641 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2642
2643 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2644 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2645
2646 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2647
2648 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2649
2650 2020-09-30 Tom de Vries <tdevries@suse.de>
2651
2652 PR symtab/26683
2653 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2654
2655 2020-09-30 Tom Tromey <tromey@adacore.com>
2656
2657 * dwarf2/read.c (handle_variant): Use constant_value.
2658
2659 2020-09-29 Tom Tromey <tom@tromey.com>
2660
2661 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2662 (read_file_scope, dwarf2_get_pc_bounds)
2663 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2664 (read_structure_type, handle_struct_member_die)
2665 (read_enumeration_type, read_array_type, read_set_type)
2666 (read_tag_pointer_type, read_tag_reference_type)
2667 (read_subroutine_type, read_base_type, read_subrange_type)
2668 (read_full_die_1, partial_die_info::read)
2669 (partial_die_info::read, by, new_symbol)
2670 (dwarf2_const_value_data, dwarf2_const_value_attr)
2671 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2672 (prepare_one_comp_unit): Update.
2673 * dwarf2/attribute.h (DW_UNSND): Remove.
2674
2675 2020-09-29 Tom Tromey <tom@tromey.com>
2676
2677 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2678 (read_subroutine_type, partial_die_info::read)
2679 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2680 (dwarf2_add_member_fn): Update.
2681 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2682 * dwarf2/attribute.c (attribute::as_boolean): New method.
2683
2684 2020-09-29 Tom Tromey <tom@tromey.com>
2685
2686 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2687 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2688 method.
2689 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2690
2691 2020-09-29 Tom Tromey <tom@tromey.com>
2692
2693 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2694 the attribute's form.
2695
2696 2020-09-29 Tom Tromey <tom@tromey.com>
2697
2698 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2699 (dwarf2_add_member_fn): Update.
2700 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2701 * dwarf2/attribute.c (attribute::defaulted): New method, from
2702 is_valid_DW_AT_defaulted.
2703
2704 2020-09-29 Tom Tromey <tom@tromey.com>
2705
2706 * dwarf2/read.c (dw2_get_file_names_reader)
2707 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2708 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2709 (dwarf2_symbol_mark_computed): Use as_unsigned.
2710 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2711 method.
2712 <form_is_section_offset>: Update comment.
2713
2714 2020-09-29 Tom Tromey <tom@tromey.com>
2715
2716 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2717 dwarf2_default_access_attribute. Look up attribute.
2718 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2719 Update.
2720
2721 2020-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/read.c (skip_one_die): Update.
2724 (read_full_die_1): Change how reprocessing is done.
2725 (partial_die_info::read): Update.
2726 (read_attribute_value): Remove need_reprocess parameter.
2727 (read_attribute): Likewise.
2728 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2729 New method.
2730
2731 2020-09-29 Tom Tromey <tom@tromey.com>
2732
2733 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2734 (dwarf2_const_value_attr, dump_die_shallow)
2735 (dwarf2_fetch_constant_bytes): Update.
2736 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2737 comment.
2738 <set_address>: New method.
2739 (DW_ADDR): Remove.
2740 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2741 (attribute::as_string, attribute::as_address): Add assert.
2742
2743 2020-09-29 Tom Tromey <tom@tromey.com>
2744
2745 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2746 (read_attribute_reprocess, read_attribute_value): Update.
2747 (read_attribute): Clear requires_reprocessing.
2748 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2749 form_requires_reprocessing>: New methods.
2750 <string_init>: Clear requires_reprocessing.
2751 <set_unsigned_reprocess>: New method.
2752 <name>: Shrink by one bit.
2753 <requires_reprocessing>: New member.
2754 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2755 method.
2756
2757 2020-09-29 Tom Tromey <tom@tromey.com>
2758
2759 * dwarf2/read.c (read_attribute_value): Update.
2760 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2761 set_unsigned>: New methods.
2762 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2763
2764 2020-09-29 Tom Tromey <tom@tromey.com>
2765
2766 * dwarf2/read.c (get_alignment, read_array_order)
2767 (read_attribute_value, dwarf2_const_value_attr)
2768 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2769 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2770 New methods.
2771 (DW_SND): Remove.
2772
2773 2020-09-29 Tom Tromey <tom@tromey.com>
2774
2775 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2776 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2777 Update.
2778 * dwarf2/attribute.h (struct attribute) <as_signature,
2779 set_signature>: New methods.
2780 (DW_SIGNATURE): Remove.
2781
2782 2020-09-29 Tom Tromey <tom@tromey.com>
2783
2784 * dwarf2/read.c (read_call_site_scope)
2785 (handle_data_member_location, dwarf2_add_member_fn)
2786 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2787 (partial_die_info::read, read_attribute_value)
2788 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2789 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2790 (dwarf2_symbol_mark_computed): Update.
2791 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2792 methods.
2793 (DW_BLOCK): Remove.
2794 * dwarf2/attribute.c (attribute::form_is_block): Add
2795 DW_FORM_data16.
2796
2797 2020-09-29 Tom Tromey <tom@tromey.com>
2798
2799 * dwarf2/read.c (read_cutu_die_from_dwo)
2800 (read_attribute_reprocess, read_attribute_value, read_attribute)
2801 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2802 (dwarf2_fetch_constant_bytes): Update.
2803 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2804 <set_string_noncanonical, set_string_canonical>: New methods.
2805 <string_is_canonical>: Update comment.
2806 <canonical_string_p>: Add assert.
2807 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2808 * dwarf2/attribute.c (attribute::form_is_string): New method.
2809 (attribute::string): Use it.
2810
2811 2020-09-29 Tom Tromey <tom@tromey.com>
2812
2813 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2814 (dump_die_shallow): Use canonical_string_p.
2815 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2816 method.
2817
2818 2020-09-29 Tom Tromey <tom@tromey.com>
2819
2820 * dwarf2/read.c (partial_die_info::read)
2821 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2822 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2823 attribute::as_string.
2824
2825 2020-09-29 Tom Tromey <tom@tromey.com>
2826
2827 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2828 DW_ADDR.
2829 (attribute::string): Don't use DW_STRING.
2830 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2831 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2832
2833 2020-09-29 Tom Tromey <tom@tromey.com>
2834
2835 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2836 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2837 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2838 * dwarf2/attribute.h (struct attribute): Rename methods.
2839 * dwarf2/attribute.c (attribute::as_address): Rename from
2840 value_as_address.
2841 (attribute::as_string): Rename from value_as_string.
2842
2843 2020-09-29 Tom Tromey <tom@tromey.com>
2844
2845 * dwarf2/read.c (partial_die_info::read) <case
2846 DW_AT_linkage_name>: Use value_as_string.
2847 (dwarf2_string_attr): Use value_as_string.
2848 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2849 method.
2850 * dwarf2/attribute.c (attribute::value_as_string): New method.
2851
2852 2020-09-29 Pedro Alves <pedro@palves.net>
2853
2854 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2855 defined before using '#pragma GCC diagnostic' instead of checking
2856 __clang__.
2857
2858 2020-09-28 Tom Tromey <tom@tromey.com>
2859
2860 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2861 (handle_signal_stop): Update.
2862 * procfs.c (procfs_target::insert_watchpoint): Update.
2863 * target.h (target_have_steppable_watchpoint): Now a function.
2864
2865 2020-09-28 Tom Tromey <tom@tromey.com>
2866
2867 * infrun.c (set_schedlock_func): Update.
2868 * target.h (target_can_lock_scheduler): Now a function.
2869
2870 2020-09-28 Tom Tromey <tom@tromey.com>
2871
2872 * inferior.h (class inferior) <has_execution>: Update.
2873 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2874 * valops.c (find_function_in_inferior)
2875 (value_allocate_space_in_inferior): Update.
2876 * top.c (kill_or_detach): Update.
2877 * target.c (target_preopen, set_target_permissions): Update.
2878 (target_has_execution_current): Remove.
2879 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2880 Update.
2881 * solib.c (update_solib_list, reload_shared_libraries): Update.
2882 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2883 * solib-dsbt.c (enable_break): Update.
2884 * score-tdep.c (score7_fetch_inst): Update.
2885 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2886 Update.
2887 * remote.c (remote_target::start_remote)
2888 (remote_target::remote_check_symbols, remote_target::open_1)
2889 (remote_target::remote_detach_1, remote_target::verify_memory)
2890 (remote_target::xfer_partial, remote_target::read_description)
2891 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2892 * record-full.c (record_full_open_1): Update.
2893 * record-btrace.c (record_btrace_target_open): Update.
2894 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2895 (value_nsstring): Update.
2896 * linux-thread-db.c (add_thread_db_info)
2897 (thread_db_find_new_threads_silently, check_thread_db_callback)
2898 (try_thread_db_load_1, record_thread): Update.
2899 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2900 Update.
2901 * linux-fork.c (checkpoint_command): Update.
2902 * infrun.c (set_non_stop, set_observer_mode)
2903 (check_multi_target_resumption, for_each_just_stopped_thread)
2904 (maybe_remove_breakpoints, normal_stop)
2905 (class infcall_suspend_state): Update.
2906 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2907 (info_program_command, attach_command): Update.
2908 * infcall.c (call_function_by_hand_dummy): Update.
2909 * inf-loop.c (inferior_event_handler): Update.
2910 * gcore.c (gcore_command, derive_heap_segment): Update.
2911 * exec.c (exec_file_command): Update.
2912 * eval.c (evaluate_subexp): Update.
2913 * compile/compile.c (compile_to_object): Update.
2914 * cli/cli-dump.c (restore_command): Update.
2915 * breakpoint.c (update_watchpoint)
2916 (update_inserted_breakpoint_locations)
2917 (insert_breakpoint_locations, get_bpstat_thread): Update.
2918 * target.h (target_has_execution): Remove macro.
2919 (target_has_execution_current): Don't declare.
2920 (target_has_execution): Rename from target_has_execution_1. Add
2921 argument default.
2922
2923 2020-09-28 Tom Tromey <tom@tromey.com>
2924
2925 * mi/mi-main.c (exec_reverse_continue)
2926 (mi_cmd_list_target_features): Update.
2927 * infrun.c (set_exec_direction_func): Update.
2928 * target.c (default_execution_direction): Update.
2929 * reverse.c (exec_reverse_once): Update.
2930 * target.h (target_can_execute_reverse): Now a function.
2931
2932 2020-09-28 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-regs.c (tui_get_register)
2935 (tui_data_window::show_registers): Update.
2936 * thread.c (scoped_restore_current_thread::restore)
2937 (scoped_restore_current_thread::scoped_restore_current_thread):
2938 Update.
2939 * regcache-dump.c (regcache_print): Update.
2940 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2941 Update.
2942 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2943 * mep-tdep.c (current_me_module, current_options): Update.
2944 * linux-thread-db.c (thread_db_load): Update.
2945 * infcmd.c (registers_info, info_vector_command)
2946 (info_float_command): Update.
2947 * ia64-tdep.c (ia64_frame_prev_register)
2948 (ia64_sigtramp_frame_prev_register): Update.
2949 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2950 * gcore.c (derive_stack_segment): Update.
2951 * frame.c (get_current_frame, has_stack_frames): Update.
2952 * findvar.c (language_defn::read_var_value): Update.
2953 * arm-tdep.c (arm_pc_is_thumb): Update.
2954 * target.c (target_has_registers): Rename from
2955 target_has_registers_1.
2956 * target.h (target_has_registers): Remove macro.
2957 (target_has_registers): Rename from target_has_registers_1.
2958
2959 2020-09-28 Tom Tromey <tom@tromey.com>
2960
2961 * windows-tdep.c (tlb_make_value): Update.
2962 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2963 * thread.c (scoped_restore_current_thread::restore)
2964 (scoped_restore_current_thread::scoped_restore_current_thread)
2965 (thread_command): Update.
2966 * stack.c (backtrace_command_1, frame_apply_level_command)
2967 (frame_apply_all_command, frame_apply_command): Update.
2968 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2969 Update.
2970 * gcore.c (derive_stack_segment): Update.
2971 * frame.c (get_current_frame, has_stack_frames): Update.
2972 * auxv.c (info_auxv_command): Update.
2973 * ada-tasks.c (ada_build_task_list): Update.
2974 * target.c (target_has_stack): Rename from target_has_stack_1.
2975 * target.h (target_has_stack): Remove macro.
2976 (target_has_stack): Rename from target_has_stack_1.
2977
2978 2020-09-28 Tom Tromey <tom@tromey.com>
2979
2980 * target.c (target_has_memory): Rename from target_has_memory_1.
2981 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2982 * thread.c (scoped_restore_current_thread::restore)
2983 (scoped_restore_current_thread::scoped_restore_current_thread):
2984 Update.
2985 * frame.c (get_current_frame, has_stack_frames): Update.
2986 * target.h (target_has_memory): Remove macro.
2987 (target_has_memory): Rename from target_has_memory_1.
2988
2989 2020-09-28 Tom Tromey <tom@tromey.com>
2990
2991 * target.c (target_has_all_memory_1): Remove.
2992 * target.h (target_has_all_memory): Remove define.
2993 (target_has_all_memory_1): Don't declare.
2994
2995 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * ser-base.c: Adjust comments formatting.
2998
2999 2020-09-27 Tom Tromey <tom@tromey.com>
3000
3001 PR tui/25342:
3002 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3003
3004 2020-09-27 Tom Tromey <tom@tromey.com>
3005
3006 PR tui/25342:
3007 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3008
3009 2020-09-27 Tom Tromey <tom@tromey.com>
3010
3011 * unittests/tui-selftests.c: Update.
3012 * tui/tui-winsource.h (struct tui_source_window_base)
3013 <extra_margin, show_line_number, refresh_pad>: New methods.
3014 <m_max_length, m_pad>: New members.
3015 (tui_copy_source_line): Update.
3016 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3017 first_col, line_width, ndigits parameters. Add length.
3018 (tui_source_window_base::show_source_line): Write to pad. Line
3019 number now 0-based.
3020 (tui_source_window_base::refresh_pad): New method.
3021 (tui_source_window_base::show_source_content): Write to pad. Call
3022 refresh_pad.
3023 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3024 not refill.
3025 (tui_source_window_base::update_exec_info): Call
3026 show_line_number.
3027 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3028 method.
3029 <m_digits>: New member.
3030 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3031 and m_max_length.
3032 (tui_source_window::show_line_number): New method.
3033 * tui/tui-io.h (tui_puts): Fix comment.
3034 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3035 m_max_length.
3036
3037 2020-09-27 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-winsource.c
3040 (tui_source_window_base::set_is_exec_point_at): Don't call
3041 show_source_line.
3042
3043 2020-09-27 Tom Tromey <tom@tromey.com>
3044
3045 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3046 method.
3047 <erase>: Update.
3048 <cursor_x, cursor_y>: Remove.
3049 <m_inner_window>: New member.
3050 (tui_py_window::rerender): Create inner window.
3051 (tui_py_window::output): Write to inner window.
3052
3053 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3054
3055 PR python/26586
3056 * cli/cli-script.c (execute_control_commands): don't set
3057 instream to nullptr here as this breaks the from_tty argument
3058 to gdb.execute in Python.
3059 (execute_user_command): set instream to nullptr here instead.
3060
3061 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * infrun.h (infrun_debug_printf): Fix formatting.
3064 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3065
3066 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3067
3068 * compile/compile-object-load.h (struct munmap_list): Add
3069 explicitly-defined move constructor.
3070
3071 2020-09-24 Tom Tromey <tromey@adacore.com>
3072
3073 PR tui/26638:
3074 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3075 method.
3076 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3077 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3078 (tui_prev_win): Rewrite.
3079
3080 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3081
3082 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3083 in WOW64 processes as SIGINT.
3084 * nat/windows-nat.h: Make wow64_process a shared variable.
3085 * windows-nat.c: Remove static wow64_process variable.
3086
3087 2020-09-23 Tom Tromey <tom@tromey.com>
3088
3089 PR symtab/25470:
3090 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3091 offset and bit size.
3092 * printcmd.c (print_scalar_formatted): Handle zero-length
3093 integer.
3094 (print_scalar_formatted): Use bit_size_differs_p.
3095 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3096 constant.
3097 (union type_specific): <int_stuff>: New member.
3098 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3099 methods.
3100 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3101 TYPE_SPECIFIC_FIELD.
3102 (recursive_dump_type, copy_type_recursive): Update.
3103 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3104 DW_AT_data_bit_offset.
3105
3106 2020-09-23 Tom Tromey <tom@tromey.com>
3107
3108 * utils.h (class gdb_argv): Add move operators.
3109 <append>: New methods.
3110 * compile/compile.c (build_argc_argv): Remove.
3111 (compile_args_argc): Remove.
3112 (compile_args_argv): Change type.
3113 (set_compile_args): Simplify.
3114 (append_args): Remove.
3115 (filter_args): Remove argcp parameter.
3116 (get_args): Return gdb_argv. Simplify.
3117 (compile_to_object): Update.
3118
3119 2020-09-23 Tom Tromey <tom@tromey.com>
3120
3121 * compile/compile-object-run.c (do_module_cleanup)
3122 <~do_module_cleanup> :Remove.
3123 (do_module_cleanup): Update.
3124 * compile/compile-object-load.h (struct munmap_list): Add move
3125 assignment operator.
3126 <source_file>: Now a std::string.
3127 <munmap_list>: Rename. No longer a pointer.
3128 * compile/compile-object-load.c (struct setup_sections_data): Add
3129 constructor.
3130 <setup_one_section>: Declare.
3131 <munmap_list>: Move earlier.
3132 <m_bfd>: New member.
3133 <m_last_size, m_last_section_first, m_last_prot,
3134 m_last_max_alignment>: Rename, add initializers where needed.
3135 (setup_sections_data::setup_one_section): Rename from
3136 setup_sections. Update.
3137 (compile_object_load): Update. Don't use bfd_map_over_sections.
3138
3139 2020-09-23 Tom Tromey <tom@tromey.com>
3140
3141 * compile/compile-object-run.c (struct do_module_cleanup): Add
3142 parameters to constructor. Update destructor.
3143 <source_file, scope, scope_data, out_value_type, out_value_addr,
3144 munmap_list_head, objfile_name_string>: Remove.
3145 <module>: New member.
3146 (do_module_cleanup): Update.
3147 (compile_object_run): Update.
3148
3149 2020-09-23 Tom Tromey <tom@tromey.com>
3150
3151 * compile/compile.c (eval_compile_command): Update.
3152 * compile/compile-object-run.h (compile_object_run): Take a
3153 compile_module_up.
3154 * compile/compile-object-run.c (compile_object_run): Take a
3155 compile_module_up.
3156 * compile/compile-object-load.h (struct compile_module): Add
3157 constructor, destructor.
3158 (compile_module_up): New typedef.
3159 (compile_object_load): Return compile_object_up.
3160 * compile/compile-object-load.c (compile_object_load): Return
3161 compile_module_up.
3162
3163 2020-09-23 Tom Tromey <tom@tromey.com>
3164
3165 * compile/compile-object-run.c (struct do_module_cleanup): Add
3166 constructor, destructor.
3167 <objfile_name_string>: Don't use struct hack.
3168 (do_module_cleanup): Use delete.
3169 (compile_object_run): Use new.
3170
3171 2020-09-23 Tom Tromey <tom@tromey.com>
3172
3173 * compile/compile-cplus-types.c
3174 (compile_cplus_convert_struct_or_union): Use std::vector.
3175 (compile_cplus_convert_func): Likewise.
3176 * compile/compile-c-types.c (convert_func): Use std::vector.
3177
3178 2020-09-21 Tom Tromey <tromey@adacore.com>
3179
3180 * sparc-tdep.c (sparc32_skip_prologue): Use
3181 skip_prologue_using_sal.
3182
3183 2020-09-19 Tom Tromey <tom@tromey.com>
3184
3185 * symfile.c (add_section_size_callback): Remove.
3186 (load_one_section): Rename from load_section_callback. Change
3187 parameters.
3188 (generic_load): Use foreach.
3189
3190 2020-09-19 Tom Tromey <tom@tromey.com>
3191
3192 * exec.c (add_to_section_table): Remove.
3193 (build_section_table): Use foreach.
3194
3195 2020-09-19 Tom Tromey <tom@tromey.com>
3196
3197 * elfread.c (elf_locate_sections): Change parameters.
3198 (elf_symfile_read): Use foreach.
3199
3200 2020-09-19 Tom Tromey <tom@tromey.com>
3201
3202 * cli/cli-dump.c (struct callback_data): Remove.
3203 (restore_one_section): Rename from restore_section_callback.
3204 Change parameters.
3205 (restore_binary_file): Change parameters.
3206 (restore_command): Use foreach.
3207
3208 2020-09-19 Tom Tromey <tom@tromey.com>
3209
3210 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3211 (gcore_copy_callback): Likewise.
3212 (gcore_memory_sections): Use foreach.
3213
3214 2020-09-19 Tom Tromey <tom@tromey.com>
3215
3216 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3217 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3218 parameters.
3219 (generic_elf_osabi_sniffer): Use foreach.
3220 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3221 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3222
3223 2020-09-19 Tom Tromey <tom@tromey.com>
3224
3225 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3226 (dwarf2_get_dwz_file): Use foreach.
3227 (dwarf2_locate_dwo_sections): Change parameters.
3228 (open_and_init_dwo_file): Use foreach.
3229 (dwarf2_locate_common_dwp_sections): Change parameters.
3230 (open_and_init_dwp_file): Use foreach.
3231
3232 2020-09-19 Tom Tromey <tom@tromey.com>
3233
3234 * symfile.h: (find_lowest_section): Don't declare.
3235 * symfile.c (find_lowest_section): Now static. Change
3236 parameters.
3237 (struct place_section_arg): Remove.
3238 (place_section): Change parameters.
3239 (addr_info_make_relative): Use foreach.
3240 (symfile_dummy_outputs): Remove.
3241 (default_symfile_relocate): Use foreach.
3242
3243 2020-09-19 Tom Tromey <tom@tromey.com>
3244
3245 * objfiles.c (add_to_objfile_sections): Rename from
3246 add_to_objfile_sections_full.
3247 (add_to_objfile_sections): Remove.
3248 (build_objfile_section_table): Use foreach.
3249
3250 2020-09-19 Tom Tromey <tom@tromey.com>
3251
3252 * stap-probe.c (get_stap_base_address_1): Remove.
3253 (get_stap_base_address): Use foreach.
3254
3255 2020-09-19 Tom Tromey <tom@tromey.com>
3256
3257 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3258 parameters.
3259 (gdb_bfd_close_or_warn): Use foreach.
3260
3261 2020-09-19 Tom Tromey <tom@tromey.com>
3262
3263 * corelow.c (add_to_thread_list): Change parameters.
3264 (core_target_open): Use foreach.
3265
3266 2020-09-19 Tom Tromey <tom@tromey.com>
3267
3268 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3269 existing function.
3270
3271 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3274 for arrays.
3275
3276 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * eval.c: Remove 'f-lang.h' include.
3279 (value_f90_subarray): Moved to f-lang.c.
3280 (eval_call): Renamed to...
3281 (evaluate_subexp_do_call): ...this, is no longer static, header
3282 comment moved into header file.
3283 (evaluate_funcall): Update call to eval_call.
3284 (skip_undetermined_arglist): Moved to f-lang.c.
3285 (fortran_value_subarray): Likewise.
3286 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3287 moved to evaluate_subexp_f.
3288 (calc_f77_array_dims): Moved to f-lang.c
3289 * expprint.c (print_subexp_funcall): New function.
3290 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3291 moved to print_subexp_f, OP_FUNCALL uses new function.
3292 (dump_subexp_body_funcall): New function.
3293 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3294 moved to dump_subexp_f, OP_FUNCALL uses new function.
3295 * expression.h (evaluate_subexp_do_call): Declare.
3296 * f-lang.c (value_f90_subarray): Moved from eval.c.
3297 (skip_undetermined_arglist): Likewise.
3298 (calc_f77_array_dims): Likewise.
3299 (fortran_value_subarray): Likewise.
3300 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3301 (operator_length_f): Likewise.
3302 (print_subexp_f): Likewise.
3303 (dump_subexp_body_f): Likewise.
3304 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3305 declaration of this operation to here.
3306 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3307 support moved to operator_length_f.
3308 * parser-defs.h (dump_subexp_body_funcall): Declare.
3309 (print_subexp_funcall): Declare.
3310 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3311 fortran-operator.def.
3312
3313 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * eval.c (fortran_value_subarray): New function, content is taken
3316 from...
3317 (evaluate_subexp_standard): ...here, in two places. Now arrays
3318 and strings both call the new function.
3319 (calc_f77_array_dims): Add header comment, handle strings.
3320
3321 2020-09-18 Victor Collod <vcollod@nvidia.com>
3322
3323 PR gdb/26635
3324 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3325 (i386_analyze_prologue): Call i386_skip_endbr.
3326
3327 2020-09-18 Tom Tromey <tromey@adacore.com>
3328
3329 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3330 (windows_nat_target::wait): Update.
3331 * target/wait.h (enum target_wait_flag): New. Use
3332 DEF_ENUM_FLAGS_TYPE.
3333 * target/target.h (target_wait): Change type of options.
3334 * target.h (target_options_to_string, default_target_wait):
3335 Update.
3336 (struct target_ops) <wait>: Change type of options.
3337 * target.c (target_wait, default_target_wait, do_option): Change
3338 type of "options".
3339 (target_options_to_string): Likewise.
3340 * target-delegates.c: Rebuild.
3341 * target-debug.h (target_debug_print_target_wait_flags): Rename
3342 from target_debug_print_options.
3343 * sol-thread.c (class sol_thread_target) <wait>: Update.
3344 (sol_thread_target::wait): Update.
3345 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3346 (rs6000_nat_target::wait): Update.
3347 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3348 Update.
3349 (remote_target::wait_ns, remote_target::wait_as): Change type of
3350 "options".
3351 (remote_target::wait): Update.
3352 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3353 (gdbsim_target::wait): Update.
3354 * record-full.c (class record_full_base_target) <wait>: Update.
3355 (record_full_wait_1): Change type of "options".
3356 (record_full_base_target::wait): Update.
3357 * record-btrace.c (class record_btrace_target) <wait>: Update.
3358 (record_btrace_target::wait): Update.
3359 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3360 Update.
3361 (ravenscar_thread_target::wait): Update.
3362 * procfs.c (class procfs_target) <wait>: Update.
3363 (procfs_target::wait): Update.
3364 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3365 * obsd-nat.c (obsd_nat_target::wait): Update.
3366 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3367 (nto_procfs_target::wait): Update.
3368 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3369 * nbsd-nat.c (nbsd_wait): Change type of "options".
3370 (nbsd_nat_target::wait): Update.
3371 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3372 (thread_db_target::wait): Update.
3373 * linux-nat.h (class linux_nat_target) <wait>: Update.
3374 * linux-nat.c (linux_nat_target::wait): Update.
3375 (linux_nat_wait_1): Update.
3376 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3377 "options".
3378 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3379 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3380 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3381 (go32_nat_target::wait): Update.
3382 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3383 * gnu-nat.c (gnu_nat_target::wait): Update.
3384 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3385 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3386 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3387 * darwin-nat.c (darwin_nat_target::wait): Update.
3388 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3389 (bsd_uthread_target::wait): Update.
3390 * aix-thread.c (class aix_thread_target) <wait>: Update.
3391 (aix_thread_target::wait): Update.
3392
3393 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * compile/compile-object-run.c (create_copied_type_recursive): New
3396 function.
3397 (compile_object_run): Use new function.
3398
3399 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3400
3401 * NEWS: Mention x86_64 Cygwin core file support.
3402
3403 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3404
3405 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3406 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3407
3408 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3409
3410 * windows-tdep.h: Add prototypes.
3411 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3412 (i386_windows_core_pid_to_str): Move and rename ...
3413 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3414 (windows_core_pid_to_str): ... and here.
3415 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3416
3417 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3418 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3419 (amd64_windows_init_abi_common): ... and register.
3420
3421 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3422
3423 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3424 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3425
3426 2020-09-18 Pedro Alves <pedro@palves.net>
3427
3428 PR gdb/26631
3429 * thread.c (thread_find_command): Switch inferior before calling
3430 target methods.
3431
3432 2020-09-17 Tom Tromey <tromey@adacore.com>
3433
3434 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3435 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3436 (tdesc_arch_data_up): New typedef.
3437 (tdesc_use_registers, tdesc_data_alloc): Update.
3438 (tdesc_data_cleanup): Don't declare.
3439 * target-descriptions.c (tdesc_data_alloc): Return a
3440 tdesc_arch_data_up.
3441 (tdesc_arch_data_deleter::operator()): Rename from
3442 tdesc_data_cleanup. Change argument type.
3443 (tdesc_use_registers): Change early_data to an rvalue reference.
3444 (tdesc_use_registers): Don't use delete.
3445 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3446 * s390-tdep.c (s390_gdbarch_init): Update.
3447 * rx-tdep.c (rx_gdbarch_init): Update.
3448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3449 * riscv-tdep.c (riscv_gdbarch_init): Update.
3450 * or1k-tdep.c (or1k_gdbarch_init): Update.
3451 * nios2-tdep.c (nios2_gdbarch_init): Update.
3452 * nds32-tdep.c (nds32_gdbarch_init): Update.
3453 * mips-tdep.c (mips_gdbarch_init): Update.
3454 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3455 * m68k-tdep.c (m68k_gdbarch_init): Update.
3456 * i386-tdep.c (i386_gdbarch_init): Update.
3457 * arm-tdep.c (arm_gdbarch_init): Update.
3458 * arc-tdep.c (arc_tdesc_init): Update.
3459 (arc_gdbarch_init): Update.
3460 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3461
3462 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3463
3464 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3465 for WOW64 processes.
3466
3467 2020-09-17 Tom Tromey <tom@tromey.com>
3468
3469 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3470
3471 2020-09-17 Tom Tromey <tom@tromey.com>
3472
3473 * value.c (preserve_values): Update.
3474 * python/py-type.c (save_objfile_types): Update.
3475 * guile/scm-type.c (save_objfile_types): Update.
3476 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3477 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3478 * compile/compile-object-run.c (compile_object_run): Update.
3479
3480 2020-09-17 Tom Tromey <tom@tromey.com>
3481
3482 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3483 Remove.
3484 <m_table>: Now htab_up.
3485 * typeprint.c (typedef_hash_table::recursively_update)
3486 (typedef_hash_table::add_template_parameters)
3487 (typedef_hash_table::typedef_hash_table): Update.
3488 (typedef_hash_table::~typedef_hash_table): Remove.
3489 (typedef_hash_table::typedef_hash_table)
3490 (typedef_hash_table::find_global_typedef)
3491 (typedef_hash_table::find_typedef): Update.
3492
3493 2020-09-17 Tom Tromey <tom@tromey.com>
3494
3495 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3496
3497 2020-09-17 Tom Tromey <tom@tromey.com>
3498
3499 * linespec.c (class decode_compound_collector)
3500 <~decode_compound_collector>: Remove.
3501 <m_unique_syms>: Now htab_up.
3502 (decode_compound_collector::operator ()): Update.
3503 (class symtab_collector) <~symtab_collector>: Remove.
3504 <m_symtab_table>: Now htab_up.
3505 (symtab_collector::operator ()): Update.
3506
3507 2020-09-17 Tom Tromey <tom@tromey.com>
3508
3509 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3510 (filename_seen_cache::clear): Update.
3511 (~filename_seen_cache): Remove.
3512 (filename_seen_cache::seen): Update.
3513 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3514 htab_up.
3515 <~filename_seen_cache>: Remove.
3516 <traverse>: Update.
3517
3518 2020-09-17 Tom Tromey <tom@tromey.com>
3519
3520 * completer.c (completion_tracker::discard_completions)
3521 (completion_tracker::~completion_tracker)
3522 (completion_tracker::maybe_add_completion)
3523 (completion_tracker::remove_completion)
3524 (completion_tracker::recompute_lowest_common_denominator)
3525 (completion_tracker::build_completion_result): Update.
3526 * completer.h (class completion_tracker) <have_completions>:
3527 Update.
3528 <m_entries_hash>: Now htab_up.
3529
3530 2020-09-17 Tom Tromey <tom@tromey.com>
3531
3532 * breakpoint.c (ambiguous_names_p): Use htab_up.
3533
3534 2020-09-17 Tom Tromey <tom@tromey.com>
3535
3536 * auto-load.c (struct auto_load_pspace_info)
3537 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3538 <loaded_script_files, loaded_script_texts>: Change type to
3539 htab_up.
3540 (~auto_load_pspace_info) Remove.
3541 (init_loaded_scripts_info, maybe_add_script_file)
3542 (maybe_add_script_text, auto_load_info_scripts): Update.
3543
3544 2020-09-17 Tom Tromey <tromey@adacore.com>
3545
3546 * c-exp.y (name_obstack): Now static.
3547
3548 2020-09-17 Chungyi Chi <demonic@csie.io>
3549
3550 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3551
3552 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3555 (add_solib_catchpoint): Likewise.
3556 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3557 to bool.
3558 (add_solib_catchpoint): Change int parameter/variable to bool.
3559 (catch_load_or_unload): Likewise.
3560 (init_catchpoint): Likewise.
3561 (create_fork_vfork_event_catchpoint): Likewise.
3562 (catch_fork_command_1): Likewise.
3563 (catch_exec_command_1): Likewise.
3564
3565 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3568 Change instance_flags to m_instance_flags.
3569
3570 2020-09-16 Tom Tromey <tromey@adacore.com>
3571
3572 PR gdb/26598:
3573 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3574
3575 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3576
3577 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3578 PL_FLAG_EXEC.
3579 (fbsd_nat_target::insert_exec_catchpoint)
3580 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3581 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3582 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3583
3584 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3585
3586 * configure.ac: Remove check for kinfo_getvmmap().
3587 * configure, config.in: Regenerate.
3588 * fbsd-nat.c (fbsd_read_mapping): Remove
3589 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3590 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3591 kinfo_get_vmmap() are always present.
3592
3593 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3594
3595 * fbsd-nat.c: Always include support for
3596 TARGET_OBJECT_SIGNAL_INFO.
3597
3598 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3599
3600 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3601 sysctl and remove procfs fallback.
3602
3603 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3604
3605 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3606 * fbsd-nat.h: Likewise.
3607
3608 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3609
3610 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3611 argument.
3612
3613 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * ada-lang.c (ada_language_data): Delete.
3616 (ada_language): Remove references to ada_language_data.
3617 * c-lang.c (c_language_data): Delete.
3618 (c_language): Remove references to c_language_data.
3619 (cplus_language_data): Delete.
3620 (cplus_language): Remove references to cplus_language_data.
3621 (asm_language_data): Delete.
3622 (asm_language): Remove references to asm_language_data.
3623 (minimal_language_data): Delete.
3624 (minimal_language): Remove references to minimal_language_data.
3625 * d-lang.c (d_language_data): Delete.
3626 (d_language): Remove references to d_language_data.
3627 * f-lang.c (f_language_data): Delete.
3628 (f_language): Remove references to f_language_data.
3629 * go-lang.c (go_language_data): Delete.
3630 (go_language): Remove references to go_language_data.
3631 * language.c (unknown_language_data): Delete.
3632 (unknown_language): Remove references to unknown_language_data.
3633 (auto_language_data): Delete.
3634 (auto_language): Remove references to auto_language_data.
3635 * language.h (language_data): Delete struct.
3636 (language_defn): No longer inherit from language_data.
3637 * m2-lang.c (m2_language_data): Delete.
3638 (m2_language): Remove references to m2_language_data.
3639 * objc-lang.c (objc_language_data): Delete.
3640 (objc_language): Remove references to objc_language_data.
3641 * opencl-lang.c (opencl_language_data): Delete.
3642 (opencl_language): Remove references to opencl_language_data.
3643 * p-lang.c (pascal_language_data): Delete.
3644 (pascal_language): Remove references to pascal_language_data.
3645 * rust-lang.c (rust_language_data): Delete.
3646 (rust_language): Remove references to rust_language_data.
3647
3648 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3651 initializer.
3652 (ada_language::opcode_print_table): New member function.
3653 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3654 (c_language::opcode_print_table): New member function.
3655 (cplus_language_data): Remove la_op_print_tab initializer.
3656 (cplus_language::opcode_print_table): New member function.
3657 (asm_language_data): Remove la_op_print_tab initializer.
3658 (asm_language::opcode_print_table): New member function.
3659 (minimal_language_data): Remove la_op_print_tab initializer.
3660 (minimal_language::opcode_print_table): New member function.
3661 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3662 (d_language::opcode_print_table): New member function.
3663 * expprint.c (print_subexp_standard): Update call to
3664 opcode_print_table.
3665 (op_string): Likewise.
3666 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3667 (f_language::opcode_print_table): New member function.
3668 * go-lang.c (go_language_data): Remove la_op_print_tab
3669 initializer.
3670 (go_language::opcode_print_table): New member function.
3671 * language.c (unknown_language_data): Remove la_op_print_tab
3672 initializer.
3673 (unknown_language::opcode_print_table): New member function.
3674 (auto_language_data): Remove la_op_print_tab initializer.
3675 (auto_language::opcode_print_table): New member function.
3676 * language.h (language_data): Remove la_op_print_tab field.
3677 (language_defn::opcode_print_table): Declare new member function.
3678 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3679 initializer.
3680 (m2_language::opcode_print_table): New member function.
3681 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3682 initializer.
3683 (objc_language::opcode_print_table): New member function.
3684 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3685 initializer.
3686 (opencl_language::opcode_print_table): New member function.
3687 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3688 initializer.
3689 (pascal_language::opcode_print_table): New member function.
3690 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3691 initializer.
3692 (rust_language::opcode_print_table): New member function.
3693
3694 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3695
3696 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3697 (ada_language::expression_ops): New member function.
3698 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3699 (c_language::expression_ops): New member function.
3700 (cplus_language_data): Remove la_exp_desc initializer.
3701 (cplus_language::expression_ops): New member function.
3702 (asm_language_data): Remove la_exp_desc initializer.
3703 (asm_language::expression_ops): New member function.
3704 (minimal_language_data): Remove la_exp_desc initializer.
3705 (minimal_language::expression_ops): New member function.
3706 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3707 (d_language::expression_ops): New member function.
3708 * eval.c (evaluate_subexp): Update call to expression_ops.
3709 * expprint.c (print_subexp): Likewise.
3710 (op_name): Likewise.
3711 (dump_subexp_body): Likewise.
3712 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3713 (f_language::expression_ops): New member function.
3714 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3715 (go_language::expression_ops): New member function.
3716 * language.c (language_defn::expression_ops): New function.
3717 (unknown_language_data): Remove la_exp_desc initializer.
3718 (auto_language_data): Likewise.
3719 * language.h (language_data): Remove la_exp_desc field.
3720 (language_defn::expression_ops): Declare new member function.
3721 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3722 (m2_language::expression_ops): New member function.
3723 * objc-lang.c (objc_language_data): Remove la_exp_desc
3724 initializer.
3725 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3726 initializer.
3727 (opencl_language::expression_ops): New member function.
3728 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3729 * parse.c (operator_length): Update call to expression_ops.
3730 (exp_iterate): Likewise.
3731 * rust-lang.c (rust_language_data): Remove la_exp_desc
3732 initializer.
3733 (ruse_language::expression_ops): New member function.
3734
3735 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3736
3737 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3738 initializer.
3739 (ada_language::varobj_ops): New member function.
3740 * c-lang.c (c_language_data): Remove la_varobj_ops
3741 initializer.
3742 (cplus_language_data): Likewise.
3743 (cplus_language::varobj_ops): New member function.
3744 (asm_language_data): Remove la_varobj_ops initializer.
3745 (minimal_language_data): Likewise.
3746 * d-lang.c (d_language_data): Likewise.
3747 * f-lang.c (f_language_data): Likewise.
3748 * go-lang.c (go_language_data): Likewise.
3749 * language.c (language_defn::varobj_ops): New function.
3750 (unknown_language_data): Remove la_varobj_ops
3751 initializer.
3752 (auto_language_data): Likewise.
3753 * language.h (language_data): Remove la_varobj_ops field.
3754 (language_defn::varobj_ops): Declare new member function.
3755 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3756 * objc-lang.c (objc_language_data): Likewise.
3757 * opencl-lang.c (opencl_language_data): Likewise.
3758 * p-lang.c (pascal_language_data): Likewise.
3759 * rust-lang.c (rust_language_data): Likewise.
3760 * varobj.c (varobj_create): Update call to varobj_ops.
3761 * varobj.h (default_varobj_ops): Delete define.
3762
3763 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3766 initializer.
3767 * c-lang.c (c_language_data): Likewise.
3768 (c_language::macro_expansion): New member function.
3769 (cplus_language_data): Likewise.
3770 (cplus_language::macro_expansion): New member function.
3771 (asm_language_data): Likewise.
3772 (asm_language::macro_expansion): New member function.
3773 (minimal_language_data): Likewise.
3774 (minimal_language::macro_expansion): New member function.
3775 * d-lang.c (d_language_data): Remove la_macro_expansion
3776 initializer.
3777 * f-lang.c (f_language_data): Likewise.
3778 * go-lang.c (go_language_data): Likewise.
3779 * language.c (unknown_language_data): Likewise.
3780 (auto_language_data): Likewise.
3781 * language.h (language_data): Remove la_macro_expansion field.
3782 (language_defn::macro_expansion): New member function.
3783 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3784 initializer.
3785 * objc-lang.c (objc_language_data): Likewise.
3786 (objc_language::macro_expansion): New member function.
3787 * opencl-lang.c (opencl_language_data): Likewise.
3788 (opencl_language::macro_expansion): New member function.
3789 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3790 initializer.
3791 * rust-lang.c (rust_language_data): Likewise.
3792 * symtab.c (default_collect_symbol_completion_matches_break_on):
3793 Update call to macro_expansion.
3794
3795 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3796
3797 * ada-lang.c (ada_language_data): Remove la_array_ordering
3798 initializer.
3799 * c-lang.c (c_language_data): Likewise.
3800 (cplus_language_data): Likewise.
3801 (asm_language_data): Likewise.
3802 (minimal_language_data): Likewise.
3803 * d-lang.c (d_language_data): Likewise.
3804 * dwarf2/read.c (read_array_order): Update for call to
3805 array_ordering.
3806 * f-lang.c (f_language_data): Remove la_array_ordering
3807 initializer.
3808 (f_language::array_ordering): New member function.
3809 * go-lang.c (go_language_data): Remove la_array_ordering
3810 initializer.
3811 * language.c (unknown_language_data): Likewise.
3812 (auto_language_data): Likewise.
3813 * language.h (language_data): Delete la_array_ordering field.
3814 (language_defn::array_ordering): New member function.
3815 * m2-lang.c (m2_language_data): Remove la_array_ordering
3816 initializer.
3817 * objc-lang.c (objc_language_data): Likewise.
3818 * opencl-lang.c (opencl_language_data): Likewise.
3819 * p-lang.c (pascal_language_data): Likewise.
3820 * rust-lang.c (rust_language_data): Likewise.
3821
3822 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3825 initializer.
3826 * c-lang.c (c_language_data): Likewise.
3827 (cplus_language_data): Likewise.
3828 (asm_language_data): Likewise.
3829 (minimal_language_data): Likewise.
3830 * d-lang.c (d_language_data): Likewise.
3831 * f-lang.c (f_language_data): Likewise.
3832 (f_language::case_sensitivity): New member function.
3833 * go-lang.c (go_language_data): Remove la_case_sensitivity
3834 initializer.
3835 * language.c (enum case_mode): Moved here from language.h.
3836 (case_mode): Make static.
3837 (show_case_command): Update for case_sensitivity being a method.
3838 (set_case_command): Likewise.
3839 (set_range_case): Likewise.
3840 (unknown_language_data): Remove la_case_sensitivity initializer.
3841 (auto_language_data): Likewise.
3842 * language.h (case_mode): Delete, move enum declaration to
3843 language.c.
3844 (language_data): Delete la_case_sensitivity field.
3845 (language_defn::case_sensitivity): New member function.
3846 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3847 initializer.
3848 * objc-lang.c (objc_language_data): Likewise.
3849 * opencl-lang.c (opencl_language_data): Likewise.
3850 * p-lang.c (pascal_language_data): Likewise.
3851 * rust-lang.c (rust_language_data): Likewise.
3852
3853 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * ada-lang.c (ada_language_data): Remove la_range_check
3856 initializer.
3857 * c-lang.c (c_language_data): Likewise.
3858 (cplus_language_data): Likewise.
3859 (asm_language_data): Likewise.
3860 (minimal_language_data): Likewise.
3861 * d-lang.c (d_language_data): Likewise.
3862 * f-lang.c (f_language_data): Likewise.
3863 (f_language::range_checking_on_by_default): New member function.
3864 * go-lang.c (go_language_data): Remove la_range_check initializer.
3865 * language.c (enum range_mode): Moved here from language.h.
3866 (range_mode): Made static.
3867 (show_range_command): Update to use
3868 range_checking_on_by_default.
3869 (set_range_command): Likewise.
3870 (set_range_case): Likewise.
3871 (unknown_language_data): Remove la_range_check initializer.
3872 (auto_language_data): Likewise.
3873 * language.h (range_mode): Delete. Enum definition moved to
3874 language.c.
3875 (language_data): Remove la_range_check field.
3876 (language_defn::range_checking_on_by_default): New member
3877 function.
3878 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3879 (m2_language::range_checking_on_by_default): New member function.
3880 * objc-lang.c (objc_language_data): Remove la_range_check
3881 initializer.
3882 * opencl-lang.c (opencl_language_data): Likewise.
3883 * p-lang.c (pascal_language_data): Likewise.
3884 (pascal_language::range_checking_on_by_default): New member
3885 function.
3886 * rust-lang.c (rust_language_data): Remove la_range_check
3887 initializer.
3888 (rust_language::range_checking_on_by_default): New member
3889 function.
3890
3891 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * dwarf2/read.c (dwarf2_physname): Remove special case for
3894 language_go.
3895 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3896 member function.
3897
3898 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * ada-lang.c (ada_language_data): Remove
3901 la_store_sym_names_in_linkage_form_p initializer.
3902 (ada_language::store_sym_names_in_linkage_form_p): New member
3903 function.
3904 * c-lang.c (c_language_data): Remove
3905 la_store_sym_names_in_linkage_form_p initializer.
3906 (c_language::store_sym_names_in_linkage_form_p): New member
3907 function.
3908 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3909 initializer.
3910 (asm_language_data): Likewise.
3911 (asm_language::store_sym_names_in_linkage_form_p): New member
3912 function.
3913 (minimal_language_data): Remove
3914 la_store_sym_names_in_linkage_form_p initializer.
3915 (minimal_language::store_sym_names_in_linkage_form_p): New member
3916 function.
3917 * d-lang.c (d_language_data): Remove
3918 la_store_sym_names_in_linkage_form_p initializer.
3919 * dwarf2/read.c (dwarf2_physname): Update call to
3920 store_sym_names_in_linkage_form_p.
3921 * f-lang.c (f_language_data): Remove
3922 la_store_sym_names_in_linkage_form_p initializer.
3923 * go-lang.c (go_language_data): Remove
3924 la_store_sym_names_in_linkage_form_p initializer.
3925 * language.c (unknown_language_data): Remove
3926 la_store_sym_names_in_linkage_form_p initializer.
3927 (unknown_language::store_sym_names_in_linkage_form_p): New member
3928 function.
3929 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3930 initializer.
3931 (auto_language::store_sym_names_in_linkage_form_p): New member
3932 function.
3933 * language.h (language_data): Remove
3934 la_store_sym_names_in_linkage_form_p member variable.
3935 (language_defn::store_sym_names_in_linkage_form_p): New member
3936 function.
3937 * m2-lang.c (m2_language_data): Remove
3938 la_store_sym_names_in_linkage_form_p initializer.
3939 * objc-lang.c (objc_language_data): Likewise.
3940 * opencl-lang.c (opencl_language_data): Likewise.
3941 * p-lang.c (pascal_language_data): Likewise.
3942 * rust-lang.c (rust_language_data): Likewise.
3943
3944 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_language_data): Remove string_lower_bound
3947 initializer.
3948 * c-lang.c (c_language_data): Likewise.
3949 (cplus_language_data): Likewise.
3950 (asm_language_data): Likewise.
3951 (minimal_language_data): Likewise.
3952 * d-lang.c (d_language_data): Likewise.
3953 * f-lang.c (f_language_data): Likewise.
3954 * go-lang.c (go_language_data): Likewise.
3955 * language.c (unknown_language_data): Likewise.
3956 (auto_language_data): Likewise.
3957 * language.h (language_data): Remove string_lower_bound field.
3958 (language_defn::string_lower_bound): New member function.
3959 * m2-lang.c (m2_language_data): Remove string_lower_bound
3960 initializer.
3961 (m2_language::string_lower_bound): New member function.
3962 * objc-lang.c (objc_language_data): Remove string_lower_bound
3963 initializer.
3964 * opencl-lang.c (opencl_language_data): Likewise.
3965 * p-lang.c (pascal_language_data): Likewise.
3966 * rust-lang.c (rust_language_data): Likewise.
3967 * valops.c (value_cstring): Update call to string_lower_bound.
3968 (value_string): Likewise.
3969 * value.c (allocate_repeated_value): Likewise.
3970
3971 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3972
3973 * valops.c (value_repeat): Fix incorrect argument name in comment.
3974
3975 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 * ada-lang.c (ada_language_data): Remove c_style_arrays
3978 initializer.
3979 (ada_language::c_style_arrays_p): New member fuction.
3980 * c-lang.c (c_language_data): Remove c_style_arrays
3981 initializer.
3982 (cplus_language_data): Likewise.
3983 (asm_language_data): Likewise.
3984 (minimal_language_data): Likewise.
3985 * d-lang.c (d_language_data): Likewise.
3986 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3987 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3988 (f_language::c_style_arrays_p): New member function.
3989 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3990 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3991 * language.c (unknown_language_data): Remove c_style_arrays
3992 initializer.
3993 (auto_language_data): Likewise.
3994 * language.h (language_data): Remove c_style_arrays field.
3995 (language_defn::c_style_arrays_p): New member function.
3996 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3997 (m2_language::c_style_arrays_p): New member function.
3998 * objc-lang.c (objc_language_data): Remove c_style_arrays
3999 initializer.
4000 * opencl-lang.c (opencl_language_data): Likewise.
4001 * p-lang.c (pascal_language_data): Likewise.
4002 * rust-lang.c (rust_language_data): Likewise.
4003 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4004 and update local variable to a bool.
4005 * valops.c (value_cast): Update call to c_style_arrays_p.
4006 (value_array): Likewise.
4007 * value.c (coerce_array): Likewise.
4008
4009 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * ada-lang.c (ada_language_data): Remove la_language initializer.
4012 * c-lang.c (c_language_data): Likewise.
4013 (cplus_language_data): Likewise.
4014 (asm_language_data): Likewise.
4015 (minimal_language_data): Likewise.
4016 * d-lang.c (d_language_data): Likewise.
4017 * f-lang.c (f_language_data): Likewise.
4018 * go-lang.c (go_language_data): Likewise.
4019 * language.c (unknown_language_data): Likewise.
4020 (auto_language_data): Likewise.
4021 * language.h (language_data): Remove la_language field.
4022 (language_defn::language_defn): Initialise la_language field.
4023 (language_defn::la_language): New member variable.
4024 * m2-lang.c (m2_language_data): Remove la_language field.
4025 * objc-lang.c (objc_language_data): Likewise.
4026 * opencl-lang.c (opencl_language_data): Likewise.
4027 * p-lang.c (pascal_language_data): Likewise.
4028 * rust-lang.c (rust_language_data): Likewise.
4029
4030 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4031
4032 * ada-lang.c (ada_extensions): Delete, moved into
4033 ada_language::filename_extensions.
4034 (ada_language_data): Remove la_filename_extensions initializer.
4035 (ada_language::filename_extensions): New member function.
4036 * c-lang.c (c_extensions): Delete, moved into
4037 c_language::filename_extensions.
4038 (c_language_data): Remove la_filename_extensions initializer.
4039 (c_language::filename_extensions): New member function.
4040 (cplus_extensions): Delete, moved into
4041 cplus_language::filename_extensions.
4042 (cplus_language_data): Remove la_filename_extensions initializer.
4043 (cplus_language::filename_extensions): New member function.
4044 (asm_extensions): Delete, moved into
4045 asm_language::filename_extensions.
4046 (asm_language_data): Remove la_filename_extensions initializer.
4047 (asm_language::filename_extensions): New member function.
4048 (minimal_language_data): Remove la_filename_extensions
4049 initializer.
4050 * d-lang.c (d_extensions): Delete, moved into
4051 d_language::filename_extensions.
4052 (d_language_data): Remove la_filename_extensions initializer.
4053 (d_language::filename_extensions): New member function.
4054 * f-lang.c (f_extensions): Delete, moved into
4055 f_language::filename_extensions.
4056 (f_language_data): Remove la_filename_extensions initializer.
4057 (f_language::filename_extensions): New member function.
4058 * go-lang.c (go_language_data): Remove la_filename_extensions
4059 initializer.
4060 * language.c (add_set_language_command): Update now that
4061 filename_extensions returns a vector.
4062 (unknown_language_data): Remove la_filename_extensions
4063 initializer.
4064 (auto_language_data): Likewise.
4065 * language.h (language_data): Remove la_filename_extensions field.
4066 (language_defn::filename_extensions): New member function.
4067 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4068 initializer.
4069 * objc-lang.c (objc_extensions): Delete, moved into
4070 objc_language::filename_extensions.
4071 (objc_language_data): Remove la_filename_extensions initializer.
4072 (objc_language::filename_extensions): New member function.
4073 * opencl-lang.c (opencl_language_data): Remove
4074 la_filename_extensions initializer.
4075 * p-lang.c (pascal_extensions): Delete, moved into
4076 pascal_language::filename_extensions.
4077 (pascal_language_data): Remove la_filename_extensions initializer.
4078 (pascal_language::filename_extensions): New member function.
4079 * rust-lang.c (rust_extensions): Delete, moved into
4080 rust_language::filename_extensions.
4081 (rust_language_data): Remove la_filename_extensions initializer.
4082 (rust_language::filename_extensions): New member function.
4083 * symfile.c (add_filename_language): Add new assert.
4084
4085 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * ada-lang.c (ada_language_data): Remove la_name and
4088 la_natural_name initializers.
4089 (ada_language::name): New member function.
4090 (ada_language::natural_name): New member function.
4091 * c-lang.c (c_language_data): Remove la_name and
4092 la_natural_name initializers.
4093 (c_language::name): New member function.
4094 (c_language::natural_name): New member function.
4095 (cplus_language_data): Remove la_name and
4096 la_natural_name initializers.
4097 (cplus_language::name): New member function.
4098 (cplus_language::natural_name): New member function.
4099 (asm_language_data): Remove la_name and
4100 la_natural_name initializers.
4101 (asm_language::name): New member function.
4102 (asm_language::natural_name): New member function.
4103 (minimal_language_data): Remove la_name and
4104 la_natural_name initializers.
4105 (minimal_language::name): New member function.
4106 (minimal_language::natural_name): New member function.
4107 * compile/compile.c (compile_to_object): Update call to
4108 lanugage_defn::name.
4109 * d-lang.c (d_language_data): Remove la_name and
4110 la_natural_name initializers.
4111 (d_language::name): New member function.
4112 (d_language::natural_name): New member function.
4113 * expprint.c (print_subexp_standard): Update call to
4114 language_defn::name.
4115 (dump_raw_expression): Likewise
4116 (dump_prefix_expression): Likewise.
4117 * f-lang.c (f_language_data): Remove la_name and
4118 la_natural_name initializers.
4119 (f_language::name): New member function.
4120 (f_language::natural_name): New member function.
4121 * go-lang.c (go_language_data): Remove la_name and
4122 la_natural_name initializers.
4123 (go_language::name): New member function.
4124 (go_language::natural_name): New member function.
4125 * language.c (show_language_command): Update call to
4126 language_defn::name.
4127 (set_language_command): Likewise.
4128 (language_enum): Likewise.
4129 (language_str): Likewise.
4130 (add_set_language_command): Likewise, use
4131 language_defn::natural_name in the doc string.
4132 (unknown_language_data): Remove la_name and
4133 la_natural_name initializers.
4134 (unknown_language::name): New member function.
4135 (unknown_language::natural_name): New member function.
4136 (auto_language_data): Remove la_name and
4137 la_natural_name initializers.
4138 (auto_language::name): New member function.
4139 (auto_language::natural_name): New member function.
4140 (language_lookup_primitive_type_as_symbol): Update call to
4141 language_defn::name.
4142 * language.h (language_data): Remove la_name and la_natural_name
4143 member variables.
4144 (language_defn::name): New member function.
4145 (language_defn::natural_name): New member function.
4146 * m2-lang.c (m2_language_data): Remove la_name and
4147 la_natural_name initializers.
4148 (m2_language::name): New member function.
4149 (m2_language::natural_name): New member function.
4150 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4151 language_defn::natural_name.
4152 * objc-lang.c (objc_language_data): Remove la_name and
4153 la_natural_name initializers.
4154 (objc_language::name): New member function.
4155 (objc_language::natural_name): New member function.
4156 * opencl-lang.c (opencl_language_data): Remove la_name and
4157 la_natural_name initializers.
4158 (opencl_language::name): New member function.
4159 (opencl_language::natural_name): New member function.
4160 * p-lang.c (pascal_language_data): Remove la_name and
4161 la_natural_name initializers.
4162 (pascal_language::name): New member function.
4163 (pascal_language::natural_name): New member function.
4164 * rust-lang.c (rust_language_data): Remove la_name and
4165 la_natural_name initializers.
4166 (rust_language::name): New member function.
4167 (rust_language::natural_name): New member function.
4168 * symtab.c (lookup_language_this): Update call to
4169 language_defn::name.
4170
4171 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * ada-lang.c (ada_language_data): Remove la_name_of_this
4174 initializer.
4175 * ax-gdb.c (gen_expr): Update call to name_of_this.
4176 * c-exp.y (classify_name): Likewise.
4177 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4178 (cplus_language_data): Likewise.
4179 (cplus_language::name_of_this): New member function.
4180 (asm_language_data): Remove la_name_of_this initializer.
4181 (minimal_language_data): Likewise.
4182 * d-lang.c (d_language_data): Likewise.
4183 (d_language::name_of_this): New member function.
4184 * expprint.c (print_subexp_standard): Update call to name_of_this.
4185 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4186 * go-lang.c (go_language_data): Likewise.
4187 * language.c (unknown_language_data): Likewise.
4188 (unknown_language::name_of_this): New member function.
4189 (auto_language_data): Remove la_name_of_this initializer.
4190 (auto_language::name_of_this): New member function.
4191 * language.h (language_data): Delete la_name_of_this member
4192 variable.
4193 (language_defn::name_of_this): New member function.
4194 * m2-lang.c (m2_language_data): Remove la_name_of_this
4195 initializer.
4196 * objc-lang.c (objc_language_data): Likewise.
4197 (objc_language::name_of_this): New member function.
4198 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4199 initializer.
4200 * p-lang.c (pascal_language_data): Likewise.
4201 (pascal_language::name_of_this): New member function.
4202 * rust-lang.c (rust_language_data): Remove la_name_of_this
4203 initializer.
4204 * symtab.c (lookup_language_this): Update call to name_of_this.
4205 (lookup_symbol_aux): Likewise.
4206 * valops.c (value_of_this): Likewise.
4207
4208 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * ada-lang.c (ada_language_data): Remove
4211 la_struct_too_deep_ellipsis initializer.
4212 (ada_language::struct_too_deep_ellipsis): New member function.
4213 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4214 initializer.
4215 (cplus_language_data): Likewise.
4216 (asm_language_data): Likewise.
4217 (minimal_language_data): Likewise.
4218 * cp-valprint.c (cp_print_value): Update call to
4219 struct_too_deep_ellipsis.
4220 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4221 initializer.
4222 * f-lang.c (f_language_data): Likewise.
4223 (f_language::struct_too_deep_ellipsis): New member function.
4224 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4225 initializer.
4226 * language.c (unknown_language_data): Likewise.
4227 (auto_language_data): Likewise.
4228 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4229 member variable.
4230 (language_defn::struct_too_deep_ellipsis): New member function.
4231 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4232 initializer.Q
4233 * objc-lang.c (objc_language_data): Likewise.
4234 * opencl-lang.c (opencl_language_data): Likewise.
4235 * p-lang.c (pascal_language_data): Likewise.
4236 * rust-lang.c (rust_language_data): Likewise.
4237 * valprint.c (val_print_check_max_depth): Update call to
4238 struct_too_deep_ellipsis.
4239
4240 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4241
4242 * MAINTAINERS (Write After Approval): Add myself.
4243
4244 2020-09-15 Tom Tromey <tom@tromey.com>
4245
4246 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4247 Remove.
4248
4249 2020-09-15 Tom Tromey <tom@tromey.com>
4250
4251 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4252 and TYPE_CODE_METHODPTR cases.
4253 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4254 (c_value_print_inner): Update.
4255 * valprint.c (generic_value_print_memberptr): New function, from
4256 c_value_print_memberptr.
4257 (generic_value_print): Use it. Call cplus_print_method_ptr.
4258
4259 2020-09-15 Tom Tromey <tromey@adacore.com>
4260
4261 * python/python-internal.h (PyInt_FromLong): Remove define.
4262 * python/py-value.c (convert_value_from_python): Use
4263 gdb_py_object_from_longest.
4264 * python/py-type.c (typy_get_code): Use
4265 gdb_py_object_from_longest.
4266 * python/py-symtab.c (salpy_get_line): Use
4267 gdb_py_object_from_longest.
4268 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4269 gdb_py_object_from_longest.
4270 * python/py-record.c (recpy_gap_reason_code): Use
4271 gdb_py_object_from_longest.
4272 * python/py-record-btrace.c (recpy_bt_insn_size)
4273 (recpy_bt_func_level, btpy_list_count): Use
4274 gdb_py_object_from_longest.
4275 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4276 gdb_py_object_from_longest. Fix error handling.
4277 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4278 gdb_py_object_from_longest.
4279 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4280 gdb_py_object_from_longest.
4281 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4282 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4283 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4284
4285 2020-09-15 Tom Tromey <tromey@adacore.com>
4286
4287 * python/python.c (gdbpy_parameter_value): Use
4288 gdb_py_object_from_ulongest.
4289
4290 2020-09-15 Tom Tromey <tromey@adacore.com>
4291
4292 * python/py-infevents.c (create_register_changed_event_object):
4293 Use gdb_py_object_from_longest.
4294 * python/py-exitedevent.c (create_exited_event_object): Use
4295 gdb_py_object_from_longest.
4296
4297 2020-09-15 Tom Tromey <tromey@adacore.com>
4298
4299 * python/python.c (gdbpy_parameter_value): Use
4300 gdb_py_object_from_longest.
4301 * python/py-type.c (convert_field, typy_range): Use
4302 gdb_py_object_from_longest.
4303 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4304 gdb_py_object_from_longest.
4305 * python/py-lazy-string.c (stpy_get_length): Use
4306 gdb_py_object_from_longest.
4307 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4308 gdb_py_object_from_longest.
4309 * python/py-infevents.c (create_memory_changed_event_object): Use
4310 gdb_py_object_from_longest.
4311 * python/py-inferior.c (infpy_get_num): Use
4312 gdb_py_object_from_longest.
4313 (infpy_get_pid): Likewise.
4314
4315 2020-09-15 Tom Tromey <tromey@adacore.com>
4316
4317 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4318 defines.
4319 * python/py-value.c (valpy_long): Use
4320 gdb_py_object_from_ulongest.
4321 * python/py-symtab.c (salpy_get_pc): Use
4322 gdb_py_object_from_ulongest.
4323 (salpy_get_last): Likewise.
4324 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4325 gdb_py_object_from_ulongest.
4326 * python/py-lazy-string.c (stpy_get_address): Use
4327 gdb_py_object_from_ulongest.
4328 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4329 * python/py-arch.c (archpy_disassemble): Use
4330 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4331 error handling.
4332
4333 2020-09-15 Tom Tromey <tromey@adacore.com>
4334
4335 * python/python-internal.h (gdb_py_long_from_longest): Remove
4336 defines.
4337 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4338 * python/py-type.c (convert_field, typy_get_sizeof): Use
4339 gdb_py_object_from_longest.
4340 * python/py-record-btrace.c (btpy_list_index): Use
4341 gdb_py_object_from_longest.
4342
4343 2020-09-15 Tom Tromey <tromey@adacore.com>
4344
4345 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4346 * python/py-record.c (recpy_element_number): Use
4347 gdb_py_object_from_longest.
4348 (recpy_gap_number): Likewise.
4349
4350 2020-09-15 Tom Tromey <tromey@adacore.com>
4351
4352 * top.c (ui::ui): Update.
4353 (highest_ui_num): Remove.
4354 * top.h (struct ui) <num>: Remove.
4355
4356 2020-09-15 Tom Tromey <tromey@adacore.com>
4357
4358 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4359 * ui-style.c (ansi_regex_text): Now array.
4360 * rust-exp.y (number_regex_text): Now array.
4361 * linespec.c (linespec_quote_characters): Now array.
4362 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4363 Now arrays.
4364
4365 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4366
4367 * debuginfod-support.c (debuginfod_client_deleter): New.
4368 (debuginfod_client_up): New.
4369 (debuginfod_init): Return debuginfod_client_up.
4370 (debuginfod_source_query): Adjust.
4371 (debuginfod_debuginfo_query): Adjust.
4372
4373 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * debuginfod-support.c (debuginfod_source_query): Use
4376 make_unique_xstrdup.
4377
4378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4381 with `type::instance_flags`.
4382
4383 2020-09-14 Michael Mullin <masmullin@gmail.com>
4384
4385 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4386 Remove baton parameter.
4387
4388 2020-09-14 Pedro Alves <pedro@palves.net>
4389
4390 * Makefile.in (SELFTESTS_SRCS): Add
4391 unittests/enum-flags-selftests.c.
4392 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4393 btrace_function_flags instead of enum btrace_function_flag.
4394 * compile/compile-c-types.c (convert_qualified): Use
4395 enum_flags::raw.
4396 * compile/compile-cplus-symbols.c (convert_one_symbol)
4397 (convert_symbol_bmsym):
4398 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4399 (compile_cplus_convert_struct_or_union_methods)
4400 (compile_cplus_instance::convert_qualified_base):
4401 * go-exp.y (parse_string_or_char): Add cast to int.
4402 * unittests/enum-flags-selftests.c: New file.
4403 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4404 type to btrace_thread_flags from btrace_thread_flag.
4405 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4406 local's type to btrace_thread_flags from btrace_thread_flag. Add
4407 cast in DEBUG call.
4408
4409 2020-09-14 Pedro Alves <pedro@palves.net>
4410
4411 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4412 * gdbtypes.c (address_space_name_to_int): Rename to ...
4413 (address_space_name_to_type_instance_flags): ... this.
4414 (address_space_int_to_name): Rename to ...
4415 (address_space_type_instance_flags_to_name): ... this.
4416 * gdbtypes.h (address_space_name_to_int): Rename to ...
4417 (address_space_name_to_type_instance_flags): ... this.
4418 (address_space_int_to_name): Rename to ...
4419 (address_space_type_instance_flags_to_name): ... this.
4420 * type-stack.c (type_stack::insert): Adjust to rename.
4421 * type-stack.h (type_stack::insert): Likewise.
4422
4423 2020-09-14 Pedro Alves <pedro@palves.net>
4424 Andrew Burgess <andrew.burgess@embecosm.com>
4425
4426 * avr-tdep.c (avr_address_class_type_flags): Return
4427 type_instance_flags.
4428 (avr_address_class_type_flags_to_name): Take a
4429 type_instance_flags.
4430 (avr_address_class_name_to_type_flags): Return bool and take a
4431 type_instance_flags.
4432 * d-lang.c (build_d_types): Use type::set_instance_flags.
4433 * ft32-tdep.c (ft32_address_class_type_flags): Return
4434 type_instance_flags.
4435 (ft32_address_class_type_flags_to_name): Take a
4436 type_instance_flags.
4437 (ft32_address_class_name_to_type_flags): Return bool and take a
4438 type_instance_flags.
4439 (ft32_gdbarch_init): Use type::set_instance_flags.
4440 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4441 * gdbarch.h, gdbarch.c: Regenerate.
4442 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4443 (address_class_name_to_type_flags): Use type_instance_flags and
4444 bool.
4445 * gdbtypes.c (address_space_name_to_int)
4446 (address_space_int_to_name, make_qualified_type): Use
4447 type_instance_flags.
4448 (make_qualified_type): Use type_instance_flags and
4449 type::set_instance_flags.
4450 (make_type_with_address_space, make_cv_type, make_vector_type)
4451 (check_typedef): Use type_instance_flags.
4452 (recursive_dump_type): Cast type_instance_flags to unsigned for
4453 printing.
4454 (copy_type_recursive): Use type::set_instance_flags.
4455 (gdbtypes_post_init): Use type::set_instance_flags.
4456 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4457 <m_instance_flags>: ... this.
4458 <instance_flags, set_instance_flags>: New methods.
4459 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4460 (SET_TYPE_INSTANCE_FLAGS): New.
4461 (address_space_name_to_int, address_space_int_to_name)
4462 (make_type_with_address_space): Pass flags using
4463 type_instance_flags instead of int.
4464 * stabsread.c (cleanup_undefined_types_noname): Use
4465 type::set_instance_flags.
4466 * s390-tdep.c (s390_address_class_type_flags): Return
4467 type_instance_flags.
4468 (s390_address_class_type_flags_to_name): Take a
4469 type_instance_flags.
4470 (s390_address_class_name_to_type_flags): Return bool and take a
4471 type_instance_flags.
4472 * type-stack.c (type_stack::follow_types): Use
4473 type_instance_flags.
4474 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4475
4476 2020-09-14 Tom Tromey <tromey@adacore.com>
4477
4478 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4479 * x86-tdep.c (x86_is_thunk_register_name)
4480 (x86_in_indirect_branch_thunk): Update.
4481 * sparc64-tdep.c (sparc64_fpu_register_names)
4482 (sparc64_cp0_register_names, sparc64_register_names)
4483 (sparc64_pseudo_register_names): Now const.
4484 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4485 cp0_registers_num>: Now const.
4486 * sparc-tdep.c (sparc_core_register_names)
4487 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4488 (sparc32_pseudo_register_names): Now const.
4489 (validate_tdesc_registers): Update.
4490 * rust-lang.c (rust_extensions): Now const.
4491 * p-lang.c (p_extensions): Now const.
4492 * objc-lang.c (objc_extensions): Now const.
4493 * nto-tdep.c (nto_thread_state_str): Now const.
4494 * moxie-tdep.c (moxie_register_names): Now const.
4495 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4496 Now const.
4497 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4498 (mips_linux_reg_names): Now const.
4499 (mips_gdbarch_init): Update.
4500 * microblaze-tdep.c (microblaze_register_names): Now const.
4501 * m68k-tdep.c (m68k_register_names): Now const.
4502 * m32r-tdep.c (m32r_register_names): Now const.
4503 * ia64-tdep.c (ia64_register_names): Now const.
4504 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4505 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4506 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4507 ymm_avx512_register_names, pkeys_register_names>: Now const.
4508 * i386-tdep.c (i386_register_names, i386_zmm_names)
4509 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4510 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4511 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4512 * f-lang.c (f_extensions): Now const.
4513 * d-lang.c (d_extensions): Now const.
4514 * csky-tdep.c (csky_register_names): Now const.
4515 * charset.c (default_charset_names, charset_enum): Now const.
4516 (_initialize_charset): Update.
4517 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4518 const.
4519 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4520 (bsd_uthread_solib_loaded): Update.
4521 (bsd_uthread_state): Now const.
4522 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4523 (amd64_ymm_avx512_names, amd64_ymmh_names)
4524 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4525 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4526 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4527 (amd64_dword_names): Now const.
4528 * agent.c (can_use_agent_enum): Now const.
4529 * ada-tasks.c (task_states, long_task_states): Now const.
4530 * ada-lang.c (known_runtime_file_name_patterns)
4531 (known_auxiliary_function_name_patterns, attribute_names)
4532 (standard_exc, ada_extensions): Now const.
4533
4534 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4535
4536 * bcache.h (struct bcache) <bcache>: Remove constructor.
4537 <m_hash_function, m_compare_function>: Remove.
4538 <~bcache>: Make virtual.
4539 <compare>: Remove static method, introduce virtual method.
4540 <default_hash>: Remove.
4541 <hash>: New virtual method.
4542 * bcache.c (bcache::expand_hash_table): Update.
4543 (bcache::insert): Update.
4544 (bcache::hash): New.
4545 (bcache::compare): Update comment and parameter names.
4546 * gdbtypes.c (types_deeply_equal): Update.
4547 * psymtab.h (struct psymbol_bcache): New struct.
4548 (class psymtab_storage) <psymtab_storage>: Make default.
4549 <psymbol_cache>: Change type to psymbol_bcache.
4550 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4551 (psymbol_hash): Change to...
4552 (psymbol_bcache::hash): ... this.
4553 (psymbol_compare): Change to...
4554 (psymbol_bcache::compare): ... this.
4555
4556 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4557
4558 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4559 checking for initial lwp.
4560
4561 2020-09-14 Tom Tromey <tromey@adacore.com>
4562
4563 * m68k-tdep.c (m68k_extract_return_value): Use
4564 pointer_result_regnum.
4565 (m68k_store_return_value): Likewise.
4566 (m68k_reg_struct_return_p): Handle vectors and arrays.
4567 (m68k_return_value): Handle arrays.
4568 (m68k_svr4_return_value): Fix single-element aggregate handling.
4569 Handle long double. Adjust for embedded ABI.
4570 (m68k_svr4_init_abi): Set pointer_result_regnum.
4571 (m68k_embedded_init_abi): New function.
4572 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4573 (m68k_osabi_sniffer): New function.
4574 (_initialize_m68k_tdep): Register osabi sniffer.
4575 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4576 member.
4577
4578 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4579
4580 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4581 with gdb::unique_xmalloc_ptr<char>.
4582
4583 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * xml-support.h (xml_fetch_another): Change type to be a
4586 function_view.
4587 (xml_process_xincludes): Remove baton parameter.
4588 (xml_fetch_content_from_file): Change baton parameter to
4589 dirname.
4590 * xml-support.c (struct xinclude_parsing_data)
4591 <xinclude_parsing_data>: Remove baton parameter.
4592 <fetcher_baton>: Remove.
4593 (xinclude_start_include): Adjust.
4594 (xml_process_xincludes): Adjust.
4595 (xml_fetch_content_from_file): Replace baton parameter with
4596 dirname.
4597 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4598 (xml_init_syscalls_info): Use a lambda.
4599 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4600 (file_read_description_xml): Use a lambda.
4601 (fetch_available_features_from_target): Change baton parameter
4602 to target_ops.
4603 (target_read_description_xml): Use a lambda.
4604 (target_fetch_description_xml): Use a lambda.
4605 (string_read_description_xml): Update.
4606
4607 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4608
4609 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4610 uses with type::endianity_is_not_default.
4611
4612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbtypes.h (struct type) <endianity_is_not_default,
4615 set_endianity_is_not_default>: New methods.
4616 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4617 type::endianity_is_not_default, change all write call sites to
4618 use type::set_endianity_is_not_default.
4619
4620 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4623 uses with type::is_fixed_instance.
4624
4625 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * gdbtypes.h (struct type) <is_fixed_instance,
4628 set_is_fixed_instance>: New methods.
4629 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4630 write call sites to use type::set_is_fixed_instance.
4631
4632 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4635 uses with type::is_gnu_ifunc.
4636
4637 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4640 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4641 use type::set_is_gnu_ifunc.
4642
4643 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4646 uses with type::stub_is_supported.
4647
4648 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4651 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4652 use type::set_stub_is_supported.
4653
4654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4657 uses with type::is_vector.
4658
4659 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4662 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4663 use type::set_is_vector.
4664
4665 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4668 uses with type::has_varargs.
4669
4670 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4673 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4674 use type::set_has_varargs.
4675
4676 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4679 uses with type::is_prototyped.
4680
4681 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4684 New methods.
4685 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4686 call sites to use type::set_is_prototyped.
4687
4688 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4691 uses with type::target_is_stub.
4692
4693 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4696 New methods.
4697 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4698 sites to use type::set_target_is_stub.
4699
4700 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbtypes.h (TYPE_STUB): Remove, replace all
4703 uses with type::is_stub.
4704
4705 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4708 (TYPE_STUB): Use type::is_stub, change all write call sites to
4709 use type::set_is_stub.
4710
4711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4714 type::has_no_signedness.
4715
4716 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * gdbtypes.h (struct type) <has_no_signedness,
4719 set_has_no_signedness>: New methods.
4720 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4721 call sites to use type::set_has_no_signedness.
4722
4723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4726 type::is_unsigned.
4727
4728 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4731 methods.
4732 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4733 sites to use type::set_is_unsigned.
4734
4735 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4736 Adam Renquinha <arenquinha@cimeq.qc.ca>
4737
4738 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4739 pointer and stack frame offset when unwinding.
4740
4741 2020-09-13 Pedro Alves <pedro@palves.net>
4742
4743 * NEWS: Document "-break-insert --qualified".
4744 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4745
4746 2020-09-13 Pedro Alves <pedro@palves.net>
4747
4748 * linespec.c (classify_mtype, compare_msyms): Delete.
4749 (search_minsyms_for_name): Remove classification logic. Instead
4750 filter out trampoline symbols if we also found an external
4751 function of the same name.
4752
4753 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4754
4755 * NEWS: Create a new section for the next release branch.
4756 Rename the section of the current branch, now that it has
4757 been cut.
4758
4759 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4760
4761 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4762 * version.in: Bump version to 11.0.50.DATE-git.
4763
4764 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4765
4766 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4767
4768 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4769 Felix Willgerodt <Felix.Willgerodt@intel.com>
4770
4771 * gdbarch.sh: Added bfloat16 type.
4772 * gdbarch.c: Regenerated.
4773 * gdbarch.h: Regenerated.
4774 * gdbtypes.c (floatformats_bfloat16): New struct.
4775 (gdbtypes_post_init): Add builtin_bfloat16.
4776 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4777 (floatformats_bfloat16): New struct.
4778 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4779 (i386_ymm_type): Add field "v16_bfloat16"
4780 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4781 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4782 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4783 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4784 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4785 * features/i386/64bit-avx512.c: Regenerated.
4786 * features/i386/64bit-sse.xml: Add bfloat16 type.
4787 * features/i386/64bit-sse.c: Regenerated.
4788
4789 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4790
4791 * i386-tdep.c (i386_zmm_type): Fix field names.
4792 (i386_ymm_type): Fix field names.
4793
4794 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4795
4796 * breakpoint.c: Fix typo in the help message of the
4797 "set breakpoint condition-evaluation" command.
4798
4799 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4800
4801 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4802 * (nbsd_nat_target::pid_to_exec_file)
4803 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4804 (nbsd_nat_target::post_startup_inferior)
4805 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4806 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4807 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4808 * (nbsd_thread_lister): Remove.
4809
4810 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4811
4812 * fork-inferior.c (startup_inferior): Avoid double free.
4813
4814 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4815
4816 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4817 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4818
4819 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4820
4821 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4822 * netbsd-nat.c: Include <sys/ptrace.h>.
4823 * (netbsd_nat::enable_proc_events): Add.
4824
4825 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4826
4827 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4828 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4829 (netbsd_nat::for_each_thread): Add.
4830 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4831 "gdbsupport/common-debug.h".
4832 * (netbsd_nat::netbsd_thread_lister)
4833 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4834 (netbsd_nat::for_each_thread): Add.
4835
4836 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4837
4838 * netbsd-nat.h: Include <unistd.h>.
4839 * (netbsd_nat::pid_to_exec_file): Add.
4840 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4841 * (netbsd_nat::pid_to_exec_file) Add.
4842
4843 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4844
4845 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4846
4847 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4848
4849 * netbsd-nat.h: New file.
4850 * netbsd-nat.c: Likewise.
4851
4852 2020-09-09 Tom Tromey <tromey@adacore.com>
4853
4854 * ada-lang.c (remove_extra_symbols): Do not increment when
4855 removing an element
4856
4857 2020-09-08 Tom Tromey <tromey@adacore.com>
4858
4859 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4860
4861 2020-09-08 Tom Tromey <tromey@adacore.com>
4862
4863 PR win32/25302:
4864 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4865 (gdb_bfd_init_data): New function.
4866 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4867
4868 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4869
4870 * infrun.c (fetch_inferior_event): Use
4871 `switch_to_target_no_thread` to switch the target.
4872
4873 2020-09-06 Tom Tromey <tom@tromey.com>
4874
4875 * symfile.h (dwarf2_free_objfile): Don't declare.
4876
4877 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4878
4879 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4880 to match 16 byte real/complex type generated by Flang compiler.
4881
4882 2020-09-03 Tom de Vries <tdevries@suse.de>
4883
4884 PR breakpoint/26546
4885 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4886 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4887
4888 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 * maint.c (index_digits): New function.
4891 (struct maint_print_section_data): Remove.
4892 (print_bfd_section_info): Remove print_data parameter, add arg
4893 and index_digits.
4894 (print_objfile_section_info): Likewise.
4895 (print_bfd_section_info_maybe_relocated): Likewise (plus
4896 objfile).
4897 (maintenance_info_sections): Adjust calls.
4898
4899 2020-09-02 Tom Tromey <tromey@adacore.com>
4900
4901 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4902 for null pointers.
4903 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4904
4905 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4906
4907 * bcache.h (struct bcache) <insert>: Change type of `added` to
4908 pointer to bool.
4909 * bcache.c (bcache::insert): Likewise.
4910 * gdbtypes.c (check_types_worklist): Adjust.
4911 * psymtab.c (add_psymbol_to_bcache): Adjust.
4912
4913 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4914
4915 * corelow.c (unordered_set): Include.
4916 (class core_target): Add field 'm_core_unavailable_mappings'.
4917 (core_target::build_file_mappings): Print only one warning
4918 per inaccessible file. Add unavailable/broken mappings
4919 to m_core_unavailable_mappings.
4920 (core_target::xfer_partial): Call...
4921 (core_target::xfer_memory_via_mappings): New method.
4922
4923 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4924
4925 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4926 type to bool.
4927
4928 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4929
4930 * dwarf2/read.c (struct field_info): Fix indentation.
4931
4932 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4933
4934 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4935 ordering in comment.
4936 * frame.c (frame_id_eq): Fix indentation.
4937
4938 2020-08-31 Scott Linder <scott@scottlinder.com>
4939 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4942 inline frame ids in outer frame.
4943
4944 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4947 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4948 (outer_frame_id): Use FID_STACK_OUTER instead of
4949 FID_STACK_INVALID.
4950 (frame_id_p): Don't check for outer_frame_id.
4951
4952 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4955 regnum/frame in value. Call allocate_value_lazy.
4956 * frame.c (frame_unwind_register_value): Use
4957 val_print_not_saved.
4958
4959 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4962
4963 2020-08-29 Pedro Alves <pedro@palves.net>
4964
4965 * progspace.c (print_program_space): Use all_inferiors. Switch to
4966 the inferior before calling target_pid_to_str.
4967
4968 2020-08-28 Tom Tromey <tom@tromey.com>
4969
4970 * xcoffread.c (xcoff_end_psymtab): Update comment.
4971 * dbxread.c (dbx_end_psymtab): Update comment.
4972
4973 2020-08-28 Tom de Vries <tdevries@suse.de>
4974
4975 PR breakpoint/26544
4976 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4977 event_location.
4978 (create_breakpoint): Same.
4979 (base_breakpoint_decode_location): Same.
4980 (bkpt_create_sals_from_location): Same.
4981 (bkpt_decode_location): Same.
4982 (bkpt_probe_create_sals_from_location): Same.
4983 (bkpt_probe_decode_location): Same.
4984 (tracepoint_create_sals_from_location): Same.
4985 (tracepoint_decode_location): Same.
4986 (tracepoint_probe_decode_location): Same.
4987 (strace_marker_create_sals_from_location): Same.
4988 (strace_marker_decode_location): Same.
4989 (create_sals_from_location_default): Same.
4990 (decode_location_default): Same.
4991 * breakpoint.h (struct breakpoint_ops): Same.
4992 (create_breakpoint): Same.
4993 * linespec.h (decode_line_full): Same.
4994 * linespec.c (decode_line_full): Same. Throw error if
4995 result.size () == 0.
4996
4997 2020-08-27 Pedro Alves <pedro@palves.net>
4998
4999 PR gdb/26524
5000 * breakpoint.c (until_break_fsm) <location_breakpoint,
5001 caller_breakpoint>: Delete fields.
5002 <breakpoints>: New field.
5003 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5004 two individual breakpoints.
5005 (until_break_fsm::should_stop): Loop over breakpoints in the
5006 breakpoint vector.
5007 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5008 vector.
5009 (until_break_command): Handle location expanding into multiple
5010 sals.
5011
5012 2020-08-27 Pedro Alves <pedro@palves.net>
5013
5014 PR gdb/26523
5015 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5016 bp_until breakpoints user-specified locations. Update intro
5017 comment.
5018
5019 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5020
5021 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5022 gdb_bfd_sections): New.
5023 * maint.c (print_bfd_section_info): Change param type to
5024 maint_print_section_data.
5025 (print_objfile_section_info): Likewise.
5026 (print_bfd_section_info_maybe_relocated): Likewise.
5027 (maintenance_info_sections): Use gdb_bfd_sections.
5028
5029 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5030
5031 * MAINTAINERS: Add ARC target and maintainer.
5032
5033 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5034
5035 * configure.tgt: ARC support for GNU/Linux.
5036 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5037 * arc-linux-tdep.c: New file.
5038 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5039 * arc-tdep.c (arc_write_pc): Use it.
5040
5041 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5042
5043 * arc-tdep.c (arc_check_for_hardware_loop): New.
5044 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5045
5046 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5047
5048 * arc-tdep.h: Include "gdbarch.h".
5049
5050 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5051
5052 * arch/arc.h
5053 (arc_gdbarch_features): New class to stir the selection of target XML.
5054 (arc_create_target_description): Use FEATURES to choose XML target.
5055 (arc_lookup_target_description): Use arc_create_target_description
5056 to create _new_ target descriptions or return the already created
5057 ones if the FEATURES is the same.
5058 * arch/arc.c: Implementation of prototypes described above.
5059 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5060 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5061 * arc-tdep.c (*_feature_name): Make feature names consistent.
5062 (arc_register_feature): A new struct to hold information about
5063 registers of a particular target/feature.
5064 (arc_check_tdesc_feature): Check if XML provides registers in
5065 compliance with ARC_REGISTER_FEATURE structs.
5066 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5067 (determine_*_reg_feature_set): Which feature name to look for.
5068 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5069 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5070 to expected ISA enums to be used in arc_gdbarch_features structs.
5071 * features/Makefile (FEATURE_XMLFILES): Add new files.
5072 * gdb/features/arc/v1-aux.c: New file.
5073 * gdb/features/arc/v1-aux.xml: Likewise.
5074 * gdb/features/arc/v1-core.c: Likewise.
5075 * gdb/features/arc/v1-core.xml: Likewise.
5076 * gdb/features/arc/v2-aux.c: Likewise.
5077 * gdb/features/arc/v2-aux.xml: Likewise.
5078 * gdb/features/arc/v2-core.c: Likewise.
5079 * gdb/features/arc/v2-core.xml: Likewise.
5080 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5081
5082 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5083 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 PR m2/26372
5086 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5087 an assert. Remove single element array indexing pattern as the
5088 MULTI_SUBSCRIPT support will handle this case too.
5089
5090 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5091
5092 * value.h (valprint_check_validity): Move declaration from
5093 here...
5094 * valprint.h (valprint_check_validity): ... to here.
5095
5096 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5097
5098 * debug.h: New file.
5099 * debug.c (debug_prefixed_vprintf): New function.
5100 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5101 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5102
5103 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5104
5105 * infrun.h (infrun_debug_printf_1): New function declaration.
5106 (infrun_debug_printf): New macro.
5107 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5108 throughout.
5109 (infrun_debug_printf): New function.
5110 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5111 (handle_jit_event): Likewise.
5112
5113 2020-08-21 Mark Wielaard <mark@klomp.org>
5114
5115 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5116
5117 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5118
5119 * frame.c (enum class frame_id_status): New.
5120 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5121 (fprintf_frame): Update.
5122 (compute_frame_id): Set frame id status to "computing" on entry.
5123 Set it back to "not_computed" on failure and to "computed" on
5124 success.
5125 (get_frame_id): Assert the frame id is not being computed.
5126 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5127 (create_new_frame): Likewise.
5128 (frame_cleanup_after_sniffer): Update assert.
5129
5130 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * regcache.c (pid_ptid_regcache_map): New type.
5133 (target_ptid_regcache_map): Remove.
5134 (target_pid_ptid_regcache_map): New type.
5135 (regcaches): Change type to target_pid_ptid_regcache_map.
5136 (get_thread_arch_aspace_regcache): Update.
5137 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5138 case.
5139 (regcaches_size): Update.
5140 (regcache_count): Update.
5141 (registers_changed_ptid_target_pid_test): New.
5142 (_initialize_regcache): Register new test.
5143
5144 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5145
5146 * regcache.c (regcache_count): New.
5147 (struct regcache_test_data): New.
5148 (regcache_test_data_up): New.
5149 (populate_regcaches_for_test): New.
5150 (regcaches_test): Remove.
5151 (get_thread_arch_aspace_regcache_test): New.
5152 (registers_changed_ptid_all_test): New.
5153 (registers_changed_ptid_target_test): New.
5154 (registers_changed_ptid_target_ptid_test): New.
5155 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5156 (_initialize_regcache): Register new tests.
5157
5158 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5159
5160 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5161 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5162 gdbarch and aspace parameter. Use current inferior's aspace.
5163 Validate regcache's arch value.
5164 (regcaches_test): Update.
5165
5166 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5167
5168 * regcache.c (regcaches_test): Call registers_changed.
5169
5170 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5171
5172 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5173
5174 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5175
5176 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5177 to find the end of prologue for flang compiled binaries.
5178 * arm-tdep.c (arm_skip_prologue): Likewise.
5179 * i386-tdep.c (i386_skip_prologue): Likewise.
5180 * producer.c (producer_is_llvm): New function.
5181 (producer_parsing_tests): Added new tests for clang/flang.
5182 * producer.h (producer_is_llvm): New declaration.
5183
5184 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * linux-nat.c (linux_nat_debug_printf): New function.
5187 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5188
5189 2020-08-18 Aaron Merey <amerey@redhat.com>
5190
5191 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5192 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5193 (CLIBS): Add DEBUGINFOD_LIBS.
5194
5195 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5196
5197 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5198 'gdbarch_num_regs'.
5199
5200 2020-08-17 Tom Tromey <tromey@adacore.com>
5201
5202 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5203 ada_get_decoded_value returns NULL.
5204
5205 2020-08-17 Tom Tromey <tromey@adacore.com>
5206
5207 * python/py-inferior.c (infpy_search_memory): Use
5208 gdb_py_object_from_ulongest.
5209 * python/py-infevents.c (create_inferior_call_event_object)
5210 (create_memory_changed_event_object): Use
5211 gdb_py_object_from_ulongest.
5212 * python/py-linetable.c (ltpy_entry_get_pc): Use
5213 gdb_py_object_from_ulongest.
5214
5215 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5216
5217 * loc.c (class symbol_needs_eval_context): Fix indentation.
5218
5219 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5222 bool.
5223
5224 2020-08-17 Tom de Vries <tdevries@suse.de>
5225
5226 PR gdb/26393
5227 * gdbtypes.c (dump_dynamic_prop): New function.
5228 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5229
5230 2020-08-15 Tom de Vries <tdevries@suse.de>
5231
5232 PR backtrace/26390
5233 * stack.c (print_frame_args): Temporarily set the selected
5234 frame to FRAME while printing the frame's arguments.
5235
5236 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5237
5238 PR breakpoints/26385
5239 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5240 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5241
5242 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5243
5244 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5245 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5246 and >= to check return value instead of == -1 and != -1.
5247
5248 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5249
5250 * utils.h (class gdb_argv) <as_array_view>: New method.
5251 * utils.c (gdb_argv_as_array_view_test): New.
5252 (_initialize_utils): Register selftest.
5253 * maint.c (maintenance_selftest): Use the new method.
5254
5255 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5256
5257 * target.h (supports_dumpcore, dumpcore): New
5258 function declarations.
5259 * target.c (supports_dumpcore, dumpcore): New
5260 functions.
5261 * target-delegates.c: Rebuild.
5262 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5263 and target_dumpcore ().
5264
5265 2020-08-13 Aaron Merey <amerey@redhat.com>
5266
5267 * debuginfod-support.c: Replace global variables with user_data.
5268
5269 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5270
5271 * maint.c (maintenance_selftest): Split args and pass array_view
5272 to run_tests.
5273
5274 2020-08-12 Luis Machado <luis.machado@linaro.org>
5275
5276 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5277 type's length.
5278 Use %s and pulongest to print the length.
5279
5280 2020-08-12 Pedro Alves <palves@redhat.com>
5281
5282 * NEWS: Move "Multi-target debugging support" item to the
5283 "Changes since GDB 9" section.
5284
5285 2020-08-12 Pedro Alves <palves@redhat.com>
5286
5287 PR gdb/26336
5288 * progspace.c (program_space::remove_objfile): Invalidate the
5289 frame cache.
5290
5291 2020-08-11 Tom de Vries <tdevries@suse.de>
5292
5293 * MAINTAINERS: Mark ms1 as deleted.
5294
5295 2020-08-10 Luis Machado <luis.machado@linaro.org>
5296
5297 PR gdb/26310
5298
5299 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5300 act accordingly.
5301 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5302 movz/str/stur/stp skipping behavior.
5303
5304 2020-08-10 Luis Machado <luis.machado@linaro.org>
5305
5306 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5307 struct user_sve_header instead of struct sve_context.
5308
5309 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5310
5311 * read.h (dwarf2_fetch_die_loc_sect_off,
5312 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5313 `void *` parameter with function_view.
5314 * read.c (dwarf2_fetch_die_loc_sect_off,
5315 dwarf2_fetch_die_loc_cu_off): Likewise.
5316 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5317 (per_cu_dwarf_call): Adjust.
5318 (get_frame_address_in_block_wrapper): Remove.
5319 (indirect_synthetic_pointer): Adjust.
5320 (get_ax_pc): Remove.
5321 (dwarf2_compile_expr_to_ax): Adjust.
5322
5323 2020-08-08 Tom de Vries <tdevries@suse.de>
5324
5325 PR build/26344
5326 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5327 constructor.
5328 * regcache.c (get_thread_arch_aspace_regcache): Same.
5329
5330 2020-08-07 Tom Tromey <tromey@adacore.com>
5331
5332 * ravenscar-thread.c
5333 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5334 New method.
5335 (ravenscar_thread_target::wait): Check
5336 runtime_initialized.
5337 (ravenscar_thread_target::prepare_to_store)
5338 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5339 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5340 (ravenscar_thread_target::stopped_by_watchpoint)
5341 (ravenscar_thread_target::stopped_data_address)
5342 (ravenscar_thread_target::core_of_thread): Use
5343 scoped_restore_current_thread and
5344 set_base_thread_from_ravenscar_task.
5345
5346 2020-08-07 Tom Tromey <tromey@adacore.com>
5347
5348 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5349
5350 2020-08-07 Tom Tromey <tromey@adacore.com>
5351
5352 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5353 update_inferior_ptid before update_thread_list.
5354 (temporarily_change_regcache_ptid): New class.
5355 (ravenscar_thread_target::fetch_registers)
5356 (ravenscar_thread_target::store_registers)
5357 (ravenscar_thread_target::prepare_to_store): Use base thread when
5358 forwarding operation.
5359
5360 2020-08-07 Tom Tromey <tromey@adacore.com>
5361
5362 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5363 "is_pid" case.
5364
5365 2020-08-07 Tom Tromey <tromey@adacore.com>
5366
5367 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5368 New methods.
5369 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5370 first.
5371 (ravenscar_thread_target::add_thread): Rename from
5372 ravenscar_add_thread.
5373 (ravenscar_thread_target::update_thread_list): Use a lambda.
5374 (ravenscar_thread_target::xfer_partial): New method.
5375
5376 2020-08-07 Tom Tromey <tromey@adacore.com>
5377
5378 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5379 gdb::function_view.
5380 (iterate_over_live_ada_tasks): Change type of argument.
5381 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5382 of argument.
5383
5384 2020-08-07 Tom Tromey <tromey@adacore.com>
5385
5386 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5387 Remove.
5388 (ravenscar_thread_target::extra_thread_info): Remove.
5389 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5390 defer to target beneath for non-Ravenscar threads.
5391
5392 2020-08-07 Tom Tromey <tromey@adacore.com>
5393
5394 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5395 get_base_thread_from_ravenscar_task>: Now methods.
5396 <m_cpu_map>: New member.
5397 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5398 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5399 (ravenscar_thread_target::task_is_currently_active): Update.
5400 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5401 Now a method.
5402 (ravenscar_thread_target::add_active_thread): Put initial thread
5403 into the m_cpu_map.
5404
5405 2020-08-07 Tom Tromey <tromey@adacore.com>
5406
5407 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5408 event_ptid.
5409
5410 2020-08-07 Tom Tromey <tromey@adacore.com>
5411
5412 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5413 runtime_initialized.
5414
5415 2020-08-07 Tom Tromey <tromey@adacore.com>
5416
5417 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5418 add_active_thread.
5419 (ravenscar_thread_target::add_active_thread): Now public.
5420 (ravenscar_inferior_created): Call add_active_thread after pushing
5421 the target.
5422
5423 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * regcache.c (ptid_regcache_map): New type.
5426 (target_ptid_regcache_map): New type.
5427 (regcaches): Change type to target_ptid_regcache_map.
5428 (get_thread_arch_aspace_regcache): Update to regcaches' new
5429 type.
5430 (regcache_thread_ptid_changed): Likewise.
5431 (registers_changed_ptid): Likewise.
5432 (regcaches_size): Likewise.
5433 (regcaches_test): Update.
5434 (regcache_thread_ptid_changed): Update.
5435 * regcache.h (regcache_up): New type.
5436 * gdbsupport/ptid.h (hash_ptid): New struct.
5437
5438 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * observable.h (thread_ptid_changed): Add parameter
5441 `process_stratum_target *`.
5442 * infrun.c (infrun_thread_ptid_changed): Add parameter
5443 `process_stratum_target *` and use it.
5444 (selftests): New namespace.
5445 (infrun_thread_ptid_changed): New function.
5446 (_initialize_infrun): Register selftest.
5447 * regcache.c (regcache_thread_ptid_changed): Add parameter
5448 `process_stratum_target *` and use it.
5449 (regcache_thread_ptid_changed): New function.
5450 (_initialize_regcache): Register selftest.
5451 * thread.c (thread_change_ptid): Pass target to
5452 thread_ptid_changed observable.
5453
5454 2020-08-06 Caroline Tice <cmtice@google.com>
5455
5456 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5457 (struct dwp_sections): Update field comments. Add loclists and
5458 rnglists fields.
5459 (struct virtual_v2_dwo_sections): Rename struct to
5460 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5461 size & offset fields for loclists and rnglists.
5462 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5463 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5464 skipping dummy type units.
5465 (create_dwp_hash_table): Update the large comment above the function to
5466 discuss Version 5 DWP files as well, with references. Update all the
5467 version checks in the function to check for version 5 as well. Add new
5468 section at the end to create dwp hash table for version 5.
5469 (create_dwp_v2_section): Rename function to
5470 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5471 Add V5 to error message text.
5472 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5473 into calls to create_dwp_v2_or_v5_section.
5474 (create_dwo_unit_in_dwp_v5): New function.
5475 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5476 check for version2; add else clause to handle version 5.
5477 (open_and_init_dwo_file): Add code to check dwarf version & only call
5478 create_debug_types_hash_table (with sections.types) if version is not 5;
5479 else call create_debug_type_hash_table, with sections.info.
5480 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5481 version 5.
5482 (dwarf2_locate_v5_dwp_sections): New function.
5483 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5484 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5485
5486 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * regcache.h (class regcache): Remove friend
5489 registers_changed_ptid.
5490 <regcache_thread_ptid_changed>: Remove.
5491 <regcaches>: Remove.
5492 * regcache.c (regcache::regcaches): Rename to...
5493 (regcaches): ... this. Make static.
5494 (get_thread_arch_aspace_regcache): Update.
5495 (regcache::regcache_thread_ptid_changed): Rename to...
5496 (regcache_thread_ptid_changed): ... this. Update.
5497 (class regcache_access): Remove.
5498 (regcaches_test): Update.
5499 (_initialize_regcache): Update.
5500 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5501 <forward_list>.
5502
5503 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5504
5505 * regcache.h (class regcache) <current_regcache>: Rename to...
5506 <regcaches>: ... this. Move doc here.
5507 * regcache.c (regcache::current_regcache) Rename to...
5508 (regcache::regcaches): ... this. Move doc to header.
5509 (get_thread_arch_aspace_regcache): Update.
5510 (regcache::regcache_thread_ptid_changed): Update.
5511 (registers_changed_ptid): Update.
5512 (class regcache_access) <current_regcache_size>: Rename to...
5513 <regcaches_size>: ... this.
5514 (current_regcache_test): Rename to...
5515 (regcaches_test): ... this.
5516 (_initialize_regcache): Update.
5517
5518 2020-08-06 Victor Collod <vcollod@nvidia.com>
5519
5520 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5521
5522 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5523
5524 * corelow.c (core_target::build_file_mappings): Don't output
5525 null pathname in warning.
5526
5527 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5528
5529 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5530 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5531 gdb.dwarf2/dw2-single-line-discriminators.exp,
5532 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5533
5534 2020-08-05 Tom Tromey <tromey@adacore.com>
5535
5536 PR rust/26197:
5537 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5538 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5539 Fix off-by-one and type size errors in ordinary case.
5540
5541 2020-08-05 Tom de Vries <tdevries@suse.de>
5542
5543 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5544 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5545
5546 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * frame.h (frame_id_p): Return bool.
5549 (frame_id_artificial_p): Return bool.
5550 (frame_id_eq): Return bool.
5551 (has_stack_frames): Return bool.
5552 (get_selected_frame): Fix typo in comment.
5553 (get_frame_pc_if_available): Return bool.
5554 (get_frame_address_in_block_if_available): Return bool.
5555 (get_frame_func_if_available): Return bool.
5556 (read_frame_register_unsigned): Return bool.
5557 (get_frame_register_bytes): Return bool.
5558 (safe_frame_unwind_memory): Return bool.
5559 (deprecated_frame_register_read): Return bool.
5560 (frame_unwinder_is): Return bool.
5561 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5562 bool.
5563 <this_id::p>: Likewise.
5564 <prev_p>: Likewise.
5565 (frame_stash_add): Return bool.
5566 (get_frame_id): Use bool.
5567 (frame_id_build_special) Use bool.
5568 (frame_id_build_unavailable_stack): Use bool.
5569 (frame_id_build): Use bool.
5570 (frame_id_p): Return bool, use true/false instead of 1/0.
5571 (frame_id_artificial_p): Likewise.
5572 (frame_id_eq): Likewise.
5573 (frame_id_inner): Likewise.
5574 (get_frame_func_if_available): Likewise.
5575 (read_frame_register_unsigned): Likewise.
5576 (deprecated_frame_register_read): Likewise.
5577 (get_frame_register_bytes): Likewise.
5578 (has_stack_frames): Likewise.
5579 (inside_main_func): Likewise.
5580 (inside_entry_func): Likewise.
5581 (get_frame_pc_if_available): Likewise.
5582 (get_frame_address_in_block_if_available): Likewise.
5583 (frame_unwinder_is): Likewise.
5584 (safe_frame_unwind_memory): Likewise.
5585 (frame_unwind_arch): Likewise.
5586
5587 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5590 type to cached_copy_status.
5591 (fprintf_frame): Adjust.
5592 (get_frame_func_if_available): Adjust.
5593 (frame_cleanup_after_sniffer): Adjust.
5594
5595 2020-08-04 Mark Wielaard <mark@klomp.org>
5596
5597 * MAINTAINERS (Write After Approval): Update email address.
5598
5599 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5600
5601 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5602 dynamic_prop::const_val.
5603
5604 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5605
5606 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5607 dynamic_prop::kind.
5608
5609 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5610
5611 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5612
5613 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5614
5615 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5616
5617 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5618 Jose E. Marchesi <jose.marchesi@oracle.com>
5619
5620 * configure.tgt: Add entry for bpf-*-*.
5621 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5622 (ALLDEPFILES): Add bpf-tdep.c.
5623 * bpf-tdep.c: New file.
5624 * MAINTAINERS: Add bpf target and maintainer.
5625 * NEWS: Mention the support for the new target.
5626
5627 2020-08-04 Tom de Vries <tdevries@suse.de>
5628
5629 PR symtab/23270
5630 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5631 Error.
5632
5633 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5634
5635 * syscalls/freebsd.xml: Regenerate.
5636
5637 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5638
5639 * syscalls/update-freebsd.sh: Fix usage and year range.
5640
5641 2020-08-03 Tom de Vries <tdevries@suse.de>
5642
5643 PR symtab/26333
5644 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5645 DW_LNE_lo_user/DW_LNE_hi_user range.
5646
5647 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5648
5649 PR ada/26318
5650 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5651 kind.
5652
5653 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5654
5655 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5656
5657 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5658
5659 * breakpoint.c (set_breakpoint_condition): Update the condition
5660 expressions after checking that the input condition string parses
5661 successfully and does not contain junk at the end.
5662
5663 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5664
5665 * breakpoint.c (set_breakpoint_condition): Update the
5666 condition string after parsing the new condition successfully.
5667
5668 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5669
5670 * proc-api.c (_STRUCTURED_PROC): Don't define.
5671 * proc-events.c: Likewise.
5672 * proc-flags.c: Likewise.
5673 * proc-why.c: Likewise.
5674 * procfs.c: Likewise.
5675
5676 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5677 * configure, config.in: Regenerate.
5678
5679 2020-07-30 Tom de Vries <tdevries@suse.de>
5680
5681 PR build/26320
5682 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5683 m_red/m_green/m_blue in a union.
5684
5685 2020-07-29 Tom de Vries <tdevries@suse.de>
5686
5687 PR tdep/26280
5688 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5689
5690 2020-07-28 Tom Tromey <tromey@adacore.com>
5691
5692 PR symtab/26270:
5693 * symtab.h (find_pc_partial_function_sym): Declare.
5694 * cli/cli-cmds.c (disassemble_command): Use
5695 find_pc_partial_function_sym. Check asm_demangle.
5696 * blockframe.c (cache_pc_function_sym): New global.
5697 (cache_pc_function_name): Remove.
5698 (clear_pc_function_cache): Update.
5699 (find_pc_partial_function_sym): New function, from
5700 find_pc_partial_function.
5701 (find_pc_partial_function): Rewrite using
5702 find_pc_partial_function_sym.
5703
5704 2020-07-28 Tom Tromey <tromey@adacore.com>
5705
5706 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5707 help. Add usage.
5708
5709 2020-07-28 Tom Tromey <tromey@adacore.com>
5710
5711 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5712 <DW_OP_GNU_variable_value>: Cast to address type.
5713
5714 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5715
5716 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5717 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5718 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5719 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5720 (nbsd_get_siginfo_type): New.
5721 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5722 (_initialize_nbsd_tdep): New.
5723
5724 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5725
5726 PR binutils/26301
5727 * configure: Regenerated.
5728
5729 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5730
5731 PR binutils/26301
5732 * configure: Regenerated.
5733
5734 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5735
5736 * python/py-frame.c: Remove 'user-regs.h' include.
5737 (frapy_read_register): Rewrite to make use of
5738 gdbpy_parse_register_id.
5739 * python/py-registers.c (gdbpy_parse_register_id): New function,
5740 moved here from python/py-unwind.c. Updated the return type, and
5741 also accepts register descriptor objects.
5742 * python/py-unwind.c: Remove 'user-regs.h' include.
5743 (pyuw_parse_register_id): Moved to python/py-registers.c.
5744 (unwind_infopy_add_saved_register): Update to use
5745 gdbpy_parse_register_id.
5746 (pending_framepy_read_register): Likewise.
5747 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5748
5749 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * python/py-registers.c: Add 'user-regs.h' include.
5752 (register_descriptor_iter_find): New function.
5753 (register_descriptor_iterator_object_methods): New static global
5754 methods array.
5755 (register_descriptor_iterator_object_type): Add pointer to methods
5756 array.
5757
5758 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5759
5760 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5761 for all architectures on FreeBSD 11.3 and later.
5762
5763 2020-07-27 Tom Tromey <tromey@adacore.com>
5764
5765 * gcore.h (load_corefile): Don't declare.
5766
5767 2020-07-27 Tom de Vries <tdevries@suse.de>
5768
5769 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5770 * config.in: Regenerate.
5771 * configure: Regenerate.
5772
5773 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5774
5775 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5776 ws2tcpip.h. When checking whether socklen_t type is defined, use
5777 ws2tcpip.h if it is available and sys/socket.h isn't.
5778 * configure: Regenerate.
5779 * config.in: Regenerate.
5780
5781 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5782
5783 PR fortran/23051
5784 PR fortran/26139
5785 * valops.c (value_ind): Pass address to
5786 readjust_indirect_value_type.
5787 * value.c (readjust_indirect_value_type): Make parameter
5788 non-const, and add extra address parameter. Resolve original type
5789 before using it.
5790 * value.h (readjust_indirect_value_type): Update function
5791 signature and comment.
5792
5793 2020-07-25 Tom de Vries <tdevries@suse.de>
5794
5795 PR symtab/26243
5796 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5797 entries.
5798
5799 2020-07-24 Aaron Merey <amerey@redhat.com>
5800
5801 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5802 * configure: Rebuild.
5803
5804 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5805
5806 PR corefiles/26294
5807 * corelow.c (_initialize_corelow): Add period to help text
5808 for "maintenance print core-file-backed-mappings".
5809
5810 2020-07-23 Pedro Alves <pedro@palves.net>
5811
5812 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5813 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5814 meanwhile.
5815 * frame.c (frame_cache_generation, get_frame_cache_generation):
5816 New.
5817 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5818 (get_prev_frame_if_no_cycle): On exception, don't touch
5819 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5820 * frame.h (get_frame_cache_generation): Declare.
5821
5822 2020-07-23 Tom de Vries <tdevries@suse.de>
5823
5824 PR tui/26282
5825 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5826 New default constructor.
5827
5828 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5831 exclude non-statement entries.
5832
5833 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5834
5835 * NEWS (New commands): Mention new command
5836 "maintenance print core-file-backed-mappings".
5837
5838 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5839
5840 * corelow.c (gdbcmd.h): Include.
5841 (core_target::info_proc_mappings): New method.
5842 (get_current_core_target): New function.
5843 (maintenance_print_core_file_backed_mappings): New function.
5844 (_initialize_corelow): Add core-file-backed-mappings to
5845 "maint print" commands.
5846
5847 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5848
5849 * linux-tdep.c (dump_note_entry_p): New function.
5850 (linux_dump_mapping_p_ftype): New typedef.
5851 (linux_find_memory_regions_full): Add new parameter,
5852 should_dump_mapping_p.
5853 (linux_find_memory_regions): Adjust call to
5854 linux_find_memory_regions_full.
5855 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5856 call to linux_find_memory_regions_full.
5857
5858 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5859
5860 * corelow.c (solist.h, unordered_map): Include.
5861 (class core_target): Add field m_core_file_mappings and
5862 method build_file_mappings.
5863 (core_target::core_target): Call build_file_mappings.
5864 (core_target::~core_target): Free memory associated with
5865 m_core_file_mappings.
5866 (core_target::build_file_mappings): New method.
5867 (core_target::xfer_partial): Use m_core_file_mappings
5868 for memory transfers.
5869 * linux-tdep.c (linux_read_core_file_mappings): New
5870 function.
5871 (linux_core_info_proc_mappings): Rewrite to use
5872 linux_read_core_file_mappings.
5873 (linux_init_abi): Register linux_read_core_file_mappings.
5874
5875 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5876
5877 * arch-utils.c (default_read_core_file_mappings): New function.
5878 * arch-utils.c (default_read_core_file_mappings): Declare.
5879 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5880 * gdbarch.h, gdbarch.c: Regenerate.
5881
5882 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5883
5884 PR corefiles/25631
5885 * corelow.c (core_target:xfer_partial): Revise
5886 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5887 case after first checking the stratum beneath the core
5888 target.
5889 (has_all_memory): Return true.
5890 * target.c (raw_memory_xfer_partial): Revise comment
5891 regarding use of has_all_memory.
5892
5893 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5894
5895 * exec.h (section_table_xfer_memory): Revise declaration,
5896 replacing section name parameter with an optional callback
5897 predicate.
5898 * exec.c (section_table_xfer_memory): Likewise.
5899 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5900 of section_table_xfer_memory.
5901
5902 2020-07-22 Tom Tromey <tromey@adacore.com>
5903
5904 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5905 lookup_symbol_search_name.
5906
5907 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5908
5909 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5910 redundant local variable.
5911 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5912 reference, not pointer, update code accordingly.
5913
5914 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5915 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5916
5917 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5918 * jit.c (jit_breakpoint_re_set_internal): Use the
5919 `skip_jit_symbol_lookup` field.
5920
5921 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5922 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5923
5924 * jit.c (jit_read_descriptor): Define the descriptor address once,
5925 use twice.
5926 (jit_breakpoint_deleted): Move the declaration of the loop variable
5927 `iter` into the loop header.
5928 (jit_breakpoint_re_set_internal): Move the declaration of the local
5929 variable `objf_data` to the first point of definition.
5930 (jit_event_handler): Move the declaration of local variables
5931 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5932 Rename `objf` to `jited`.
5933
5934 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5937 Remove.
5938 * jit.c (get_jiter_objfile_data): Update.
5939
5940 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5941 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * jit.c (struct jit_program_space_data): Remove.
5944 (jit_program_space_key): Remove.
5945 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5946 stuff.
5947 (get_jit_program_space_data): Remove.
5948 (jit_breakpoint_deleted): Iterate on all of the program space's
5949 objfiles.
5950 (jit_inferior_init): Likewise.
5951 (jit_breakpoint_re_set_internal): Likewise. Also change return
5952 type to void.
5953 (jit_breakpoint_re_set): Pass current_program_space to
5954 jit_breakpoint_re_set_internal.
5955
5956 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5957
5958 * jit.h (struct jiter_objfile_data) <cached_code_address,
5959 jit_breakpoint>: Move to here from ...
5960 * jit.c (jit_program_space_data): ... here.
5961 (jiter_objfile_data::~jiter_objfile_data): Update.
5962 (jit_breakpoint_deleted): Update.
5963 (jit_breakpoint_re_set_internal): Update.
5964
5965 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5968 checks.
5969 (jit_read_descriptor): Remove NULL check.
5970 (jit_event_handler): Add an assertion.
5971
5972 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * jit.h (struct jit_objfile_data): Split into...
5975 (struct jiter_objfile_data): ... this ...
5976 (struct jited_objfile_data): ... and this.
5977 * objfiles.h (struct objfile) <jit_data>: Remove.
5978 <jiter_data, jited_data>: New fields.
5979 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5980 (jiter_objfile_data::~jiter_objfile_data): ... this.
5981 (get_jit_objfile_data): Rename to ...
5982 (get_jiter_objfile_data): ... this.
5983 (add_objfile_entry): Update.
5984 (jit_read_descriptor): Use get_jiter_objfile_data.
5985 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5986 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5987 (jit_inferior_exit_hook): Use objfile's jited_data field.
5988
5989 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * jit.h: Forward-declare `struct minimal_symbol`.
5992 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5993 constructor, destructor, and an objfile* field.
5994 * jit.c (jit_objfile_data): Remove.
5995 (struct jit_objfile_data): Migrate from here to jit.h.
5996 (jit_objfile_data::~jit_objfile_data): New destructor
5997 implementation with code moved from free_objfile_data.
5998 (free_objfile_data): Delete.
5999 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6000 (jit_find_objf_with_entry_addr): Ditto.
6001 (jit_inferior_exit_hook): Ditto.
6002 (_initialize_jit): Remove the call to
6003 register_objfile_data_with_cleanup.
6004 * objfiles.h (struct objfile) <jit_data>: New field.
6005
6006 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6007
6008 * jit.h: Forward-declare `struct objfile`.
6009 (jit_event_handler): Add a second parameter, the JITer objfile.
6010 * jit.c (jit_read_descriptor): Change the signature to take the
6011 JITer objfile as an argument instead of the jit_program_space_data.
6012 (jit_inferior_init): Update the call to jit_read_descriptor.
6013 (jit_event_handler): Use the new JITer objfile argument when calling
6014 jit_read_descriptor.
6015 * breakpoint.c (handle_jit_event): Update the call to
6016 jit_event_handler to pass the JITer objfile.
6017
6018 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6019
6020 * gdbarch.c: Regenerate.
6021 * gdbarch.h: Regenerate.
6022 * gdbarch.sh (handle_segmentation_fault): Remove method.
6023 * infrun.c (handle_segmentation_fault): Remove.
6024 (print_signal_received_reason): Remove call to
6025 handle_segmentation_fault.
6026
6027 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6028
6029 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6030 Rename to sparc64_linux_report_signal_info and add siggnal
6031 argument.
6032 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6033 instead of sparc64_linux_handle_segmentation_fault.
6034
6035 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6036
6037 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6038 i386_linux_report_signal_info instead of
6039 i386_linux_handle_segmentation_fault.
6040 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6041 to i386_linux_report_signal_info and add siggnal argument.
6042 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6043 of i386_linux_handle_segmentation_fault.
6044 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6045 to i386_linux_report_signal_info and add siggnal argument.
6046
6047 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6048
6049 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6050 hook if present.
6051
6052 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6053
6054 * gdbarch.c: Regenerate.
6055 * gdbarch.h: Regenerate.
6056 * gdbarch.sh (report_signal_info): New method.
6057 * infrun.c (print_signal_received_reason): Invoke gdbarch
6058 report_signal_info hook if present.
6059
6060 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * python/py-registers.c : Add 'unordered_map' include.
6063 (gdbpy_new_reggroup): Renamed to...
6064 (gdbpy_get_reggroup): ...this. Update to only create register
6065 group descriptors when needed.
6066 (gdbpy_reggroup_iter_next): Update.
6067
6068 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6069
6070 * python/py-registers.c (gdbpy_register_object_data): New static
6071 global.
6072 (gdbpy_register_object_data_init): New function.
6073 (gdbpy_new_register_descriptor): Renamed to...
6074 (gdbpy_get_register_descriptor): ...this, and update to reuse
6075 existing register descriptors where possible.
6076 (gdbpy_register_descriptor_iter_next): Update.
6077 (gdbpy_initialize_registers): Register new gdbarch data.
6078
6079 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * linux-nat.c (stopped_pids): Make static.
6082
6083 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 PR ada/26235
6086 * gdbtypes.c (ada_discrete_type_low_bound,
6087 ada_discrete_type_high_bound): Handle undefined bounds.
6088
6089 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6090
6091 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6092 declaration.
6093 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6094 function.
6095
6096 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6097
6098 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6099 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6100 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6101 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6102 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6103 method.
6104
6105 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6106
6107 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6108 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6109 which are deprecated in Guile 3.0.
6110 * configure.ac (try_guile_versions): Add "guile-3.0".
6111 * configure (try_guile_versions): Regenerate.
6112 * NEWS: Update entry.
6113
6114 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6115 Doug Evans <dje@google.com>
6116
6117 PR gdb/21104
6118 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6119 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6120 USING_GUILE_BEFORE_2_2.
6121 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6122 Change type to 'scm_t_port_type *'.
6123 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6124 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6125 parameter and honor it. Update callers.
6126 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6127 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6128 functions.
6129 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6130 USING_GUILE_BEFORE_2_2.
6131 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6132 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6133 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6134 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6135 and 'SCM_PORT_TYPE'.
6136 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6137 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6138 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6139 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6140 [!USING_GUILE_BEFORE_2_2]: New functions.
6141 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6142 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6143 'gdbscm_memory_port_read'.
6144 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6145 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6146 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6147 function.
6148 (ioscm_init_memory_port): Remove.
6149 (ioscm_init_memory_port_stream): New function
6150 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6151 function.
6152 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6153 Return scm_from_uint (0).
6154 (gdbscm_set_memory_port_read_buffer_size_x)
6155 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6156 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6157 Return scm_from_uint (0).
6158 (gdbscm_set_memory_port_write_buffer_size_x)
6159 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6160 * configure.ac (try_guile_versions): Add "guile-2.2".
6161 * configure: Regenerate.
6162 * NEWS: Add entry.
6163
6164 2020-07-18 Tom Tromey <tom@tromey.com>
6165
6166 * linux-nat.c (linux_multi_process): Remove.
6167 (linux_nat_target::supports_multi_process): Return true.
6168
6169 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6170
6171 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6172 (riscv_lookup_target_description): Return pointer out of
6173 unique_ptr.
6174 * target-descriptions.c (allocate_target_description): Add
6175 comment.
6176 (target_desc_deleter::operator()): Likewise.
6177 * target-descriptions.h (struct target_desc_deleter): Moved to
6178 gdbsupport/tdesc.h.
6179 (target_desc_up): Likewise.
6180
6181 2020-07-17 Tom Tromey <tromey@adacore.com>
6182
6183 * linux-nat.c (linux_nat_target::supports_non_stop)
6184 (linux_nat_target::always_non_stop_p): Use "true".
6185 (linux_nat_target::supports_disable_randomization): Use "true" and
6186 "false".
6187
6188 2020-07-16 Caroline Tice <cmtice@google.com>
6189
6190 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6191 (RNGLIST_HEADER_SIZE64): New constant definition.
6192 (struct dwop_section_names): Add rnglists_dwo.
6193 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6194 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6195 (struct dwo_sections): Add rnglists field.
6196 (read_attribut_reprocess): Add tag parameter.
6197 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6198 (cu_debug_rnglists_section): New function (decl & definition).
6199 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6200 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6201 die whose range is being checked; get rnglist section from
6202 cu_debug_rnglists_section, to get from either objfile or dwo file as
6203 appropriate. Add cases for DW_RLE_base_addressx,
6204 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6205 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6206 test inside if-condition and updating complaint message.
6207 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6208 dwarf2_rnglists_process.
6209 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6210 dwarf2_ranges_process.
6211 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6212 need_ranges_base and update comment appropriately. Also pass die tag
6213 to dwarf2_ranges_read.
6214 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6215 need_ranges_base and update comment appropriately. Also pass die tag
6216 to dwarf2_ranges_process.
6217 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6218 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6219 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6220 need_ranges_base and update comment appropriately. Also pass die tag
6221 to read_attribute_reprocess and dwarf2_ranges_read.
6222 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6223 and update function comment appropriately.
6224 (read_loclist_index): Call read_loclists_rnglists_header instead of
6225 read_loclist_header.
6226 (read_rnglist_index): New function.
6227 (read_attribute_reprocess): Add tag parameter. Add code for
6228 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6229 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6230
6231 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6232
6233 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6234 being resolved.
6235
6236 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 * arch-utils.c (show_architecture): Update formatting of messages.
6239
6240 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * gdbtypes.h (struct type) <bounds>: Handle array and string
6243 types.
6244 * ada-lang.c (assign_aggregate): Use type::bounds on
6245 array/string type.
6246 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6247 * c-varobj.c (c_number_of_children): Likewise.
6248 (c_describe_child): Likewise.
6249 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6250 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6251 (f_type_print_base): Likewise.
6252 * f-valprint.c (f77_array_offset_tbl): Likewise.
6253 (f77_get_upperbound): Likewise.
6254 (f77_print_array_1): Likewise.
6255 * guile/scm-type.c (gdbscm_type_range): Likewise.
6256 * m2-typeprint.c (m2_array): Likewise.
6257 (m2_is_long_set_of_type): Likewise.
6258 * m2-valprint.c (get_long_set_bounds): Likewise.
6259 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6260 * python/py-type.c (typy_range): Likewise.
6261 * rust-lang.c (rust_internal_print_type): Likewise.
6262 * type-stack.c (type_stack::follow_types): Likewise.
6263 * valarith.c (value_subscripted_rvalue): Likewise.
6264 * valops.c (value_cast): Likewise.
6265
6266 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6269 callers to use the equivalent accessor methods.
6270
6271 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6272
6273 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6274 (struct type) <bit_stride>: New method.
6275 (TYPE_BIT_STRIDE): Remove.
6276 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6277
6278 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6281 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6282 callers to use the equivalent accessor methods instead.
6283
6284 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6287 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6288 callers to use the equivalent accessor methods instead.
6289
6290 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6293 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6294 to use dynamic_prop::kind.
6295
6296 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6299 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6300 to get the bound property's kind and check against
6301 PROP_UNDEFINED.
6302
6303 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6306 all callers to use type::range_bounds followed by
6307 dynamic_prop::{low,high}.
6308
6309 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6312 const_val, set_const_val, baton, set_locexpr, set_loclist,
6313 set_addr_offset, variant_parts, set_variant_parts,
6314 original_type, set_original_type>: New methods.
6315 <kind>: Rename to...
6316 <m_kind>: ... this. Update all users to use the new methods
6317 instead.
6318 <data>: Rename to...
6319 <m_data>: ... this. Update all users to use the new methods
6320 instead.
6321
6322 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * gdbtypes.c (get_discrete_bounds): Return failure if
6325 the range type's bounds are not both defined and constant
6326 values.
6327 (get_array_bounds): Update comment. Remove undefined bound check.
6328
6329 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6330
6331 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6332 the type::bounds method directly.
6333
6334 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6335
6336 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6337 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6338 are used to set the range type's bounds to use set_bounds.
6339
6340 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6341
6342 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6343
6344 2020-07-10 Pedro Alves <pedro@palves.net>
6345
6346 * gdbthread.h (inferior_ref): Define.
6347 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6348 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6349 * thread.c
6350 (scoped_restore_current_thread::restore):
6351 Adjust to gdb::ref_ptr.
6352 (scoped_restore_current_thread::~scoped_restore_current_thread):
6353 Remove manual decref handling.
6354 (scoped_restore_current_thread::scoped_restore_current_thread):
6355 Adjust to use
6356 inferior_ref::new_reference/thread_info_ref::new_reference.
6357 Incref the thread before calling get_frame_id instead of after.
6358 Let TARGET_CLOSE_ERROR propagate.
6359
6360 2020-07-10 Pedro Alves <pedro@palves.net>
6361
6362 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6363 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6364 NOT_AVAILABLE_ERROR.
6365 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6366 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6367
6368 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6369 Pedro Alves <pedro@palves.net>
6370
6371 PR gdb/26199
6372 * infrun.c (threads_are_resumed_pending_p): Delete.
6373 (do_target_wait): Remove threads_are_executing and
6374 threads_are_resumed_pending_p checks from the inferior_matches
6375 lambda. Update comments.
6376
6377 2020-07-10 Pedro Alves <pedro@palves.net>
6378
6379 PR gdb/26199
6380 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6381 executing threads.
6382
6383 2020-07-10 Pedro Alves <pedro@palves.net>
6384
6385 PR gdb/26199
6386 * infrun.c (handle_no_resumed): Handle multiple targets.
6387
6388 2020-07-10 Pedro Alves <pedro@palves.net>
6389
6390 PR gdb/26199
6391 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6392 target_is_async_p.
6393
6394 2020-07-10 Pedro Alves <pedro@palves.net>
6395
6396 PR gdb/26199
6397 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6398 threads, not all threads.
6399
6400 2020-07-10 Pedro Alves <pedro@palves.net>
6401
6402 PR gdb/26199
6403 * remote.c (remote_target::open_1): Pass remote target pointer as
6404 data to create_async_event_handler.
6405 (remote_async_inferior_event_handler): Mark async event handler
6406 before returning if the remote target still has either pending
6407 events or unacknowledged notifications.
6408
6409 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6410
6411 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6412 declaration.
6413 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6414 function.
6415
6416 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6417
6418 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6419 inferior_ptid.
6420
6421 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6422
6423 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6424 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6425 AT_FREEBSD_PS_STRINGS.
6426
6427 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6428
6429 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6430 of debugfile path on Windows.
6431
6432 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6433
6434 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6435 argument to 'data'.
6436
6437 2020-07-08 Tom Tromey <tromey@adacore.com>
6438
6439 * ada-lang.c (ada_exception_message_1): Use read_memory.
6440
6441 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6442
6443 PR python/22748
6444 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6445 special handling for inline frames.
6446 * findvar.c (value_of_register_lazy): Skip inline frames when
6447 creating lazy register values.
6448 * frame.c (frame_id_computed_p): Delete definition.
6449 * frame.h (frame_id_computed_p): Delete declaration.
6450
6451 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6452
6453 * NEWS: Mention additions to Python API.
6454 * python/py-arch.c (archpy_register_groups): New function.
6455 (arch_object_methods): Add 'register_groups' method.
6456 * python/py-registers.c (reggroup_iterator_object): New struct.
6457 (reggroup_object): New struct.
6458 (gdbpy_new_reggroup): New function.
6459 (gdbpy_reggroup_to_string): New function.
6460 (gdbpy_reggroup_name): New function.
6461 (gdbpy_reggroup_iter): New function.
6462 (gdbpy_reggroup_iter_next): New function.
6463 (gdbpy_new_reggroup_iterator): New function
6464 (gdbpy_initialize_registers): Register new types.
6465 (reggroup_iterator_object_type): Define new Python type.
6466 (gdbpy_reggroup_getset): New static global.
6467 (reggroup_object_type): Define new Python type.
6468 * python/python-internal.h
6469
6470 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6473 * python/py-arch.c (archpy_registers): New function.
6474 (arch_object_methods): Add 'registers' method.
6475 * python/py-registers.c: New file.
6476 * python/python-internal.h
6477 (gdbpy_new_register_descriptor_iterator): Declare.
6478 (gdbpy_initialize_registers): Declare.
6479 * python/python.c (do_start_initialization): Call
6480 gdbpy_initialize_registers.
6481 * NEWS: Mention additions to the Python API.
6482
6483 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 * NEWS: Mention new Python API method.
6486 * python/py-unwind.c (pending_framepy_architecture): New function.
6487 (pending_frame_object_methods): Add architecture method.
6488
6489 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6490
6491 * gdbarch.c: Regenerate.
6492 * gdbarch.h: Regenerate.
6493 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6494 (gdbarch_data): Use internal_error for the case where
6495 deprecated_set_gdbarch_data was originally needed.
6496 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6497 and use passed in obstack.
6498 (libunwind_frame_set_descr): Should no longer get back NULL from
6499 gdbarch_data.
6500 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6501 type.
6502 * user-regs.c (user_regs_init): Update parameters, and use passed
6503 in obstack.
6504 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6505 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6506
6507 2020-07-06 Tom de Vries <tdevries@suse.de>
6508
6509 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6510 End-Of-Sequence in lte_is_less_than.
6511 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6512 "gdb: Don't reorder line table entries too much when sorting".
6513
6514 2020-07-06 Tom de Vries <tdevries@suse.de>
6515
6516 PR tui/26205
6517 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6518
6519 2020-07-05 Tom de Vries <tdevries@suse.de>
6520
6521 PR build/26187
6522 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6523 std::uncaught_exceptions instead of deprecated
6524 std::uncaught_exception.
6525
6526 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6527
6528 * macroexp.h (macro_stringify): Return
6529 gdb::unique_xmalloc_ptr<char>.
6530 * macroexp.c (macro_stringify): Likewise.
6531 * macrotab.c (fixup_definition): Update.
6532
6533 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6536 (lex_one_token): Update.
6537 * macroexp.c (struct macro_buffer) <release>: Return
6538 gdb::unique_xmalloc_ptr<char>.
6539 (macro_stringify): Update.
6540 (macro_expand): Update.
6541 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6542 * macroexp.h (macro_expand_next): Likewise.
6543
6544 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6545
6546 * macroexp.h (macro_lookup_ftype): Remove.
6547 (macro_expand, macro_expand_once, macro_expand_next): Remove
6548 lookup function parameters, add scope parameter.
6549 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6550 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6551 * macroscope.h (standard_macro_lookup): Change parameter type
6552 to macro_scope.
6553 * macroscope.c (standard_macro_lookup): Likewise.
6554 * c-exp.y (lex_one_token): Update.
6555 * macrocmd.c (macro_expand_command): Likewise.
6556 (macro_expand_once_command): Likewise.
6557
6558 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * inf-loop.c (inferior_event_handler): Remove client_data param.
6561 * inf-loop.h (inferior_event_handler): Likewise.
6562 * infcmd.c (step_1): Adjust.
6563 * infrun.c (proceed): Adjust.
6564 (fetch_inferior_event): Remove client_data param.
6565 (infrun_async_inferior_event_handler): Adjust.
6566 * infrun.h (fetch_inferior_event): Remove `void *` param.
6567 * linux-nat.c (handle_target_event): Adjust.
6568 * record-btrace.c (record_btrace_handle_async_inferior_event):
6569 Adjust.
6570 * record-full.c (record_full_async_inferior_event_handler):
6571 Adjust.
6572 * remote.c (remote_async_inferior_event_handler): Adjust.
6573
6574 2020-07-01 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6577 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6578
6579 2020-07-01 Tom Tromey <tom@tromey.com>
6580
6581 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6582 tui_gen_win_info.
6583 (tui_win_info::make_window): Merge with
6584 tui_gen_win_info::make_window.
6585 (tui_win_info::make_visible): Move from tui_gen_win_info.
6586 * tui/tui-win.c (tui_win_info::max_width): Move from
6587 tui_gen_win_info.
6588 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6589 type.
6590 <window_factory>: Likewise.
6591 * tui/tui-layout.c (tui_win_info::resize): Move from
6592 tui_gen_win_info.
6593 (make_standard_window): Change return type.
6594 (get_locator_window, tui_get_window_by_name): Likewise.
6595 (tui_layout_window::apply): Remove a cast.
6596 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6597 (struct tui_win_info): Merge with tui_gen_win_info.
6598 (struct tui_gen_win_info): Remove.
6599
6600 2020-07-01 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-stack.h (struct tui_locator_window): Derive from
6603 tui_win_info.
6604 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6605 <can_box>: New method.
6606
6607 2020-07-01 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6610
6611 2020-07-01 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-regs.c (tui_data_window::display_registers_from)
6614 (tui_data_window::display_registers_from)
6615 (tui_data_window::first_data_item_displayed)
6616 (tui_data_window::delete_data_content_windows): Update.
6617 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6618 Remove.
6619 (tui_data_window::check_register_values): Update.
6620 (tui_data_item_window::rerender): Add parameters. Update.
6621 (tui_data_item_window::refresh_window): Remove.
6622 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6623 virtual.
6624 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6625 tui_gen_win_info.
6626 <refresh_window, max_height, min_height>: Remove.
6627 <rerender>: Add parameters.
6628 <x, y, visible>: New members.
6629 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6630 <m_item_width>: New member.
6631
6632 2020-07-01 Tom Tromey <tom@tromey.com>
6633
6634 * tui/tui-regs.c (tui_data_window::show_register_group)
6635 (tui_data_window::check_register_values): Update.
6636 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6637 from item_no.
6638
6639 2020-07-01 Tom Tromey <tom@tromey.com>
6640
6641 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6642 useless "if".
6643
6644 2020-07-01 Tom Tromey <tom@tromey.com>
6645
6646 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6647 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6648
6649 2020-07-01 Tom Tromey <tom@tromey.com>
6650
6651 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6652 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6653 (struct tui_line_or_address): Move from tui-data.h.
6654 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6655 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6656 (tui_cmd_window, tui_source_window_base, tui_source_window)
6657 (tui_disasm_window): Don't declare.
6658 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6659 to tui-winsource.h.
6660 (SINGLE_KEY): Move to tui-stack.c.
6661
6662 2020-07-01 Tom Tromey <tom@tromey.com>
6663
6664 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6665 std::string.
6666 * tui/tui-regs.c (class tab_expansion_file): New.
6667 (tab_expansion_file::write): New method.
6668 (tui_register_format): Change return type. Use
6669 tab_expansion_file.
6670 (tui_get_register, tui_data_window::display_registers_from)
6671 (tui_data_item_window::rerender): Update.
6672 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6673 * tui/tui-io.c (tui_expand_tabs): Remove.
6674
6675 2020-07-01 Tom Tromey <tom@tromey.com>
6676
6677 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6678
6679 2020-07-01 Fangrui Song <maskray@google.com>
6680
6681 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6682
6683 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6684
6685 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6686 forms for DW_AT_associated and DW_AT_allocated attributes,
6687 which is already checked in function attr_to_dynamic_prop.
6688
6689 2020-06-30 Tom Tromey <tromey@adacore.com>
6690
6691 * dwarf2/read.c (quirk_rust_enum): Correctly call
6692 alloc_rust_variant for default-less enum.
6693
6694 2020-06-30 Tom Tromey <tromey@adacore.com>
6695
6696 PR build/26183:
6697 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6698 gdb::to_string.
6699
6700 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6701
6702 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6703 * gdbarch.h: Re-generate.
6704
6705 2020-06-28 Tom Tromey <tom@tromey.com>
6706
6707 * command.h (cmd_types): Remove.
6708 (cmd_type): Don't declare.
6709 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6710 typedef.
6711 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6712 * cli/cli-decode.c (cmd_type): Remove.
6713
6714 2020-06-27 Pedro Alves <palves@redhat.com>
6715
6716 * fork-child.c (prefork_hook): Adjust.
6717 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6718 Delete.
6719 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6720 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6721 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6722 Remove declarations.
6723 (struct inferior) <set_tty, tty>: New methods.
6724 (struct inferior) <terminal>: Rename to ...
6725 (struct inferior) <m_terminal>: ... this and make private.
6726 * main.c (captured_main_1): Adjust.
6727 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6728 (mi_cmd_inferior_tty_show): Adjust.
6729 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6730 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6731
6732 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6733
6734 * configure.ac: Add --enable-libctf: handle --disable-static
6735 properly.
6736 * acinclude.m4: sinclude ../config/enable.m4.
6737 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6738 (LIBCTF): Substitute in.
6739 (CTF_DEPS): New, likewise.
6740 (CLIBS): libctf needs symbols from libbfd: move earlier.
6741 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6742 flags.
6743 * ctfread.c: Surround in ENABLE_LIBCTF.
6744 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6745 * configure: Regenerate.
6746 * config.in: Likewise.
6747
6748 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6751
6752 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6753
6754 * inferior.h (struct inferior) <terminal>: Change type to
6755 gdb::unique_xmalloc_ptr<char>.
6756 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6757 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6758 field, adjust to unique pointer.
6759 (get_inferior_io_terminal): Adjust to unique pointer.
6760
6761 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6762
6763 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6764 registers, not just the known core set of registers.
6765
6766 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6769 fflags, frm, and fcsr registers.
6770 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6771 restore groups.
6772 (riscv_tdesc_unknown_reg): New function.
6773 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6774 tdesc_use_registers.
6775 * riscv-tdep.h (struct gdbarch_tdep): Add
6776 unknown_csrs_first_regnum, unknown_csrs_count,
6777 duplicate_fflags_regnum, duplicate_frm_regnum, and
6778 duplicate_fcsr_regnum fields.
6779
6780 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6783 callback, use the callback (when not null) to help number unknown
6784 registers.
6785 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6786 (tdesc_use_registers): Add extra parameter to declaration.
6787
6788 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6791 in the file.
6792 (class riscv_pending_register_alias): Likewise.
6793 (riscv_register_feature::register_info): Change 'required_p' field
6794 to 'required', and change its type. Add 'check' member function.
6795 (riscv_register_feature::register_info::check): Define new member
6796 function.
6797 (riscv_xreg_feature): Change initialisation of 'required' field.
6798 (riscv_freg_feature): Likewise.
6799 (riscv_virtual_feature): Likewise.
6800 (riscv_csr_feature): Likewise.
6801 (riscv_check_tdesc_feature): Take extra parameter, the csr
6802 tdesc_feature, rewrite the function to use the new
6803 riscv_register_feature::register_info::check function.
6804 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6805
6806 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6807
6808 * features/Makefile: Remove all references to the deleted files
6809 below.
6810 * features/riscv/32bit-csr.c: Deleted.
6811 * features/riscv/32bit-csr.xml: Deleted.
6812 * features/riscv/64bit-csr.c: Deleted.
6813 * features/riscv/64bit-csr.xml: Deleted.
6814 * features/riscv/rebuild-csr-xml.sh: Deleted.
6815
6816 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6817
6818 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6819 whitespace error for declaration of names member variable.
6820 (struct riscv_register_feature): Add new prefer_first_name member
6821 variable, and fix whitespace error in declaration of registers.
6822 (riscv_xreg_feature): Initialize prefer_first_name field.
6823 (riscv_freg_feature): Likewise.
6824 (riscv_virtual_feature): Likewise.
6825 (riscv_csr_feature): Likewise.
6826 (riscv_register_name): Expand on comments. Remove register name
6827 modifications for CSR and virtual registers.
6828
6829 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6832 errors.
6833
6834 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6837 riscv-opc.h.
6838 (class riscv_pending_register_alias): New class.
6839 (riscv_check_tdesc_feature): Take vector of pending aliases and
6840 populate it as appropriate.
6841 (riscv_setup_register_aliases): Delete.
6842 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6843 to riscv_check_tdesc_feature in all cases. Use the vector to
6844 create the register aliases.
6845
6846 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6847
6848 * sol2-tdep.c (sol2_static_transform_name): Remove.
6849 (sol2_init_abi): Don't register it.
6850 * gdbarch.sh (static_transform_name): Remove.
6851 * gdbarch.c, gdbarch.h: Regenerate.
6852
6853 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6854 gdbarch_static_transform_name.
6855 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6856 * stabsread.c (define_symbol) <'X'>: Remove.
6857 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6858 handling.
6859 <'V'>: Likewise.
6860 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6861 <'S'>: Remove call to gdbarch_static_transform_name.
6862
6863 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6864
6865 * procfs.c (procfs_pre_trace): New function.
6866 (procfs_target::create_inferior): Pass it to fork_inferior.
6867
6868 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6869
6870 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6871 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6872 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6873 sol2-tdep.o, sparc-sol2-tdep.o.
6874 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6875 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6876 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6877 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6878
6879 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6880
6881 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6882 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6883 Call sol2_init_abi.
6884 Remove calls to set_gdbarch_skip_solib_resolver,
6885 set_gdbarch_core_pid_to_str.
6886 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6887 (i386_sol2_static_transform_name): Remove.
6888 (i386_sol2_init_abi): Call sol2_init_abi.
6889 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6890 set_gdbarch_static_transform_name,
6891 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6892 Use sol2_sigtramp_p.
6893 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6894 (sol2_sigtramp_p): New function.
6895 (sol2_static_transform_name): New function.
6896 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6897 (sol2_init_abi): New function.
6898 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6899 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6900 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6901 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6902 (sparc_sol2_static_transform_name): Remove.
6903 (sparc32_sol2_init_abi): Call sol2_init_abi.
6904 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6905 set_gdbarch_static_transform_name,
6906 set_gdbarch_skip_solib_resolver,
6907 set_gdbarch_core_pid_to_str.
6908 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6909 (sparc_sol2_static_transform_name): Remove
6910 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6911 call sol2_sigtramp_p.
6912 (sparc64_sol2_init_abi): Call sol2_init_abi.
6913 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6914 set_gdbarch_static_transform_name,
6915 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6916
6917 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6918
6919 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6920 * exec.c (validate_exec_file): If from_tty, set both
6921 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6922 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6923 and from_tty, unconditionally ask a confirmation.
6924
6925 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6926
6927 * target-descriptions.c (tdesc_architecture_name): Protect against
6928 NULL pointer dereference.
6929 (maint_print_xml_tdesc_cmd): New function.
6930 (_initialize_target_descriptions): Register new 'maint print
6931 xml-tdesc' command and give it the filename completer.
6932 * NEWS: Mention new 'maint print xml-tdesc' command.
6933
6934 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * target-descriptions.c (class tdesc_compatible_info): New class.
6937 (struct target_desc): Change type of compatible vector.
6938 (tdesc_compatible_p): Update for change in type of
6939 target_desc::compatible.
6940 (tdesc_compatible_info_list): New function.
6941 (tdesc_compatible_info_arch_name): New function.
6942 (tdesc_add_compatible): Update for change in type of
6943 target_desc::compatible.
6944 (print_c_tdesc::visit_pre): Likewise.
6945
6946 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6949 whitespace to underscore.
6950 (maint_print_c_tdesc_cmd): Use fake filename for target
6951 descriptions that came from the target.
6952 (_initialize_target_descriptions): Add filename command completion
6953 for 'maint print c-tdesc'.
6954
6955 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6958 lines.
6959
6960 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6963 lines.
6964 (dwarf2_find_location_expression): Likewise.
6965 (call_site_parameter_matches): Likewise.
6966 (dwarf2_compile_expr_to_ax): Likewise.
6967 (disassemble_dwarf_expression): Likewise.
6968 (loclist_describe_location): Likewise.
6969
6970 2020-06-23 Pedro Alves <palves@redhat.com>
6971
6972 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6973 progspace-and-thread.h. Include scoped-mock-context.h instead.
6974 (register_to_value_test): Use scoped_mock_context.
6975 * regcache.c: Include "scoped-mock-context.h".
6976 (cooked_read_test): Don't error out if a target is already pushed.
6977 Use scoped_mock_context. Adjust.
6978 * scoped-mock-context.h: New file.
6979
6980 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6981
6982 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6983 initializer.
6984 (ada_language::is_string_type_p): New member function.
6985 * c-lang.c (c_language_data): Delete la_is_string_type_p
6986 initializer.
6987 (cplus_language_data): Likewise.
6988 (asm_language_data): Likewise.
6989 (minimal_language_data): Likewise.
6990 * d-lang.c (d_language_data): Likewise.
6991 * f-lang.c (f_is_string_type_p): Delete function, implementation
6992 moved to f_language::is_string_type_p.
6993 (f_language_data): Delete la_is_string_type_p initializer.
6994 (f_language::is_string_type_p): New member function,
6995 implementation from f_is_string_type_p.
6996 * go-lang.c (go_is_string_type_p): Delete function, implementation
6997 moved to go_language::is_string_type_p.
6998 (go_language_data): Delete la_is_string_type_p initializer.
6999 (go_language::is_string_type_p): New member function,
7000 implementation from go_is_string_type_p.
7001 * language.c (language_defn::is_string_type_p): Define new member
7002 function.
7003 (default_is_string_type_p): Make static, add comment copied from
7004 header file.
7005 (unknown_language_data): Delete la_is_string_type_p initializer.
7006 (unknown_language::is_string_type_p): New member function.
7007 (auto_language_data): Delete la_is_string_type_p initializer.
7008 (auto_language::is_string_type_p): New member function.
7009 * language.h (language_data): Delete la_is_string_type_p field.
7010 (language_defn::is_string_type_p): Declare new function.
7011 (default_is_string_type_p): Delete desclaration, move comment to
7012 definition.
7013 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7014 moved to m2_language::is_string_type_p.
7015 (m2_language_data): Delete la_is_string_type_p initializer.
7016 (m2_language::is_string_type_p): New member function,
7017 implementation from m2_is_string_type_p.
7018 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7019 initializer.
7020 * opencl-lang.c (opencl_language_data): Likewise.
7021 * p-lang.c (pascal_is_string_type_p): Delete function,
7022 implementation moved to pascal_language::is_string_type_p.
7023 (pascal_language_data): Delete la_is_string_type_p initializer.
7024 (pascal_language::is_string_type_p): New member function,
7025 implementation from pascal_is_string_type_p.
7026 * rust-lang.c (rust_is_string_type_p): Delete function,
7027 implementation moved to rust_language::is_string_type_p.
7028 (rust_language_data): Delete la_is_string_type_p initializer.
7029 (rust_language::is_string_type_p): New member function,
7030 implementation from rust_is_string_type_p.
7031 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7032 is_string_type_p.
7033
7034 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * ada-lang.c (ada_language_data): Delete la_print_typedef
7037 initializer.
7038 (ada_language::print_typedef): New member function.
7039 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7040 (cplus_language_data): Likewise.
7041 (asm_language_data): Likewise.
7042 (minimal_language_data): Likewise.
7043 * d-lang.c (d_language_data): Likewise.
7044 * f-lang.c (f_language_data): Likewise.
7045 (f_language::print_typedef): New member function.
7046 * go-lang.c (go_language_data): Delete la_print_typedef
7047 initializer.
7048 * language.c (language_defn::print_typedef): Define member
7049 function.
7050 (unknown_language_data): Delete la_print_typedef initializer.
7051 (unknown_language::print_typedef): New member function.
7052 (auto_language_data): Delete la_print_typedef initializer.
7053 (auto_language::print_typedef): New member function.
7054 * language.h (language_data): Delete la_print_typedef field.
7055 (language_defn::print_typedef): Declare new member function.
7056 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7057 (default_print_typedef): Delete declaration.
7058 * m2-lang.c (m2_language_data): Delete la_print_typedef
7059 initializer.
7060 (m2_language::print_typedef): New member function.
7061 * objc-lang.c (objc_language_data): Delete la_print_typedef
7062 initializer.
7063 * opencl-lang.c (opencl_language_data): Likewise.
7064 * p-lang.c (pascal_language_data): Likewise.
7065 (pascal_language::print_typedef): New member function.
7066 * rust-lang.c (rust_print_typedef): Delete function,
7067 implementation moved to rust_language::print_typedef.
7068 (rust_language): Delete la_print_typedef initializer.
7069 (rust_language::print_typedef): New member function,
7070 implementation from rust_print_typedef.
7071 * typeprint.c (default_print_typedef): Delete.
7072
7073 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7074
7075 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7076 (ada_language::printstr): New member function.
7077 * c-lang.c (c_language_data): Delete la_printstr initializer.
7078 (cplus_language_data): Likewise.
7079 (asm_language_data): Likewise.
7080 (minimal_language_data): Likewise.
7081 * d-lang.c (d_language_data): Likewise.
7082 * f-lang.c (f_printstr): Rename to f_language::printstr.
7083 (f_language_data): Delete la_printstr initializer.
7084 (f_language::printstr): New member function, implementation from
7085 f_printstr.
7086 * go-lang.c (go_language_data): Delete la_printstr initializer.
7087 * language.c (language_defn::printstr): Define new member
7088 function.
7089 (unk_lang_printstr): Delete.
7090 (unknown_language_data): Delete la_printstr initializer.
7091 (unknown_language::printstr): New member function.
7092 (auto_language_data): Delete la_printstr initializer.
7093 (auto_language::printstr): New member function.
7094 * language.h (language_data): Delete la_printstr field.
7095 (language_defn::printstr): Declare new member function.
7096 (LA_PRINT_STRING): Update call to printstr.
7097 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7098 (m2_language_data): Delete la_printstr initializer.
7099 (m2_language::printstr): New member function, implementation from
7100 m2_printstr.
7101 * objc-lang.c (objc_language_data): Delete la_printstr
7102 initializer.
7103 * opencl-lang.c (opencl_language_data): Likewise.
7104 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7105 (pascal_language_data): Delete la_printstr initializer.
7106 (pascal_language::printstr): New member function, implementation
7107 from pascal_printstr.
7108 * p-lang.h (pascal_printstr): Delete declaration.
7109 * rust-lang.c (rust_printstr): Update header comment.
7110 (rust_language_data): Delete la_printstr initializer.
7111 (rust_language::printstr): New member function.
7112
7113 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7114
7115 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7116 (ada_language::printchar): New member function.
7117 * c-lang.c (c_language_data): Delete la_printchar initializer.
7118 (cplus_language_data): Likewise.
7119 (asm_language_data): Likewise.
7120 (minimal_language_data): Likewise.
7121 * d-lang.c (d_language_data): Likewise.
7122 * f-lang.c (f_printchar): Rename to f_language::printchar.
7123 (f_language_data): Delete la_printchar initializer.
7124 (f_language::printchar): New member function, implementation from
7125 f_printchar.
7126 * go-lang.c (go_language_data): Delete la_printchar initializer.
7127 * language.c (unk_lang_printchar): Delete.
7128 (language_defn::printchar): Define new member function.
7129 (unknown_language_data): Delete la_printchar initializer.
7130 (unknown_language::printchar): New member function.
7131 (auto_language_data): Delete la_printchar initializer.
7132 (auto_language::printchar): New member function.
7133 * language.h (language_data): Delete la_printchar field.
7134 (language_defn::printchar): Declare new member function.
7135 (LA_PRINT_CHAR): Update call to printchar.
7136 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7137 (m2_language::printchar): New member function.
7138 * objc-lang.c (objc_language_data): Delete la_printchar
7139 initializer.
7140 * opencl-lang.c (opencl_language_data): Likewise.
7141 * p-lang.c (pascal_language_data): Delete la_printchar
7142 initializer.
7143 (pascal_language::printchar): New member function.
7144 * rust-lang.c (rust_printchar): Rename to
7145 rust_language::printchar.
7146 (rust_language_data): Delete la_printchar initializer.
7147 (rust_language::printchar): New member function, implementation
7148 from rust_printchar.
7149
7150 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7153 (ada_language_data): Delete la_emitchar initializer.
7154 (ada_language::emitchar): New member function, implementation from
7155 emit_char.
7156 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7157 (cplus_language_data): Likewise.
7158 (asm_language_data): Likewise.
7159 (minimal_language_data): Likewise.
7160 * d-lang.c (d_language_data): Likewise.
7161 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7162 (f_language_data): Delete la_emitchar initializer.
7163 (f_language::emitchar): New member function, implementation from
7164 f_emit_char.
7165 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7166 * language.c (unk_lang_emit_char): Delete.
7167 (language_defn::emitchar): New member function definition.
7168 (unknown_language_data): Delete la_emitchar initializer.
7169 (unknown_language::emitchar): New member function.
7170 (auto_language_data): Delete la_emitchar initializer.
7171 (auto_language::emitchar): New member function.
7172 * language.h (language_data): Delete la_emitchar field.
7173 (language_defn::emitchar): New member field declaration.
7174 (LA_EMIT_CHAR): Update call to emitchar.
7175 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7176 (m2_language_data): Delete la_emitchar initializer.
7177 (m2_language::emitchar): New member function, implementation from
7178 m2_emit_char.
7179 * objc-lang.c (objc_language_data): Delete la_emitchar
7180 initializer.
7181 * opencl-lang.c (opencl_language_data): Likewise.
7182 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7183 (pascal_language_data): Delete la_emitchar initializer.
7184 (pascal_language::emitchar): New member function, implementation
7185 from pascal_emit_char.
7186 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7187 (rust_language_data): Delete la_emitchar initializer.
7188 (rust_language::emitchar): New member function, implementation
7189 from rust_emitchar.
7190
7191 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7192
7193 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7194 (ada_language_data): Delete la_post_parser initializer.
7195 (ada_language::post_parser): New member function.
7196 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7197 (cplus_language_data): Likewise.
7198 (asm_language_data): Likewise.
7199 (minimal_language_data): Likewise.
7200 * d-lang.c (d_language_data): Likewise.
7201 * f-lang.c (f_language_data): Likewise.
7202 * go-lang.c (go_language_data): Likewise.
7203 * language.c (unknown_language_data): Likewise.
7204 (auto_language_data): Likewise.
7205 * language.h (language_data): Delete la_post_parser field.
7206 (language_defn::post_parser): New member function.
7207 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7208 * objc-lang.c (objc_language_data): Likewise.
7209 * opencl-lang.c (opencl_language_data): Likewise.
7210 * p-lang.c (pascal_language_data): Likewise.
7211 * parse.c (parse_exp_in_context): Update call to post_parser.
7212 (null_post_parser): Delete definition.
7213 * parser-defs.h (null_post_parser): Delete declaration.
7214 * rust-lang.c (rust_language_data): Delete la_post_parser
7215 initializer.
7216
7217 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7218
7219 * ada-lang.c (parse): Rename to ada_language::parser.
7220 (ada_language_data): Delete la_parser initializer.
7221 (ada_language::parser): New member function, implementation from
7222 parse.
7223 * c-lang.c (c_language_data): Delete la_parser initializer.
7224 (cplus_language_data): Likewise.
7225 (asm_language_data): Likewise.
7226 (minimal_language_data): Likewise.
7227 * d-lang.c (d_language_data): Likewise.
7228 (d_language::parser): New member function.
7229 * f-lang.c (f_language_data): Delete la_parser initializer.
7230 (f_language::parser): New member function.
7231 * go-lang.c (go_language_data): Delete la_parser initializer.
7232 (go_language::parser): New member function.
7233 * language.c (unk_lang_parser): Delete.
7234 (language_defn::parser): Define new member function.
7235 (unknown_language_data): Delete la_parser initializer.
7236 (unknown_language::parser): New member function.
7237 (auto_language_data): Delete la_parser initializer.
7238 (auto_language::parser): New member function.
7239 * language.h (language_data): Delete la_parser field.
7240 (language_defn::parser): Declare new member function.
7241 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7242 (m2_language::parser): New member function.
7243 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7244 * opencl-lang.c (opencl_language_data): Likewise.
7245 * p-lang.c (pascal_language_data): Likewise.
7246 (pascal_language::parser): New member function.
7247 * parse.c (parse_exp_in_context): Update call to parser.
7248 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7249 (rust_language::parser): New member function.
7250
7251 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * top.c (print_gdb_configuration): Print --with-python-libdir
7254 configuration value.
7255
7256 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7257
7258 * NEWS: Mention change to the alias command.
7259
7260 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7261
7262 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7263 (alias_command_completer)
7264 (make_alias_options_def_group): New functions.
7265 (alias_opts, alias_option_defs): New struct and array.
7266 (alias_usage_error): Update usage.
7267 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7268 Use option framework.
7269 (_initialize_cli_cmds): Update alias command help.
7270 Update aliases command help.
7271 (show_user):
7272 Add NULL for new default_args lookup_cmd argument.
7273 (valid_command_p): Rename to validate_aliased_command.
7274 Add NULL for new default_args lookup_cmd argument. Verify that the
7275 aliased_command has no default args.
7276 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7277 (lookup_cmd_1, lookup_cmd): New argument default_args.
7278 (add_alias_cmd):
7279 Add NULL for new default_args lookup_cmd argument.
7280 (print_help_for_command): Show default args under the layout
7281 alias some_alias = some_aliased_cmd some_alias_default_arg.
7282 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7283 xfree default_args in destructor.
7284 * cli/cli-script.c (process_next_line, do_define_command):
7285 Add NULL for new default_args lookup_cmd argument.
7286 * command.h: Declare new default_args argument in lookup_cmd
7287 and lookup_cmd_1.
7288 * completer.c (complete_line_internal_1):
7289 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7290 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7291 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7292 Likewise.
7293 * infcmd.c (_initialize_infcmd): Likewise.
7294 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7295 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7296 * python/py-param.c (add_setshow_generic): Likewise.
7297 * remote.c (_initialize_remote): Likewise.
7298 * top.c (execute_command): Prepend default_args if command has some.
7299 (set_verbose):
7300 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7301 * tracepoint.c (validate_actionline, encode_actions_1):
7302 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7303
7304 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7305
7306 * jit.c (jit_read_descriptor): Use bool as the return type.
7307 (jit_breakpoint_re_set_internal): Use bool as the return type.
7308 Invert the return value logic; return true if the jit breakpoint
7309 has been successfully initialized.
7310 (jit_inferior_init): Update the call to
7311 jit_breakpoint_re_set_internal.
7312
7313 2020-06-22 Pedro Alves <palves@redhat.com>
7314
7315 PR gdb/25939
7316 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7317 Use the current inferior instead. Don't return
7318 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7319 wait again.
7320 * sol-thread.c (sol_thread_target::wait): Don't reference
7321 inferior_ptid.
7322 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7323 (sol_update_thread_list_callback): Use the current inferior's pid
7324 instead of inferior_ptid.
7325
7326 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7327
7328 * procfs.c: Cleanup many comments.
7329
7330 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7331 (AFTER_WATCHFLAG): Replace by value.
7332
7333 (MAIN_PROC_NAME_FORMAT): Inline ...
7334 (create_procinfo): ... here.
7335
7336 (procfs_debug_inferior): Remove SYS_exec handling.
7337 (syscall_is_exec): Likewise.
7338 (procfs_set_exec_trap): Likewise.
7339
7340 (syscall_is_lwp_exit): Inline in callers.
7341 (syscall_is_exit): Likewise.
7342 (syscall_is_exec): Likewise.
7343 (syscall_is_lwp_create): Likewise.
7344
7345 (invalidate_cache): Remove #if 0 code.
7346
7347 (make_signal_thread_runnable): Remove.
7348 (procfs_target::resume): Remove #if 0 code.
7349
7350 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7351
7352 PR gdb/25939
7353 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7354 call ...
7355 (procfs_target::create_inferior): ... here.
7356
7357 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7358
7359 * exec.c (validate_exec_file): Ensure the build-id is up to
7360 date by calling reopen_exec_file (that checks file timestamp
7361 to decide to re-read the file).
7362
7363 2020-06-18 Pedro Alves <palves@redhat.com>
7364
7365 PR gdb/25412
7366 * gdbthread.h (delete_thread, delete_thread_silent)
7367 (find_thread_ptid): Update comments.
7368 * thread.c (current_thread_): New global.
7369 (is_current_thread): Move higher, and reimplement.
7370 (inferior_thread): Reimplement.
7371 (set_thread_exited): Use bool. Add assertions.
7372 (add_thread_silent): Simplify thread-reuse handling by always
7373 calling delete_thread.
7374 (delete_thread): Remove intro comment.
7375 (find_thread_ptid): Skip exited threads.
7376 (switch_to_thread_no_regs): Write to current_thread_.
7377 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7378 INFERIOR_PTID. Clear current_thread_.
7379
7380 2020-06-18 Pedro Alves <palves@redhat.com>
7381
7382 * aix-thread.c (pd_update): Use switch_to_thread.
7383
7384 2020-06-18 Pedro Alves <palves@redhat.com>
7385
7386 * ravenscar-thread.c (ravenscar_thread_target): Update.
7387 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7388 (ravenscar_thread_target::add_active_thread): ... this. Don't
7389 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7390 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7391
7392 2020-06-18 Pedro Alves <palves@redhat.com>
7393
7394 * nat/windows-nat.c (current_windows_thread): Remove.
7395 * nat/windows-nat.h (current_windows_thread): Remove.
7396 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7397 Adjust.
7398 (display_selectors): Adjust to fetch the current
7399 windows_thread_info based on inferior_ptid.
7400 (fake_create_process): No longer write to current_windows_thread.
7401 (windows_nat_target::get_windows_debug_event):
7402 Don't set inferior_ptid or current_windows_thread.
7403 (windows_nat_target::wait): Adjust to not rely on
7404 current_windows_thread.
7405 (do_initial_windows_stuff): Now a method of windows_nat_target.
7406 Switch to the last_ptid thread.
7407 (windows_nat_target::attach): Adjust.
7408 (windows_nat_target::detach): Use switch_to_no_thread instead of
7409 writing to inferior_ptid directly.
7410 (windows_nat_target::create_inferior): Adjust.
7411
7412 2020-06-18 Pedro Alves <palves@redhat.com>
7413
7414 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7415
7416 2020-06-18 Pedro Alves <palves@redhat.com>
7417
7418 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7419 after creating it, instead of writing to inferior_ptid. Don't
7420 write to inferior_ptid.
7421
7422 2020-06-18 Pedro Alves <palves@redhat.com>
7423
7424 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7425
7426 2020-06-18 Pedro Alves <palves@redhat.com>
7427
7428 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7429 it, instead of writing to inferior_ptid.
7430
7431 2020-06-18 Pedro Alves <palves@redhat.com>
7432
7433 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7434 to inferior_ptid.
7435
7436 2020-06-18 Pedro Alves <palves@redhat.com>
7437
7438 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7439 instead of writing to inferior_ptid directly.
7440
7441 2020-06-18 Pedro Alves <palves@redhat.com>
7442
7443 * corelow.c (core_target::close): Use switch_to_no_thread instead
7444 of writing to inferior_ptid directly.
7445 (add_to_thread_list, core_target_open): Use switch_to_thread
7446 instead of writing to inferior_ptid directly.
7447
7448 2020-06-18 Pedro Alves <palves@redhat.com>
7449
7450 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7451 inferior_ptid.
7452 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7453 inferior_ptid.
7454 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7455 inferior_ptid directly.
7456 (darwin_nat_target::init_thread_list): Switch to thread, instead
7457 of writing to inferior_ptid.
7458 (darwin_nat_target::attach): Don't write to inferior_ptid.
7459 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7460
7461 2020-06-18 Pedro Alves <palves@redhat.com>
7462
7463 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7464 thread.
7465 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7466 Instead use switch_to_thread.
7467 (gnu_nat_target::detach): Use switch_to_no_thread
7468 instead of writing to inferior_ptid directly. Used passed-in
7469 inferior instead of looking up the inferior by pid.
7470
7471 2020-06-18 Pedro Alves <palves@redhat.com>
7472
7473 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7474 inferior_ptid.
7475
7476 2020-06-18 Pedro Alves <palves@redhat.com>
7477
7478 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7479 inferior_ptid.
7480 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7481 thread.
7482 (nto_procfs_target::detach): Avoid referencing
7483 inferior_ptid. Use switch_to_no_thread instead of writing to
7484 inferior_ptid directly.
7485 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7486 instead of writing to inferior_ptid directly.
7487 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7488 to thread.
7489
7490 2020-06-18 Pedro Alves <palves@redhat.com>
7491
7492 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7493 after creating it, instead of writing to inferior_ptid.
7494 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7495 to inferior_ptid directly.
7496 (gdbsim_target::wait): Don't write to inferior_ptid.
7497
7498 2020-06-18 Pedro Alves <palves@redhat.com>
7499
7500 * remote.c (remote_target::remote_notice_new_inferior): Use
7501 switch_to_thread instead of writing to inferior_ptid directly.
7502 (remote_target::add_current_inferior_and_thread): Use
7503 switch_to_no_thread instead of writing to inferior_ptid directly.
7504 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7505 and switch_to_thread instead of using set_current_inferior or
7506 writing to inferior_ptid directly.
7507
7508 2020-06-18 Pedro Alves <palves@redhat.com>
7509
7510 * tracectf.c (ctf_target_open): Switch to added thread instead of
7511 writing to inferior_ptid directly.
7512 (ctf_target::close): Use switch_to_no_thread instead of writing to
7513 inferior_ptid directly.
7514
7515 2020-06-18 Pedro Alves <palves@redhat.com>
7516
7517 * tracefile-tfile.c (tfile_target_open): Don't write to
7518 inferior_ptid directly, instead switch to added thread.
7519 (tfile_target::close): Use switch_to_no_thread instead of writing
7520 to inferior_ptid directly.
7521
7522 2020-06-18 Pedro Alves <palves@redhat.com>
7523
7524 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7525 (procfs_target::detach): Use switch_to_no_thread
7526 instead of writing to inferior_ptid directly.
7527 (do_attach): Change return type to void. Switch to the added
7528 thread.
7529 (procfs_target::create_inferior): Switch to the added thread.
7530 (procfs_do_thread_registers): Don't write to inferior_ptid.
7531
7532 2020-06-18 Pedro Alves <palves@redhat.com>
7533
7534 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7535 of writing to inferior_ptid.
7536 (scoped_restore_exited_inferior): Delete.
7537 (handle_vfork_child_exec_or_exit): Simplify using
7538 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7539 instead of writing to inferior_ptid.
7540 (THREAD_STOPPED_BY): Delete.
7541 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7542 (thread_stopped_by_hw_breakpoint): Delete.
7543 (save_waitstatus): Use
7544 scoped_restore_current_thread+switch_to_thread, and call
7545 target_stopped_by_watchpoint instead of
7546 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7547 instead of thread_stopped_by_sw_breakpoint, and
7548 target_stopped_by_hw_breakpoint instead of
7549 thread_stopped_by_hw_breakpoint.
7550 (handle_inferior_event)
7551 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7552 inferior_ptid directly, nor
7553 set_current_inferior/set_current_program_space. Use
7554 switch_to_thread / switch_to_inferior_no_thread instead.
7555
7556 2020-06-18 Pedro Alves <palves@redhat.com>
7557
7558 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7559 instead of writing to inferior_ptid.
7560
7561 2020-06-18 Pedro Alves <palves@redhat.com>
7562
7563 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7564 added thread.
7565 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7566 to the added thread.
7567 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7568 instead of writing to inferior_ptid.
7569
7570 2020-06-18 Pedro Alves <palves@redhat.com>
7571
7572 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7573 (register_to_value_test): Mock a program_space too. Heap-allocate
7574 the address space. Don't write to inferior_ptid. Use
7575 switch_to_thread instead.
7576
7577 2020-06-18 Pedro Alves <palves@redhat.com>
7578
7579 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7580 Delete.
7581 (find_signalled_thread()): New, factored out from
7582 linux_make_corefile_notes and adjusted to handle exited threads.
7583 (linux_make_corefile_notes): Adjust to use the new
7584 find_signalled_thread.
7585
7586 2020-06-18 Pedro Alves <palves@redhat.com>
7587
7588 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7589 of saving/restoring inferior_ptid.
7590
7591 2020-06-17 Tom Tromey <tom@tromey.com>
7592
7593 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7594 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7595 declare.
7596 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7597
7598 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7599
7600 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7601 of partial symtabs.
7602
7603 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7604
7605 * regformats/reg-arm.dat: Remove.
7606 * regformats/reg-bfin.dat: Remove.
7607 * regformats/reg-cris.dat: Remove.
7608 * regformats/reg-crisv32.dat: Remove.
7609 * regformats/reg-m32r.dat: Remove.
7610 * regformats/reg-tilegx.dat: Remove.
7611 * regformats/reg-tilegx32.dat: Remove.
7612
7613 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * features/Makefile (WHICH): Remove arm files.
7616 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7617 * regformats/arm/arm-with-neon.dat: Remove.
7618 * regformats/arm/arm-with-vfpv2.dat: Remove.
7619 * regformats/arm/arm-with-vfpv3.dat: Remove.
7620
7621 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * features/Makefile (XMLTOC): Remove rx.xml.
7624
7625 2020-06-17 Pedro Alves <palves@redhat.com>
7626
7627 * gdbthread.h (thread_control_state) <trap_expected> Update
7628 comments.
7629
7630 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7631
7632 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7633 ada_language::lookup_symbol_nonlocal.
7634 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7635 (ada_language::lookup_symbol_nonlocal): New member function,
7636 implementation from ada_lookup_symbol_nonlocal.
7637 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7638 initializer.
7639 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7640 initializer.
7641 (cplus_language::lookup_symbol_nonlocal): New member function.
7642 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7643 (minimal_language_data) Likewise.
7644 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7645 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7646 initializer.
7647 (d_language::lookup_symbol_nonlocal): New member function.
7648 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7649 initializer.
7650 (f_language::lookup_symbol_nonlocal): New member function.
7651 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7652 initializer.
7653 * language.c (unknown_language_data): Likewise.
7654 (auto_language_data): Likewise.
7655 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7656 field.
7657 (language_defn::lookup_symbol_nonlocal): New member function.
7658 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7659 initializer.
7660 * objc-lang.c (objc_language_data): Likewise.
7661 * opencl-lang.c (opencl_language_data): Likewise.
7662 * p-lang.c (pascal_language_data): Likewise.
7663 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7664 rust_language::lookup_symbol_nonlocal.
7665 (rust_language_data): Delete la_lookup_symbol_nonlocal
7666 initializer.
7667 (rust_language::lookup_symbol_nonlocal): New member function,
7668 implementation from rust_lookup_symbol_nonlocal.
7669 * symtab.c (lookup_symbol_aux): Update call to
7670 lookup_symbol_nonlocal.
7671 (basic_lookup_symbol_nonlocal): Rename to...
7672 (language_defn::lookup_symbol_nonlocal): ...this, and update
7673 header comment. Remove language_defn parameter, and replace with
7674 uses of `this'.
7675 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7676
7677 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7678
7679 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7680 initializer.
7681 (ada_language::value_print_inner): New member function.
7682 * c-lang.c (c_language_data): Delete la_value_print_inner
7683 initializer.
7684 (cplus_language_data): Likewise.
7685 (asm_language_data): Likewise.
7686 (minimal_language_data): Likewise.
7687 * d-lang.c (d_language_data): Likewise.
7688 (d_language::value_print_inner): New member function.
7689 * f-lang.c (f_language_data): Delete la_value_print_inner
7690 initializer.
7691 (f_language::value_print_inner): New member function.
7692 * f-lang.h (f_value_print_innner): Rename to...
7693 (f_value_print_inner): ...this (note spelling of 'inner').
7694 * f-valprint.c (f_value_print_innner): Rename to...
7695 (f_value_print_inner): ...this (note spelling of 'inner').
7696 * go-lang.c (go_language_data): Delete la_value_print_inner
7697 initializer.
7698 (go_language::value_print_inner): New member function.
7699 * language.c (language_defn::value_print_inner): Define new member
7700 function.
7701 (unk_lang_value_print_inner): Delete.
7702 (unknown_language_data): Delete la_value_print_inner initializer.
7703 (unknown_language::value_print_inner): New member function.
7704 (auto_language_data): Delete la_value_print_inner initializer.
7705 (auto_language::value_print_inner): New member function.
7706 * language.h (language_data): Delete la_value_print_inner field.
7707 (language_defn::value_print_inner): Delcare new member function.
7708 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7709 initializer.
7710 (m2_language::value_print_inner): New member function.
7711 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7712 initializer.
7713 * opencl-lang.c (opencl_language_data): Likewise.
7714 * p-lang.c (pascal_language_data): Likewise.
7715 (pascal_language::value_print_inner): New member function.
7716 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7717 initializer.
7718 (rust_language::value_print_inner): New member function.
7719 * valprint.c (do_val_print): Update call to value_print_inner.
7720
7721 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7722
7723 * ada-lang.c (ada_language_data): Delete la_value_print
7724 initializer.
7725 (ada_language::value_print): New member function.
7726 * c-lang.c (c_language_data): Delete la_value_print initializer.
7727 (cplus_language_data): Likewise.
7728 (asm_language_data): Likewise.
7729 (minimal_language_data): Likewise.
7730 * d-lang.c (d_language_data): Likewise.
7731 * f-lang.c (f_language_data): Likewise.
7732 * go-lang.c (go_language_data): Likewise.
7733 * language.c (unk_lang_value_print): Delete.
7734 (language_defn::value_print): Define new member function.
7735 (unknown_language_data): Delete la_value_print initializer.
7736 (unknown_language::value_print): New member function.
7737 (auto_language_data): Delete la_value_print initializer.
7738 (auto_language::value_print): New member function.
7739 * language.h (language_data): Delete la_value_print field.
7740 (language_defn::value_print): Declare new member function.
7741 (LA_VALUE_PRINT): Update call to value_print.
7742 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7743 * objc-lang.c (objc_language_data): Likewise.
7744 * opencl-lang.c (opencl_language_data): Likewise.
7745 * p-lang.c (pascal_language_data): Likewise.
7746 (pascal_language::value_print): New member function.
7747 * rust-lang.c (rust_language_data): Delete la_value_print
7748 initializer.
7749
7750 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * ada-lang.c (ada_watch_location_expression): Rename to
7753 ada_language::watch_location_expression.
7754 (ada_language_data): Delete la_watch_location_expression
7755 initializer.
7756 (ada_language::watch_location_expression): New member function,
7757 implementation from ada_watch_location_expression.
7758 * breakpoint.c (watch_command_1): Update call to
7759 watch_location_expression.
7760 * c-lang.c (c_watch_location_expression): Rename to
7761 language_defn::watch_location_expression.
7762 (c_language_data): Delete la_watch_location_expression
7763 initializer.
7764 (cplus_language_data): Likewise.
7765 (asm_language_data): Likewise.
7766 (minimal_language_data): Likewise.
7767 * c-lang.h (c_watch_location_expression): Delete declaration.
7768 * d-lang.c (d_language_data): Delete la_watch_location_expression
7769 initializer.
7770 * f-lang.c (f_language_data): Likewise.
7771 * go-lang.c (go_language_data): Likewise.
7772 * language.c (language_defn::watch_location_expression): Member
7773 function implementation from c_watch_location_expression.
7774 (unknown_language_data): Delete la_watch_location_expression
7775 initializer.
7776 (auto_language_data): Likewise.
7777 * language.h (language_data): Delete la_watch_location_expression
7778 field.
7779 (language_defn::watch_location_expression): Declare new member
7780 function.
7781 * m2-lang.c (m2_language_data): Delete
7782 la_watch_location_expression initializer.
7783 * objc-lang.c (objc_language_data): Likewise.
7784 * opencl-lang.c (opencl_language_data): Likewise.
7785 * p-lang.c (pascal_language_data): Likewise.
7786 * rust-lang.c (rust_watch_location_expression): Rename to
7787 rust_language::watch_location_expression.
7788 (rust_language_data): Delete la_watch_location_expression
7789 initializer.
7790 (rust_language::watch_location_expression): New member function,
7791 implementation from rust_watch_location_expression.
7792
7793 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7796 ada_language::collect_symbol_completion_matches.
7797 (ada_language_data): Delete la_collect_symbol_completion_matches
7798 initializer.
7799 (ada_language::collect_symbol_completion_matches): New member
7800 function, implementation from
7801 ada_collect_symbol_completion_matches.
7802 * c-lang.c (c_language_data): Delete
7803 la_collect_symbol_completion_matches initializer.
7804 (cplus_language_data): Likewise.
7805 (asm_language_data): Likewise.
7806 (minimal_language_data): Likewise.
7807 * d-lang.c (d_language_data): Likewise.
7808 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7809 f_language::collect_symbol_completion_matches.
7810 (f_language_data): Delete la_collect_symbol_completion_matches
7811 initializer.
7812 (f_language::collect_symbol_completion_matches) New member
7813 function, implementation from f_collect_symbol_completion_matches.
7814 * go-lang.c (go_language_data): Delete
7815 la_collect_symbol_completion_matches initializer.
7816 * language.c (unknown_language_data): Likewise.
7817 (auto_language_data): Likewise.
7818 * language.h (language_data): Delete
7819 la_collect_symbol_completion_matches field.
7820 (language_defn::collect_symbol_completion_matches): New member
7821 function.
7822 * m2-lang.c (m2_language_data): Delete
7823 la_collect_symbol_completion_matches initializer.
7824 * objc-lang.c (objc_language_data): Likewise.
7825 * opencl-lang.c (opencl_language_data): Likewise.
7826 * p-lang.c (pascal_language_data): Likewise.
7827 * rust-lang.c (rust_language_data): Likewise.
7828 * symtab.c (default_collect_symbol_completion_matches): Delete.
7829 (collect_symbol_completion_matches): Update call to
7830 collect_symbol_completion_matches.
7831 (collect_symbol_completion_matches_type): Likewise.
7832 * symtab.h (default_collect_symbol_completion_matches): Delete
7833 declaration.
7834
7835 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7836
7837 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7838 (ada_language_data): Delete la_word_break_characters initializer.
7839 (ada_language::word_break_characters): New member function.
7840 * c-lang.c (c_language_data): Delete la_word_break_characters
7841 initializer.
7842 (cplus_language_data): Likewise.
7843 (asm_language_data): Likewise.
7844 (minimal_language_data): Likewise.
7845 * completer.c: Update global comment.
7846 (advance_to_expression_complete_word_point): Update call to
7847 word_break_characters.
7848 (complete_files_symbols): Likewise.
7849 (complete_line_internal_1): Likewise.
7850 (default_completer_handle_brkchars): Likewise.
7851 (skip_quoted_chars): Likewise.
7852 * d-lang.c (d_language_data): Delete la_word_break_characters
7853 initializer.
7854 * f-lang.c (f_word_break_characters): Delete.
7855 (f_language_data): Delete la_word_break_characters initializer.
7856 (f_language::word_break_characters): New member function.
7857 * go-lang.c (go_language_data): Delete la_word_break_characters
7858 initializer.
7859 * language.c (unknown_language_data): Likewise.
7860 (auto_language_data): Likewise.
7861 * language.h (default_word_break_characters): Move declaration to
7862 earlier in the file.
7863 (language_data): Delete la_word_break_characters field.
7864 (language_defn::word_break_characters): New member function.
7865 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7866 initializer.
7867 * objc-lang.c (objc_language_data): Likewise.
7868 * opencl-lang.c (opencl_language_data): Likewise.
7869 * p-lang.c (pascal_language_data): Likewise.
7870 * rust-lang.c (rust_language_data): Likewise.
7871
7872 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7875 (ada_language_data): Delete la_get_symbol_name_matcher
7876 initializer.
7877 (language_defn::get_symbol_name_matcher_inner): New member
7878 function.
7879 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7880 initializer.
7881 (cplus_language_data): Likewise.
7882 (cplus_language::get_symbol_name_matcher_inner): New member
7883 function.
7884 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7885 (minimal_language_data): Likewise.
7886 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7887 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7888 initializer.
7889 * dictionary.c (iter_match_first_hashed): Update call to
7890 get_symbol_name_matcher.
7891 (iter_match_next_hashed): Likewise.
7892 (iter_match_next_linear): Likewise.
7893 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7894 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7895 initializer.
7896 (f_language::get_symbol_name_matcher_inner): New member function.
7897 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7898 initializer.
7899 * language.c (default_symbol_name_matcher): Update header comment,
7900 make static.
7901 (language_defn::get_symbol_name_matcher): New definition.
7902 (language_defn::get_symbol_name_matcher_inner): Likewise.
7903 (get_symbol_name_matcher): Delete.
7904 (unknown_language_data): Delete la_get_symbol_name_matcher
7905 initializer.
7906 (auto_language_data): Likewise.
7907 * language.h (language_data): Delete la_get_symbol_name_matcher
7908 field.
7909 (language_defn::get_symbol_name_matcher): New member function.
7910 (language_defn::get_symbol_name_matcher_inner): Likewise.
7911 (default_symbol_name_matcher): Delete declaration.
7912 * linespec.c (find_methods): Update call to
7913 get_symbol_name_matcher.
7914 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7915 initializer.
7916 * minsyms.c (lookup_minimal_symbol): Update call to
7917 get_symbol_name_matcher.
7918 (iterate_over_minimal_symbols): Likewise.
7919 * objc-lang.c (objc_language_data): Delete
7920 la_get_symbol_name_matcher initializer.
7921 * opencl-lang.c (opencl_language_data): Likewise.
7922 * p-lang.c (pascal_language_data): Likewise.
7923 * psymtab.c (psymbol_name_matches): Update call to
7924 get_symbol_name_matcher.
7925 * rust-lang.c (rust_language_data): Delete
7926 la_get_symbol_name_matcher initializer.
7927 * symtab.c (symbol_matches_search_name): Update call to
7928 get_symbol_name_matcher.
7929 (compare_symbol_name): Likewise.
7930
7931 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * ada-lang.c (ada_language_data): Delete la_compute_program
7934 initializer.
7935 * c-lang.c (c_language_data): Likewise.
7936 (c_language::compute_program): New member function.
7937 (cplus_language_data): Delete la_compute_program initializer.
7938 (cplus_language::compute_program): New member function.
7939 (asm_language_data): Delete la_compute_program initializer.
7940 (minimal_language_data): Likewise.
7941 * c-lang.h (c_compute_program): Update comment.
7942 (cplus_compute_program): Likewise.
7943 * compile/compile-c-support.c (c_compute_program): Likewise.
7944 (cplus_compute_program): Likewise.
7945 * compile/compile.c (compile_to_object): Update call to
7946 la_compute_program.
7947 * d-lang.c (d_language_data): Delete la_compute_program
7948 initializer.
7949 * f-lang.c (f_language_data): Likewise.
7950 * go-lang.c (go_language_data): Likewise.
7951 * language.c (unknown_language_data): Likewise.
7952 (auto_language_data): Likewise.
7953 * language.h (language_data): Delete la_compute_program field.
7954 (language_defn::compute_program): New member function.
7955 * m2-lang.c (m2_language_data): Delete la_compute_program
7956 initializer.
7957 * objc-lang.c (objc_language_data): Likewise.
7958 * opencl-lang.c (opencl_language_data): Likewise.
7959 * p-lang.c (pascal_language_data): Likewise.
7960 * rust-lang.c (rust_language_data): Likewise.
7961
7962 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7963
7964 * ada-lang.c (ada_language_data) Delete
7965 la_class_name_from_physname initializer.
7966 * c-lang.c (c_language_data): Likewise.
7967 (cplus_language_data): Likewise.
7968 (cplus_language::class_name_from_physname): New member function.
7969 (asm_language_data): Delete la_class_name_from_physname
7970 initializer.
7971 (minimal_language_data): Likewise.
7972 * d-lang.c (d_language_data): Likewise.
7973 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7974 method on language_defn class.
7975 (guess_full_die_structure_name): Likewise.
7976 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7977 initializer.
7978 * go-lang.c (go_language_data): Likewise.
7979 * language.c (language_class_name_from_physname): Delete.
7980 (unk_lang_class_name): Delete.
7981 (unknown_language_data): Delete la_class_name_from_physname
7982 initializer.
7983 (auto_language_data): Likewise.
7984 * language.h (language_data): Delete la_class_name_from_physname
7985 field.
7986 (language_defn::class_name_from_physname): New function.
7987 (language_class_name_from_physname): Delete declaration.
7988 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7989 initializer.
7990 * objc-lang.c (objc_language_data): Likewise.
7991 * opencl-lang.c (opencl_language_data): Likewise.
7992 * p-lang.c (pascal_language_data): Likewise.
7993 * rust-lang.c (rust_language_data): Likewise.
7994
7995 2020-06-16 Tom Tromey <tom@tromey.com>
7996
7997 * tui/tui-data.h (STATUS_NAME): New macro.
7998 * tui/tui-layout.c (tui_remove_some_windows)
7999 (initialize_known_windows, tui_register_window)
8000 (tui_layout_split::remove_windows, initialize_layouts)
8001 (tui_new_layout_command): Don't use hard-coded window names.
8002
8003 2020-06-16 Tom Tromey <tom@tromey.com>
8004
8005 PR tui/25348:
8006 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8007 tui_initialize_readline. Only run once. Call rl_initialize.
8008 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8009 tui_initialize_readline.
8010 * tui/tui-io.c (tui_setup_io): Call
8011 tui_ensure_readline_initialized.
8012 * tui/tui-interp.c (tui_interp::init): Update.
8013
8014 2020-06-16 Tom Tromey <tom@tromey.com>
8015
8016 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8017 Also preserve the status window.
8018
8019 2020-06-16 Tom Tromey <tom@tromey.com>
8020
8021 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8022 where m_window==nullptr.
8023
8024 2020-06-15 Tom Tromey <tromey@adacore.com>
8025
8026 * windows-nat.c (windows_nat::handle_output_debug_string):
8027 Update.
8028 (windows_nat::handle_ms_vc_exception): Update.
8029 * target.h (target_read_string): Change API.
8030 * target.c (target_read_string): Change API.
8031 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8032 Update.
8033 * solib-frv.c (frv_current_sos): Update.
8034 * solib-dsbt.c (dsbt_current_sos): Update.
8035 * solib-darwin.c (darwin_current_sos): Update.
8036 * linux-thread-db.c (inferior_has_bug): Update.
8037 * expprint.c (print_subexp_standard): Update.
8038 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8039 (ada_exception_message_1): Update.
8040
8041 2020-06-15 Tom Tromey <tromey@adacore.com>
8042
8043 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8044
8045 2020-06-15 Tom Tromey <tromey@adacore.com>
8046
8047 * valprint.c (read_string): Update comment.
8048 * target.c (MIN): Remove.
8049 (target_read_string): Rewrite.
8050
8051 2020-06-15 Tom Tromey <tromey@adacore.com>
8052
8053 * corefile.c (read_memory_string): Remove.
8054 * ada-valprint.c (ada_value_print_ptr): Update.
8055 * ada-lang.h (ada_tag_name): Change return type.
8056 * ada-lang.c (type_from_tag): Update.
8057 (ada_tag_name_from_tsd): Change return type. Use
8058 target_read_string.
8059 (ada_tag_name): Likewise.
8060 * gdbcore.h (read_memory_string): Don't declare.
8061
8062 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8063
8064 * symtab.c (rbreak_command): Ignore Windows drive colon.
8065
8066 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * NEWS: Mention removed GDBserver host support.
8069
8070 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8071
8072 * features/riscv/rebuild-csr-xml.sh: Updated.
8073
8074 2020-06-11 Tom Tromey <tom@tromey.com>
8075
8076 PR gdb/18318:
8077 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8078
8079 2020-06-09 Jonny Grant <jg@jguk.org>
8080 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8081
8082 * main.c (captured_main_1): Don't print new line after help.
8083 (print_gdb_help): add mailing list and IRC channel information
8084 to --help. Add new lines between items in the footer. Remove
8085 quotes around bug url.
8086
8087 2020-06-11 Keith Seitz <keiths@redhat.com>
8088
8089 PR gdb/21356
8090 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8091 Resolve typedefs for type length calculations.
8092
8093 2020-06-10 Tom de Vries <tdevries@suse.de>
8094
8095 PR ada/24713
8096 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8097 (write_psymbols): Enable .gdb_index for ada.
8098 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8099 ada.
8100
8101 2020-06-10 Tom de Vries <tdevries@suse.de>
8102
8103 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8104 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8105 namei" instead of "const char *name" argument.
8106 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8107 dw2_symtab_iter_init.
8108
8109 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8112 to use type::field and field::type instead.
8113
8114 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8117 to use field::type instead.
8118
8119 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * gdbtypes.h (struct field) <type, set_type>: New methods.
8122 Rename `type` field to...
8123 <m_type>: ... this. Change references throughout to use type or
8124 set_type methods.
8125 (FIELD_TYPE): Use field::type. Change call sites that modify
8126 the field's type to use field::set_type instead.
8127
8128 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8129
8130 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8131 to use type::index_type instead.
8132
8133 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8134
8135 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8136 methods.
8137 (TYPE_INDEX_TYPE): Use type::index_type.
8138 * gdbtypes.c (create_array_type_with_stride): Likewise.
8139
8140 2020-06-07 Tom Tromey <tom@tromey.com>
8141
8142 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8143 parameter.
8144 (generic_value_print): Update.
8145
8146 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 Revert commit 982a38f60b0.
8149 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8150
8151 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8152
8153 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8154 avoid use after free.
8155
8156 2020-06-05 Tom de Vries <tdevries@suse.de>
8157
8158 * NEWS: Fix typos.
8159
8160 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8161
8162 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8163 the per_bfd object.
8164 (dwarf2_read_debug_names): Likewise.
8165 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8166 object when re-using a per_bfd object with an index.
8167
8168 2020-06-03 Tom de Vries <tdevries@suse.de>
8169
8170 PR symtab/26046
8171 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8172 children for C++.
8173 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8174 DW_TAG_subprogram.
8175
8176 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 * ada-lang.c (ada_language_data): Delete skip_trampoline
8179 initializer.
8180 * c-lang.c (c_language_data): Likewise.
8181 (cplus_language_data): Likewise.
8182 (cplus_language::skip_trampoline): New member function.
8183 (asm_language_data): Delete skip_trampoline initializer.
8184 (minimal_language_data): Likewise.
8185 * d-lang.c (d_language_data): Likewise.
8186 * f-lang.c (f_language_data): Likewise.
8187 * go-lang.c (go_language_data): Likewise.
8188 * language.c (unk_lang_trampoline): Delete function.
8189 (skip_language_trampoline): Update.
8190 (unknown_language_data): Delete skip_trampoline initializer.
8191 (auto_language_data): Likewise.
8192 * language.h (language_data): Delete skip_trampoline field.
8193 (language_defn::skip_trampoline): New function.
8194 * m2-lang.c (m2_language_data): Delete skip_trampoline
8195 initializer.
8196 * objc-lang.c (objc_skip_trampoline): Delete function, move
8197 implementation to objc_language::skip_trampoline.
8198 (objc_language_data): Delete skip_trampoline initializer.
8199 (objc_language::skip_trampoline): New member function with
8200 implementation from objc_skip_trampoline.
8201 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8202 initializer.
8203 * p-lang.c (pascal_language_data): Likewise.
8204 * rust-lang.c (rust_language_data): Likewise.
8205
8206 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8209 (ada_language::demangle): New member function.
8210 * c-lang.c (c_language_data): Delete la_demangle initializer.
8211 (cplus_language_data): Delete la_demangle initializer.
8212 (cplus_language::demangle): New member function.
8213 (asm_language_data): Delete la_demangle initializer.
8214 (minimal_language_data): Delete la_demangle initializer.
8215 * d-lang.c (d_language_data): Delete la_demangle initializer.
8216 (d_language::demangle): New member function.
8217 * f-lang.c (f_language_data): Delete la_demangle initializer.
8218 (f_language::demangle): New member function.
8219 * go-lang.c (go_language_data): Delete la_demangle initializer.
8220 (go_language::demangle): New member function.
8221 * language.c (language_demangle): Update.
8222 (unk_lang_demangle): Delete.
8223 (unknown_language_data): Delete la_demangle initializer.
8224 (unknown_language::demangle): New member function.
8225 (auto_language_data): Delete la_demangle initializer.
8226 (auto_language::demangle): New member function.
8227 * language.h (language_data): Delete la_demangle field.
8228 (language_defn::demangle): New function.
8229 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8230 * objc-lang.c (objc_language_data): Delete la_demangle
8231 initializer.
8232 (objc_language::demangle): New member function.
8233 * opencl-lang.c (opencl_language_data): Delete la_demangle
8234 initializer.
8235 * p-lang.c (pascal_language_data): Likewise.
8236 * rust-lang.c (rust_language_data): Likewise.
8237 (rust_language::demangle): New member function.
8238
8239 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * ada-lang.c (ada_language_data): Delete la_print_type
8242 initializer.
8243 (ada_language::print_type): New member function.
8244 * c-lang.c (c_language_data): Delete la_print_type initializer.
8245 (c_language::print_type): New member function.
8246 (cplus_language_data): Delete la_print_type initializer.
8247 (cplus_language::print_type): New member function.
8248 (asm_language_data): Delete la_print_type initializer.
8249 (asm_language::print_type): New member function.
8250 (minimal_language_data): Delete la_print_type initializer.
8251 (minimal_language::print_type): New member function.
8252 * d-lang.c (d_language_data): Delete la_print_type initializer.
8253 (d_language::print_type): New member function.
8254 * f-lang.c (f_language_data): Delete la_print_type initializer.
8255 (f_language::print_type): New member function.
8256 * go-lang.c (go_language_data): Delete la_print_type initializer.
8257 (go_language::print_type): New member function.
8258 * language.c (unk_lang_print_type): Delete.
8259 (unknown_language_data): Delete la_print_type initializer.
8260 (unknown_language::print_type): New member function.
8261 (auto_language_data): Delete la_print_type initializer.
8262 (auto_language::print_type): New member function.
8263 * language.h (language_data): Delete la_print_type field.
8264 (language_defn::print_type): New function.
8265 (LA_PRINT_TYPE): Update.
8266 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8267 (m2_language::print_type): New member function.
8268 * objc-lang.c (objc_language_data): Delete la_print_type
8269 initializer.
8270 (objc_language::print_type): New member function.
8271 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8272 to opencl_language::print_type.
8273 (opencl_language_data): Delete la_print_type initializer.
8274 (opencl_language::print_type): New member function, implementation
8275 from opencl_print_type.
8276 * p-lang.c (pascal_language_data): Delete la_print_type
8277 initializer.
8278 (pascal_language::print_type): New member function.
8279 * rust-lang.c (rust_print_type): Delete, implementation moved to
8280 rust_language::print_type.
8281 (rust_language_data): Delete la_print_type initializer.
8282 (rust_language::print_type): New member function, implementation
8283 from rust_print_type.
8284
8285 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8286
8287 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8288 implementation moves to...
8289 (ada_language::sniff_from_mangled_name): ...here. Update return
8290 type.
8291 (ada_language_data): Delete la_sniff_from_mangled_name
8292 initializer.
8293 * c-lang.c (c_language_data): Likewise.
8294 (cplus_language_data): Likewise.
8295 (cplus_language::sniff_from_mangled_name): New member function,
8296 implementation taken from gdb_sniff_from_mangled_name.
8297 (asm_language_data): Delete la_sniff_from_mangled_name
8298 initializer.
8299 (minimal_language_data): Likewise.
8300 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8301 implementation moves to cplus_language::sniff_from_mangled_name.
8302 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8303 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8304 moves to...
8305 (d_language::sniff_from_mangled_name): ...here.
8306 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8307 * f-lang.c (f_language_data): Likewise.
8308 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8309 moves to...
8310 (go_language::sniff_from_mangled_name): ...here.
8311 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8312 * language.c (language_sniff_from_mangled_name): Delete.
8313 (unknown_language_data): Delete la_sniff_from_mangled_name
8314 initializer.
8315 (auto_language_data): Likewise.
8316 * language.h (language_data): Delete la_sniff_from_mangled_name
8317 field.
8318 (language_defn::sniff_from_mangled_name): New function.
8319 (language_sniff_from_mangled_name): Delete declaration.
8320 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8321 field.
8322 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8323 implementation moves to...
8324 (objc_language::sniff_from_mangled_name): ...here.
8325 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8326 * opencl-lang.c (opencl_language_data): Likewise.
8327 * p-lang.c (pascal_language_data): Likewise.
8328 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8329 implementation moves to...
8330 (rust_language::sniff_from_mangled_name): ...here.
8331 (rust_language_data): Delete la_sniff_from_mangled_name
8332 initializer.
8333 * symtab.c (symbol_find_demangled_name): Call
8334 sniff_from_mangled_name member function.
8335
8336 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8339 initializer.
8340 * c-lang.c (c_language_data): Likewise.
8341 (cplus_language_data): Likewise.
8342 (cplus_language::search_name_hash): New member function.
8343 (asm_language_data): Delete la_search_name_hash initializer.
8344 (minimal_language_data): Likewise.
8345 * d-lang.c (d_language_data): Likewise.
8346 * dictionary.c (default_search_name_hash): Rename to...
8347 (language_defn::search_name_hash): ...this.
8348 * f-lang.c (f_language_data): Likewise.
8349 (f_language::search_name_hash): New member function.
8350 * go-lang.c (go_language_data): Delete la_search_name_hash
8351 initializer.
8352 * language.c (unknown_language_data): Likewise.
8353 (auto_language_data): Likewise.
8354 * language.h (struct language_data): Delete la_search_name_hash
8355 field.
8356 (language_defn::search_name_hash): Declare new member function.
8357 (default_search_name_hash): Delete declaration.
8358 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8359 initializer.
8360 * objc-lang.c (objc_language_data): Likewise.
8361 * opencl-lang.c (opencl_language_data): Likewise.
8362 * p-lang.c (pascal_language_data): Likewise.
8363 * rust-lang.c (rust_language_data): Likewise.
8364 * symtab.c (search_name_hash): Update call.
8365
8366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8367
8368 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8369 initializer.
8370 * c-lang.c (class compile_instance): Declare.
8371 (c_language_data): Delete la_get_compile_instance initializer.
8372 (c_language::get_compile_instance): New member function.
8373 (cplus_language_data): Delete la_get_compile_instance initializer.
8374 (cplus_language::get_compile_instance): New member function.
8375 (asm_language_data): Delete la_get_compile_instance initializer.
8376 (minimal_language_data): Likewise.
8377 * c-lang.h (c_get_compile_context): Update comment.
8378 (cplus_get_compile_context): Update comment.
8379 * compile/compile.c (compile_to_object): Update calls, don't rely
8380 on function pointer being NULL.
8381 * d-lang.c (d_language_data): Delete la_get_compile_instance
8382 initializer.
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 (language_data): Delete la_get_compile_instance field.
8388 (language_defn::get_compile_instance): New member function.
8389 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8390 initializer.
8391 * objc-lang.c (objc_language_data): Likewise.
8392 * opencl-lang.c (opencl_language_data): Likewise.
8393 * p-lang.c (pascal_language_data): Likewise.
8394 * rust-lang.c (rust_language_data): Likewise.
8395
8396 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8397
8398 * ada-lang.c (ada_add_all_symbols): Update comment.
8399 (ada_iterate_over_symbols): Delete, move implementation to...
8400 (ada_language::iterate_over_symbols): ...here, a new member
8401 function, rewrite to use range based for loop.
8402 (ada_language_data): Delete la_iterate_over_symbols initializer.
8403 * c-lang.c (c_language_data): Likewise.
8404 (cplus_language_data): Likewise.
8405 (asm_language_data): Likewise.
8406 (minimal_language_data): Likewise.
8407 * d-lang.c (d_language_data): Likewise.
8408 * f-lang.c (f_language_data): Likewise.
8409 * go-lang.c (go_language_data): Likewise.
8410 * language.c (unknown_language_data): Likewise.
8411 (auto_language_data): Likewise.
8412 * language.h (language_data): Delete la_iterate_over_symbols field.
8413 (language_defn::iterate_over_symbols): New member function.
8414 (LA_ITERATE_OVER_SYMBOLS): Update.
8415 * linespec.c (iterate_over_all_matching_symtabs): Update.
8416 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8417 initializer.
8418 * objc-lang.c (objc_language_data): Likewise.
8419 * opencl-lang.c (opencl_language_data): Likewise.
8420 * p-lang.c (pascal_language_data): Likewise.
8421 * rust-lang.c (rust_language_data): Likewise.
8422
8423 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8424
8425 * ada-lang.c (ada_language_data): Delete
8426 la_lookup_transparent_type initializer.
8427 * c-lang.c (c_language_data): Likewise.
8428 (cplus_language_data): Likewise.
8429 (cplus_language::lookup_transparent_type): New member function.
8430 (asm_language_data): Delete la_lookup_transparent_type
8431 initializer.
8432 (minimal_language_data): Likewise.
8433 * d-lang.c (d_language_data): Likewise.
8434 * f-lang.c (f_language_data): Likewise.
8435 * go-lang.c (go_language_data): Likewise.
8436 * language.c (unknown_language_data): Likewise.
8437 (auto_language_data): Likewise.
8438 * language.h (struct language_data): Delete
8439 la_lookup_transparent_type field.
8440 (language_defn::lookup_transparent_type): New member function.
8441 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8442 initializer.
8443 * objc-lang.c (objc_language_data): Likewise.
8444 * opencl-lang.c (opencl_language_data): Likewise.
8445 * p-lang.c (pascal_language_data): Likewise.
8446 * rust-lang.c (rust_language_data): Likewise.
8447 * symtab.c (symbol_matches_domain): Update call.
8448
8449 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8450
8451 * ada-lang.c (ada_language_arch_info): Delete function, move
8452 implementation to...
8453 (ada_language::language_arch_info): ...here, a new member
8454 function.
8455 (ada_language_data): Delete la_language_arch_info.
8456 * c-lang.c (c_language_data): Likewise.
8457 (c_language::language_arch_info): New member function.
8458 (cplus_language_arch_info): Delete function, move
8459 implementation to...
8460 (cplus_language::language_arch_info): ...here, a new member
8461 function.
8462 (cplus_language_data): Delete la_language_arch_info.
8463 (asm_language_data): Likewise.
8464 (asm_language::language_arch_info): New member function.
8465 (minimal_language_data): Delete la_language_arch_info.
8466 (minimal_language::language_arch_info): New member function.
8467 * d-lang.c (d_language_arch_info): Delete function, move
8468 implementation to...
8469 (d_language::language_arch_info): ...here, a new member
8470 function.
8471 (d_language_data): Delete la_language_arch_info.
8472 * f-lang.c (f_language_arch_info): Delete function, move
8473 implementation to...
8474 (f_language::language_arch_info): ...here, a new member
8475 function.
8476 (f_language_data): Delete la_language_arch_info.
8477 * go-lang.c (go_language_arch_info): Delete function, move
8478 implementation to...
8479 (go_language::language_arch_info): ...here, a new member
8480 function.
8481 (go_language_data): Delete la_language_arch_info.
8482 * language.c (unknown_language_data): Likewise.
8483 (unknown_language::language_arch_info): New member function.
8484 (auto_language_data): Delete la_language_arch_info.
8485 (auto_language::language_arch_info): New member function.
8486 (language_gdbarch_post_init): Update call to
8487 la_language_arch_info.
8488 * language.h (language_data): Delete la_language_arch_info
8489 function pointer.
8490 (language_defn::language_arch_info): New function.
8491 * m2-lang.c (m2_language_arch_info): Delete function, move
8492 implementation to...
8493 (m2_language::language_arch_info): ...here, a new member
8494 function.
8495 (m2_language_data): Delete la_language_arch_info.
8496 * objc-lang.c (objc_language_arch_info): Delete function, move
8497 implementation to...
8498 (objc_language::language_arch_info): ...here, a new member
8499 function.
8500 (objc_language_data): Delete la_language_arch_info.
8501 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8502 implementation to...
8503 (opencl_language::language_arch_info): ...here, a new member
8504 function.
8505 (opencl_language_data): Delete la_language_arch_info.
8506 * p-lang.c (pascal_language_arch_info): Delete function, move
8507 implementation to...
8508 (pascal_language::language_arch_info): ...here, a new member
8509 function.
8510 (pascal_language_data): Delete la_language_arch_info.
8511 * rust-lang.c (rust_language_arch_info): Delete function, move
8512 implementation to...
8513 (rust_language::language_arch_info): ...here, a new member
8514 function.
8515 (rust_language_data): Delete la_language_arch_info.
8516
8517 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8518
8519 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8520 initializer.
8521 * c-lang.c (c_language_data): Likewise.
8522 (cplus_language_data): Likewise.
8523 (cplus_language::pass_by_reference_info): New method.
8524 (asm_language_data): Delete la_pass_by_reference initializer.
8525 (minimal_language_data): Likewise.
8526 * cp-abi.c (cp_pass_by_reference): Remove use of
8527 default_pass_by_reference.
8528 * d-lang.c (d_language_data): Likewise.
8529 * f-lang.c (f_language_data): Likewise.
8530 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8531 default_pass_by_reference.
8532 * go-lang.c (go_language_data): Likewise.
8533 * language.c (language_pass_by_reference): Update.
8534 (default_pass_by_reference): Delete.
8535 (unknown_language_data): Delete la_pass_by_reference
8536 initializer.
8537 (auto_language_data): Likewise.
8538 * language.h (struct language_data): Delete la_pass_by_reference
8539 field.
8540 (language_defn::pass_by_reference_info): New member function.
8541 (default_pass_by_reference): Delete declaration.
8542 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8543 initializer.
8544 * objc-lang.c (objc_language_data): Likewise.
8545 * opencl-lang.c (opencl_language_data): Likewise.
8546 * p-lang.c (pascal_language_data): Likewise.
8547 * rust-lang.c (rust_language_data): Likewise.
8548
8549 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8550
8551 * ada-lang.c (ada_read_var_value): Delete function, move
8552 implementation to...
8553 (ada_language::read_var_value): ...here.
8554 (ada_language_data): Delete la_read_var_value initializer.
8555 * c-lang.c (c_language_data): Likewise.
8556 (cplus_language_data): Likewise.
8557 (minimal_language_data): Likewise.
8558 * d-lang.c (d_language_data): Likewise.
8559 * f-lang.c (f_language_data): Likewise.
8560 * findvar.c (default_read_var_value): Rename to...
8561 (language_defn::read_var_value): ...this.
8562 * findvar.c (read_var_value): Update header comment, and change to
8563 call member function instead of function pointer.
8564 * go-lang.c (go_language_data): Likewise.
8565 * language.c (unknown_language_data): Delete la_read_var_value
8566 initializer.
8567 (auto_language_data): Likewise.
8568 * language.h (struct language_data): Delete la_read_var_value
8569 field.
8570 (language_defn::read_var_value): New member function.
8571 (default_read_var_value): Delete declaration.
8572 * m2-lang.c (m2_language_data): Delete la_read_var_value
8573 initializer.
8574 * objc-lang.c (objc_language_data): Likewise.
8575 * opencl-lang.c (opencl_language_data): Likewise.
8576 * p-lang.c (pascal_language_data): Likewise.
8577 * rust-lang.c (rust_language_data): Likewise.
8578 * value.h (default_read_var_value): Delete declaration.
8579
8580 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8581
8582 * ada-lang.c (ada_print_array_index): Delete function, move
8583 implementation to...
8584 (ada_language::print_array_index): ...here.
8585 (ada_language_data): Delete la_print_array_index initializer.
8586 * c-lang.c (c_language_data): Likewise.
8587 (cplus_language_data): Likewise.
8588 (minimal_language_data): Likewise.
8589 * d-lang.c (d_language_data): Likewise.
8590 * f-lang.c (f_language_data): Likewise.
8591 * go-lang.c (go_language_data): Likewise.
8592 * language.c (default_print_array_index): Delete function, move
8593 implementation to...
8594 (language_defn::print_array_index): ...here.
8595 (unknown_language_data): Delete la_print_array_index initializer.
8596 (auto_language_data): Likewise.
8597 * language.h (struct language_data): Delete la_print_array_index
8598 field.
8599 (language_defn::print_array_index): New member function.
8600 (LA_PRINT_ARRAY_INDEX): Update.
8601 (default_print_array_index): Delete declaration.
8602 * m2-lang.c (m2_language_data): Delete la_print_array_index
8603 initializer.
8604 * objc-lang.c (objc_language_data): Likewise.
8605 * opencl-lang.c (opencl_language_data): Likewise.
8606 * p-lang.c (pascal_language_data): Likewise.
8607 * rust-lang.c (rust_language_data): Likewise.
8608
8609 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8610
8611 * gdb/ada-lang.c (ada_language_defn): Convert to...
8612 (ada_language_data): ...this.
8613 (class ada_language): New class.
8614 (ada_language_defn): New static global.
8615 * gdb/c-lang.c (c_language_defn): Convert to...
8616 (c_language_data): ...this.
8617 (class c_language): New class.
8618 (c_language_defn): New static global.
8619 (cplus_language_defn): Convert to...
8620 (cplus_language_data): ...this.
8621 (class cplus_language): New class.
8622 (cplus_language_defn): New static global.
8623 (asm_language_defn): Convert to...
8624 (asm_language_data): ...this.
8625 (class asm_language): New class.
8626 (asm_language_defn): New static global.
8627 (minimal_language_defn): Convert to...
8628 (minimal_language_data): ...this.
8629 (class minimal_language): New class.
8630 (minimal_language_defn): New static global.
8631 * gdb/d-lang.c (d_language_defn): Convert to...
8632 (d_language_data): ...this.
8633 (class d_language): New class.
8634 (d_language_defn): New static global.
8635 * gdb/f-lang.c (f_language_defn): Convert to...
8636 (f_language_data): ...this.
8637 (class f_language): New class.
8638 (f_language_defn): New static global.
8639 * gdb/go-lang.c (go_language_defn): Convert to...
8640 (go_language_data): ...this.
8641 (class go_language): New class.
8642 (go_language_defn): New static global.
8643 * gdb/language.c (unknown_language_defn): Remove declaration.
8644 (current_language): Initialize to nullptr, real initialization is
8645 moved to _initialize_language.
8646 (languages): Delete global.
8647 (language_defn::languages): Define.
8648 (set_language_command): Use language_defn::languages.
8649 (set_language): Likewise.
8650 (range_error): Likewise.
8651 (language_enum): Likewise.
8652 (language_def): Likewise.
8653 (add_set_language_command): Use language_def::languages for the
8654 language list, and language_def to lookup language pointers.
8655 (skip_language_trampoline): Use language_defn::languages.
8656 (unknown_language_defn): Convert to...
8657 (unknown_language_data): ...this.
8658 (class unknown_language): New class.
8659 (unknown_language_defn): New static global.
8660 (auto_language_defn): Convert to...
8661 (auto_language_data): ...this.
8662 (class auto_language): New class.
8663 (auto_language_defn): New static global.
8664 (language_gdbarch_post_init): Use language_defn::languages.
8665 (_initialize_language): Initialize current_language.
8666 * gdb/language.h (struct language_defn): Rename to...
8667 (struct language_data): ...this.
8668 (struct language_defn): New.
8669 (auto_language_defn): Delete.
8670 (unknown_language_defn): Delete.
8671 (minimal_language_defn): Delete.
8672 (ada_language_defn): Delete.
8673 (asm_language_defn): Delete.
8674 (c_language_defn): Delete.
8675 (cplus_language_defn): Delete.
8676 (d_language_defn): Delete.
8677 (f_language_defn): Delete.
8678 (go_language_defn): Delete.
8679 (m2_language_defn): Delete.
8680 (objc_language_defn): Delete.
8681 (opencl_language_defn): Delete.
8682 (pascal_language_defn): Delete.
8683 (rust_language_defn): Delete.
8684 * gdb/m2-lang.c (m2_language_defn): Convert to...
8685 (m2_language_data): ...this.
8686 (class m2_language): New class.
8687 (m2_language_defn): New static global.
8688 * gdb/objc-lang.c (objc_language_defn): Convert to...
8689 (objc_language_data): ...this.
8690 (class objc_language): New class.
8691 (objc_language_defn): New static global.
8692 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8693 (opencl_language_data): ...this.
8694 (class opencl_language): New class.
8695 (opencl_language_defn): New static global.
8696 * gdb/p-lang.c (pascal_language_defn): Convert to...
8697 (pascal_language_data): ...this.
8698 (class pascal_language): New class.
8699 (pascal_language_defn): New static global.
8700 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8701 language pointer, update comment format.
8702 * gdb/rust-lang.c (rust_language_defn): Convert to...
8703 (rust_language_data): ...this.
8704 (class rust_language): New class.
8705 (rust_language_defn): New static global.
8706
8707 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8710 member variable.
8711 <m_stmt_at_address>: New member variable.
8712 (lnp_state_machine::record_line): Don't record some lines, update
8713 tracking of is_stmt at the same address.
8714 (lnp_state_machine::lnp_state_machine): Initialise new member
8715 variables.
8716
8717 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8718
8719 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8720 "-include gnu-nat-mig.h".
8721 * gnu-nat-mig.h: New file.
8722 * gnu-nat.c: Include "gnu-nat-mig.h".
8723 (exc_server, msg_reply_server, notify_server,
8724 process_reply_server): Remove declarations.
8725
8726 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8727
8728 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8729 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8730 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8731 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8732 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8733 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8734 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8735 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8736 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8737 to gnu_nat_target class.
8738 * gnu-nat.c: Likewise.
8739 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8740 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8741 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8742 object.
8743 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8744 instead of `gnu_target'.
8745
8746 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8747
8748 * i386-gnu-tdep.c: Include "gdbcore.h"
8749 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8750 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8751 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8752 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8753 i386_gnu_sigcontext_addr): New functions
8754 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8755 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8756 tdep.
8757
8758 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8759
8760 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8761 before fork_inferior call. Avoid calling it if target_is_pushed returns
8762 true.
8763
8764 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8765
8766 * gnu-nat.h (gnu_target): New variable declaration.
8767 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8768 gnu_target.
8769 * gnu-nat.c (gnu_target): New variable.
8770 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8771 add_thread_silent, and add_thread calls.
8772 (gnu_nat_target::create_inferior): Pass gnu_target to
8773 add_thread_silent, thread_change_ptid call.
8774 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8775 call.
8776
8777 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8778
8779 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8780 (gnu_nat_target::find_memory_regions): Remove unused
8781 `old_address' variable.
8782
8783 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8784
8785 * gnu-nat.c: Include "gdbarch.h".
8786
8787 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8788
8789 * reply_mig_hack.awk (Error return): Cast function through
8790 void *, to bypass compiler function call check.
8791
8792 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8793
8794 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8795 $(srcdir)/reply_mig_hack.awk.
8796
8797 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8798
8799 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8800
8801 2020-05-30 Jonny Grant <jg@jguk.org>
8802
8803 * configure.ac (ACX_BUGURL): change bug URL to https.
8804
8805 2020-05-30 Pedro Alves <palves@redhat.com>
8806
8807 * cp-support.c (replace_typedefs_template): New.
8808 (replace_typedefs_qualified_name): Handle
8809 DEMANGLE_COMPONENT_TEMPLATE.
8810
8811 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8812
8813 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8814 dwarf2/index-cache.h, dwarf2/index-write.c,
8815 dwarf2/index-write.h, dwarf2/line-header.c,
8816 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8817 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8818 variables and fields from `dwarf2_per_objfile` to just
8819 `per_objfile` throughout.
8820
8821 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8822
8823 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8824 <push_dwarf_reg_entry_value>: Add comment.
8825
8826 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8827 Keith Seitz <keiths@redhat.com>
8828
8829 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8830 instead of PyEval_ReleaseLock.
8831 (class gdbpy_gil): Move to earlier in file.
8832 (finalize_python): Set gdb_python_initialized.
8833 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8834 when not initialized.
8835
8836 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8837
8838 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8839 <push_dwarf_reg_entry_value>: Remove assert. Override
8840 per_objfile with caller_per_objfile.
8841
8842 2020-05-28 Tom de Vries <tdevries@suse.de>
8843
8844 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8845 PR gold/15646 workaround to symbol kind "type".
8846
8847 2020-05-27 Tom Tromey <tromey@adacore.com>
8848
8849 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8850
8851 2020-05-27 Tom Tromey <tromey@adacore.com>
8852
8853 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8854 Use htab_find_with_hash.
8855 <add_abbrev>: Remove "abbrev_number" parameter.
8856 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8857 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8858 (hash_abbrev): Add comment.
8859 (abbrev_table::lookup_abbrev): Move to header file.
8860 (abbrev_table::read): Update.
8861
8862 2020-05-27 Tom Tromey <tromey@adacore.com>
8863
8864 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8865 method.
8866 <canonical_name>: New member.
8867 <raw_name>: Rename from "name".
8868 (partial_die_info): Initialize canonical_name.
8869 (scan_partial_symbols): Check raw_name.
8870 (partial_die_parent_scope, partial_die_full_name)
8871 (add_partial_symbol, add_partial_subprogram)
8872 (add_partial_enumeration, load_partial_dies): Use "name" method.
8873 (partial_die_info::name): New method.
8874 (partial_die_info::read, guess_partial_die_structure_name)
8875 (partial_die_info::fixup): Update.
8876
8877 2020-05-27 Tom Tromey <tromey@adacore.com>
8878
8879 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8880 <get_ref_die_offset>: Inline.
8881 <get_ref_die_offset_complaint>: New method.
8882 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8883 (attribute::get_ref_die_offset_complaint): Rename from
8884 get_ref_die_offset. Just issue complaint.
8885
8886 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8887
8888 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8889
8890 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8891
8892 * exec.c (exec_file_attach): Use errno value of first openp failure.
8893
8894 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8895
8896 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8897 Don't close thread handle.
8898
8899 2020-05-27 Tom Tromey <tom@tromey.com>
8900 Simon Marchi <simon.marchi@efficios.com>
8901
8902 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8903 shared_ptr.
8904 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8905 member.
8906 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8907 dwarf2_per_bfd_objfile_data_key>: New globals.
8908 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8909 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8910 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8911 shared.
8912 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8913 short-circuit when sharing.
8914 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8915 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8916
8917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8918
8919 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8920 to...
8921 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8922 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8923
8924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8927 build_name_components, find_name_components_bounds>:
8928 Add per_objfile parameter.
8929 (struct mapped_index) <symbol_name_at>: Likewise.
8930 (struct mapped_debug_names): Remove constructor.
8931 <dwarf2_per_objfile>: Remove field.
8932 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8933 (mapped_index_base::find_name_components_bounds,
8934 mapped_index_base::build_name_components,
8935 dw2_expand_symtabs_matching_symbol): Likewise.
8936 (class mock_mapped_index) <symbol_name_at>: Likewise.
8937 (check_match): Likewise.
8938 (check_find_bounds_finds): Likewise.
8939 (test_mapped_index_find_name_component_bounds): Update.
8940 (CHECK_MATCH): Update.
8941 (dw2_expand_symtabs_matching): Update.
8942 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8943 per_objfile parameter.
8944 <find_vec_in_debug_names>: Likewise.
8945 <m_per_objfile>: New field.
8946 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8947 parameter.
8948 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8949 (dw2_debug_names_iterator::next): Update.
8950 (dw2_debug_names_lookup_symbol): Update.
8951 (dw2_debug_names_expand_symtabs_for_function): Update.
8952 (dw2_debug_names_map_matching_symbols): Update.
8953 (dw2_debug_names_expand_symtabs_matching): Update.
8954 (dwarf2_read_debug_names): Update.
8955
8956 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8959 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8960 move to dwarf2_per_objfile.
8961 <read_in_chain>: Remove.
8962 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8963 remove_all_cus, age_comp_units>: New methods.
8964 <m_dwarf2_cus>: New member.
8965 (struct dwarf2_per_cu_data) <cu>: Remove.
8966 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8967 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8968 moved to methods of dwarf2_per_objfile.
8969 (dwarf2_clear_marks): Remove.
8970 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8971 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8972 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8973 (dwarf2_per_objfile::remove_all_cus): New.
8974 (class free_cached_comp_units) <~free_cached_comp_units>:
8975 Update.
8976 (load_cu): Update.
8977 (dw2_do_instantiate_symtab): Adjust.
8978 (fill_in_sig_entry_from_dwo_entry): Adjust.
8979 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8980 (cutu_reader::cutu_reader): Likewise.
8981 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8982 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8983 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8984 and dwarf2_per_objfile::age_comp_units.
8985 (load_partial_comp_unit): Update.
8986 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8987 (process_queue): Likewise.
8988 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8989 backlink.
8990 (dwarf2_read_addr_index): Likewise.
8991 (follow_die_offset): Likewise.
8992 (dwarf2_fetch_die_loc_sect_off): Likewise.
8993 (dwarf2_fetch_constant_bytes): Likewise.
8994 (dwarf2_fetch_die_type_sect_off): Likewise.
8995 (follow_die_sig_1): Likewise.
8996 (load_full_type_unit): Likewise.
8997 (read_signatured_type): Likewise.
8998 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8999 (dwarf2_cu::~dwarf2_cu): Remove.
9000 (dwarf2_per_objfile::get_cu): New.
9001 (dwarf2_per_objfile::set_cu): New.
9002 (age_cached_comp_units): Rename to...
9003 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9004 to std::unordered_map.
9005 (free_one_cached_comp_unit): Rename to...
9006 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9007 to std::unordered_map.
9008 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9009 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9010 a dwarf2_per_objfile in data.
9011 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9012 (dwarf2_clear_marks): Remove.
9013
9014 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9015
9016 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9017 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9018 (init_tu_and_read_dwo_dies): Likewise.
9019 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9020 (cutu_reader::cutu_reader): Likewise.
9021 (load_partial_comp_unit): Likewise.
9022 (process_psymtab_comp_unit): Update.
9023 (build_type_psymtabs_1): Update.
9024 (process_skeletonless_type_unit): Update.
9025 (load_full_comp_unit): Update.
9026 (find_partial_die): Update.
9027 (dwarf2_read_addr_index): Update.
9028 (read_signatured_type): Update.
9029
9030 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9031
9032 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9033 m_header_read_in>: New fields.
9034 <get_header>: New method.
9035 * dwarf2/read.c (per_cu_header_read_in): Remove.
9036 (dwarf2_per_cu_data::get_header): New.
9037 (dwarf2_per_cu_data::addr_size): Update.
9038 (dwarf2_per_cu_data::offset_size): Update.
9039 (dwarf2_per_cu_data::ref_addr_size): Update.
9040
9041 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9042
9043 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9044 (dw2_do_instantiate_symtab): Update.
9045 (queue_and_load_all_dwo_tus): Change parameter from
9046 dwarf2_per_cu_data to dwarf2_cu.
9047 (dwarf2_fetch_die_loc_sect_off): Update.
9048 (dwarf2_fetch_constant_bytes): Update.
9049 (dwarf2_fetch_die_type_sect_off): Update.
9050
9051 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9052
9053 * dwarf2/read.c (process_full_comp_unit,
9054 process_full_type_unit): Remove per_cu, per_objfile paramters.
9055 Add dwarf2_cu parameter.
9056 (process_queue): Update.
9057
9058 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9059
9060 * dwarf2/read.c (create_cu_from_index_list): Replace
9061 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9062 (create_cus_from_index_list): Likewise.
9063 (create_cus_from_index): Likewise.
9064 (create_signatured_type_table_from_index): Likewise.
9065 (create_cus_from_debug_names_list): Likewise.
9066 (create_cus_from_debug_names): Likewise.
9067 (dwarf2_read_gdb_index): Update.
9068 (dwarf2_read_debug_names): Update.
9069
9070 2020-05-27 Tom Tromey <tom@tromey.com>
9071 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * dwarf2/read.h (struct dwarf2_per_objfile)
9074 <get_type_for_signatured_type, set_type_for_signatured_type>:
9075 New methods.
9076 <m_type_map>: New member.
9077 (struct signatured_type) <type>: Remove.
9078 * dwarf2/read.c
9079 (dwarf2_per_objfile::get_type_for_signatured_type,
9080 dwarf2_per_objfile::set_type_for_signatured_type): New.
9081 (get_signatured_type): Use new methods.
9082
9083 2020-05-27 Tom Tromey <tom@tromey.com>
9084 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9087 (struct dwarf2_per_objfile) <type_units>: New member.
9088 <get_type_unit_group_unshareable>: New method.
9089 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9090 num_symtabs, symtabs>: Remove; move to
9091 type_unit_group_unshareable.
9092 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9093 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9094 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9095
9096 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * dwarf2/read.h (struct dwarf2_per_cu_data):
9099 <dwarf2_per_objfile>: Remove.
9100 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9101 dwarf2_per_objfile.
9102 (create_signatured_type_table_from_index): Likewise.
9103 (create_signatured_type_table_from_debug_names): Likewise.
9104 (create_debug_type_hash_table): Likewise.
9105 (fill_in_sig_entry_from_dwo_entry): Likewise.
9106 (create_type_unit_group): Likewise.
9107 (read_comp_units_from_section): Likewise.
9108 (create_cus_hash_table): Likewise.
9109
9110 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9113 dwarf2_per_cu_data::dwarf2_per_objfile.
9114 (compute_compunit_symtab_includes): Likewise.
9115 (dwarf2_cu::start_symtab): Likewise.
9116
9117 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9118
9119 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9120 parameter.
9121 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9122 (read_namespace_alias): Update.
9123 (lookup_die_type): Update.
9124 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9125 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9126 Update.
9127 (disassemble_dwarf_expression): Update.
9128
9129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9130
9131 * dwarf2/read.h (struct dwarf2_queue_item): Add
9132 dwarf2_per_objfile parameter, assign new parameter.
9133 <per_objfile>: New field.
9134 * dwarf2/read.c (free_one_cached_comp_unit): Add
9135 dwarf2_per_objfile parameter.
9136 (queue_comp_unit): Likewise.
9137 (dw2_do_instantiate_symtab): Update.
9138 (process_psymtab_comp_unit): Update.
9139 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9140 (process_imported_unit_die): Update.
9141 (queue_and_load_dwo_tu): Update.
9142 (follow_die_offset): Update.
9143 (follow_die_sig_1): Update.
9144
9145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9148 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9149 (read_call_site_scope): Assign per_objfile.
9150 (dwarf2_per_cu_data::objfile): Remove.
9151 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9152 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9153 dwarf2_per_objfile parameter.
9154 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9155 dwarf2_per_objfile parameter.
9156 (dwarf_expr_reg_to_entry_parameter): Add output
9157 dwarf2_per_objfile parameter.
9158 (locexpr_get_frame_base): Update.
9159 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9160 <push_dwarf_reg_entry_value>: Update.
9161 <call_site_to_target_addr>: Update.
9162 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9163 parameter.
9164 (value_of_dwarf_reg_entry): Update.
9165 (rw_pieced_value): Update.
9166 (indirect_synthetic_pointer): Update.
9167 (dwarf2_evaluate_property): Update.
9168 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9169 parameter.
9170 (locexpr_read_variable): Update.
9171 (locexpr_get_symbol_read_needs): Update.
9172 (loclist_read_variable): Update.
9173
9174 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9175
9176 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9177 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9178 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9179 parameter.
9180 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9181 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9182 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9183 parameter.
9184 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9185 sect_variable_value): Add dwarf2_per_objfile parameter.
9186 (class dwarf_evaluate_loc_desc) <dwarf_call,
9187 dwarf_variable_value>: Update.
9188 (fetch_const_value_from_synthetic_pointer): Add
9189 dwarf2_per_objfile parameter.
9190 (fetch_const_value_from_synthetic_pointer): Update.
9191 (coerced_pieced_ref): Update.
9192 (class symbol_needs_eval_context) <dwarf_call,
9193 dwarf_variable_value>: Update.
9194 (dwarf2_compile_expr_to_ax): Update.
9195
9196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9197
9198 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9199 parameter.
9200 (dwarf2_evaluate_loc_desc_full): Update.
9201
9202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9205 parameter.
9206 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9207 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9208 dwarf2_per_objfile parameter.
9209 (decode_debug_loc_dwo_addresses): Likewise.
9210 (dwarf2_find_location_expression): Update.
9211 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9212 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9213 parameter.
9214 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9215 parameter.
9216 (locexpr_describe_location_1): Likewise.
9217 (locexpr_describe_location): Update.
9218
9219 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9222 Remove.
9223 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9224 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9225 (dwarf2_compile_property_to_c): Update.
9226 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9227 use text offset from objfile.
9228 (locexpr_tracepoint_var_ref): Update.
9229 (locexpr_generate_c_location): Update.
9230 (loclist_describe_location): Update.
9231 (loclist_tracepoint_var_ref): Update.
9232 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9233 dwarf2_per_objfile parameter.
9234 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9235 use text offset from objfile.
9236 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9237
9238 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9239
9240 * dwarf2/expr.h (struct dwarf_expr_context)
9241 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9242 <offset>: Remove.
9243 <per_objfile>: New member.
9244 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9245 dwarf2_per_objfile parameter. Don't set offset, set
9246 per_objfile.
9247 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9248 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9249 a dwarf2_per_objfile object instead of an offset.
9250 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9251 constructor.
9252 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9253 to dwarf2_expr_executor constructor. Don't set offset.
9254 (dwarf2_fetch_cfa_info): Update.
9255 (struct dwarf2_frame_cache) <text_offset>: Remove.
9256 <per_objfile>: New field.
9257 (dwarf2_frame_cache): Update.
9258 (dwarf2_frame_prev_register): Update.
9259 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9260 <dwarf_evaluate_loc_desc>: Add constructor.
9261 (dwarf2_evaluate_loc_desc_full): Update.
9262 (dwarf2_locexpr_baton_eval): Update.
9263 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9264 Add constructor.
9265 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9266
9267 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9268
9269 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9270 addr_sized_int_type>: Move to dwarf2_cu.
9271 <int_type>: Move to dwarf2_per_objfile.
9272 (struct dwarf2_per_objfile) <int_type>: Move here.
9273 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9274 addr_sized_int_type>: Move here.
9275 (read_func_scope): Update.
9276 (read_array_type): Update.
9277 (read_tag_string_type): Update.
9278 (attr_to_dynamic_prop): Update.
9279 (dwarf2_per_cu_data::int_type): Rename to...
9280 (dwarf2_per_objfile::int_type): ... this.
9281 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9282 (dwarf2_cu::addr_sized_int_type): ... this.
9283 (read_subrange_type): Update.
9284 (dwarf2_per_cu_data::addr_type): Rename to...
9285 (dwarf2_cu::addr_type): ... this.
9286 (set_die_type): Update.
9287
9288 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9289
9290 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9291 data through per_cu->cu.
9292
9293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9296 dwarf2_per_cu_data parameter fo dwarf2_cu.
9297 (lookup_dwo_type_unit): Likewise.
9298 (read_cutu_die_from_dwo): Likewise.
9299 (lookup_dwo_unit): Likewise.
9300 (open_and_init_dwo_file): Likewise.
9301 (lookup_dwo_cutu): Likewise.
9302 (lookup_dwo_comp_unit): Likewise.
9303 (lookup_dwo_type_unit): Likewise.
9304 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9305 (cutu_reader::cutu_reader): Update.
9306
9307 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9308
9309 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9310 parameter.
9311 (process_full_type_unit): Likewise.
9312 (process_queue): Update.
9313
9314 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * dwarf2/read.c (recursively_compute_inclusions): Add
9317 dwarf2_per_objfile parameter.
9318 (compute_compunit_symtab_includes): Likewise.
9319 (process_cu_includes): Update.
9320
9321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9324 parameter.
9325 (create_type_unit_group): Update.
9326 (process_psymtab_comp_unit_reader): Update.
9327 (build_type_psymtabs_reader): Update.
9328
9329 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9332 object through m_this_cu->cu.
9333
9334 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9337 the info parameter.
9338 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9339
9340 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9341
9342 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9343 per_objfile parameter.
9344 (load_full_type_unit): Add per_objfile parameter.
9345 (read_signatured_type): Likewise.
9346 (load_full_comp_unit): Likewise.
9347 (load_cu): Likewise.
9348 (dw2_do_instantiate_symtab): Likewise.
9349 (dw2_get_file_names): Likewise.
9350 (dw2_map_symtabs_matching_filename): Update.
9351 (dw_expand_symtabs_matching_file_matcher): Update.
9352 (dw2_map_symbol_filenames): Update.
9353 (process_psymtab_comp_unit): Add per_objfile parameter.
9354 (build_type_psymtabs_1): Update.
9355 (process_skeletonless_type_unit): Update.
9356 (dwarf2_build_psymtabs_hard): Update.
9357 (load_partial_comp_unit): Add per_objfile parameter.
9358 (scan_partial_symbols): Update.
9359 (load_full_comp_unit): Add per_objfile parameter.
9360 (process_imported_unit_die): Update.
9361 (create_cus_hash_table): Update.
9362 (find_partial_die): Update.
9363 (dwarf2_read_addr_index): Update.
9364 (follow_die_offset): Update.
9365 (dwarf2_fetch_die_loc_sect_off): Update.
9366 (dwarf2_fetch_constant_bytes): Update.
9367 (dwarf2_fetch_die_type_sect_off): Update.
9368 (follow_die_sig_1): Update.
9369 (load_full_type_unit): Add per_objfile parameter.
9370 (read_signatured_type): Likewise.
9371
9372 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9375 of objfile_name.
9376
9377 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9378
9379 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9380 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9381 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9382 field.
9383 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9384 (create_cus_from_index): Update.
9385 (dwarf2_read_gdb_index): Update.
9386 (create_cus_from_debug_names): Update.
9387 (dwarf2_read_debug_names): Update.
9388 (get_abbrev_section_for_cu): Update.
9389 (create_all_comp_units): Update.
9390 (read_attribute_value): Update.
9391 (get_debug_line_section): Update.
9392 * dwarf2/index-cache.c (index_cache::store): Update.
9393 * dwarf2/index-write.c (save_gdb_index_command): Update.
9394 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9395
9396 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9397
9398 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9399 member.
9400 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9401 dwarf2_per_cu_data::per_bfd.
9402 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9403 (create_type_unit_group): Likewise.
9404 (queue_comp_unit): Remove reference to
9405 per_cu->dwarf2_per_objfile.
9406 (maybe_queue_comp_unit): Likewise.
9407 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9408 (create_cus_hash_table): Assign new field.
9409
9410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * dwarf2/read.c: Replace
9413 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9414 dwarf2_cu->per_objfile throughout.
9415
9416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9419 parameter, don't use per_cu->dwarf2_per_objfile.
9420 (dw2_instantiate_symtab): Likewise.
9421 (dw2_find_last_source_symtab): Update.
9422 (dw2_map_expand_apply): Update.
9423 (dw2_lookup_symbol): Update.
9424 (dw2_expand_symtabs_for_function): Update.
9425 (dw2_expand_all_symtabs): Update.
9426 (dw2_expand_symtabs_with_fullname): Update.
9427 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9428 don't use per_cu->dwarf2_per_objfile.
9429 (dw2_expand_marked_cus): Update.
9430 (dw2_find_pc_sect_compunit_symtab): Update.
9431 (dw2_debug_names_lookup_symbol): Update.
9432 (dw2_debug_names_expand_symtabs_for_function): Update.
9433 (dw2_debug_names_map_matching_symbols): Update.
9434 (dwarf2_psymtab::expand_psymtab): Update.
9435
9436 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9439 <per_objfile>: New member.
9440 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9441 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9442 call to dwarf2_cu.
9443 (cutu_reader::cutu_reader): Update.
9444 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9445
9446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9449 struct dwarf2_per_objfile.
9450 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9451 dwarf2_per_bfd.
9452 * dwarf2/read.c (set_die_type): Update.
9453 (get_die_type_at_offset): Update.
9454
9455 2020-05-27 Tom Tromey <tom@tromey.com>
9456 Simon Marchi <simon.marchi@efficios.com>
9457
9458 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9459 method.
9460 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9461 get_symtab, set_symtab>: New methods.
9462 <m_symtabs>: New field.
9463 (struct dwarf2_psymtab): Derive from partial_symtab.
9464 <readin_p, get_compunit_symtab>: Declare methods.
9465 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9466 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9467 New methods.
9468 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9469 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9470 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9471 (dw2_symtab_iter_next, dw2_print_stats)
9472 (dw2_expand_symtabs_with_fullname)
9473 (dw2_expand_symtabs_matching_one)
9474 (dw_expand_symtabs_matching_file_matcher)
9475 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9476 (dw2_debug_names_iterator::next)
9477 (dw2_debug_names_map_matching_symbols)
9478 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9479 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9480 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9481 New methods.
9482 (get_compunit_symtab, process_full_comp_unit)
9483 (process_full_type_unit): Update.
9484 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9485
9486 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9487
9488 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9489 then introduce a new dwarf2_per_objfile type.
9490 <read_line_string>: Move to the new dwarf2_per_objfile type.
9491 <objfile>: Likewise.
9492 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9493 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9494 dwarf2_per_objfile->per_bfd.
9495 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9496 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9497 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9498 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9499 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9500 (dwarf2_per_objfile::locate_sections): Rename to...
9501 (dwarf2_per_bfd::locate_sections): ... this.
9502 (dwarf2_per_objfile::get_cutu): Rename to...
9503 (dwarf2_per_bfd::get_cutu): ... this.
9504 (dwarf2_per_objfile::get_cu): Rename to...
9505 (dwarf2_per_bfd::get_cu): ... this.
9506 (dwarf2_per_objfile::get_tu): Rename to...
9507 (dwarf2_per_bfd::get_tu): ... this.
9508 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9509 (dwarf2_per_bfd::allocate_per_cu): ... this.
9510 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9511 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9512 (get_gdb_index_contents_ftype): Change parameter from
9513 dwarf2_per_objfile to dwarf2_per_bfd.
9514 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9515 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9516
9517 2020-05-27 Tom Tromey <tom@tromey.com>
9518 Simon Marchi <simon.marchi@efficios.com>
9519
9520 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9521 (allocate_piece_closure): Set "per_objfile" member.
9522 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9523 (locexpr_describe_location, loclist_describe_location): Use new
9524 member.
9525 * dwarf2/read.c (read_call_site_scope)
9526 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9527 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9528 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9529 handle_data_member_location): Set per_objfile member.
9530 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9531 member.
9532 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9533
9534 2020-05-27 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9537 allocate_signatured_type>: Declare new methods.
9538 <m_num_psymtabs>: New member.
9539 (struct dwarf2_per_cu_data) <index>: New member.
9540 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9541 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9542 (create_cu_from_index_list): Use allocate_per_cu.
9543 (create_signatured_type_table_from_index)
9544 (create_signatured_type_table_from_debug_names)
9545 (create_debug_type_hash_table, add_type_unit)
9546 (read_comp_units_from_section): Use allocate_signatured_type.
9547
9548 2020-05-27 Tom Tromey <tom@tromey.com>
9549
9550 * psymtab.c (partial_map_expand_apply)
9551 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9552 (psym_lookup_global_symbol_language)
9553 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9554 (psym_print_stats, psym_expand_symtabs_for_function)
9555 (psym_map_symbol_filenames, psym_map_matching_symbols)
9556 (psym_expand_symtabs_matching)
9557 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9558 (maintenance_check_psymtabs): Update.
9559 * psympriv.h (struct partial_symtab) <readin_p,
9560 get_compunit_symtab>: Add objfile parameter.
9561 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9562 Likewise.
9563 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9564 get_compunit_symtab>: Likewise.
9565 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9566
9567 2020-05-27 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9570 member.
9571 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9572 (create_cu_from_index_list)
9573 (create_signatured_type_table_from_index)
9574 (create_signatured_type_table_from_debug_names)
9575 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9576 (dwarf2_create_include_psymtab)
9577 (create_debug_type_hash_table, add_type_unit)
9578 (create_type_unit_group, read_comp_units_from_section)
9579 (dwarf2_compute_name, create_cus_hash_table)
9580 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9581 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9582 obstack.
9583 (dw2_get_real_path): Likewise. Change argument to
9584 dwarf2_per_objfile.
9585
9586 2020-05-27 Luis Machado <luis.machado@linaro.org>
9587
9588 PR tdep/26000
9589 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9590 for ldrd (immediate).
9591
9592 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9593
9594 * command.h: Add comment giving the name of class_tui.
9595 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9596 create the fake command for the help for class_tui.
9597
9598 2020-05-26 Tom Tromey <tromey@adacore.com>
9599
9600 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9601 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9602 (val_atr): New function.
9603 (value_val_atr): Use it.
9604 * ada-valprint.c (print_optional_low_bound): Change low bound
9605 handling for enums.
9606 (val_print_packed_array_elements): Don't call discrete_position.
9607 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9608 discrete_position for enum types.
9609 * language.c (default_print_array_index): Change type.
9610 * language.h (struct language_defn) <la_print_array_index>: Add
9611 index_type parameter, change type of index_value.
9612 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9613 (default_print_array_index): Update.
9614 * valprint.c (maybe_print_array_index): Don't call
9615 value_from_longest. Update.
9616 (value_print_array_elements): Don't call discrete_position.
9617
9618 2020-05-26 Tom Tromey <tromey@adacore.com>
9619
9620 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9621 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9622
9623 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9624
9625 PR gdb/13519
9626 * avr-tdep.c (avr_integer_to_address): Return data or code
9627 address accordingly to the second 'type' argument of the
9628 function.
9629
9630 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9631
9632 * infcmd.c, inferior.h: (construct_inferior_arguments):
9633 Moved function from here to gdbsupport/common-inferior.{h,cc}
9634
9635 2020-05-23 Tom Tromey <tom@tromey.com>
9636
9637 Revert commit eca1f90c:
9638 * NEWS: Remove entry for completion styling.
9639 * completer.c (_rl_completion_prefix_display_length): Move
9640 declaration later.
9641 (gdb_fnprint): Revert.
9642 (gdb_display_match_list_1): Likewise.
9643 * cli/cli-style.c (completion_prefix_style)
9644 (completion_difference_style, completion_suffix_style): Remove.
9645 (_initialize_cli_style): Revert.
9646 * cli/cli-style.h (completion_prefix_style)
9647 (completion_difference_style, completion_suffix_style): Don't
9648 declare.
9649
9650 2020-05-24 Pedro Alves <palves@redhat.com>
9651
9652 * symtab.c (completion_list_add_name): Return boolean indication
9653 of whether the symbol matched.
9654 (completion_list_add_symbol): Don't try to remove C++ aliases if
9655 the symbol didn't match in the first place.
9656 * symtab.h (completion_list_add_name): Return bool.
9657
9658 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9659
9660 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9661 type::field.
9662
9663 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9664
9665 GDB 9.2 released.
9666
9667 2020-05-23 Tom Tromey <tom@tromey.com>
9668
9669 * NEWS: Add entry for completion styling.
9670 * completer.c (_rl_completion_prefix_display_length): Move
9671 declaration earlier.
9672 (gdb_fnprint): Use completion_style.
9673 (gdb_display_match_list_1): Likewise.
9674 * cli/cli-style.c (completion_prefix_style)
9675 (completion_difference_style, completion_suffix_style): New
9676 globals.
9677 (_initialize_cli_style): Register new globals.
9678 * cli/cli-style.h (completion_prefix_style)
9679 (completion_difference_style, completion_suffix_style): Declare.
9680
9681 2020-05-23 Pedro Alves <palves@redhat.com>
9682
9683 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9684 (parse_escape): Use ISDIGIT instead of isdigit.
9685 (puts_debug): Use gdb_isprint instead of isprint.
9686 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9687 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9688 ISSPACE instead of isspace.
9689 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9690 instead of isspace.
9691 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9692 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9693 instead of isxdigit and ISDIGIT instead of isdigit.
9694
9695 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * gdbtypes.h (struct type) <field>: New method.
9698 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9699 or type::field.
9700
9701 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9702
9703 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9704 (TYPE_FIELDS): Use type::fields. Change all call sites that
9705 modify the propery to use type::set_fields instead.
9706
9707 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9710 type::num_fields instead.
9711
9712 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9715 methods.
9716 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9717 that modify the number of fields to use type::set_num_fields
9718 instead.
9719
9720 2020-05-22 Tom Tromey <tromey@adacore.com>
9721
9722 * compile/compile-object-load.h (munmap_list_free): Don't
9723 declare.
9724
9725 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9726
9727 * annotate.c (annotate_source_line): Update return type, add call
9728 to update current symtab and line.
9729 * annotate.h (annotate_source_line): Update return type, and
9730 extend header comment.
9731 * source.c (info_line_command): Check annotation_level before
9732 calling annotate_source_line.
9733 * stack.c (print_frame_info): If calling annotate_source_line
9734 returns true, then don't print any other source line information.
9735
9736 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9737
9738 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9739
9740 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * coffread.c (patch_type): Remove NULL check before xfree.
9743 * corefile.c (set_gnutarget): Likewise.
9744 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9745 * exec.c (build_section_table): Likewise.
9746 * remote.c (remote_target::pass_signals): Likewise.
9747 * utils.c (n_spaces): Likewise.
9748 * cli/cli-script.c (document_command): Likewise.
9749 * i386-windows-tdep.c (core_process_module_section): Likewise.
9750 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9751
9752 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9753
9754 * symfile.c (reread_symbols): Clear objfile's section_offsets
9755 vector and section indices, re-compute them by calling
9756 sym_offsets.
9757
9758 2020-05-20 Tom Tromey <tromey@adacore.com>
9759
9760 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9761 (desc_one_bound, desc_index_type): Compute field name.
9762
9763 2020-05-20 Tom de Vries <tdevries@suse.de>
9764
9765 PR symtab/25833
9766 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9767
9768 2020-05-20 Alan Modra <amodra@gmail.com>
9769
9770 PR 25993
9771 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9772 bfd_set_filename.
9773 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9774 passed to bfd_set_filename.
9775 * symfile-mem.c (add_vsyscall_page): Likewise for string
9776 passed to symbol_file_add_from_memory.
9777 (symbol_file_add_from_memory): Make name param a const char* and
9778 don't strdup.
9779
9780 2020-05-20 Alan Modra <amodra@gmail.com>
9781
9782 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9783 rather than accessing bfd->filename directly.
9784 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9785 and use bfd_section_name.
9786 * dwarf2/frame.c (decode_frame_entry): Likewise.
9787 * exec.c (exec_set_section_address): Likewise.
9788 * solib-aix.c (solib_aix_bfd_open): Likewise.
9789 * stap-probe.c (get_stap_base_address): Likewise.
9790 * symfile.c (reread_symbols): Likewise.
9791
9792 2020-05-19 Tom Tromey <tromey@adacore.com>
9793
9794 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9795
9796 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9799
9800 2020-05-19 Pedro Alves <palves@redhat.com>
9801
9802 * NEWS (set exec-file-mismatch): Adjust entry.
9803 * exec.c: Include "build-id.h".
9804 (validate_exec_file): Try to match build IDs instead of filenames.
9805 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9806 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9807 and pass down 'warn_if_slow'.
9808 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9809 gdb_bfd_open_closure to pass it down.
9810 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9811
9812 2020-05-19 Pedro Alves <palves@redhat.com>
9813
9814 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9815 * target.c (target_fileio_open_1): Rename to target_fileio_open
9816 and make extern. Use bool.
9817 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9818 (target_fileio_read_alloc_1): Adjust.
9819 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9820 (target_fileio_open_warn_if_slow): Delete declaration.
9821
9822 2020-05-19 Pedro Alves <palves@redhat.com>
9823
9824 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9825 Adjust all callers.
9826
9827 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9828
9829 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9830 whether disp is negative.
9831
9832 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9833
9834 * symfile.h (struct symfile_segment_data)
9835 <~symfile_segment_data>: Remove.
9836 <segment_info>: Change to std::vector.
9837 * symfile.c (default_symfile_segments): Update.
9838 * elfread.c (elf_symfile_segments): Update.
9839
9840 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9843 <segments>: New.
9844 <segment_bases, segment_sizes>: Remove.
9845 * symfile.c (default_symfile_segments): Update.
9846 * elfread.c (elf_symfile_segments): Update.
9847 * remote.c (remote_target::get_offsets): Update.
9848 * solib-target.c (solib_target_relocate_section_addresses):
9849 Update.
9850
9851 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * symfile.h (struct symfile_segment_data): Initialize fields.
9854 <~symfile_segment_data>: Add.
9855 (symfile_segment_data_up): New.
9856 (struct sym_fns) <sym_segments>: Return a
9857 symfile_segment_data_up.
9858 (default_symfile_segments): Return a symfile_segment_data_up.
9859 (free_symfile_segment_data): Remove.
9860 (get_symfile_segment_data): Return a symfile_segment_data_up.
9861 * symfile.c (default_symfile_segments): Likewise.
9862 (get_symfile_segment_data): Likewise.
9863 (free_symfile_segment_data): Remove.
9864 (symfile_find_segment_sections): Update.
9865 * elfread.c (elf_symfile_segments): Return a
9866 symfile_segment_data_up.
9867 * remote.c (remote_target::get_offsets): Update.
9868 * solib-target.c (solib_target_relocate_section_addresses):
9869 Update.
9870 * symfile-debug.c (debug_sym_segments): Return a
9871 symfile_segment_data_up.
9872
9873 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9874
9875 PR build/25981
9876 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9877 Hardcode register numbers.
9878
9879 PR build/25981
9880 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9881 procfs_find_LDT_entry): Remove.
9882 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9883 procfs_find_LDT_entry): Remove.
9884 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9885 Remove.
9886
9887 2020-05-17 Pedro Alves <palves@redhat.com>
9888 Andrew Burgess <andrew.burgess@embecosm.com>
9889 Keno Fischer <keno@juliacomputing.com>
9890
9891 PR gdb/25741
9892 * breakpoint.c (build_target_condition_list): Update comments.
9893 (build_target_command_list): Update comments and skip matching
9894 locations.
9895 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9896 a separate function. Simplify "set breakpoint auto-hw off"
9897 handling.
9898 (insert_breakpoints): Update comment.
9899 (tracepoint_locations_match): New parameter. For breakpoints,
9900 compare location types too, if the caller wants to.
9901 (handle_automatic_hardware_breakpoints): New functions.
9902 (bp_location_is_less_than): Also sort by location type and
9903 hardware breakpoint length.
9904 (update_global_location_list): Handle "set breakpoint auto-hw on"
9905 here.
9906 (update_breakpoint_locations): Ask breakpoint_locations_match to
9907 ignore location types.
9908
9909 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9912 type::name instead.
9913
9914 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * gdbtypes.h (struct type) <name, set_name>: New methods.
9917 (TYPE_CODE): Use type::name. Change all call sites used to set
9918 the name to use type::set_name instead.
9919
9920 2020-05-16 Tom Tromey <tom@tromey.com>
9921
9922 * top.c (quit_force): Update.
9923 * infrun.c (handle_no_resumed): Update.
9924 * top.h (all_uis): New function.
9925 (ALL_UIS): Remove.
9926
9927 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9930
9931 2020-05-16 Pedro Alves <palves@redhat.com>
9932
9933 * ia64-linux-nat.c
9934 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9935 Declare method.
9936 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9937
9938 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9941 (sparc64_adi_info): Likewise.
9942
9943 2020-05-15 Tom Tromey <tom@tromey.com>
9944
9945 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9946 block_objfile.
9947 (lookup_objfile_from_block): Remove.
9948 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9949 (lookup_global_symbol): Use block_objfile.
9950 * symtab.h (lookup_objfile_from_block): Don't declare.
9951 * printcmd.c (clear_dangling_display_expressions): Use
9952 block_objfile.
9953 * parse.c (operator_check_standard): Use block_objfile.
9954
9955 2020-05-15 Tom Tromey <tom@tromey.com>
9956
9957 * language.c (language_alloc_type_symbol): Set
9958 SYMBOL_SECTION.
9959 * symtab.c (initialize_objfile_symbol): Remove.
9960 (allocate_symbol): Remove.
9961 (allocate_template_symbol): Remove.
9962 * dwarf2/read.c (fixup_go_packaging): Use "new".
9963 (new_symbol): Use "new".
9964 (read_variable): Don't call initialize_objfile_symbol. Use
9965 "new".
9966 (read_func_scope): Use "new".
9967 * xcoffread.c (process_xcoff_symbol): Don't call
9968 initialize_objfile_symbol.
9969 (SYMBOL_DUP): Remove.
9970 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9971 "new".
9972 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9973 (allocate_template_symbol): Don't declare.
9974 (struct symbol): Add copy constructor. Change defaults.
9975 * jit.c (finalize_symtab): Use "new".
9976 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9977 Use "new".
9978 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9979 (common_block_end): Use "new".
9980 * mdebugread.c (parse_symbol): Use "new".
9981 (new_symbol): Likewise.
9982
9983 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9984
9985 * NEWS: Mention changes to help and apropos.
9986
9987 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9988
9989 * command.h (enum command_class): Improve comments, document
9990 that class_alias is for user-defined aliases, give the class
9991 name for each class, remove unused class_xdb.
9992 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9993 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9994 by a precise class.
9995 * infcmd.c (_initialize_infcmd): Likewise.
9996 * reverse.c (_initialize_reverse): Likewise.
9997 * stack.c (_initialize_stack): Likewise.
9998 * symfile.c (_initialize_symfile): Likewise.
9999 * tracepoint.c (_initialize_tracepoint): Likewise.
10000
10001 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10002
10003 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10004 when their aliased command is traversed.
10005 (help_cmd): Add fput_command_names_styled call to
10006 output command name and aliases when command has an alias.
10007
10008 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10009
10010 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10011 * cli/cli-decode.c (help_cmd_list): Declare as static,
10012 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10013 a command together with the command.
10014 (fput_command_name_styled, fput_command_names_styled): New functions.
10015 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10016 fput_command_name_styled.
10017 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10018 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10019
10020 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10021
10022 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10023 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10024 * command.h (cmd_show_list): Likewise.
10025 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10026 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10027
10028 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10029
10030 * unittests/command-def-selftests.c (traverse_command_structure):
10031 Verify all commands of a list have the same prefix command and
10032 that only the top cmdlist commands have a null prefix.
10033
10034 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10035
10036 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10037 as prefix, not one of its aliases.
10038 (set_cmd_prefix): Remove.
10039 (do_add_cmd): Centralize the setting of the prefix of a command, when
10040 command is defined after its full chain of prefix commands.
10041 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10042 (add_setshow_cmd_full): Likewise.
10043 (update_prefix_field_of_prefixed_commands): New function.
10044 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10045 update_prefix_field_of_prefixed_commands.
10046 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10047 addresses of remote_set_cmdlist and remote_show_cmdlist given
10048 as argument, not the address of an argument.
10049 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10050 * gdb/remote.c (_initialize_remote): Likewise.
10051
10052 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10053
10054 * cli/cli-cmds.c (alias_command): Check for an existing alias
10055 using lookup_cmd_composition, as valid_command_p is too strict
10056 and forbids aliases that are the prefix of an existing alias
10057 or command.
10058 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10059 command is properly recognised as a valid command.
10060
10061 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10062
10063 * unittests/help-doc-selftests.c: Rename to
10064 unittests/command-def-selftests.c
10065 * unittests/command-def-selftests.c (help_doc_tests): Update some
10066 comments.
10067 (command_structure_tests, traverse_command_structure): New namespace
10068 and function.
10069 (command_structure_invariants_tests): New function.
10070 (_initialize_command_def_selftests) Renamed from
10071 _initialize_help_doc_selftests, register command_structure_invariants
10072 selftest.
10073
10074 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10075
10076 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10077 an alias of 'show'.
10078
10079 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10080
10081 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10082 ada_is_fixed_point_type. Update all callers.
10083 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10084 all callers.
10085 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10086 Update all callers.
10087 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10088 print_fixed_point_type. Update all callers.
10089 * ada-valprint.c (ada_value_print_num): Replace call to
10090 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10091
10092 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10093
10094 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10095 processors.
10096 (cpu_supports_bts): Add CV_AMD case.
10097
10098 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10099 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * infrun.c (stop_all_threads): Collect multiple wait events at
10102 each pass.
10103
10104 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10107 type::code instead.
10108
10109 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * gdbtypes.h (struct type) <code, set_code>: New methods.
10112 (TYPE_CODE): Use type::code. Change all call sites used to set
10113 the code to use type::set_code instead.
10114
10115 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10116 Tom de Vries <tdevries@suse.de>
10117 Pedro Alves <palves@redhat.com>
10118
10119 PR threads/25478
10120 * infrun.c (stop_all_threads): Do NOT ignore
10121 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10122 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10123 received.
10124 (handle_no_resumed): Remove code handling a live inferior with no
10125 threads.
10126 * remote.c (has_single_non_exited_thread): New.
10127 (remote_target::update_thread_list): Do not delete a thread if is
10128 the last thread of the process.
10129 * thread.c (thread_select): Call delete_exited_threads instead of
10130 prune_threads.
10131
10132 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10133
10134 * infrun.c (stop_all_threads): Enable/disable thread events of all
10135 targets. Move a debug message denoting the end of the function
10136 into the SCOPED_EXIT block.
10137
10138 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10139
10140 * process-stratum-target.h: Include <set>.
10141 (all_non_exited_process_targets, switch_to_target_no_thread): New
10142 function declarations.
10143 * process-stratum-target.c (all_non_exited_process_targets)
10144 (switch_to_target_no_thread): New function implementations.
10145
10146 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10147
10148 * infrun.c (handle_inferior_event): Extract out a piece of code
10149 into...
10150 (mark_non_executing_threads): ...this new function.
10151
10152 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10153
10154 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10155 use.
10156
10157 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10158
10159 * regcache.c (regcache_read_pc_protected): New function
10160 implementation that returns 0 if the PC cannot read via
10161 'regcache_read_pc'.
10162 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10163 instead of 'regcache_read_pc'.
10164 (keep_going_pass_signal): Ditto.
10165
10166 2020-05-13 Tom Tromey <tromey@adacore.com>
10167
10168 * ada-lang.c (align_value): Remove.
10169 (ada_template_to_fixed_record_type_1): Use align_up.
10170
10171 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10172
10173 * async-event.c: Update the copyright year.
10174 * async-event.h: Update the copyright year.
10175
10176 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10177
10178 * objfiles.h (is_addr_in_objfile,
10179 shared_objfile_contains_address_p): Return bool.
10180 * objfile.c (is_addr_in_objfile,
10181 shared_objfile_contains_address_p): Return bool.
10182
10183 2020-05-11 Tom Tromey <tromey@adacore.com>
10184
10185 * cli/cli-cmds.c (info_command): Restore.
10186 (_initialize_cli_cmds): Use add_prefix_command for "info".
10187 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10188
10189 2020-05-11 Tom Tromey <tromey@adacore.com>
10190
10191 * ada-lang.c (ada_value_primitive_field): Now public.
10192 * ada-lang.h (ada_value_primitive_field): Declare.
10193 * ada-valprint.c (print_field_values): Use
10194 ada_value_primitive_field for wrapper fields.
10195
10196 2020-05-11 Tom de Vries <tdevries@suse.de>
10197
10198 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10199 MODULE_DOMAIN.
10200
10201 2020-05-11 Tom de Vries <tdevries@suse.de>
10202
10203 PR symtab/25941
10204 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10205 with length 0, if not gdb-produced.
10206 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10207
10208 2020-05-09 Tom de Vries <tdevries@suse.de>
10209
10210 PR gdb/25955
10211 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10212 calculation.
10213
10214 2020-05-09 Tom Tromey <tom@tromey.com>
10215
10216 * top.c (server_command): Now bool.
10217 * top.h (server_command): Now bool.
10218
10219 2020-05-08 Tom Tromey <tromey@adacore.com>
10220
10221 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10222 already being processed.
10223
10224 2020-05-08 Tom Tromey <tom@tromey.com>
10225
10226 * printcmd.c (struct display) <next>: Remove.
10227 <display>: New constructor.
10228 <exp_string>: Now a std::string.
10229 <enabled_p>: Now a bool.
10230 (display_number): Move definition earlier.
10231 (displays): Rename from display_chain. Now a std::vector.
10232 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10233 (display_command): Update.
10234 (do_one_display, disable_display)
10235 (enable_disable_display_command, do_enable_disable_display):
10236 Update.
10237 (free_display): Remove.
10238 (clear_displays): Rewrite.
10239 (delete_display): Update.
10240 (map_display_numbers): Use function_view. Remove "data"
10241 parameter. Update.
10242 (do_delete_display): Remove.
10243 (undisplay_command): Update.
10244 (do_one_display, do_displays, disable_display)
10245 (info_display_command): Update.
10246 (do_enable_disable_display): Remove.
10247 (enable_disable_display_command)
10248 (clear_dangling_display_expressions): Update.
10249
10250 2020-05-08 Tom Tromey <tom@tromey.com>
10251
10252 * symtab.c (set_symbol_cache_size)
10253 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10254 (maintenance_print_symbol_cache_statistics): Update.
10255 * symmisc.c (print_symbol_bcache_statistics)
10256 (print_objfile_statistics, maintenance_print_objfiles)
10257 (maintenance_info_symtabs, maintenance_check_symtabs)
10258 (maintenance_expand_symtabs, maintenance_info_line_tables):
10259 Update.
10260 * symfile-debug.c (set_debug_symfile): Update.
10261 * source.c (forget_cached_source_info): Update.
10262 * python/python.c (gdbpy_progspaces): Update.
10263 * psymtab.c (maintenance_info_psymtabs): Update.
10264 * probe.c (parse_probes): Update.
10265 * linespec.c (iterate_over_all_matching_symtabs)
10266 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10267 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10268 * exec.c (exec_target::close): Update.
10269 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10270 * breakpoint.c (print_one_breakpoint_location)
10271 (create_longjmp_master_breakpoint)
10272 (create_std_terminate_master_breakpoint): Update.
10273 * progspace.c (program_spaces): Now a std::vector.
10274 (maybe_new_address_space): Update.
10275 (add_program_space): Remove.
10276 (program_space::program_space): Update.
10277 (remove_program_space): Update.
10278 (number_of_program_spaces): Remove.
10279 (print_program_space, update_address_spaces): Update.
10280 * progspace.h (program_spaces): Change type.
10281 (ALL_PSPACES): Remove.
10282 (number_of_program_spaces): Don't declare.
10283 (struct program_space) <next>: Remove.
10284
10285 2020-05-08 Tom Tromey <tom@tromey.com>
10286
10287 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10288 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10289 (enable_break): Update.
10290 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10291 (frv_fdpic_find_canonical_descriptor): Update.
10292 (frv_fetch_objfile_link_map): Update.
10293 * progspace.c (program_space::free_all_objfiles): Update.
10294 (program_space::solibs): New method.
10295 * progspace.h (struct program_space) <solibs>: New method.
10296 * solist.h (master_so_list): Don't declare.
10297 (ALL_SO_LIBS): Remove.
10298 * solib.h (so_list_head): Remove.
10299 (update_solib_list): Update comment.
10300 * solib.c (master_so_list): Remove.
10301 (solib_used, update_solib_list, solib_add)
10302 (info_sharedlibrary_command, clear_solib)
10303 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10304
10305 2020-05-08 Tom Tromey <tom@tromey.com>
10306
10307 * extension.c (extension_languages): Now a std::array.
10308 (ALL_EXTENSION_LANGUAGES): Remove.
10309 (get_ext_lang_defn, get_ext_lang_of_file)
10310 (eval_ext_lang_from_control_command): Update.
10311 (finish_ext_lang_initialization)
10312 (auto_load_ext_lang_scripts_for_objfile)
10313 (ext_lang_type_printers::ext_lang_type_printers)
10314 (apply_ext_lang_type_printers)
10315 (ext_lang_type_printers::~ext_lang_type_printers)
10316 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10317 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10318 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10319 (get_matching_xmethod_workers, ext_lang_colorize)
10320 (ext_lang_before_prompt): Update.
10321 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10322
10323 2020-05-08 Tom Tromey <tom@tromey.com>
10324
10325 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10326 overload.
10327 <swap_string, m_string>: Remove.
10328 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10329 Update.
10330 * stabsread.c (define_symbol, read_type): Update.
10331 * linespec.c (find_linespec_symbols): Update.
10332 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10333 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10334 * dbxread.c (read_dbx_symtab): Update.
10335 * cp-support.h (cp_canonicalize_string_full)
10336 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10337 Return unique_xmalloc_ptr.
10338 * cp-support.c (inspect_type): Update.
10339 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10340 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10341 Likewise.
10342 * c-typeprint.c (print_name_maybe_canonical): Update.
10343 * break-catch-throw.c (check_status_exception_catchpoint):
10344 Update.
10345
10346 2020-05-08 Tom de Vries <tdevries@suse.de>
10347
10348 * infrun.c (follow_fork): Copy current_line and current_symtab to
10349 child thread.
10350
10351 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * async-event.c (struct async_signal_handler, struct
10354 async_event_handler): Reformat, remove typedef.
10355
10356 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10357
10358 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10359 access thistype->main_type->dyn_prop_list directly.
10360
10361 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10364 (remove_dyn_prop): Remove. Update all users to use
10365 type::remove_dyn_prop.
10366 * gdbtypes.c (remove_dyn_prop): Rename to...
10367 (type::remove_dyn_prop): ... this.
10368
10369 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10370
10371 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10372 (add_dyn_prop): Remove. Update all users to use
10373 type::add_dyn_prop.
10374 * gdbtypes.c (add_dyn_prop): Rename to...
10375 (type::add_dyn_prop): ... this.
10376
10377 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10378
10379 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10380 (get_dyn_prop): Remove. Update all users to use
10381 type::dyn_prop.
10382 * gdbtypes.c (get_dyn_prop): Rename to...
10383 (type::dyn_prop): ... this.
10384
10385 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10388
10389 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10390
10391 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10392 instruction, skip it if it's there.
10393
10394 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10397
10398 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10401 * gdbtypes.c (recursive_dump_type): Remove use of
10402 TYPE_INCOMPLETE.
10403
10404 2020-05-03 Tom Tromey <tom@tromey.com>
10405
10406 * breakpoint.c (catch_command, tcatch_command): Remove.
10407 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10408 add_show_prefix_cmd.
10409 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10410 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10411 Remove.
10412 (add_internal_problem_command): Use add_basic_prefix_cmd,
10413 add_show_prefix_cmd.
10414 * mips-tdep.c (set_mipsfpu_command): Remove.
10415 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10416 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10417 (_initialize_index_cache): Use add_basic_prefix_cmd.
10418 * memattr.c (dummy_cmd): Remove.
10419 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10420 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10421 (_initialize_tui_win): Use add_basic_prefix_cmd,
10422 add_show_prefix_cmd.
10423 * cli/cli-logging.c (set_logging_command): Remove.
10424 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10425 add_show_prefix_cmd.
10426 (show_logging_command): Remove.
10427 * target.c (target_command): Remove.
10428 (add_target): Use add_basic_prefix_cmd.
10429
10430 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10431
10432 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10433
10434 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10435
10436 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10437 info_command.
10438
10439 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10440
10441 * nbsd-nat.c (nbsd_enable_proc_events)
10442 (nbsd_nat_target::post_startup_inferior): Add.
10443 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10444 (nbsd_nat_target::update_thread_list): Rewrite.
10445 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10446 "PTRACE_LWP_CREATE".
10447 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10448
10449 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10450
10451 * stack.c (_initialize_stack): Remove duplicated creation
10452 of "frame" command and "f" alias.
10453
10454 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10455
10456 PR gdb/18706
10457 * gdbtypes.c (check_typedef): Calculate size of array of
10458 stubbed type.
10459
10460 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10461
10462 PR gdb/15559
10463 * i386-tdep.c (i386_push_dummy_call): Call
10464 i386_thiscall_push_dummy_call.
10465 (i386_thiscall_push_dummy_call): New function.
10466 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10467 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10468 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10469
10470 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10471
10472 * gdbarch.sh (do_read): Add shellcheck disable directive for
10473 warning SC2162.
10474
10475 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10478 "referenced but not assigned" warning.
10479
10480 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * gdbarch.sh: Remove code that sets fallbackdefault.
10483
10484 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10485
10486 * gdbarch.sh: Use shell operators && and || instead of
10487 -a and -o.
10488
10489 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10490
10491 * gdbarch.sh: Use $(...) instead of `...`.
10492
10493 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10494
10495 * gdbarch.sh: Use double quotes around variables.
10496
10497 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10498
10499 * gdbarch.sh: Use %s with printf, instead of variables in the
10500 format string.
10501
10502 2020-04-29 Tom Tromey <tromey@adacore.com>
10503
10504 PR ada/25875:
10505 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10506 type fields here.
10507 (read_enumeration_type): Call
10508 update_enumeration_type_from_children later. Update comments.
10509 (process_enumeration_scope): Don't create type fields.
10510
10511 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10512
10513 * nbsd-tdep.c: Include "xml-syscall.h".
10514 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10515
10516 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10517
10518 * nbsd-nat.c: Include "sys/wait.h".
10519 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10520 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10521 (nbsd_nat_target::remove_exec_catchpoint)
10522 (nbsd_nat_target::set_syscall_catchpoint): Add.
10523 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10524 (nbsd_nat_target::insert_exec_catchpoint)
10525 (nbsd_nat_target::remove_exec_catchpoint)
10526 (nbsd_nat_target::set_syscall_catchpoint): Add.
10527 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10528 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10529 `nbsd_get_syscall_number'.
10530
10531 2020-04-29 Tom Tromey <tom@tromey.com>
10532
10533 * stack.c (print_block_frame_labels): Remove.
10534
10535 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10536
10537 PR gdb/17320
10538 * ada-valprint.c (val_print_packed_array_elements): Move array
10539 end bracket to new line.
10540 (ada_val_print_string): Remove extra spaces before first array
10541 element.
10542 * c-valprint.c (c_value_print_array): Likewise.
10543 * m2-valprint.c (m2_print_array_contents): Likewise.
10544 (m2_value_print_inner): Likewise.
10545 * p-valprint.c (pascal_value_print_inner): Likewise.
10546 * valprint.c (generic_val_print_array): Likewise.
10547 (value_print_array_elements): Move first array element and array
10548 end bracket to new line.
10549
10550 2020-04-29 Tom de Vries <tdevries@suse.de>
10551
10552 PR symtab/25889
10553 * linespec.c (find_method): Fix ix calculation.
10554
10555 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10556
10557 * syscalls/update-netbsd.sh: New file.
10558 * syscalls/netbsd.xml: Regenerate.
10559 * data-directory/Makefile.in: Register `netbsd.xml' in
10560 `SYSCALLS_FILES'.
10561
10562 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * syscalls/update-freebsd.sh: Add double quotes.
10565
10566 2020-04-28 Tom Tromey <tom@tromey.com>
10567
10568 * NEWS: Update.
10569 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10570 (cmdpy_init): Allow class_tui.
10571
10572 2020-04-28 Mark Williams <mark@myosotissp.com>
10573
10574 PR gdb/24480
10575 * dwarf2read.c: Add missing assingments to list_in_scope when
10576 start_symtab was already called.
10577
10578 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10579
10580 PR gdb/25881
10581 * dwarf2/read.c (offset_map_type): Use
10582 gdb:hash_enum<sect_offset> as hash function.
10583
10584 2020-04-28 Tom de Vries <tdevries@suse.de>
10585
10586 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10587 with DW_AT_signature.
10588
10589 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * configure.ac: Remove check for fs_base/gs_base in
10592 user_regs_struct.
10593 * configure: Re-generate.
10594 * config.in: Re-generate.
10595 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10596 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10597 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10598
10599 2020-04-27 Luis Machado <luis.machado@linaro.org>
10600
10601 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10602 problematic inline frame unwinding situation.
10603 * frame.c (frame_id_computed_p): New function.
10604 * frame.h (frame_id_computed_p): New prototype.
10605
10606 2020-04-26 Tom Tromey <tom@tromey.com>
10607
10608 * command.h (enum command_class) <class_pseudo>: Remove.
10609
10610 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10611
10612 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10613 and whitespace.
10614
10615 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10616
10617 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10618 `PT_GET_PROCESS_STATE' block.
10619
10620 2020-04-24 Tom Tromey <tom@tromey.com>
10621
10622 * symtab.h (symbol_get_demangled_name): Don't declare.
10623 * symtab.c (symbol_get_demangled_name): Remove.
10624 (general_symbol_info::natural_name)
10625 (general_symbol_info::demangled_name): Update.
10626
10627 2020-04-24 Tom Tromey <tom@tromey.com>
10628
10629 PR rust/25025:
10630 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10631
10632 2020-04-24 Tom Tromey <tom@tromey.com>
10633
10634 PR symtab/12707:
10635 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10636 exists.
10637 (new_symbol): Likewise.
10638 * compile/compile-object-load.c (get_out_value_type): Use
10639 symbol_matches_search_name.
10640
10641 2020-04-24 Tom Tromey <tom@tromey.com>
10642
10643 * dwarf2/read.c (add_partial_symbol): Do not call
10644 compute_and_set_names.
10645
10646 2020-04-24 Tom Tromey <tom@tromey.com>
10647
10648 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10649 overload.
10650
10651 2020-04-24 Tom Tromey <tom@tromey.com>
10652
10653 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10654 (add_psymbol_to_list): New overload. Make old overload call new
10655 one.
10656 * psympriv.h (add_psymbol_to_list): New overload.
10657
10658 2020-04-24 Tom Tromey <tom@tromey.com>
10659
10660 * dwarf2/read.c (partial_die_info::read) <case
10661 DW_AT_linkage_name>: Use value_as_string.
10662 (dwarf2_string_attr): Use value_as_string.
10663 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10664 method.
10665 * dwarf2/attribute.c (attribute::value_as_string): New method.
10666
10667 2020-04-24 Tom Tromey <tom@tromey.com>
10668
10669 * symtab.c (general_symbol_info::natural_name)
10670 (general_symbol_info::demangled_name): Check for language_rust.
10671
10672 2020-04-24 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10675 (dwarf2_physname): ... from here.
10676 (partial_die_info::read): Add Rust "{" hack.
10677
10678 2020-04-24 Tom Tromey <tom@tromey.com>
10679
10680 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10681 method.
10682 (symbol_set_demangled_name): Don't declare.
10683 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10684 symbol_set_demangled_name.
10685 (general_symbol_info::set_language)
10686 (general_symbol_info::compute_and_set_names): Update.
10687 * minsyms.c (minimal_symbol_reader::install): Update.
10688 * dwarf2/read.c (new_symbol): Update.
10689
10690 2020-04-24 Tom Tromey <tromey@adacore.com>
10691
10692 PR python/23662:
10693 * python/py-type.c (convert_field): Handle
10694 FIELD_LOC_KIND_DWARF_BLOCK.
10695 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10696 (typy_get_dynamic): Nw function.
10697 (type_object_getset): Add "dynamic".
10698 * NEWS: Add entry.
10699
10700 2020-04-24 Tom Tromey <tromey@adacore.com>
10701
10702 * ada-typeprint.c (print_choices, print_variant_part)
10703 (print_record_field_types_dynamic): New functions.
10704 (print_record_field_types): Use print_record_field_types_dynamic.
10705
10706 2020-04-24 Tom Tromey <tromey@adacore.com>
10707
10708 * dwarf2/read.c (handle_data_member_location): New overload.
10709 (dwarf2_add_field): Use it.
10710 (decode_locdesc): Add "computed" parameter. Update comment.
10711 * gdbtypes.c (is_dynamic_type_internal): Also look for
10712 FIELD_LOC_KIND_DWARF_BLOCK.
10713 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10714 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10715 virtual base classes.
10716 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10717 FIELD_LOC_KIND_DWARF_BLOCK.
10718
10719 2020-04-24 Tom Tromey <tromey@adacore.com>
10720
10721 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10722 * gdbtypes.c (is_dynamic_type_internal): Check
10723 TYPE_HAS_DYNAMIC_LENGTH.
10724 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10725 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10726 New macros.
10727 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10728 constant.
10729
10730 2020-04-24 Tom Tromey <tromey@adacore.com>
10731
10732 * dwarf2/read.c (struct variant_field): Rewrite.
10733 (struct variant_part_builder): New.
10734 (struct nextfield): Remove "variant" field. Add "offset".
10735 (struct field_info): Add "current_variant_part" and
10736 "variant_parts".
10737 (alloc_discriminant_info): Remove.
10738 (alloc_rust_variant): New function.
10739 (quirk_rust_enum): Update.
10740 (dwarf2_add_field): Set "offset" member. Don't handle
10741 DW_TAG_variant_part.
10742 (offset_map_type): New typedef.
10743 (convert_variant_range, create_one_variant)
10744 (create_one_variant_part, create_variant_parts)
10745 (add_variant_property): New functions.
10746 (dwarf2_attach_fields_to_type): Call add_variant_property.
10747 (read_structure_type): Don't handle DW_TAG_variant_part.
10748 (handle_variant_part, handle_variant): New functions.
10749 (handle_struct_member_die): Use them.
10750 (process_structure_scope): Don't handle variant parts.
10751 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10752 (struct discriminant_info): Remove.
10753 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10754 (struct main_type) <flag_discriminated_union>: Remove.
10755 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10756 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10757 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10758 Update.
10759 * valops.c (value_union_variant): Remove.
10760 * value.h (value_union_variant): Don't declare.
10761
10762 2020-04-24 Tom Tromey <tromey@adacore.com>
10763
10764 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10765 (ada_value_primitive_packed_val): Update.
10766 * ada-valprint.c (ada_value_print_1): Update.
10767 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10768 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10769 just an address. Use evaluate_for_locexpr_baton.
10770 (dwarf2_evaluate_property): Update.
10771 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10772 array_view.
10773 * findvar.c (default_read_var_value): Update.
10774 * gdbtypes.c (compute_variant_fields_inner)
10775 (resolve_dynamic_type_internal): Update.
10776 (resolve_dynamic_type): Change type of valaddr parameter.
10777 * gdbtypes.h (resolve_dynamic_type): Update.
10778 * valarith.c (value_subscripted_rvalue): Update.
10779 * value.c (value_from_contents_and_address): Update.
10780
10781 2020-04-24 Tom Tromey <tromey@adacore.com>
10782
10783 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10784 "push_initial_value" parameter.
10785 (dwarf2_evaluate_property): Likewise.
10786 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10787
10788 2020-04-24 Tom Tromey <tromey@adacore.com>
10789
10790 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10791 (variant::matches, compute_variant_fields_recurse)
10792 (compute_variant_fields_inner, compute_variant_fields): New
10793 functions.
10794 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10795 Use resolved_type after type is made.
10796 (operator==): Add new cases.
10797 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10798 (struct discriminant_range, struct variant, struct variant_part):
10799 New.
10800 (union dynamic_prop_data) <variant_parts, original_type>: New
10801 members.
10802 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10803 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10804 constants.
10805 * value.c (unpack_bits_as_long): Now public.
10806 * value.h (unpack_bits_as_long): Declare.
10807
10808 2020-04-24 Tom Tromey <tromey@adacore.com>
10809
10810 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10811 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10812
10813 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10814
10815 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10816
10817 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10818
10819 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10820 (remove_fork_catchpoint, post_startup_inferior)
10821 (post_attach): Move...
10822 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10823 (remove_fork_catchpoint, post_startup_inferior)
10824 (post_attach): ...here.
10825 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10826 (remove_fork_catchpoint, post_startup_inferior)
10827 (post_attach): Move...
10828 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10829 (remove_fork_catchpoint, post_startup_inferior)
10830 (post_attach): ...here.
10831
10832 2020-04-24 Tom Tromey <tromey@adacore.com>
10833
10834 * nat/windows-nat.h (struct windows_thread_info)
10835 <pc_adjusted>: New member.
10836 * windows-nat.c (windows_fetch_one_register): Check
10837 pc_adjusted.
10838 (windows_nat_target::get_windows_debug_event)
10839 (windows_nat_target::wait): Set pc_adjusted.
10840
10841 2020-04-24 Tom de Vries <tdevries@suse.de>
10842
10843 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10844 Run gdb-add-index inside temp dir.
10845
10846 2020-04-23 Tom Tromey <tromey@adacore.com>
10847
10848 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10849 in loop.
10850
10851 2020-04-23 Luis Machado <luis.machado@linaro.org>
10852
10853 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10854 get_frame_register instead of gdbarch_unwind_pc.
10855
10856 2020-04-23 Tom de Vries <tdevries@suse.de>
10857
10858 * symtab.c (lookup_global_symbol): Prefer def over decl.
10859
10860 2020-04-23 Tom de Vries <tdevries@suse.de>
10861
10862 PR symtab/25807
10863 * block.c (best_symbol, better_symbol): Promote to external.
10864 * block.h (best_symbol, better_symbol): Declare.
10865 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10866 decl.
10867
10868 2020-04-23 Tom Tromey <tromey@adacore.com>
10869
10870 PR ada/25837:
10871 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10872 "const char *", not a "const std::string &".
10873 <name_and_matcher::operator==>: Update.
10874 * unittests/lookup_name_info-selftests.c: Change type of
10875 "result".
10876
10877 2020-04-23 Tom Tromey <tom@tromey.com>
10878
10879 * inferior.h (iterate_over_inferiors): Don't declare.
10880 * inferior.c (iterate_over_inferiors): Remove.
10881 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10882 Remove.
10883 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10884 use iterate_over_inferiors.
10885 (darwin_resume_inferior_it)
10886 (struct resume_inferior_threads_param)
10887 (darwin_resume_inferior_threads_it): Remove.
10888 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10889
10890 2020-04-23 Tom de Vries <tdevries@suse.de>
10891
10892 * blockframe.c (find_pc_partial_function): Use
10893 find_pc_sect_compunit_symtab rather than
10894 objfile->sf->qf->find_pc_sect_compunit_symtab.
10895
10896 2020-04-22 Tom de Vries <tdevries@suse.de>
10897
10898 PR symtab/25764
10899 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10900 in psymtabs.
10901
10902 2020-04-22 Tom de Vries <tdevries@suse.de>
10903
10904 PR symtab/25801
10905 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10906 symtabs.
10907
10908 2020-04-22 Tom de Vries <tdevries@suse.de>
10909
10910 PR symtab/25700
10911 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10912 CU if already created.
10913
10914 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10915
10916 * infrun.c (displaced_step_fixup): Switch to the event_thread
10917 before calling displaced_step_restore, not after.
10918
10919 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10920
10921 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10922 its inferior is not recorded by us.
10923 (record_btrace_target_open): Replace call to
10924 all_non_exited_threads () with call to current_inferior
10925 ()->non_exited_threads ().
10926 (record_btrace_target::stop_recording): Likewise.
10927 (record_btrace_target::close): Likewise.
10928 (record_btrace_target::wait): Likewise.
10929 (record_btrace_target::record_stop_replaying): Likewise.
10930
10931 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10932
10933 * btrace.c (btrace_enable): Throw an error on double enables and
10934 when enabling recording fails.
10935 (btrace_disable): Throw an error if the thread is not recorded.
10936
10937 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10938
10939 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10940 request if we do not have a thread_info.
10941
10942 2020-04-21 Tom de Vries <tdevries@suse.de>
10943
10944 PR gdb/25471
10945 * thread.c
10946 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10947 exception in get_frame_id.
10948
10949 2020-04-20 Tom Tromey <tromey@adacore.com>
10950
10951 * python/python.c (struct gdbpy_event): Mark move constructor as
10952 noexcept.
10953 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10954 constructor as noexcept.
10955 * completer.h (struct completion_result): Mark move constructor as
10956 noexcept.
10957 * completer.c (completion_result::completion_result): Use
10958 initialization style. Don't call reset_match_list.
10959
10960 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10961
10962 * MAINTAINERS (Write After Approval): Add myself.
10963
10964 2020-04-18 Tom Tromey <tom@tromey.com>
10965
10966 * windows-tdep.c (init_w32_command_list)
10967 (w32_prefix_command_valid): Restore.
10968 (_initialize_windows_tdep): Call init_w32_command_list.
10969
10970 2020-04-18 Tom Tromey <tom@tromey.com>
10971
10972 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10973 * value.c (value_fn_field): Update.
10974 * valops.c (find_function_in_inferior)
10975 (value_allocate_space_in_inferior): Update.
10976 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10977 Update.
10978 * tui/tui-source.c (tui_source_window::set_contents): Update.
10979 * symtab.c (lookup_global_or_static_symbol)
10980 (find_function_start_sal_1, skip_prologue_sal)
10981 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10982 * symmisc.c (dump_msymbols, dump_symtab_1)
10983 (maintenance_print_one_line_table): Update.
10984 * symfile.c (init_entry_point_info, section_is_mapped)
10985 (list_overlays_command, simple_read_overlay_table)
10986 (simple_overlay_update_1): Update.
10987 * stap-probe.c (handle_stap_probe): Update.
10988 * stabsread.c (dbx_init_float_type, define_symbol)
10989 (read_one_struct_field, read_enum_type, read_range_type): Update.
10990 * source.c (info_line_command): Update.
10991 * python/python.c (gdbpy_source_objfile_script)
10992 (gdbpy_execute_objfile_script): Update.
10993 * python/py-type.c (save_objfile_types): Update.
10994 * python/py-objfile.c (py_free_objfile): Update.
10995 * python/py-inferior.c (python_new_objfile): Update.
10996 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10997 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10998 (maintenance_check_psymtabs): Update.
10999 * printcmd.c (info_address_command): Update.
11000 * objfiles.h (struct objfile) <arch>: New method, from
11001 get_objfile_arch.
11002 (get_objfile_arch): Don't declare.
11003 * objfiles.c (get_objfile_arch): Remove.
11004 (filter_overlapping_sections): Update.
11005 * minsyms.c (msymbol_is_function): Update.
11006 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11007 (output_nondebug_symbol): Update.
11008 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11009 (mdebug_expand_psymtab): Update.
11010 * machoread.c (macho_add_oso_symfile): Update.
11011 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11012 Update.
11013 * linux-fork.c (checkpoint_command): Update.
11014 * linespec.c (convert_linespec_to_sals): Update.
11015 * jit.c (finalize_symtab): Update.
11016 * infrun.c (insert_exception_resume_from_probe): Update.
11017 * ia64-tdep.c (ia64_find_unwind_table): Update.
11018 * hppa-tdep.c (internalize_unwinds): Update.
11019 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11020 Update.
11021 * gcore.c (call_target_sbrk): Update.
11022 * elfread.c (record_minimal_symbol, elf_symtab_read)
11023 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11024 (elf_gnu_ifunc_resolve_by_got): Update.
11025 * dwarf2/read.c (create_addrmap_from_index)
11026 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11027 (read_debug_names_from_section)
11028 (process_psymtab_comp_unit_reader, add_partial_symbol)
11029 (add_partial_subprogram, process_full_comp_unit)
11030 (read_file_scope, read_func_scope, read_lexical_block_scope)
11031 (read_call_site_scope, dwarf2_ranges_read)
11032 (dwarf2_record_block_ranges, dwarf2_add_field)
11033 (mark_common_block_symbol_computed, read_tag_pointer_type)
11034 (read_tag_string_type, dwarf2_init_float_type)
11035 (dwarf2_init_complex_target_type, read_base_type)
11036 (partial_die_info::read, partial_die_info::read)
11037 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11038 (dwarf2_fetch_die_loc_sect_off): Update.
11039 * dwarf2/loc.c (dwarf2_find_location_expression)
11040 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11041 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11042 (dwarf2_loc_desc_get_symbol_read_needs)
11043 (locexpr_describe_location_piece, locexpr_describe_location_1)
11044 (loclist_describe_location): Update.
11045 * dwarf2/index-write.c (write_debug_names): Update.
11046 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11047 * dtrace-probe.c (dtrace_process_dof): Update.
11048 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11049 (process_one_symbol): Update.
11050 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11051 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11052 (coff_read_enum_type): Update.
11053 * cli/cli-cmds.c (edit_command, list_command): Update.
11054 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11055 * breakpoint.c (create_overlay_event_breakpoint)
11056 (create_longjmp_master_breakpoint)
11057 (create_std_terminate_master_breakpoint)
11058 (create_exception_master_breakpoint, get_sal_arch): Update.
11059 * block.c (block_gdbarch): Update.
11060 * annotate.c (annotate_source_line): Update.
11061
11062 2020-04-17 Tom Tromey <tromey@adacore.com>
11063
11064 * auto-load.c (show_auto_load_cmd): Remove.
11065 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11066 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11067 (maintenance_print_arc_command): Remove.
11068 * tui/tui-win.c (tui_command): Remove.
11069 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11070 * tui/tui-layout.c (tui_layout_command): Remove.
11071 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11072 * python/python.c (user_set_python, user_show_python): Remove.
11073 (_initialize_python): Use add_basic_prefix_cmd,
11074 add_show_prefix_cmd.
11075 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11076 (install_gdb_commands): Use add_basic_prefix_cmd,
11077 add_show_prefix_cmd.
11078 (info_guile_command): Remove.
11079 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11080 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11081 add_show_prefix_cmd.
11082 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11083 Remove do_set and do_show parameters.
11084 * cli/cli-style.c (set_style, show_style): Remove.
11085 (_initialize_cli_style): Use add_basic_prefix_cmd,
11086 add_show_prefix_cmd.
11087 (cli_style_option::add_setshow_commands): Remove do_set and
11088 do_show parameters.
11089 (cli_style_option::add_setshow_commands): Use
11090 add_basic_prefix_cmd, add_show_prefix_cmd.
11091 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11092 (set_style_name): Remove.
11093 * cli/cli-dump.c (dump_command, append_command): Remove.
11094 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11095 (tekhex_dump_command, binary_dump_command)
11096 (binary_append_command): Remove.
11097 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11098 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11099 (init_w32_command_list): Remove; move into ...
11100 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11101 * valprint.c (set_print, show_print, set_print_raw)
11102 (show_print_raw): Remove.
11103 (_initialize_valprint): Use add_basic_prefix_cmd,
11104 add_show_prefix_cmd.
11105 * typeprint.c (set_print_type, show_print_type): Remove.
11106 (_initialize_typeprint): Use add_basic_prefix_cmd,
11107 add_show_prefix_cmd.
11108 * record.c (set_record_command, show_record_command): Remove.
11109 (_initialize_record): Use add_basic_prefix_cmd,
11110 add_show_prefix_cmd.
11111 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11112 add_show_prefix_cmd.
11113 (info_command, show_command, set_debug, show_debug): Remove.
11114 * top.h (set_history, show_history): Don't declare.
11115 * top.c (set_history, show_history): Remove.
11116 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11117 (unset_tdesc_cmd): Remove.
11118 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 * symtab.c (info_module_command): Remove.
11121 (_initialize_symtab): Use add_basic_prefix_cmd.
11122 * symfile.c (overlay_command): Remove.
11123 (_initialize_symfile): Use add_basic_prefix_cmd.
11124 * sparc64-tdep.c (info_adi_command): Remove.
11125 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11126 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11127 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11130 (_initialize_serial): Use add_basic_prefix_cmd,
11131 add_show_prefix_cmd.
11132 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11133 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11134 add_show_prefix_cmd.
11135 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11136 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11137 add_show_prefix_cmd.
11138 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11139 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11140 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11141 add_show_prefix_cmd.
11142 * remote.c (remote_command, set_remote_cmd): Remove.
11143 (_initialize_remote): Use add_basic_prefix_cmd.
11144 * record-full.c (set_record_full_command)
11145 (show_record_full_command): Remove.
11146 (_initialize_record_full): Use add_basic_prefix_cmd,
11147 add_show_prefix_cmd.
11148 * record-btrace.c (cmd_set_record_btrace)
11149 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11150 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11151 (cmd_show_record_btrace_pt): Remove.
11152 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11153 add_show_prefix_cmd.
11154 * ravenscar-thread.c (set_ravenscar_command)
11155 (show_ravenscar_command): Remove.
11156 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11157 add_show_prefix_cmd.
11158 * mips-tdep.c (show_mips_command, set_mips_command)
11159 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11160 add_show_prefix_cmd.
11161 * maint.c (maintenance_command, maintenance_info_command)
11162 (maintenance_check_command, maintenance_print_command)
11163 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11164 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11165 add_show_prefix_cmd.
11166 (show_per_command_cmd): Remove.
11167 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11168 Remove.
11169 (maintenance_show_test_settings_cmd): Remove.
11170 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11171 add_show_prefix_cmd.
11172 * maint-test-options.c (maintenance_test_options_command):
11173 Remove.
11174 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11175 * macrocmd.c (macro_command): Remove
11176 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11177 * language.c (set_check, show_check): Remove.
11178 (_initialize_language): Use add_basic_prefix_cmd,
11179 add_show_prefix_cmd.
11180 * infcmd.c (unset_command): Remove.
11181 (_initialize_infcmd): Use add_basic_prefix_cmd.
11182 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11183 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11184 add_show_prefix_cmd.
11185 * go32-nat.c (go32_info_dos_command): Remove.
11186 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11187 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11188 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11189 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11190 (_initialize_frame): Use add_basic_prefix_cmd,
11191 add_show_prefix_cmd.
11192 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11193 (_initialize_dcache): Use add_basic_prefix_cmd,
11194 add_show_prefix_cmd.
11195 * cp-support.c (maint_cplus_command): Remove.
11196 (_initialize_cp_support): Use add_basic_prefix_cmd.
11197 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11198 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11199 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11200 add_basic_prefix_cmd, add_show_prefix_cmd.
11201 * breakpoint.c (save_command): Remove.
11202 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11203 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11204 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11205 add_show_prefix_cmd.
11206 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11207 (set_ada_command, show_ada_command): Remove.
11208 (_initialize_ada_language): Use add_basic_prefix_cmd,
11209 add_show_prefix_cmd.
11210 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11211
11212 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11213
11214 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11215 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11216
11217 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11218
11219 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11220 warning messages.
11221
11222 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11223
11224 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11225 import table is not at beginning of .idata section.
11226
11227 2020-04-16 Pedro Alves <palves@redhat.com>
11228
11229 * inferior.c (delete_inferior): Use delete operator directly
11230 instead of delete_program_space.
11231 * progspace.c (add_program_space): New, factored out from
11232 program_space::program_space.
11233 (remove_program_space): New, factored out from
11234 delete_program_space.
11235 (program_space::program_space): Remove intro comment. Rewrite.
11236 (program_space::~program_space): Remove intro comment. Call
11237 remove_program_space.
11238 (delete_program_space): Delete.
11239 * progspace.h (program_space::program_space): Make explicit. Move
11240 intro comment here, adjusted.
11241 (program_space::~program_space): Move intro comment here,
11242 adjusted.
11243 (delete_program_space): Remove.
11244
11245 2020-04-16 Tom Tromey <tromey@adacore.com>
11246
11247 * windows-nat.c (windows_nat::handle_access_violation): New
11248 function.
11249 * nat/windows-nat.h (handle_access_violation): Declare.
11250 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11251 windows-nat.c. Call handle_access_violation.
11252
11253 2020-04-16 Tom de Vries <tdevries@suse.de>
11254
11255 PR symtab/25791
11256 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11257 CUs without psymtab.
11258
11259 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11260
11261 * python/python.c (do_start_initialization): Don't call
11262 PyEval_InitThreads for Python 3.9 and beyond.
11263
11264 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11265
11266 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11267 thread functions.
11268 (obsd_nat_target::wait): Likewise.
11269
11270 2020-04-15 Tom Tromey <tromey@adacore.com>
11271
11272 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11273 (DEBUG_EXCEPT): Use debug_printf.
11274
11275 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11276
11277 * completer.c (class completion_tracker::completion_hash_entry)
11278 <hash_name>: New member function.
11279 (completion_tracker::discard_completions): New callback to hash a
11280 completion_hash_entry, pass this to htab_create_alloc.
11281
11282 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11283
11284 * windows-nat.c (windows_make_so): Warn rather than stopping with
11285 an error if realpath() fails.
11286
11287 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11288
11289 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11290 (nbsd_nat_target::info_proc): Add do_status.
11291
11292 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11293 Tom de Vries <tdevries@suse.de>
11294
11295 PR symtab/25718
11296 * psympriv.h (struct partial_symtab::read_symtab)
11297 (struct partial_symtab::expand_psymtab)
11298 (struct partial_symtab::read_dependencies): Update comments.
11299 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11300 read_symtab for includer.
11301 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11302 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11303 (struct dwarf2_include_psymtab::m_readin): Remove.
11304 (struct dwarf2_include_psymtab::includer): New member function.
11305 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11306
11307 2020-04-14 Tom de Vries <tdevries@suse.de>
11308
11309 PR symtab/25720
11310 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11311 with NULL symbol_matcher and lookup_name.
11312 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11313 and lookup_name.
11314 * dwarf2/read.c (dw2_expand_symtabs_matching)
11315 (dw2_debug_names_expand_symtabs_matching): Same.
11316 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11317 Make lookup_name a pointer. Update comment.
11318 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11319 lookup_name being a pointer.
11320 * symfile.c (expand_symtabs_matching): Same.
11321 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11322 * linespec.c (iterate_over_all_matching_symtabs): Same.
11323
11324 2020-04-13 Tom Tromey <tom@tromey.com>
11325
11326 * run-on-main-thread.c: Update include.
11327 * unittests/main-thread-selftests.c: Update include.
11328 * tui/tui-win.c: Update include.
11329 * tui/tui-io.c: Update include.
11330 * tui/tui-interp.c: Update include.
11331 * tui/tui-hooks.c: Update include.
11332 * top.h: Update include.
11333 * top.c: Update include.
11334 * ser-base.c: Update include.
11335 * remote.c: Update include.
11336 * remote-notif.c: Update include.
11337 * remote-fileio.c: Update include.
11338 * record-full.c: Update include.
11339 * record-btrace.c: Update include.
11340 * python/python.c: Update include.
11341 * posix-hdep.c: Update include.
11342 * mingw-hdep.c: Update include.
11343 * mi/mi-main.c: Update include.
11344 * mi/mi-interp.c: Update include.
11345 * main.c: Update include.
11346 * linux-nat.c: Update include.
11347 * interps.c: Update include.
11348 * infrun.c: Update include.
11349 * inf-loop.c: Update include.
11350 * event-top.c: Update include.
11351 * event-loop.c: Move to ../gdbsupport/.
11352 * event-loop.h: Move to ../gdbsupport/.
11353 * async-event.h: Update include.
11354 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11355
11356 2020-04-13 Tom Tromey <tom@tromey.com>
11357
11358 * tui/tui-win.c: Include async-event.h.
11359 * remote.c: Include async-event.h.
11360 * remote-notif.c: Include async-event.h.
11361 * record-full.c: Include async-event.h.
11362 * record-btrace.c: Include async-event.h.
11363 * infrun.c: Include async-event.h.
11364 * event-top.c: Include async-event.h.
11365 * event-loop.h: Move some declarations to async-event.h.
11366 * event-loop.c: Don't include ser-event.h or top.h. Move some
11367 code to async-event.c.
11368 * async-event.h: New file.
11369 * async-event.c: New file.
11370 * Makefile.in (COMMON_SFILES): Add async-event.c.
11371 (HFILES_NO_SRCDIR): Add async-event.h.
11372
11373 2020-04-13 Tom Tromey <tom@tromey.com>
11374
11375 * utils.c (flush_streams): New function.
11376 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11377
11378 2020-04-13 Tom Tromey <tom@tromey.com>
11379
11380 * event-loop.c (handle_file_event): Use warning, not
11381 printf_unfiltered.
11382
11383 2020-04-13 Tom Tromey <tom@tromey.com>
11384
11385 * event-loop.c: Include <chrono>.
11386
11387 2020-04-13 Tom Tromey <tom@tromey.com>
11388
11389 * gdb_select.h: Move to ../gdbsupport/.
11390 * event-loop.c: Update include path.
11391 * top.c: Update include path.
11392 * ser-base.c: Update include path.
11393 * ui-file.c: Update include path.
11394 * ser-tcp.c: Update include path.
11395 * guile/scm-ports.c: Update include path.
11396 * posix-hdep.c: Update include path.
11397 * ser-unix.c: Update include path.
11398 * gdb_usleep.c: Update include path.
11399 * mingw-hdep.c: Update include path.
11400 * inflow.c: Update include path.
11401 * infrun.c: Update include path.
11402 * event-top.c: Update include path.
11403
11404 2020-04-13 Tom Tromey <tom@tromey.com>
11405
11406 * configure: Rebuild.
11407 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11408
11409 2020-04-13 Tom Tromey <tom@tromey.com>
11410
11411 * event-loop.h (start_event_loop): Don't declare.
11412 * event-loop.c (start_event_loop): Move...
11413 * main.c (start_event_loop): ...here. Now static.
11414
11415 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11416
11417 * MAINTAINERS: Update my email address.
11418
11419 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11420
11421 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11422 IP_ALL.
11423
11424 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11425
11426 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11427 (nbsd_nat_target::info_proc): Add do_cmdline.
11428
11429 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11430
11431 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11432 (nbsd_nat_target::info_proc): Add do_cwd.
11433
11434 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11435
11436 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11437
11438 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11439
11440 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11441 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11442 (nbsd_nat_target::info_proc): New functions.
11443 * nbsd-nat.c (kinfo_get_vmmap): New function.
11444 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11445 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11446 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11447 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11448 functions.
11449 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11450 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11451 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11452 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11453 (KINFO_VME_FLAG_GROWS_DOWN): New.
11454
11455 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11456
11457 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11458 bit shift.
11459
11460 2020-04-10 Tom Tromey <tromey@adacore.com>
11461
11462 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11463
11464 2020-04-10 Tom Tromey <tromey@adacore.com>
11465
11466 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11467 separate debug files.
11468
11469 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11470
11471 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11472 Move to...
11473 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11474 ... here.
11475 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11476 Check for STATUS_WX86_BREAKPOINT.
11477 (windows_nat_target::wait): Same.
11478
11479 2020-04-10 Tom de Vries <tdevries@suse.de>
11480
11481 PR cli/25808
11482 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11483
11484 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11485
11486 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11487 (Write After Approval): Remove Tom de Vries.
11488
11489 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11490
11491 revert partially:
11492 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11493
11494 * buildsym.c (record_line): Fix undefined behavior and preserve
11495 lines at eof.
11496
11497 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11498
11499 * auxv.h (svr4_auxv_parse): New.
11500 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11501 and generic_auxv_parse.
11502 (svr4_auxv_parse): Add.
11503 * obsd-tdep.c: Include "auxv.h".
11504 (obsd_auxv_parse): Remove.
11505 (obsd_init_abi): Remove comment.
11506 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11507 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11508 * nbsd-tdep.c: Include "auxv.h".
11509 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11510
11511 2020-04-08 Tom Tromey <tromey@adacore.com>
11512
11513 * nat/windows-nat.h (last_wait_event): Don't declare.
11514 (wait_for_debug_event): Update comment.
11515 * nat/windows-nat.c (last_wait_event): Now static.
11516
11517 2020-04-08 Tom Tromey <tromey@adacore.com>
11518
11519 * windows-nat.c (wait_for_debug_event): Move to
11520 nat/windows-nat.c.
11521 * nat/windows-nat.h (wait_for_debug_event): Declare.
11522 * nat/windows-nat.c (wait_for_debug_event): Move from
11523 windows-nat.c. No longer static.
11524
11525 2020-04-08 Tom Tromey <tromey@adacore.com>
11526
11527 * windows-nat.c (get_windows_debug_event): Use
11528 fetch_pending_stop.
11529 * nat/windows-nat.h (fetch_pending_stop): Declare.
11530 * nat/windows-nat.c (fetch_pending_stop): New function.
11531
11532 2020-04-08 Tom Tromey <tromey@adacore.com>
11533
11534 * windows-nat.c (windows_continue): Use matching_pending_stop and
11535 continue_last_debug_event.
11536 * nat/windows-nat.h (matching_pending_stop)
11537 (continue_last_debug_event): Declare.
11538 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11539 (matching_pending_stop, continue_last_debug_event): New
11540 functions.
11541
11542 2020-04-08 Tom Tromey <tromey@adacore.com>
11543
11544 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11545 (handle_exception_result): Move to nat/windows-nat.h.
11546 (DEBUG_EXCEPTION_SIMPLE): Remove.
11547 (windows_nat::handle_ms_vc_exception): New function.
11548 (handle_exception): Move to nat/windows-nat.c.
11549 (get_windows_debug_event): Update.
11550 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11551 nat/windows-nat.c.
11552 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11553 (handle_exception_result): Move from windows-nat.c.
11554 (handle_exception): Declare.
11555 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11556 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11557 windows-nat.c.
11558
11559 2020-04-08 Tom Tromey <tromey@adacore.com>
11560
11561 * windows-nat.c (exception_count, event_count): Remove.
11562 (handle_exception, get_windows_debug_event)
11563 (do_initial_windows_stuff): Update.
11564
11565 2020-04-08 Tom Tromey <tromey@adacore.com>
11566
11567 * windows-nat.c (windows_nat::handle_load_dll)
11568 (windows_nat::handle_unload_dll): Rename. No longer static.
11569 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11570 Declare.
11571
11572 2020-04-08 Tom Tromey <tromey@adacore.com>
11573
11574 * complaints.h (stop_whining): Declare at top-level.
11575 (complaint): Don't declare stop_whining.
11576
11577 2020-04-08 Tom Tromey <tromey@adacore.com>
11578
11579 * windows-nat.c (windows_nat::handle_output_debug_string):
11580 Rename. No longer static.
11581 * nat/windows-nat.h (handle_output_debug_string): Declare.
11582
11583 2020-04-08 Tom Tromey <tromey@adacore.com>
11584
11585 * windows-nat.c (current_process_handle, current_process_id)
11586 (main_thread_id, last_sig, current_event, last_wait_event)
11587 (current_windows_thread, desired_stop_thread_id, pending_stops)
11588 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11589 (display_selectors, fake_create_process)
11590 (get_windows_debug_event): Update.
11591 * nat/windows-nat.h (current_process_handle, current_process_id)
11592 (main_thread_id, last_sig, current_event, last_wait_event)
11593 (current_windows_thread, desired_stop_thread_id, pending_stops)
11594 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11595 * nat/windows-nat.c (current_process_handle, current_process_id)
11596 (main_thread_id, last_sig, current_event, last_wait_event)
11597 (current_windows_thread, desired_stop_thread_id, pending_stops)
11598 (siginfo_er): New globals. Move from windows-nat.c.
11599
11600 2020-04-08 Tom Tromey <tromey@adacore.com>
11601
11602 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11603 (handle_load_dll): Update.
11604 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11605
11606 2020-04-08 Tom Tromey <tromey@adacore.com>
11607
11608 * windows-nat.c (enum thread_disposition_type): Move to
11609 nat/windows-nat.h.
11610 (windows_nat::thread_rec): Rename from thread_rec. No longer
11611 static.
11612 (windows_add_thread, windows_nat_target::fetch_registers)
11613 (windows_nat_target::store_registers, handle_exception)
11614 (windows_nat_target::resume, get_windows_debug_event)
11615 (windows_nat_target::get_tib_address)
11616 (windows_nat_target::thread_name)
11617 (windows_nat_target::thread_alive): Update.
11618 * nat/windows-nat.h (enum thread_disposition_type): Move from
11619 windows-nat.c.
11620 (thread_rec): Declare.
11621
11622 2020-04-08 Tom Tromey <tromey@adacore.com>
11623
11624 * windows-nat.c: Add "using namespace".
11625 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11626 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11627
11628 2020-04-08 Tom Tromey <tromey@adacore.com>
11629
11630 * nat/windows-nat.h (struct windows_thread_info): Declare
11631 destructor.
11632 * nat/windows-nat.c (~windows_thread_info): New.
11633
11634 2020-04-08 Tom Tromey <tromey@adacore.com>
11635
11636 PR gdb/22992
11637 * windows-nat.c (current_event): Update comment.
11638 (last_wait_event, desired_stop_thread_id): New globals.
11639 (struct pending_stop): New.
11640 (pending_stops): New global.
11641 (windows_nat_target) <stopped_by_sw_breakpoint>
11642 <supports_stopped_by_sw_breakpoint>: New methods.
11643 (windows_fetch_one_register): Add assertions. Adjust PC.
11644 (windows_continue): Handle pending stops. Suspend other threads
11645 when stepping. Use last_wait_event
11646 (wait_for_debug_event): New function.
11647 (get_windows_debug_event): Use wait_for_debug_event. Handle
11648 pending stops. Queue spurious stops.
11649 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11650 (windows_nat_target::kill): Use wait_for_debug_event.
11651 * nat/windows-nat.h (struct windows_thread_info)
11652 <stopped_at_software_breakpoint>: New field.
11653 * nat/windows-nat.c (windows_thread_info::resume): Clear
11654 stopped_at_software_breakpoint.
11655
11656 2020-04-08 Tom Tromey <tromey@adacore.com>
11657
11658 * windows-nat.c (enum thread_disposition_type): New.
11659 (thread_rec): Replace "get_context" parameter with "disposition";
11660 change type.
11661 (windows_add_thread, windows_nat_target::fetch_registers)
11662 (windows_nat_target::store_registers, handle_exception)
11663 (windows_nat_target::resume, get_windows_debug_event)
11664 (windows_nat_target::get_tib_address)
11665 (windows_nat_target::thread_name)
11666 (windows_nat_target::thread_alive): Update.
11667
11668 2020-04-08 Tom Tromey <tromey@adacore.com>
11669
11670 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11671 (windows_continue): Use windows_continue::resume.
11672 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11673 resume>: Declare new methods.
11674 * nat/windows-nat.c: New file.
11675 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11676
11677 2020-04-08 Tom Tromey <tromey@adacore.com>
11678
11679 * windows-nat.c (windows_add_thread, windows_delete_thread)
11680 (windows_nat_target::fetch_registers)
11681 (windows_nat_target::store_registers, fake_create_process)
11682 (windows_nat_target::resume, windows_nat_target::resume)
11683 (get_windows_debug_event, windows_nat_target::wait)
11684 (windows_nat_target::pid_to_str)
11685 (windows_nat_target::get_tib_address)
11686 (windows_nat_target::get_ada_task_ptid)
11687 (windows_nat_target::thread_name)
11688 (windows_nat_target::thread_alive): Use lwp, not tid.
11689
11690 2020-04-08 Tom Tromey <tromey@adacore.com>
11691
11692 * windows-nat.c (handle_exception)
11693 (windows_nat_target::thread_name): Update.
11694 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11695 <name>: Now unique_xmalloc_ptr.
11696
11697 2020-04-08 Tom Tromey <tromey@adacore.com>
11698
11699 * windows-nat.c (thread_rec)
11700 (windows_nat_target::fetch_registers): Update.
11701 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11702 Update comment.
11703 <debug_registers_changed, reload_context>: Now bool.
11704
11705 2020-04-08 Tom Tromey <tromey@adacore.com>
11706
11707 * windows-nat.c (windows_add_thread): Use new.
11708 (windows_init_thread_list, windows_delete_thread): Use delete.
11709 (get_windows_debug_event): Update.
11710 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11711 destructor, and initializers.
11712
11713 2020-04-08 Tom Tromey <tromey@adacore.com>
11714
11715 * windows-nat.c (struct windows_thread_info): Remove.
11716 * nat/windows-nat.h: New file.
11717
11718 2020-04-08 Tom Tromey <tromey@adacore.com>
11719
11720 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11721 (thread_rec, windows_add_thread, windows_delete_thread)
11722 (windows_continue): Update.
11723
11724 2020-04-08 Tom Tromey <tromey@adacore.com>
11725
11726 * windows-nat.c (struct windows_thread_info): Remove typedef.
11727 (thread_head): Remove.
11728 (thread_list): New global.
11729 (thread_rec, windows_add_thread, windows_init_thread_list)
11730 (windows_delete_thread, windows_continue): Update.
11731
11732 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * windows-tdep.h (windows_init_abi): Add comment.
11735 (cygwin_init_abi): New declaration.
11736 * windows-tdep.c: Split signal enumeration in two, one for
11737 Windows and one for Cygwin.
11738 (windows_gdb_signal_to_target): Only deal with signal of the
11739 Windows OS ABI.
11740 (cygwin_gdb_signal_to_target): New function.
11741 (windows_init_abi): Rename to windows_init_abi_common, don't set
11742 gdb_signal_to_target gdbarch method. Add new new function with
11743 this name.
11744 (cygwin_init_abi): New function.
11745 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11746 comment. Don't call windows_init_abi.
11747 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11748 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11749 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11750 i386_windows_init_abi_common, don't call windows_init_abi. Add
11751 a new function of this name.
11752 (i386_cygwin_init_abi): New function.
11753 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11754 OS ABI Cygwin.
11755
11756 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11757
11758 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11759 parameter.c.
11760 (dwarf2_read_gdb_index): Update.
11761
11762 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11763
11764 * nbsd-tdep.c: Include "objfiles.h".
11765 (nbsd_skip_solib_resolver): New.
11766 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11767
11768 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11769
11770 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11771 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11772 with DW_LLE_base_addressx are being emitted in DWARFv5.
11773 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11774 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11775 unsigned integer.
11776
11777 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11778
11779 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11780 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11781 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11782 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11783 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11784 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11785 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11786
11787
11788 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11789
11790 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11791 (read_loclist_index): New function definition.
11792 (lookup_loclist_base): New function definition.
11793 (read_loclist_header): New function definition.
11794 (dwarf2_cu): Add loclist_base and loclist_header field.
11795 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11796 (read_full_die_1): Read the value of DW_AT_loclists_base.
11797 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11798 (read_attribute_value): Handle DW_FORM_loclistx.
11799 (skip_one_die): Handle DW_FORM_loclistx.
11800 (loclist_header): New structure declaration.
11801 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11802
11803 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11804
11805 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11806 constructor. Remove `addr` parameter from other constructor and
11807 add `per_cu` parameter.
11808 * dwarf2/read.c (create_partial_symtab): Update.
11809
11810 2020-04-07 Tom de Vries <tdevries@suse.de>
11811
11812 PR symtab/25796
11813 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11814 (partial_die_info::fixup): Inherit has_const_value.
11815
11816 2020-04-07 Tom de Vries <tdevries@suse.de>
11817
11818 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11819 symbols without address.
11820
11821 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11822
11823 * nbsd-nat.h (struct thread_info): Add forward declaration.
11824 (nbsd_nat_target::thread_alive): Add.
11825 (nbsd_nat_target::thread_name): Likewise.
11826 (nbsd_nat_target::update_thread_list): Likewise.
11827 (update_thread_list::post_attach): Likewise.
11828 (post_attach::pid_to_str): Likewise.
11829 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11830 (nbsd_thread_lister): Add.
11831 (nbsd_nat_target::thread_alive): Likewise.
11832 (nbsd_nat_target::thread_name): Likewise.
11833 (nbsd_add_threads): Likewise.
11834 (update_thread_list::post_attach): Likewise.
11835 (nbsd_nat_target::update_thread_list): Likewise.
11836 (post_attach::pid_to_str): Likewise.
11837
11838 2020-04-06 Tom Tromey <tromey@adacore.com>
11839
11840 * ada-valprint.c (print_variant_part): Extract the variant field.
11841 (print_field_values): Use the field as the outer value when
11842 recursing.
11843
11844 2020-04-06 Tom Tromey <tromey@adacore.com>
11845
11846 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11847 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11848 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11849 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11850 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11851
11852 2020-04-06 Tom Tromey <tromey@adacore.com>
11853
11854 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11855 TYPE_CODE_ERROR.
11856
11857 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11858
11859 * nbsd-tdep.c: Include "gdbarch.h".
11860 Define enum with NetBSD signal numbers.
11861 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11862 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11863 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11864 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11865 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11866 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11867 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11868 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11869 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11870 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11871 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11872 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11873
11874 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11875
11876 PR gdb/25325
11877 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11878
11879 2020-04-03 Tom Tromey <tromey@adacore.com>
11880
11881 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11882 Read constant block.
11883
11884 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11885
11886 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11887 (gdb_bfd_get_full_section_contents): New declaration.
11888 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11889 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11890 gdb_bfd_get_full_section_contents.
11891
11892 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11893
11894 * exec.c (build_section_table): Replace internal_error with
11895 gdb_assert.
11896 (section_table_xfer_memory_partial): Likewise.
11897 * mdebugread.c (parse_partial_symbols): Likewise.
11898 * psymtab.c (lookup_partial_symbol): Likewise.
11899 * utils.c (wrap_here): Likewise.
11900
11901 2020-04-02 Tom Tromey <tromey@adacore.com>
11902
11903 * f-lang.c (build_fortran_types): Use arch_type to initialize
11904 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11905
11906 2020-04-02 Tom Tromey <tromey@adacore.com>
11907
11908 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11909 of attributes.
11910
11911 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11912 Bernd Edlinger <bernd.edlinger@hotmail.de>
11913 Tom Tromey <tromey@adacore.com>
11914
11915 * buildsym.c (buildsym_compunit::record_line): Remove
11916 deduplication code.
11917
11918 2020-04-02 Tom de Vries <tdevries@suse.de>
11919
11920 PR ada/24671
11921 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11922
11923 2020-04-02 Tom de Vries <tdevries@suse.de>
11924
11925 * dwarf2/read.c (dwarf2_gdb_index_functions,
11926 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11927 NULL.
11928 * psymtab.c (psym_lookup_global_symbol_language): New function.
11929 (psym_functions): Init psym_lookup_global_symbol_language with
11930 psym_lookup_global_symbol_language.
11931 * symfile-debug.c (debug_sym_quick_functions): Init
11932 lookup_global_symbol_language with NULL.
11933 * symfile.c (set_initial_language): Remove fixme comment.
11934 * symfile.h (struct quick_symbol_functions): Add
11935 lookup_global_symbol_language.
11936 * symtab.c (find_quick_global_symbol_language): New function.
11937 (find_main_name): Use find_quick_global_symbol_language.
11938
11939 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11940
11941 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11942
11943 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11944
11945 * buildsym.c (record_line): Fix undefined behavior and preserve
11946 lines at eof.
11947
11948 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11949
11950 * buildsym.c (record_line): Fix the resizing condition.
11951
11952 2020-04-01 Tom Tromey <tom@tromey.com>
11953
11954 * value.h (value_literal_complex): Add comment.
11955 * valops.c (value_literal_complex): Refer to value.h.
11956
11957 2020-04-01 Tom Tromey <tom@tromey.com>
11958
11959 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11960 (scalar_type): New rule, from typebase.
11961 (typebase): Use scalar_type. Recognize complex types.
11962 (field_name): Handle FLOAT_KEYWORD.
11963 (ident_tokens): Add _Complex and __complex__.
11964
11965 2020-04-01 Tom Tromey <tom@tromey.com>
11966
11967 PR exp/25299:
11968 * valarith.c (promotion_type, complex_binop): New functions.
11969 (scalar_binop): Handle complex numbers. Use promotion_type.
11970 (value_pos, value_neg, value_complement): Handle complex numbers.
11971
11972 2020-04-01 Tom Tromey <tom@tromey.com>
11973
11974 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11975 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11976 (parse_number): Handle complex numbers.
11977
11978 2020-04-01 Tom Tromey <tom@tromey.com>
11979
11980 * c-valprint.c (c_decorations): Change complex suffix to "i".
11981
11982 2020-04-01 Tom Tromey <tom@tromey.com>
11983
11984 * valprint.c (generic_value_print_complex): Use accessors.
11985 * value.h (value_real_part, value_imaginary_part): Declare.
11986 * valops.c (value_real_part, value_imaginary_part): New
11987 functions.
11988 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11989
11990 2020-04-01 Tom Tromey <tom@tromey.com>
11991
11992 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11993 (read_range_type): Update.
11994 * mdebugread.c (basic_type): Update.
11995 * go-lang.c (build_go_types): Use init_complex_type.
11996 * gdbtypes.h (struct main_type) <complex_type>: New member.
11997 (init_complex_type): Update.
11998 (arch_complex_type): Don't declare.
11999 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12000 Make name if none given. Use alloc_type_copy. Look for cached
12001 complex type.
12002 (arch_complex_type): Remove.
12003 (gdbtypes_post_init): Use init_complex_type.
12004 * f-lang.c (build_fortran_types): Use init_complex_type.
12005 * dwarf2/read.c (read_base_type): Update.
12006 * d-lang.c (build_d_types): Use init_complex_type.
12007 * ctfread.c (read_base_type): Update.
12008
12009 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12010
12011 * infrun.c (stop_all_threads): Update assertion, plus when
12012 stopping threads, take into account that we might be trying
12013 to stop an all-stop target.
12014 (stop_waiting): Call 'stop_all_threads' if there exists a
12015 non-stop target.
12016
12017 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12018
12019 * target.h (exists_non_stop_target): New function declaration.
12020 * target.c (exists_non_stop_target): New function.
12021
12022 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12023
12024 PR gdb/24789
12025 * eval.c (is_integral_or_integral_reference): New function.
12026 (evaluate_subexp_standard): Allow integer references in
12027 pointer arithmetic.
12028
12029 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12030
12031 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12032 check for no ptid in the stop reply when the target is non-stop.
12033
12034 2020-04-01 Tom Tromey <tromey@adacore.com>
12035
12036 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12037 "name" parameter to rvalue reference. Initialize m_name_holder.
12038 <lookup_name_info>: New overloads.
12039 <name>: Return gdb::string_view.
12040 <c_str>: New method.
12041 <make_ignore_params>: Update.
12042 <search_name_hash>: Update.
12043 <language_lookup_name>: Return const char *.
12044 <m_name>: Change type.
12045 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12046 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12047 (lookup_name_info::match_any): Update.
12048 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12049 Update.
12050 * minsyms.c (linkage_name_str): Update.
12051 * language.c (default_symbol_name_matcher): Update.
12052 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12053 Update.
12054 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12055 (ada_lookup_name_info::ada_lookup_name_info): Update.
12056 (literal_symbol_name_matcher): Update.
12057
12058 2020-04-01 Tom Tromey <tromey@adacore.com>
12059
12060 * psymtab.c (psymtab_search_name): Remove function.
12061 (psym_lookup_symbol): Create search name and lookup name here.
12062 (lookup_partial_symbol): Remove "name" parameter; add
12063 lookup_name.
12064 (psym_expand_symtabs_for_function): Update.
12065
12066 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12067
12068 PR tui/25597:
12069 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12070
12071 2020-03-31 Tom Tromey <tromey@adacore.com>
12072
12073 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12074 memcpy.
12075
12076 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12077
12078 * features/riscv/32bit-csr.xml: Regenerated.
12079 * features/riscv/64bit-csr.xml: Regenerated.
12080
12081 2020-03-30 Tom Tromey <tromey@adacore.com>
12082
12083 * ada-valprint.c (print_variant_part): Update.
12084 * ada-lang.h (ada_which_variant_applies): Update.
12085 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12086 outer_valaddr parameters; replace with "outer" value parameter.
12087 (to_fixed_variant_branch_type): Update.
12088
12089 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12090
12091 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12092 <list>. Remove inclusion of observable.h.
12093 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12094 (struct arch_lwp_info): New struct.
12095 (class ppc_linux_dreg_interface): New class.
12096 (struct ppc_linux_process_info): New struct.
12097 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12098 <low_new_clone, low_forget_process, low_prepare_to_resume>
12099 <copy_thread_dreg_state, mark_thread_stale>
12100 <mark_debug_registers_changed, register_hw_breakpoint>
12101 <clear_hw_breakpoint, register_wp, clear_wp>
12102 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12103 <num_memory_accesses, get_trigger_type>
12104 <create_watchpoint_request, hwdebug_point_cmp>
12105 <init_arch_lwp_info, get_arch_lwp_info>
12106 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12107 methods.
12108 <struct ptid_hash>: New inner struct.
12109 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12110 members.
12111 (saved_dabr_value, hwdebug_info, max_slots_number)
12112 (struct hw_break_tuple, struct thread_points, ppc_threads)
12113 (have_ptrace_hwdebug_interface)
12114 (hwdebug_find_thread_points_by_tid)
12115 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12116 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12117 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12118 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12119 use m_dreg_interface.
12120 (hwdebug_point_cmp): Change to...
12121 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12122 reference arguments instead of pointers.
12123 (ppc_linux_nat_target::ranged_break_num_registers): Use
12124 m_dreg_interface.
12125 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12126 m_dreg_interface. Call register_hw_breakpoint.
12127 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12128 m_dreg_interface. Call clear_hw_breakpoint.
12129 (get_trigger_type): Change to...
12130 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12131 comment.
12132 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12133 use m_dreg_interface. Call register_hw_breakpoint.
12134 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12135 use m_dreg_interface. Call clear_hw_breakpoint.
12136 (can_use_watchpoint_cond_accel): Change to...
12137 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12138 method. Update comment, use m_dreg_interface and
12139 m_process_info.
12140 (calculate_dvc): Change to...
12141 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12142 m_dreg_interface.
12143 (num_memory_accesses): Change to...
12144 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12145 (check_condition): Change to...
12146 (ppc_linux_nat_target::check_condition): ...this method.
12147 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12148 comment, use m_dreg_interface.
12149 (create_watchpoint_request): Change to...
12150 (ppc_linux_nat_target::create_watchpoint_request): ...this
12151 method. Use m_dreg_interface.
12152 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12153 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12154 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12155 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12156 (ppc_linux_nat_target::low_forget_process)
12157 (ppc_linux_nat_target::low_new_fork)
12158 (ppc_linux_nat_target::low_new_clone)
12159 (ppc_linux_nat_target::low_delete_thread)
12160 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12161 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12162 only call mark_thread_stale.
12163 (ppc_linux_thread_exit): Remove.
12164 (ppc_linux_nat_target::stopped_data_address): Change to...
12165 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12166 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12167 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12168 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12169 comment. Call low_stopped_data_address.
12170 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12171 m_dreg_interface.
12172 (ppc_linux_nat_target::masked_watch_num_registers): Use
12173 m_dreg_interface.
12174 (ppc_linux_nat_target::copy_thread_dreg_state)
12175 (ppc_linux_nat_target::mark_thread_stale)
12176 (ppc_linux_nat_target::mark_debug_registers_changed)
12177 (ppc_linux_nat_target::register_hw_breakpoint)
12178 (ppc_linux_nat_target::clear_hw_breakpoint)
12179 (ppc_linux_nat_target::register_wp)
12180 (ppc_linux_nat_target::clear_wp)
12181 (ppc_linux_nat_target::init_arch_lwp_info)
12182 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12183 (_initialize_ppc_linux_nat): Remove observer callback.
12184
12185 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12186
12187 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12188 (ppc_linux_nat_target::auxv_parse)
12189 (ppc_linux_nat_target::read_description)
12190 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12191 Move up.
12192
12193 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12194
12195 * linux-nat.h (low_new_clone): New method.
12196 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12197
12198 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12199
12200 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12201 (dbx_expand_psymtab): ... this.
12202 (start_psymtab): Update.
12203 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12204 (mdebug_expand_psymtab): ... this.
12205 (parse_partial_symbols): Update.
12206 (new_psymtab): Update.
12207 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12208 (xcoff_expand_psymtab): ... this.
12209 (xcoff_start_psymtab): Update.
12210
12211 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12212
12213 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12214 <expand_dependencies>: ... this.
12215 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12216 (partial_symtab::expand_dependencies): ... this.
12217 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12218 Update.
12219 (dwarf2_psymtab::expand_psymtab): Update.
12220 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12221 * mdebugread.c (psymtab_to_symtab_1): Update.
12222 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12223
12224 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12225
12226 * psympriv.h (discard_psymtab): Remove.
12227 * dbxread.c (dbx_end_psymtab): Update.
12228 * xcoffread.c (xcoff_end_psymtab): Update.
12229
12230 2020-03-28 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12233 comment.
12234
12235 2020-03-28 Tom Tromey <tom@tromey.com>
12236
12237 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12238
12239 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12240
12241 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12242
12243 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12244
12245 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12246
12247 2020-03-26 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12250 (mark_common_block_symbol_computed, read_tag_string_type)
12251 (attr_to_dynamic_prop, read_subrange_type): Update.
12252 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12253 to be methods on struct attribute.
12254 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12255 (read_call_site_scope, partial_die_info::read)
12256 (partial_die_info::read, lookup_die_type, follow_die_ref):
12257 Update.
12258 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12259 from dwarf2_get_ref_die_offset.
12260 (attribute::constant_value): New method, from
12261 dwarf2_get_attr_constant_value.
12262 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12263 Declare method.
12264 <constant_value>: New method.
12265
12266 2020-03-26 Tom Tromey <tom@tromey.com>
12267
12268 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12269 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12270 (dwarf_type_encoding_name): Move to stringify.c.
12271 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12272 * dwarf2/stringify.c: New file.
12273 * dwarf2/stringify.h: New file.
12274
12275 2020-03-26 Tom Tromey <tom@tromey.com>
12276
12277 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12278 Rewrite.
12279
12280 2020-03-26 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12283 methods.
12284 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12285 (lookup_ranges_base): Likewise.
12286 (read_cutu_die_from_dwo, read_full_die_1): Update.
12287
12288 2020-03-26 Tom Tromey <tom@tromey.com>
12289
12290 * dwarf2/read.c (read_import_statement, read_file_scope)
12291 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12292 (read_lexical_block_scope, read_call_site_scope)
12293 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12294 (handle_struct_member_die, process_structure_scope)
12295 (update_enumeration_type_from_children)
12296 (process_enumeration_scope, read_array_type, read_common_block)
12297 (read_namespace, read_module, read_subroutine_type): Update.
12298 (sibling_die): Remove.
12299
12300 2020-03-26 Tom Tromey <tom@tromey.com>
12301
12302 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12303 (build_type_psymtabs_reader, read_structure_type)
12304 (read_enumeration_type, read_full_die_1): Update.
12305 (dwarf2_attr_no_follow): Move to die.h.
12306 * dwarf2/die.h (struct die_info) <attr>: New method.
12307
12308 2020-03-26 Tom Tromey <tom@tromey.com>
12309
12310 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12311 <base_address>: Now an optional.
12312 (dwarf2_find_base_address, dwarf2_rnglists_process)
12313 (dwarf2_ranges_process, fill_in_loclist_baton)
12314 (dwarf2_symbol_mark_computed): Update.
12315
12316 2020-03-26 Tom Tromey <tom@tromey.com>
12317
12318 * dwarf2/read.c (struct die_info): Move to die.h.
12319 * dwarf2/die.h: New file.
12320
12321 2020-03-26 Tom Tromey <tom@tromey.com>
12322
12323 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12324 * dwarf2/read.c
12325 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12326 Move to line-header.c.
12327 (read_checked_initial_length_and_offset, read_formatted_entries):
12328 Likewise.
12329 (dwarf_decode_line_header): Split into two.
12330 * dwarf2/line-header.c
12331 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12332 Move from read.c.
12333 (read_checked_initial_length_and_offset, read_formatted_entries):
12334 Likewise.
12335 (dwarf_decode_line_header): New function, split from read.c.
12336
12337 2020-03-26 Tom Tromey <tom@tromey.com>
12338
12339 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12340 Declare method.
12341 * dwarf2/read.c (read_attribute_value): Update.
12342 (dwarf2_per_objfile::read_line_string): Rename from
12343 read_indirect_line_string.
12344 (read_formatted_entries): Update.
12345
12346 2020-03-26 Tom Tromey <tom@tromey.com>
12347
12348 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12349 variable.
12350
12351 2020-03-26 Tom Tromey <tom@tromey.com>
12352
12353 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12354 const.
12355 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12356 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12357 parameter const.
12358
12359 2020-03-26 Tom Tromey <tom@tromey.com>
12360
12361 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12362 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12363 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12364 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12365
12366 2020-03-26 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12369 file_names_size, file_full_name, file_file_name>: Use const.
12370 <file_name_at, file_names>: Add const overload.
12371 * dwarf2/line-header.c (line_header::file_file_name)
12372 (line_header::file_full_name): Update.
12373
12374 2020-03-26 Tom Tromey <tom@tromey.com>
12375
12376 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12377 (macro_start_file, consume_improper_spaces)
12378 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12379 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12380 (dwarf_decode_macros): Move to macro.c.
12381 * dwarf2/macro.c: New file.
12382 * dwarf2/macro.h: New file.
12383 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12384
12385 2020-03-26 Tom Tromey <tom@tromey.com>
12386
12387 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12388 method.
12389 * dwarf2/section.c: New method. From
12390 read_indirect_string_at_offset_from.
12391 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12392 (read_indirect_string_at_offset_from): Move to section.c.
12393 (read_indirect_string_at_offset): Rewrite.
12394 (read_indirect_line_string_at_offset): Remove.
12395 (read_indirect_string, read_indirect_line_string)
12396 (dwarf_decode_macro_bytes): Update.
12397
12398 2020-03-26 Tom Tromey <tom@tromey.com>
12399
12400 * dwarf2/section.h (struct dwarf2_section_info)
12401 <overload_complaint>: Declare.
12402 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12403 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12404 Rename from dwarf2_section_buffer_overflow_complaint.
12405 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12406 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12407
12408 2020-03-26 Tom Tromey <tom@tromey.com>
12409
12410 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12411 Declare.
12412 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12413 Move from read.c.
12414 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12415 to section.c.
12416
12417 2020-03-26 Tom Tromey <tom@tromey.com>
12418
12419 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12420
12421 2020-03-26 Tom Tromey <tom@tromey.com>
12422
12423 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12424 "builder".
12425 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12426 parameter.
12427 (dwarf_decode_macros): Update.
12428
12429 2020-03-26 Tom Tromey <tom@tromey.com>
12430
12431 * dwarf2/read.c (read_attribute_value): Update.
12432 (read_indirect_string_from_dwz): Move to dwz.c; change into
12433 method.
12434 (dwarf_decode_macro_bytes): Update.
12435 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12436 * dwarf2/dwz.c: New file.
12437 * Makefile.in (COMMON_SFILES): Add dwz.c.
12438
12439 2020-03-26 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12442 * dwarf2/read.c: Add include.
12443 * dwarf2/index-write.c: Add include.
12444 * dwarf2/index-cache.c: Add include.
12445 * dwarf2/dwz.h: New file.
12446
12447 2020-03-25 Tom Tromey <tom@tromey.com>
12448
12449 * compile/compile-object-load.c (get_out_value_type): Mention
12450 correct symbol name in error message.
12451
12452 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12453
12454 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12455
12456 2020-03-25 Tom de Vries <tdevries@suse.de>
12457
12458 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12459 * symmisc.c (dump_symtab_1): Print user and includes fields.
12460 (maintenance_info_symtabs): Same.
12461
12462 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12463
12464 PR gdb/25534
12465 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12466 (riscv_regcache_cooked_write): New function.
12467 (riscv_push_dummy_call): Use new function.
12468 (riscv_return_value): Likewise.
12469
12470 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12471
12472 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12473 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12474 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12475 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12476 * infrun.c (follow_fork): Likewise.
12477 (follow_fork_inferior): Likewise.
12478 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12479 * linux-nat.h (class linux_nat_target): Likewise.
12480 * remote.c (class remote_target) <follow_fork>: Likewise.
12481 (remote_target::follow_fork): Likewise.
12482 * target-delegates.c: Re-generate.
12483 * target.c (default_follow_fork): Likewise.
12484 (target_follow_fork): Likewise.
12485 * target.h (struct target_ops) <follow_fork>: Likewise.
12486 (target_follow_fork): Likewise.
12487
12488 2020-03-24 Tom de Vries <tdevries@suse.de>
12489
12490 * psymtab.c (maintenance_info_psymtabs): Print user field.
12491
12492 2020-03-20 Tom Tromey <tromey@adacore.com>
12493
12494 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12495 const.
12496 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12497 const.
12498
12499 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12500
12501 * ptrace.m4: Don't check for ptrace declaration.
12502 * config.in: Re-generate.
12503 * configure: Re-generate.
12504 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12505 not defined.
12506
12507 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12508
12509 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12510 `PTRACE_TYPE_RET'.
12511 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12512 * sparc-nat.c (gdb_ptrace): Likewise.
12513 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12514
12515 2020-03-20 Tom Tromey <tromey@adacore.com>
12516
12517 * c-exp.y (lex_one_token): Fix assert.
12518
12519 2020-03-20 Tom Tromey <tromey@adacore.com>
12520
12521 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12522 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12523 strncpy call.
12524
12525 2020-03-20 Tom Tromey <tromey@adacore.com>
12526
12527 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12528
12529 2020-03-20 Tom Tromey <tromey@adacore.com>
12530
12531 * ada-valprint.c (print_variant_part): Remove parameters; switch
12532 to value-based API.
12533 (print_field_values): Likewise.
12534 (ada_val_print_struct_union): Likewise.
12535 (ada_value_print_1): Update.
12536
12537 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12538
12539 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12540 nbsd_nat_target instead of inf_ptrace_target.
12541 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12542 nbsd_nat_target.
12543
12544 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12545
12546 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12547 it to the ptrace call.
12548 * (store_registers): Likewise.
12549
12550 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12551
12552 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12553 it to the ptrace call.
12554 * (store_registers): Likewise.
12555
12556 2020-03-19 Luis Machado <luis.machado@linaro.org>
12557
12558 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12559 valid, fetch vg value from ptrace.
12560
12561 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12562 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12563 * inf-ptrace.c: Likewise.
12564 * (gdb_ptrace): Add.
12565 * (inf_ptrace_target::resume): Update.
12566 * (inf_ptrace_target::xfer_partial): Likewise.
12567 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12568 * (inf_ptrace_peek_poke): Update.
12569
12570 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12571
12572 * x86-bsd-nat.c (gdb_ptrace): New.
12573 * (x86bsd_dr_set): Add new argument `ptid'.
12574 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12575 x86bsd_dr_set_addr): Update.
12576
12577 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12578
12579 * remote.c (remote_target::process_stop_reply): Handle events for
12580 all threads differently.
12581
12582 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * completer.c (completion_tracker::remove_completion): Define new
12585 function.
12586 * completer.h (completion_tracker::remove_completion): Declare new
12587 function.
12588 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12589 when adding a C++ function symbol.
12590
12591 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12592
12593 * completer.c (completion_tracker::completion_hash_entry): Define
12594 new class.
12595 (advance_to_filename_complete_word_point): Call
12596 recompute_lowest_common_denominator.
12597 (completion_tracker::completion_tracker): Call discard_completions
12598 to setup the hash table.
12599 (completion_tracker::discard_completions): Allow for being called
12600 from the constructor, pass new equal function, and element deleter
12601 when constructing the hash table. Initialise new class member
12602 variables.
12603 (completion_tracker::maybe_add_completion): Remove use of
12604 m_entries_vec, and store more information into m_entries_hash.
12605 (completion_tracker::recompute_lcd_visitor): New function, most
12606 content taken from...
12607 (completion_tracker::recompute_lowest_common_denominator):
12608 ...here, this now just visits each item in the hash calling the
12609 above visitor.
12610 (completion_tracker::build_completion_result): Remove use of
12611 m_entries_vec, call recompute_lowest_common_denominator.
12612 * completer.h (completion_tracker::have_completions): Remove use
12613 of m_entries_vec.
12614 (completion_tracker::completion_hash_entry): Declare new class.
12615 (completion_tracker::recompute_lowest_common_denominator): Change
12616 function signature.
12617 (completion_tracker::recompute_lcd_visitor): Declare new function.
12618 (completion_tracker::m_entries_vec): Delete.
12619 (completion_tracker::m_entries_hash): Initialize to NULL.
12620 (completion_tracker::m_lowest_common_denominator_valid): New
12621 member variable.
12622 (completion_tracker::m_lowest_common_denominator_max_length): New
12623 member variable.
12624
12625 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12626
12627 * regformats/regdef.h: Put reg in gdb namespace.
12628
12629 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12630
12631 * i386-bsd-nat.c (gdb_ptrace): New.
12632 * (i386bsd_fetch_inferior_registers,
12633 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12634 * (i386bsd_fetch_inferior_registers,
12635 i386bsd_store_inferior_registers) Use gdb_ptrace.
12636
12637 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12638
12639 * amd64-bsd-nat.c (gdb_ptrace): New.
12640 * (amd64bsd_fetch_inferior_registers,
12641 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12642 * (amd64bsd_fetch_inferior_registers,
12643 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12644
12645 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12646
12647 * user-regs.c (user_reg::read): Rename to...
12648 (user_reg::xread): ...this.
12649 * (append_user_reg): Rename argument `read' to `xread'.
12650 * (user_reg_add_builtin): Likewise.
12651 * (user_reg_add): Likewise.
12652 * (value_of_user_reg): Likewise.
12653
12654 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12655
12656 * sparc-nat.c (gdb_ptrace): New.
12657 * sparc-nat.c (sparc_fetch_inferior_registers)
12658 (sparc_store_inferior_registers) Remove obsolete comment.
12659 * sparc-nat.c (sparc_fetch_inferior_registers)
12660 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12661 * sparc-nat.c (sparc_fetch_inferior_registers)
12662 (sparc_store_inferior_registers) Use gdb_ptrace.
12663
12664 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12665
12666 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12667 it to the ptrace call.
12668 * sh-nbsd-nat.c (store_registers): Likewise.
12669
12670 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12671
12672 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12673 nbsd_nat_target instead of inf_ptrace_target.
12674 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12675 nbsd_nat_target.
12676
12677 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12678
12679 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12680
12681 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12682
12683 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12684 <sys/sysctl.h>.
12685 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12686
12687 2020-03-17 Tom de Vries <tdevries@suse.de>
12688
12689 PR gdb/23710
12690 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12691 fields.
12692 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12693 fields.
12694 (process_imported_unit_die): Skip import of c++ CUs.
12695
12696 2020-03-16 Tom Tromey <tom@tromey.com>
12697
12698 * p-valprint.c (pascal_object_print_value): Initialize
12699 base_value.
12700
12701 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12702 Shahab Vahedi <shahab@synopsys.com>
12703
12704 * Makefile.in: Add arch/arc.o
12705 * configure.tgt: Likewise.
12706 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12707 (_initialize_arc_tdep): Don't initialize old target descriptions.
12708 (arc_read_description): New function to cache target descriptions.
12709 * arc-tdep.h (arc_read_description): Add proto type.
12710 * arch/arc.c: New file.
12711 * arch/arc.h: Likewise.
12712 * features/Makefile: Replace old target descriptions with new.
12713 * features/arc-arcompact.c: Remove.
12714 * features/arc-arcompact.xml: Likewise.
12715 * features/arc-v2.c: Likewise
12716 * features/arc-v2.xml: Likewise
12717 * features/arc/aux-arcompact.xml: New file.
12718 * features/arc/aux-v2.xml: Likewise.
12719 * features/arc/core-arcompact.xml: Likewise.
12720 * features/arc/core-v2.xml: Likewise.
12721 * features/arc/aux-arcompact.c: Generate.
12722 * features/arc/aux-v2.c: Likewise.
12723 * features/arc/core-arcompact.c: Likewise.
12724 * features/arc/core-v2.c: Likewise.
12725 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12726
12727 2020-03-16 Tom Tromey <tromey@adacore.com>
12728
12729 PR gdb/25663:
12730 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12731 putting value into bcache.
12732
12733 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12734
12735 PR gdb/21500
12736 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12737 to...
12738 (amd64_windows_init_abi_common): ... this. Don't set size of
12739 long type.
12740 (amd64_windows_init_abi): New function.
12741 (amd64_cygwin_init_abi): New function.
12742 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12743 the Cygwin OS ABI.
12744 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12745 comment.
12746
12747 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12748
12749 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12750 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12751 (pe_import_directory_entry): New struct type.
12752 (is_linked_with_cygwin_dll): New function.
12753 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12754 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12755 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12756
12757 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12758
12759 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12760 i386_cygwin_core_osabi_sniffer.
12761
12762 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * i386-cygwin-tdep.c: Rename to...
12765 * i386-windows-tdep.c: ... this.
12766 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12767 i386-windows-tdep.c.
12768 * configure.tgt: Likewise.
12769
12770 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12771
12772 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12773 * osabi.c (gdb_osabi_names): Add "Windows".
12774 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12775 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12776 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12777 i386_cygwin_osabi_sniffer.
12778 (_initialize_i386_cygwin_tdep): Register OS ABI
12779 GDB_OSABI_WINDOWS for i386.
12780 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12781 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12782 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12783 for x86-64.
12784 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12785 when the target matches '*-*-mingw*'.
12786
12787 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * defs.h (enum gdb_osabi): Move to...
12790 * osabi.h (enum gdb_osabi): ... here.
12791 * gdbarch.sh: Include osabi.h in gdbarch.h.
12792 * gdbarch.h: Re-generate.
12793
12794 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12795
12796 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12797 function.
12798 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12799
12800 2020-03-14 Tom Tromey <tom@tromey.com>
12801
12802 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12803 for C++.
12804 (c_type_print_modifier): Likewise. Add "language" parameter.
12805 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12806 (c_type_print_base_1): Update.
12807 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12808 constants.
12809 * type-stack.c (type_stack::insert): Handle tp_atomic and
12810 tp_restrict.
12811 (type_stack::follow_type_instance_flags): Likewise.
12812 (type_stack::follow_types): Likewise. Merge type-following code.
12813 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12814 (space_identifier, cv_with_space_id)
12815 (const_or_volatile_or_space_identifier_noopt)
12816 (const_or_volatile_or_space_identifier): Remove.
12817 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12818 rules.
12819 (ptr_operator, typebase): Update.
12820 (enum token_flag) <FLAG_C>: New constant.
12821 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12822 "_Atomic".
12823 (lex_one_token): Handle FLAG_C.
12824
12825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12826
12827 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12828 it to the ptrace call.
12829 * m68k-bsd-nat.c (store_registers): Likewise.
12830
12831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12832
12833 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12834 gdb_byte *.
12835 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12836 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12837 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12838
12839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12840
12841 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12842 nbsd_nat_target instead of inf_ptrace_target.
12843 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12844 nbsd_nat_target.
12845
12846 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12847
12848 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12849 register_t.
12850
12851 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12852
12853 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12854 it to the ptrace call.
12855 * alpha-bsd-nat.c (store_registers): Likewise.
12856
12857 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12858
12859 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12860 includes.
12861 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12862 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12863 fill_fpregset): Likewise.
12864
12865 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12866
12867 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12868 nbsd_nat_target instead of inf_ptrace_target.
12869 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12870 nbsd_nat_target.
12871
12872 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12873
12874 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12875 register_t.
12876
12877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12878
12879 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12880 it to the ptrace call.
12881 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12882 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12883 * arm-nbsd-nat.c (store_register): Likewise.
12884 * arm-nbsd-nat.c (store_regs): Likewise.
12885 * arm-nbsd-nat.c (store_fp_register): Likewise.
12886 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12887
12888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12889
12890 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12891 nbsd_nat_target instead of inf_ptrace_target.
12892 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12893 nbsd_nat_target.
12894
12895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12896
12897 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12898 it to the ptrace call.
12899 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12900
12901 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12902
12903 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12904 it to the ptrace call.
12905 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12906
12907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12908
12909 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12910 gdb_byte *.
12911 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12912
12913 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12914
12915 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12916 instead of inf_ptrace_target.
12917 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12918 nbsd_nat_target.
12919
12920 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12921
12922 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12923 register_t.
12924
12925 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12926
12927 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12928 register_t.
12929
12930 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12931
12932 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12933 register_t.
12934
12935 2020-03-13 Tom Tromey <tom@tromey.com>
12936
12937 * value.h (val_print): Don't declare.
12938 * valprint.h (val_print_array_elements)
12939 (val_print_scalar_formatted, generic_val_print): Don't declare.
12940 * valprint.c (generic_val_print_array): Take a struct value.
12941 (generic_val_print_ptr, generic_val_print_memberptr)
12942 (generic_val_print_bool, generic_val_print_int)
12943 (generic_val_print_char, generic_val_print_complex)
12944 (generic_val_print): Remove.
12945 (generic_value_print): Update.
12946 (do_val_print): Remove unused parameters. Don't call
12947 la_val_print.
12948 (val_print): Remove.
12949 (common_val_print): Update. Don't call value_check_printable.
12950 (val_print_scalar_formatted, val_print_array_elements): Remove.
12951 * rust-lang.c (rust_val_print): Remove.
12952 (rust_language_defn): Update.
12953 * p-valprint.c (pascal_val_print): Remove.
12954 (pascal_value_print_inner): Update.
12955 (pascal_object_print_val_fields, pascal_object_print_val):
12956 Remove.
12957 (pascal_object_print_static_field): Update.
12958 * p-lang.h (pascal_val_print): Don't declare.
12959 * p-lang.c (pascal_language_defn): Update.
12960 * opencl-lang.c (opencl_language_defn): Update.
12961 * objc-lang.c (objc_language_defn): Update.
12962 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12963 * m2-lang.h (m2_val_print): Don't declare.
12964 * m2-lang.c (m2_language_defn): Update.
12965 * language.h (struct language_defn) <la_val_print>: Remove.
12966 * language.c (unk_lang_value_print_inner): Rename. Change
12967 argument types.
12968 (unknown_language_defn, auto_language_defn): Update.
12969 * go-valprint.c (go_val_print): Remove.
12970 * go-lang.h (go_val_print): Don't declare.
12971 * go-lang.c (go_language_defn): Update.
12972 * f-valprint.c (f_val_print): Remove.
12973 * f-lang.h (f_value_print): Don't declare.
12974 * f-lang.c (f_language_defn): Update.
12975 * d-valprint.c (d_val_print): Remove.
12976 * d-lang.h (d_value_print): Don't declare.
12977 * d-lang.c (d_language_defn): Update.
12978 * cp-valprint.c (cp_print_value_fields)
12979 (cp_print_value_fields_rtti, cp_print_value): Remove.
12980 (cp_print_static_field): Update.
12981 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12982 (c_val_print_struct, c_val_print_union, c_val_print_int)
12983 (c_val_print_memberptr, c_val_print): Remove.
12984 * c-lang.h (c_val_print_array, cp_print_value_fields)
12985 (cp_print_value_fields_rtti): Don't declare.
12986 * c-lang.c (c_language_defn, cplus_language_defn)
12987 (asm_language_defn, minimal_language_defn): Update.
12988 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12989 (ada_val_print_enum): Take a struct value.
12990 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12991 (ada_val_print): Remove.
12992 (ada_value_print_1): Update.
12993 (printable_val_type): Remove.
12994 * ada-lang.h (ada_val_print): Don't declare.
12995 * ada-lang.c (ada_language_defn): Update.
12996
12997 2020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * valprint.c (do_val_print): Update.
13000 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13001 a struct value.
13002 (value_to_value_object_no_release): Declare.
13003 * python/py-value.c (value_to_value_object_no_release): New
13004 function.
13005 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13006 struct value.
13007 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13008 function.
13009 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13010 a struct value.
13011 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13012 Declare.
13013 (gdbscm_apply_val_pretty_printer): Take a struct value.
13014 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13015 value.
13016 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13017 value.
13018 * extension-priv.h (struct extension_language_ops)
13019 <apply_val_pretty_printer>: Take a struct value.
13020 * cp-valprint.c (cp_print_value): Create a struct value.
13021 (cp_print_value): Update.
13022
13023 2020-03-13 Tom Tromey <tom@tromey.com>
13024
13025 * ada-valprint.c (print_field_values): Call common_val_print.
13026
13027 2020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * ada-valprint.c (val_print_packed_array_elements): Remove
13030 bitoffset and val parameters. Call common_val_print.
13031 (ada_val_print_string): Remove offset, address, and original_value
13032 parameters.
13033 (ada_val_print_array): Update.
13034 (ada_value_print_array): New function.
13035 (ada_value_print_1): Call it.
13036
13037 2020-03-13 Tom Tromey <tom@tromey.com>
13038
13039 * ada-valprint.c (ada_value_print): Use common_val_print.
13040
13041 2020-03-13 Tom Tromey <tom@tromey.com>
13042
13043 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13044
13045 2020-03-13 Tom Tromey <tom@tromey.com>
13046
13047 * ada-valprint.c (ada_value_print_num): New function.
13048 (ada_value_print_1): Use it.
13049
13050 2020-03-13 Tom Tromey <tom@tromey.com>
13051
13052 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13053
13054 2020-03-13 Tom Tromey <tom@tromey.com>
13055
13056 * ada-valprint.c (ada_value_print_ptr): New function.
13057 (ada_value_print_1): Use it.
13058
13059 2020-03-13 Tom Tromey <tom@tromey.com>
13060
13061 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13062 call common_val_print.
13063 (ada_val_print_1): Update.
13064 (ada_value_print_1): New function.
13065 (ada_value_print_inner): Rewrite.
13066
13067 2020-03-13 Tom Tromey <tom@tromey.com>
13068
13069 * cp-valprint.c (cp_print_value_fields): Update.
13070 (cp_print_value): New function.
13071
13072 2020-03-13 Tom Tromey <tom@tromey.com>
13073
13074 * m2-valprint.c (m2_value_print_inner): Use
13075 cp_print_value_fields.
13076 * cp-valprint.c (cp_print_value_fields): New function.
13077 * c-valprint.c (c_value_print_struct): New function.
13078 (c_value_print_inner): Use c_value_print_struct.
13079 * c-lang.h (cp_print_value_fields): Declare.
13080
13081 2020-03-13 Tom Tromey <tom@tromey.com>
13082
13083 * c-valprint.c (c_value_print_array): New function.
13084 (c_value_print_inner): Use it.
13085
13086 2020-03-13 Tom Tromey <tom@tromey.com>
13087
13088 * c-valprint.c (c_value_print_memberptr): New function.
13089 (c_value_print_inner): Use it.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * c-valprint.c (c_value_print_int): New function.
13094 (c_value_print_inner): Use it.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * c-valprint.c (c_value_print_ptr): New function.
13099 (c_value_print_inner): Use it.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * c-valprint.c (c_value_print_inner): Rewrite.
13104
13105 2020-03-13 Tom Tromey <tom@tromey.com>
13106
13107 * valprint.c (generic_value_print_complex): New function.
13108 (generic_value_print): Use it.
13109
13110 2020-03-13 Tom Tromey <tom@tromey.com>
13111
13112 * valprint.c (generic_val_print_float): Don't call
13113 val_print_scalar_formatted.
13114 (generic_val_print, generic_value_print): Update.
13115
13116 2020-03-13 Tom Tromey <tom@tromey.com>
13117
13118 * valprint.c (generic_value_print_char): New function
13119 (generic_value_print): Use it.
13120
13121 2020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * valprint.c (generic_value_print_int): New function.
13124 (generic_value_print): Use it.
13125
13126 2020-03-13 Tom Tromey <tom@tromey.com>
13127
13128 * valprint.c (generic_value_print_bool): New function.
13129 (generic_value_print): Use it.
13130
13131 2020-03-13 Tom Tromey <tom@tromey.com>
13132
13133 * valprint.c (generic_val_print_func): Simplify.
13134 (generic_val_print, generic_value_print): Update.
13135
13136 2020-03-13 Tom Tromey <tom@tromey.com>
13137
13138 * valprint.c (generic_val_print_flags): Remove.
13139 (generic_val_print, generic_value_print): Update.
13140 (val_print_type_code_flags): Add original_value parameter.
13141
13142 2020-03-13 Tom Tromey <tom@tromey.com>
13143
13144 * valprint.c (generic_val_print): Update.
13145 (generic_value_print): Update.
13146 * valprint.c (generic_val_print_enum): Don't call
13147 val_print_scalar_formatted.
13148
13149 2020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13152 * valprint.c (generic_value_print_ptr): New function.
13153
13154 2020-03-13 Tom Tromey <tom@tromey.com>
13155
13156 * valprint.c (generic_value_print): Rewrite.
13157
13158 2020-03-13 Tom Tromey <tom@tromey.com>
13159
13160 * p-valprint.c (pascal_object_print_value_fields)
13161 (pascal_object_print_value): New functions.
13162
13163 2020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * p-valprint.c (pascal_value_print_inner): Rewrite.
13166
13167 2020-03-13 Tom Tromey <tom@tromey.com>
13168
13169 * f-valprint.c (f_value_print_innner): Rewrite.
13170
13171 2020-03-13 Tom Tromey <tom@tromey.com>
13172
13173 * m2-valprint.c (m2_print_unbounded_array): New overload.
13174 (m2_print_unbounded_array): Update.
13175 (m2_print_array_contents): Take a struct value.
13176 (m2_value_print_inner): Rewrite.
13177
13178 2020-03-13 Tom Tromey <tom@tromey.com>
13179
13180 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13181 (d_value_print_inner): New function.
13182 * d-lang.h (d_value_print_inner): Declare.
13183 * d-lang.c (d_language_defn): Use d_value_print_inner.
13184
13185 2020-03-13 Tom Tromey <tom@tromey.com>
13186
13187 * go-valprint.c (go_value_print_inner): New function.
13188 * go-lang.h (go_value_print_inner): Declare.
13189 * go-lang.c (go_language_defn): Use go_value_print_inner.
13190
13191 2020-03-13 Tom Tromey <tom@tromey.com>
13192
13193 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13194 API.
13195 (rust_val_print): Rewrite.
13196 (rust_value_print_inner): New function, from rust_val_print.
13197 (rust_language_defn): Use rust_value_print_inner.
13198
13199 2020-03-13 Tom Tromey <tom@tromey.com>
13200
13201 * ada-valprint.c (ada_value_print_inner): New function.
13202 * ada-lang.h (ada_value_print_inner): Declare.
13203 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13204
13205 2020-03-13 Tom Tromey <tom@tromey.com>
13206
13207 * f-valprint.c (f_value_print_innner): New function.
13208 * f-lang.h (f_value_print_innner): Declare.
13209 * f-lang.c (f_language_defn): Use f_value_print_innner.
13210
13211 2020-03-13 Tom Tromey <tom@tromey.com>
13212
13213 * p-valprint.c (pascal_value_print_inner): New function.
13214 * p-lang.h (pascal_value_print_inner): Declare.
13215 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13216
13217 2020-03-13 Tom Tromey <tom@tromey.com>
13218
13219 * m2-valprint.c (m2_value_print_inner): New function.
13220 * m2-lang.h (m2_value_print_inner): Declare.
13221 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13222
13223 2020-03-13 Tom Tromey <tom@tromey.com>
13224
13225 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13226 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13227 * c-valprint.c (c_value_print_inner): New function.
13228 * c-lang.h (c_value_print_inner): Declare.
13229 * c-lang.c (c_language_defn, cplus_language_defn)
13230 (asm_language_defn, minimal_language_defn): Use
13231 c_value_print_inner.
13232
13233 2020-03-13 Tom Tromey <tom@tromey.com>
13234
13235 * p-valprint.c (pascal_object_print_value_fields): Now static.
13236 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13237
13238 2020-03-13 Tom Tromey <tom@tromey.com>
13239
13240 * c-valprint.c (c_val_print_array): Simplify.
13241
13242 2020-03-13 Tom Tromey <tom@tromey.com>
13243
13244 * valprint.c (value_print_array_elements): New function.
13245 * valprint.h (value_print_array_elements): Declare.
13246
13247 2020-03-13 Tom Tromey <tom@tromey.com>
13248
13249 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13250 * mips-tdep.c (mips_print_register): Use
13251 value_print_scalar_formatted.
13252
13253 2020-03-13 Tom Tromey <tom@tromey.com>
13254
13255 * valprint.h (value_print_scalar_formatted): Declare.
13256 * valprint.c (value_print_scalar_formatted): New function.
13257
13258 2020-03-13 Tom Tromey <tom@tromey.com>
13259
13260 * valprint.h (generic_value_print): Declare.
13261 * valprint.c (generic_value_print): New function.
13262
13263 2020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * valprint.c (do_val_print): Call la_value_print_inner, if
13266 available.
13267 * rust-lang.c (rust_language_defn): Update.
13268 * p-lang.c (pascal_language_defn): Update.
13269 * opencl-lang.c (opencl_language_defn): Update.
13270 * objc-lang.c (objc_language_defn): Update.
13271 * m2-lang.c (m2_language_defn): Update.
13272 * language.h (struct language_defn) <la_value_print_inner>: New
13273 member.
13274 * language.c (unknown_language_defn, auto_language_defn): Update.
13275 * go-lang.c (go_language_defn): Update.
13276 * f-lang.c (f_language_defn): Update.
13277 * d-lang.c (d_language_defn): Update.
13278 * c-lang.c (c_language_defn, cplus_language_defn)
13279 (asm_language_defn, minimal_language_defn): Update.
13280 * ada-lang.c (ada_language_defn): Update.
13281
13282 2020-03-13 Tom Tromey <tom@tromey.com>
13283
13284 * c-valprint.c (c_value_print): Use common_val_print.
13285
13286 2020-03-13 Tom Tromey <tom@tromey.com>
13287
13288 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13289
13290 2020-03-13 Tom Tromey <tom@tromey.com>
13291
13292 * f-valprint.c (f77_print_array_1, f_val_print): Use
13293 common_val_print.
13294
13295 2020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * riscv-tdep.c (riscv_print_one_register_info): Use
13298 common_val_print.
13299
13300 2020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * mi/mi-main.c (output_register): Use common_val_print.
13303
13304 2020-03-13 Tom Tromey <tom@tromey.com>
13305
13306 * infcmd.c (default_print_one_register_info): Use
13307 common_val_print.
13308
13309 2020-03-13 Tom Tromey <tom@tromey.com>
13310
13311 * valprint.h (common_val_print_checked): Declare.
13312 * valprint.c (common_val_print_checked): New function.
13313 * stack.c (print_frame_arg): Use common_val_print_checked.
13314
13315 2020-03-13 Tom Tromey <tom@tromey.com>
13316
13317 * valprint.c (do_val_print): New function, from val_print.
13318 (val_print): Use do_val_print.
13319 (common_val_print): Use do_val_print.
13320
13321 2020-03-13 Tom Tromey <tom@tromey.com>
13322
13323 * valprint.c (value_print): Use scoped_value_mark.
13324
13325 2020-03-13 Tom de Vries <tdevries@suse.de>
13326
13327 PR symtab/25646
13328 * psymtab.c (partial_symtab::partial_symtab): Don't set
13329 globals_offset and statics_offset. Push element onto
13330 current_global_psymbols and current_static_psymbols stacks.
13331 (concat): New function.
13332 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13333 element from current_global_psymbols and current_static_psymbols
13334 stacks. Concat popped elements to global_psymbols and
13335 static_symbols.
13336 (add_psymbol_to_list): Use current_global_psymbols and
13337 current_static_psymbols stacks.
13338 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13339 current_static_psymbols fields.
13340
13341 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13342
13343 * corelow.c (sniff_core_bfd): Remove.
13344 (class core_target) <m_core_vec>: Remove.
13345 (core_target::core_target): Update.
13346 (core_file_fns): Remove.
13347 (deprecated_add_core_fns): Remove.
13348 (default_core_sniffer): Remove.
13349 (sniff_core_bfd): Remove.
13350 (default_check_format): Remove.
13351 (gdb_check_format): Remove.
13352 (core_target_open): Update.
13353 (core_target::get_core_register_section): Update.
13354 (get_core_registers_cb): Update.
13355 (core_target::fetch_registers): Update.
13356 * gdbcore.h (struct core_fns): Remove.
13357 (deprecated_add_core_fns): Remove.
13358 (default_core_sniffer): Remove.
13359 (default_check_format): Remove.
13360
13361 2020-03-12 Tom Tromey <tom@tromey.com>
13362
13363 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13364 CORE_ADDR.
13365 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13366
13367 2020-03-12 Tom Tromey <tom@tromey.com>
13368
13369 * remote.c (remote_target::download_tracepoint)
13370 (remote_target::enable_tracepoint)
13371 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13372 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13373 sprintf_vma.
13374
13375 2020-03-12 Tom Tromey <tom@tromey.com>
13376
13377 * symfile-mem.c: Update CORE_ADDR size assert.
13378
13379 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13380
13381 * selftest.m4: Move to gdbsupport/.
13382 * acinclude.m4: Update path to selftest.m4.
13383
13384 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13385
13386 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13387 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13388 gdbarch-selfselftests.c and selftest-arch.c.
13389 (SUBDIR_UNITTESTS_OBS): Rename to...
13390 (SELFTESTS_OBS): ... this.
13391 (COMMON_SFILES): Remove disasm-selftests.c and
13392 gdbarch-selftests.c.
13393 * configure.ac: Don't add selftest-arch.{c,o} to
13394 CONFIG_{SRCS,OBS}.
13395 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13396 preprocessor conditions.
13397
13398 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13399
13400 * configure.ac: Don't source bfd/development.sh.
13401 * selftest.m4: Modify comment.
13402 * configure: Re-generate.
13403
13404 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13407 not "true" or "false".
13408 * configure: Re-generate.
13409
13410 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13411
13412 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13413 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13414 renamed to arm_nbsd_supply_gregset.
13415 (fetch_register): Update to call arm_nbsd_supply_gregset.
13416 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13417 (arm_netbsd_nat_target::fetch_registers): Update.
13418 (fetch_elfcore_registers): Removed.
13419 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13420 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13421 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13422 not require NetBSD system headers.
13423 (arm_nbsd_regset): New struct.
13424 (arm_nbsd_iterate_over_regset_sections): New function.
13425 (arm_netbsd_init_abi_common): Updated to call
13426 set_gdbarch_iterate_over_regset_sections.
13427 * arm-nbsd-tdep.h: New file.
13428
13429 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13430
13431 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13432 recursion.
13433
13434 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13435
13436 * configure: Re-generate.
13437
13438 2020-03-11 Tom Tromey <tromey@adacore.com>
13439
13440 * ada-typeprint.c (print_choices): Fix comment.
13441
13442 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13443
13444 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13445 previous item in the list, when the list has no items.
13446
13447 2020-03-11 Tom de Vries <tdevries@suse.de>
13448
13449 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13450 PROP_LOCLIST handling code.
13451
13452 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * buildsym-legacy.c (record_line): Pass extra parameter to
13455 record_line.
13456 * buildsym.c (buildsym_compunit::record_line): Take an extra
13457 parameter, reduce duplication in the line table, and record the
13458 is_stmt flag in the line table.
13459 * buildsym.h (buildsym_compunit::record_line): Add extra
13460 parameter.
13461 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13462 non-statement lines.
13463 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13464 this to the symtab builder.
13465 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13466 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13467 through to dwarf_record_line_1.
13468 * infrun.c (process_event_stop_test): When stepping, don't stop at
13469 a non-statement instruction, and only refresh the step info when
13470 we land in the middle of a line's range. Also add an extra
13471 comment.
13472 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13473 field.
13474 * record-btrace.c (btrace_find_line_range): Only record lines
13475 marked as is-statement.
13476 * stack.c (frame_show_address): Show the frame address if we are
13477 in a non-statement sal.
13478 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13479 (maintenance_print_one_line_table): Print a header for the is_stmt
13480 column, and include is_stmt information in the output.
13481 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13482 preference to non-statements.
13483 (find_pcs_for_symtab_line): Prefer is-statement entries.
13484 (find_line_common): Likewise.
13485 * symtab.h (struct linetable_entry): Add is_stmt field.
13486 (struct symtab_and_line): Likewise.
13487 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13488 arranging the line table.
13489
13490 2020-03-07 Tom de Vries <tdevries@suse.de>
13491
13492 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13493 DIE.
13494
13495 2020-03-07 Tom Tromey <tom@tromey.com>
13496
13497 * valops.c (value_literal_complex): Remove obsolete comment.
13498 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13499 comment.
13500
13501 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13502
13503 * infrun.h: Forward-declare thread_info.
13504 (set_step_info): Add thread_info parameter, add doc.
13505 * infrun.c (set_step_info): Add thread_info parameter, move doc
13506 to header.
13507 * infrun.c (process_event_stop_test): Pass thread to
13508 set_step_info call.
13509 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13510 set_step_info.
13511 (prepare_one_step): Add thread_info parameter, pass it to
13512 set_step_frame and prepare_one_step (recursive) call.
13513 (step_1): Pass thread to prepare_one_step call.
13514 (step_command_fsm::should_stop): Pass thread to
13515 prepare_one_step.
13516 (until_next_fsm): Pass thread to set_step_frame call.
13517 (finish_command): Pass thread to set_step_info call.
13518
13519 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13520
13521 * windows-tdep.c (windows_solib_create_inferior_hook):
13522 Check if inferior is running.
13523
13524 2020-03-06 Tom de Vries <tdevries@suse.de>
13525
13526 * NEWS: Fix "the the".
13527 * ctfread.c: Same.
13528
13529 2020-03-06 Tom de Vries <tdevries@suse.de>
13530
13531 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13532
13533 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 * .dir-locals.el: Add a comment referencing the other copies of
13536 this file.
13537
13538 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13539
13540 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13541 psargs.
13542
13543 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13544
13545 * .gitattributes: New file.
13546
13547 2020-03-04 Tom Tromey <tom@tromey.com>
13548
13549 * symmisc.c (print_symbol_bcache_statistics)
13550 (print_objfile_statistics): Update.
13551 * symfile.c (allocate_symtab): Use intern.
13552 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13553 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13554 macro_cache>: Remove.
13555 <string_cache>: New member.
13556 (struct objfile) <intern>: New methods.
13557 * elfread.c (elf_symtab_read): Use intern.
13558 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13559 (dwarf2_compute_name, dwarf2_physname)
13560 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13561 names.
13562 (guess_partial_die_structure_name): Update.
13563 (partial_die_info::fixup): Intern name.
13564 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13565 name.
13566 (dwarf2_name): Intern name. Update.
13567 * buildsym.c (buildsym_compunit::get_macro_table): Use
13568 string_cache.
13569
13570 2020-03-04 Tom Tromey <tom@tromey.com>
13571
13572 * jit.c (bfd_open_from_target_memory): Make "target" const.
13573 * corefile.c (gnutarget): Now const.
13574 * gdbcore.h (gnutarget): Now const.
13575
13576 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13577
13578 * NEWS: Mention support for WOW64 processes.
13579 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13580 (amd64_windows_segment_register_p): Remove static.
13581 (_initialize_amd64_windows_nat): Update.
13582 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13583 * i386-windows-nat.c (context_offset): Update.
13584 (i386_mappings): Rename and remove static.
13585 (i386_windows_segment_register_p): Remove static.
13586 (_initialize_i386_windows_nat): Update.
13587 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13588 (STATUS_WX86_SINGLE_STEP): New macro.
13589 (EnumProcessModulesEx): New macro.
13590 (Wow64SuspendThread): New macro.
13591 (Wow64GetThreadContext): New macro.
13592 (Wow64SetThreadContext): New macro.
13593 (Wow64GetThreadSelectorEntry): New macro.
13594 (windows_set_context_register_offsets): Add static.
13595 (windows_set_segment_register_p): Likewise.
13596 (windows_add_thread): Adapt for WOW64 processes.
13597 (windows_fetch_one_register): Likewise.
13598 (windows_nat_target::fetch_registers): Likewise.
13599 (windows_store_one_register): Likewise.
13600 (display_selector): Likewise.
13601 (display_selectors): Likewise.
13602 (handle_exception): Likewise.
13603 (windows_continue): Likewise.
13604 (windows_nat_target::resume): Likewise.
13605 (windows_add_all_dlls): Likewise.
13606 (do_initial_windows_stuff): Likewise.
13607 (windows_nat_target::attach): Likewise.
13608 (windows_get_exec_module_filename): Likewise.
13609 (windows_nat_target::create_inferior): Likewise.
13610 (windows_xfer_siginfo): Likewise.
13611 (_initialize_loadable): Initialize Wow64SuspendThread,
13612 Wow64GetThreadContext, Wow64SetThreadContext,
13613 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13614 * windows-nat.h (windows_set_context_register_offsets):
13615 Remove declaration.
13616 (windows_set_segment_register_p): Likewise.
13617 (i386_windows_segment_register_p): Add declaration.
13618 (amd64_windows_segment_register_p): Likewise.
13619
13620 2020-03-04 Luis Machado <luis.machado@linaro.org>
13621
13622 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13623 in "info registers" for AArch64/ARM.
13624
13625 The change caused "info registers" to not print GPR's.
13626
13627 gdb/ChangeLog:
13628
13629 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13630
13631 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13632 when reg->group is empty and reggroup is not.
13633
13634 2020-03-03 Tom Tromey <tromey@adacore.com>
13635
13636 * dwarf2/frame.c (struct dwarf2_frame_cache)
13637 <checked_tailcall_bottom, entry_cfa_sp_offset,
13638 entry_cfa_sp_offset_p>: Remove members.
13639 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13640 (dwarf2_frame_prev_register): Don't call
13641 dwarf2_tailcall_sniffer_first.
13642 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13643 * frame-unwind.c (add_unwinder): New fuction.
13644 (frame_unwind_init): Use it. Add tailcall unwinder.
13645
13646 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13647 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13648
13649 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13650 value should be printed as true.
13651
13652 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13653
13654 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13655 (windows_init_abi): Set and use windows_so_ops.
13656
13657 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13658
13659 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13660 when verifying if dealing with a convenience variable.
13661
13662 2020-03-03 Luis Machado <luis.machado@linaro.org>
13663
13664 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13665
13666 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13667
13668 * infrun.c (gdbarch_supports_displaced_stepping): New.
13669 (use_displaced_stepping): Break up conditions in smaller pieces.
13670 Use gdbarch_supports_displaced_stepping.
13671 (displaced_step_prepare_throw): Use
13672 gdbarch_supports_displaced_stepping.
13673
13674 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13675
13676 * NEWS: Mention new behaviour of the history filename.
13677 * top.c (write_history_p): Add comment.
13678 (show_write_history_p): Add header comment, give a different
13679 message when history writing is on, but the history filename is
13680 empty.
13681 (history_filename): Add comment.
13682 (history_filename_empty): New function.
13683 (show_history_filename): Add header comment, give a different
13684 message when the filename is empty.
13685 (init_history): Compare history_filename against nullptr, and only
13686 read history if the filename is not empty.
13687 (set_history_filename): Add header comment, and only make
13688 non-empty filenames absolute.
13689 (init_main): Make the filename argument to 'set history filename'
13690 optional.
13691
13692 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13693
13694 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13695 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13696 (fetch_fp_register): Update.
13697 (fetch_fp_regs): Update.
13698 (store_fp_register): Update.
13699 (store_fp_regs): Update.
13700 (arm_netbsd_nat_target::read_description): New function.
13701 (fetch_elfcore_registers): Update.
13702
13703 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13704
13705 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13706 general_thread if the stop reply is missing a thread-id.
13707 (remote_target::process_stop_reply): Use the first non-exited
13708 thread if the target didn't pass a thread-id.
13709 * infrun.c (do_target_wait): Move call to
13710 switch_to_inferior_no_thread to ....
13711 (do_target_wait_1): ... here.
13712
13713 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13714
13715 * debuginfod-support.c: Include defs.h first.
13716
13717 2020-02-28 Tom de Vries <tdevries@suse.de>
13718
13719 * symfile.c (set_initial_language): Use default language for lookup.
13720
13721 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13722
13723 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13724 reader variable, pass `this` to read_cutu_die_from_dwo.
13725
13726 2020-02-27 Aaron Merey <amerey@redhat.com>
13727
13728 * source.c (open_source_file): Check for nullptr when computing
13729 srcpath.
13730
13731 2020-02-27 Tom Tromey <tromey@adacore.com>
13732
13733 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13734 member.
13735 (dwarf2_add_field): Don't update nfields.
13736 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13737
13738 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13739
13740 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13741 abs.
13742
13743 2020-02-26 Tom Tromey <tom@tromey.com>
13744
13745 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13746 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13747 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13748 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13749 per_cu_data.
13750
13751 2020-02-26 Tom Tromey <tom@tromey.com>
13752
13753 * dwarf2/index-write.c (psym_index_map): Change type.
13754 (add_address_entry_worker, write_one_signatured_type)
13755 (recursively_count_psymbols, recursively_write_psymbols)
13756 (class debug_names, psyms_seen_size, write_gdbindex)
13757 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13758
13759 2020-02-26 Aaron Merey <amerey@redhat.com>
13760
13761 * Makefile.in: Handle optional debuginfod support.
13762 * NEWS: Update.
13763 * README: Add --with-debuginfod summary.
13764 * config.in: Regenerate.
13765 * configure: Regenerate.
13766 * configure.ac: Handle optional debuginfod support.
13767 * debuginfod-support.c: debuginfod helper functions.
13768 * debuginfod-support.h: Ditto.
13769 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13770 summary.
13771 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13772 when a dwz file cannot be found.
13773 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13774 debuginfo file cannot be found.
13775 * source.c (open_source_file): Query debuginfod servers when a
13776 source file cannot be found.
13777 * top.c (print_gdb_configuration): Include
13778 --{with,without}-debuginfod in the output.
13779
13780 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13781
13782 * thread.c (thr_try_catch_cmd): Print thread name.
13783
13784 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13785
13786 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13787 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13788 dwarf2_fetch_die_type_sect_off): Move to...
13789 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13790 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13791 dwarf2_fetch_die_type_sect_off): ... here.
13792 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13793 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13794 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13795
13796 2020-02-26 Tom de Vries <tdevries@suse.de>
13797
13798 PR gdb/25603
13799 * symfile.c (set_initial_language): Exit-early if
13800 language_mode == language_mode_manual.
13801
13802 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13803
13804 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13805 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13806 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13807
13808 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13809
13810 * gdbtypes.c (create_array_type_with_stride): Handle negative
13811 array strides.
13812 * valarith.c (value_subscripted_rvalue): Likewise.
13813
13814 2020-02-25 Luis Machado <luis.machado@linaro.org>
13815
13816 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13817
13818 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13819
13820 * loc.h (dwarf2_get_die_type): Move to...
13821 * read.h (dwarf2_get_die_type): ... here.
13822 * read.c (dwarf2_get_die_type): Move doc to header.
13823
13824 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13825
13826 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13827 'gnulib/Makefile.in' to the list.
13828
13829 2020-02-24 Tom Tromey <tom@tromey.com>
13830
13831 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13832 Remove.
13833 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13834 XOBNEWVEC.
13835
13836 2020-02-24 Tom Tromey <tom@tromey.com>
13837
13838 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13839 New method.
13840 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13841 (dw2_do_instantiate_symtab, dw2_get_file_names)
13842 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13843
13844 2020-02-24 Tom Tromey <tom@tromey.com>
13845
13846 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13847 make_scoped_restore.
13848 (dwarf2_psymtab::read_symtab): Don't clear
13849 reading_partial_symbols.
13850
13851 2020-02-24 Tom de Vries <tdevries@suse.de>
13852
13853 PR gdb/25592
13854 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13855
13856 2020-02-24 Tom de Vries <tdevries@suse.de>
13857
13858 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13859 commands layout next/prev/regs.
13860
13861 2020-02-22 Tom Tromey <tom@tromey.com>
13862
13863 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13864 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13865
13866 2020-02-22 Tom Tromey <tom@tromey.com>
13867
13868 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13869
13870 2020-02-22 Tom Tromey <tom@tromey.com>
13871
13872 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13873 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13874 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13875 * tui/tui.c (_initialize_tui): Add usage text.
13876
13877 2020-02-22 Tom Tromey <tom@tromey.com>
13878
13879 * tui/tui-win.c (tui_set_focus_command)
13880 (tui_set_win_height_command): Use error_no_arg.
13881 (_initialize_tui_win): Update help text.
13882 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13883
13884 2020-02-22 Tom Tromey <tom@tromey.com>
13885
13886 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13887 * tui/tui-disasm.h (struct tui_disasm_window)
13888 <display_start_addr>: Declare.
13889 * tui/tui-source.h (struct tui_source_window)
13890 <display_start_addr>: Declare.
13891 * tui/tui-winsource.h (struct tui_source_window_base)
13892 <show_source_line, display_start_addr>: New methods.
13893 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13894 Rename and move to protected section.
13895 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13896 (tui_source_window_base::do_erase_source_content): Update.
13897 (tui_source_window_base::show_source_line): Now a method.
13898 (tui_source_window_base::show_source_content)
13899 (tui_source_window_base::tui_source_window_base)
13900 (tui_source_window_base::rerender)
13901 (tui_source_window_base::refill)
13902 (tui_source_window_base::do_scroll_horizontal)
13903 (tui_source_window_base::set_is_exec_point_at)
13904 (tui_source_window_base::update_breakpoint_info)
13905 (tui_source_window_base::update_exec_info): Update.
13906 * tui/tui-source.c (tui_source_window::set_contents)
13907 (tui_source_window::showing_source_p)
13908 (tui_source_window::do_scroll_vertical)
13909 (tui_source_window::location_matches_p)
13910 (tui_source_window::line_is_displayed): Update.
13911 (tui_source_window::display_start_addr): New method.
13912 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13913 (tui_disasm_window::do_scroll_vertical)
13914 (tui_disasm_window::location_matches_p): Update.
13915 (tui_disasm_window::display_start_addr): New method.
13916
13917 2020-02-22 Tom Tromey <tom@tromey.com>
13918
13919 * NEWS: Add entry for gdb.register_window_type.
13920 * tui/tui-layout.h (window_factory): New typedef.
13921 (tui_register_window): Declare.
13922 * tui/tui-layout.c (saved_tui_windows): New global.
13923 (tui_apply_current_layout): Use it.
13924 (tui_register_window): New function.
13925 * python/python.c (do_start_initialization): Call
13926 gdbpy_initialize_tui.
13927 (python_GdbMethods): Add "register_window_type" function.
13928 * python/python-internal.h (gdbpy_register_tui_window)
13929 (gdbpy_initialize_tui): Declare.
13930 * python/py-tui.c: New file.
13931 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13932
13933 2020-02-22 Tom Tromey <tom@tromey.com>
13934
13935 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13936
13937 2020-02-22 Tom Tromey <tom@tromey.com>
13938
13939 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13940 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13941 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13942 (tui_set_win_focus_to): Move from tui-win.c.
13943
13944 2020-02-22 Tom Tromey <tom@tromey.com>
13945
13946 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13947 functions.
13948 (known_window_types): New global.
13949 (tui_get_window_by_name): Reimplement.
13950 (initialize_known_windows): New function.
13951 (validate_window_name): Rewrite.
13952 (_initialize_tui_layout): Call initialize_known_windows.
13953
13954 2020-02-22 Tom Tromey <tom@tromey.com>
13955
13956 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13957 Remove constants.
13958 * tui/tui-winsource.h (struct tui_source_window_base)
13959 <tui_source_window_base>: Remove parameter.
13960 * tui/tui-winsource.c
13961 (tui_source_window_base::tui_source_window_base): Remove
13962 parameter.
13963 (tui_source_window_base::refill): Update.
13964 * tui/tui-stack.h (struct tui_locator_window)
13965 <tui_locator_window>: Update.
13966 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13967 Default the constructor.
13968 * tui/tui-regs.h (struct tui_data_item_window)
13969 <tui_data_item_window>: Default the constructor.
13970 (struct tui_data_window) <tui_data_window>: Likewise.
13971 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13972 Default the constructor.
13973 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13974 Default the constructor.
13975 <type>: Remove.
13976 (struct tui_win_info) <tui_win_info>: Default the constructor.
13977 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13978 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13979 Default the constructor.
13980
13981 2020-02-22 Tom Tromey <tom@tromey.com>
13982
13983 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13984 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13985 * tui/tui-win.c (tui_resize_all): Don't call
13986 tui_delete_invisible_windows.
13987 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13988 done.
13989 (tui_set_layout): Update.
13990 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13991 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13992 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13993
13994 2020-02-22 Tom Tromey <tom@tromey.com>
13995
13996 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13997 correctly.
13998
13999 2020-02-22 Tom Tromey <tom@tromey.com>
14000
14001 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14002
14003 2020-02-22 Tom Tromey <tom@tromey.com>
14004
14005 * tui/tui-winsource.h (struct tui_source_window_iterator)
14006 <inner_iterator>: New etytypedef.
14007 <tui_source_window_iterator>: Take "end" parameter.
14008 <tui_source_window_iterator>: Take iterator.
14009 <operator*, advance>: Update.
14010 <m_iter>: Change type.
14011 <m_end>: New field.
14012 (struct tui_source_windows) <begin, end>: Update.
14013 * tui/tui-layout.c (tui_windows): New global.
14014 (tui_apply_current_layout): Clear tui_windows.
14015 (tui_layout_window::apply): Update tui_windows.
14016 * tui/tui-data.h (tui_windows): Declare.
14017 (all_tui_windows): Now inline function.
14018 (class tui_window_iterator, struct all_tui_windows): Remove.
14019
14020 2020-02-22 Tom Tromey <tom@tromey.com>
14021
14022 PR tui/17850:
14023 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14024 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14025 "height" argument.
14026 (class tui_layout_window) <get_sizes>: Likewise.
14027 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14028 argument.
14029 <get_sizes>: Add "height" argument.
14030 <m_vertical>: New field.
14031 * tui/tui-layout.c (tui_layout_split::clone): Update.
14032 (tui_layout_split::get_sizes): Add "height" argument.
14033 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14034 (tui_new_layout_command): Parse "-horizontal".
14035 (_initialize_tui_layout): Update help string.
14036 (tui_layout_split::specification): Add "-horizontal" when needed.
14037 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14038 argument.
14039 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14040 New methods.
14041
14042 2020-02-22 Tom Tromey <tom@tromey.com>
14043
14044 * tui/tui-layout.h (enum tui_adjust_result): New.
14045 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14046 (class tui_layout_window) <adjust_size>: Return
14047 tui_adjust_result. Rewrite.
14048 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14049 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14050
14051 2020-02-22 Tom Tromey <tom@tromey.com>
14052
14053 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14054 parameter and return types.
14055 (class tui_layout_base) <specification>: Add "depth".
14056 (class tui_layout_window) <specification>: Add "depth".
14057 (class tui_layout_split) <specification>: Add "depth".
14058 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14059 and return types.
14060 (tui_new_layout_command): Parse sub-layouts.
14061 (_initialize_tui_layout): Update help string.
14062 (tui_layout_window::specification): Add "depth".
14063 (add_layout_command): Update.
14064
14065 2020-02-22 Tom Tromey <tom@tromey.com>
14066
14067 * NEWS: Add "tui new-layout" item.
14068 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14069 Add new-layout command to help text.
14070 (validate_window_name): New function.
14071 (tui_new_layout_command): New function.
14072 (_initialize_tui_layout): Register "new-layout".
14073 (tui_layout_window::specification): New method.
14074 (tui_layout_window::specification): New method.
14075 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14076 method.
14077 (class tui_layout_window) <specification>: New method.
14078 (class tui_layout_split) <specification>: New method.
14079
14080 2020-02-22 Tom Tromey <tom@tromey.com>
14081
14082 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14083 * tui/tui-win.c (window_name_completer): Update comment.
14084 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14085 Declare method.
14086 (class tui_layout_window) <replace_window>: Likewise.
14087 (class tui_layout_split) <replace_window>: Likewise.
14088 (tui_set_layout): Don't declare.
14089 (tui_set_initial_layout): Declare function.
14090 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14091 (asm_regs_layout): New globals.
14092 (tui_current_layout, show_layout): Remove.
14093 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14094 (find_layout, tui_apply_layout): New function.
14095 (layout_completer): Remove.
14096 (tui_next_layout): Reimplement.
14097 (tui_next_layout_command): New function.
14098 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14099 (tui_regs_layout): Reimplement.
14100 (tui_regs_layout_command): New function.
14101 (extract_display_start_addr): Rewrite.
14102 (next_layout, prev_layout): Remove.
14103 (tui_layout_window::replace_window): New method.
14104 (tui_layout_split::replace_window): New method.
14105 (destroy_layout): New function.
14106 (layout_list): New global.
14107 (add_layout_command): New function.
14108 (initialize_layouts): Update.
14109 (tui_layout_command): New function.
14110 (_initialize_tui_layout): Install "layout" commands.
14111 * tui/tui-data.h (enum tui_layout_type): Remove.
14112 (tui_current_layout): Don't declare.
14113
14114 2020-02-22 Tom Tromey <tom@tromey.com>
14115
14116 * tui/tui-regs.c (tui_reg_layout): Remove.
14117 (tui_reg_command): Use tui_regs_layout.
14118 * tui/tui-layout.h (tui_reg_command): Declare.
14119 * tui/tui-layout.c (tui_reg_command): New function.
14120
14121 2020-02-22 Tom Tromey <tom@tromey.com>
14122
14123 * tui/tui.c (tui_rl_delete_other_windows): Call
14124 tui_remove_some_windows.
14125 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14126 Declare method.
14127 (class tui_layout_window) <remove_windows>: New method.
14128 (class tui_layout_split) <remove_windows>: Declare.
14129 (tui_remove_some_windows): Declare.
14130 * tui/tui-layout.c (tui_remove_some_windows): New function.
14131 (tui_layout_split::remove_windows): New method.
14132
14133 2020-02-22 Tom Tromey <tom@tromey.com>
14134
14135 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14136 * tui/tui-layout.h (tui_next_layout): Declare.
14137 * tui/tui-layout.c (tui_next_layout): New function.
14138
14139 2020-02-22 Tom Tromey <tom@tromey.com>
14140
14141 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14142 correct coordinates.
14143
14144 2020-02-22 Tom Tromey <tom@tromey.com>
14145
14146 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14147 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14148 DATA_WIN case.
14149
14150 2020-02-22 Tom Tromey <tom@tromey.com>
14151
14152 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14153 TUI_DISASM_WIN, not tui_win_list.
14154
14155 2020-02-22 Tom Tromey <tom@tromey.com>
14156
14157 * valprint.c (generic_val_print_enum_1)
14158 (val_print_type_code_flags): Style member names.
14159 * rust-lang.c (val_print_struct, rust_print_enum)
14160 (rust_print_struct_def, rust_internal_print_type): Style member
14161 names.
14162 * p-valprint.c (pascal_object_print_value_fields): Style member
14163 names. Only call fprintf_symbol_filtered for static members.
14164 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14165 * f-valprint.c (f_val_print): Style member names.
14166 * f-typeprint.c (f_type_print_base): Style member names.
14167 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14168 call fprintf_symbol_filtered for static members.
14169 (cp_print_class_member): Style member names.
14170 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14171 member names.
14172 * ada-valprint.c (ada_print_scalar): Style enum names.
14173 (ada_val_print_enum): Likewise.
14174 * ada-typeprint.c (print_enum_type): Style enum names.
14175
14176 2020-02-21 Tom Tromey <tom@tromey.com>
14177
14178 * psympriv.h (struct partial_symtab): Update comment.
14179
14180 2020-02-21 Tom Tromey <tromey@adacore.com>
14181
14182 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14183 type is CORE_ADDR.
14184
14185 2020-02-21 Tom de Vries <tdevries@suse.de>
14186
14187 PR gdb/25534
14188 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14189 if dependencies[i]->user != NULL.
14190
14191 2020-02-21 Ali Tamur <tamur@google.com>
14192
14193 * dwarf2/read.c (dwarf2_name): Add null check.
14194
14195 2020-02-20 Tom Tromey <tom@tromey.com>
14196
14197 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14198 ">=", in binary search.
14199 (dwarf2_find_containing_comp_unit): New overload.
14200 (run_test): New self-test.
14201 (_initialize_dwarf2_read): Register new test.
14202
14203 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14204
14205 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14206 * riscv-tdep.h: Likewise.
14207 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14208 rv32-only CSR.
14209 * features/riscv/64bit-csr.xml: Regenerated.
14210
14211 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14212 Tom Tromey <tom@tromey.com>
14213
14214 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14215 of 'fputc_unfiltered'.
14216 (putchar_unfiltered): Call 'fputc_unfiltered'.
14217 (fputc_unfiltered): Call 'fputs_unfiltered'.
14218
14219 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14220
14221 * config.in: Regenerate.
14222 * configure: Regenerate.
14223 * configure.ac: Add --with-python-libdir option.
14224 * main.c: Use WITH_PYTHON_LIBDIR.
14225
14226 2020-02-19 Tom Tromey <tom@tromey.com>
14227
14228 * symtab.c (general_symbol_info::compute_and_set_names): Use
14229 obstack_strndup. Simplify call to symbol_set_demangled_name.
14230
14231 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14232
14233 * dwarf2/read.c (allocate_signatured_type_table,
14234 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14235 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14236 Remove objfile parameter, update all callers.
14237
14238 2020-02-19 Doug Evans <dje@google.com>
14239
14240 PR rust/25535
14241 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14242 rust_enum_variant calculation.
14243
14244 2020-02-19 Tom Tromey <tromey@adacore.com>
14245
14246 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14247
14248 2020-02-19 Tom Tromey <tromey@adacore.com>
14249
14250 * ada-lang.c (cache_symbol): Use obstack_strdup.
14251
14252 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14253
14254 * configure: Regenerate.
14255
14256 2020-02-19 Tom Tromey <tromey@adacore.com>
14257
14258 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14259 NULL check.
14260
14261 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14262
14263 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14264
14265 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14266
14267 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14268 if GDBSERVER is not defined.
14269 (riscv_tdesc_cache): Likewise, also store const target_desc.
14270 (STATIC_IN_GDB): Define.
14271 (riscv_create_target_description): Update declaration with
14272 STATIC_IN_GDB.
14273 (riscv_lookup_target_description): New function, only define if
14274 GDBSERVER is not defined.
14275 * arch/riscv.h (riscv_create_target_description): Declare only
14276 when GDBSERVER is defined.
14277 (riscv_lookup_target_description): New declaration when GDBSERVER
14278 is not defined.
14279 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14280 (riscv_linux_read_features): ...this, and return
14281 riscv_gdbarch_features instead of target_desc.
14282 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14283 (riscv_linux_read_description): Rename to...
14284 (riscv_linux_read_features): ...this.
14285 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14286 Update to use riscv_gdbarch_features and
14287 riscv_lookup_target_description.
14288 * riscv-tdep.c (riscv_find_default_target_description): Use
14289 riscv_lookup_target_description instead of
14290 riscv_create_target_description.
14291
14292 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14293
14294 * valprint.c (generic_val_print_enum_1): When printing a flag
14295 enum with value 0 and there is no enumerator with value 0, print
14296 just "0" instead of "(unknown: 0x0)".
14297
14298 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14299
14300 * valprint.c (generic_val_print_enum_1): Print unknown part of
14301 flag enum in hex.
14302
14303 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14304
14305 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14306 flag enums to contain duplicate enumerators.
14307 * valprint.c (generic_val_print_enum_1): Update comment.
14308
14309 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14310
14311 * dwarf2/read.c: Include "count-one-bits.h".
14312 (update_enumeration_type_from_children): If an enumerator has
14313 multiple bits set, don't treat the enumeration as a "flag enum".
14314 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14315 of flag enums have 0 or 1 bit set.
14316
14317 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14318
14319 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14320 conversion.
14321 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14322 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14323 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14324 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14325 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14326
14327 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14328
14329 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14330
14331 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14332
14333 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14334 displaced_step_closure_up.
14335 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14336 (struct displaced_step_closure_up):
14337 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14338 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14339 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14340 Likewise.
14341 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14342 * gdbarch.c, gdbarch.h: Re-generate.
14343 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14344 displaced_step_closure_up.
14345 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14346 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14347 * infrun.h (displaced_step_closure_up): New type alias.
14348 (struct displaced_step_inferior_state) <step_closure>: Change
14349 type to displaced_step_closure_up.
14350 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14351 displaced_step_closure_up.
14352 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14353
14354 2020-02-14 Tom Tromey <tom@tromey.com>
14355
14356 * minidebug.c (gnu_debug_key): New global.
14357 (find_separate_debug_file_in_section): Use it.
14358
14359 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14360
14361 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14362 std::unique_ptr.
14363 * gdbarch.c: Re-generate.
14364 * gdbarch.h: Re-generate.
14365 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14366 change.
14367 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14368 type to std::unique_ptr.
14369 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14370 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14371 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14372 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14373 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14374 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14375 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14376 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14377 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14378
14379 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14380
14381 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14382 std::unique_ptr.
14383 (displaced_step_clear): Rename to...
14384 (displaced_step_reset): ... this. Just call displaced->reset ().
14385 (displaced_step_clear_cleanup): Rename to...
14386 (displaced_step_reset_cleanup): ... this.
14387 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14388 (displaced_step_fixup): Likewise.
14389 (resume_1): Likewise.
14390 (handle_inferior_event): Restore child's memory before calling
14391 displaced_step_fixup on the parent.
14392 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14393 to std::unique_ptr.
14394 <step_closure>: Change type to std::unique_ptr.
14395
14396 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14397
14398 * arm-tdep.c: Include count-one-bits.h.
14399 (cleanup_block_store_pc): Use count_one_bits.
14400 (cleanup_block_load_pc): Use count_one_bits.
14401 (arm_copy_block_xfer): Use count_one_bits.
14402 (thumb2_copy_block_xfer): Use count_one_bits.
14403 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14404 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14405 (thumb_get_next_pcs_raw): Use count_one_bits.
14406 (arm_get_next_pcs_raw): Use count_one_bits_l.
14407 * arch/arm.c (bitcount): Remove.
14408 * arch/arm.h (bitcount): Remove.
14409
14410 2020-02-14 Tom Tromey <tromey@adacore.com>
14411
14412 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14413 Update.
14414 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14415 * dwarf2/loc.c (call_site_find_chain_1): Return
14416 unique_xmalloc_ptr.
14417 (call_site_find_chain): Likewise.
14418
14419 2020-02-14 Richard Biener <rguenther@suse.de>
14420
14421 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14422 on expression with division operators.
14423
14424 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14425
14426 * MAINTAINERS (Write After Approval): Adding myself.
14427
14428 2020-02-12 Tom Tromey <tom@tromey.com>
14429
14430 * event-loop.c (event_data, gdb_event, event_handler_func):
14431 Remove.
14432
14433 2020-02-12 Tom Tromey <tom@tromey.com>
14434
14435 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14436 (dwarf2_frame_objfile_data): Add comment.
14437 (find_comp_unit, set_comp_unit): New functions.
14438 (dwarf2_frame_find_fde): Use find_comp_unit.
14439 (dwarf2_build_frame_info): Use set_comp_unit.
14440
14441 2020-02-12 Tom Tromey <tom@tromey.com>
14442
14443 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14444 (comp_unit): Don't initialize objfile.
14445 (execute_cfa_program): Add text_offset parameter.
14446 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14447 (dwarf2_frame_cache): Update.
14448 (dwarf2_build_frame_info): Don't set "objfile" member.
14449
14450 2020-02-12 Tom Tromey <tom@tromey.com>
14451
14452 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14453 (decode_frame_entry): Likewise.
14454 (dwarf2_build_frame_info): Update.
14455
14456 2020-02-12 Tom Tromey <tom@tromey.com>
14457
14458 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14459 (decode_frame_entry_1): Use the comp_unit obstack.
14460
14461 2020-02-12 Tom Tromey <tom@tromey.com>
14462
14463 * dwarf2/frame.c (struct comp_unit): Add initializers and
14464 constructor.
14465 (dwarf2_frame_objfile_data): Store a comp_unit.
14466 (dwarf2_frame_find_fde): Update.
14467 (dwarf2_build_frame_info): Use "new".
14468
14469 2020-02-12 Tom Tromey <tom@tromey.com>
14470
14471 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14472 (dwarf2_fde_table): Typedef for std::vector.
14473 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14474 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14475 (decode_frame_entry): Update.
14476 (dwarf2_build_frame_info): Use "new".
14477
14478 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14479
14480 * arm-tdep.c (arm_gdbarch_init): Update.
14481 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14482 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14483 have_neon, is_m>: Change to bool.
14484
14485 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14486
14487 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14488
14489 2020-02-12 Tom Tromey <tom@tromey.com>
14490
14491 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14492
14493 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14494
14495 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14496 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14497
14498 2020-02-11 Tom Tromey <tom@tromey.com>
14499
14500 * psymtab.h: Update comment.
14501
14502 2020-02-11 Tom Tromey <tom@tromey.com>
14503
14504 * gdb_obstack.h (struct auto_obstack): Use
14505 DISABLE_COPY_AND_ASSIGN.
14506
14507 2020-02-11 Tom Tromey <tom@tromey.com>
14508
14509 * dwarf2/frame.h (struct objfile): Don't forward declare.
14510
14511 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14512
14513 * cris-tdep.c (cris_supply_gregset): Change signature to match
14514 what struct regset expects.
14515 (cris_regset): New struct.
14516 (fetch_core_registers): Remove.
14517 (cris_iterate_over_regset_sections): New function.
14518 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14519 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14520
14521 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14522
14523 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14524 registers.
14525
14526 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14527
14528 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14529
14530 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14531
14532 * configure: Re-generate.
14533
14534 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14535
14536 * configure: Re-generate.
14537
14538 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14539
14540 * acinclude: Update warning.m4 path.
14541 * warning.m4: Move to gdbsupport.
14542
14543 2020-02-11 Tom Tromey <tromey@adacore.com>
14544
14545 * remote.c (remote_console_output): Update.
14546 * printcmd.c (printf_command): Update.
14547 * event-loop.c (gdb_wait_for_event): Update.
14548 * linux-nat.c (sigchld_handler): Update.
14549 * remote-sim.c (gdb_os_write_stdout): Update.
14550 (gdb_os_flush_stdout): Update.
14551 (gdb_os_flush_stderr): Update.
14552 (gdb_os_write_stderr): Update.
14553 * exceptions.c (print_exception): Update.
14554 * remote-fileio.c (remote_fileio_func_read): Update.
14555 (remote_fileio_func_write): Update.
14556 * tui/tui.c (tui_enable): Update.
14557 * tui/tui-interp.c (tui_interp::init): Update.
14558 * utils.c (init_page_info): Update.
14559 (putchar_unfiltered, fputc_unfiltered): Update.
14560 (gdb_flush): Update.
14561 (emit_style_escape): Update.
14562 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14563 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14564 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14565 (stderr_file::write): Update.
14566 (stderr_file::puts): Update.
14567 * ui-file.h (ui_file_isatty, ui_file_write)
14568 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14569 (ui_file_puts): Don't declare.
14570
14571 2020-02-10 Tom de Vries <tdevries@suse.de>
14572
14573 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14574 sentinel to char *.
14575
14576 2020-02-09 Tom de Vries <tdevries@suse.de>
14577
14578 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14579 filename if it matches "<artificial>".
14580
14581 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14582
14583 * windows-tdep.c (struct enum_value_name): New struct.
14584 (create_enum): New function.
14585 (windows_get_siginfo_type): Create and use enum types.
14586
14587 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14588
14589 * NEWS: Mention $_siginfo support for Windows.
14590 * windows-nat.c (handle_exception): Set siginfo_er.
14591 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14592 (windows_xfer_siginfo): New function.
14593 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14594 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14595 (init_windows_gdbarch_data): New function.
14596 (get_windows_gdbarch_data): New function.
14597 (windows_get_siginfo_type): New function.
14598 (windows_init_abi): Register windows_get_siginfo_type.
14599 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14600
14601 2020-02-08 Tom Tromey <tom@tromey.com>
14602
14603 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14604 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14605 <keep>: Declare method.
14606 <m_keep>: Remove member.
14607 <~cutu_reader>: Remove.
14608 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14609 (cutu_reader::cutu_reader): Update.
14610 (cutu_reader::keep): Rename from ~cutu_reader.
14611 (process_psymtab_comp_unit, build_type_psymtabs_1)
14612 (process_skeletonless_type_unit, load_partial_comp_unit)
14613 (load_full_comp_unit, dwarf2_read_addr_index)
14614 (read_signatured_type): Update.
14615
14616 2020-02-08 Tom Tromey <tom@tromey.com>
14617
14618 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14619 "want_partial_unit" parameter.
14620 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14621 Inline check for DW_TAG_partial_unit.
14622 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14623
14624 2020-02-08 Tom Tromey <tom@tromey.com>
14625
14626 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14627 read.c.
14628 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14629 read.c.
14630
14631 2020-02-08 Tom Tromey <tom@tromey.com>
14632
14633 * dwarf2/read.c (read_address): Move to comp-unit.c.
14634 (dwarf2_rnglists_process, dwarf2_ranges_process)
14635 (read_attribute_value, dwarf_decode_lines_1)
14636 (var_decode_location, decode_locdesc): Update.
14637 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14638 read.c. Remove "cu" parameter.
14639 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14640 method.
14641
14642 2020-02-08 Tom Tromey <tom@tromey.com>
14643
14644 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14645 (read_indirect_line_string): Update.
14646 * dwarf2/comp-unit.c (read_offset): Remove.
14647 (read_comp_unit_head): Update.
14648 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14649 method.
14650 (read_offset): Don't declare.
14651
14652 2020-02-08 Tom Tromey <tom@tromey.com>
14653
14654 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14655 * dwarf2/read.c (struct comp_unit_head): Move to
14656 dwarf2/comp-unit.h.
14657 (enum class rcuh_kind): Move to comp-unit.h.
14658 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14659 (read_comp_unit_head, error_check_comp_unit_head)
14660 (read_and_check_comp_unit_head): Move to comp-unit.c.
14661 (read_offset, dwarf_unit_type_name): Likewise.
14662 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14663 (cutu_reader::cutu_reader, read_call_site_scope)
14664 (find_partial_die, follow_die_offset): Update.
14665 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14666
14667 2020-02-08 Tom Tromey <tom@tromey.com>
14668
14669 * dwarf2/read.c (read_offset_1): Move to leb.c.
14670 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14671 (dwarf_decode_macro_bytes): Update.
14672 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14673 * dwarf2/leb.h (read_offset): Declare.
14674
14675 2020-02-08 Tom Tromey <tom@tromey.com>
14676
14677 * dwarf2/read.c (dwarf2_section_size): Remove.
14678 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14679 Update.
14680 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14681
14682 2020-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * dwarf2/read.c (read_initial_length): Move to leb.c.
14685 * dwarf2/leb.h (read_initial_length): Declare.
14686 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14687 handle_nonstd parameter.
14688 * dwarf2/frame.c (read_initial_length): Remove.
14689 (decode_frame_entry_1): Update.
14690
14691 2020-02-08 Tom Tromey <tom@tromey.com>
14692
14693 * dwarf2/loc.c (dwarf2_find_location_expression)
14694 (dwarf_evaluate_loc_desc::get_tls_address)
14695 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14696 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14697 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14698 (dwarf2_compile_property_to_c)
14699 (dwarf2_loc_desc_get_symbol_read_needs)
14700 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14701 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14702 (loclist_describe_location, loclist_tracepoint_var_ref)
14703 (loclist_generate_c_location): Update.
14704 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14705 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14706 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14707 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14708 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14709 (dwarf2_per_cu_data::addr_size)
14710 (dwarf2_per_cu_data::ref_addr_size)
14711 (dwarf2_per_cu_data::text_offset)
14712 (dwarf2_per_cu_data::addr_type): Now methods.
14713 (per_cu_header_read_in): Make per_cu "const".
14714 (dwarf2_version): Remove.
14715 (dwarf2_per_cu_data::int_type): Now a method.
14716 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14717 (set_die_type, read_array_type, read_subrange_index_type)
14718 (read_tag_string_type, read_subrange_type): Update.
14719 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14720 offset_size, ref_addr_size, text_offset, addr_type, version,
14721 objfile, int_type, addr_sized_int_type>: Declare methods.
14722
14723 2020-02-08 Tom Tromey <tom@tromey.com>
14724
14725 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14726 Move earlier.
14727
14728 2020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2/read.h (dwarf_line_debug): Declare.
14731 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14732 * dwarf2/read.c: Move line_header code to new files.
14733 (dwarf_line_debug): No longer static.
14734 * dwarf2/line-header.c: New file.
14735 * dwarf2/line-header.h: New file.
14736
14737 2020-02-08 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2/read.c (struct line_header) <file_full_name,
14740 file_file_name>: Return unique_xmalloc_ptr.
14741 (line_header::file_file_name): Update.
14742 (line_header::file_full_name): Update.
14743 (dw2_get_file_names_reader): Update.
14744 (macro_start_file): Update.
14745
14746 2020-02-08 Tom Tromey <tom@tromey.com>
14747
14748 * dwarf2/read.c (struct line_header) <file_full_name,
14749 file_file_name>: Declare methods.
14750 (dw2_get_file_names_reader): Update.
14751 (file_file_name): Now a method.
14752 (file_full_name): Likewise.
14753 (macro_start_file): Update.
14754
14755 2020-02-08 Tom Tromey <tom@tromey.com>
14756
14757 * dwarf2/read.c (dwarf_always_disassemble)
14758 (show_dwarf_always_disassemble): Move to loc.c.
14759 (_initialize_dwarf2_read): Move "always-disassemble" registration
14760 to loc.c.
14761 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14762 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14763 static.
14764 (show_dwarf_always_disassemble): Move from read.c.
14765 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14766
14767 2020-02-08 Tom Tromey <tom@tromey.com>
14768
14769 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14770 (create_quick_file_names_table): Return htab_up.
14771 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14772 Update.
14773 * dwarf2/read.h (struct dwarf2_per_objfile)
14774 <quick_file_names_table>: Now htab_up.
14775
14776 2020-02-08 Tom Tromey <tom@tromey.com>
14777
14778 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14779
14780 2020-02-08 Tom Tromey <tom@tromey.com>
14781
14782 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14783 Rewrite.
14784 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14785 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14786 (abbrev_table::abbrev_table): No longer inline.
14787 (ABBREV_HASH_SIZE): Remove.
14788 (abbrev_table::m_abbrevs): Now an htab_up.
14789
14790 2020-02-08 Tom Tromey <tom@tromey.com>
14791
14792 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14793 (cutu_reader): Update.
14794 (build_type_psymtabs_1): Update.
14795 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14796 (abbrev_table::alloc_abbrev): Update.
14797 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14798 (abbrev_table::read): New static method, renamed from
14799 abbrev_table_read_table.
14800 (abbrev_table::alloc_abbrev)
14801 (abbrev_table::add_abbrev): Now private.
14802 (abbrev_table::abbrev_table): Now private.
14803 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14804
14805 2020-02-08 Tom Tromey <tom@tromey.com>
14806
14807 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14808 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14809 htab_up.
14810
14811 2020-02-08 Tom Tromey <tom@tromey.com>
14812
14813 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14814 htab_up.
14815 (lookup_dwo_unit_in_dwp): Update.
14816 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14817 on obstack.
14818
14819 2020-02-08 Tom Tromey <tom@tromey.com>
14820
14821 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14822 obstack.
14823
14824 2020-02-08 Tom Tromey <tom@tromey.com>
14825
14826 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14827 line_header_hash.
14828 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14829 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14830 Change type to htab_up.
14831
14832 2020-02-08 Tom Tromey <tom@tromey.com>
14833
14834 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14835 htab_up. Don't allocate on obstack.
14836 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14837 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14838 Change type to htab_up.
14839
14840 2020-02-08 Tom Tromey <tom@tromey.com>
14841
14842 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14843 Change type to htab_up.
14844 * dwarf2/read.c (create_signatured_type_table_from_index)
14845 (create_signatured_type_table_from_debug_names)
14846 (create_all_type_units, add_type_unit)
14847 (lookup_dwo_signatured_type, lookup_signatured_type)
14848 (process_skeletonless_type_unit): Update.
14849 (create_debug_type_hash_table, create_debug_types_hash_table):
14850 Change type of types_htab.
14851 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14852 htab_up. Don't allocate on obstack.
14853 (create_cus_hash_table): Change type of cus_htab parameter.
14854 (struct dwo_file) <cus, tus>: Now htab_up.
14855 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14856 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14857 (queue_and_load_all_dwo_tus): Update.
14858 * dwarf2/index-write.c (write_gdbindex): Update.
14859 (write_debug_names): Update.
14860
14861 2020-02-08 Tom Tromey <tom@tromey.com>
14862
14863 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14864 dwarf2/read.c. Remove "next" member. Add constructor ntad
14865 destructor.
14866 (struct dwarf2_per_objfile) <queue>: New member.
14867 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14868 dwarf2/read.h.
14869 (dwarf2_queue, dwarf2_queue_tail): Remove.
14870 (class dwarf2_queue_guard): Add parameter to constructor. Use
14871 DISABLE_COPY_AND_ASSIGN.
14872 <m_per_objfile>: New member.
14873 <~dwarf2_queue_guard>: Rewrite.
14874 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14875 Update.
14876 (~dwarf2_queue_item): New.
14877
14878 2020-02-08 Tom Tromey <tom@tromey.com>
14879
14880 * dwarf2/read.c (struct die_info) <has_children>: New member.
14881 (dw2_get_file_names_reader): Remove has_children.
14882 (dw2_get_file_names): Update.
14883 (read_cutu_die_from_dwo): Remove has_children.
14884 (cutu_reader::init_tu_and_read_dwo_dies)
14885 (cutu_reader::cutu_reader): Update.
14886 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14887 Remove has_children.
14888 (build_type_psymtabs_1, process_skeletonless_type_unit)
14889 (load_partial_comp_unit, load_full_comp_unit): Update.
14890 (create_dwo_cu_reader): Remove has_children.
14891 (create_cus_hash_table, read_die_and_children): Update.
14892 (read_full_die_1,read_full_die): Remove has_children.
14893 (read_signatured_type): Update.
14894 (class cutu_reader) <has_children>: Remove.
14895
14896 2020-02-08 Tom Tromey <tom@tromey.com>
14897
14898 * dwarf2/expr.c: Rename from dwarf2expr.c.
14899 * dwarf2/expr.h: Rename from dwarf2expr.h.
14900 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14901 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14902 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14903 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14904 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14905 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14906 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14907 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14908 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14909 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14910 * dwarf2/loc.c: Rename from dwarf2loc.c.
14911 * dwarf2/loc.h: Rename from dwarf2loc.h.
14912 * dwarf2/read.c: Rename from dwarf2read.c.
14913 * dwarf2/read.h: Rename from dwarf2read.h.
14914 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14915 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14916 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14917 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14918 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14919 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14920 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14921 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14922 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14923 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14924 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14925 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14926 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14927 Update.
14928 * Makefile.in (COMMON_SFILES): Update.
14929 (HFILES_NO_SRCDIR): Update.
14930
14931 2020-02-08 Tom Tromey <tom@tromey.com>
14932
14933 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14934 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14935
14936 2020-02-08 Tom Tromey <tom@tromey.com>
14937
14938 * dwarf2read.h (struct die_info): Don't declare.
14939
14940 2020-02-08 Tom Tromey <tom@tromey.com>
14941
14942 * dwarf2read.h (die_info_ptr): Remove typedef.
14943
14944 2020-02-08 Tom Tromey <tom@tromey.com>
14945
14946 * dwarf2read.c (read_call_site_scope)
14947 (handle_data_member_location, dwarf2_add_member_fn)
14948 (mark_common_block_symbol_computed, read_common_block)
14949 (attr_to_dynamic_prop, partial_die_info::read)
14950 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14951 (dwarf2_symbol_mark_computed, set_die_type): Update.
14952 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14953 method.
14954 (attr_form_is_block): Don't declare.
14955 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14956
14957 2020-02-08 Tom Tromey <tom@tromey.com>
14958
14959 * dwarf2read.c (dwarf2_find_base_address, )
14960 (read_call_site_scope, rust_containing_type)
14961 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14962 (handle_data_member_location, dwarf2_add_member_fn)
14963 (get_alignment, read_structure_type, process_structure_scope)
14964 (mark_common_block_symbol_computed, read_common_block)
14965 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14966 (partial_die_info::read, read_attribute_value, new_symbol)
14967 (lookup_die_type, dwarf2_get_ref_die_offset)
14968 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14969 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14970 (dwarf2_symbol_mark_computed): Update.
14971 * dwarf2/attribute.h (struct attribute) <value_as_address,
14972 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14973 methods.
14974 (value_as_address, attr_form_is_section_offset)
14975 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14976 * dwarf2/attribute.c (attribute::value_as_address)
14977 (attribute::form_is_section_offset, attribute::form_is_constant)
14978 (attribute::form_is_ref): Now methods.
14979
14980 2020-02-08 Tom Tromey <tom@tromey.com>
14981
14982 * dwarf2read.c (struct attribute, DW_STRING)
14983 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14984 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14985 (attr_form_is_block, attr_form_is_section_offset)
14986 (attr_form_is_constant, attr_form_is_ref): Move.
14987 * dwarf2/attribute.h: New file.
14988 * dwarf2/attribute.c: New file, from dwarf2read.c.
14989 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14990
14991 2020-02-08 Tom Tromey <tom@tromey.com>
14992
14993 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14994 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14995 Move.
14996 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14997 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14998 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14999 abbrev.c.
15000 * dwarf2/abbrev.h: New file.
15001 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15002 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15003
15004 2020-02-08 Tom Tromey <tom@tromey.com>
15005
15006 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15007 (dwarf2_section_size, dwarf2_get_section_info)
15008 (create_signatured_type_table_from_debug_names)
15009 (create_addrmap_from_aranges, read_debug_names_from_section)
15010 (get_gdb_index_contents_from_section, read_comp_unit_head)
15011 (error_check_comp_unit_head, read_abbrev_offset)
15012 (create_debug_type_hash_table, init_cu_die_reader)
15013 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15014 (read_comp_units_from_section, create_cus_hash_table)
15015 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15016 (create_dwp_v2_section, dwarf2_rnglists_process)
15017 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15018 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15019 (read_indirect_string_from_dwz, read_addr_index_1)
15020 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15021 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15022 (fill_in_loclist_baton): Update.
15023 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15024 get_containing_section, get_bfd_owner, get_bfd_section,
15025 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15026 (dwarf2_read_section, get_section_name, get_section_file_name)
15027 (get_containing_section, get_section_bfd_owner)
15028 (get_section_bfd_section, get_section_name, get_section_file_name)
15029 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15030 declare.
15031 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15032 (dwarf2_section_info::get_bfd_owner)
15033 (dwarf2_section_info::get_bfd_section)
15034 (dwarf2_section_info::get_name)
15035 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15036 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15037 (dwarf2_section_info::read): Now methods.
15038 * dwarf-index-write.c (class debug_names): Update.
15039
15040 2020-02-08 Tom Tromey <tom@tromey.com>
15041
15042 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15043 Move to dwarf2/section.h.
15044 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15045 (get_section_bfd_section, get_section_name)
15046 (get_section_file_name, get_section_id, get_section_flags)
15047 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15048 dwarf2/section.c.
15049 * dwarf2/section.h: New file.
15050 * dwarf2/section.c: New file, from dwarf2read.c.
15051 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15052
15053 2020-02-08 Tom Tromey <tom@tromey.com>
15054
15055 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15056 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15057 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15058 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15059 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15060 * dwarf2/leb.h: New file, from dwarf2read.c.
15061 * dwarf2/leb.c: New file, from dwarf2read.c.
15062 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15063 Remove.
15064 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15065 (COMMON_SFILES): Add dwarf2/leb.c.
15066
15067 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15068
15069 GDB 9.1 released.
15070
15071 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15072
15073 PR gdb/25190:
15074 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15075 * gdb/remote.c (remote_console_output): Update.
15076 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15077 (ui_file_puts): ...this.
15078 * gdb/ui-file.h (ui_file_puts): Add declaration.
15079 * gdb/utils.c (emit_style_escape): Update.
15080 (flush_wrap_buffer): Update.
15081 (fputs_maybe_filtered): Update.
15082 (fputs_unfiltered): Add function.
15083
15084 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15085
15086 * gdb/event-loop.c (gdb_wait_for_event): Update.
15087 * gdb/printcmd.c (printf_command): Update.
15088 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15089 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15090 (gdb_os_flush_stderr): Update.
15091 * gdb/remote.c (remote_console_output): Update.
15092 * gdb/ui-file.c (gdb_flush): Rename to...
15093 (ui_file_flush): ...this.
15094 (stderr_file::write): Update.
15095 (stderr_file::puts): Update.
15096 * gdb/ui-file.h (gdb_flush): Rename to...
15097 (ui_file_flush): ...this.
15098 * gdb/utils.c (gdb_flush): Add function.
15099 * gdb/utils.h (gdb_flush): Add declaration.
15100
15101 2020-02-07 Tom Tromey <tromey@adacore.com>
15102
15103 PR breakpoints/24915:
15104 * source.c (find_and_open_source): Do not check basenames_may_differ.
15105
15106 2020-02-07 Tom Tromey <tom@tromey.com>
15107
15108 * README: Update gdbserver documentation.
15109 * gdbserver: Move to top level.
15110 * configure.tgt (build_gdbserver): Remove.
15111 * configure.ac: Remove --enable-gdbserver.
15112 * configure: Rebuild.
15113 * Makefile.in (distclean): Don't mention gdbserver.
15114
15115 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15116
15117 * source-cache.c (source_cache::ensure): Surround
15118 get_plain_source_lines with a try/catch.
15119 (source_cache::get_line_charpos): Get rid of try/catch
15120 and only check for the return value of "ensure".
15121 * tui/tui-source.c (tui_source_window::set_contents):
15122 Simplify "nlines" calculation.
15123
15124 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15125
15126 * MAINTAINERS (Write After Approval): Add myself.
15127
15128 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15129
15130 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15131 function call.
15132
15133 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15134
15135 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15136
15137 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15138
15139 * nat/riscv-linux-tdesc.h: New file.
15140 * nat/riscv-linux-tdesc.c: New file, taking code from...
15141 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15142 ... here.
15143 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15144 NATDEPFILES.
15145
15146 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15147
15148 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15149 we don't set the fake simulator ptid to the null_ptid.
15150
15151 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15152
15153 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15154 * gdbthread.h (class thread_info) <resumed>: Likewise.
15155 * infrun.c (resume_1): Likewise.
15156 (proceed): Likewise.
15157 (infrun_thread_stop_requested): Likewise.
15158 (stop_all_threads): Likewise.
15159 (handle_inferior_event): Likewise.
15160 (restart_threads): Likewise.
15161 (finish_step_over): Likewise.
15162 (keep_going_stepped_thread): Likewise.
15163 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15164 (linux_handle_extended_wait): Likewise.
15165 * record-btrace.c (get_thread_current_frame_id): Likewise.
15166 * record-full.c (record_full_wait_1): Likewise.
15167 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15168 * target.c (target_resume): Likewise.
15169 * thread.c (set_running_thread): Likewise.
15170
15171 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15172
15173 * f-valprint.c (f77_print_array_1): Changed datatype of index
15174 variable to LONGEST from int to enable it to contain bound
15175 values correctly.
15176
15177 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15178
15179 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15180 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15181 offsets according to FLEN determined.
15182 (riscv_linux_nat_target::read_description): Determine FLEN
15183 dynamically.
15184 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15185 according to FLEN determined.
15186 (riscv_linux_nat_target::store_registers): Likewise.
15187
15188 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15189
15190 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15191 when reg->group is empty and reggroup is not.
15192
15193 2020-01-31 Tom Tromey <tromey@adacore.com>
15194
15195 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15196 Call beneath target's mourn_inferior after unpushing.
15197
15198 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15199
15200 PR tui/9765
15201 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15202 have enough lines to fill the screen, still return the lowest
15203 address we found.
15204
15205 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15206
15207 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15208 '-', '<', and '>' commands.
15209
15210 2020-01-29 Pedro Alves <palves@redhat.com>
15211 Sergio Durigan Junior <sergiodj@redhat.com>
15212
15213 * infcmd.c (construct_inferior_arguments): Assert that
15214 'argc' is greater than 0.
15215
15216 2020-01-29 Luis Machado <luis.machado@linaro.org>
15217
15218 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15219 (BRK_INSN_MASK): Define to 0xd4200000.
15220 (aarch64_program_breakpoint_here_p): New function.
15221 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15222 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15223 breakpoint.c.
15224 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15225 breakpoint.h
15226 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15227 call gdbarch_program_breakpoint_here_p.
15228 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15229 default_program_breakpoint_here_p, changed return type to bool and
15230 simplified.
15231 * breakpoint.h (program_breakpoint_here): Moved prototype to
15232 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15233 return type to bool.
15234 * gdbarch.c: Regenerate.
15235 * gdbarch.h: Regenerate.
15236 * gdbarch.sh (program_breakpoint_here_p): New method.
15237 * infrun.c (handle_signal_stop): Call
15238 gdbarch_program_breakpoint_here_p.
15239
15240 2020-01-26 Tom Tromey <tom@tromey.com>
15241
15242 * ctfread.c (struct ctf_fp_info): Reindent.
15243 (_initialize_ctfread): Remove.
15244
15245 2020-01-26 Tom Tromey <tom@tromey.com>
15246
15247 * psymtab.c (partial_map_expand_apply)
15248 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15249 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15250 (psym_print_stats, psym_expand_symtabs_for_function)
15251 (psym_map_symbol_filenames, psym_map_matching_symbols)
15252 (psym_expand_symtabs_matching)
15253 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15254 (maintenance_check_psymtabs): Use new methods.
15255 * psympriv.h (struct partial_symtab) <readin_p,
15256 get_compunit_symtab>: New methods.
15257 <readin, compunit_symtab>: Remove members.
15258 (struct standard_psymtab): New.
15259 (struct legacy_psymtab): Derive from standard_psymtab.
15260 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15261 standard_psymtab.
15262 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15263
15264 2020-01-26 Tom Tromey <tom@tromey.com>
15265
15266 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15267 read_dependencies. Add assert.
15268 * psymtab.c (partial_symtab::read_dependencies): New method.
15269 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15270 method.
15271 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15272 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15273 read_dependencies.
15274 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15275 Add assert.
15276
15277 2020-01-26 Tom Tromey <tom@tromey.com>
15278
15279 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15280 Call expand_psymtab.
15281 (xcoff_read_symtab): Call expand_psymtab.
15282 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15283 legacy_expand_psymtab.
15284 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15285 method.
15286 (struct legacy_psymtab) <expand_psymtab>: Implement.
15287 <legacy_expand_psymtab>: New member.
15288 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15289 (parse_partial_symbols): Set legacy_expand_psymtab.
15290 (psymtab_to_symtab_1): Change argument order. Call
15291 expand_psymtab.
15292 (new_psymtab): Set legacy_expand_psymtab.
15293 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15294 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15295 expand_psymtab.
15296 (dwarf2_psymtab::expand_psymtab): Rename from
15297 psymtab_to_symtab_1. Call expand_psymtab.
15298 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15299 (dbx_end_psymtab): Likewise.
15300 (dbx_psymtab_to_symtab_1): Change argument order. Call
15301 expand_psymtab.
15302 (dbx_read_symtab): Call expand_psymtab.
15303 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15304 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15305 (ctf_psymtab::read_symtab): Call expand_psymtab.
15306
15307 2020-01-26 Tom Tromey <tom@tromey.com>
15308
15309 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15310 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15311 messages.
15312 * mdebugread.c (mdebug_read_symtab): Remove prints.
15313 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15314 assert.
15315 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15316
15317 2020-01-26 Tom Tromey <tom@tromey.com>
15318
15319 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15320 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15321 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15322 legacy_symtab.
15323 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15324 * psymtab.c (psymtab_to_symtab): Call method.
15325 (dump_psymtab): Update.
15326 * psympriv.h (struct partial_symtab): Add virtual destructor.
15327 <read_symtab>: New method.
15328 (struct legacy_symtab): New.
15329 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15330 (struct pst_map) <pst>: Now a legacy_psymtab.
15331 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15332 (new_psymtab): Use legacy_psymtab.
15333 * dwarf2read.h (struct dwarf2_psymtab): New.
15334 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15335 * dwarf2read.c (dwarf2_create_include_psymtab)
15336 (dwarf2_build_include_psymtabs, create_type_unit_group)
15337 (create_partial_symtab, process_psymtab_comp_unit_reader)
15338 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15339 (set_partial_user): Use dwarf2_psymtab.
15340 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15341 (psymtab_to_symtab_1, process_full_comp_unit)
15342 (process_full_type_unit, dwarf2_ranges_read)
15343 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15344 (dwarf_decode_lines): Use dwarf2_psymtab.
15345 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15346 (add_address_entry_worker, write_one_signatured_type)
15347 (recursively_count_psymbols, recursively_write_psymbols)
15348 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15349 (write_debug_names): Likewise.
15350 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15351 <pst>: Now a legacy_psymtab.
15352 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15353 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15354 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15355 * ctfread.c (struct ctf_psymtab): New.
15356 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15357 ctf_psymtab.
15358 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15359 (create_partial_symtab): Return a ctf_psymtab.
15360 (scan_partial_symbols): Update.
15361
15362 2020-01-26 Tom Tromey <tom@tromey.com>
15363
15364 * xcoffread.c (xcoff_start_psymtab): Use new.
15365 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15366 renamed from start_psymtab_common.
15367 * psympriv.h (struct partial_symtab): Add new constructor.
15368 (start_psymtab_common): Don't declare.
15369 * mdebugread.c (parse_partial_symbols): Use new.
15370 * dwarf2read.c (create_partial_symtab): Use new.
15371 * dbxread.c (start_psymtab): Use new.
15372 * ctfread.c (create_partial_symtab): Use new.
15373
15374 2020-01-26 Tom Tromey <tom@tromey.com>
15375
15376 * xcoffread.c (xcoff_end_psymtab): Use new.
15377 * psymtab.c (start_psymtab_common): Use new.
15378 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15379 Update.
15380 * psympriv.h (struct partial_symtab): Add parameters to
15381 constructor. Don't inline.
15382 (allocate_psymtab): Don't declare.
15383 * mdebugread.c (new_psymtab): Use new.
15384 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15385 * dbxread.c (dbx_end_psymtab): Use new.
15386
15387 2020-01-26 Tom Tromey <tom@tromey.com>
15388
15389 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15390 allocate_psymtab. Update documentation.
15391 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15392 allocate_psymtab. Do not use new.
15393 (allocate_psymtab): Use new. Update.
15394
15395 2020-01-26 Tom Tromey <tom@tromey.com>
15396
15397 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15398 * psymtab.c (psym_print_stats): Update.
15399 * psympriv.h (struct partial_symtab) <readin,
15400 psymtabs_addrmap_supported, anonymous>: Now bool.
15401 * mdebugread.c (psymtab_to_symtab_1): Update.
15402 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15403 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15404 (process_full_comp_unit, process_full_type_unit): Update.
15405 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15406 * ctfread.c (psymtab_to_symtab): Update.
15407
15408 2020-01-26 Tom Tromey <tom@tromey.com>
15409
15410 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15411 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15412 * psymtab.c (psymtab_storage): Delete psymtabs.
15413 (psymtab_storage::allocate_psymtab): Use new.
15414 (psymtab_storage::discard_psymtab): Use delete.
15415 * psympriv.h (struct partial_symtab): Add constructor and
15416 initializers.
15417
15418 2020-01-26 Tom Tromey <tom@tromey.com>
15419
15420 * machoread.c: Do not include psympriv.h.
15421
15422 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15423
15424 * NEWS: Mention the new option and the set/show commands.
15425
15426 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15427
15428 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15429 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15430 (validate_exec_file): New variables, enums, functions.
15431 (exec_file_locate_attach, print_section_info): Style the filenames.
15432 (_initialize_exec): Install show_exec_file_mismatch_command and
15433 set_exec_file_mismatch_command.
15434 * gdbcore.h (validate_exec_file): Declare.
15435 * infcmd.c (attach_command): Call validate_exec_file.
15436 * remote.c ( remote_target::remote_add_inferior): Likewise.
15437
15438 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15439
15440 * frame.c (find_frame_sal): Move call to get_next_frame into more
15441 inner scope.
15442 * inline-frame.c (inilne_state) <inline_state>: Update argument
15443 types.
15444 (inilne_state) <skipped_symbol>: Rename to...
15445 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15446 (skip_inline_frames): Build vector of skipped symbols and use this
15447 to reate the inline_state.
15448 (inline_skipped_symbol): Add a comment and some assertions, fetch
15449 skipped symbol from the list.
15450
15451 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15452
15453 * buildsym.c (lte_is_less_than): Delete.
15454 (buildsym_compunit::end_symtab_with_blockvector): Create local
15455 lambda function to sort line table entries, and use
15456 std::stable_sort instead of std::sort.
15457 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15458 markers when looking for a previous line.
15459
15460 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15461
15462 * dwarf2read.c (lnp_state_machine::record_line): Include
15463 end_sequence parameter in debug print out. Record the line if we
15464 are at an end_sequence marker even if it's not the start of a
15465 statement.
15466 * symmisc.c (maintenance_print_one_line_table): Print end of
15467 sequence markers with 'END' not '0'.
15468
15469 2020-01-24 Pedro Alves <palves@redhat.com>
15470
15471 PR gdb/25410
15472 * thread.c (scoped_restore_current_thread::restore): Use
15473 switch_to_inferior_no_thread.
15474 * exec.c: Include "progspace-and-thread.h".
15475 (add_target_sections, remove_target_sections):
15476 scoped_restore_current_pspace_and_thread instead of
15477 scoped_restore_current_thread.
15478 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15479 and aspace to the inferior before calling clone_program_space.
15480 Remove stale comment.
15481
15482 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15483
15484 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15485 (arm_netbsd_nat_target::fetch_registers): ...this.
15486 (arm_nbsd_nat_target::store_registers): Rename to...
15487 (arm_netbsd_nat_target::store_registers): ...this.
15488
15489 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15490
15491 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15492 register_t.
15493
15494 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15495
15496 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15497 Update comment.
15498 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15499 Likewise.
15500 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15501 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15502 the correct replacement (iterate_over_regset_sections).
15503 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15504 Update comment.
15505
15506 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15507
15508 PR gdb/23718
15509 * gdb/python/python.c (execute_gdb_command): Call
15510 async_enable_stdin in catch block.
15511
15512 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15513
15514 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15515 SWITCH_THRU_ALL_UIS.
15516
15517 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15518
15519 PR tui/9765
15520 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15521 comment, add extra parameter, and update to store previous symbol
15522 when appropriate.
15523 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15524 add extra parameter.
15525 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15526 remove unneeded parameter, add try/catch around gdb_print_insn,
15527 rewrite to add items to asm_lines vector.
15528 (tui_find_backward_disassembly_start_address): New function.
15529 (tui_find_disassembly_address): Updated throughout.
15530 (tui_disasm_window::set_contents): Update for changes to
15531 tui_disassemble.
15532 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15533 number of lines to scroll.
15534
15535 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15536
15537 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15538 (SECT_OFF_DATA): Likewise.
15539 (SECT_OFF_RODATA): Likewise.
15540 (SECT_OFF_TEXT): Likewise.
15541 (SECT_OFF_BSS): Likewise.
15542 (struct objfile) <text_section_offset, data_section_offset>: New
15543 methods.
15544 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15545 objfile::text_section_offset.
15546 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15547 * coffread.c (coff_symtab_read): Likewise.
15548 (enter_linenos): Likewise.
15549 (process_coff_symbol): Likewise.
15550 * ctfread.c (get_objfile_text_range): Likewise.
15551 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15552 Use objfile::data_section_offset.
15553 * dwarf2-frame.c (execute_cfa_program): Use
15554 objfile::text_section_offset.
15555 (dwarf2_frame_find_fde): Likewise.
15556 * dwarf2read.c (create_addrmap_from_index): Likewise.
15557 (create_addrmap_from_aranges): Likewise.
15558 (dw2_find_pc_sect_compunit_symtab): Likewise.
15559 (process_psymtab_comp_unit_reader): Likewise.
15560 (add_partial_symbol): Likewise.
15561 (add_partial_subprogram): Likewise.
15562 (process_full_comp_unit): Likewise.
15563 (read_file_scope): Likewise.
15564 (read_func_scope): Likewise.
15565 (read_lexical_block_scope): Likewise.
15566 (read_call_site_scope): Likewise.
15567 (dwarf2_rnglists_process): Likewise.
15568 (dwarf2_ranges_process): Likewise.
15569 (dwarf2_ranges_read): Likewise.
15570 (dwarf_decode_lines_1): Likewise.
15571 (new_symbol): Likewise.
15572 (dwarf2_fetch_die_loc_sect_off): Likewise.
15573 (dwarf2_per_cu_text_offset): Likewise.
15574 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15575 * hppa-tdep.c (read_unwind_info): Likewise.
15576 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15577 * psympriv.h (struct partial_symtab): Likewise.
15578 * psymtab.c (find_pc_sect_psymtab): Likewise.
15579 * solib-svr4.c (enable_break): Likewise.
15580 * stap-probe.c (relocate_address): Use
15581 objfile::data_section_offset.
15582 * xcoffread.c (enter_line_range): Use
15583 objfile::text_section_offset.
15584 (read_xcoff_symtab): Likewise.
15585
15586 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15587
15588 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15589 declaration to narrower scopes.
15590
15591 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15592
15593 * darwin-nat.h (struct darwin_exception_msg, enum
15594 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15595 Move up.
15596 (class darwin_nat_target) <wait_1, check_new_threads,
15597 decode_exception_message, decode_message, stop_inferior,
15598 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15599 * darwin-nat.c (darwin_check_new_threads): Rename to...
15600 (darwin_nat_target::check_new_threads): ... this.
15601 (darwin_suspend_inferior_it): Remove.
15602 (darwin_decode_exception_message): Rename to...
15603 (darwin_nat_target::decode_exception_message): ... this.
15604 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15605 (darwin_decode_message): Rename to...
15606 (darwin_nat_target::decode_message): ... this.
15607 (cancel_breakpoint): Rename to...
15608 (darwin_nat_target::cancel_breakpoint): ... this.
15609 (darwin_wait): Rename to...
15610 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15611 instead of iterate_over_inferiors.
15612 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15613 (darwin_stop_inferior): Rename to...
15614 (darwin_nat_target::stop_inferior): ... this.
15615 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15616 (darwin_init_thread_list): Rename to...
15617 (darwin_nat_target::init_thread_list): ... this.
15618 (darwin_ptrace_him): Rename to...
15619 (darwin_nat_target::ptrace_him): ... this.
15620 (darwin_nat_target::create_inferior): Pass lambda function to
15621 fork_inferior.
15622 (darwin_nat_target::detach): Call stop_inferior instead of
15623 darwin_stop_inferior.
15624 * fork-inferior.h (fork_inferior): Change init_trace_fun
15625 parameter to gdb::function_view.
15626 * fork-inferior.c (fork_inferior): Likewise.
15627
15628 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15629
15630 * i386-cygwin-tdep.c (core_process_module_section): Update.
15631 * windows-nat.c (struct lm_info_windows): Add text_offset.
15632 (windows_xfer_shared_libraries): Update.
15633 * windows-tdep.c (windows_xfer_shared_library):
15634 Add text_offset_cached argument.
15635 * windows-tdep.h (windows_xfer_shared_library): Update.
15636
15637 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15638
15639 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15640
15641 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15642
15643 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15644 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15645 replace with range-based for.
15646 (gdbsim_interrupt_inferior): Remove.
15647 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15648 with a range-based for. Inline code from
15649 gdbsim_interrupt_inferior.
15650
15651 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15652
15653 * infrun.c (proceed): Fix indentation.
15654
15655 2020-01-21 Tom Tromey <tromey@adacore.com>
15656
15657 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15658 * python/python.c (python_extension_ops): Update.
15659 (gdbpy_colorize): New function.
15660 * python/lib/gdb/__init__.py (colorize): New function.
15661 * extension.h (ext_lang_colorize): Declare.
15662 * extension.c (ext_lang_colorize): New function.
15663 * extension-priv.h (struct extension_language_ops) <colorize>: New
15664 member.
15665 * cli/cli-style.c (_initialize_cli_style): Update help text.
15666
15667 2020-01-21 Luis Machado <luis.machado@linaro.org>
15668
15669 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15670 <cond>: Change type to bool.
15671 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15672 (aarch64_displaced_step_cb): Likewise.
15673 (aarch64_displaced_step_tb): Likewise.
15674
15675 2020-01-21 Luis Machado <luis.machado@linaro.org>
15676
15677 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15678 output.
15679
15680 2020-01-21 Luis Machado <luis.machado@linaro.org>
15681
15682 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15683 <pc_adjust>: Adjust the documentation.
15684 (aarch64_displaced_step_fixup): Check if PC really moved before
15685 adjusting it.
15686
15687 2020-01-19 Tom Tromey <tom@tromey.com>
15688
15689 * disasm.c (~gdb_disassembler): New destructor.
15690 (gdb_buffered_insn_length): Call disassemble_free_target.
15691 * disasm.h (class gdb_disassembler): Declare destructor. Use
15692 DISABLE_COPY_AND_ASSIGN.
15693
15694 2020-01-19 Tom Tromey <tom@tromey.com>
15695
15696 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15697 (die_reader_func_ftype): Remove.
15698 (cutu_reader): New class.
15699 (dw2_get_file_names_reader): Remove "data" parameter.
15700 (dw2_get_file_names): Use cutu_reader.
15701 (create_debug_type_hash_table): Update.
15702 (read_cutu_die_from_dwo): Update comment.
15703 (lookup_dwo_unit): Add dwo_name parameter.
15704 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15705 die_reader_func_ftype and data parameters.
15706 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15707 Remove die_reader_func_ftype and data parameters.
15708 (~cutu_reader): New; from init_cutu_and_read_dies.
15709 (cutu_reader::cutu_reader): Rename from
15710 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15711 and data parameters.
15712 (init_cutu_and_read_dies_simple): Remove.
15713 (struct process_psymtab_comp_unit_data): Remove.
15714 (process_psymtab_comp_unit_reader): Remove data parameter; add
15715 want_partial_unit and pretend_language parameters.
15716 (process_psymtab_comp_unit): Use cutu_reader.
15717 (build_type_psymtabs_reader): Remove data parameter.
15718 (build_type_psymtabs_1): Use cutu_reader.
15719 (process_skeletonless_type_unit): Likewise.
15720 (load_partial_comp_unit_reader): Remove.
15721 (load_partial_comp_unit): Use cutu_reader.
15722 (load_full_comp_unit_reader): Remove.
15723 (load_full_comp_unit): Use cutu_reader.
15724 (struct create_dwo_cu_data): Remove.
15725 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15726 dwo_unit parameters.
15727 (create_cus_hash_table): Use cutu_reader.
15728 (struct dwarf2_read_addr_index_data): Remove.
15729 (dwarf2_read_addr_index_reader): Remove.
15730 (dwarf2_read_addr_index): Use cutu_reader.
15731 (read_signatured_type_reader): Remove.
15732 (read_signatured_type): Use cutu_reader.
15733
15734 2020-01-19 Tom Tromey <tom@tromey.com>
15735
15736 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15737 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15738 (tui_wrefresh): Declare.
15739 * tui/tui-wingeneral.c (suppress_output): New global.
15740 (tui_suppress_output, ~tui_suppress_output): New constructor and
15741 destructor.
15742 (tui_wrefresh): New function.
15743 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15744 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15745 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15746 method.
15747 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15748 tui_wrefresh.
15749 (tui_data_window::no_refresh): New method.
15750 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15751 (tui_reg_command): Use tui_suppress_output
15752 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15753 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15754 method.
15755 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15756
15757 2020-01-19 Tom Tromey <tom@tromey.com>
15758
15759 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15760 Handle case where symtab is null.
15761
15762 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15763
15764 * linux-fork.c (one_fork_p): Simplify.
15765
15766 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15767
15768 * top.c (struct qt_args): Remove.
15769 (kill_or_detach): Change return type to void, replace `void *`
15770 parameter with a proper one.
15771 (print_inferior_quit_action): Likewise.
15772 (quit_confirm): Use range-based for loop to iterate over inferiors.
15773 (quit_force): Likewise.
15774
15775 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15776
15777 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15778 `void *` parameter with proper parameters.
15779 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15780 (print_one_inferior): Change return type to void, replace `void *`
15781 parameter with proper parameters.
15782 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15783 inferiors.
15784 (get_other_inferior): Remove.
15785 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15786 inferiors.
15787
15788 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15789
15790 * mi/mi-interp.c (report_initial_inferior): Remove.
15791 (mi_interp::init): Use range-based for to iterate over inferiors.
15792
15793 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15794
15795 * python/py-inferior.c (build_inferior_list): Remove.
15796 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15797
15798 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15799
15800 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15801 (btrace_stitch_trace): Likewise.
15802 * charset.c (intermediate_encoding): Likewise (vaild).
15803 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15804 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15805 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15806
15807 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15808
15809 * windows-tdep.c (windows_get_tlb_type):
15810 Add rtl_user_process_parameters type.
15811
15812 2020-01-16 Pedro Alves <palves@redhat.com>
15813 Norbert Lange <nolange79@gmail.com>
15814
15815 PR build/24805
15816 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15817 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15818 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15819 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15820 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15821 (ps_plog): Redeclare exported functions with default visibility.
15822
15823 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15824
15825 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15826 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15827
15828 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15829
15830 * infcmd.c (post_create_inferior): Use get_thread_regcache
15831 instead of get_current_regcache.
15832
15833 2020-01-14 Tom Tromey <tom@tromey.com>
15834
15835 PR symtab/12535:
15836 * python/python.c (gdbpy_decode_line): Treat empty string the same
15837 as no argument.
15838
15839 2020-01-14 Tom Tromey <tom@tromey.com>
15840
15841 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15842
15843 2020-01-14 Tom Tromey <tom@tromey.com>
15844
15845 * nat/linux-btrace.c: Don't include <config.h>.
15846 * nat/linux-ptrace.c: Don't include <config.h>.
15847 * nat/x86-linux-dregs.c: Don't include <config.h>.
15848
15849 2020-01-14 Tom Tromey <tom@tromey.com>
15850
15851 * configure: Rebuild.
15852 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15853
15854 2020-01-14 Tom Tromey <tom@tromey.com>
15855
15856 * nat/x86-linux-dregs.c: Include configh.h.
15857 * nat/linux-ptrace.c: Include configh.h.
15858 * nat/linux-btrace.c: Include configh.h.
15859 * defs.h: Include config.h, bfd.h.
15860 * configure.ac: Don't source common.host.
15861 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15862 * configure: Rebuild.
15863 * acinclude.m4: Update path.
15864 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15865 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15866 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15867 (CLIBS): Add LIBSUPPORT.
15868 (CDEPS): Likewise.
15869 (COMMON_SFILES): Remove gdbsupport files.
15870 (HFILES_NO_SRCDIR): Likewise.
15871 (stamp-version): Update path to create-version.sh.
15872 (ALLDEPFILES): Remove gdbsupport files.
15873
15874 2020-01-14 Tom Tromey <tom@tromey.com>
15875
15876 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15877 USE_WIN32API when needed.
15878 * configure.ac (USE_WIN32API): Don't define.
15879 (WIN32LIBS): Use WIN32APILIBS.
15880 * configure: Rebuild.
15881
15882 2020-01-14 Tom Tromey <tom@tromey.com>
15883
15884 * configure: Rebuild.
15885 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15886
15887 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15888
15889 * skip.c (skip_function_command): Make skip w/o arguments use the
15890 name of the inlined function if pc is inside any inlined function.
15891
15892 2020-01-14 Luis Machado <luis.machado@linaro.org>
15893
15894 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15895 * infrun.c (resume_1): Likewise.
15896 (handle_inferior_event): Remove stale comment.
15897 * linux-nat.c (linux_nat_target::resume): Update comments.
15898 (save_stop_reason): Likewise.
15899 (linux_nat_filter_event): Likewise.
15900 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15901
15902 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15903
15904 * elfread.c (record_minimal_symbol): Set section index to 0 for
15905 non-allocatable sections.
15906
15907
15908 2020-01-13 Ali Tamur <tamur@google.com>
15909
15910 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15911 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15912 to gdb::optional. Update comments.
15913 (dwo_file): Update comments.
15914 (read_attribute): Update API to take an additional out parameter,
15915 need_reprocess. This is used to mark attributes that need other
15916 attributes (e.g. str_offsets_base) for correct computation which may not
15917 have been read yet.
15918 (read_attribute_reprocess): New function declaration.
15919 (read_addr_index): Likewise.
15920 (read_dwo_str_index): Likewise.
15921 (read_stub_str_index): Likewise.
15922 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15923 (lookup_addr_base): New function definition.
15924 (lookup_ranges_base): Likewise.
15925 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15926 lookup_ranges_base.
15927 (init_cutu_and_read_dies): Update comments.
15928 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15929 unit. This is used to inherit parent's str_offsets_base and addr_base.
15930 Update comments.
15931 (init_cutu_and_read_dies_simple): Reflect API changes.
15932 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15933 (create_cus_hash_table): Change API to take parent compile unit.
15934 Reflect API changes.
15935 (open_and_init_dwo_file): Reflect API changes.
15936 (dwarf2_get_pc_bounds): Update comments.
15937 (dwarf2_record_block_ranges): Likewise.
15938 (read_full_die_1): Change implementation to reprocess attributes that
15939 need str_offsets_base and addr_base.
15940 (partial_die_info::read): Likewise.
15941 (read_attribute_reprocess): New function definition.
15942 (read_attribute_value): Change API to take an additional out parameter,
15943 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15944 when a non-dwo compile unit has index based attributes.
15945 (read_attribute): Reflect API changes.
15946 (read_addr_index_1): Reflect API changes. Update comments.
15947 (dwarf2_read_addr_index_data): Reflect API changes.
15948 (dwarf2_read_addr_index): Likewise.
15949 (read_str_index): Change API and implementation. This becomes a helper
15950 to be used by the new string index related methods. Update error
15951 message and comments.
15952 (read_dwo_str_index): New function definition.
15953 (read_stub_str_index): Likewise.
15954 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15955 * symfile.h (dwarf2_debug_sections): Likewise.
15956 * xcoffread.c (dwarf2_debug_sections): Likewise.
15957
15958 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15959
15960 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15961 core_reg_sect type to gdb_byte *.
15962 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15963 * cris-tdep.c (fetch_core_registers): Likewise.
15964 * corelow.c (core_target::get_core_register_section): Change
15965 type of `contents` to gdb::byte_vector.
15966
15967 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15968
15969 * tui/tui-wingeneral.c (box_win): Position the title in the center
15970 of the border.
15971
15972 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15973
15974 * corelow.c (core_target::get_core_register_section): Use
15975 std::vector instead of alloca.
15976
15977 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15978
15979 * warning.m4: Add -Wmissing-declarations to build_warnings.
15980 * configure: Re-generate.
15981
15982 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15983
15984 * python/python.c (init__gdb_module): Add declaration.
15985
15986 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15987
15988 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15989 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15990 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15991 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15992 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15993 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15994 * ada-exp.y (_initialize_ada_exp): Add declaration.
15995 * ada-lang.c (_initialize_ada_language): Add declaration.
15996 * ada-tasks.c (_initialize_tasks): Add declaration.
15997 * agent.c (_initialize_agent): Add declaration.
15998 * aix-thread.c (_initialize_aix_thread): Add declaration.
15999 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16000 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16001 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16002 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16003 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16004 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16005 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16006 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16007 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16008 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16009 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16010 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16011 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16012 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16013 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16014 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16015 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16016 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16017 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16018 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16019 * annotate.c (_initialize_annotate): Add declaration.
16020 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16021 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16022 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16023 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16024 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16025 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16026 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16027 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16028 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16029 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16030 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16031 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16032 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16033 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16034 * auto-load.c (_initialize_auto_load): Add declaration.
16035 * auxv.c (_initialize_auxv): Add declaration.
16036 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16037 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16038 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16039 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16040 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16041 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16042 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16043 * breakpoint.c (_initialize_breakpoint): Add declaration.
16044 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16045 * btrace.c (_initialize_btrace): Add declaration.
16046 * charset.c (_initialize_charset): Add declaration.
16047 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16048 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16049 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16050 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16051 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16052 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16053 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16054 * coffread.c (_initialize_coffread): Add declaration.
16055 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16056 * compile/compile.c (_initialize_compile): Add declaration.
16057 * complaints.c (_initialize_complaints): Add declaration.
16058 * completer.c (_initialize_completer): Add declaration.
16059 * copying.c (_initialize_copying): Add declaration.
16060 * corefile.c (_initialize_core): Add declaration.
16061 * corelow.c (_initialize_corelow): Add declaration.
16062 * cp-abi.c (_initialize_cp_abi): Add declaration.
16063 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16064 * cp-support.c (_initialize_cp_support): Add declaration.
16065 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16066 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16067 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16068 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16069 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16070 * ctfread.c (_initialize_ctfread): Add declaration.
16071 * d-lang.c (_initialize_d_language): Add declaration.
16072 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16073 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16074 * dbxread.c (_initialize_dbxread): Add declaration.
16075 * dcache.c (_initialize_dcache): Add declaration.
16076 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16077 * disasm.c (_initialize_disasm): Add declaration.
16078 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16079 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16080 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16081 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16082 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16083 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16084 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16085 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16086 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16087 * elfread.c (_initialize_elfread): Add declaration.
16088 * exec.c (_initialize_exec): Add declaration.
16089 * extension.c (_initialize_extension): Add declaration.
16090 * f-lang.c (_initialize_f_language): Add declaration.
16091 * f-valprint.c (_initialize_f_valprint): Add declaration.
16092 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16093 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16094 * filesystem.c (_initialize_filesystem): Add declaration.
16095 * findcmd.c (_initialize_mem_search): Add declaration.
16096 * findvar.c (_initialize_findvar): Add declaration.
16097 * fork-child.c (_initialize_fork_child): Add declaration.
16098 * frame-base.c (_initialize_frame_base): Add declaration.
16099 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16100 * frame.c (_initialize_frame): Add declaration.
16101 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16102 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16103 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16104 * gcore.c (_initialize_gcore): Add declaration.
16105 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16106 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16107 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16108 * gdbarch.c (_initialize_gdbarch): Add declaration.
16109 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16110 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16111 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16112 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16113 * go-lang.c (_initialize_go_language): Add declaration.
16114 * go32-nat.c (_initialize_go32_nat): Add declaration.
16115 * guile/guile.c (_initialize_guile): Add declaration.
16116 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16117 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16118 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16119 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16120 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16121 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16122 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16123 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16124 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16125 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16126 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16127 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16128 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16129 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16130 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16131 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16132 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16133 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16134 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16135 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16136 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16137 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16138 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16139 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16140 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16141 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16142 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16143 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16144 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16145 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16146 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16147 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16148 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16149 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16150 * infcall.c (_initialize_infcall): Add declaration.
16151 * infcmd.c (_initialize_infcmd): Add declaration.
16152 * inflow.c (_initialize_inflow): Add declaration.
16153 * infrun.c (_initialize_infrun): Add declaration.
16154 * interps.c (_initialize_interpreter): Add declaration.
16155 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16156 * jit.c (_initialize_jit): Add declaration.
16157 * language.c (_initialize_language): Add declaration.
16158 * linux-fork.c (_initialize_linux_fork): Add declaration.
16159 * linux-nat.c (_initialize_linux_nat): Add declaration.
16160 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16161 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16162 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16163 * m2-lang.c (_initialize_m2_language): Add declaration.
16164 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16165 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16166 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16167 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16168 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16169 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16170 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16171 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16172 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16173 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16174 * machoread.c (_initialize_machoread): Add declaration.
16175 * macrocmd.c (_initialize_macrocmd): Add declaration.
16176 * macroscope.c (_initialize_macroscope): Add declaration.
16177 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16178 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16179 * maint.c (_initialize_maint_cmds): Add declaration.
16180 * mdebugread.c (_initialize_mdebugread): Add declaration.
16181 * memattr.c (_initialize_mem): Add declaration.
16182 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16183 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16184 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16185 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16186 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16187 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16188 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16189 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16190 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16191 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16192 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16193 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16194 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16195 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16196 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16197 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16198 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16199 * mipsread.c (_initialize_mipsread): Add declaration.
16200 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16201 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16202 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16203 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16204 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16205 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16206 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16207 * nto-procfs.c (_initialize_procfs): Add declaration.
16208 * objc-lang.c (_initialize_objc_language): Add declaration.
16209 * observable.c (_initialize_observer): Add declaration.
16210 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16211 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16212 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16213 * osabi.c (_initialize_gdb_osabi): Add declaration.
16214 * osdata.c (_initialize_osdata): Add declaration.
16215 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16216 * parse.c (_initialize_parse): Add declaration.
16217 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16218 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16219 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16220 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16221 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16222 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16223 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16224 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16225 * printcmd.c (_initialize_printcmd): Add declaration.
16226 * probe.c (_initialize_probe): Add declaration.
16227 * proc-api.c (_initialize_proc_api): Add declaration.
16228 * proc-events.c (_initialize_proc_events): Add declaration.
16229 * proc-service.c (_initialize_proc_service): Add declaration.
16230 * procfs.c (_initialize_procfs): Add declaration.
16231 * producer.c (_initialize_producer): Add declaration.
16232 * psymtab.c (_initialize_psymtab): Add declaration.
16233 * python/python.c (_initialize_python): Add declaration.
16234 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16235 * record-btrace.c (_initialize_record_btrace): Add declaration.
16236 * record-full.c (_initialize_record_full): Add declaration.
16237 * record.c (_initialize_record): Add declaration.
16238 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16239 * regcache.c (_initialize_regcache): Add declaration.
16240 * reggroups.c (_initialize_reggroup): Add declaration.
16241 * remote-notif.c (_initialize_notif): Add declaration.
16242 * remote-sim.c (_initialize_remote_sim): Add declaration.
16243 * remote.c (_initialize_remote): Add declaration.
16244 * reverse.c (_initialize_reverse): Add declaration.
16245 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16246 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16247 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16248 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16249 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16250 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16251 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16252 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16253 Add declaration.
16254 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16255 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16256 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16257 * rust-exp.y (_initialize_rust_exp): Add declaration.
16258 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16259 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16260 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16261 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16262 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16263 * score-tdep.c (_initialize_score_tdep): Add declaration.
16264 * ser-go32.c (_initialize_ser_dos): Add declaration.
16265 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16266 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16267 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16268 * ser-uds.c (_initialize_ser_socket): Add declaration.
16269 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16270 * serial.c (_initialize_serial): Add declaration.
16271 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16272 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16273 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16274 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16275 * skip.c (_initialize_step_skip): Add declaration.
16276 * sol-thread.c (_initialize_sol_thread): Add declaration.
16277 * solib-aix.c (_initialize_solib_aix): Add declaration.
16278 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16279 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16280 * solib-frv.c (_initialize_frv_solib): Add declaration.
16281 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16282 * solib-target.c (_initialize_solib_target): Add declaration.
16283 * solib.c (_initialize_solib): Add declaration.
16284 * source-cache.c (_initialize_source_cache): Add declaration.
16285 * source.c (_initialize_source): Add declaration.
16286 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16287 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16288 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16289 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16290 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16291 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16292 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16293 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16294 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16295 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16296 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16297 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16298 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16299 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16300 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16301 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16302 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16303 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16304 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16305 * stabsread.c (_initialize_stabsread): Add declaration.
16306 * stack.c (_initialize_stack): Add declaration.
16307 * stap-probe.c (_initialize_stap_probe): Add declaration.
16308 * std-regs.c (_initialize_frame_reg): Add declaration.
16309 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16310 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16311 * symfile.c (_initialize_symfile): Add declaration.
16312 * symmisc.c (_initialize_symmisc): Add declaration.
16313 * symtab.c (_initialize_symtab): Add declaration.
16314 * target.c (_initialize_target): Add declaration.
16315 * target-connection.c (_initialize_target_connection): Add
16316 declaration.
16317 * target-dcache.c (_initialize_target_dcache): Add declaration.
16318 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16319 * thread.c (_initialize_thread): Add declaration.
16320 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16321 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16322 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16323 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16324 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16325 * tracectf.c (_initialize_ctf): Add declaration.
16326 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16327 * tracefile.c (_initialize_tracefile): Add declaration.
16328 * tracepoint.c (_initialize_tracepoint): Add declaration.
16329 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16330 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16331 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16332 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16333 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16334 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16335 * tui/tui.c (_initialize_tui): Add declaration.
16336 * typeprint.c (_initialize_typeprint): Add declaration.
16337 * ui-style.c (_initialize_ui_style): Add declaration.
16338 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16339 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16340 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16341 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16342 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16343 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16344 * unittests/filtered_iterator-selftests.c
16345 (_initialize_filtered_iterator_selftests): Add declaration.
16346 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16347 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16348 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16349 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16350 * unittests/main-thread-selftests.c
16351 (_initialize_main_thread_selftests): Add declaration.
16352 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16353 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16354 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16355 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16356 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16357 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16358 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16359 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16360 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16361 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16362 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16363 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16364 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16365 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16366 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16367 declaration.
16368 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16369 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16370 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16371 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16372 * user-regs.c (_initialize_user_regs): Add declaration.
16373 * utils.c (_initialize_utils): Add declaration.
16374 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16375 * valops.c (_initialize_valops): Add declaration.
16376 * valprint.c (_initialize_valprint): Add declaration.
16377 * value.c (_initialize_values): Add declaration.
16378 * varobj.c (_initialize_varobj): Add declaration.
16379 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16380 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16381 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16382 * windows-nat.c (_initialize_windows_nat): Add declaration.
16383 (_initialize_check_for_gdb_ini): Add declaration.
16384 (_initialize_loadable): Add declaration.
16385 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16386 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16387 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16388 * xcoffread.c (_initialize_xcoffread): Add declaration.
16389 * xml-support.c (_initialize_xml_support): Add declaration.
16390 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16391 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16392 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16393 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16394
16395 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16396
16397 * regformats/regdat.sh: Generate declaration for init function.
16398
16399 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16400
16401 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16402 up.
16403 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16404 close_one_inferior>: New methods.
16405 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16406 pass down target to find_inferior_pid.
16407 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16408 Pass down target to find_inferior_ptid.
16409 (gdbsim_target::create_inferior): Pass down target to
16410 add_thread_silent.
16411 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16412 target down to find_inferior_ptid and switch_to_thread.
16413 (gdbsim_target::close): Update to call close_one_inferior.
16414 (struct resume_data): Remove.
16415 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16416 directly, rather than through a void pointer.
16417 (gdbsim_target::resume): Update to call resume_one_inferior.
16418
16419 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16420
16421 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16422
16423 2020-01-12 Pedro Alves <palves@redhat.com>
16424
16425 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16426 directly for the current inferior instead of
16427 discard_all_inferiors.
16428 (discard_all_inferiors): Delete.
16429
16430 2020-01-11 Tom Tromey <tom@tromey.com>
16431
16432 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16433 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16434 deprecated_safe_get_selected_frame.
16435
16436 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16437
16438 * inferior.c (print_inferior): Switch inferior before printing it.
16439
16440 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16441 Pedro Alves <palves@redhat.com>
16442
16443 * progspace-and-thread.c (switch_to_program_space_and_thread):
16444 Assert there's an inferior for PSPACE. Use
16445 switch_to_inferior_no_thread to switch the inferior too.
16446 * progspace.c (program_space::~program_space): Call
16447 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16448 (program_space::free_all_objfiles): Don't call clear_symtab_users
16449 here.
16450 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16451
16452 2020-01-10 Pedro Alves <palves@redhat.com>
16453
16454 * NEWS: Mention multi-target debugging, "info connections", and
16455 "add-inferior -no-connection".
16456
16457 2020-01-10 Pedro Alves <palves@redhat.com>
16458
16459 * infrun.c: Include "target-connection.h".
16460 (check_multi_target_resumption): New.
16461 (proceed): Call it.
16462 * target-connection.c (make_target_connection_string): Make
16463 extern.
16464 * target-connection.h (make_target_connection_string): Declare.
16465
16466 2020-01-10 Pedro Alves <palves@redhat.com>
16467
16468 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16469 * inferior.c (uiout_field_connection): New function.
16470 (print_inferior): Add new "connection-id" column.
16471 (add_inferior_command): Show connection number/string of added
16472 inferior.
16473 * process-stratum-target.h
16474 (process_stratum_target::connection_string): New virtual method.
16475 (process_stratum_target::connection_number): New field.
16476 * remote.c (remote_target::connection_string): New override.
16477 * target-connection.c: New file.
16478 * target-connection.h: New file.
16479 * target.c (decref_target): Remove process_stratum targets from
16480 the connection list.
16481 (target_stack::push): Add process_stratum targets to the
16482 connection list.
16483
16484 2020-01-10 Pedro Alves <palves@redhat.com>
16485
16486 Revert:
16487 2016-04-12 Pedro Alves <palves@redhat.com>
16488 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16489 Remove references to name.
16490 * serial.h (struct serial) <name>: Delete.
16491
16492 2020-01-10 Pedro Alves <palves@redhat.com>
16493
16494 * gdbarch-selftests.c (register_to_value_test): Remove "target
16495 already pushed" check.
16496
16497 2020-01-10 Pedro Alves <palves@redhat.com>
16498 John Baldwin <jhb@FreeBSD.org>
16499
16500 * aarch64-linux-nat.c
16501 (aarch64_linux_nat_target::thread_architecture): Adjust.
16502 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16503 (task_command_1): Likewise.
16504 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16505 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16506 (aix_thread_target::store_registers)
16507 (aix_thread_target::thread_alive): Adjust.
16508 * amd64-fbsd-tdep.c: Include "inferior.h".
16509 (amd64fbsd_get_thread_local_address): Pass down target.
16510 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16511 thread's gdbarch instead of target_gdbarch.
16512 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16513 get_last_target_status.
16514 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16515 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16516 inferiors.
16517 (update_inserted_breakpoint_locations): Skip if inferiors with no
16518 execution.
16519 (update_global_location_list): When handling moribund locations,
16520 find representative inferior for location's pspace, and use thread
16521 count of its process_stratum target.
16522 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16523 * bsd-uthread.c (bsd_uthread_target::wait): Use
16524 as_process_stratum_target and adjust thread_change_ptid and
16525 add_thread calls.
16526 (bsd_uthread_target::update_thread_list): Use
16527 as_process_stratum_target and adjust find_thread_ptid,
16528 thread_change_ptid and add_thread calls.
16529 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16530 find_thread_ptid call.
16531 * corelow.c (add_to_thread_list): Adjust add_thread call.
16532 (core_target_open): Adjust add_thread_silent and thread_count
16533 calls.
16534 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16535 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16536 * event-top.c (async_disconnect): Pop targets from all inferiors.
16537 * exec.c (add_target_sections): Push exec target on all inferiors
16538 sharing the program space.
16539 (remove_target_sections): Remove the exec target from all
16540 inferiors sharing the program space.
16541 (exec_on_vfork): New.
16542 * exec.h (exec_on_vfork): Declare.
16543 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16544 Pass it down.
16545 (fbsd_nat_target::update_thread_list): Adjust.
16546 (fbsd_nat_target::resume): Adjust.
16547 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16548 down.
16549 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16550 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16551 get_thread_arch_regcache call.
16552 * fork-child.c (gdb_startup_inferior): Pass target down to
16553 startup_inferior and set_executing.
16554 * gdbthread.h (struct process_stratum_target): Forward declare.
16555 (add_thread, add_thread_silent, add_thread_with_info)
16556 (in_thread_list): Add process_stratum_target parameter.
16557 (find_thread_ptid(inferior*, ptid_t)): New overload.
16558 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16559 parameter.
16560 (all_threads()): Delete overload.
16561 (all_threads, all_non_exited_threads): Add process_stratum_target
16562 parameter.
16563 (all_threads_safe): Use brace initialization.
16564 (thread_count): Add process_stratum_target parameter.
16565 (set_resumed, set_running, set_stop_requested, set_executing)
16566 (threads_are_executing, finish_thread_state): Add
16567 process_stratum_target parameter.
16568 (switch_to_thread): Use is_current_thread.
16569 * i386-fbsd-tdep.c: Include "inferior.h".
16570 (i386fbsd_get_thread_local_address): Pass down target.
16571 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16572 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16573 have_inferiors check.
16574 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16575 (inf_ptrace_target::attach): Adjust.
16576 * infcall.c (run_inferior_call): Adjust.
16577 * infcmd.c (run_command_1): Pass target to
16578 scoped_finish_thread_state.
16579 (proceed_thread_callback): Skip inferiors with no execution.
16580 (continue_command): Rename 'all_threads' local to avoid hiding
16581 'all_threads' function. Adjust get_last_target_status call.
16582 (prepare_one_step): Adjust set_running call.
16583 (signal_command): Use user_visible_resume_target. Compare thread
16584 pointers instead of inferior_ptid.
16585 (info_program_command): Adjust to pass down target.
16586 (attach_command): Mark target's 'thread_executing' flag.
16587 (stop_current_target_threads_ns): New, factored out from ...
16588 (interrupt_target_1): ... this. Switch inferior before making
16589 target calls.
16590 * inferior-iter.h
16591 (struct all_inferiors_iterator, struct all_inferiors_range)
16592 (struct all_inferiors_safe_range)
16593 (struct all_non_exited_inferiors_range): Filter on
16594 process_stratum_target too. Remove explicit.
16595 * inferior.c (inferior::inferior): Push dummy target on target
16596 stack.
16597 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16598 Add process_stratum_target parameter, and pass it down.
16599 (have_live_inferiors): Adjust.
16600 (switch_to_inferior_and_push_target): New.
16601 (add_inferior_command, clone_inferior_command): Handle
16602 "-no-connection" parameter. Use
16603 switch_to_inferior_and_push_target.
16604 (_initialize_inferior): Mention "-no-connection" option in
16605 the help of "add-inferior" and "clone-inferior" commands.
16606 * inferior.h: Include "process-stratum-target.h".
16607 (interrupt_target_1): Use bool.
16608 (struct inferior) <push_target, unpush_target, target_is_pushed,
16609 find_target_beneath, top_target, process_target, target_at,
16610 m_stack>: New.
16611 (discard_all_inferiors): Delete.
16612 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16613 (all_inferiors, all_non_exited_inferiors): Add
16614 process_stratum_target parameter.
16615 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16616 (target_last_proc_target): New global.
16617 (follow_fork_inferior): Push target on new inferior. Pass target
16618 to add_thread_silent. Call exec_on_vfork. Handle target's
16619 reference count.
16620 (follow_fork): Adjust get_last_target_status call. Also consider
16621 target.
16622 (follow_exec): Push target on new inferior.
16623 (struct execution_control_state) <target>: New field.
16624 (user_visible_resume_target): New.
16625 (do_target_resume): Call target_async.
16626 (resume_1): Set target's threads_executing flag. Consider resume
16627 target.
16628 (commit_resume_all_targets): New.
16629 (proceed): Also consider resume target. Skip threads of inferiors
16630 with no execution. Commit resumtion in all targets.
16631 (start_remote): Pass current inferior to wait_for_inferior.
16632 (infrun_thread_stop_requested): Consider target as well. Pass
16633 thread_info pointer to clear_inline_frame_state instead of ptid.
16634 (infrun_thread_thread_exit): Consider target as well.
16635 (random_pending_event_thread): New inferior parameter. Use it.
16636 (do_target_wait): Rename to ...
16637 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16638 down.
16639 (threads_are_resumed_pending_p, do_target_wait): New.
16640 (prepare_for_detach): Adjust calls.
16641 (wait_for_inferior): New inferior parameter. Handle it. Use
16642 do_target_wait_1 instead of do_target_wait.
16643 (fetch_inferior_event): Adjust. Switch to representative
16644 inferior. Pass target down.
16645 (set_last_target_status): Add process_stratum_target parameter.
16646 Save target in global.
16647 (get_last_target_status): Add process_stratum_target parameter and
16648 handle it.
16649 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16650 (context_switch): Check inferior_ptid == null_ptid before calling
16651 inferior_thread().
16652 (get_inferior_stop_soon): Pass down target.
16653 (wait_one): Rename to ...
16654 (poll_one_curr_target): ... this.
16655 (struct wait_one_event): New.
16656 (wait_one): New.
16657 (stop_all_threads): Adjust.
16658 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16659 event's target.
16660 (switch_back_to_stepped_thread): Also consider target.
16661 (print_stop_event): Update.
16662 (normal_stop): Update. Also consider the resume target.
16663 * infrun.h (wait_for_inferior): Remove declaration.
16664 (user_visible_resume_target): New declaration.
16665 (get_last_target_status, set_last_target_status): New
16666 process_stratum_target parameter.
16667 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16668 process_stratum_target parameter, and use it.
16669 (clear_inline_frame_state (thread_info*)): New.
16670 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16671 process_stratum_target parameter.
16672 (clear_inline_frame_state (thread_info*)): Declare.
16673 * linux-fork.c (delete_checkpoint_command): Pass target down to
16674 find_thread_ptid.
16675 (checkpoint_command): Adjust.
16676 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16677 instead of just tweaking inferior_ptid.
16678 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16679 (exit_lwp): Pass target down to find_thread_ptid.
16680 (attach_proc_task_lwp_callback): Pass target down to
16681 add_thread/set_running/set_executing.
16682 (linux_nat_target::attach): Pass target down to
16683 thread_change_ptid.
16684 (get_detach_signal): Pass target down to find_thread_ptid.
16685 Consider last target status's target.
16686 (linux_resume_one_lwp_throw, resume_lwp)
16687 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16688 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16689 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16690 (linux_nat_target::async_wait_fd): New.
16691 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16692 target down.
16693 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16694 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16695 * linux-thread-db.c (struct thread_db_info::process_target): New
16696 field.
16697 (add_thread_db_info): Save target.
16698 (get_thread_db_info): New process_stratum_target parameter. Also
16699 match target.
16700 (delete_thread_db_info): New process_stratum_target parameter.
16701 Also match target.
16702 (thread_from_lwp): Adjust to pass down target.
16703 (thread_db_notice_clone): Pass down target.
16704 (check_thread_db_callback): Pass down target.
16705 (try_thread_db_load_1): Always push the thread_db target.
16706 (try_thread_db_load, record_thread): Pass target down.
16707 (thread_db_target::detach): Pass target down. Always unpush the
16708 thread_db target.
16709 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16710 target down. Always unpush the thread_db target.
16711 (find_new_threads_callback, thread_db_find_new_threads_2)
16712 (thread_db_target::update_thread_list): Pass target down.
16713 (thread_db_target::pid_to_str): Pass current inferior down.
16714 (thread_db_target::get_thread_local_address): Pass target down.
16715 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16716 target down.
16717 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16718 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16719 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16720 (procfs_init_inferior): Rename to ...
16721 (procfs_target::procfs_init_inferior): ... this and adjust.
16722 (procfs_target::create_inferior, procfs_notice_thread)
16723 (procfs_do_thread_registers): Adjust.
16724 * ppc-fbsd-tdep.c: Include "inferior.h".
16725 (ppcfbsd_get_thread_local_address): Pass down target.
16726 * proc-service.c (ps_xfer_memory): Switch current inferior and
16727 program space as well.
16728 (get_ps_regcache): Pass target down.
16729 * process-stratum-target.c
16730 (process_stratum_target::thread_address_space)
16731 (process_stratum_target::thread_architecture): Pass target down.
16732 * process-stratum-target.h
16733 (process_stratum_target::threads_executing): New field.
16734 (as_process_stratum_target): New.
16735 * ravenscar-thread.c
16736 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16737 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16738 down.
16739 * record-btrace.c (record_btrace_target::info_record): Adjust.
16740 (record_btrace_target::record_method)
16741 (record_btrace_target::record_is_replaying)
16742 (record_btrace_target::fetch_registers)
16743 (get_thread_current_frame_id, record_btrace_target::resume)
16744 (record_btrace_target::wait, record_btrace_target::stop): Pass
16745 target down.
16746 * record-full.c (record_full_wait_1): Switch to event thread.
16747 Pass target down.
16748 * regcache.c (regcache::regcache)
16749 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16750 process_stratum_target parameter and handle it.
16751 (current_thread_target): New global.
16752 (get_thread_regcache): Add process_stratum_target parameter and
16753 handle it. Switch inferior before calling target method.
16754 (get_thread_regcache): Pass target down.
16755 (get_thread_regcache_for_ptid): Pass target down.
16756 (registers_changed_ptid): Add process_stratum_target parameter and
16757 handle it.
16758 (registers_changed_thread, registers_changed): Pass target down.
16759 (test_get_thread_arch_aspace_regcache): New.
16760 (current_regcache_test): Define a couple local test_target_ops
16761 instances and use them for testing.
16762 (readwrite_regcache): Pass process_stratum_target parameter.
16763 (cooked_read_test, cooked_write_test): Pass mock_target down.
16764 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16765 (get_thread_arch_aspace_regcache): Add process_stratum_target
16766 parameter.
16767 (regcache::target): New method.
16768 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16769 (regcache::registers_changed_ptid): Add process_stratum_target
16770 parameter.
16771 (regcache::m_target): New field.
16772 (registers_changed_ptid): Add process_stratum_target parameter.
16773 * remote.c (remote_state::supports_vCont_probed): New field.
16774 (remote_target::async_wait_fd): New method.
16775 (remote_unpush_and_throw): Add remote_target parameter.
16776 (get_current_remote_target): Adjust.
16777 (remote_target::remote_add_inferior): Push target.
16778 (remote_target::remote_add_thread)
16779 (remote_target::remote_notice_new_inferior)
16780 (get_remote_thread_info): Pass target down.
16781 (remote_target::update_thread_list): Skip threads of inferiors
16782 bound to other targets. (remote_target::close): Don't discard
16783 inferiors. (remote_target::add_current_inferior_and_thread)
16784 (remote_target::process_initial_stop_replies)
16785 (remote_target::start_remote)
16786 (remote_target::remote_serial_quit_handler): Pass down target.
16787 (remote_target::remote_unpush_target): New remote_target
16788 parameter. Unpush the target from all inferiors.
16789 (remote_target::remote_unpush_and_throw): New remote_target
16790 parameter. Pass it down.
16791 (remote_target::open_1): Check whether the current inferior has
16792 execution instead of checking whether any inferior is live. Pass
16793 target down.
16794 (remote_target::remote_detach_1): Pass down target. Use
16795 remote_unpush_target.
16796 (extended_remote_target::attach): Pass down target.
16797 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16798 (remote_target::append_resumption): Pass down target.
16799 (remote_target::append_pending_thread_resumptions)
16800 (remote_target::remote_resume_with_hc, remote_target::resume)
16801 (remote_target::commit_resume): Pass down target.
16802 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16803 (remote_target::interrupt_query)
16804 (remote_target::remove_new_fork_children)
16805 (remote_target::check_pending_events_prevent_wildcard_vcont)
16806 (remote_target::remote_parse_stop_reply)
16807 (remote_target::process_stop_reply): Pass down target.
16808 (first_remote_resumed_thread): New remote_target parameter. Pass
16809 it down.
16810 (remote_target::wait_as): Pass down target.
16811 (unpush_and_perror): New remote_target parameter. Pass it down.
16812 (remote_target::readchar, remote_target::remote_serial_write)
16813 (remote_target::getpkt_or_notif_sane_1)
16814 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16815 down target.
16816 (remote_target::mourn_inferior): Pass down target. Use
16817 remote_unpush_target.
16818 (remote_target::core_of_thread)
16819 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16820 (remote_target::pid_to_exec_file)
16821 (remote_target::thread_handle_to_thread_info): Pass down target.
16822 (remote_target::async_wait_fd): New.
16823 * riscv-fbsd-tdep.c: Include "inferior.h".
16824 (riscv_fbsd_get_thread_local_address): Pass down target.
16825 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16826 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16827 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16828 Adjust.
16829 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16830 * solib-svr4.c (enable_break): Pass down target.
16831 * spu-multiarch.c (parse_spufs_run): Pass down target.
16832 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16833 * target-delegates.c: Regenerate.
16834 * target.c (g_target_stack): Delete.
16835 (current_top_target): Return the current inferior's top target.
16836 (target_has_execution_1): Refer to the passed-in inferior's top
16837 target.
16838 (target_supports_terminal_ours): Check whether the initial
16839 inferior was already created.
16840 (decref_target): New.
16841 (target_stack::push): Incref/decref the target.
16842 (push_target, push_target, unpush_target): Adjust.
16843 (target_stack::unpush): Defref target.
16844 (target_is_pushed): Return bool. Adjust to refer to the current
16845 inferior's target stack.
16846 (dispose_inferior): Delete, and inline parts ...
16847 (target_preopen): ... here. Only dispose of the current inferior.
16848 (target_detach): Hold strong target reference while detaching.
16849 Pass target down.
16850 (target_thread_name): Add assertion.
16851 (target_resume): Pass down target.
16852 (target_ops::beneath, find_target_at): Adjust to refer to the
16853 current inferior's target stack.
16854 (get_dummy_target): New.
16855 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16856 has a thread running.
16857 (initialize_targets): Rename to ...
16858 (_initialize_target): ... this.
16859 * target.h: Include "gdbsupport/refcounted-object.h".
16860 (struct target_ops): Inherit refcounted_object.
16861 (target_ops::shortname, target_ops::longname): Make const.
16862 (target_ops::async_wait_fd): New method.
16863 (decref_target): Declare.
16864 (struct target_ops_ref_policy): New.
16865 (target_ops_ref): New typedef.
16866 (get_dummy_target): Declare function.
16867 (target_is_pushed): Return bool.
16868 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16869 (all_matching_threads_iterator::all_matching_threads_iterator):
16870 Handle filter target.
16871 * thread-iter.h (struct all_matching_threads_iterator, struct
16872 all_matching_threads_range, class all_non_exited_threads_range):
16873 Filter by target too. Remove explicit.
16874 * thread.c (threads_executing): Delete.
16875 (inferior_thread): Pass down current inferior.
16876 (clear_thread_inferior_resources): Pass down thread pointer
16877 instead of ptid_t.
16878 (add_thread_silent, add_thread_with_info, add_thread): Add
16879 process_stratum_target parameter. Use it for thread and inferior
16880 searches.
16881 (is_current_thread): New.
16882 (thread_info::deletable): Use it.
16883 (find_thread_ptid, thread_count, in_thread_list)
16884 (thread_change_ptid, set_resumed, set_running): New
16885 process_stratum_target parameter. Pass it down.
16886 (set_executing): New process_stratum_target parameter. Pass it
16887 down. Adjust reference to 'threads_executing'.
16888 (threads_are_executing): New process_stratum_target parameter.
16889 Adjust reference to 'threads_executing'.
16890 (set_stop_requested, finish_thread_state): New
16891 process_stratum_target parameter. Pass it down.
16892 (switch_to_thread): Also match inferior.
16893 (switch_to_thread): New process_stratum_target parameter. Pass it
16894 down.
16895 (update_threads_executing): Reimplement.
16896 * top.c (quit_force): Pop targets from all inferior.
16897 (gdb_init): Don't call initialize_targets.
16898 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16899 Declare.
16900 (windows_add_thread, windows_delete_thread): Adjust.
16901 (get_windows_debug_event): Rename to ...
16902 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16903 * tracefile-tfile.c (tfile_target_open): Pass down target.
16904 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16905 Forward declare.
16906 (switch_to_thread): Add process_stratum_target parameter.
16907 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16908 parameter. Use it.
16909 (mi_on_resume): Pass target down.
16910 * nat/fork-inferior.c (startup_inferior): Add
16911 process_stratum_target parameter. Pass it down.
16912 * nat/fork-inferior.h (startup_inferior): Add
16913 process_stratum_target parameter.
16914 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16915
16916 2020-01-10 Pedro Alves <palves@redhat.com>
16917
16918 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16919 directly. Instead find the first thread in the thread list and
16920 use switch_to_thread.
16921
16922 2020-01-10 Pedro Alves <palves@redhat.com>
16923
16924 * remote.c (remote_target::remote_add_inferior): Don't bind a
16925 process to the current inferior if the current inferior is already
16926 bound to a process.
16927
16928 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16929 Pedro Alves <palves@redhat.com>
16930
16931 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16932 If no process is specified, return null_ptid instead of
16933 inferior_ptid.
16934 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16935 TARGET_WAITKIND_SIGNALLED with no pid.
16936
16937 2020-01-10 Pedro Alves <palves@redhat.com>
16938
16939 * remote.c (first_remote_resumed_thread): New.
16940 (remote_target::wait_as): Use it as default event_ptid instead of
16941 inferior_ptid.
16942
16943 2020-01-10 Pedro Alves <palves@redhat.com>
16944
16945 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16946
16947 2020-01-10 Pedro Alves <palves@redhat.com>
16948
16949 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16950 not -1.
16951
16952 2020-01-10 Pedro Alves <palves@redhat.com>
16953
16954 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16955 ptid to get_last_target_status.
16956 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16957 ptid to get_last_target_status.
16958 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16959 get_last_target_status.
16960 (info_program_command): Don't pass a target_waitstatus to
16961 get_last_target_status.
16962 * infrun.c (init_wait_for_inferior): Use
16963 nullify_last_target_wait_ptid.
16964 (get_last_target_status): Handle nullptr arguments.
16965 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16966 (print_stop_event): Don't pass a ptid to get_last_target_status.
16967 (normal_stop): Don't pass a ptid to get_last_target_status.
16968 * infrun.h (get_last_target_status, set_last_target_status): Move
16969 comments here and update.
16970 (nullify_last_target_wait_ptid): Declare.
16971 * linux-fork.c (fork_load_infrun_state): Remove local extern
16972 declaration of nullify_last_target_wait_ptid.
16973 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16974 to get_last_target_status.
16975
16976 2020-01-10 Pedro Alves <palves@redhat.com>
16977
16978 * gdbthread.h (scoped_restore_current_thread)
16979 <dont_restore, restore, m_dont_restore>: Declare.
16980 * thread.c (thread_alive): Add assertion. Return bool.
16981 (switch_to_thread_if_alive): New.
16982 (prune_threads): Switch inferior/thread.
16983 (print_thread_info_1): Switch thread before calling target methods.
16984 (scoped_restore_current_thread::restore): New, factored out from
16985 ...
16986 (scoped_restore_current_thread::~scoped_restore_current_thread):
16987 ... this.
16988 (scoped_restore_current_thread::scoped_restore_current_thread):
16989 Add assertion.
16990 (thread_apply_all_command, thread_select): Use
16991 switch_to_thread_if_alive.
16992 * infrun.c (proceed, restart_threads, handle_signal_stop)
16993 (switch_back_to_stepped_thread): Switch current thread before
16994 calling target methods.
16995
16996 2020-01-10 Pedro Alves <palves@redhat.com>
16997
16998 * inferior.c (switch_to_inferior_no_thread): New function,
16999 factored out from ...
17000 (inferior_command): ... here.
17001 * inferior.h (switch_to_inferior_no_thread): Declare.
17002 * mi/mi-main.c (run_one_inferior): Use
17003 switch_to_inferior_no_thread.
17004
17005 2020-01-10 Pedro Alves <palves@redhat.com>
17006
17007 * infcmd.c (kill_command): Remove dead code.
17008
17009 2020-01-10 Pedro Alves <palves@redhat.com>
17010
17011 * remote.c (remote_target::mourn_inferior): No longer check
17012 whether the target is running.
17013
17014 2020-01-10 Pedro Alves <palves@redhat.com>
17015
17016 * corelow.c (core_target::has_execution): Change parameter type to
17017 inferior pointer.
17018 * inferior.c (number_of_live_inferiors): Use
17019 inferior::has_execution instead of target_has_execution_1.
17020 * inferior.h (inferior::has_execution): New.
17021 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17022 inferior::has_execution instead of target_has_execution_1.
17023 * process-stratum-target.c
17024 (process_stratum_target::has_execution): Change parameter type to
17025 inferior pointer. Check the inferior's PID instead of
17026 inferior_ptid.
17027 * process-stratum-target.h
17028 (process_stratum_target::has_execution): Change parameter type to
17029 inferior pointer.
17030 * record-full.c (record_full_core_target::has_execution): Change
17031 parameter type to inferior pointer.
17032 * target.c (target_has_execution_1): Change parameter type to
17033 inferior pointer.
17034 (target_has_execution_current): Adjust.
17035 * target.h (target_ops::has_execution): Change parameter type to
17036 inferior pointer.
17037 (target_has_execution_1): Change parameter type to inferior
17038 pointer. Change return type to bool.
17039 * tracefile.h (tracefile_target::has_execution): Change parameter
17040 type to inferior pointer.
17041
17042 2020-01-10 Pedro Alves <palves@redhat.com>
17043
17044 * exceptions.c (print_flush): Remove current_top_target() check.
17045
17046 2020-01-10 Pedro Alves <palves@redhat.com>
17047
17048 * remote.c (show_remote_exec_file): Show the current inferior's
17049 exec-file instead of the command variable's value.
17050
17051 2020-01-10 Pedro Alves <palves@redhat.com>
17052
17053 * record-full.c (record_full_resume_ptid): New global.
17054 (record_full_target::resume): Set it.
17055 (record_full_wait_1): Use record_full_resume_ptid instead of
17056 inferior_ptid.
17057
17058 2020-01-10 Pedro Alves <palves@redhat.com>
17059
17060 * gdbthread.h (scoped_restore_current_thread)
17061 <dont_restore, restore, m_dont_restore>: Declare.
17062 * thread.c (thread_alive): Add assertion. Return bool.
17063 (switch_to_thread_if_alive): New.
17064 (prune_threads): Switch inferior/thread.
17065 (print_thread_info_1): Switch thread before calling target methods.
17066 (scoped_restore_current_thread::restore): New, factored out from
17067 ...
17068 (scoped_restore_current_thread::~scoped_restore_current_thread):
17069 ... this.
17070 (scoped_restore_current_thread::scoped_restore_current_thread):
17071 Add assertion.
17072 (thread_apply_all_command, thread_select): Use
17073 switch_to_thread_if_alive.
17074
17075 2020-01-10 George Barrett <bob@bob131.so>
17076
17077 * stap-probe.c (stap_modify_semaphore): Don't check for null
17078 semaphores.
17079 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17080 for null semaphores.
17081
17082 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17083
17084 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17085 all source windows, and maintain horizontal scroll status while
17086 doing so.
17087
17088 2020-01-09 Tom Tromey <tom@tromey.com>
17089
17090 PR tui/18932:
17091 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17092 update_source_window, not print_source_lines.
17093
17094 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17095
17096 * tui/tui.c (tui_enable): Register tui hooks after calling
17097 tui_display_main.
17098
17099 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17100
17101 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17102
17103 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17104
17105 * thread.c (print_thread_info_1): Fix indentation.
17106
17107 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17108
17109 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17110 unique_xmalloc_ptr outside the if to always free the demangled name.
17111
17112 2020-01-08 Tom Tromey <tromey@adacore.com>
17113
17114 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17115 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17116 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17117 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17118 Remove.
17119 (section_offsets): New typedef.
17120 * symtab.c (fixup_section, get_msymbol_address): Update.
17121 * symmisc.c (dump_msymbols): Update.
17122 * symfile.h (relative_addr_info_to_section_offsets)
17123 (symfile_map_offsets_to_segments): Update.
17124 * symfile.c (build_section_addr_info_from_objfile)
17125 (init_objfile_sect_indices): Update.
17126 (struct place_section_arg): Change type of "offsets".
17127 (place_section): Update.
17128 (relative_addr_info_to_section_offsets): Change type of
17129 "section_offsets". Remove "num_sections" parameter.
17130 (default_symfile_offsets, syms_from_objfile_1)
17131 (set_objfile_default_section_offset): Update.
17132 (reread_symbols): No need to preserve section offsets by hand.
17133 (symfile_map_offsets_to_segments): Change type of "offsets".
17134 * stap-probe.c (relocate_address): Update.
17135 * stabsread.h (process_one_symbol): Update.
17136 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17137 (solib_target_relocate_section_addresses): Update.
17138 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17139 Update.
17140 * solib-frv.c (frv_relocate_main_executable): Update.
17141 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17142 * solib-aix.c (solib_aix_get_section_offsets): Change return
17143 type.
17144 (solib_aix_solib_create_inferior_hook): Update.
17145 * remote.c (remote_target::get_offsets): Update.
17146 * psymtab.c (find_pc_sect_psymtab): Update.
17147 * psympriv.h (struct partial_symbol) <address, text_low,
17148 text_high>: Update.
17149 * objfiles.h (obj_section_offset): Update.
17150 (struct objfile) <section_offsets>: Change type.
17151 <num_sections>: Remove.
17152 (objfile_relocate): Update.
17153 * objfiles.c (entry_point_address_query): Update
17154 (relocate_one_symbol): Change type of "section_offsets".
17155 (objfile_relocate1, objfile_relocate1): Change type of
17156 "new_offsets".
17157 (objfile_rebase1): Update.
17158 * mipsread.c (mipscoff_symfile_read): Update.
17159 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17160 parameter.
17161 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17162 (parse_external, psymtab_to_symtab_1): Update.
17163 * machoread.c (macho_symfile_offsets): Update.
17164 * ia64-tdep.c (ia64_find_unwind_table): Update.
17165 * hppa-tdep.c (read_unwind_info): Update.
17166 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17167 * dwarf2read.c (create_addrmap_from_index)
17168 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17169 (process_psymtab_comp_unit_reader, add_partial_symbol)
17170 (add_partial_subprogram, process_full_comp_unit)
17171 (read_file_scope, read_func_scope, read_lexical_block_scope)
17172 (read_call_site_scope, dwarf2_rnglists_process)
17173 (dwarf2_ranges_process, dwarf2_ranges_read)
17174 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17175 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17176 Update.
17177 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17178 Update.
17179 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17180 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17181 (process_one_symbol): Change type of "section_offsets".
17182 * ctfread.c (get_objfile_text_range): Update.
17183 * coffread.c (coff_symtab_read, enter_linenos)
17184 (process_coff_symbol): Update.
17185 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17186 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17187
17188 2020-01-08 Tom Tromey <tromey@adacore.com>
17189
17190 * dwarf2read.c (parse_macro_definition): Use std::string.
17191 (parse_macro_definition): Likewise.
17192
17193 2020-01-08 Tom Tromey <tromey@adacore.com>
17194
17195 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17196 (ATTR_ALLOC_CHUNK): Remove.
17197
17198 2020-01-08 Tom Tromey <tromey@adacore.com>
17199
17200 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17201
17202 2020-01-08 Tom Tromey <tromey@adacore.com>
17203
17204 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17205 (dwarf2_compute_name, open_dwo_file): Likewise.
17206 (process_enumeration_scope): Use std::vector.
17207 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17208 (partial_die_info::fixup, dwarf2_start_subfile)
17209 (guess_full_die_structure_name, dwarf2_name): Likewise.
17210 (determine_prefix): Update.
17211 (guess_full_die_structure_name): Make return type const.
17212 (partial_die_full_name): Return unique_xmalloc_ptr.
17213 (DW_FIELD_ALLOC_CHUNK): Remove.
17214
17215 2020-01-07 Tom Tromey <tromey@adacore.com>
17216
17217 PR build/24937:
17218 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17219
17220 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17221
17222 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17223
17224 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17225
17226 * stack.c (print_frame_info): Move disassemble_next_line code
17227 inside source_print block.
17228
17229 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17230
17231 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17232 gdb/signals.h, as we are now using native signal symbols.
17233
17234 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17235
17236 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17237 overflow by an early check of content vs threshold.
17238 * tui/tui-source.c (tui_source_window::line_is_displayed):
17239 Likewise.
17240
17241 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17242
17243 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17244
17245 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17246
17247 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17248 export table if no section contains it's RVA.
17249
17250 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17251
17252 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17253
17254 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17255
17256 * source.c (print_source_lines_base): Set last_line_listed.
17257
17258 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17259
17260 * tui/tui-disasm.c: Remove trailing spaces.
17261
17262 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17263 Pedro Alves <palves@redhat.com>
17264
17265 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17266 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17267 (windows_gdb_signal_to_target): New function, uses the above
17268 enumeration to convert GDB internal signal codes to equivalent
17269 Windows codes.
17270 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17271 * windows-nat.c: Include "gdb_wait.h".
17272 (get_windows_debug_event): Extract the fatal exception from the
17273 exit status and convert to the equivalent Posix signal number.
17274 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17275 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17276 * gdbsupport/gdb_wait.c: New file, implements
17277 windows_status_to_termsig.
17278 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17279 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17280
17281 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17282
17283 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17284 show_layout.
17285
17286 2020-01-05 Luis Machado <luis.machado@linaro.org>
17287
17288 * aarch64-linux-nat.c
17289 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17290 and bfd_mach_aarch64.
17291
17292 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17293
17294 * ui-file.c (stdio_file::can_emit_style_escape)
17295 (tee_file::can_emit_style_escape): Ensure style is used also on
17296 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17297 to gdb_stdout.
17298 * main.c (set_gdb_data_directory): Use file style to output the
17299 warning that the given pathname is not a directory.
17300 * top.c (show_history_filename, gdb_safe_append_history)
17301 (show_gdb_datadir): Use file style.
17302
17303 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17304
17305 * solib-target.c (struct lm_info_target):
17306 Change offsets to be a unique_xmalloc_ptr.
17307 (solib_target_relocate_section_addresses): Update.
17308
17309 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17310
17311 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17312
17313 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17314
17315 * MAINTAINERS (Write After Approval): Add myself.
17316
17317 2020-01-02 Luis Machado <luis.machado@linaro.org>
17318
17319 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17320 Cell BE architecture.
17321 * target.h (struct target_ops) <thread_architecture>: Likewise.
17322
17323 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17324
17325 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17326
17327 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17328
17329 * MAINTAINERS (Write After Approval): Add myself.
17330
17331 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17332
17333 * gdbarch.sh: Update copyright year range of generated files.
17334
17335 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17336
17337 Update copyright year range in all GDB files.
17338
17339 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17340
17341 * copyright.py: Convert to Python 3.
17342
17343 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17344
17345 * copyright.py: Adapt after move of gnulib directory from gdb
17346 directory to toplevel directory.
17347
17348 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17349
17350 * copyright.py (main): Exit if run from the wrong directory.
17351
17352 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17353
17354 * top.c (print_gdb_version): Change copyright year to 2020.
17355
17356 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17357
17358 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17359
17360 For older changes see ChangeLog-2019.
17361 \f
17362 Local Variables:
17363 mode: change-log
17364 left-margin: 8
17365 fill-column: 74
17366 version-control: never
17367 coding: utf-8
17368 End:
This page took 0.440726 seconds and 5 git commands to generate.