gdb/riscv: place unknown csrs into the correct register groups
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * riscv-tdep.c (riscv_is_unknown_csr): New function,
4 implementation moved from riscv_register_reggroup_p.
5 (riscv_register_reggroup_p): Update group handling for unknown
6 CSRs.
7
8 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
9
10 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
11 (dwarf2_get_dwz_file): Convert 'filename' to a
12 std::string. Use dwz_search_other_debugdirs to search for DWZ
13 files in the debug-file-directories provided by the user as well.
14
15 2020-12-01 Tom Tromey <tom@tromey.com>
16
17 * parse.c (expr_builder::expr_builder): Initialize expout.
18 (expr_builder::release): Use expression::resize.
19 (expression::expression, expression::~expression)
20 (expression::resize): New methods.
21 (write_exp_elt): Use expression::resize.
22 (prefixify_expression): Update.
23 (increase_expout_size): Use expression::resize.
24 * expression.h (struct expression): Add constructor, destructor.
25 <resize>: New method.
26 (expression_up): Change type.
27
28 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
29 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
30 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
31 set region.
32
33 2020-11-30 Tom de Vries <tdevries@suse.de>
34
35 PR symtab/26905
36 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
37 is_reference parameter.
38 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
39
40 2020-11-30 Tom Tromey <tom@tromey.com>
41
42 * rust-lang.c (rust_op_name): Remove.
43 (exp_descriptor_rust): Update.
44 * parser-defs.h (op_name_standard): Don't declare.
45 (struct exp_descriptor) <op_name>: Remove.
46 * parse.c (exp_descriptor_standard): Update.
47 * opencl-lang.c (exp_descriptor_opencl): Update.
48 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
49 * f-lang.c (op_name_f): Remove.
50 (f_language::exp_descriptor_tab): Update.
51 * expression.h (op_name): Update.
52 * expprint.c (op_name): Rewrite.
53 (op_name_standard): Remove.
54 (dump_raw_expression, dump_subexp): Update.
55 * c-lang.c (exp_descriptor_c): Update.
56 * ax-gdb.c (gen_expr): Update.
57 * ada-lang.c (ada_op_name): Remove.
58 (ada_exp_descriptor): Update.
59
60 2020-11-30 Tom Tromey <tom@tromey.com>
61
62 * eval.c (init_array_element): Remove.
63 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
64
65 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
66
67 PR tui/26973
68 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
69 static locator win info.
70
71 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
72
73 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
74 program.
75
76 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
77
78 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
79 is always initialized.
80
81 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
82 * MAINTAINERS (Write After Approval): Add myself.
83
84 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
85
86 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
87 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
88
89 2020-11-25 Tom Tromey <tom@tromey.com>
90
91 * eval.c (evaluate_subexp_standard): Remove unnecessary
92 variables.
93
94 2020-11-25 Tom Tromey <tom@tromey.com>
95
96 * d-lang.c: Include parser-defs.h.
97 * rust-lang.c: Include parser-defs.h.
98 * c-lang.h: Do not include parser-defs.h.
99
100 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * regcache.h (struct cached_reg): Remove typedef.
103
104 2020-11-24 Joel Brobecker <brobecker@adacore.com>
105
106 * README: Fix the URL of the MPFR library.
107
108 2020-11-24 Joel Brobecker <brobecker@adacore.com>
109
110 * README: Document the --with-libgmp-prefix configure option.
111
112 2020-11-24 Joel Brobecker <brobecker@adacore.com>
113
114 * NEWS: Add entry documenting support for DWARF-based fixed
115 point types.
116
117 2020-11-24 Joel Brobecker <brobecker@adacore.com>
118
119 * NEWS: Document that building GDB now requires GMP.
120
121 2020-11-24 Joel Brobecker <brobecker@adacore.com>
122
123 * typeprint.c (print_type_scalar): Add handling of
124 TYPE_CODE_FIXED_POINT.
125
126 2020-11-24 Joel Brobecker <brobecker@adacore.com>
127
128 * valarith.c (fixed_point_binop): Replace the
129 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
130 users accordingly.
131
132 2020-11-24 Joel Brobecker <brobecker@adacore.com>
133
134 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
135 replacing fixed_point_scaling_factor. All callers updated
136 throughout this project.
137 (fixed_point_scaling_factor): Delete declaration.
138 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
139 fixed_point_scaling_factor. Adjust implementation accordingly.
140
141 2020-11-24 Joel Brobecker <brobecker@adacore.com>
142
143 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
144 replacing the fixed_point_type_base_type function. All callers
145 updated throughout this project.
146 (fixed_point_type_base_type): Remove declaration.
147 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
148 fixed_point_type_base_type. Adjust implementation accordingly.
149
150 2020-11-24 Joel Brobecker <brobecker@adacore.com>
151
152 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
153 New methods.
154 (INIT_FIXED_POINT_SPECIFIC): Adjust.
155 (TYPE_FIXED_POINT_INFO): Delete macro.
156 (allocate_fixed_point_type_info): Change return type to void.
157 * gdbtypes.c (copy_type_recursive): Replace the use of
158 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
159 (fixed_point_scaling_factor): Likewise.
160 (allocate_fixed_point_type_info): Change return type to void.
161 Adjust implementation accordingly.
162 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
163 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
164
165 2020-11-24 Joel Brobecker <brobecker@adacore.com>
166
167 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
168 into one single gdb::array_view parameter.
169 (gdb_mpz::write): Likewise.
170 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
171 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
172 into one single gdb::array_view parameter.
173 Adjust implementation accordingly.
174 (gdb_mpz::write): Likewise.
175 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
176 * unittests/gmp-utils-selftests.c: Adapt following changes above.
177 * valarith.c, valops.c, valprint.c, value.c: Likewise.
178
179 2020-11-24 Joel Brobecker <brobecker@adacore.com>
180
181 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
182 Change return type to std::string. Update all callers.
183 * gmp-utils.c (gmp_string_printf): Likewise.
184
185 2020-11-24 Joel Brobecker <brobecker@adacore.com>
186
187 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
188 instead of mpq_set_ui to initialize our GMP rational.
189
190 2020-11-23 Tom de Vries <tdevries@suse.de>
191
192 * debuginfod-support.c (debuginfod_source_query)
193 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
194
195 2020-11-21 Tom Tromey <tom@tromey.com>
196
197 * breakpoint.c (watchpoint_exp_is_const): Return bool.
198
199 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
202 Pass 2.0 to pow.
203 (gdb_mpz_write_all_from_small): Likewise.
204
205 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
208 of abs.
209
210 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
211
212 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
213 ctf_arc_open_by_name.
214
215 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
216
217 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
218 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
219
220 2020-11-20 Pedro Alves <pedro@palves.net>
221
222 * language.c (language_arch_info::lookup_primitive_type): Use
223 gdb::function_view instead of gdb::function.
224 (template language_lookup_primitive_type): Rename to ...
225 (language_lookup_primitive_type_1): ... this, and make static.
226 (language_lookup_primitive_type(const struct language_defn *,
227 struct gdbarch *, const char *): Make non-template.
228 (language_lookup_primitive_type(const struct language_defn *,
229 struct gdbarch *, std::function<bool (struct type *)>): Make
230 non-template and use gdb::function_view.
231 * language.h (language_arch_info::lookup_primitive_type): Use
232 gdb::function_view instead of std::function.
233 (language_lookup_primitive_type): No longer template.
234 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
235 lambda instead of a std::function.
236
237 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
238
239 PR tdep/26916
240 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
241 and STOCFH.
242
243 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
246
247 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
248
249 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
250 in `loop_cb` parameter.
251 * gdbarch.c: Re-generate.
252 * gdbarch.h: Re-generate.
253 * arch-utils.c (default_read_core_file_mappings): Remove `other`
254 parameter.
255 * arch-utils.h (default_read_core_file_mappings): Likewise.
256 * corelow.c (core_target::build_file_mappings): Likewise.
257 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
258 (linux_core_info_proc_mappings): Likewise.
259
260 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
263 * NEWS: Mention new options.
264 * f-array-walker.h: New file.
265 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
266 (repack_array_slices): New static global.
267 (show_repack_array_slices): New function.
268 (fortran_array_slicing_debug): New static global.
269 (show_fortran_array_slicing_debug): New function.
270 (value_f90_subarray): Delete.
271 (skip_undetermined_arglist): Delete.
272 (class fortran_array_repacker_base_impl): New class.
273 (class fortran_lazy_array_repacker_impl): New class.
274 (class fortran_array_repacker_impl): New class.
275 (fortran_value_subarray): Complete rewrite.
276 (set_fortran_list): New static global.
277 (show_fortran_list): Likewise.
278 (_initialize_f_language): Register new commands.
279 (fortran_adjust_dynamic_array_base_address_hack): New function.
280 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
281 Declare.
282 * f-valprint.c: Include 'f-array-walker.h'.
283 (class fortran_array_printer_impl): New class.
284 (f77_print_array_1): Delete.
285 (f77_print_array): Delete.
286 (fortran_print_array): New.
287 (f_value_print_inner): Update to call fortran_print_array.
288 * gdbtypes.c: Include 'f-lang.h'.
289 (resolve_dynamic_type_internal): Call
290 fortran_adjust_dynamic_array_base_address_hack.
291
292 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * breakpoint.c (struct watch_options): New struct.
295 (watch_option_defs): New static global.
296 (make_watch_options_def_group): New function.
297 (watch_maybe_just_location): Convert option parsing.
298 (watch_command_completer): New function.
299 (_initialize_breakpoint): Build help text using options mechanism.
300
301 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
304 (watch_command_1): Update parameter types. Convert locals to
305 bool.
306 (watch_command_wrapper): Change parameter type.
307 (watch_maybe_just_location): Change locals to bool.
308 (rwatch_command_wrapper): Update parameter type.
309 (awatch_command_wrapper): Update parameter type.
310 * breakpoint.h (watch_command_wrapper): Change parameter type.
311 (rwatch_command_wrapper): Update parameter type.
312 (awatch_command_wrapper): Update parameter type.
313 * eval.c (fetch_subexp_value): Change parameter type.
314 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
315 'false' not '0'.
316 * value.h (fetch_subexp_value): Change parameter type in
317 declaration.
318
319 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
322 skip_spaces.
323
324 2020-11-18 Keith Seitz <keiths@redhat.com>
325
326 * linux-tdep.c (dump_note_entry_p): Return true instead of
327 checking `filename'.
328
329 2020-11-18 Tom de Vries <tdevries@suse.de>
330
331 * debuginfod-support.c (debuginfod_source_query)
332 (debuginfod_debuginfo_query): Also do early exit if
333 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
334
335 2020-11-18 Tom de Vries <tdevries@suse.de>
336
337 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
338 warning.
339
340 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * gdbtypes.h (get_array_bounds): Return bool, adjust some
343 callers. Move doc here.
344 * gdbtypes.c (get_array_bounds): Return bool
345
346 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
347
348 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
349 assert.
350 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
351 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
352 case to the default.
353
354 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
355
356 * printcmd.c: Include 'safe-ctype.c'.
357 (skip_over_slash_fmt): New function.
358 (print_command_completer): Call skip_over_slash_fmt.
359 (display_and_x_command_completer): New function.
360 (_initialize_printcmd): Add command completion for 'x' and
361 'display'.
362
363 2020-11-16 Pedro Alves <pedro@palves.net>
364
365 * frame.c (get_prev_frame): Move get_frame_id call from here ...
366 (get_prev_frame_always_1): ... to here.
367 * inline-frame.c (inline_frame_this_id): Mention
368 get_prev_frame_always_1 in comment.
369
370 2020-11-15 Joel Brobecker <brobecker@adacore.com>
371
372 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
373 handling.
374 (value_less): Add fixed-point handling.
375
376 2020-11-15 Joel Brobecker <brobecker@adacore.com>
377
378 * eval.c (binop_promote): Add fixed-point type handling.
379 * valarith.c (fixed_point_binop): New function.
380 (scalar_binop): Add fixed-point type handling.
381 (value_neg): Add fixed-point type handling.
382 * valops.c (value_cast_to_fixed_point): New function.
383 (value_cast): Add fixed-point type handling.
384
385 2020-11-15 Joel Brobecker <brobecker@adacore.com>
386
387 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
388 range types.
389 * c-typeprint.c (c_type_print_varspec_prefix)
390 (c_type_print_varspec_suffix, c_type_print_base_1): Add
391 TYPE_CODE_FIXED_POINT handling.
392 * p-typeprint.c (pascal_type_print_varspec_prefix)
393 (pascal_type_print_varspec_suffix): Likewise.
394 * typeprint.c (print_type_fixed_point): New function.
395 * typeprint.h (print_type_fixed_point): Add declaration.
396
397 2020-11-15 Joel Brobecker <brobecker@adacore.com>
398
399 * printcmd.c (print_scalar_formatted): Add fixed-point type
400 handling when options->format is set.
401
402 2020-11-15 Joel Brobecker <brobecker@adacore.com>
403
404 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
405 * dwarf2/read.c (get_dwarf2_rational_constant)
406 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
407 (has_zero_over_zero_small_attribute): New functions.
408 read_base_type, set_die_type): Add fixed-point type handling.
409 * gdb-gdb.py.in: Add fixed-point type handling.
410 * gdbtypes.c: #include "gmp-utils.h".
411 (create_range_type, set_type_code): Add fixed-point type handling.
412 (init_fixed_point_type): New function.
413 (is_integral_type, is_scalar_type): Add fixed-point type handling.
414 (print_fixed_point_type_info): New function.
415 (recursive_dump_type, copy_type_recursive): Add fixed-point type
416 handling.
417 (fixed_point_type_storage): New typedef.
418 (fixed_point_objfile_key): New static global.
419 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
420 (fixed_point_type_base_type, fixed_point_scaling_factor): New
421 functions.
422 * gdbtypes.h: #include "gmp-utils.h".
423 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
424 (union type_specific) <fixed_point_info>: New field.
425 (struct fixed_point_type_info): New struct.
426 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
427 (init_fixed_point_type, is_fixed_point_type)
428 (fixed_point_type_base_type, fixed_point_scaling_factor)
429 (allocate_fixed_point_type_info): Add declarations.
430 * valprint.c (generic_val_print_fixed_point): New function.
431 (generic_value_print): Add fixed-point type handling.
432 * value.c (value_as_address, unpack_long): Add fixed-point type
433 handling.
434
435 2020-11-15 Joel Brobecker <brobecker@adacore.com>
436
437 * utils.h (uinteger_pow): Add declaration.
438 * utils.c (uinteger_pow): Moved here (without changes)...
439 * valarith.c (uinteger_pow): ... from here.
440
441 2020-11-15 Joel Brobecker <brobecker@adacore.com>
442
443 * gmp-utils.h, gmp-utils.c: New file.
444 * unittests/gmp-utils-selftests.c: New file.
445 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
446 unittests/gmp-utils-selftests.c.
447 (COMMON_SFILES) Add gmp-utils.c.
448 (HFILES_NO_SRCDIR): Add gmp-utils.h.
449
450 2020-11-15 Joel Brobecker <brobecker@adacore.com>
451
452 * configure.ac: Generate an error if a usable GMP library
453 could not be found.
454 * configure: Regenerate.
455
456 2020-11-15 Joel Brobecker <brobecker@adacore.com>
457
458 * configure.ac: Add support for --with-libgmp-prefix.
459 * Makefile.in (LIBGMP): New variable.
460 (CLIBS): Include $(LIBGMP).
461 * configure, config.in: Regenerate
462
463 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 PR cli/26879
466 * f-exp.y (COMPLETE): New token.
467 (exp): Two new rules for tab-completion.
468 (saw_name_at_eof): New static global.
469 (last_was_structop): Likewise.
470 (yylex): Set new variables, and return COMPLETE token at the end
471 of the input stream in some cases.
472
473 2020-11-14 Tom Tromey <tom@tromey.com>
474
475 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
476
477 2020-11-14 Tom Tromey <tom@tromey.com>
478
479 * opencl-lang.c (opencl_component_ref): Make "comps" const.
480
481 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
484
485 2020-11-13 Tom Tromey <tom@tromey.com>
486
487 * c-lang.c (convert_ucn, convert_octal, convert_hex)
488 (convert_escape, parse_one_string): Constify.
489
490 2020-11-13 Keith Seitz <keiths@redhat.com>
491
492 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
493 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
494 outside of ELF segments" warning for debugin
495
496 2020-11-13 Keith Seitz <keiths@redhat.com>
497
498 PR gdb/23034
499 * elfread.c (elf_symfile_segments): Output a BFD file name
500 for the "Loadable section ... outside of ELF segments" warning.
501
502 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
503
504 PR gdb/26835
505 * arm-tdep.c (class arm_instruction_reader): New.
506 (target_arm_instruction_reader): New.
507 (arm_analyze_prologue): Add instruction reader parameter and use
508 it. Use arm_expand_immediate.
509 (class target_arm_instruction_reader): Adjust.
510 (arm_skip_prologue): Adjust.
511 (arm_expand_immediate): New.
512 (arm_scan_prologue): Adjust.
513 (arm_analyze_prologue_test): New.
514 (class test_arm_instruction_reader): New.
515
516 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * f-lang.c (fortran_argument_convert): Add declaration. Add
519 header comment, taken from f-lang.h. Make static.
520 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
521 (fortran_argument_convert): Delete declaration.
522
523 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * ada-exp.y (find_primitive_type): Make parameter const.
526 * ada-lang.c (enum ada_primitive_types): Delete.
527 (ada_language::language_arch_info): Update.
528 * c-lang.c (enum c_primitive_types): Delete.
529 (c_language_arch_info): Update.
530 (enum cplus_primitive_types): Delete.
531 (cplus_language::language_arch_info): Update.
532 * d-lang.c (enum d_primitive_types): Delete.
533 (d_language::language_arch_info): Update.
534 * f-lang.c (enum f_primitive_types): Delete.
535 (f_language::language_arch_info): Update.
536 * go-lang.c (enum go_primitive_types): Delete.
537 (go_language::language_arch_info): Update.
538 * language.c (auto_or_unknown_language::language_arch_info):
539 Update.
540 (language_gdbarch_post_init): Use obstack_new, use array indexing.
541 (language_string_char_type): Add header comment, call function in
542 language_arch_info.
543 (language_bool_type): Likewise
544 (language_arch_info::bool_type): Define.
545 (language_lookup_primitive_type_1): Delete.
546 (language_lookup_primitive_type): Rewrite as a templated function
547 to call function in language_arch_info, then instantiate twice.
548 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
549 (language_arch_info::lookup_primitive_type_and_symbol): Define.
550 (language_arch_info::lookup_primitive_type): Define twice with
551 different signatures.
552 (language_arch_info::lookup_primitive_type_as_symbol): Define.
553 (language_lookup_primitive_type_as_symbol): Rewrite to call a
554 member function in language_arch_info.
555 * language.h (language_arch_info): Complete rewrite.
556 (language_lookup_primitive_type): Make templated.
557 * m2-lang.c (enum m2_primitive_types): Delete.
558 (m2_language::language_arch_info): Update.
559 * opencl-lang.c (OCL_P_TYPE): Delete.
560 (enum opencl_primitive_types): Delete.
561 (opencl_type_data): Delete.
562 (builtin_opencl_type): Delete.
563 (lookup_opencl_vector_type): Update.
564 (opencl_language::language_arch_info): Update, lots of content
565 moved from...
566 (build_opencl_types): ...here. This function is now deleted.
567 (_initialize_opencl_language): Delete.
568 * p-lang.c (enum pascal_primitive_types): Delete.
569 (pascal_language::language_arch_info): Update.
570 * rust-lang.c (enum rust_primitive_types): Delete.
571 (rust_language::language_arch_info): Update.
572
573 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
576 dwarf2_queue_guard.
577
578 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
581 comment.
582
583 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
584
585 * dwarf2/read.c (dwarf_read_debug_printf,
586 dwarf_read_debug_printf_v): New macros, use throughout the file.
587
588 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
589
590 * arc-linux-tdep.c (collect_register): Populate "eret" by
591 "pc" value from the regcache when asked for "pc" value.
592
593 2020-11-12 Tom Tromey <tom@tromey.com>
594
595 PR rust/26799:
596 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
597 exist.
598
599 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * features/Makefile (XMLTOC): Add rx.xml.
602 (FEATURE_XMLFILES): Remove rx.xml.
603 (FEATURE_CFILES rule): Pass '-single-feature' flag.
604 * features/rx.c: Regenerate.
605 * features/rx.xml: Wrap in `target` tags, and reindent.
606 * target-descriptions.c (struct maint_print_c_tdesc_options): New
607 structure.
608 (maint_print_c_tdesc_opt_def): New typedef.
609 (maint_print_c_tdesc_opt_defs): New static global.
610 (make_maint_print_c_tdesc_options_def_group): New function.
611 (maint_print_c_tdesc_cmd): Make use of command line flags, only
612 print single feature C file for target descriptions containing a
613 single feature.
614 (maint_print_c_tdesc_cmd_completer): New function.
615 (_initialize_target_descriptions): Update call to register command
616 completer, and include command line flag in help text.
617
618 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
621 numbers.
622 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
623 enum values.
624
625 2020-11-10 Tom Tromey <tom@tromey.com>
626
627 * value.h (internalvar_name): Update.
628 * value.c (internalvar_name): Make return type const.
629
630 2020-11-10 Tom Tromey <tom@tromey.com>
631
632 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
633 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
634 const.
635
636 2020-11-10 Tom Tromey <tom@tromey.com>
637
638 * objc-lang.h (value_nsstring): Update.
639 * objc-lang.c (value_nsstring): Make "ptr" const.
640
641 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * expprint.c (print_subexp_funcall): Increment expression position
644 after reading argument count.
645 * f-lang.c (print_subexp_f): Skip over opcode before calling
646 common function.
647 (dump_subexp_body_f): Likewise.
648
649 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
650
651 PR python/26832
652 * configure: Regenerate.
653 * configure.ac: Check for python modules ctypes instead of
654 itertools.
655
656 2020-11-06 Pedro Alves <pedro@palves.net>
657
658 * macroexp.c (struct macro_buffer): Split in two classes. Add
659 uses adjusted.
660 (struct shared_macro_buffer): New, factored out from struct
661 macro_buffer.
662 (struct growable_macro_buffer): New, factored out from struct
663 macro_buffer.
664 (set_token, get_comment, get_identifier, get_pp_number)
665 (get_character_constant, get_string_literal, get_punctuator)
666 (get_next_token_for_substitution): Constify parameters.
667 (substitute_args): Constify locals.
668
669 2020-11-05 Tom Tromey <tom@tromey.com>
670
671 * dwarf2/read.c (read_cutu_die_from_dwo)
672 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
673 (build_type_psymtabs_1): Update.
674 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
675 parameter.
676 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
677 Don't read section. Add assert.
678
679 2020-11-04 Tom Tromey <tromey@adacore.com>
680
681 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
682
683 2020-11-04 Tom Tromey <tromey@adacore.com>
684
685 * ada-typeprint.c (ada_print_type): Handle __T types.
686
687 2020-11-04 Tom Tromey <tromey@adacore.com>
688
689 * dwarf2/read.c (add_partial_symbol, process_die):
690 Handle DW_TAG_array_type.
691 (is_type_tag_for_partial): Add "lang" parameter.
692 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
693
694 2020-11-04 Tom Tromey <tromey@adacore.com>
695
696 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
697
698 2020-11-04 Tom Tromey <tromey@adacore.com>
699
700 * dwarf2/read.c (read_array_type): Only apply stride to innermost
701 array.
702
703 2020-11-04 Tom Tromey <tromey@adacore.com>
704
705 * gdbtypes.c (update_static_array_size): Handle bit stride.
706
707 2020-11-04 Tom Tromey <tromey@adacore.com>
708
709 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
710
711 2020-11-04 Tom Tromey <tromey@adacore.com>
712
713 * ada-lang.c (ada_is_any_packed_array_type): New function.
714 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
715
716 2020-11-04 Tom Tromey <tromey@adacore.com>
717
718 * dwarf2/read.c (recognize_bound_expression)
719 (quirk_ada_thick_pointer): New functions.
720 (read_array_type): Call quirk_ada_thick_pointer.
721 (set_die_type): Add "skip_data_location" parameter.
722 (quirk_ada_thick_pointer): New function.
723 (process_structure_scope): Call quirk_ada_thick_pointer.
724 * ada-lang.c (ada_is_unconstrained_packed_array_type)
725 (decode_packed_array_bitsize): Handle thick pointers without
726 parallel types.
727 (ada_is_gnat_encoded_packed_array_type): Rename from
728 ada_is_packed_array_type.
729 (ada_is_constrained_packed_array_type): Update.
730 * ada-valprint.c (ada_val_print_gnat_array): Remove.
731 (ada_value_print_1): Use ada_get_decoded_value.
732
733 2020-11-04 Tom Tromey <tromey@adacore.com>
734
735 * ada-lang.c (recursively_update_array_bitsize): New function.
736 (decode_constrained_packed_array_type): Call it.
737
738 2020-11-04 Tom Tromey <tromey@adacore.com>
739
740 * ada-lang.c (to_fixed_array_type): Error if
741 decode_constrained_packed_array_type returns NULL.
742
743 2020-11-04 Tom Tromey <tromey@adacore.com>
744
745 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
746
747 2020-11-02 Tom Tromey <tromey@adacore.com>
748
749 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
750 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
751 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
752 * amd64-ravenscar-thread.c: New file.
753 * amd64-ravenscar-thread.h: New file.
754 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
755 * configure.tgt (amd64_tobjs): Add ravenscar objects.
756
757 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * main.c (execute_cmdargs): New function.
760 (captured_main_1): Make use of execute_cmdargs.
761
762 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * NEWS: Mention changes to config file search path.
765 * main.c
766
767 2020-11-02 Tom Tromey <tromey@adacore.com>
768
769 * python/python.c: Consolidate two HAVE_PYTHON blocks.
770 (python_GdbModuleDef): Move earlier. Now static.
771 (do_start_initialization): Consolidate some IS_PY3K blocks.
772
773 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
774
775 * aarch64-linux-tdep.c: Fix indentation.
776 * aarch64-ravenscar-thread.c: Fix indentation.
777 * aarch64-tdep.c: Fix indentation.
778 * aarch64-tdep.h: Fix indentation.
779 * ada-lang.c: Fix indentation.
780 * ada-lang.h: Fix indentation.
781 * ada-tasks.c: Fix indentation.
782 * ada-typeprint.c: Fix indentation.
783 * ada-valprint.c: Fix indentation.
784 * ada-varobj.c: Fix indentation.
785 * addrmap.c: Fix indentation.
786 * addrmap.h: Fix indentation.
787 * agent.c: Fix indentation.
788 * aix-thread.c: Fix indentation.
789 * alpha-bsd-nat.c: Fix indentation.
790 * alpha-linux-tdep.c: Fix indentation.
791 * alpha-mdebug-tdep.c: Fix indentation.
792 * alpha-nbsd-tdep.c: Fix indentation.
793 * alpha-obsd-tdep.c: Fix indentation.
794 * alpha-tdep.c: Fix indentation.
795 * amd64-bsd-nat.c: Fix indentation.
796 * amd64-darwin-tdep.c: Fix indentation.
797 * amd64-linux-nat.c: Fix indentation.
798 * amd64-linux-tdep.c: Fix indentation.
799 * amd64-nat.c: Fix indentation.
800 * amd64-obsd-tdep.c: Fix indentation.
801 * amd64-tdep.c: Fix indentation.
802 * amd64-windows-tdep.c: Fix indentation.
803 * annotate.c: Fix indentation.
804 * arc-tdep.c: Fix indentation.
805 * arch-utils.c: Fix indentation.
806 * arch/arm-get-next-pcs.c: Fix indentation.
807 * arch/arm.c: Fix indentation.
808 * arm-linux-nat.c: Fix indentation.
809 * arm-linux-tdep.c: Fix indentation.
810 * arm-nbsd-tdep.c: Fix indentation.
811 * arm-pikeos-tdep.c: Fix indentation.
812 * arm-tdep.c: Fix indentation.
813 * arm-tdep.h: Fix indentation.
814 * arm-wince-tdep.c: Fix indentation.
815 * auto-load.c: Fix indentation.
816 * auxv.c: Fix indentation.
817 * avr-tdep.c: Fix indentation.
818 * ax-gdb.c: Fix indentation.
819 * ax-general.c: Fix indentation.
820 * bfin-linux-tdep.c: Fix indentation.
821 * block.c: Fix indentation.
822 * block.h: Fix indentation.
823 * blockframe.c: Fix indentation.
824 * bpf-tdep.c: Fix indentation.
825 * break-catch-sig.c: Fix indentation.
826 * break-catch-syscall.c: Fix indentation.
827 * break-catch-throw.c: Fix indentation.
828 * breakpoint.c: Fix indentation.
829 * breakpoint.h: Fix indentation.
830 * bsd-uthread.c: Fix indentation.
831 * btrace.c: Fix indentation.
832 * build-id.c: Fix indentation.
833 * buildsym-legacy.h: Fix indentation.
834 * buildsym.c: Fix indentation.
835 * c-typeprint.c: Fix indentation.
836 * c-valprint.c: Fix indentation.
837 * c-varobj.c: Fix indentation.
838 * charset.c: Fix indentation.
839 * cli/cli-cmds.c: Fix indentation.
840 * cli/cli-decode.c: Fix indentation.
841 * cli/cli-decode.h: Fix indentation.
842 * cli/cli-script.c: Fix indentation.
843 * cli/cli-setshow.c: Fix indentation.
844 * coff-pe-read.c: Fix indentation.
845 * coffread.c: Fix indentation.
846 * compile/compile-cplus-types.c: Fix indentation.
847 * compile/compile-object-load.c: Fix indentation.
848 * compile/compile-object-run.c: Fix indentation.
849 * completer.c: Fix indentation.
850 * corefile.c: Fix indentation.
851 * corelow.c: Fix indentation.
852 * cp-abi.h: Fix indentation.
853 * cp-namespace.c: Fix indentation.
854 * cp-support.c: Fix indentation.
855 * cp-valprint.c: Fix indentation.
856 * cris-linux-tdep.c: Fix indentation.
857 * cris-tdep.c: Fix indentation.
858 * darwin-nat-info.c: Fix indentation.
859 * darwin-nat.c: Fix indentation.
860 * darwin-nat.h: Fix indentation.
861 * dbxread.c: Fix indentation.
862 * dcache.c: Fix indentation.
863 * disasm.c: Fix indentation.
864 * dtrace-probe.c: Fix indentation.
865 * dwarf2/abbrev.c: Fix indentation.
866 * dwarf2/attribute.c: Fix indentation.
867 * dwarf2/expr.c: Fix indentation.
868 * dwarf2/frame.c: Fix indentation.
869 * dwarf2/index-cache.c: Fix indentation.
870 * dwarf2/index-write.c: Fix indentation.
871 * dwarf2/line-header.c: Fix indentation.
872 * dwarf2/loc.c: Fix indentation.
873 * dwarf2/macro.c: Fix indentation.
874 * dwarf2/read.c: Fix indentation.
875 * dwarf2/read.h: Fix indentation.
876 * elfread.c: Fix indentation.
877 * eval.c: Fix indentation.
878 * event-top.c: Fix indentation.
879 * exec.c: Fix indentation.
880 * exec.h: Fix indentation.
881 * expprint.c: Fix indentation.
882 * f-lang.c: Fix indentation.
883 * f-typeprint.c: Fix indentation.
884 * f-valprint.c: Fix indentation.
885 * fbsd-nat.c: Fix indentation.
886 * fbsd-tdep.c: Fix indentation.
887 * findvar.c: Fix indentation.
888 * fork-child.c: Fix indentation.
889 * frame-unwind.c: Fix indentation.
890 * frame-unwind.h: Fix indentation.
891 * frame.c: Fix indentation.
892 * frv-linux-tdep.c: Fix indentation.
893 * frv-tdep.c: Fix indentation.
894 * frv-tdep.h: Fix indentation.
895 * ft32-tdep.c: Fix indentation.
896 * gcore.c: Fix indentation.
897 * gdb_bfd.c: Fix indentation.
898 * gdbarch.sh: Fix indentation.
899 * gdbarch.c: Re-generate
900 * gdbarch.h: Re-generate.
901 * gdbcore.h: Fix indentation.
902 * gdbthread.h: Fix indentation.
903 * gdbtypes.c: Fix indentation.
904 * gdbtypes.h: Fix indentation.
905 * glibc-tdep.c: Fix indentation.
906 * gnu-nat.c: Fix indentation.
907 * gnu-nat.h: Fix indentation.
908 * gnu-v2-abi.c: Fix indentation.
909 * gnu-v3-abi.c: Fix indentation.
910 * go32-nat.c: Fix indentation.
911 * guile/guile-internal.h: Fix indentation.
912 * guile/scm-cmd.c: Fix indentation.
913 * guile/scm-frame.c: Fix indentation.
914 * guile/scm-iterator.c: Fix indentation.
915 * guile/scm-math.c: Fix indentation.
916 * guile/scm-ports.c: Fix indentation.
917 * guile/scm-pretty-print.c: Fix indentation.
918 * guile/scm-value.c: Fix indentation.
919 * h8300-tdep.c: Fix indentation.
920 * hppa-linux-nat.c: Fix indentation.
921 * hppa-linux-tdep.c: Fix indentation.
922 * hppa-nbsd-nat.c: Fix indentation.
923 * hppa-nbsd-tdep.c: Fix indentation.
924 * hppa-obsd-nat.c: Fix indentation.
925 * hppa-tdep.c: Fix indentation.
926 * hppa-tdep.h: Fix indentation.
927 * i386-bsd-nat.c: Fix indentation.
928 * i386-darwin-nat.c: Fix indentation.
929 * i386-darwin-tdep.c: Fix indentation.
930 * i386-dicos-tdep.c: Fix indentation.
931 * i386-gnu-nat.c: Fix indentation.
932 * i386-linux-nat.c: Fix indentation.
933 * i386-linux-tdep.c: Fix indentation.
934 * i386-nto-tdep.c: Fix indentation.
935 * i386-obsd-tdep.c: Fix indentation.
936 * i386-sol2-nat.c: Fix indentation.
937 * i386-tdep.c: Fix indentation.
938 * i386-tdep.h: Fix indentation.
939 * i386-windows-tdep.c: Fix indentation.
940 * i387-tdep.c: Fix indentation.
941 * i387-tdep.h: Fix indentation.
942 * ia64-libunwind-tdep.c: Fix indentation.
943 * ia64-libunwind-tdep.h: Fix indentation.
944 * ia64-linux-nat.c: Fix indentation.
945 * ia64-linux-tdep.c: Fix indentation.
946 * ia64-tdep.c: Fix indentation.
947 * ia64-tdep.h: Fix indentation.
948 * ia64-vms-tdep.c: Fix indentation.
949 * infcall.c: Fix indentation.
950 * infcmd.c: Fix indentation.
951 * inferior.c: Fix indentation.
952 * infrun.c: Fix indentation.
953 * iq2000-tdep.c: Fix indentation.
954 * language.c: Fix indentation.
955 * linespec.c: Fix indentation.
956 * linux-fork.c: Fix indentation.
957 * linux-nat.c: Fix indentation.
958 * linux-tdep.c: Fix indentation.
959 * linux-thread-db.c: Fix indentation.
960 * lm32-tdep.c: Fix indentation.
961 * m2-lang.c: Fix indentation.
962 * m2-typeprint.c: Fix indentation.
963 * m2-valprint.c: Fix indentation.
964 * m32c-tdep.c: Fix indentation.
965 * m32r-linux-tdep.c: Fix indentation.
966 * m32r-tdep.c: Fix indentation.
967 * m68hc11-tdep.c: Fix indentation.
968 * m68k-bsd-nat.c: Fix indentation.
969 * m68k-linux-nat.c: Fix indentation.
970 * m68k-linux-tdep.c: Fix indentation.
971 * m68k-tdep.c: Fix indentation.
972 * machoread.c: Fix indentation.
973 * macrocmd.c: Fix indentation.
974 * macroexp.c: Fix indentation.
975 * macroscope.c: Fix indentation.
976 * macrotab.c: Fix indentation.
977 * macrotab.h: Fix indentation.
978 * main.c: Fix indentation.
979 * mdebugread.c: Fix indentation.
980 * mep-tdep.c: Fix indentation.
981 * mi/mi-cmd-catch.c: Fix indentation.
982 * mi/mi-cmd-disas.c: Fix indentation.
983 * mi/mi-cmd-env.c: Fix indentation.
984 * mi/mi-cmd-stack.c: Fix indentation.
985 * mi/mi-cmd-var.c: Fix indentation.
986 * mi/mi-cmds.c: Fix indentation.
987 * mi/mi-main.c: Fix indentation.
988 * mi/mi-parse.c: Fix indentation.
989 * microblaze-tdep.c: Fix indentation.
990 * minidebug.c: Fix indentation.
991 * minsyms.c: Fix indentation.
992 * mips-linux-nat.c: Fix indentation.
993 * mips-linux-tdep.c: Fix indentation.
994 * mips-nbsd-tdep.c: Fix indentation.
995 * mips-tdep.c: Fix indentation.
996 * mn10300-linux-tdep.c: Fix indentation.
997 * mn10300-tdep.c: Fix indentation.
998 * moxie-tdep.c: Fix indentation.
999 * msp430-tdep.c: Fix indentation.
1000 * namespace.h: Fix indentation.
1001 * nat/fork-inferior.c: Fix indentation.
1002 * nat/gdb_ptrace.h: Fix indentation.
1003 * nat/linux-namespaces.c: Fix indentation.
1004 * nat/linux-osdata.c: Fix indentation.
1005 * nat/netbsd-nat.c: Fix indentation.
1006 * nat/x86-dregs.c: Fix indentation.
1007 * nbsd-nat.c: Fix indentation.
1008 * nbsd-tdep.c: Fix indentation.
1009 * nios2-linux-tdep.c: Fix indentation.
1010 * nios2-tdep.c: Fix indentation.
1011 * nto-procfs.c: Fix indentation.
1012 * nto-tdep.c: Fix indentation.
1013 * objfiles.c: Fix indentation.
1014 * objfiles.h: Fix indentation.
1015 * opencl-lang.c: Fix indentation.
1016 * or1k-tdep.c: Fix indentation.
1017 * osabi.c: Fix indentation.
1018 * osabi.h: Fix indentation.
1019 * osdata.c: Fix indentation.
1020 * p-lang.c: Fix indentation.
1021 * p-typeprint.c: Fix indentation.
1022 * p-valprint.c: Fix indentation.
1023 * parse.c: Fix indentation.
1024 * ppc-linux-nat.c: Fix indentation.
1025 * ppc-linux-tdep.c: Fix indentation.
1026 * ppc-nbsd-nat.c: Fix indentation.
1027 * ppc-nbsd-tdep.c: Fix indentation.
1028 * ppc-obsd-nat.c: Fix indentation.
1029 * ppc-ravenscar-thread.c: Fix indentation.
1030 * ppc-sysv-tdep.c: Fix indentation.
1031 * ppc64-tdep.c: Fix indentation.
1032 * printcmd.c: Fix indentation.
1033 * proc-api.c: Fix indentation.
1034 * producer.c: Fix indentation.
1035 * producer.h: Fix indentation.
1036 * prologue-value.c: Fix indentation.
1037 * prologue-value.h: Fix indentation.
1038 * psymtab.c: Fix indentation.
1039 * python/py-arch.c: Fix indentation.
1040 * python/py-bpevent.c: Fix indentation.
1041 * python/py-event.c: Fix indentation.
1042 * python/py-event.h: Fix indentation.
1043 * python/py-finishbreakpoint.c: Fix indentation.
1044 * python/py-frame.c: Fix indentation.
1045 * python/py-framefilter.c: Fix indentation.
1046 * python/py-inferior.c: Fix indentation.
1047 * python/py-infthread.c: Fix indentation.
1048 * python/py-objfile.c: Fix indentation.
1049 * python/py-prettyprint.c: Fix indentation.
1050 * python/py-registers.c: Fix indentation.
1051 * python/py-signalevent.c: Fix indentation.
1052 * python/py-stopevent.c: Fix indentation.
1053 * python/py-stopevent.h: Fix indentation.
1054 * python/py-threadevent.c: Fix indentation.
1055 * python/py-tui.c: Fix indentation.
1056 * python/py-unwind.c: Fix indentation.
1057 * python/py-value.c: Fix indentation.
1058 * python/py-xmethods.c: Fix indentation.
1059 * python/python-internal.h: Fix indentation.
1060 * python/python.c: Fix indentation.
1061 * ravenscar-thread.c: Fix indentation.
1062 * record-btrace.c: Fix indentation.
1063 * record-full.c: Fix indentation.
1064 * record.c: Fix indentation.
1065 * reggroups.c: Fix indentation.
1066 * regset.h: Fix indentation.
1067 * remote-fileio.c: Fix indentation.
1068 * remote.c: Fix indentation.
1069 * reverse.c: Fix indentation.
1070 * riscv-linux-tdep.c: Fix indentation.
1071 * riscv-ravenscar-thread.c: Fix indentation.
1072 * riscv-tdep.c: Fix indentation.
1073 * rl78-tdep.c: Fix indentation.
1074 * rs6000-aix-tdep.c: Fix indentation.
1075 * rs6000-lynx178-tdep.c: Fix indentation.
1076 * rs6000-nat.c: Fix indentation.
1077 * rs6000-tdep.c: Fix indentation.
1078 * rust-lang.c: Fix indentation.
1079 * rx-tdep.c: Fix indentation.
1080 * s12z-tdep.c: Fix indentation.
1081 * s390-linux-tdep.c: Fix indentation.
1082 * score-tdep.c: Fix indentation.
1083 * ser-base.c: Fix indentation.
1084 * ser-mingw.c: Fix indentation.
1085 * ser-uds.c: Fix indentation.
1086 * ser-unix.c: Fix indentation.
1087 * serial.c: Fix indentation.
1088 * sh-linux-tdep.c: Fix indentation.
1089 * sh-nbsd-tdep.c: Fix indentation.
1090 * sh-tdep.c: Fix indentation.
1091 * skip.c: Fix indentation.
1092 * sol-thread.c: Fix indentation.
1093 * solib-aix.c: Fix indentation.
1094 * solib-darwin.c: Fix indentation.
1095 * solib-frv.c: Fix indentation.
1096 * solib-svr4.c: Fix indentation.
1097 * solib.c: Fix indentation.
1098 * source.c: Fix indentation.
1099 * sparc-linux-tdep.c: Fix indentation.
1100 * sparc-nbsd-tdep.c: Fix indentation.
1101 * sparc-obsd-tdep.c: Fix indentation.
1102 * sparc-ravenscar-thread.c: Fix indentation.
1103 * sparc-tdep.c: Fix indentation.
1104 * sparc64-linux-tdep.c: Fix indentation.
1105 * sparc64-nbsd-tdep.c: Fix indentation.
1106 * sparc64-obsd-tdep.c: Fix indentation.
1107 * sparc64-tdep.c: Fix indentation.
1108 * stabsread.c: Fix indentation.
1109 * stack.c: Fix indentation.
1110 * stap-probe.c: Fix indentation.
1111 * stubs/ia64vms-stub.c: Fix indentation.
1112 * stubs/m32r-stub.c: Fix indentation.
1113 * stubs/m68k-stub.c: Fix indentation.
1114 * stubs/sh-stub.c: Fix indentation.
1115 * stubs/sparc-stub.c: Fix indentation.
1116 * symfile-mem.c: Fix indentation.
1117 * symfile.c: Fix indentation.
1118 * symfile.h: Fix indentation.
1119 * symmisc.c: Fix indentation.
1120 * symtab.c: Fix indentation.
1121 * symtab.h: Fix indentation.
1122 * target-float.c: Fix indentation.
1123 * target.c: Fix indentation.
1124 * target.h: Fix indentation.
1125 * tic6x-tdep.c: Fix indentation.
1126 * tilegx-linux-tdep.c: Fix indentation.
1127 * tilegx-tdep.c: Fix indentation.
1128 * top.c: Fix indentation.
1129 * tracefile-tfile.c: Fix indentation.
1130 * tracepoint.c: Fix indentation.
1131 * tui/tui-disasm.c: Fix indentation.
1132 * tui/tui-io.c: Fix indentation.
1133 * tui/tui-regs.c: Fix indentation.
1134 * tui/tui-stack.c: Fix indentation.
1135 * tui/tui-win.c: Fix indentation.
1136 * tui/tui-winsource.c: Fix indentation.
1137 * tui/tui.c: Fix indentation.
1138 * typeprint.c: Fix indentation.
1139 * ui-out.h: Fix indentation.
1140 * unittests/copy_bitwise-selftests.c: Fix indentation.
1141 * unittests/memory-map-selftests.c: Fix indentation.
1142 * utils.c: Fix indentation.
1143 * v850-tdep.c: Fix indentation.
1144 * valarith.c: Fix indentation.
1145 * valops.c: Fix indentation.
1146 * valprint.c: Fix indentation.
1147 * valprint.h: Fix indentation.
1148 * value.c: Fix indentation.
1149 * value.h: Fix indentation.
1150 * varobj.c: Fix indentation.
1151 * vax-tdep.c: Fix indentation.
1152 * windows-nat.c: Fix indentation.
1153 * windows-tdep.c: Fix indentation.
1154 * xcoffread.c: Fix indentation.
1155 * xml-syscall.c: Fix indentation.
1156 * xml-tdesc.c: Fix indentation.
1157 * xstormy16-tdep.c: Fix indentation.
1158 * xtensa-config.c: Fix indentation.
1159 * xtensa-linux-nat.c: Fix indentation.
1160 * xtensa-linux-tdep.c: Fix indentation.
1161 * xtensa-tdep.c: Fix indentation.
1162
1163 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1164 Craig Blackmore <craig.blackmore@embecosm.com>
1165
1166 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1167 as an unsigned value.
1168
1169 2020-11-01 Tom Tromey <tom@tromey.com>
1170
1171 * dbxread.c (dbx_end_psymtab): Update.
1172 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1173 (build_type_psymtabs_reader): Update.
1174 * xcoffread.c (xcoff_end_psymtab): Update.
1175 * ctfread.c (scan_partial_symbols): Update.
1176 * psymtab.c (sort_pst_symbols): Remove.
1177 (partial_symtab::end): Rename from end_psymtab_common. Inline
1178 sort_pst_symbols.
1179 * psympriv.h (struct partial_symtab) <end>: New method.
1180 (end_psymtab_common): Don't declare.
1181
1182 2020-11-01 Tom Tromey <tom@tromey.com>
1183
1184 * symmisc.c (count_psyms): New function.
1185 (print_objfile_statistics): Use it.
1186 * psymtab.c (append_psymbol_to_list): Remove.
1187 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1188 * objfiles.h (struct objstats) <n_psyms>: Remove.
1189
1190 2020-11-01 Tom Tromey <tom@tromey.com>
1191
1192 * dbxread.c (dbx_end_psymtab): Update.
1193 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1194 (build_type_psymtabs_reader): Update.
1195 * xcoffread.c (xcoff_end_psymtab): Update.
1196 * ctfread.c (scan_partial_symbols): Update.
1197 * psympriv.h (end_psymtab_common): Update.
1198 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1199 (sort_pst_symbols): Likewise.
1200
1201 2020-11-01 Tom Tromey <tom@tromey.com>
1202
1203 * dbxread.c (dbx_symfile_read): Update.
1204 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1205 * xcoffread.c (xcoff_initial_scan): Update.
1206 * psympriv.h (init_psymbol_list): Don't declare.
1207 * psymtab.c (init_psymbol_list): Remove.
1208
1209 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1210
1211 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1212 gnat_encoded_fixed_type_info. Update all callers.
1213
1214 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1215
1216 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1217 line too long.
1218
1219 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1220
1221 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1222 cast_from_fixed. Update all callers.
1223 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1224 Update all callers.
1225 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1226 Update all callers.
1227 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1228 ada_scaling_factor.
1229 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1230 to print_gnat_encoded_fixed_point_type.
1231 * ada-valprint.c: Likewise.
1232
1233 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1236 (debug_prefixed_printf): Add check of debug_displaced flag.
1237 * linux-nat.c (linux_nat_debug_printf): Add check of
1238 debug_linux_nat flag.
1239
1240 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * infrun.c (infrun_debug_printf_1): Remove.
1243 (displaced_debug_printf_1): Remove.
1244 (stop_all_threads): Use debug_prefixed_printf.
1245 * infrun.h (infrun_debug_printf_1): Remove.
1246 (infrun_debug_printf): Use debug_prefixed_printf.
1247 (displaced_debug_printf_1): Remove.
1248 (displaced_debug_printf): Use debug_prefixed_printf.
1249 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1250 (linux_nat_debug_printf): Use debug_prefixed_printf.
1251
1252 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * configure: Re-generate.
1255 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1256 AC_LANG_PROGRAM.
1257
1258 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * configure: Re-generate.
1261
1262 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * configure: Re-generate.
1265
1266 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * configure: Re-generate.
1269
1270 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * configure: Re-generate.
1273
1274 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * acinclude.m4: Modernize.
1277 * configure: Re-generate.
1278
1279 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * configure.ac: Modernize.
1282 * configure: Re-generate.
1283
1284 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1287 * configure: Re-generate.
1288 * configure.ac: Remove AM_PROG_CC_STDC.
1289
1290 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1293 AC_CANONICAL_SYSTEM.
1294 * configure: Re-generate.
1295
1296 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1297
1298 * infrun.h (displaced_debug_printf): New macro. Replace
1299 displaced debug prints throughout to use it.
1300 (displaced_debug_printf_1): New declaration.
1301 (displaced_step_dump_bytes): Return string, remove ui_file
1302 parameter, update all callers.
1303 * infrun.c (displaced_debug_printf_1): New function.
1304 (displaced_step_dump_bytes): Return string, remove ui_file
1305 parameter
1306
1307 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1310
1311 2020-10-30 Tom Tromey <tromey@adacore.com>
1312
1313 * Makefile.in (stamp-init): Depend on config.status.
1314
1315 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1316
1317 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1318
1319 2020-10-30 Pedro Alves <pedro@palves.net>
1320
1321 * thread.c (lookup_selected_frame): Move ...
1322 * frame.c (lookup_selected_frame): ... here.
1323
1324 2020-10-30 Pedro Alves <pedro@palves.net>
1325
1326 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1327 * frame.c
1328 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1329 Use save_selected_frame. Save language as well.
1330 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1331 Use restore_selected_frame, and restore language as well.
1332 (selected_frame_id, selected_frame_level): New.
1333 (selected_frame): Update comments.
1334 (save_selected_frame, restore_selected_frame): New.
1335 (get_selected_frame): Use lookup_selected_frame.
1336 (get_selected_frame_if_set): Delete.
1337 (select_frame): Record selected_frame_level and selected_frame_id.
1338 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1339 fields.
1340 (get_selected_frame): Make 'message' parameter optional.
1341 (get_selected_frame_if_set): Delete declaration.
1342 (select_frame): Update comments.
1343 (save_selected_frame, restore_selected_frame)
1344 (lookup_selected_frame): Declare.
1345 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1346 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1347 New field.
1348 (save_infcall_control_state): Use save_selected_frame.
1349 (restore_selected_frame): Delete.
1350 (restore_infcall_control_state): Use restore_selected_frame.
1351 * stack.c (select_frame_command_core, frame_command_core): Use
1352 get_selected_frame.
1353 * thread.c (restore_selected_frame): Rename to ...
1354 (lookup_selected_frame): ... this and make extern. Select the
1355 current frame if the frame level is -1.
1356 (scoped_restore_current_thread::restore): Also restore the
1357 language.
1358 (scoped_restore_current_thread::~scoped_restore_current_thread):
1359 Don't try/catch.
1360 (scoped_restore_current_thread::scoped_restore_current_thread):
1361 Save the language as well. Use save_selected_frame.
1362
1363 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1366 documentation.
1367 * gdbarch.h: Re-generate.
1368
1369 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1370
1371 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1372 parameter.
1373 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1374 Likewise.
1375 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1376 Likewise.
1377 * arch-utils.c (default_displaced_step_hw_singlestep):
1378 Likewise.
1379 * arch-utils.h (default_displaced_step_hw_singlestep):
1380 Likewise.
1381 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1382 Likewise.
1383 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1384 Likewise.
1385 * gdbarch.c: Re-generate.
1386 * gdbarch.h: Re-generate.
1387 * infrun.c (resume_1): Adjust.
1388
1389 2020-10-29 Tom Tromey <tom@tromey.com>
1390
1391 * progspace.c (program_space::~program_space): Don't call
1392 exec_close.
1393
1394 2020-10-29 Tom Tromey <tom@tromey.com>
1395
1396 * exec.c (exec_target::close): Don't change current program
1397 space.
1398
1399 2020-10-29 Tom Tromey <tom@tromey.com>
1400
1401 * symfile.c (add_symbol_file_command): Update.
1402 * exec.c (program_space::add_target_sections): Rename.
1403 * symfile-mem.c (symbol_file_add_from_memory): Update.
1404 * progspace.h (struct program_space) <add_target_sections>:
1405 Declare new overload.
1406 * exec.h (add_target_sections_of_objfile): Don't declare.
1407
1408 2020-10-29 Tom Tromey <tom@tromey.com>
1409
1410 * solib.c (solib_map_sections): Update.
1411 * exec.c (program_space::add_target_sections): Now a method.
1412 (exec_file_attach): Update.
1413 * exec.h (add_target_sections): Don't declare.
1414 * progspace.h (struct program_space) <add_target_sections>:
1415 Declare.
1416
1417 2020-10-29 Tom Tromey <tom@tromey.com>
1418
1419 * progspace.h (struct program_space) <remove_target_sections>:
1420 Declare.
1421 * exec.c (program_space::remove_target_sections): Now a method.
1422 * exec.h (remove_target_sections): Don't declare.
1423
1424 2020-10-29 Tom Tromey <tom@tromey.com>
1425
1426 * inferior.c (delete_inferior): Update.
1427 * progspace.c (program_space::empty): Rename from
1428 program_space_empty_p. Return bool.
1429 * progspace.h (struct program_space) <empty>: New method.
1430 (program_space_empty_p): Don't declare.
1431
1432 2020-10-29 Tom Tromey <tom@tromey.com>
1433
1434 * progspace.c (program_space::~program_space): Don't call
1435 clear_program_space_solib_cache.
1436 (program_space::clear_solib_cache): Rename from
1437 clear_solib_cache.
1438 * solib.c (handle_solib_event): Update.
1439 * progspace.h (struct program_space) <clear_solib_cache>: New
1440 method.
1441 (clear_program_space_solib_cache): Don't declare.
1442
1443 2020-10-29 Tom Tromey <tom@tromey.com>
1444
1445 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1446 * target.c (info_target_command): Update.
1447 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1448 (symbol_file_clear, reread_symbols): Update.
1449 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1450 * stabsread.c (scan_file_globals): Update.
1451 * solib.c (update_solib_list): Update.
1452 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1453 (svr4_fetch_objfile_link_map, enable_break)
1454 (svr4_relocate_main_executable)
1455 (svr4_iterate_over_objfiles_in_search_order): Update.
1456 * solib-frv.c (lm_base, enable_break)
1457 (frv_relocate_main_executable): Update.
1458 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1459 (frv_fetch_objfile_link_map): Update.
1460 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1461 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1462 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1463 * remote.c (remote_target::get_offsets): Update.
1464 (remote_target::start_remote)
1465 (extended_remote_target::post_attach): Update.
1466 * objfiles.c (entry_point_address_query): Update.
1467 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1468 * minsyms.c (get_symbol_leading_char): Update.
1469 * frame.c (inside_main_func): Update.
1470 * progspace.h (symfile_objfile): Remove macro.
1471
1472 2020-10-29 Tom Tromey <tom@tromey.com>
1473
1474 * exec.c (exec_file_attach): Update.
1475 * progspace.c (program_space::exec_close): Update.
1476 * progspace.h (struct program_space) <ebfd>: Now a
1477 gdb_bfd_ref_ptr.
1478 <set_exec_bfd>: Change argument type.
1479 <exec_bfd>: Update.
1480
1481 2020-10-29 Tom Tromey <tom@tromey.com>
1482
1483 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1484 * symfile.c (reread_symbols): Update.
1485 * symfile-mem.c (add_symbol_file_from_memory_command)
1486 (add_vsyscall_page): Update.
1487 * source-cache.c (source_cache::get_plain_source_lines): Update.
1488 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1489 (svr4_current_sos_direct, svr4_exec_displacement)
1490 (svr4_relocate_main_executable): Update.
1491 (svr4_iterate_over_objfiles_in_search_order): Update.
1492 * solib-frv.c (enable_break2, enable_break): Update.
1493 * solib-dsbt.c (lm_base, enable_break): Update.
1494 * solib-darwin.c (find_program_interpreter)
1495 (darwin_solib_create_inferior_hook): Update.
1496 * sol-thread.c (rw_common, ps_pdmodel): Update.
1497 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1498 * remote.c (compare_sections_command)
1499 (remote_target::trace_set_readonly_regions): Update.
1500 * remote-sim.c (get_sim_inferior_data)
1501 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1502 (gdbsim_target_open, gdbsim_target::files_info): Update.
1503 * exec.h (exec_bfd): Remove macro.
1504 * progspace.c (initialize_progspace): Update.
1505 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1506 Update.
1507 * nto-procfs.c (nto_procfs_target::post_attach)
1508 (nto_procfs_target::create_inferior): Update.
1509 * maint.c (maintenance_info_sections): Update.
1510 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1511 Update.
1512 * infcmd.c (post_create_inferior): Update.
1513 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1514 (objfile_find_memory_regions): Update.
1515 * exec.c (validate_exec_file, exec_file_attach)
1516 (exec_read_partial_read_only, print_section_info): Update.
1517 * corelow.c (core_target_open): Update.
1518 * corefile.c (reopen_exec_file, validate_files): Update.
1519 * arm-tdep.c (gdb_print_insn_arm): Update.
1520 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1521 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1522 methods.
1523
1524 2020-10-29 Tom Tromey <tom@tromey.com>
1525
1526 * progspace.h (current_target_sections): Remove macro.
1527 * solib-svr4.c (scan_dyntag): Update.
1528 * solib-dsbt.c (scan_dyntag): Update.
1529 * exec.c (exec_target::close): Update.
1530 (add_target_sections, add_target_sections_of_objfile)
1531 (remove_target_sections, exec_target::get_section_table)
1532 (exec_target::files_info, set_section_command)
1533 (exec_set_section_address, exec_target::has_memory)
1534 (exec_target::has_memory): Update.
1535
1536 2020-10-29 Tom Tromey <tom@tromey.com>
1537
1538 * source-cache.c (source_cache::get_plain_source_lines): Use
1539 current_program_space.
1540 * corefile.c (reopen_exec_file): Use current_program_space.
1541 * exec.c (exec_file_attach): Use current_program_space.
1542 * exec.h (exec_bfd_mtime): Remove.
1543
1544 2020-10-29 Tom Tromey <tom@tromey.com>
1545
1546 * gcore.c (default_gcore_mach): Remove.
1547 (create_gcore_bfd): Update.
1548
1549 2020-10-29 Tom Tromey <tom@tromey.com>
1550
1551 * progspace.c (program_space::exec_close): New method, from
1552 exec_close in exec.c.
1553 * exec.c (exec_close): Move to progspace.c.
1554 (exec_target::close, exec_file_attach): Update.
1555 * progspace.h (struct program_space) <exec_close>: Declare
1556 method.
1557
1558 2020-10-29 Tom Tromey <tom@tromey.com>
1559
1560 * progspace.h (struct program_space) <exec_filename>: Rename from
1561 pspace_exec_filename. Now a unique_xmalloc_ptr.
1562 * inferior.c (print_selected_inferior): Update.
1563 (print_inferior): Update.
1564 * mi/mi-main.c (print_one_inferior): Update.
1565 * exec.h (exec_filename): Remove macro.
1566 * corefile.c (get_exec_file): Update.
1567 * exec.c (exec_close): Update.
1568 (exec_file_attach): Update.
1569 * progspace.c (clone_program_space): Update.
1570 (print_program_space): Update.
1571
1572 2020-10-29 Tom Tromey <tom@tromey.com>
1573
1574 * target-section.h (struct target_section): Add constructor.
1575 * exec.c (build_section_table, add_target_sections_of_objfile):
1576 Update.
1577 * corelow.c (core_target::build_file_mappings): Update.
1578
1579 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580
1581 PR gdb/19318
1582 * inferior.c (detach_inferior_command): Restore the current thread.
1583 (kill_inferior_command): Ditto.
1584
1585 2020-10-28 Tom de Vries <tdevries@suse.de>
1586
1587 PR symtab/26772
1588 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1589 map, check it in the "best match" loop.
1590
1591 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1592
1593 * m32c-tdep.c: Remove unused includes.
1594
1595 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1596
1597 * xtensa-tdep.c: Remove includes.
1598
1599 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1600
1601 * breakpoint.c (struct condition_command_opts): New struct.
1602 (condition_command_option_defs): New static global.
1603 (make_condition_command_options_def_group): New function.
1604 (condition_completer): Update to consider the '-force' flag.
1605 (condition_command): Use gdb::option for the '-force' flag.
1606
1607 2020-10-27 Tom de Vries <tdevries@suse.de>
1608
1609 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1610 symbols in section check.
1611
1612 2020-10-27 Tom de Vries <tdevries@suse.de>
1613
1614 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1615
1616 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1617
1618 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1619 * breakpoint.c: Update the help text of the 'condition' and 'break'
1620 commands.
1621 (set_breakpoint_condition): Take a new bool parameter
1622 to control whether condition definition should be forced even when
1623 the condition expression is invalid in all of the current locations.
1624 (condition_command): Update the call to 'set_breakpoint_condition'.
1625 (find_condition_and_thread): Take the "-force-condition" flag into
1626 account.
1627 * linespec.c (linespec_keywords): Add "-force-condition" as an
1628 element.
1629 (FORCE_KEYWORD_INDEX): New #define.
1630 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1631 as a keyword.
1632 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1633 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1634 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1635 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1636
1637 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1638
1639 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1640 * breakpoint.c (set_breakpoint_location_condition): New function.
1641 (set_breakpoint_condition): Disable a breakpoint location if parsing
1642 the condition string gives an error.
1643 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1644 (build_target_condition_list): Ditto.
1645 (build_target_command_list): Ditto.
1646 (build_bpstat_chain): Ditto.
1647 (print_one_breakpoint_location): Ditto.
1648 (print_one_breakpoint): Ditto.
1649 (breakpoint_1): Ditto.
1650 (bp_location::bp_location): Ditto.
1651 (locations_are_equal): Ditto.
1652 (update_breakpoint_locations): Ditto.
1653 (enable_disable_bp_num_loc): Ditto.
1654 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1655 (find_condition_and_thread_for_sals): New static function.
1656 (create_breakpoint): Call find_condition_and_thread_for_sals.
1657 (location_to_sals): Call find_condition_and_thread_for_sals instead
1658 of find_condition_and_thread.
1659
1660 2020-10-26 Tom de Vries <tdevries@suse.de>
1661
1662 * dwarf2/read.c (process_full_comp_unit): Call
1663 dwarf2_find_base_address.
1664
1665 2020-10-26 Tom Tromey <tromey@adacore.com>
1666
1667 * gdbtypes.c (create_range_type): Revert previous patch. Add
1668 comment.
1669
1670 2020-10-26 Pedro Alves <pedro@palves.net>
1671
1672 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1673 (my_waitpid): Use gdb::handle_eintr.
1674
1675 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * acinclude.m4: Update ptrace.m4 path.
1678 * ptrace.m4: Moved to gdbsupport.
1679
1680 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1681
1682 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1683 instead of target_gdbarch.
1684
1685 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1686
1687 * jit.c (jit_reader_load_command): Pass current inferior.
1688 (jit_inferior_init): Change parameter type to inferior, use it.
1689 (jit_inferior_created): Remove.
1690 (jit_inferior_created_hook): Pass inferior parameter down.
1691 (_initialize_jit): Use jit_inferior_created_hook instead of
1692 jit_inferior_created.
1693 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1694 * infrun.c (follow_exec): Pass inferior to
1695 jit_inferior_created_hook.
1696
1697 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1700 parameter and use it.
1701 (thread_db_inferior_created): Pass inferior argument.
1702
1703 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * aix-thread.c (aix_thread_inferior_created): Add inferior
1706 parameter.
1707 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1708 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1709 * jit.c (jit_inferior_created): Likewise.
1710 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1711 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1712 * observable.h (inferior_created): Likewise.
1713 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1714 * symfile-mem.c (add_vsyscall_page): Likewise.
1715 * infcmd.c (post_create_inferior): Pass inferior argument.
1716
1717 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1718
1719 GDB 10.1 released.
1720
1721 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1722
1723 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1724 to ada_check_typedef.
1725
1726 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * f-exp.y (f_parse): Rename to...
1729 (f_language::parser): ...this.
1730 * f-lang.c (f_get_encoding): Rename to...
1731 (f_language::get_encoding): ...this.
1732 (f_op_print_tab): Rename to...
1733 (f_language::op_print_tab): ...this.
1734 (exp_descriptor_f): Rename to...
1735 (f_language::exp_descriptor_tab): ...this.
1736 (class f_language): Moved to f-lang.h.
1737 (f_language::language_arch_info): New function, moved out of class
1738 declaration.
1739 (f_language::search_name_hash): Likewise.
1740 (f_language::lookup_symbol_nonlocal): Likewise.
1741 (f_language::get_symbol_name_matcher_inner): Likewise.
1742 * f-lang.h: Add 'valprint.h' include.
1743 (class f_language): Moved here from f-lang.c.
1744 * f-typeprint.c (f_type_print_args): Delete commented out
1745 declaration.
1746 (f_print_typedef): Rename to...
1747 (f_language::print_typedef): ...this.
1748 (f_print_type): Rename to...
1749 (f_language::print_type): ...this.
1750 (f_type_print_varspec_prefix): Delete declaration and rename to...
1751 (f_language::f_type_print_varspec_prefix): ...this.
1752 (f_type_print_varspec_suffix): Delete declaration and rename to...
1753 (f_language::f_type_print_varspec_suffix): ...this.
1754 (f_type_print_base): Delete declaration and rename to...
1755 (f_language::f_type_print_base): ...this.
1756 * f-valprint.c (f_value_print_inner): Rename to...
1757 (f_language::value_print_inner): ...this.
1758 * parse.c: Delete 'f-lang.h' include.
1759
1760 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * language.h (language_defn::print_type): Add variable names in
1763 declaration, and update header comment.
1764
1765 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * ada-lang.c (ada_language::demangle): Rename to...
1768 (ada_language::demangle_symbol): ...this.
1769 * c-lang.c (cplus_language::demangle): Rename to...
1770 (cplus_language::demangle_symbol): ...this.
1771 * d-lang.c (d_language::demangle): Rename to...
1772 (d_language::demangle_symbol): ...this.
1773 * f-lang.c (f_language::demangle): Rename to...
1774 (f_language::demangle_symbol): ...this.
1775 * go-lang.c (go_language::demangle): Rename to...
1776 (go_language::demangle_symbol): ...this.
1777 * language.c (language_demangle): Update call to demangle_symbol.
1778 (auto_or_unknown_language::demangle): Rename to...
1779 (auto_or_unknown_language::demangle_symbol): ...this.
1780 * language.h (language_defn::demangle): Rename to...
1781 (language_defn::demangle_symbol): ...this.
1782 * objc-lang.c (objc_language::demangle): Rename to...
1783 (objc_language::demangle_symbol): ...this.
1784 * rust-lang.c (rust_language::demangle): Rename to...
1785 (rust_language::demangle_symbol): ...this.
1786
1787 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1790 (iterate_over_file_blocks): Replace use of macro with the macros
1791 definition.
1792
1793 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1796 * valprint.c (maybe_print_array_index): Replace use of macro with
1797 the macros definition.
1798
1799 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * ada-lang.c (ada_language::print_array_index): Call value_print
1802 directly.
1803 * language.c (language_defn::print_array_index): Likewise.
1804 * language.h (LA_VALUE_PRINT): Delete.
1805 * valprint.c (value_print): Call value_print on the
1806 current_language directly.
1807
1808 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * language.h (LA_PRINT_TYPEDEF): Delete.
1811 * typeprint.c (typedef_print): Call print_typedef directly on the
1812 current_language object.
1813
1814 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1815
1816 * m2-exp.y (m2_parse): Rename to...
1817 (m2_language::parser): ...this. Update function signature.
1818 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1819 (m2_op_print): Rename to...
1820 (m2_language::op_print_tab): ...this, and make const.
1821 (exp_descriptor_modula2): Rename to...
1822 (m2_language::exp_descriptor_modula2): ...this.
1823 (class m2_language): Move to m2-lang.h.
1824 (m2_language::language_arch_info): New function, moved out of
1825 class declaration.
1826 (m2_language::printchar): New function, body from m2_printchar.
1827 (m2_language::printstr): New function, moved out of class
1828 declaration.
1829 (m2_language::emitchar): Likewise.
1830 * m2-lang.h (m2_parse): Delete declaration.
1831 (m2_print_typedef): Delete declaration.
1832 (m2_value_print_inner): Delete declaration.
1833 (class m2_language): Class declaration moved from m2-lang.c,
1834 larger functions are left in m2-lang.c.
1835 * m2-typeprint.c (m2_print_typedef): Rename to...
1836 (m2_language::print_typedef): ...this, and update function
1837 signature.
1838 * m2-valprint.c (m2_value_print_inner): Rename to...
1839 (m2_language::value_print_inner): ...this, replace use of
1840 LA_PRINT_STRING with a direct call to printstr member function,
1841 and update recursive call.
1842
1843 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * language.c (default_is_string_type_p): Delete, implementation
1846 moved into auto_or_unknown_language::is_string_type_p.
1847 (unk_op_print_tab): Moved into
1848 auto_or_unknown_language::opcode_print_table.
1849 (unknown_language_arch_info): Delete, implementation moved into
1850 auto_or_unknown_language::language_arch_info.
1851 (class auto_or_unknown_language): New class, member functions
1852 copied from unknown_language class, with some updates.
1853 (class unknown_language): Most member functions moved into
1854 auto_or_unknown_language class. Inherit from
1855 auto_or_unknown_language class.
1856 (class auto_language): Inherit from auto_or_unknown_language.
1857 Delete most member functions.
1858
1859 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1860
1861 * stabsread.c (read_member_functions): Remove gdb_assert.
1862
1863 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1864
1865 * gdbtypes.c (init_complex_type): Check target type name.
1866
1867 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * target-debug.h (target_debug_print_struct_target_ops_p):
1870 Remove.
1871 (target_debug_print_async_callback_ftype_p): Remove.
1872 (target_debug_print_struct_trace_state_variable_p): Remove.
1873 (target_debug_print_struct_traceframe_info_p): Remove.
1874 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1875 (target_debug_print_enum_btrace_format): Remove.
1876 (target_debug_print_enum_info_proc_what): Remove.
1877 (target_debug_print_thread_info_pp): Remove.
1878
1879 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * target.h (struct target_ops) <make_corefile_notes>:
1882 Change return type to unique pointer.
1883 * target.c (dummy_make_corefile_notes): Likewise.
1884 * exec.c (struct exec_target) <make_corefile_notes>:
1885 Likewise.
1886 (exec_target::make_corefile_notes): Likewise.
1887 * procfs.c (class procfs_target) <make_corefile_notes>:
1888 Likewise.
1889 (procfs_do_thread_registers): Adjust to unique pointer.
1890 (struct procfs_corefile_thread_data): Add constructor.
1891 <note_data>: Change type to unique pointer.
1892 (procfs_corefile_thread_callback): Adjust to unique pointer.
1893 (procfs_target::make_corefile_notes): Change return type to
1894 unique pointer.
1895 * target-delegates.c: Re-generate.
1896 * gcore.c (write_gcore_file_1): Adjust.
1897 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1898 New.
1899
1900 2020-10-22 Tom de Vries <tdevries@suse.de>
1901
1902 * block.c (find_block_in_blockvector): Make sure the returned block
1903 contains pc.
1904
1905 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 PR gdb/26693
1908 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1909 parameter.
1910 (load_cu): Pass existing CU.
1911 (process_imported_unit_die): Likewise.
1912 (follow_die_offset): Likewise.
1913
1914 2020-10-22 Luis Machado <luis.machado@linaro.org>
1915
1916 * corelow.c (core_target::xfer_partial): Also check for an empty
1917 m_core_unavailable_mappings vector.
1918
1919 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1922 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1923 * f-exp.y (arglist): Allow for a series of subranges.
1924 (subrange): Add cases for subranges with strides.
1925 * f-lang.c (value_f90_subarray): Catch use of array strides and
1926 throw an error.
1927 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1928
1929 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * expprint.c (print_subexp_standard): Change enum range_type to
1932 range_flag and rename variables to match.
1933 (dump_subexp_body_standard): Likewise.
1934 * expression.h (enum range_type): Rename to...
1935 (enum range_flag): ...this.
1936 (range_types): Rename to...
1937 (range_flags): ...this.
1938 * f-lang.c (value_f90_subarray): Change enum range_type to
1939 range_flag and rename variables to match.
1940 * parse.c (operator_length_standard): Likewise.
1941 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1942 range_type to range_flag.
1943 * rust-lang.c (rust_evaluate_funcall): Likewise.
1944 (rust_range): Likewise.
1945 (rust_compute_range): Likewise.
1946 (rust_subscript): Likewise.
1947
1948 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * expprint.c (print_subexp_standard): Update to reflect changes to
1951 enum range_type.
1952 (dump_subexp_body_standard): Likewise.
1953 * expression.h (enum range_type): Convert to a bit field enum, and
1954 make the enum unsigned.
1955 * f-exp.y (subrange): Update to reflect changes to enum
1956 range_type.
1957 * f-lang.c (value_f90_subarray): Likewise.
1958 * parse.c (operator_length_standard): Likewise.
1959 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1960 * rust-lang.c (rust_range): Likewise.
1961 (rust_compute_range): Likewise.
1962 (rust_subscript): Likewise.
1963
1964 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1965
1966 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1967 (displaced_step_in_progress): Fix comment.
1968
1969 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1970
1971 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1972 * gdbarch.c: Re-generate.
1973 * gdbarch.h: Re-generate.
1974 * gcore.c (write_gcore_file_1): Adjust.
1975 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1976 constructor.
1977 <note_data>: Change type to unique pointer.
1978 <abort_iteration>: Change type to bool.
1979 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1980 (fbsd_collect_thread_registers): Return void, adjust.
1981 (struct fbsd_corefile_thread_data): Add construtor.
1982 <note_data>: Change type to unique pointer.
1983 (fbsd_corefile_thread): Adjust.
1984 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1985 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1986 to unique pointer, adjust.
1987 (struct linux_collect_regset_section_cb_data): Add constructor.
1988 <note_data>: Change type to unique pointer.
1989 <abort_iteration>: Change type to bool.
1990 (linux_collect_thread_registers): Return void, adjust.
1991 (struct linux_corefile_thread_data): Add constructor.
1992 <note_data>: Change type to unique pointer.
1993 (linux_corefile_thread): Adjust.
1994 (linux_make_corefile_notes): Return unique pointer, adjust.
1995
1996 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1999 * gdbarch.c: Re-generate.
2000 * gdbarch.h: Re-generate.
2001 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2002 bool.
2003 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2004 Likewise.
2005 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2006 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2007 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2008 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2009
2010 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * gdbarch.sh: Make generated predicates return bool.
2013 * gdbarch.c: Re-generate.
2014 * gdbarch.h: Re-generate.
2015
2016 2020-10-20 Tom Tromey <tom@tromey.com>
2017
2018 * varobj-iter.h (struct varobj_item): Remove typedef.
2019
2020 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * infrun.c (currently_stepping): Change int to bool
2023 (maybe_software_singlestep): Likewise.
2024 (show_stop_on_solib_events): Likewise.
2025 (stepping_past_nonsteppable_watchpoint): Likewise.
2026 (displaced_step_in_progress_any_inferior): Likewise.
2027 (displaced_step_in_progress_thread): Likewise.
2028 (keep_going_stepped_thread): Likewise.
2029 (thread_still_needs_step_over): Likewise.
2030 (start_step_over): Likewise.
2031 (do_target_resume): Likewise.
2032 (resume_1): Likewise.
2033 (clear_proceed_status): Likewise.
2034 (thread_still_needs_step_over_bp): Likewise.
2035 (proceed): Likewise.
2036 (switch_back_to_stepped_thread): Likewise.
2037 (adjust_pc_after_break): Likewise.
2038 (stepped_in_from): Likewise.
2039 (handle_stop_requested): Likewise.
2040 (handle_syscall_event): Likewise.
2041 (handle_no_resumed): Likewise.
2042 (handle_inferior_event): Likewise.
2043 (finish_step_over): Likewise.
2044 (handle_signal_stop): Likewise.
2045 (process_event_stop_test): Likewise.
2046
2047 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * infrun.c (get_displaced_stepping_state): Fix comment.
2050
2051 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2052
2053 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2054
2055 2020-10-19 Tom Tromey <tromey@adacore.com>
2056
2057 PR tui/26719
2058 * tui/tui-winsource.h (struct tui_source_window_base)
2059 <refresh_window>: Rename from refresh_pad.
2060 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2061 Rename from refresh_pad.
2062 (tui_source_window_base::show_source_content)
2063 (tui_source_window_base::do_scroll_horizontal): Update.
2064
2065 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2066
2067 * thread.c (_initialize_thread): Fine-tune the help text of
2068 'info threads'.
2069
2070 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2071
2072 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2073
2074 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2075
2076 * breakpoint.c (handle_jit_event): Add an argument, change how
2077 `jit_event_handler` is called.
2078
2079 2020-10-17 Tom Tromey <tom@tromey.com>
2080
2081 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2082 (scan_xcoff_symtab): Update.
2083 * psymtab.h (class psymtab_storage) <global_psymbols,
2084 static_psymbols, current_global_psymbols,
2085 current_static_psymbols>: Remove.
2086 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2087 (match_partial_symbol, lookup_partial_symbol): Update.
2088 (print_partial_symbols): Change parameters.
2089 (dump_psymtab, recursively_search_psymtabs)
2090 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2091 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2092 (concat): Remove.
2093 (end_psymtab_common): Simplify.
2094 (append_psymbol_to_list): Change parameters.
2095 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2096 (init_psymbol_list): Simplify.
2097 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2098 * psympriv.h (struct partial_symtab) <empty>: New method.
2099 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2100 Remove.
2101 <global_psymbols, static_psymbols>: New members.
2102 <add_psymbol>: New methods.
2103 (add_psymbol_to_list): Don't declare.
2104 (psymbol_placement): Move earlier.
2105 * mdebugread.c (parse_partial_symbols): Update.
2106 (handle_psymbol_enumerators): Change parameters.
2107 (mdebug_expand_psymtab): Update.
2108 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2109 (add_partial_symbol): Update.
2110 * dwarf2/index-write.c (write_psymbols): Change parameters.
2111 (write_one_signatured_type): Update.
2112 (recursively_count_psymbols): Update.
2113 (recursively_write_psymbols): Update.
2114 (class debug_names) <recursively_write_psymbols>: Update.
2115 <write_psymbols>: Change parameters.
2116 <write_one_signatured_type>: Update.
2117 * dbxread.c (read_dbx_symtab): Update.
2118 (dbx_end_psymtab): Use partial_symtab::empty.
2119 * ctfread.c (struct ctf_context) <pst>: New member.
2120 (create_partial_symtab): Set it.
2121 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2122 (scan_partial_symbols): Use the psymtab's context. Update.
2123
2124 2020-10-17 Tom Tromey <tom@tromey.com>
2125
2126 * valprint.c (generic_value_print): Remove comment.
2127 * m2-valprint.c (m2_value_print_inner): Remove comment.
2128 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2129 type.
2130
2131 2020-10-17 Tom de Vries <tdevries@suse.de>
2132
2133 PR symtab/26317
2134 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2135 symbol main.
2136
2137 2020-10-14 Tom de Vries <tdevries@suse.de>
2138
2139 PR gdb/26733
2140 * solib.c (solib_contains_address_p): Handle
2141 'solib->sections == nullptr'.
2142
2143 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 PR gdb/26642
2146 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2147 target can't do async.
2148 * target.c (target_wait): Assert that we don't pass
2149 TARGET_WNOHANG to a target that can't async.
2150
2151 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2152
2153 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2154 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2155 * alpha-bsd-nat.c: Adjust include.
2156 * alpha-bsd-tdep.h: Adjust comment.
2157 * alpha-nbsd-tdep.c: Rename to ...
2158 * alpha-netbsd-tdep.c: ... this, adjust include.
2159 * amd64-nbsd-nat.c: Rename to ...
2160 * amd64-netbsd-nat.c: ... this, adjust include.
2161 * amd64-nbsd-tdep.c: Rename to ...
2162 * amd64-netbsd-tdep.c: ... this, adjust include.
2163 * amd64-tdep.h: Adjust include.
2164 * arm-nbsd-nat.c: Rename to ...
2165 * arm-netbsd-nat.c: ... this, adjust include.
2166 * arm-nbsd-tdep.c: Rename to ...
2167 * arm-netbsd-tdep.c: ... this, adjust include.
2168 * arm-nbsd-tdep.h: Rename to ...
2169 * arm-netbsd-tdep.h: ... this, adjust include.
2170 * configure.nat: Adjust file lists.
2171 * configure.tgt: Likewise.
2172 * hppa-nbsd-nat.c: Rename to ...
2173 * hppa-netbsd-nat.c: ... this, adjust include.
2174 * hppa-nbsd-tdep.c: Rename to ...
2175 * hppa-netbsd-tdep.c: ... this, adjust include.
2176 * i386-nbsd-nat.c: Rename to ...
2177 * i386-netbsd-nat.c: ... this, adjust include.
2178 * i386-nbsd-tdep.c: Rename to ...
2179 * i386-netbsd-tdep.c: ... this, adjust include.
2180 * m68k-bsd-nat.c: Adjust include.
2181 * mips-nbsd-nat.c: Rename to ...
2182 * mips-netbsd-nat.c: ... this, adjust include.
2183 * mips-nbsd-tdep.c: Rename to ...
2184 * mips-netbsd-tdep.c: ... this, adjust include.
2185 * mips-nbsd-tdep.h: Rename to ...
2186 * mips-netbsd-tdep.h: ... this.
2187 * nbsd-nat.c: Rename to ...
2188 * netbsd-nat.c: ... this, adjust include.
2189 * nbsd-nat.h: Rename to ...
2190 * netbsd-nat.h: ... this, adjust include.
2191 * nbsd-tdep.c: Rename to ...
2192 * netbsd-tdep.c: ... this, adjust include.
2193 * nbsd-tdep.h: Rename to ...
2194 * netbsd-tdep.h: ... this.
2195 * ppc-nbsd-nat.c: Rename to ...
2196 * ppc-netbsd-nat.c: ... this, adjust include.
2197 * ppc-nbsd-tdep.c: Rename to ...
2198 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2199 * ppc-nbsd-tdep.h: Rename to ...
2200 * ppc-netbsd-tdep.h: ... this.
2201 * sh-nbsd-nat.c: Rename to ...
2202 * sh-netbsd-nat.c: ... this, adjust include.
2203 * sh-nbsd-tdep.c: Rename to ...
2204 * sh-netbsd-tdep.c: ... this, adjust include.
2205 * sparc-nbsd-nat.c: Rename to ...
2206 * sparc-netbsd-nat.c: ... this.
2207 * sparc-nbsd-tdep.c: Rename to ...
2208 * sparc-netbsd-tdep.c: ... this, adjust include.
2209 * sparc64-nbsd-nat.c: Rename to ...
2210 * sparc64-netbsd-nat.c: ... this.
2211 * sparc64-nbsd-tdep.c: Rename to ...
2212 * sparc64-netbsd-tdep.c: ... this, adjust include.
2213 * sparc64-tdep.h: Adjust comment.
2214 * vax-bsd-nat.c: Adjust include.
2215 * vax-nbsd-tdep.c: Rename to ...
2216 * vax-netbsd-tdep.c: ... this, adjust include.
2217
2218 2020-10-12 Tom Tromey <tom@tromey.com>
2219
2220 * target.h (struct target_ops) <get_section_table>: Update.
2221 (target_get_section_table): Update.
2222 * target.c (target_get_section_table, target_section_by_addr)
2223 (memory_xfer_partial_1): Update.
2224 * target-section.h (target_section_table): Now an alias.
2225 * target-delegates.c: Rebuild.
2226 * target-debug.h (target_debug_print_target_section_table_p):
2227 Rename from target_debug_print_struct_target_section_table_p.
2228 * symfile.c (build_section_addr_info_from_section_table): Update.
2229 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2230 * solib-svr4.c (scan_dyntag): Update.
2231 * solib-dsbt.c (scan_dyntag): Update.
2232 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2233 Update.
2234 * record-full.c (record_full_core_target::xfer_partial): Update.
2235 * progspace.h (struct program_space) <target_sections>: Update.
2236 * exec.h (print_section_info): Update.
2237 * exec.c (exec_target::close, build_section_table)
2238 (add_target_sections, add_target_sections_of_objfile)
2239 (remove_target_sections, exec_on_vfork)
2240 (section_table_available_memory)
2241 (section_table_xfer_memory_partial)
2242 (exec_target::get_section_table, exec_target::xfer_partial)
2243 (print_section_info, set_section_command)
2244 (exec_set_section_address, exec_target::has_memory): Update.
2245 * corelow.c (core_target::build_file_mappings)
2246 (core_target::xfer_partial, core_target::info_proc_mappings)
2247 (core_target::info_proc_mappings): Update.
2248 * bfd-target.c (class target_bfd): Update
2249
2250 2020-10-12 Tom Tromey <tom@tromey.com>
2251
2252 * progspace.c (program_space::~program_space): Don't call
2253 clear_section_table.
2254 * exec.h (clear_section_table): Don't declare.
2255 * exec.c (exec_target::close): Update.
2256 (clear_section_table): Remove.
2257
2258 2020-10-12 Tom Tromey <tom@tromey.com>
2259
2260 * exec.c (add_target_sections_of_objfile): Simplify.
2261
2262 2020-10-12 Tom Tromey <tom@tromey.com>
2263
2264 * solib.c (solib_map_sections): Update.
2265 * record-full.c (record_full_core_open_1): Update.
2266 * exec.h (build_section_table): Return a target_section_table.
2267 * exec.c (exec_file_attach): Update.
2268 (build_section_table): Return a target_section_table.
2269 * corelow.c (core_target::core_target): Update.
2270 * bfd-target.c (target_bfd::target_bfd): Update.
2271
2272 2020-10-12 Tom Tromey <tom@tromey.com>
2273
2274 * target.c (target_section_by_addr, memory_xfer_partial_1):
2275 Update.
2276 * target-section.h (struct target_section_table): Use
2277 std::vector.
2278 * symfile.h (build_section_addr_info_from_section_table): Take a
2279 target_section_table.
2280 * symfile.c (build_section_addr_info_from_section_table): Take a
2281 target_section_table.
2282 * solist.h (struct so_list) <sections>: Change type.
2283 <sections_end>: Remove.
2284 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2285 (solib_contains_address_p): Update.
2286 * solib-svr4.c (scan_dyntag): Update.
2287 * solib-dsbt.c (scan_dyntag): Update.
2288 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2289 Update.
2290 * record-full.c (record_full_core_start, record_full_core_end):
2291 Remove.
2292 (record_full_core_sections): New global.
2293 (record_full_core_open_1, record_full_core_target::xfer_partial):
2294 Update.
2295 * exec.h (build_section_table, section_table_xfer_memory_partial)
2296 (add_target_sections): Take a target_section_table.
2297 * exec.c (exec_file_attach, clear_section_table): Update.
2298 (resize_section_table): Remove.
2299 (build_section_table, add_target_sections): Take a
2300 target_section_table.
2301 (add_target_sections_of_objfile, remove_target_sections)
2302 (exec_on_vfork): Update.
2303 (section_table_available_memory): Take a target_section_table.
2304 (section_table_read_available_memory): Update.
2305 (section_table_xfer_memory_partial): Take a target_section_table.
2306 (print_section_info, set_section_command)
2307 (exec_set_section_address, exec_target::has_memory): Update.
2308 * corelow.c (class core_target) <m_core_section_table,
2309 m_core_file_mappings>: Remove braces.
2310 <~core_target>: Remove.
2311 (core_target::core_target): Update.
2312 (core_target::~core_target): Remove.
2313 (core_target::build_file_mappings)
2314 (core_target::xfer_memory_via_mappings)
2315 (core_target::xfer_partial, core_target::info_proc_mappings):
2316 Update.
2317 * bfd-target.c (target_bfd::xfer_partial): Update.
2318 (target_bfd::target_bfd): Update.
2319 (target_bfd::~target_bfd): Remove.
2320
2321 2020-10-12 Tom Tromey <tom@tromey.com>
2322
2323 * target.h (struct target_section, struct target_section_table):
2324 Move to target-section.h.
2325 * target-section.h: New file.
2326
2327 2020-10-12 Pedro Alves <pedro@palves.net>
2328
2329 PR exp/26602
2330 * valops.c (struct struct_field_searcher): New.
2331 (update_search_result): Rename to ...
2332 (struct_field_searcher::update_result): ... this. Simplify
2333 prototype. Record all found fields.
2334 (do_search_struct_field): Rename to ...
2335 (struct_field_searcher::search): ... this. Simplify prototype.
2336 Maintain stack of visited baseclass path. Call update_result for
2337 fields too. Keep searching fields in baseclasses instead of
2338 stopping at the first found field.
2339 (search_struct_field): Use struct_field_searcher. When looking
2340 for fields, report ambiguous access attempts.
2341
2342 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * frame.c (inside_main_func): Check full symbols as well as
2345 minimal symbols.
2346
2347 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2348
2349 * ada-lang.c (advance_wild_match): Rewrite the function's
2350 description. Change the type of target0, t0 and t1 to char.
2351
2352 2020-10-09 Tom Tromey <tromey@adacore.com>
2353
2354 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2355
2356 2020-10-09 Tom Tromey <tromey@adacore.com>
2357
2358 * ada-lang.h (ada_encode): Return std::string.
2359 * ada-lang.c (ada_encode_1): Return std::string.
2360 (ada_encode): Likewise.
2361 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2362 Update.
2363 * ada-exp.y (block_lookup, write_var_or_type): Update.
2364
2365 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2366
2367 PR exp/26714
2368 * printcmd.c (print_formatted): Handle void results as
2369 unformatted prints.
2370
2371 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * arch/aarch32.c (aarch32_create_target_description): Release the
2374 target_desc_up as late as possible.
2375 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2376 * arch/amd64.c (amd64_create_target_description): Likewise.
2377 * arch/arc.c (arc_create_target_description): Return a
2378 target_desc_up, don't release it.
2379 * arch/arc.h (arc_create_target_description): Update declaration.
2380 (arc_lookup_target_description): Move target_desc_up into the
2381 cache, and return a borrowed pointer.
2382 * arch/arm.c (arm_create_target_description): Release the
2383 target_desc_up as late as possible.
2384 * arch/i386.c (i386_create_target_description): Likewise.
2385 * arch/riscv.h (riscv_create_target_description): Update
2386 declaration to match definition.
2387 * arch/tic6x.c (tic6x_create_target_description): Release the
2388 target_desc_up as late as possible.
2389
2390 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2391
2392 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2393 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2394
2395 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2396
2397 * source.c (directory_command): Notify observers that "directories"
2398 parameter has changed.
2399
2400 2020-10-08 Tom Tromey <tom@tromey.com>
2401
2402 * cli/cli-cmds.c (print_disassembly): Style function name and
2403 addresses. Add _() wrappers.
2404
2405 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2406
2407 * NEWS: Mention ARC support in GDBserver.
2408
2409 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * arch/aarch32.c (aarch32_create_target_description): Release
2412 unique_ptr returned from allocate_target_description.
2413 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2414 * arch/amd64.c (amd64_create_target_description): Likewise.
2415 * arch/arc.c (arc_create_target_description): Likewise.
2416 * arch/arm.c (arm_create_target_description): Likewise.
2417 * arch/i386.c (i386_create_target_description): Likewise.
2418 * arch/riscv.c (riscv_create_target_description): Update return
2419 type. Handle allocate_target_description returning a unique_ptr.
2420 (riscv_lookup_target_description): Update to handle unique_ptr.
2421 * arch/tic6x.c (tic6x_create_target_description): Release
2422 unique_ptr returned from allocate_target_description.
2423 * features/microblaze-with-stack-protect.c: Regenerate.
2424 * features/microblaze.c: Regenerate.
2425 * features/mips-dsp-linux.c: Regenerate.
2426 * features/mips-linux.c: Regenerate.
2427 * features/mips64-dsp-linux.c: Regenerate.
2428 * features/mips64-linux.c: Regenerate.
2429 * features/nds32.c: Regenerate.
2430 * features/nios2.c: Regenerate.
2431 * features/or1k.c: Regenerate.
2432 * features/rs6000/powerpc-32.c: Regenerate.
2433 * features/rs6000/powerpc-32l.c: Regenerate.
2434 * features/rs6000/powerpc-403.c: Regenerate.
2435 * features/rs6000/powerpc-403gc.c: Regenerate.
2436 * features/rs6000/powerpc-405.c: Regenerate.
2437 * features/rs6000/powerpc-505.c: Regenerate.
2438 * features/rs6000/powerpc-601.c: Regenerate.
2439 * features/rs6000/powerpc-602.c: Regenerate.
2440 * features/rs6000/powerpc-603.c: Regenerate.
2441 * features/rs6000/powerpc-604.c: Regenerate.
2442 * features/rs6000/powerpc-64.c: Regenerate.
2443 * features/rs6000/powerpc-64l.c: Regenerate.
2444 * features/rs6000/powerpc-7400.c: Regenerate.
2445 * features/rs6000/powerpc-750.c: Regenerate.
2446 * features/rs6000/powerpc-860.c: Regenerate.
2447 * features/rs6000/powerpc-altivec32.c: Regenerate.
2448 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2449 * features/rs6000/powerpc-altivec64.c: Regenerate.
2450 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2451 * features/rs6000/powerpc-e500.c: Regenerate.
2452 * features/rs6000/powerpc-e500l.c: Regenerate.
2453 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2454 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2455 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2456 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2457 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2458 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2459 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2460 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2461 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2462 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2463 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2464 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2465 * features/rs6000/powerpc-vsx32.c: Regenerate.
2466 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2467 * features/rs6000/powerpc-vsx64.c: Regenerate.
2468 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2469 * features/rs6000/rs6000.c: Regenerate.
2470 * features/rx.c: Regenerate.
2471 * features/s390-gs-linux64.c: Regenerate.
2472 * features/s390-linux32.c: Regenerate.
2473 * features/s390-linux32v1.c: Regenerate.
2474 * features/s390-linux32v2.c: Regenerate.
2475 * features/s390-linux64.c: Regenerate.
2476 * features/s390-linux64v1.c: Regenerate.
2477 * features/s390-linux64v2.c: Regenerate.
2478 * features/s390-te-linux64.c: Regenerate.
2479 * features/s390-tevx-linux64.c: Regenerate.
2480 * features/s390-vx-linux64.c: Regenerate.
2481 * features/s390x-gs-linux64.c: Regenerate.
2482 * features/s390x-linux64.c: Regenerate.
2483 * features/s390x-linux64v1.c: Regenerate.
2484 * features/s390x-linux64v2.c: Regenerate.
2485 * features/s390x-te-linux64.c: Regenerate.
2486 * features/s390x-tevx-linux64.c: Regenerate.
2487 * features/s390x-vx-linux64.c: Regenerate.
2488 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2489 from allocate_target_description.
2490 * target-descriptions.c (allocate_target_description): Update
2491 return type.
2492 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2493 allocate_target_description.
2494
2495 2020-10-07 Tom Tromey <tromey@adacore.com>
2496
2497 * unittests/search-memory-selftests.c: New file.
2498 * Makefile.in (SELFTESTS_SRCS): Add
2499 unittests/search-memory-selftests.c.
2500
2501 2020-10-07 Tom Tromey <tromey@adacore.com>
2502
2503 PR gdb/16930:
2504 * findcmd.c (_initialize_mem_search): Mention that the range is
2505 inclusive.
2506
2507 2020-10-07 Tom Tromey <tromey@adacore.com>
2508
2509 * target.h (simple_search_memory): Don't declare.
2510 * target.c (simple_search_memory): Move to gdbsupport.
2511 (default_search_memory): Update.
2512 * remote.c (remote_target::search_memory): Update.
2513
2514 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2515
2516 * Makefile.in (COMPILE): Add CXXFLAGS.
2517 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2518 (check-headers): Add CXXFLAGS.
2519
2520 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2521
2522 * arc-linux-tdep.h: New file.
2523 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2524 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2525 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2526 arc_linux_gregset, arc_linux_v2_regset,
2527 arc_linux_iterate_over_regset_sections,
2528 arc_linux_core_read_description): Implement.
2529 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2530 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2531 (arc_gdbarch_features_create): Add.
2532 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2533
2534 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2535
2536 * arch/arc.h: Rename "arc_gdbarch_features" to
2537 "arc_arch_features".
2538 * arc-tdep.h: Likewise.
2539 * arc-tdep.c: Likewise.
2540
2541 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2542
2543 * infcmd.c (attach_command): Remove the redundant call to
2544 `clear_proceed_status`.
2545
2546 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2547
2548 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2549
2550 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2551
2552 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2553 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2554 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2555
2556 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2559 (_initialize_break_catch_sig): Don't allocate array.
2560
2561 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2562
2563 * symtab.c (find_pc_line): Return unmapped addresses when the
2564 requested address is also unmapped.
2565
2566 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2567
2568 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2569 tui/tui-out.h.
2570
2571 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2574 type::is_vector instead of TYPE_VECTOR.
2575
2576 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * auto-load.c (auto_load_objfile_script_1): Don't use
2579 debugfile_holder as temporary variable when stripping drive
2580 letter.
2581
2582 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2583
2584 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2585 Add TYPE_CODE_COMPLEX.
2586 (amd64_windows_return_value): Fix types returned via XMM0.
2587
2588 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2589
2590 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2591 AArch64/ARM maintainers.
2592
2593 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * NEWS: Mention set/show debug event-loop.
2596
2597 2020-10-02 Tom Tromey <tromey@adacore.com>
2598
2599 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2600 REG_EXTENDED.
2601
2602 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2605 * procfs.c (procfs_inferior_created): Remove.
2606 (_initialize_procfs): Don't register procfs_inferior_created.
2607
2608 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * async-event.c (invoke_async_signal_handlers): Add debug
2611 print.
2612 (check_async_event_handlers): Likewise.
2613 * event-top.c (show_debug_event_loop): New function.
2614 (_initialize_event_top): Register "set debug event-loop"
2615 setting.
2616
2617 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2620 * debug.h: Remove.
2621 * infrun.c: Include gdbsupport/common-debug.h.
2622 * linux-nat.c: Likewise.
2623
2624 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * async-event.h (create_async_signal_handler): Add name
2627 parameter.
2628 (create_async_event_handler): Likewise.
2629 * async-event.c (struct async_signal_handler) <name>: New field.
2630 (struct async_event_handler) <name>: New field.
2631 (create_async_signal_handler): Assign name.
2632 (create_async_event_handler): Assign name.
2633 * event-top.c (async_init_signals): Pass name when creating
2634 handler.
2635 * infrun.c (_initialize_infrun): Likewise.
2636 * record-btrace.c (record_btrace_push_target): Likewise.
2637 * record-full.c (record_full_open): Likewise.
2638 * remote-notif.c (remote_notif_state_allocate): Likewise.
2639 * remote.c (remote_target::open_1): Likewise.
2640 * tui/tui-win.c (tui_initialize_win): Likewise.
2641
2642 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2643
2644 * async-event.c (initialize_async_signal_handlers): Pass name to
2645 add_file_handler
2646 * event-top.c (ui_register_input_event_handler): Likewise.
2647 * linux-nat.c (linux_nat_target::async): Likewise.
2648 * run-on-main-thread.c (_initialize_run_on_main_thread):
2649 Likewise
2650 * ser-base.c (reschedule): Likewise.
2651 (ser_base_async): Likewise.
2652 * tui/tui-io.c: Likewise.
2653 * top.h (struct ui) <num>: New field.
2654 * top.c (highest_ui_num): New variable.
2655 (ui::ui): Initialize num.
2656
2657 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2658
2659 * observable.h <inferior_created>: Remove parameters. Update all
2660 listeners.
2661 * inferior.h (post_create_inferior): Remove target parameter.
2662 Update all callers.
2663
2664 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2665
2666 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2667 and DW_MACRO_undef_strx.
2668 (dwarf_decode_macros): Likewise
2669 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2670 which is the value of DW_AT_str_offsets_base.
2671 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2672 str_offsets_base.
2673
2674 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2675
2676 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2677
2678 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2679
2680 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2681 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2682
2683 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2684
2685 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2686
2687 2020-09-30 Tom de Vries <tdevries@suse.de>
2688
2689 PR symtab/26683
2690 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2691
2692 2020-09-30 Tom Tromey <tromey@adacore.com>
2693
2694 * dwarf2/read.c (handle_variant): Use constant_value.
2695
2696 2020-09-29 Tom Tromey <tom@tromey.com>
2697
2698 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2699 (read_file_scope, dwarf2_get_pc_bounds)
2700 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2701 (read_structure_type, handle_struct_member_die)
2702 (read_enumeration_type, read_array_type, read_set_type)
2703 (read_tag_pointer_type, read_tag_reference_type)
2704 (read_subroutine_type, read_base_type, read_subrange_type)
2705 (read_full_die_1, partial_die_info::read)
2706 (partial_die_info::read, by, new_symbol)
2707 (dwarf2_const_value_data, dwarf2_const_value_attr)
2708 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2709 (prepare_one_comp_unit): Update.
2710 * dwarf2/attribute.h (DW_UNSND): Remove.
2711
2712 2020-09-29 Tom Tromey <tom@tromey.com>
2713
2714 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2715 (read_subroutine_type, partial_die_info::read)
2716 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2717 (dwarf2_add_member_fn): Update.
2718 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2719 * dwarf2/attribute.c (attribute::as_boolean): New method.
2720
2721 2020-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2724 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2725 method.
2726 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2727
2728 2020-09-29 Tom Tromey <tom@tromey.com>
2729
2730 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2731 the attribute's form.
2732
2733 2020-09-29 Tom Tromey <tom@tromey.com>
2734
2735 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2736 (dwarf2_add_member_fn): Update.
2737 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2738 * dwarf2/attribute.c (attribute::defaulted): New method, from
2739 is_valid_DW_AT_defaulted.
2740
2741 2020-09-29 Tom Tromey <tom@tromey.com>
2742
2743 * dwarf2/read.c (dw2_get_file_names_reader)
2744 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2745 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2746 (dwarf2_symbol_mark_computed): Use as_unsigned.
2747 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2748 method.
2749 <form_is_section_offset>: Update comment.
2750
2751 2020-09-29 Tom Tromey <tom@tromey.com>
2752
2753 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2754 dwarf2_default_access_attribute. Look up attribute.
2755 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2756 Update.
2757
2758 2020-09-29 Tom Tromey <tom@tromey.com>
2759
2760 * dwarf2/read.c (skip_one_die): Update.
2761 (read_full_die_1): Change how reprocessing is done.
2762 (partial_die_info::read): Update.
2763 (read_attribute_value): Remove need_reprocess parameter.
2764 (read_attribute): Likewise.
2765 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2766 New method.
2767
2768 2020-09-29 Tom Tromey <tom@tromey.com>
2769
2770 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2771 (dwarf2_const_value_attr, dump_die_shallow)
2772 (dwarf2_fetch_constant_bytes): Update.
2773 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2774 comment.
2775 <set_address>: New method.
2776 (DW_ADDR): Remove.
2777 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2778 (attribute::as_string, attribute::as_address): Add assert.
2779
2780 2020-09-29 Tom Tromey <tom@tromey.com>
2781
2782 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2783 (read_attribute_reprocess, read_attribute_value): Update.
2784 (read_attribute): Clear requires_reprocessing.
2785 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2786 form_requires_reprocessing>: New methods.
2787 <string_init>: Clear requires_reprocessing.
2788 <set_unsigned_reprocess>: New method.
2789 <name>: Shrink by one bit.
2790 <requires_reprocessing>: New member.
2791 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2792 method.
2793
2794 2020-09-29 Tom Tromey <tom@tromey.com>
2795
2796 * dwarf2/read.c (read_attribute_value): Update.
2797 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2798 set_unsigned>: New methods.
2799 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2800
2801 2020-09-29 Tom Tromey <tom@tromey.com>
2802
2803 * dwarf2/read.c (get_alignment, read_array_order)
2804 (read_attribute_value, dwarf2_const_value_attr)
2805 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2806 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2807 New methods.
2808 (DW_SND): Remove.
2809
2810 2020-09-29 Tom Tromey <tom@tromey.com>
2811
2812 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2813 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2814 Update.
2815 * dwarf2/attribute.h (struct attribute) <as_signature,
2816 set_signature>: New methods.
2817 (DW_SIGNATURE): Remove.
2818
2819 2020-09-29 Tom Tromey <tom@tromey.com>
2820
2821 * dwarf2/read.c (read_call_site_scope)
2822 (handle_data_member_location, dwarf2_add_member_fn)
2823 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2824 (partial_die_info::read, read_attribute_value)
2825 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2826 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2827 (dwarf2_symbol_mark_computed): Update.
2828 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2829 methods.
2830 (DW_BLOCK): Remove.
2831 * dwarf2/attribute.c (attribute::form_is_block): Add
2832 DW_FORM_data16.
2833
2834 2020-09-29 Tom Tromey <tom@tromey.com>
2835
2836 * dwarf2/read.c (read_cutu_die_from_dwo)
2837 (read_attribute_reprocess, read_attribute_value, read_attribute)
2838 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2839 (dwarf2_fetch_constant_bytes): Update.
2840 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2841 <set_string_noncanonical, set_string_canonical>: New methods.
2842 <string_is_canonical>: Update comment.
2843 <canonical_string_p>: Add assert.
2844 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2845 * dwarf2/attribute.c (attribute::form_is_string): New method.
2846 (attribute::string): Use it.
2847
2848 2020-09-29 Tom Tromey <tom@tromey.com>
2849
2850 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2851 (dump_die_shallow): Use canonical_string_p.
2852 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2853 method.
2854
2855 2020-09-29 Tom Tromey <tom@tromey.com>
2856
2857 * dwarf2/read.c (partial_die_info::read)
2858 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2859 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2860 attribute::as_string.
2861
2862 2020-09-29 Tom Tromey <tom@tromey.com>
2863
2864 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2865 DW_ADDR.
2866 (attribute::string): Don't use DW_STRING.
2867 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2868 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2869
2870 2020-09-29 Tom Tromey <tom@tromey.com>
2871
2872 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2873 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2874 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2875 * dwarf2/attribute.h (struct attribute): Rename methods.
2876 * dwarf2/attribute.c (attribute::as_address): Rename from
2877 value_as_address.
2878 (attribute::as_string): Rename from value_as_string.
2879
2880 2020-09-29 Tom Tromey <tom@tromey.com>
2881
2882 * dwarf2/read.c (partial_die_info::read) <case
2883 DW_AT_linkage_name>: Use value_as_string.
2884 (dwarf2_string_attr): Use value_as_string.
2885 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2886 method.
2887 * dwarf2/attribute.c (attribute::value_as_string): New method.
2888
2889 2020-09-29 Pedro Alves <pedro@palves.net>
2890
2891 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2892 defined before using '#pragma GCC diagnostic' instead of checking
2893 __clang__.
2894
2895 2020-09-28 Tom Tromey <tom@tromey.com>
2896
2897 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2898 (handle_signal_stop): Update.
2899 * procfs.c (procfs_target::insert_watchpoint): Update.
2900 * target.h (target_have_steppable_watchpoint): Now a function.
2901
2902 2020-09-28 Tom Tromey <tom@tromey.com>
2903
2904 * infrun.c (set_schedlock_func): Update.
2905 * target.h (target_can_lock_scheduler): Now a function.
2906
2907 2020-09-28 Tom Tromey <tom@tromey.com>
2908
2909 * inferior.h (class inferior) <has_execution>: Update.
2910 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2911 * valops.c (find_function_in_inferior)
2912 (value_allocate_space_in_inferior): Update.
2913 * top.c (kill_or_detach): Update.
2914 * target.c (target_preopen, set_target_permissions): Update.
2915 (target_has_execution_current): Remove.
2916 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2917 Update.
2918 * solib.c (update_solib_list, reload_shared_libraries): Update.
2919 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2920 * solib-dsbt.c (enable_break): Update.
2921 * score-tdep.c (score7_fetch_inst): Update.
2922 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2923 Update.
2924 * remote.c (remote_target::start_remote)
2925 (remote_target::remote_check_symbols, remote_target::open_1)
2926 (remote_target::remote_detach_1, remote_target::verify_memory)
2927 (remote_target::xfer_partial, remote_target::read_description)
2928 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2929 * record-full.c (record_full_open_1): Update.
2930 * record-btrace.c (record_btrace_target_open): Update.
2931 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2932 (value_nsstring): Update.
2933 * linux-thread-db.c (add_thread_db_info)
2934 (thread_db_find_new_threads_silently, check_thread_db_callback)
2935 (try_thread_db_load_1, record_thread): Update.
2936 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2937 Update.
2938 * linux-fork.c (checkpoint_command): Update.
2939 * infrun.c (set_non_stop, set_observer_mode)
2940 (check_multi_target_resumption, for_each_just_stopped_thread)
2941 (maybe_remove_breakpoints, normal_stop)
2942 (class infcall_suspend_state): Update.
2943 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2944 (info_program_command, attach_command): Update.
2945 * infcall.c (call_function_by_hand_dummy): Update.
2946 * inf-loop.c (inferior_event_handler): Update.
2947 * gcore.c (gcore_command, derive_heap_segment): Update.
2948 * exec.c (exec_file_command): Update.
2949 * eval.c (evaluate_subexp): Update.
2950 * compile/compile.c (compile_to_object): Update.
2951 * cli/cli-dump.c (restore_command): Update.
2952 * breakpoint.c (update_watchpoint)
2953 (update_inserted_breakpoint_locations)
2954 (insert_breakpoint_locations, get_bpstat_thread): Update.
2955 * target.h (target_has_execution): Remove macro.
2956 (target_has_execution_current): Don't declare.
2957 (target_has_execution): Rename from target_has_execution_1. Add
2958 argument default.
2959
2960 2020-09-28 Tom Tromey <tom@tromey.com>
2961
2962 * mi/mi-main.c (exec_reverse_continue)
2963 (mi_cmd_list_target_features): Update.
2964 * infrun.c (set_exec_direction_func): Update.
2965 * target.c (default_execution_direction): Update.
2966 * reverse.c (exec_reverse_once): Update.
2967 * target.h (target_can_execute_reverse): Now a function.
2968
2969 2020-09-28 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-regs.c (tui_get_register)
2972 (tui_data_window::show_registers): Update.
2973 * thread.c (scoped_restore_current_thread::restore)
2974 (scoped_restore_current_thread::scoped_restore_current_thread):
2975 Update.
2976 * regcache-dump.c (regcache_print): Update.
2977 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2978 Update.
2979 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2980 * mep-tdep.c (current_me_module, current_options): Update.
2981 * linux-thread-db.c (thread_db_load): Update.
2982 * infcmd.c (registers_info, info_vector_command)
2983 (info_float_command): Update.
2984 * ia64-tdep.c (ia64_frame_prev_register)
2985 (ia64_sigtramp_frame_prev_register): Update.
2986 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2987 * gcore.c (derive_stack_segment): Update.
2988 * frame.c (get_current_frame, has_stack_frames): Update.
2989 * findvar.c (language_defn::read_var_value): Update.
2990 * arm-tdep.c (arm_pc_is_thumb): Update.
2991 * target.c (target_has_registers): Rename from
2992 target_has_registers_1.
2993 * target.h (target_has_registers): Remove macro.
2994 (target_has_registers): Rename from target_has_registers_1.
2995
2996 2020-09-28 Tom Tromey <tom@tromey.com>
2997
2998 * windows-tdep.c (tlb_make_value): Update.
2999 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3000 * thread.c (scoped_restore_current_thread::restore)
3001 (scoped_restore_current_thread::scoped_restore_current_thread)
3002 (thread_command): Update.
3003 * stack.c (backtrace_command_1, frame_apply_level_command)
3004 (frame_apply_all_command, frame_apply_command): Update.
3005 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3006 Update.
3007 * gcore.c (derive_stack_segment): Update.
3008 * frame.c (get_current_frame, has_stack_frames): Update.
3009 * auxv.c (info_auxv_command): Update.
3010 * ada-tasks.c (ada_build_task_list): Update.
3011 * target.c (target_has_stack): Rename from target_has_stack_1.
3012 * target.h (target_has_stack): Remove macro.
3013 (target_has_stack): Rename from target_has_stack_1.
3014
3015 2020-09-28 Tom Tromey <tom@tromey.com>
3016
3017 * target.c (target_has_memory): Rename from target_has_memory_1.
3018 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3019 * thread.c (scoped_restore_current_thread::restore)
3020 (scoped_restore_current_thread::scoped_restore_current_thread):
3021 Update.
3022 * frame.c (get_current_frame, has_stack_frames): Update.
3023 * target.h (target_has_memory): Remove macro.
3024 (target_has_memory): Rename from target_has_memory_1.
3025
3026 2020-09-28 Tom Tromey <tom@tromey.com>
3027
3028 * target.c (target_has_all_memory_1): Remove.
3029 * target.h (target_has_all_memory): Remove define.
3030 (target_has_all_memory_1): Don't declare.
3031
3032 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3033
3034 * ser-base.c: Adjust comments formatting.
3035
3036 2020-09-27 Tom Tromey <tom@tromey.com>
3037
3038 PR tui/25342:
3039 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3040
3041 2020-09-27 Tom Tromey <tom@tromey.com>
3042
3043 PR tui/25342:
3044 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3045
3046 2020-09-27 Tom Tromey <tom@tromey.com>
3047
3048 * unittests/tui-selftests.c: Update.
3049 * tui/tui-winsource.h (struct tui_source_window_base)
3050 <extra_margin, show_line_number, refresh_pad>: New methods.
3051 <m_max_length, m_pad>: New members.
3052 (tui_copy_source_line): Update.
3053 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3054 first_col, line_width, ndigits parameters. Add length.
3055 (tui_source_window_base::show_source_line): Write to pad. Line
3056 number now 0-based.
3057 (tui_source_window_base::refresh_pad): New method.
3058 (tui_source_window_base::show_source_content): Write to pad. Call
3059 refresh_pad.
3060 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3061 not refill.
3062 (tui_source_window_base::update_exec_info): Call
3063 show_line_number.
3064 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3065 method.
3066 <m_digits>: New member.
3067 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3068 and m_max_length.
3069 (tui_source_window::show_line_number): New method.
3070 * tui/tui-io.h (tui_puts): Fix comment.
3071 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3072 m_max_length.
3073
3074 2020-09-27 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-winsource.c
3077 (tui_source_window_base::set_is_exec_point_at): Don't call
3078 show_source_line.
3079
3080 2020-09-27 Tom Tromey <tom@tromey.com>
3081
3082 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3083 method.
3084 <erase>: Update.
3085 <cursor_x, cursor_y>: Remove.
3086 <m_inner_window>: New member.
3087 (tui_py_window::rerender): Create inner window.
3088 (tui_py_window::output): Write to inner window.
3089
3090 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3091
3092 PR python/26586
3093 * cli/cli-script.c (execute_control_commands): don't set
3094 instream to nullptr here as this breaks the from_tty argument
3095 to gdb.execute in Python.
3096 (execute_user_command): set instream to nullptr here instead.
3097
3098 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * infrun.h (infrun_debug_printf): Fix formatting.
3101 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3102
3103 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3104
3105 * compile/compile-object-load.h (struct munmap_list): Add
3106 explicitly-defined move constructor.
3107
3108 2020-09-24 Tom Tromey <tromey@adacore.com>
3109
3110 PR tui/26638:
3111 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3112 method.
3113 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3114 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3115 (tui_prev_win): Rewrite.
3116
3117 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3118
3119 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3120 in WOW64 processes as SIGINT.
3121 * nat/windows-nat.h: Make wow64_process a shared variable.
3122 * windows-nat.c: Remove static wow64_process variable.
3123
3124 2020-09-23 Tom Tromey <tom@tromey.com>
3125
3126 PR symtab/25470:
3127 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3128 offset and bit size.
3129 * printcmd.c (print_scalar_formatted): Handle zero-length
3130 integer.
3131 (print_scalar_formatted): Use bit_size_differs_p.
3132 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3133 constant.
3134 (union type_specific): <int_stuff>: New member.
3135 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3136 methods.
3137 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3138 TYPE_SPECIFIC_FIELD.
3139 (recursive_dump_type, copy_type_recursive): Update.
3140 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3141 DW_AT_data_bit_offset.
3142
3143 2020-09-23 Tom Tromey <tom@tromey.com>
3144
3145 * utils.h (class gdb_argv): Add move operators.
3146 <append>: New methods.
3147 * compile/compile.c (build_argc_argv): Remove.
3148 (compile_args_argc): Remove.
3149 (compile_args_argv): Change type.
3150 (set_compile_args): Simplify.
3151 (append_args): Remove.
3152 (filter_args): Remove argcp parameter.
3153 (get_args): Return gdb_argv. Simplify.
3154 (compile_to_object): Update.
3155
3156 2020-09-23 Tom Tromey <tom@tromey.com>
3157
3158 * compile/compile-object-run.c (do_module_cleanup)
3159 <~do_module_cleanup> :Remove.
3160 (do_module_cleanup): Update.
3161 * compile/compile-object-load.h (struct munmap_list): Add move
3162 assignment operator.
3163 <source_file>: Now a std::string.
3164 <munmap_list>: Rename. No longer a pointer.
3165 * compile/compile-object-load.c (struct setup_sections_data): Add
3166 constructor.
3167 <setup_one_section>: Declare.
3168 <munmap_list>: Move earlier.
3169 <m_bfd>: New member.
3170 <m_last_size, m_last_section_first, m_last_prot,
3171 m_last_max_alignment>: Rename, add initializers where needed.
3172 (setup_sections_data::setup_one_section): Rename from
3173 setup_sections. Update.
3174 (compile_object_load): Update. Don't use bfd_map_over_sections.
3175
3176 2020-09-23 Tom Tromey <tom@tromey.com>
3177
3178 * compile/compile-object-run.c (struct do_module_cleanup): Add
3179 parameters to constructor. Update destructor.
3180 <source_file, scope, scope_data, out_value_type, out_value_addr,
3181 munmap_list_head, objfile_name_string>: Remove.
3182 <module>: New member.
3183 (do_module_cleanup): Update.
3184 (compile_object_run): Update.
3185
3186 2020-09-23 Tom Tromey <tom@tromey.com>
3187
3188 * compile/compile.c (eval_compile_command): Update.
3189 * compile/compile-object-run.h (compile_object_run): Take a
3190 compile_module_up.
3191 * compile/compile-object-run.c (compile_object_run): Take a
3192 compile_module_up.
3193 * compile/compile-object-load.h (struct compile_module): Add
3194 constructor, destructor.
3195 (compile_module_up): New typedef.
3196 (compile_object_load): Return compile_object_up.
3197 * compile/compile-object-load.c (compile_object_load): Return
3198 compile_module_up.
3199
3200 2020-09-23 Tom Tromey <tom@tromey.com>
3201
3202 * compile/compile-object-run.c (struct do_module_cleanup): Add
3203 constructor, destructor.
3204 <objfile_name_string>: Don't use struct hack.
3205 (do_module_cleanup): Use delete.
3206 (compile_object_run): Use new.
3207
3208 2020-09-23 Tom Tromey <tom@tromey.com>
3209
3210 * compile/compile-cplus-types.c
3211 (compile_cplus_convert_struct_or_union): Use std::vector.
3212 (compile_cplus_convert_func): Likewise.
3213 * compile/compile-c-types.c (convert_func): Use std::vector.
3214
3215 2020-09-21 Tom Tromey <tromey@adacore.com>
3216
3217 * sparc-tdep.c (sparc32_skip_prologue): Use
3218 skip_prologue_using_sal.
3219
3220 2020-09-19 Tom Tromey <tom@tromey.com>
3221
3222 * symfile.c (add_section_size_callback): Remove.
3223 (load_one_section): Rename from load_section_callback. Change
3224 parameters.
3225 (generic_load): Use foreach.
3226
3227 2020-09-19 Tom Tromey <tom@tromey.com>
3228
3229 * exec.c (add_to_section_table): Remove.
3230 (build_section_table): Use foreach.
3231
3232 2020-09-19 Tom Tromey <tom@tromey.com>
3233
3234 * elfread.c (elf_locate_sections): Change parameters.
3235 (elf_symfile_read): Use foreach.
3236
3237 2020-09-19 Tom Tromey <tom@tromey.com>
3238
3239 * cli/cli-dump.c (struct callback_data): Remove.
3240 (restore_one_section): Rename from restore_section_callback.
3241 Change parameters.
3242 (restore_binary_file): Change parameters.
3243 (restore_command): Use foreach.
3244
3245 2020-09-19 Tom Tromey <tom@tromey.com>
3246
3247 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3248 (gcore_copy_callback): Likewise.
3249 (gcore_memory_sections): Use foreach.
3250
3251 2020-09-19 Tom Tromey <tom@tromey.com>
3252
3253 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3254 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3255 parameters.
3256 (generic_elf_osabi_sniffer): Use foreach.
3257 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3258 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3259
3260 2020-09-19 Tom Tromey <tom@tromey.com>
3261
3262 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3263 (dwarf2_get_dwz_file): Use foreach.
3264 (dwarf2_locate_dwo_sections): Change parameters.
3265 (open_and_init_dwo_file): Use foreach.
3266 (dwarf2_locate_common_dwp_sections): Change parameters.
3267 (open_and_init_dwp_file): Use foreach.
3268
3269 2020-09-19 Tom Tromey <tom@tromey.com>
3270
3271 * symfile.h: (find_lowest_section): Don't declare.
3272 * symfile.c (find_lowest_section): Now static. Change
3273 parameters.
3274 (struct place_section_arg): Remove.
3275 (place_section): Change parameters.
3276 (addr_info_make_relative): Use foreach.
3277 (symfile_dummy_outputs): Remove.
3278 (default_symfile_relocate): Use foreach.
3279
3280 2020-09-19 Tom Tromey <tom@tromey.com>
3281
3282 * objfiles.c (add_to_objfile_sections): Rename from
3283 add_to_objfile_sections_full.
3284 (add_to_objfile_sections): Remove.
3285 (build_objfile_section_table): Use foreach.
3286
3287 2020-09-19 Tom Tromey <tom@tromey.com>
3288
3289 * stap-probe.c (get_stap_base_address_1): Remove.
3290 (get_stap_base_address): Use foreach.
3291
3292 2020-09-19 Tom Tromey <tom@tromey.com>
3293
3294 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3295 parameters.
3296 (gdb_bfd_close_or_warn): Use foreach.
3297
3298 2020-09-19 Tom Tromey <tom@tromey.com>
3299
3300 * corelow.c (add_to_thread_list): Change parameters.
3301 (core_target_open): Use foreach.
3302
3303 2020-09-19 Tom Tromey <tom@tromey.com>
3304
3305 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3306 existing function.
3307
3308 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3311 for arrays.
3312
3313 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * eval.c: Remove 'f-lang.h' include.
3316 (value_f90_subarray): Moved to f-lang.c.
3317 (eval_call): Renamed to...
3318 (evaluate_subexp_do_call): ...this, is no longer static, header
3319 comment moved into header file.
3320 (evaluate_funcall): Update call to eval_call.
3321 (skip_undetermined_arglist): Moved to f-lang.c.
3322 (fortran_value_subarray): Likewise.
3323 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3324 moved to evaluate_subexp_f.
3325 (calc_f77_array_dims): Moved to f-lang.c
3326 * expprint.c (print_subexp_funcall): New function.
3327 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3328 moved to print_subexp_f, OP_FUNCALL uses new function.
3329 (dump_subexp_body_funcall): New function.
3330 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3331 moved to dump_subexp_f, OP_FUNCALL uses new function.
3332 * expression.h (evaluate_subexp_do_call): Declare.
3333 * f-lang.c (value_f90_subarray): Moved from eval.c.
3334 (skip_undetermined_arglist): Likewise.
3335 (calc_f77_array_dims): Likewise.
3336 (fortran_value_subarray): Likewise.
3337 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3338 (operator_length_f): Likewise.
3339 (print_subexp_f): Likewise.
3340 (dump_subexp_body_f): Likewise.
3341 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3342 declaration of this operation to here.
3343 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3344 support moved to operator_length_f.
3345 * parser-defs.h (dump_subexp_body_funcall): Declare.
3346 (print_subexp_funcall): Declare.
3347 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3348 fortran-operator.def.
3349
3350 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * eval.c (fortran_value_subarray): New function, content is taken
3353 from...
3354 (evaluate_subexp_standard): ...here, in two places. Now arrays
3355 and strings both call the new function.
3356 (calc_f77_array_dims): Add header comment, handle strings.
3357
3358 2020-09-18 Victor Collod <vcollod@nvidia.com>
3359
3360 PR gdb/26635
3361 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3362 (i386_analyze_prologue): Call i386_skip_endbr.
3363
3364 2020-09-18 Tom Tromey <tromey@adacore.com>
3365
3366 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3367 (windows_nat_target::wait): Update.
3368 * target/wait.h (enum target_wait_flag): New. Use
3369 DEF_ENUM_FLAGS_TYPE.
3370 * target/target.h (target_wait): Change type of options.
3371 * target.h (target_options_to_string, default_target_wait):
3372 Update.
3373 (struct target_ops) <wait>: Change type of options.
3374 * target.c (target_wait, default_target_wait, do_option): Change
3375 type of "options".
3376 (target_options_to_string): Likewise.
3377 * target-delegates.c: Rebuild.
3378 * target-debug.h (target_debug_print_target_wait_flags): Rename
3379 from target_debug_print_options.
3380 * sol-thread.c (class sol_thread_target) <wait>: Update.
3381 (sol_thread_target::wait): Update.
3382 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3383 (rs6000_nat_target::wait): Update.
3384 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3385 Update.
3386 (remote_target::wait_ns, remote_target::wait_as): Change type of
3387 "options".
3388 (remote_target::wait): Update.
3389 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3390 (gdbsim_target::wait): Update.
3391 * record-full.c (class record_full_base_target) <wait>: Update.
3392 (record_full_wait_1): Change type of "options".
3393 (record_full_base_target::wait): Update.
3394 * record-btrace.c (class record_btrace_target) <wait>: Update.
3395 (record_btrace_target::wait): Update.
3396 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3397 Update.
3398 (ravenscar_thread_target::wait): Update.
3399 * procfs.c (class procfs_target) <wait>: Update.
3400 (procfs_target::wait): Update.
3401 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3402 * obsd-nat.c (obsd_nat_target::wait): Update.
3403 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3404 (nto_procfs_target::wait): Update.
3405 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3406 * nbsd-nat.c (nbsd_wait): Change type of "options".
3407 (nbsd_nat_target::wait): Update.
3408 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3409 (thread_db_target::wait): Update.
3410 * linux-nat.h (class linux_nat_target) <wait>: Update.
3411 * linux-nat.c (linux_nat_target::wait): Update.
3412 (linux_nat_wait_1): Update.
3413 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3414 "options".
3415 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3416 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3417 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3418 (go32_nat_target::wait): Update.
3419 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3420 * gnu-nat.c (gnu_nat_target::wait): Update.
3421 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3422 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3423 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3424 * darwin-nat.c (darwin_nat_target::wait): Update.
3425 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3426 (bsd_uthread_target::wait): Update.
3427 * aix-thread.c (class aix_thread_target) <wait>: Update.
3428 (aix_thread_target::wait): Update.
3429
3430 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * compile/compile-object-run.c (create_copied_type_recursive): New
3433 function.
3434 (compile_object_run): Use new function.
3435
3436 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3437
3438 * NEWS: Mention x86_64 Cygwin core file support.
3439
3440 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3441
3442 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3443 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3444
3445 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3446
3447 * windows-tdep.h: Add prototypes.
3448 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3449 (i386_windows_core_pid_to_str): Move and rename ...
3450 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3451 (windows_core_pid_to_str): ... and here.
3452 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3453
3454 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3455 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3456 (amd64_windows_init_abi_common): ... and register.
3457
3458 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3459
3460 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3461 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3462
3463 2020-09-18 Pedro Alves <pedro@palves.net>
3464
3465 PR gdb/26631
3466 * thread.c (thread_find_command): Switch inferior before calling
3467 target methods.
3468
3469 2020-09-17 Tom Tromey <tromey@adacore.com>
3470
3471 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3472 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3473 (tdesc_arch_data_up): New typedef.
3474 (tdesc_use_registers, tdesc_data_alloc): Update.
3475 (tdesc_data_cleanup): Don't declare.
3476 * target-descriptions.c (tdesc_data_alloc): Return a
3477 tdesc_arch_data_up.
3478 (tdesc_arch_data_deleter::operator()): Rename from
3479 tdesc_data_cleanup. Change argument type.
3480 (tdesc_use_registers): Change early_data to an rvalue reference.
3481 (tdesc_use_registers): Don't use delete.
3482 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3483 * s390-tdep.c (s390_gdbarch_init): Update.
3484 * rx-tdep.c (rx_gdbarch_init): Update.
3485 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3486 * riscv-tdep.c (riscv_gdbarch_init): Update.
3487 * or1k-tdep.c (or1k_gdbarch_init): Update.
3488 * nios2-tdep.c (nios2_gdbarch_init): Update.
3489 * nds32-tdep.c (nds32_gdbarch_init): Update.
3490 * mips-tdep.c (mips_gdbarch_init): Update.
3491 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3492 * m68k-tdep.c (m68k_gdbarch_init): Update.
3493 * i386-tdep.c (i386_gdbarch_init): Update.
3494 * arm-tdep.c (arm_gdbarch_init): Update.
3495 * arc-tdep.c (arc_tdesc_init): Update.
3496 (arc_gdbarch_init): Update.
3497 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3498
3499 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3500
3501 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3502 for WOW64 processes.
3503
3504 2020-09-17 Tom Tromey <tom@tromey.com>
3505
3506 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3507
3508 2020-09-17 Tom Tromey <tom@tromey.com>
3509
3510 * value.c (preserve_values): Update.
3511 * python/py-type.c (save_objfile_types): Update.
3512 * guile/scm-type.c (save_objfile_types): Update.
3513 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3514 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3515 * compile/compile-object-run.c (compile_object_run): Update.
3516
3517 2020-09-17 Tom Tromey <tom@tromey.com>
3518
3519 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3520 Remove.
3521 <m_table>: Now htab_up.
3522 * typeprint.c (typedef_hash_table::recursively_update)
3523 (typedef_hash_table::add_template_parameters)
3524 (typedef_hash_table::typedef_hash_table): Update.
3525 (typedef_hash_table::~typedef_hash_table): Remove.
3526 (typedef_hash_table::typedef_hash_table)
3527 (typedef_hash_table::find_global_typedef)
3528 (typedef_hash_table::find_typedef): Update.
3529
3530 2020-09-17 Tom Tromey <tom@tromey.com>
3531
3532 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3533
3534 2020-09-17 Tom Tromey <tom@tromey.com>
3535
3536 * linespec.c (class decode_compound_collector)
3537 <~decode_compound_collector>: Remove.
3538 <m_unique_syms>: Now htab_up.
3539 (decode_compound_collector::operator ()): Update.
3540 (class symtab_collector) <~symtab_collector>: Remove.
3541 <m_symtab_table>: Now htab_up.
3542 (symtab_collector::operator ()): Update.
3543
3544 2020-09-17 Tom Tromey <tom@tromey.com>
3545
3546 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3547 (filename_seen_cache::clear): Update.
3548 (~filename_seen_cache): Remove.
3549 (filename_seen_cache::seen): Update.
3550 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3551 htab_up.
3552 <~filename_seen_cache>: Remove.
3553 <traverse>: Update.
3554
3555 2020-09-17 Tom Tromey <tom@tromey.com>
3556
3557 * completer.c (completion_tracker::discard_completions)
3558 (completion_tracker::~completion_tracker)
3559 (completion_tracker::maybe_add_completion)
3560 (completion_tracker::remove_completion)
3561 (completion_tracker::recompute_lowest_common_denominator)
3562 (completion_tracker::build_completion_result): Update.
3563 * completer.h (class completion_tracker) <have_completions>:
3564 Update.
3565 <m_entries_hash>: Now htab_up.
3566
3567 2020-09-17 Tom Tromey <tom@tromey.com>
3568
3569 * breakpoint.c (ambiguous_names_p): Use htab_up.
3570
3571 2020-09-17 Tom Tromey <tom@tromey.com>
3572
3573 * auto-load.c (struct auto_load_pspace_info)
3574 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3575 <loaded_script_files, loaded_script_texts>: Change type to
3576 htab_up.
3577 (~auto_load_pspace_info) Remove.
3578 (init_loaded_scripts_info, maybe_add_script_file)
3579 (maybe_add_script_text, auto_load_info_scripts): Update.
3580
3581 2020-09-17 Tom Tromey <tromey@adacore.com>
3582
3583 * c-exp.y (name_obstack): Now static.
3584
3585 2020-09-17 Chungyi Chi <demonic@csie.io>
3586
3587 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3588
3589 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3592 (add_solib_catchpoint): Likewise.
3593 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3594 to bool.
3595 (add_solib_catchpoint): Change int parameter/variable to bool.
3596 (catch_load_or_unload): Likewise.
3597 (init_catchpoint): Likewise.
3598 (create_fork_vfork_event_catchpoint): Likewise.
3599 (catch_fork_command_1): Likewise.
3600 (catch_exec_command_1): Likewise.
3601
3602 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3603
3604 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3605 Change instance_flags to m_instance_flags.
3606
3607 2020-09-16 Tom Tromey <tromey@adacore.com>
3608
3609 PR gdb/26598:
3610 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3611
3612 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3613
3614 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3615 PL_FLAG_EXEC.
3616 (fbsd_nat_target::insert_exec_catchpoint)
3617 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3618 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3619 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3620
3621 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3622
3623 * configure.ac: Remove check for kinfo_getvmmap().
3624 * configure, config.in: Regenerate.
3625 * fbsd-nat.c (fbsd_read_mapping): Remove
3626 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3627 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3628 kinfo_get_vmmap() are always present.
3629
3630 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3631
3632 * fbsd-nat.c: Always include support for
3633 TARGET_OBJECT_SIGNAL_INFO.
3634
3635 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3636
3637 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3638 sysctl and remove procfs fallback.
3639
3640 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3641
3642 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3643 * fbsd-nat.h: Likewise.
3644
3645 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3646
3647 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3648 argument.
3649
3650 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * ada-lang.c (ada_language_data): Delete.
3653 (ada_language): Remove references to ada_language_data.
3654 * c-lang.c (c_language_data): Delete.
3655 (c_language): Remove references to c_language_data.
3656 (cplus_language_data): Delete.
3657 (cplus_language): Remove references to cplus_language_data.
3658 (asm_language_data): Delete.
3659 (asm_language): Remove references to asm_language_data.
3660 (minimal_language_data): Delete.
3661 (minimal_language): Remove references to minimal_language_data.
3662 * d-lang.c (d_language_data): Delete.
3663 (d_language): Remove references to d_language_data.
3664 * f-lang.c (f_language_data): Delete.
3665 (f_language): Remove references to f_language_data.
3666 * go-lang.c (go_language_data): Delete.
3667 (go_language): Remove references to go_language_data.
3668 * language.c (unknown_language_data): Delete.
3669 (unknown_language): Remove references to unknown_language_data.
3670 (auto_language_data): Delete.
3671 (auto_language): Remove references to auto_language_data.
3672 * language.h (language_data): Delete struct.
3673 (language_defn): No longer inherit from language_data.
3674 * m2-lang.c (m2_language_data): Delete.
3675 (m2_language): Remove references to m2_language_data.
3676 * objc-lang.c (objc_language_data): Delete.
3677 (objc_language): Remove references to objc_language_data.
3678 * opencl-lang.c (opencl_language_data): Delete.
3679 (opencl_language): Remove references to opencl_language_data.
3680 * p-lang.c (pascal_language_data): Delete.
3681 (pascal_language): Remove references to pascal_language_data.
3682 * rust-lang.c (rust_language_data): Delete.
3683 (rust_language): Remove references to rust_language_data.
3684
3685 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3688 initializer.
3689 (ada_language::opcode_print_table): New member function.
3690 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3691 (c_language::opcode_print_table): New member function.
3692 (cplus_language_data): Remove la_op_print_tab initializer.
3693 (cplus_language::opcode_print_table): New member function.
3694 (asm_language_data): Remove la_op_print_tab initializer.
3695 (asm_language::opcode_print_table): New member function.
3696 (minimal_language_data): Remove la_op_print_tab initializer.
3697 (minimal_language::opcode_print_table): New member function.
3698 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3699 (d_language::opcode_print_table): New member function.
3700 * expprint.c (print_subexp_standard): Update call to
3701 opcode_print_table.
3702 (op_string): Likewise.
3703 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3704 (f_language::opcode_print_table): New member function.
3705 * go-lang.c (go_language_data): Remove la_op_print_tab
3706 initializer.
3707 (go_language::opcode_print_table): New member function.
3708 * language.c (unknown_language_data): Remove la_op_print_tab
3709 initializer.
3710 (unknown_language::opcode_print_table): New member function.
3711 (auto_language_data): Remove la_op_print_tab initializer.
3712 (auto_language::opcode_print_table): New member function.
3713 * language.h (language_data): Remove la_op_print_tab field.
3714 (language_defn::opcode_print_table): Declare new member function.
3715 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3716 initializer.
3717 (m2_language::opcode_print_table): New member function.
3718 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3719 initializer.
3720 (objc_language::opcode_print_table): New member function.
3721 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3722 initializer.
3723 (opencl_language::opcode_print_table): New member function.
3724 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3725 initializer.
3726 (pascal_language::opcode_print_table): New member function.
3727 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3728 initializer.
3729 (rust_language::opcode_print_table): New member function.
3730
3731 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3734 (ada_language::expression_ops): New member function.
3735 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3736 (c_language::expression_ops): New member function.
3737 (cplus_language_data): Remove la_exp_desc initializer.
3738 (cplus_language::expression_ops): New member function.
3739 (asm_language_data): Remove la_exp_desc initializer.
3740 (asm_language::expression_ops): New member function.
3741 (minimal_language_data): Remove la_exp_desc initializer.
3742 (minimal_language::expression_ops): New member function.
3743 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3744 (d_language::expression_ops): New member function.
3745 * eval.c (evaluate_subexp): Update call to expression_ops.
3746 * expprint.c (print_subexp): Likewise.
3747 (op_name): Likewise.
3748 (dump_subexp_body): Likewise.
3749 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3750 (f_language::expression_ops): New member function.
3751 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3752 (go_language::expression_ops): New member function.
3753 * language.c (language_defn::expression_ops): New function.
3754 (unknown_language_data): Remove la_exp_desc initializer.
3755 (auto_language_data): Likewise.
3756 * language.h (language_data): Remove la_exp_desc field.
3757 (language_defn::expression_ops): Declare new member function.
3758 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3759 (m2_language::expression_ops): New member function.
3760 * objc-lang.c (objc_language_data): Remove la_exp_desc
3761 initializer.
3762 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3763 initializer.
3764 (opencl_language::expression_ops): New member function.
3765 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3766 * parse.c (operator_length): Update call to expression_ops.
3767 (exp_iterate): Likewise.
3768 * rust-lang.c (rust_language_data): Remove la_exp_desc
3769 initializer.
3770 (ruse_language::expression_ops): New member function.
3771
3772 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3775 initializer.
3776 (ada_language::varobj_ops): New member function.
3777 * c-lang.c (c_language_data): Remove la_varobj_ops
3778 initializer.
3779 (cplus_language_data): Likewise.
3780 (cplus_language::varobj_ops): New member function.
3781 (asm_language_data): Remove la_varobj_ops initializer.
3782 (minimal_language_data): Likewise.
3783 * d-lang.c (d_language_data): Likewise.
3784 * f-lang.c (f_language_data): Likewise.
3785 * go-lang.c (go_language_data): Likewise.
3786 * language.c (language_defn::varobj_ops): New function.
3787 (unknown_language_data): Remove la_varobj_ops
3788 initializer.
3789 (auto_language_data): Likewise.
3790 * language.h (language_data): Remove la_varobj_ops field.
3791 (language_defn::varobj_ops): Declare new member function.
3792 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3793 * objc-lang.c (objc_language_data): Likewise.
3794 * opencl-lang.c (opencl_language_data): Likewise.
3795 * p-lang.c (pascal_language_data): Likewise.
3796 * rust-lang.c (rust_language_data): Likewise.
3797 * varobj.c (varobj_create): Update call to varobj_ops.
3798 * varobj.h (default_varobj_ops): Delete define.
3799
3800 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3803 initializer.
3804 * c-lang.c (c_language_data): Likewise.
3805 (c_language::macro_expansion): New member function.
3806 (cplus_language_data): Likewise.
3807 (cplus_language::macro_expansion): New member function.
3808 (asm_language_data): Likewise.
3809 (asm_language::macro_expansion): New member function.
3810 (minimal_language_data): Likewise.
3811 (minimal_language::macro_expansion): New member function.
3812 * d-lang.c (d_language_data): Remove la_macro_expansion
3813 initializer.
3814 * f-lang.c (f_language_data): Likewise.
3815 * go-lang.c (go_language_data): Likewise.
3816 * language.c (unknown_language_data): Likewise.
3817 (auto_language_data): Likewise.
3818 * language.h (language_data): Remove la_macro_expansion field.
3819 (language_defn::macro_expansion): New member function.
3820 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3821 initializer.
3822 * objc-lang.c (objc_language_data): Likewise.
3823 (objc_language::macro_expansion): New member function.
3824 * opencl-lang.c (opencl_language_data): Likewise.
3825 (opencl_language::macro_expansion): New member function.
3826 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3827 initializer.
3828 * rust-lang.c (rust_language_data): Likewise.
3829 * symtab.c (default_collect_symbol_completion_matches_break_on):
3830 Update call to macro_expansion.
3831
3832 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * ada-lang.c (ada_language_data): Remove la_array_ordering
3835 initializer.
3836 * c-lang.c (c_language_data): Likewise.
3837 (cplus_language_data): Likewise.
3838 (asm_language_data): Likewise.
3839 (minimal_language_data): Likewise.
3840 * d-lang.c (d_language_data): Likewise.
3841 * dwarf2/read.c (read_array_order): Update for call to
3842 array_ordering.
3843 * f-lang.c (f_language_data): Remove la_array_ordering
3844 initializer.
3845 (f_language::array_ordering): New member function.
3846 * go-lang.c (go_language_data): Remove la_array_ordering
3847 initializer.
3848 * language.c (unknown_language_data): Likewise.
3849 (auto_language_data): Likewise.
3850 * language.h (language_data): Delete la_array_ordering field.
3851 (language_defn::array_ordering): New member function.
3852 * m2-lang.c (m2_language_data): Remove la_array_ordering
3853 initializer.
3854 * objc-lang.c (objc_language_data): Likewise.
3855 * opencl-lang.c (opencl_language_data): Likewise.
3856 * p-lang.c (pascal_language_data): Likewise.
3857 * rust-lang.c (rust_language_data): Likewise.
3858
3859 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3860
3861 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3862 initializer.
3863 * c-lang.c (c_language_data): Likewise.
3864 (cplus_language_data): Likewise.
3865 (asm_language_data): Likewise.
3866 (minimal_language_data): Likewise.
3867 * d-lang.c (d_language_data): Likewise.
3868 * f-lang.c (f_language_data): Likewise.
3869 (f_language::case_sensitivity): New member function.
3870 * go-lang.c (go_language_data): Remove la_case_sensitivity
3871 initializer.
3872 * language.c (enum case_mode): Moved here from language.h.
3873 (case_mode): Make static.
3874 (show_case_command): Update for case_sensitivity being a method.
3875 (set_case_command): Likewise.
3876 (set_range_case): Likewise.
3877 (unknown_language_data): Remove la_case_sensitivity initializer.
3878 (auto_language_data): Likewise.
3879 * language.h (case_mode): Delete, move enum declaration to
3880 language.c.
3881 (language_data): Delete la_case_sensitivity field.
3882 (language_defn::case_sensitivity): New member function.
3883 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3884 initializer.
3885 * objc-lang.c (objc_language_data): Likewise.
3886 * opencl-lang.c (opencl_language_data): Likewise.
3887 * p-lang.c (pascal_language_data): Likewise.
3888 * rust-lang.c (rust_language_data): Likewise.
3889
3890 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * ada-lang.c (ada_language_data): Remove la_range_check
3893 initializer.
3894 * c-lang.c (c_language_data): Likewise.
3895 (cplus_language_data): Likewise.
3896 (asm_language_data): Likewise.
3897 (minimal_language_data): Likewise.
3898 * d-lang.c (d_language_data): Likewise.
3899 * f-lang.c (f_language_data): Likewise.
3900 (f_language::range_checking_on_by_default): New member function.
3901 * go-lang.c (go_language_data): Remove la_range_check initializer.
3902 * language.c (enum range_mode): Moved here from language.h.
3903 (range_mode): Made static.
3904 (show_range_command): Update to use
3905 range_checking_on_by_default.
3906 (set_range_command): Likewise.
3907 (set_range_case): Likewise.
3908 (unknown_language_data): Remove la_range_check initializer.
3909 (auto_language_data): Likewise.
3910 * language.h (range_mode): Delete. Enum definition moved to
3911 language.c.
3912 (language_data): Remove la_range_check field.
3913 (language_defn::range_checking_on_by_default): New member
3914 function.
3915 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3916 (m2_language::range_checking_on_by_default): New member function.
3917 * objc-lang.c (objc_language_data): Remove la_range_check
3918 initializer.
3919 * opencl-lang.c (opencl_language_data): Likewise.
3920 * p-lang.c (pascal_language_data): Likewise.
3921 (pascal_language::range_checking_on_by_default): New member
3922 function.
3923 * rust-lang.c (rust_language_data): Remove la_range_check
3924 initializer.
3925 (rust_language::range_checking_on_by_default): New member
3926 function.
3927
3928 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * dwarf2/read.c (dwarf2_physname): Remove special case for
3931 language_go.
3932 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3933 member function.
3934
3935 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * ada-lang.c (ada_language_data): Remove
3938 la_store_sym_names_in_linkage_form_p initializer.
3939 (ada_language::store_sym_names_in_linkage_form_p): New member
3940 function.
3941 * c-lang.c (c_language_data): Remove
3942 la_store_sym_names_in_linkage_form_p initializer.
3943 (c_language::store_sym_names_in_linkage_form_p): New member
3944 function.
3945 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3946 initializer.
3947 (asm_language_data): Likewise.
3948 (asm_language::store_sym_names_in_linkage_form_p): New member
3949 function.
3950 (minimal_language_data): Remove
3951 la_store_sym_names_in_linkage_form_p initializer.
3952 (minimal_language::store_sym_names_in_linkage_form_p): New member
3953 function.
3954 * d-lang.c (d_language_data): Remove
3955 la_store_sym_names_in_linkage_form_p initializer.
3956 * dwarf2/read.c (dwarf2_physname): Update call to
3957 store_sym_names_in_linkage_form_p.
3958 * f-lang.c (f_language_data): Remove
3959 la_store_sym_names_in_linkage_form_p initializer.
3960 * go-lang.c (go_language_data): Remove
3961 la_store_sym_names_in_linkage_form_p initializer.
3962 * language.c (unknown_language_data): Remove
3963 la_store_sym_names_in_linkage_form_p initializer.
3964 (unknown_language::store_sym_names_in_linkage_form_p): New member
3965 function.
3966 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3967 initializer.
3968 (auto_language::store_sym_names_in_linkage_form_p): New member
3969 function.
3970 * language.h (language_data): Remove
3971 la_store_sym_names_in_linkage_form_p member variable.
3972 (language_defn::store_sym_names_in_linkage_form_p): New member
3973 function.
3974 * m2-lang.c (m2_language_data): Remove
3975 la_store_sym_names_in_linkage_form_p initializer.
3976 * objc-lang.c (objc_language_data): Likewise.
3977 * opencl-lang.c (opencl_language_data): Likewise.
3978 * p-lang.c (pascal_language_data): Likewise.
3979 * rust-lang.c (rust_language_data): Likewise.
3980
3981 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3982
3983 * ada-lang.c (ada_language_data): Remove string_lower_bound
3984 initializer.
3985 * c-lang.c (c_language_data): Likewise.
3986 (cplus_language_data): Likewise.
3987 (asm_language_data): Likewise.
3988 (minimal_language_data): Likewise.
3989 * d-lang.c (d_language_data): Likewise.
3990 * f-lang.c (f_language_data): Likewise.
3991 * go-lang.c (go_language_data): Likewise.
3992 * language.c (unknown_language_data): Likewise.
3993 (auto_language_data): Likewise.
3994 * language.h (language_data): Remove string_lower_bound field.
3995 (language_defn::string_lower_bound): New member function.
3996 * m2-lang.c (m2_language_data): Remove string_lower_bound
3997 initializer.
3998 (m2_language::string_lower_bound): New member function.
3999 * objc-lang.c (objc_language_data): Remove string_lower_bound
4000 initializer.
4001 * opencl-lang.c (opencl_language_data): Likewise.
4002 * p-lang.c (pascal_language_data): Likewise.
4003 * rust-lang.c (rust_language_data): Likewise.
4004 * valops.c (value_cstring): Update call to string_lower_bound.
4005 (value_string): Likewise.
4006 * value.c (allocate_repeated_value): Likewise.
4007
4008 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * valops.c (value_repeat): Fix incorrect argument name in comment.
4011
4012 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * ada-lang.c (ada_language_data): Remove c_style_arrays
4015 initializer.
4016 (ada_language::c_style_arrays_p): New member fuction.
4017 * c-lang.c (c_language_data): Remove c_style_arrays
4018 initializer.
4019 (cplus_language_data): Likewise.
4020 (asm_language_data): Likewise.
4021 (minimal_language_data): Likewise.
4022 * d-lang.c (d_language_data): Likewise.
4023 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4024 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4025 (f_language::c_style_arrays_p): New member function.
4026 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4027 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4028 * language.c (unknown_language_data): Remove c_style_arrays
4029 initializer.
4030 (auto_language_data): Likewise.
4031 * language.h (language_data): Remove c_style_arrays field.
4032 (language_defn::c_style_arrays_p): New member function.
4033 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4034 (m2_language::c_style_arrays_p): New member function.
4035 * objc-lang.c (objc_language_data): Remove c_style_arrays
4036 initializer.
4037 * opencl-lang.c (opencl_language_data): Likewise.
4038 * p-lang.c (pascal_language_data): Likewise.
4039 * rust-lang.c (rust_language_data): Likewise.
4040 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4041 and update local variable to a bool.
4042 * valops.c (value_cast): Update call to c_style_arrays_p.
4043 (value_array): Likewise.
4044 * value.c (coerce_array): Likewise.
4045
4046 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4047
4048 * ada-lang.c (ada_language_data): Remove la_language initializer.
4049 * c-lang.c (c_language_data): Likewise.
4050 (cplus_language_data): Likewise.
4051 (asm_language_data): Likewise.
4052 (minimal_language_data): Likewise.
4053 * d-lang.c (d_language_data): Likewise.
4054 * f-lang.c (f_language_data): Likewise.
4055 * go-lang.c (go_language_data): Likewise.
4056 * language.c (unknown_language_data): Likewise.
4057 (auto_language_data): Likewise.
4058 * language.h (language_data): Remove la_language field.
4059 (language_defn::language_defn): Initialise la_language field.
4060 (language_defn::la_language): New member variable.
4061 * m2-lang.c (m2_language_data): Remove la_language field.
4062 * objc-lang.c (objc_language_data): Likewise.
4063 * opencl-lang.c (opencl_language_data): Likewise.
4064 * p-lang.c (pascal_language_data): Likewise.
4065 * rust-lang.c (rust_language_data): Likewise.
4066
4067 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * ada-lang.c (ada_extensions): Delete, moved into
4070 ada_language::filename_extensions.
4071 (ada_language_data): Remove la_filename_extensions initializer.
4072 (ada_language::filename_extensions): New member function.
4073 * c-lang.c (c_extensions): Delete, moved into
4074 c_language::filename_extensions.
4075 (c_language_data): Remove la_filename_extensions initializer.
4076 (c_language::filename_extensions): New member function.
4077 (cplus_extensions): Delete, moved into
4078 cplus_language::filename_extensions.
4079 (cplus_language_data): Remove la_filename_extensions initializer.
4080 (cplus_language::filename_extensions): New member function.
4081 (asm_extensions): Delete, moved into
4082 asm_language::filename_extensions.
4083 (asm_language_data): Remove la_filename_extensions initializer.
4084 (asm_language::filename_extensions): New member function.
4085 (minimal_language_data): Remove la_filename_extensions
4086 initializer.
4087 * d-lang.c (d_extensions): Delete, moved into
4088 d_language::filename_extensions.
4089 (d_language_data): Remove la_filename_extensions initializer.
4090 (d_language::filename_extensions): New member function.
4091 * f-lang.c (f_extensions): Delete, moved into
4092 f_language::filename_extensions.
4093 (f_language_data): Remove la_filename_extensions initializer.
4094 (f_language::filename_extensions): New member function.
4095 * go-lang.c (go_language_data): Remove la_filename_extensions
4096 initializer.
4097 * language.c (add_set_language_command): Update now that
4098 filename_extensions returns a vector.
4099 (unknown_language_data): Remove la_filename_extensions
4100 initializer.
4101 (auto_language_data): Likewise.
4102 * language.h (language_data): Remove la_filename_extensions field.
4103 (language_defn::filename_extensions): New member function.
4104 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4105 initializer.
4106 * objc-lang.c (objc_extensions): Delete, moved into
4107 objc_language::filename_extensions.
4108 (objc_language_data): Remove la_filename_extensions initializer.
4109 (objc_language::filename_extensions): New member function.
4110 * opencl-lang.c (opencl_language_data): Remove
4111 la_filename_extensions initializer.
4112 * p-lang.c (pascal_extensions): Delete, moved into
4113 pascal_language::filename_extensions.
4114 (pascal_language_data): Remove la_filename_extensions initializer.
4115 (pascal_language::filename_extensions): New member function.
4116 * rust-lang.c (rust_extensions): Delete, moved into
4117 rust_language::filename_extensions.
4118 (rust_language_data): Remove la_filename_extensions initializer.
4119 (rust_language::filename_extensions): New member function.
4120 * symfile.c (add_filename_language): Add new assert.
4121
4122 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * ada-lang.c (ada_language_data): Remove la_name and
4125 la_natural_name initializers.
4126 (ada_language::name): New member function.
4127 (ada_language::natural_name): New member function.
4128 * c-lang.c (c_language_data): Remove la_name and
4129 la_natural_name initializers.
4130 (c_language::name): New member function.
4131 (c_language::natural_name): New member function.
4132 (cplus_language_data): Remove la_name and
4133 la_natural_name initializers.
4134 (cplus_language::name): New member function.
4135 (cplus_language::natural_name): New member function.
4136 (asm_language_data): Remove la_name and
4137 la_natural_name initializers.
4138 (asm_language::name): New member function.
4139 (asm_language::natural_name): New member function.
4140 (minimal_language_data): Remove la_name and
4141 la_natural_name initializers.
4142 (minimal_language::name): New member function.
4143 (minimal_language::natural_name): New member function.
4144 * compile/compile.c (compile_to_object): Update call to
4145 lanugage_defn::name.
4146 * d-lang.c (d_language_data): Remove la_name and
4147 la_natural_name initializers.
4148 (d_language::name): New member function.
4149 (d_language::natural_name): New member function.
4150 * expprint.c (print_subexp_standard): Update call to
4151 language_defn::name.
4152 (dump_raw_expression): Likewise
4153 (dump_prefix_expression): Likewise.
4154 * f-lang.c (f_language_data): Remove la_name and
4155 la_natural_name initializers.
4156 (f_language::name): New member function.
4157 (f_language::natural_name): New member function.
4158 * go-lang.c (go_language_data): Remove la_name and
4159 la_natural_name initializers.
4160 (go_language::name): New member function.
4161 (go_language::natural_name): New member function.
4162 * language.c (show_language_command): Update call to
4163 language_defn::name.
4164 (set_language_command): Likewise.
4165 (language_enum): Likewise.
4166 (language_str): Likewise.
4167 (add_set_language_command): Likewise, use
4168 language_defn::natural_name in the doc string.
4169 (unknown_language_data): Remove la_name and
4170 la_natural_name initializers.
4171 (unknown_language::name): New member function.
4172 (unknown_language::natural_name): New member function.
4173 (auto_language_data): Remove la_name and
4174 la_natural_name initializers.
4175 (auto_language::name): New member function.
4176 (auto_language::natural_name): New member function.
4177 (language_lookup_primitive_type_as_symbol): Update call to
4178 language_defn::name.
4179 * language.h (language_data): Remove la_name and la_natural_name
4180 member variables.
4181 (language_defn::name): New member function.
4182 (language_defn::natural_name): New member function.
4183 * m2-lang.c (m2_language_data): Remove la_name and
4184 la_natural_name initializers.
4185 (m2_language::name): New member function.
4186 (m2_language::natural_name): New member function.
4187 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4188 language_defn::natural_name.
4189 * objc-lang.c (objc_language_data): Remove la_name and
4190 la_natural_name initializers.
4191 (objc_language::name): New member function.
4192 (objc_language::natural_name): New member function.
4193 * opencl-lang.c (opencl_language_data): Remove la_name and
4194 la_natural_name initializers.
4195 (opencl_language::name): New member function.
4196 (opencl_language::natural_name): New member function.
4197 * p-lang.c (pascal_language_data): Remove la_name and
4198 la_natural_name initializers.
4199 (pascal_language::name): New member function.
4200 (pascal_language::natural_name): New member function.
4201 * rust-lang.c (rust_language_data): Remove la_name and
4202 la_natural_name initializers.
4203 (rust_language::name): New member function.
4204 (rust_language::natural_name): New member function.
4205 * symtab.c (lookup_language_this): Update call to
4206 language_defn::name.
4207
4208 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * ada-lang.c (ada_language_data): Remove la_name_of_this
4211 initializer.
4212 * ax-gdb.c (gen_expr): Update call to name_of_this.
4213 * c-exp.y (classify_name): Likewise.
4214 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4215 (cplus_language_data): Likewise.
4216 (cplus_language::name_of_this): New member function.
4217 (asm_language_data): Remove la_name_of_this initializer.
4218 (minimal_language_data): Likewise.
4219 * d-lang.c (d_language_data): Likewise.
4220 (d_language::name_of_this): New member function.
4221 * expprint.c (print_subexp_standard): Update call to name_of_this.
4222 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4223 * go-lang.c (go_language_data): Likewise.
4224 * language.c (unknown_language_data): Likewise.
4225 (unknown_language::name_of_this): New member function.
4226 (auto_language_data): Remove la_name_of_this initializer.
4227 (auto_language::name_of_this): New member function.
4228 * language.h (language_data): Delete la_name_of_this member
4229 variable.
4230 (language_defn::name_of_this): New member function.
4231 * m2-lang.c (m2_language_data): Remove la_name_of_this
4232 initializer.
4233 * objc-lang.c (objc_language_data): Likewise.
4234 (objc_language::name_of_this): New member function.
4235 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4236 initializer.
4237 * p-lang.c (pascal_language_data): Likewise.
4238 (pascal_language::name_of_this): New member function.
4239 * rust-lang.c (rust_language_data): Remove la_name_of_this
4240 initializer.
4241 * symtab.c (lookup_language_this): Update call to name_of_this.
4242 (lookup_symbol_aux): Likewise.
4243 * valops.c (value_of_this): Likewise.
4244
4245 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4246
4247 * ada-lang.c (ada_language_data): Remove
4248 la_struct_too_deep_ellipsis initializer.
4249 (ada_language::struct_too_deep_ellipsis): New member function.
4250 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4251 initializer.
4252 (cplus_language_data): Likewise.
4253 (asm_language_data): Likewise.
4254 (minimal_language_data): Likewise.
4255 * cp-valprint.c (cp_print_value): Update call to
4256 struct_too_deep_ellipsis.
4257 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4258 initializer.
4259 * f-lang.c (f_language_data): Likewise.
4260 (f_language::struct_too_deep_ellipsis): New member function.
4261 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4262 initializer.
4263 * language.c (unknown_language_data): Likewise.
4264 (auto_language_data): Likewise.
4265 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4266 member variable.
4267 (language_defn::struct_too_deep_ellipsis): New member function.
4268 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4269 initializer.Q
4270 * objc-lang.c (objc_language_data): Likewise.
4271 * opencl-lang.c (opencl_language_data): Likewise.
4272 * p-lang.c (pascal_language_data): Likewise.
4273 * rust-lang.c (rust_language_data): Likewise.
4274 * valprint.c (val_print_check_max_depth): Update call to
4275 struct_too_deep_ellipsis.
4276
4277 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4278
4279 * MAINTAINERS (Write After Approval): Add myself.
4280
4281 2020-09-15 Tom Tromey <tom@tromey.com>
4282
4283 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4284 Remove.
4285
4286 2020-09-15 Tom Tromey <tom@tromey.com>
4287
4288 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4289 and TYPE_CODE_METHODPTR cases.
4290 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4291 (c_value_print_inner): Update.
4292 * valprint.c (generic_value_print_memberptr): New function, from
4293 c_value_print_memberptr.
4294 (generic_value_print): Use it. Call cplus_print_method_ptr.
4295
4296 2020-09-15 Tom Tromey <tromey@adacore.com>
4297
4298 * python/python-internal.h (PyInt_FromLong): Remove define.
4299 * python/py-value.c (convert_value_from_python): Use
4300 gdb_py_object_from_longest.
4301 * python/py-type.c (typy_get_code): Use
4302 gdb_py_object_from_longest.
4303 * python/py-symtab.c (salpy_get_line): Use
4304 gdb_py_object_from_longest.
4305 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4306 gdb_py_object_from_longest.
4307 * python/py-record.c (recpy_gap_reason_code): Use
4308 gdb_py_object_from_longest.
4309 * python/py-record-btrace.c (recpy_bt_insn_size)
4310 (recpy_bt_func_level, btpy_list_count): Use
4311 gdb_py_object_from_longest.
4312 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4313 gdb_py_object_from_longest. Fix error handling.
4314 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4315 gdb_py_object_from_longest.
4316 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4317 gdb_py_object_from_longest.
4318 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4319 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4320 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4321
4322 2020-09-15 Tom Tromey <tromey@adacore.com>
4323
4324 * python/python.c (gdbpy_parameter_value): Use
4325 gdb_py_object_from_ulongest.
4326
4327 2020-09-15 Tom Tromey <tromey@adacore.com>
4328
4329 * python/py-infevents.c (create_register_changed_event_object):
4330 Use gdb_py_object_from_longest.
4331 * python/py-exitedevent.c (create_exited_event_object): Use
4332 gdb_py_object_from_longest.
4333
4334 2020-09-15 Tom Tromey <tromey@adacore.com>
4335
4336 * python/python.c (gdbpy_parameter_value): Use
4337 gdb_py_object_from_longest.
4338 * python/py-type.c (convert_field, typy_range): Use
4339 gdb_py_object_from_longest.
4340 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4341 gdb_py_object_from_longest.
4342 * python/py-lazy-string.c (stpy_get_length): Use
4343 gdb_py_object_from_longest.
4344 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4345 gdb_py_object_from_longest.
4346 * python/py-infevents.c (create_memory_changed_event_object): Use
4347 gdb_py_object_from_longest.
4348 * python/py-inferior.c (infpy_get_num): Use
4349 gdb_py_object_from_longest.
4350 (infpy_get_pid): Likewise.
4351
4352 2020-09-15 Tom Tromey <tromey@adacore.com>
4353
4354 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4355 defines.
4356 * python/py-value.c (valpy_long): Use
4357 gdb_py_object_from_ulongest.
4358 * python/py-symtab.c (salpy_get_pc): Use
4359 gdb_py_object_from_ulongest.
4360 (salpy_get_last): Likewise.
4361 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4362 gdb_py_object_from_ulongest.
4363 * python/py-lazy-string.c (stpy_get_address): Use
4364 gdb_py_object_from_ulongest.
4365 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4366 * python/py-arch.c (archpy_disassemble): Use
4367 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4368 error handling.
4369
4370 2020-09-15 Tom Tromey <tromey@adacore.com>
4371
4372 * python/python-internal.h (gdb_py_long_from_longest): Remove
4373 defines.
4374 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4375 * python/py-type.c (convert_field, typy_get_sizeof): Use
4376 gdb_py_object_from_longest.
4377 * python/py-record-btrace.c (btpy_list_index): Use
4378 gdb_py_object_from_longest.
4379
4380 2020-09-15 Tom Tromey <tromey@adacore.com>
4381
4382 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4383 * python/py-record.c (recpy_element_number): Use
4384 gdb_py_object_from_longest.
4385 (recpy_gap_number): Likewise.
4386
4387 2020-09-15 Tom Tromey <tromey@adacore.com>
4388
4389 * top.c (ui::ui): Update.
4390 (highest_ui_num): Remove.
4391 * top.h (struct ui) <num>: Remove.
4392
4393 2020-09-15 Tom Tromey <tromey@adacore.com>
4394
4395 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4396 * ui-style.c (ansi_regex_text): Now array.
4397 * rust-exp.y (number_regex_text): Now array.
4398 * linespec.c (linespec_quote_characters): Now array.
4399 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4400 Now arrays.
4401
4402 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4403
4404 * debuginfod-support.c (debuginfod_client_deleter): New.
4405 (debuginfod_client_up): New.
4406 (debuginfod_init): Return debuginfod_client_up.
4407 (debuginfod_source_query): Adjust.
4408 (debuginfod_debuginfo_query): Adjust.
4409
4410 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4411
4412 * debuginfod-support.c (debuginfod_source_query): Use
4413 make_unique_xstrdup.
4414
4415 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4418 with `type::instance_flags`.
4419
4420 2020-09-14 Michael Mullin <masmullin@gmail.com>
4421
4422 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4423 Remove baton parameter.
4424
4425 2020-09-14 Pedro Alves <pedro@palves.net>
4426
4427 * Makefile.in (SELFTESTS_SRCS): Add
4428 unittests/enum-flags-selftests.c.
4429 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4430 btrace_function_flags instead of enum btrace_function_flag.
4431 * compile/compile-c-types.c (convert_qualified): Use
4432 enum_flags::raw.
4433 * compile/compile-cplus-symbols.c (convert_one_symbol)
4434 (convert_symbol_bmsym):
4435 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4436 (compile_cplus_convert_struct_or_union_methods)
4437 (compile_cplus_instance::convert_qualified_base):
4438 * go-exp.y (parse_string_or_char): Add cast to int.
4439 * unittests/enum-flags-selftests.c: New file.
4440 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4441 type to btrace_thread_flags from btrace_thread_flag.
4442 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4443 local's type to btrace_thread_flags from btrace_thread_flag. Add
4444 cast in DEBUG call.
4445
4446 2020-09-14 Pedro Alves <pedro@palves.net>
4447
4448 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4449 * gdbtypes.c (address_space_name_to_int): Rename to ...
4450 (address_space_name_to_type_instance_flags): ... this.
4451 (address_space_int_to_name): Rename to ...
4452 (address_space_type_instance_flags_to_name): ... this.
4453 * gdbtypes.h (address_space_name_to_int): Rename to ...
4454 (address_space_name_to_type_instance_flags): ... this.
4455 (address_space_int_to_name): Rename to ...
4456 (address_space_type_instance_flags_to_name): ... this.
4457 * type-stack.c (type_stack::insert): Adjust to rename.
4458 * type-stack.h (type_stack::insert): Likewise.
4459
4460 2020-09-14 Pedro Alves <pedro@palves.net>
4461 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * avr-tdep.c (avr_address_class_type_flags): Return
4464 type_instance_flags.
4465 (avr_address_class_type_flags_to_name): Take a
4466 type_instance_flags.
4467 (avr_address_class_name_to_type_flags): Return bool and take a
4468 type_instance_flags.
4469 * d-lang.c (build_d_types): Use type::set_instance_flags.
4470 * ft32-tdep.c (ft32_address_class_type_flags): Return
4471 type_instance_flags.
4472 (ft32_address_class_type_flags_to_name): Take a
4473 type_instance_flags.
4474 (ft32_address_class_name_to_type_flags): Return bool and take a
4475 type_instance_flags.
4476 (ft32_gdbarch_init): Use type::set_instance_flags.
4477 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4478 * gdbarch.h, gdbarch.c: Regenerate.
4479 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4480 (address_class_name_to_type_flags): Use type_instance_flags and
4481 bool.
4482 * gdbtypes.c (address_space_name_to_int)
4483 (address_space_int_to_name, make_qualified_type): Use
4484 type_instance_flags.
4485 (make_qualified_type): Use type_instance_flags and
4486 type::set_instance_flags.
4487 (make_type_with_address_space, make_cv_type, make_vector_type)
4488 (check_typedef): Use type_instance_flags.
4489 (recursive_dump_type): Cast type_instance_flags to unsigned for
4490 printing.
4491 (copy_type_recursive): Use type::set_instance_flags.
4492 (gdbtypes_post_init): Use type::set_instance_flags.
4493 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4494 <m_instance_flags>: ... this.
4495 <instance_flags, set_instance_flags>: New methods.
4496 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4497 (SET_TYPE_INSTANCE_FLAGS): New.
4498 (address_space_name_to_int, address_space_int_to_name)
4499 (make_type_with_address_space): Pass flags using
4500 type_instance_flags instead of int.
4501 * stabsread.c (cleanup_undefined_types_noname): Use
4502 type::set_instance_flags.
4503 * s390-tdep.c (s390_address_class_type_flags): Return
4504 type_instance_flags.
4505 (s390_address_class_type_flags_to_name): Take a
4506 type_instance_flags.
4507 (s390_address_class_name_to_type_flags): Return bool and take a
4508 type_instance_flags.
4509 * type-stack.c (type_stack::follow_types): Use
4510 type_instance_flags.
4511 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4512
4513 2020-09-14 Tom Tromey <tromey@adacore.com>
4514
4515 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4516 * x86-tdep.c (x86_is_thunk_register_name)
4517 (x86_in_indirect_branch_thunk): Update.
4518 * sparc64-tdep.c (sparc64_fpu_register_names)
4519 (sparc64_cp0_register_names, sparc64_register_names)
4520 (sparc64_pseudo_register_names): Now const.
4521 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4522 cp0_registers_num>: Now const.
4523 * sparc-tdep.c (sparc_core_register_names)
4524 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4525 (sparc32_pseudo_register_names): Now const.
4526 (validate_tdesc_registers): Update.
4527 * rust-lang.c (rust_extensions): Now const.
4528 * p-lang.c (p_extensions): Now const.
4529 * objc-lang.c (objc_extensions): Now const.
4530 * nto-tdep.c (nto_thread_state_str): Now const.
4531 * moxie-tdep.c (moxie_register_names): Now const.
4532 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4533 Now const.
4534 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4535 (mips_linux_reg_names): Now const.
4536 (mips_gdbarch_init): Update.
4537 * microblaze-tdep.c (microblaze_register_names): Now const.
4538 * m68k-tdep.c (m68k_register_names): Now const.
4539 * m32r-tdep.c (m32r_register_names): Now const.
4540 * ia64-tdep.c (ia64_register_names): Now const.
4541 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4542 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4543 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4544 ymm_avx512_register_names, pkeys_register_names>: Now const.
4545 * i386-tdep.c (i386_register_names, i386_zmm_names)
4546 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4547 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4548 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4549 * f-lang.c (f_extensions): Now const.
4550 * d-lang.c (d_extensions): Now const.
4551 * csky-tdep.c (csky_register_names): Now const.
4552 * charset.c (default_charset_names, charset_enum): Now const.
4553 (_initialize_charset): Update.
4554 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4555 const.
4556 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4557 (bsd_uthread_solib_loaded): Update.
4558 (bsd_uthread_state): Now const.
4559 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4560 (amd64_ymm_avx512_names, amd64_ymmh_names)
4561 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4562 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4563 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4564 (amd64_dword_names): Now const.
4565 * agent.c (can_use_agent_enum): Now const.
4566 * ada-tasks.c (task_states, long_task_states): Now const.
4567 * ada-lang.c (known_runtime_file_name_patterns)
4568 (known_auxiliary_function_name_patterns, attribute_names)
4569 (standard_exc, ada_extensions): Now const.
4570
4571 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4572
4573 * bcache.h (struct bcache) <bcache>: Remove constructor.
4574 <m_hash_function, m_compare_function>: Remove.
4575 <~bcache>: Make virtual.
4576 <compare>: Remove static method, introduce virtual method.
4577 <default_hash>: Remove.
4578 <hash>: New virtual method.
4579 * bcache.c (bcache::expand_hash_table): Update.
4580 (bcache::insert): Update.
4581 (bcache::hash): New.
4582 (bcache::compare): Update comment and parameter names.
4583 * gdbtypes.c (types_deeply_equal): Update.
4584 * psymtab.h (struct psymbol_bcache): New struct.
4585 (class psymtab_storage) <psymtab_storage>: Make default.
4586 <psymbol_cache>: Change type to psymbol_bcache.
4587 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4588 (psymbol_hash): Change to...
4589 (psymbol_bcache::hash): ... this.
4590 (psymbol_compare): Change to...
4591 (psymbol_bcache::compare): ... this.
4592
4593 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4594
4595 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4596 checking for initial lwp.
4597
4598 2020-09-14 Tom Tromey <tromey@adacore.com>
4599
4600 * m68k-tdep.c (m68k_extract_return_value): Use
4601 pointer_result_regnum.
4602 (m68k_store_return_value): Likewise.
4603 (m68k_reg_struct_return_p): Handle vectors and arrays.
4604 (m68k_return_value): Handle arrays.
4605 (m68k_svr4_return_value): Fix single-element aggregate handling.
4606 Handle long double. Adjust for embedded ABI.
4607 (m68k_svr4_init_abi): Set pointer_result_regnum.
4608 (m68k_embedded_init_abi): New function.
4609 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4610 (m68k_osabi_sniffer): New function.
4611 (_initialize_m68k_tdep): Register osabi sniffer.
4612 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4613 member.
4614
4615 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4616
4617 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4618 with gdb::unique_xmalloc_ptr<char>.
4619
4620 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4621
4622 * xml-support.h (xml_fetch_another): Change type to be a
4623 function_view.
4624 (xml_process_xincludes): Remove baton parameter.
4625 (xml_fetch_content_from_file): Change baton parameter to
4626 dirname.
4627 * xml-support.c (struct xinclude_parsing_data)
4628 <xinclude_parsing_data>: Remove baton parameter.
4629 <fetcher_baton>: Remove.
4630 (xinclude_start_include): Adjust.
4631 (xml_process_xincludes): Adjust.
4632 (xml_fetch_content_from_file): Replace baton parameter with
4633 dirname.
4634 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4635 (xml_init_syscalls_info): Use a lambda.
4636 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4637 (file_read_description_xml): Use a lambda.
4638 (fetch_available_features_from_target): Change baton parameter
4639 to target_ops.
4640 (target_read_description_xml): Use a lambda.
4641 (target_fetch_description_xml): Use a lambda.
4642 (string_read_description_xml): Update.
4643
4644 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4645
4646 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4647 uses with type::endianity_is_not_default.
4648
4649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (struct type) <endianity_is_not_default,
4652 set_endianity_is_not_default>: New methods.
4653 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4654 type::endianity_is_not_default, change all write call sites to
4655 use type::set_endianity_is_not_default.
4656
4657 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4660 uses with type::is_fixed_instance.
4661
4662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (struct type) <is_fixed_instance,
4665 set_is_fixed_instance>: New methods.
4666 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4667 write call sites to use type::set_is_fixed_instance.
4668
4669 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4672 uses with type::is_gnu_ifunc.
4673
4674 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4677 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4678 use type::set_is_gnu_ifunc.
4679
4680 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4683 uses with type::stub_is_supported.
4684
4685 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4688 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4689 use type::set_stub_is_supported.
4690
4691 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4694 uses with type::is_vector.
4695
4696 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4699 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4700 use type::set_is_vector.
4701
4702 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4705 uses with type::has_varargs.
4706
4707 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4710 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4711 use type::set_has_varargs.
4712
4713 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4716 uses with type::is_prototyped.
4717
4718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4721 New methods.
4722 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4723 call sites to use type::set_is_prototyped.
4724
4725 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4728 uses with type::target_is_stub.
4729
4730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4733 New methods.
4734 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4735 sites to use type::set_target_is_stub.
4736
4737 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * gdbtypes.h (TYPE_STUB): Remove, replace all
4740 uses with type::is_stub.
4741
4742 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4743
4744 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4745 (TYPE_STUB): Use type::is_stub, change all write call sites to
4746 use type::set_is_stub.
4747
4748 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4749
4750 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4751 type::has_no_signedness.
4752
4753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.h (struct type) <has_no_signedness,
4756 set_has_no_signedness>: New methods.
4757 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4758 call sites to use type::set_has_no_signedness.
4759
4760 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4763 type::is_unsigned.
4764
4765 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4768 methods.
4769 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4770 sites to use type::set_is_unsigned.
4771
4772 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4773 Adam Renquinha <arenquinha@cimeq.qc.ca>
4774
4775 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4776 pointer and stack frame offset when unwinding.
4777
4778 2020-09-13 Pedro Alves <pedro@palves.net>
4779
4780 * NEWS: Document "-break-insert --qualified".
4781 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4782
4783 2020-09-13 Pedro Alves <pedro@palves.net>
4784
4785 * linespec.c (classify_mtype, compare_msyms): Delete.
4786 (search_minsyms_for_name): Remove classification logic. Instead
4787 filter out trampoline symbols if we also found an external
4788 function of the same name.
4789
4790 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4791
4792 * NEWS: Create a new section for the next release branch.
4793 Rename the section of the current branch, now that it has
4794 been cut.
4795
4796 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4797
4798 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4799 * version.in: Bump version to 11.0.50.DATE-git.
4800
4801 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4802
4803 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4804
4805 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4806 Felix Willgerodt <Felix.Willgerodt@intel.com>
4807
4808 * gdbarch.sh: Added bfloat16 type.
4809 * gdbarch.c: Regenerated.
4810 * gdbarch.h: Regenerated.
4811 * gdbtypes.c (floatformats_bfloat16): New struct.
4812 (gdbtypes_post_init): Add builtin_bfloat16.
4813 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4814 (floatformats_bfloat16): New struct.
4815 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4816 (i386_ymm_type): Add field "v16_bfloat16"
4817 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4818 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4819 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4820 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4821 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4822 * features/i386/64bit-avx512.c: Regenerated.
4823 * features/i386/64bit-sse.xml: Add bfloat16 type.
4824 * features/i386/64bit-sse.c: Regenerated.
4825
4826 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4827
4828 * i386-tdep.c (i386_zmm_type): Fix field names.
4829 (i386_ymm_type): Fix field names.
4830
4831 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4832
4833 * breakpoint.c: Fix typo in the help message of the
4834 "set breakpoint condition-evaluation" command.
4835
4836 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4837
4838 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4839 * (nbsd_nat_target::pid_to_exec_file)
4840 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4841 (nbsd_nat_target::post_startup_inferior)
4842 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4843 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4844 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4845 * (nbsd_thread_lister): Remove.
4846
4847 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4848
4849 * fork-inferior.c (startup_inferior): Avoid double free.
4850
4851 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4852
4853 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4854 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4855
4856 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4857
4858 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4859 * netbsd-nat.c: Include <sys/ptrace.h>.
4860 * (netbsd_nat::enable_proc_events): Add.
4861
4862 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4863
4864 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4865 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4866 (netbsd_nat::for_each_thread): Add.
4867 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4868 "gdbsupport/common-debug.h".
4869 * (netbsd_nat::netbsd_thread_lister)
4870 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4871 (netbsd_nat::for_each_thread): Add.
4872
4873 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4874
4875 * netbsd-nat.h: Include <unistd.h>.
4876 * (netbsd_nat::pid_to_exec_file): Add.
4877 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4878 * (netbsd_nat::pid_to_exec_file) Add.
4879
4880 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4881
4882 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4883
4884 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4885
4886 * netbsd-nat.h: New file.
4887 * netbsd-nat.c: Likewise.
4888
4889 2020-09-09 Tom Tromey <tromey@adacore.com>
4890
4891 * ada-lang.c (remove_extra_symbols): Do not increment when
4892 removing an element
4893
4894 2020-09-08 Tom Tromey <tromey@adacore.com>
4895
4896 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4897
4898 2020-09-08 Tom Tromey <tromey@adacore.com>
4899
4900 PR win32/25302:
4901 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4902 (gdb_bfd_init_data): New function.
4903 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4904
4905 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4906
4907 * infrun.c (fetch_inferior_event): Use
4908 `switch_to_target_no_thread` to switch the target.
4909
4910 2020-09-06 Tom Tromey <tom@tromey.com>
4911
4912 * symfile.h (dwarf2_free_objfile): Don't declare.
4913
4914 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4915
4916 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4917 to match 16 byte real/complex type generated by Flang compiler.
4918
4919 2020-09-03 Tom de Vries <tdevries@suse.de>
4920
4921 PR breakpoint/26546
4922 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4923 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4924
4925 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4926
4927 * maint.c (index_digits): New function.
4928 (struct maint_print_section_data): Remove.
4929 (print_bfd_section_info): Remove print_data parameter, add arg
4930 and index_digits.
4931 (print_objfile_section_info): Likewise.
4932 (print_bfd_section_info_maybe_relocated): Likewise (plus
4933 objfile).
4934 (maintenance_info_sections): Adjust calls.
4935
4936 2020-09-02 Tom Tromey <tromey@adacore.com>
4937
4938 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4939 for null pointers.
4940 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4941
4942 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4943
4944 * bcache.h (struct bcache) <insert>: Change type of `added` to
4945 pointer to bool.
4946 * bcache.c (bcache::insert): Likewise.
4947 * gdbtypes.c (check_types_worklist): Adjust.
4948 * psymtab.c (add_psymbol_to_bcache): Adjust.
4949
4950 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4951
4952 * corelow.c (unordered_set): Include.
4953 (class core_target): Add field 'm_core_unavailable_mappings'.
4954 (core_target::build_file_mappings): Print only one warning
4955 per inaccessible file. Add unavailable/broken mappings
4956 to m_core_unavailable_mappings.
4957 (core_target::xfer_partial): Call...
4958 (core_target::xfer_memory_via_mappings): New method.
4959
4960 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4961
4962 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4963 type to bool.
4964
4965 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4966
4967 * dwarf2/read.c (struct field_info): Fix indentation.
4968
4969 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4972 ordering in comment.
4973 * frame.c (frame_id_eq): Fix indentation.
4974
4975 2020-08-31 Scott Linder <scott@scottlinder.com>
4976 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4979 inline frame ids in outer frame.
4980
4981 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4984 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4985 (outer_frame_id): Use FID_STACK_OUTER instead of
4986 FID_STACK_INVALID.
4987 (frame_id_p): Don't check for outer_frame_id.
4988
4989 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4992 regnum/frame in value. Call allocate_value_lazy.
4993 * frame.c (frame_unwind_register_value): Use
4994 val_print_not_saved.
4995
4996 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4999
5000 2020-08-29 Pedro Alves <pedro@palves.net>
5001
5002 * progspace.c (print_program_space): Use all_inferiors. Switch to
5003 the inferior before calling target_pid_to_str.
5004
5005 2020-08-28 Tom Tromey <tom@tromey.com>
5006
5007 * xcoffread.c (xcoff_end_psymtab): Update comment.
5008 * dbxread.c (dbx_end_psymtab): Update comment.
5009
5010 2020-08-28 Tom de Vries <tdevries@suse.de>
5011
5012 PR breakpoint/26544
5013 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5014 event_location.
5015 (create_breakpoint): Same.
5016 (base_breakpoint_decode_location): Same.
5017 (bkpt_create_sals_from_location): Same.
5018 (bkpt_decode_location): Same.
5019 (bkpt_probe_create_sals_from_location): Same.
5020 (bkpt_probe_decode_location): Same.
5021 (tracepoint_create_sals_from_location): Same.
5022 (tracepoint_decode_location): Same.
5023 (tracepoint_probe_decode_location): Same.
5024 (strace_marker_create_sals_from_location): Same.
5025 (strace_marker_decode_location): Same.
5026 (create_sals_from_location_default): Same.
5027 (decode_location_default): Same.
5028 * breakpoint.h (struct breakpoint_ops): Same.
5029 (create_breakpoint): Same.
5030 * linespec.h (decode_line_full): Same.
5031 * linespec.c (decode_line_full): Same. Throw error if
5032 result.size () == 0.
5033
5034 2020-08-27 Pedro Alves <pedro@palves.net>
5035
5036 PR gdb/26524
5037 * breakpoint.c (until_break_fsm) <location_breakpoint,
5038 caller_breakpoint>: Delete fields.
5039 <breakpoints>: New field.
5040 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5041 two individual breakpoints.
5042 (until_break_fsm::should_stop): Loop over breakpoints in the
5043 breakpoint vector.
5044 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5045 vector.
5046 (until_break_command): Handle location expanding into multiple
5047 sals.
5048
5049 2020-08-27 Pedro Alves <pedro@palves.net>
5050
5051 PR gdb/26523
5052 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5053 bp_until breakpoints user-specified locations. Update intro
5054 comment.
5055
5056 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5057
5058 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5059 gdb_bfd_sections): New.
5060 * maint.c (print_bfd_section_info): Change param type to
5061 maint_print_section_data.
5062 (print_objfile_section_info): Likewise.
5063 (print_bfd_section_info_maybe_relocated): Likewise.
5064 (maintenance_info_sections): Use gdb_bfd_sections.
5065
5066 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5067
5068 * MAINTAINERS: Add ARC target and maintainer.
5069
5070 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5071
5072 * configure.tgt: ARC support for GNU/Linux.
5073 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5074 * arc-linux-tdep.c: New file.
5075 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5076 * arc-tdep.c (arc_write_pc): Use it.
5077
5078 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5079
5080 * arc-tdep.c (arc_check_for_hardware_loop): New.
5081 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5082
5083 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5084
5085 * arc-tdep.h: Include "gdbarch.h".
5086
5087 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5088
5089 * arch/arc.h
5090 (arc_gdbarch_features): New class to stir the selection of target XML.
5091 (arc_create_target_description): Use FEATURES to choose XML target.
5092 (arc_lookup_target_description): Use arc_create_target_description
5093 to create _new_ target descriptions or return the already created
5094 ones if the FEATURES is the same.
5095 * arch/arc.c: Implementation of prototypes described above.
5096 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5097 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5098 * arc-tdep.c (*_feature_name): Make feature names consistent.
5099 (arc_register_feature): A new struct to hold information about
5100 registers of a particular target/feature.
5101 (arc_check_tdesc_feature): Check if XML provides registers in
5102 compliance with ARC_REGISTER_FEATURE structs.
5103 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5104 (determine_*_reg_feature_set): Which feature name to look for.
5105 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5106 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5107 to expected ISA enums to be used in arc_gdbarch_features structs.
5108 * features/Makefile (FEATURE_XMLFILES): Add new files.
5109 * gdb/features/arc/v1-aux.c: New file.
5110 * gdb/features/arc/v1-aux.xml: Likewise.
5111 * gdb/features/arc/v1-core.c: Likewise.
5112 * gdb/features/arc/v1-core.xml: Likewise.
5113 * gdb/features/arc/v2-aux.c: Likewise.
5114 * gdb/features/arc/v2-aux.xml: Likewise.
5115 * gdb/features/arc/v2-core.c: Likewise.
5116 * gdb/features/arc/v2-core.xml: Likewise.
5117 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5118
5119 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5120 Andrew Burgess <andrew.burgess@embecosm.com>
5121
5122 PR m2/26372
5123 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5124 an assert. Remove single element array indexing pattern as the
5125 MULTI_SUBSCRIPT support will handle this case too.
5126
5127 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * value.h (valprint_check_validity): Move declaration from
5130 here...
5131 * valprint.h (valprint_check_validity): ... to here.
5132
5133 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * debug.h: New file.
5136 * debug.c (debug_prefixed_vprintf): New function.
5137 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5138 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5139
5140 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * infrun.h (infrun_debug_printf_1): New function declaration.
5143 (infrun_debug_printf): New macro.
5144 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5145 throughout.
5146 (infrun_debug_printf): New function.
5147 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5148 (handle_jit_event): Likewise.
5149
5150 2020-08-21 Mark Wielaard <mark@klomp.org>
5151
5152 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5153
5154 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * frame.c (enum class frame_id_status): New.
5157 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5158 (fprintf_frame): Update.
5159 (compute_frame_id): Set frame id status to "computing" on entry.
5160 Set it back to "not_computed" on failure and to "computed" on
5161 success.
5162 (get_frame_id): Assert the frame id is not being computed.
5163 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5164 (create_new_frame): Likewise.
5165 (frame_cleanup_after_sniffer): Update assert.
5166
5167 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5168
5169 * regcache.c (pid_ptid_regcache_map): New type.
5170 (target_ptid_regcache_map): Remove.
5171 (target_pid_ptid_regcache_map): New type.
5172 (regcaches): Change type to target_pid_ptid_regcache_map.
5173 (get_thread_arch_aspace_regcache): Update.
5174 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5175 case.
5176 (regcaches_size): Update.
5177 (regcache_count): Update.
5178 (registers_changed_ptid_target_pid_test): New.
5179 (_initialize_regcache): Register new test.
5180
5181 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5182
5183 * regcache.c (regcache_count): New.
5184 (struct regcache_test_data): New.
5185 (regcache_test_data_up): New.
5186 (populate_regcaches_for_test): New.
5187 (regcaches_test): Remove.
5188 (get_thread_arch_aspace_regcache_test): New.
5189 (registers_changed_ptid_all_test): New.
5190 (registers_changed_ptid_target_test): New.
5191 (registers_changed_ptid_target_ptid_test): New.
5192 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5193 (_initialize_regcache): Register new tests.
5194
5195 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5196
5197 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5198 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5199 gdbarch and aspace parameter. Use current inferior's aspace.
5200 Validate regcache's arch value.
5201 (regcaches_test): Update.
5202
5203 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5204
5205 * regcache.c (regcaches_test): Call registers_changed.
5206
5207 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5208
5209 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5210
5211 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5212
5213 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5214 to find the end of prologue for flang compiled binaries.
5215 * arm-tdep.c (arm_skip_prologue): Likewise.
5216 * i386-tdep.c (i386_skip_prologue): Likewise.
5217 * producer.c (producer_is_llvm): New function.
5218 (producer_parsing_tests): Added new tests for clang/flang.
5219 * producer.h (producer_is_llvm): New declaration.
5220
5221 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * linux-nat.c (linux_nat_debug_printf): New function.
5224 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5225
5226 2020-08-18 Aaron Merey <amerey@redhat.com>
5227
5228 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5229 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5230 (CLIBS): Add DEBUGINFOD_LIBS.
5231
5232 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5233
5234 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5235 'gdbarch_num_regs'.
5236
5237 2020-08-17 Tom Tromey <tromey@adacore.com>
5238
5239 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5240 ada_get_decoded_value returns NULL.
5241
5242 2020-08-17 Tom Tromey <tromey@adacore.com>
5243
5244 * python/py-inferior.c (infpy_search_memory): Use
5245 gdb_py_object_from_ulongest.
5246 * python/py-infevents.c (create_inferior_call_event_object)
5247 (create_memory_changed_event_object): Use
5248 gdb_py_object_from_ulongest.
5249 * python/py-linetable.c (ltpy_entry_get_pc): Use
5250 gdb_py_object_from_ulongest.
5251
5252 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5253
5254 * loc.c (class symbol_needs_eval_context): Fix indentation.
5255
5256 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5259 bool.
5260
5261 2020-08-17 Tom de Vries <tdevries@suse.de>
5262
5263 PR gdb/26393
5264 * gdbtypes.c (dump_dynamic_prop): New function.
5265 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5266
5267 2020-08-15 Tom de Vries <tdevries@suse.de>
5268
5269 PR backtrace/26390
5270 * stack.c (print_frame_args): Temporarily set the selected
5271 frame to FRAME while printing the frame's arguments.
5272
5273 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5274
5275 PR breakpoints/26385
5276 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5277 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5278
5279 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5280
5281 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5282 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5283 and >= to check return value instead of == -1 and != -1.
5284
5285 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * utils.h (class gdb_argv) <as_array_view>: New method.
5288 * utils.c (gdb_argv_as_array_view_test): New.
5289 (_initialize_utils): Register selftest.
5290 * maint.c (maintenance_selftest): Use the new method.
5291
5292 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5293
5294 * target.h (supports_dumpcore, dumpcore): New
5295 function declarations.
5296 * target.c (supports_dumpcore, dumpcore): New
5297 functions.
5298 * target-delegates.c: Rebuild.
5299 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5300 and target_dumpcore ().
5301
5302 2020-08-13 Aaron Merey <amerey@redhat.com>
5303
5304 * debuginfod-support.c: Replace global variables with user_data.
5305
5306 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * maint.c (maintenance_selftest): Split args and pass array_view
5309 to run_tests.
5310
5311 2020-08-12 Luis Machado <luis.machado@linaro.org>
5312
5313 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5314 type's length.
5315 Use %s and pulongest to print the length.
5316
5317 2020-08-12 Pedro Alves <palves@redhat.com>
5318
5319 * NEWS: Move "Multi-target debugging support" item to the
5320 "Changes since GDB 9" section.
5321
5322 2020-08-12 Pedro Alves <palves@redhat.com>
5323
5324 PR gdb/26336
5325 * progspace.c (program_space::remove_objfile): Invalidate the
5326 frame cache.
5327
5328 2020-08-11 Tom de Vries <tdevries@suse.de>
5329
5330 * MAINTAINERS: Mark ms1 as deleted.
5331
5332 2020-08-10 Luis Machado <luis.machado@linaro.org>
5333
5334 PR gdb/26310
5335
5336 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5337 act accordingly.
5338 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5339 movz/str/stur/stp skipping behavior.
5340
5341 2020-08-10 Luis Machado <luis.machado@linaro.org>
5342
5343 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5344 struct user_sve_header instead of struct sve_context.
5345
5346 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5347
5348 * read.h (dwarf2_fetch_die_loc_sect_off,
5349 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5350 `void *` parameter with function_view.
5351 * read.c (dwarf2_fetch_die_loc_sect_off,
5352 dwarf2_fetch_die_loc_cu_off): Likewise.
5353 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5354 (per_cu_dwarf_call): Adjust.
5355 (get_frame_address_in_block_wrapper): Remove.
5356 (indirect_synthetic_pointer): Adjust.
5357 (get_ax_pc): Remove.
5358 (dwarf2_compile_expr_to_ax): Adjust.
5359
5360 2020-08-08 Tom de Vries <tdevries@suse.de>
5361
5362 PR build/26344
5363 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5364 constructor.
5365 * regcache.c (get_thread_arch_aspace_regcache): Same.
5366
5367 2020-08-07 Tom Tromey <tromey@adacore.com>
5368
5369 * ravenscar-thread.c
5370 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5371 New method.
5372 (ravenscar_thread_target::wait): Check
5373 runtime_initialized.
5374 (ravenscar_thread_target::prepare_to_store)
5375 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5376 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5377 (ravenscar_thread_target::stopped_by_watchpoint)
5378 (ravenscar_thread_target::stopped_data_address)
5379 (ravenscar_thread_target::core_of_thread): Use
5380 scoped_restore_current_thread and
5381 set_base_thread_from_ravenscar_task.
5382
5383 2020-08-07 Tom Tromey <tromey@adacore.com>
5384
5385 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5386
5387 2020-08-07 Tom Tromey <tromey@adacore.com>
5388
5389 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5390 update_inferior_ptid before update_thread_list.
5391 (temporarily_change_regcache_ptid): New class.
5392 (ravenscar_thread_target::fetch_registers)
5393 (ravenscar_thread_target::store_registers)
5394 (ravenscar_thread_target::prepare_to_store): Use base thread when
5395 forwarding operation.
5396
5397 2020-08-07 Tom Tromey <tromey@adacore.com>
5398
5399 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5400 "is_pid" case.
5401
5402 2020-08-07 Tom Tromey <tromey@adacore.com>
5403
5404 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5405 New methods.
5406 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5407 first.
5408 (ravenscar_thread_target::add_thread): Rename from
5409 ravenscar_add_thread.
5410 (ravenscar_thread_target::update_thread_list): Use a lambda.
5411 (ravenscar_thread_target::xfer_partial): New method.
5412
5413 2020-08-07 Tom Tromey <tromey@adacore.com>
5414
5415 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5416 gdb::function_view.
5417 (iterate_over_live_ada_tasks): Change type of argument.
5418 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5419 of argument.
5420
5421 2020-08-07 Tom Tromey <tromey@adacore.com>
5422
5423 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5424 Remove.
5425 (ravenscar_thread_target::extra_thread_info): Remove.
5426 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5427 defer to target beneath for non-Ravenscar threads.
5428
5429 2020-08-07 Tom Tromey <tromey@adacore.com>
5430
5431 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5432 get_base_thread_from_ravenscar_task>: Now methods.
5433 <m_cpu_map>: New member.
5434 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5435 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5436 (ravenscar_thread_target::task_is_currently_active): Update.
5437 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5438 Now a method.
5439 (ravenscar_thread_target::add_active_thread): Put initial thread
5440 into the m_cpu_map.
5441
5442 2020-08-07 Tom Tromey <tromey@adacore.com>
5443
5444 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5445 event_ptid.
5446
5447 2020-08-07 Tom Tromey <tromey@adacore.com>
5448
5449 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5450 runtime_initialized.
5451
5452 2020-08-07 Tom Tromey <tromey@adacore.com>
5453
5454 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5455 add_active_thread.
5456 (ravenscar_thread_target::add_active_thread): Now public.
5457 (ravenscar_inferior_created): Call add_active_thread after pushing
5458 the target.
5459
5460 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5461
5462 * regcache.c (ptid_regcache_map): New type.
5463 (target_ptid_regcache_map): New type.
5464 (regcaches): Change type to target_ptid_regcache_map.
5465 (get_thread_arch_aspace_regcache): Update to regcaches' new
5466 type.
5467 (regcache_thread_ptid_changed): Likewise.
5468 (registers_changed_ptid): Likewise.
5469 (regcaches_size): Likewise.
5470 (regcaches_test): Update.
5471 (regcache_thread_ptid_changed): Update.
5472 * regcache.h (regcache_up): New type.
5473 * gdbsupport/ptid.h (hash_ptid): New struct.
5474
5475 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * observable.h (thread_ptid_changed): Add parameter
5478 `process_stratum_target *`.
5479 * infrun.c (infrun_thread_ptid_changed): Add parameter
5480 `process_stratum_target *` and use it.
5481 (selftests): New namespace.
5482 (infrun_thread_ptid_changed): New function.
5483 (_initialize_infrun): Register selftest.
5484 * regcache.c (regcache_thread_ptid_changed): Add parameter
5485 `process_stratum_target *` and use it.
5486 (regcache_thread_ptid_changed): New function.
5487 (_initialize_regcache): Register selftest.
5488 * thread.c (thread_change_ptid): Pass target to
5489 thread_ptid_changed observable.
5490
5491 2020-08-06 Caroline Tice <cmtice@google.com>
5492
5493 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5494 (struct dwp_sections): Update field comments. Add loclists and
5495 rnglists fields.
5496 (struct virtual_v2_dwo_sections): Rename struct to
5497 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5498 size & offset fields for loclists and rnglists.
5499 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5500 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5501 skipping dummy type units.
5502 (create_dwp_hash_table): Update the large comment above the function to
5503 discuss Version 5 DWP files as well, with references. Update all the
5504 version checks in the function to check for version 5 as well. Add new
5505 section at the end to create dwp hash table for version 5.
5506 (create_dwp_v2_section): Rename function to
5507 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5508 Add V5 to error message text.
5509 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5510 into calls to create_dwp_v2_or_v5_section.
5511 (create_dwo_unit_in_dwp_v5): New function.
5512 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5513 check for version2; add else clause to handle version 5.
5514 (open_and_init_dwo_file): Add code to check dwarf version & only call
5515 create_debug_types_hash_table (with sections.types) if version is not 5;
5516 else call create_debug_type_hash_table, with sections.info.
5517 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5518 version 5.
5519 (dwarf2_locate_v5_dwp_sections): New function.
5520 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5521 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5522
5523 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5524
5525 * regcache.h (class regcache): Remove friend
5526 registers_changed_ptid.
5527 <regcache_thread_ptid_changed>: Remove.
5528 <regcaches>: Remove.
5529 * regcache.c (regcache::regcaches): Rename to...
5530 (regcaches): ... this. Make static.
5531 (get_thread_arch_aspace_regcache): Update.
5532 (regcache::regcache_thread_ptid_changed): Rename to...
5533 (regcache_thread_ptid_changed): ... this. Update.
5534 (class regcache_access): Remove.
5535 (regcaches_test): Update.
5536 (_initialize_regcache): Update.
5537 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5538 <forward_list>.
5539
5540 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5541
5542 * regcache.h (class regcache) <current_regcache>: Rename to...
5543 <regcaches>: ... this. Move doc here.
5544 * regcache.c (regcache::current_regcache) Rename to...
5545 (regcache::regcaches): ... this. Move doc to header.
5546 (get_thread_arch_aspace_regcache): Update.
5547 (regcache::regcache_thread_ptid_changed): Update.
5548 (registers_changed_ptid): Update.
5549 (class regcache_access) <current_regcache_size>: Rename to...
5550 <regcaches_size>: ... this.
5551 (current_regcache_test): Rename to...
5552 (regcaches_test): ... this.
5553 (_initialize_regcache): Update.
5554
5555 2020-08-06 Victor Collod <vcollod@nvidia.com>
5556
5557 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5558
5559 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5560
5561 * corelow.c (core_target::build_file_mappings): Don't output
5562 null pathname in warning.
5563
5564 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5567 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5568 gdb.dwarf2/dw2-single-line-discriminators.exp,
5569 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5570
5571 2020-08-05 Tom Tromey <tromey@adacore.com>
5572
5573 PR rust/26197:
5574 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5575 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5576 Fix off-by-one and type size errors in ordinary case.
5577
5578 2020-08-05 Tom de Vries <tdevries@suse.de>
5579
5580 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5581 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5582
5583 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5584
5585 * frame.h (frame_id_p): Return bool.
5586 (frame_id_artificial_p): Return bool.
5587 (frame_id_eq): Return bool.
5588 (has_stack_frames): Return bool.
5589 (get_selected_frame): Fix typo in comment.
5590 (get_frame_pc_if_available): Return bool.
5591 (get_frame_address_in_block_if_available): Return bool.
5592 (get_frame_func_if_available): Return bool.
5593 (read_frame_register_unsigned): Return bool.
5594 (get_frame_register_bytes): Return bool.
5595 (safe_frame_unwind_memory): Return bool.
5596 (deprecated_frame_register_read): Return bool.
5597 (frame_unwinder_is): Return bool.
5598 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5599 bool.
5600 <this_id::p>: Likewise.
5601 <prev_p>: Likewise.
5602 (frame_stash_add): Return bool.
5603 (get_frame_id): Use bool.
5604 (frame_id_build_special) Use bool.
5605 (frame_id_build_unavailable_stack): Use bool.
5606 (frame_id_build): Use bool.
5607 (frame_id_p): Return bool, use true/false instead of 1/0.
5608 (frame_id_artificial_p): Likewise.
5609 (frame_id_eq): Likewise.
5610 (frame_id_inner): Likewise.
5611 (get_frame_func_if_available): Likewise.
5612 (read_frame_register_unsigned): Likewise.
5613 (deprecated_frame_register_read): Likewise.
5614 (get_frame_register_bytes): Likewise.
5615 (has_stack_frames): Likewise.
5616 (inside_main_func): Likewise.
5617 (inside_entry_func): Likewise.
5618 (get_frame_pc_if_available): Likewise.
5619 (get_frame_address_in_block_if_available): Likewise.
5620 (frame_unwinder_is): Likewise.
5621 (safe_frame_unwind_memory): Likewise.
5622 (frame_unwind_arch): Likewise.
5623
5624 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5627 type to cached_copy_status.
5628 (fprintf_frame): Adjust.
5629 (get_frame_func_if_available): Adjust.
5630 (frame_cleanup_after_sniffer): Adjust.
5631
5632 2020-08-04 Mark Wielaard <mark@klomp.org>
5633
5634 * MAINTAINERS (Write After Approval): Update email address.
5635
5636 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5639 dynamic_prop::const_val.
5640
5641 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5642
5643 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5644 dynamic_prop::kind.
5645
5646 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5647
5648 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5649
5650 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5651
5652 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5653
5654 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5655 Jose E. Marchesi <jose.marchesi@oracle.com>
5656
5657 * configure.tgt: Add entry for bpf-*-*.
5658 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5659 (ALLDEPFILES): Add bpf-tdep.c.
5660 * bpf-tdep.c: New file.
5661 * MAINTAINERS: Add bpf target and maintainer.
5662 * NEWS: Mention the support for the new target.
5663
5664 2020-08-04 Tom de Vries <tdevries@suse.de>
5665
5666 PR symtab/23270
5667 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5668 Error.
5669
5670 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5671
5672 * syscalls/freebsd.xml: Regenerate.
5673
5674 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5675
5676 * syscalls/update-freebsd.sh: Fix usage and year range.
5677
5678 2020-08-03 Tom de Vries <tdevries@suse.de>
5679
5680 PR symtab/26333
5681 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5682 DW_LNE_lo_user/DW_LNE_hi_user range.
5683
5684 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5685
5686 PR ada/26318
5687 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5688 kind.
5689
5690 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5691
5692 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5693
5694 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5695
5696 * breakpoint.c (set_breakpoint_condition): Update the condition
5697 expressions after checking that the input condition string parses
5698 successfully and does not contain junk at the end.
5699
5700 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5701
5702 * breakpoint.c (set_breakpoint_condition): Update the
5703 condition string after parsing the new condition successfully.
5704
5705 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5706
5707 * proc-api.c (_STRUCTURED_PROC): Don't define.
5708 * proc-events.c: Likewise.
5709 * proc-flags.c: Likewise.
5710 * proc-why.c: Likewise.
5711 * procfs.c: Likewise.
5712
5713 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5714 * configure, config.in: Regenerate.
5715
5716 2020-07-30 Tom de Vries <tdevries@suse.de>
5717
5718 PR build/26320
5719 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5720 m_red/m_green/m_blue in a union.
5721
5722 2020-07-29 Tom de Vries <tdevries@suse.de>
5723
5724 PR tdep/26280
5725 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5726
5727 2020-07-28 Tom Tromey <tromey@adacore.com>
5728
5729 PR symtab/26270:
5730 * symtab.h (find_pc_partial_function_sym): Declare.
5731 * cli/cli-cmds.c (disassemble_command): Use
5732 find_pc_partial_function_sym. Check asm_demangle.
5733 * blockframe.c (cache_pc_function_sym): New global.
5734 (cache_pc_function_name): Remove.
5735 (clear_pc_function_cache): Update.
5736 (find_pc_partial_function_sym): New function, from
5737 find_pc_partial_function.
5738 (find_pc_partial_function): Rewrite using
5739 find_pc_partial_function_sym.
5740
5741 2020-07-28 Tom Tromey <tromey@adacore.com>
5742
5743 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5744 help. Add usage.
5745
5746 2020-07-28 Tom Tromey <tromey@adacore.com>
5747
5748 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5749 <DW_OP_GNU_variable_value>: Cast to address type.
5750
5751 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5752
5753 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5754 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5755 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5756 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5757 (nbsd_get_siginfo_type): New.
5758 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5759 (_initialize_nbsd_tdep): New.
5760
5761 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5762
5763 PR binutils/26301
5764 * configure: Regenerated.
5765
5766 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5767
5768 PR binutils/26301
5769 * configure: Regenerated.
5770
5771 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5772
5773 * python/py-frame.c: Remove 'user-regs.h' include.
5774 (frapy_read_register): Rewrite to make use of
5775 gdbpy_parse_register_id.
5776 * python/py-registers.c (gdbpy_parse_register_id): New function,
5777 moved here from python/py-unwind.c. Updated the return type, and
5778 also accepts register descriptor objects.
5779 * python/py-unwind.c: Remove 'user-regs.h' include.
5780 (pyuw_parse_register_id): Moved to python/py-registers.c.
5781 (unwind_infopy_add_saved_register): Update to use
5782 gdbpy_parse_register_id.
5783 (pending_framepy_read_register): Likewise.
5784 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5785
5786 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * python/py-registers.c: Add 'user-regs.h' include.
5789 (register_descriptor_iter_find): New function.
5790 (register_descriptor_iterator_object_methods): New static global
5791 methods array.
5792 (register_descriptor_iterator_object_type): Add pointer to methods
5793 array.
5794
5795 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5796
5797 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5798 for all architectures on FreeBSD 11.3 and later.
5799
5800 2020-07-27 Tom Tromey <tromey@adacore.com>
5801
5802 * gcore.h (load_corefile): Don't declare.
5803
5804 2020-07-27 Tom de Vries <tdevries@suse.de>
5805
5806 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5807 * config.in: Regenerate.
5808 * configure: Regenerate.
5809
5810 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5811
5812 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5813 ws2tcpip.h. When checking whether socklen_t type is defined, use
5814 ws2tcpip.h if it is available and sys/socket.h isn't.
5815 * configure: Regenerate.
5816 * config.in: Regenerate.
5817
5818 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5819
5820 PR fortran/23051
5821 PR fortran/26139
5822 * valops.c (value_ind): Pass address to
5823 readjust_indirect_value_type.
5824 * value.c (readjust_indirect_value_type): Make parameter
5825 non-const, and add extra address parameter. Resolve original type
5826 before using it.
5827 * value.h (readjust_indirect_value_type): Update function
5828 signature and comment.
5829
5830 2020-07-25 Tom de Vries <tdevries@suse.de>
5831
5832 PR symtab/26243
5833 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5834 entries.
5835
5836 2020-07-24 Aaron Merey <amerey@redhat.com>
5837
5838 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5839 * configure: Rebuild.
5840
5841 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5842
5843 PR corefiles/26294
5844 * corelow.c (_initialize_corelow): Add period to help text
5845 for "maintenance print core-file-backed-mappings".
5846
5847 2020-07-23 Pedro Alves <pedro@palves.net>
5848
5849 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5850 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5851 meanwhile.
5852 * frame.c (frame_cache_generation, get_frame_cache_generation):
5853 New.
5854 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5855 (get_prev_frame_if_no_cycle): On exception, don't touch
5856 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5857 * frame.h (get_frame_cache_generation): Declare.
5858
5859 2020-07-23 Tom de Vries <tdevries@suse.de>
5860
5861 PR tui/26282
5862 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5863 New default constructor.
5864
5865 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5866
5867 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5868 exclude non-statement entries.
5869
5870 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5871
5872 * NEWS (New commands): Mention new command
5873 "maintenance print core-file-backed-mappings".
5874
5875 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5876
5877 * corelow.c (gdbcmd.h): Include.
5878 (core_target::info_proc_mappings): New method.
5879 (get_current_core_target): New function.
5880 (maintenance_print_core_file_backed_mappings): New function.
5881 (_initialize_corelow): Add core-file-backed-mappings to
5882 "maint print" commands.
5883
5884 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5885
5886 * linux-tdep.c (dump_note_entry_p): New function.
5887 (linux_dump_mapping_p_ftype): New typedef.
5888 (linux_find_memory_regions_full): Add new parameter,
5889 should_dump_mapping_p.
5890 (linux_find_memory_regions): Adjust call to
5891 linux_find_memory_regions_full.
5892 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5893 call to linux_find_memory_regions_full.
5894
5895 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5896
5897 * corelow.c (solist.h, unordered_map): Include.
5898 (class core_target): Add field m_core_file_mappings and
5899 method build_file_mappings.
5900 (core_target::core_target): Call build_file_mappings.
5901 (core_target::~core_target): Free memory associated with
5902 m_core_file_mappings.
5903 (core_target::build_file_mappings): New method.
5904 (core_target::xfer_partial): Use m_core_file_mappings
5905 for memory transfers.
5906 * linux-tdep.c (linux_read_core_file_mappings): New
5907 function.
5908 (linux_core_info_proc_mappings): Rewrite to use
5909 linux_read_core_file_mappings.
5910 (linux_init_abi): Register linux_read_core_file_mappings.
5911
5912 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5913
5914 * arch-utils.c (default_read_core_file_mappings): New function.
5915 * arch-utils.c (default_read_core_file_mappings): Declare.
5916 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5917 * gdbarch.h, gdbarch.c: Regenerate.
5918
5919 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5920
5921 PR corefiles/25631
5922 * corelow.c (core_target:xfer_partial): Revise
5923 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5924 case after first checking the stratum beneath the core
5925 target.
5926 (has_all_memory): Return true.
5927 * target.c (raw_memory_xfer_partial): Revise comment
5928 regarding use of has_all_memory.
5929
5930 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5931
5932 * exec.h (section_table_xfer_memory): Revise declaration,
5933 replacing section name parameter with an optional callback
5934 predicate.
5935 * exec.c (section_table_xfer_memory): Likewise.
5936 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5937 of section_table_xfer_memory.
5938
5939 2020-07-22 Tom Tromey <tromey@adacore.com>
5940
5941 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5942 lookup_symbol_search_name.
5943
5944 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5947 redundant local variable.
5948 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5949 reference, not pointer, update code accordingly.
5950
5951 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5952 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5953
5954 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5955 * jit.c (jit_breakpoint_re_set_internal): Use the
5956 `skip_jit_symbol_lookup` field.
5957
5958 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5959 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5960
5961 * jit.c (jit_read_descriptor): Define the descriptor address once,
5962 use twice.
5963 (jit_breakpoint_deleted): Move the declaration of the loop variable
5964 `iter` into the loop header.
5965 (jit_breakpoint_re_set_internal): Move the declaration of the local
5966 variable `objf_data` to the first point of definition.
5967 (jit_event_handler): Move the declaration of local variables
5968 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5969 Rename `objf` to `jited`.
5970
5971 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5974 Remove.
5975 * jit.c (get_jiter_objfile_data): Update.
5976
5977 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5978 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * jit.c (struct jit_program_space_data): Remove.
5981 (jit_program_space_key): Remove.
5982 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5983 stuff.
5984 (get_jit_program_space_data): Remove.
5985 (jit_breakpoint_deleted): Iterate on all of the program space's
5986 objfiles.
5987 (jit_inferior_init): Likewise.
5988 (jit_breakpoint_re_set_internal): Likewise. Also change return
5989 type to void.
5990 (jit_breakpoint_re_set): Pass current_program_space to
5991 jit_breakpoint_re_set_internal.
5992
5993 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5994
5995 * jit.h (struct jiter_objfile_data) <cached_code_address,
5996 jit_breakpoint>: Move to here from ...
5997 * jit.c (jit_program_space_data): ... here.
5998 (jiter_objfile_data::~jiter_objfile_data): Update.
5999 (jit_breakpoint_deleted): Update.
6000 (jit_breakpoint_re_set_internal): Update.
6001
6002 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6005 checks.
6006 (jit_read_descriptor): Remove NULL check.
6007 (jit_event_handler): Add an assertion.
6008
6009 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6010
6011 * jit.h (struct jit_objfile_data): Split into...
6012 (struct jiter_objfile_data): ... this ...
6013 (struct jited_objfile_data): ... and this.
6014 * objfiles.h (struct objfile) <jit_data>: Remove.
6015 <jiter_data, jited_data>: New fields.
6016 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6017 (jiter_objfile_data::~jiter_objfile_data): ... this.
6018 (get_jit_objfile_data): Rename to ...
6019 (get_jiter_objfile_data): ... this.
6020 (add_objfile_entry): Update.
6021 (jit_read_descriptor): Use get_jiter_objfile_data.
6022 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6023 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6024 (jit_inferior_exit_hook): Use objfile's jited_data field.
6025
6026 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * jit.h: Forward-declare `struct minimal_symbol`.
6029 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6030 constructor, destructor, and an objfile* field.
6031 * jit.c (jit_objfile_data): Remove.
6032 (struct jit_objfile_data): Migrate from here to jit.h.
6033 (jit_objfile_data::~jit_objfile_data): New destructor
6034 implementation with code moved from free_objfile_data.
6035 (free_objfile_data): Delete.
6036 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6037 (jit_find_objf_with_entry_addr): Ditto.
6038 (jit_inferior_exit_hook): Ditto.
6039 (_initialize_jit): Remove the call to
6040 register_objfile_data_with_cleanup.
6041 * objfiles.h (struct objfile) <jit_data>: New field.
6042
6043 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6044
6045 * jit.h: Forward-declare `struct objfile`.
6046 (jit_event_handler): Add a second parameter, the JITer objfile.
6047 * jit.c (jit_read_descriptor): Change the signature to take the
6048 JITer objfile as an argument instead of the jit_program_space_data.
6049 (jit_inferior_init): Update the call to jit_read_descriptor.
6050 (jit_event_handler): Use the new JITer objfile argument when calling
6051 jit_read_descriptor.
6052 * breakpoint.c (handle_jit_event): Update the call to
6053 jit_event_handler to pass the JITer objfile.
6054
6055 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6056
6057 * gdbarch.c: Regenerate.
6058 * gdbarch.h: Regenerate.
6059 * gdbarch.sh (handle_segmentation_fault): Remove method.
6060 * infrun.c (handle_segmentation_fault): Remove.
6061 (print_signal_received_reason): Remove call to
6062 handle_segmentation_fault.
6063
6064 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6065
6066 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6067 Rename to sparc64_linux_report_signal_info and add siggnal
6068 argument.
6069 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6070 instead of sparc64_linux_handle_segmentation_fault.
6071
6072 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6073
6074 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6075 i386_linux_report_signal_info instead of
6076 i386_linux_handle_segmentation_fault.
6077 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6078 to i386_linux_report_signal_info and add siggnal argument.
6079 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6080 of i386_linux_handle_segmentation_fault.
6081 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6082 to i386_linux_report_signal_info and add siggnal argument.
6083
6084 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6085
6086 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6087 hook if present.
6088
6089 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6090
6091 * gdbarch.c: Regenerate.
6092 * gdbarch.h: Regenerate.
6093 * gdbarch.sh (report_signal_info): New method.
6094 * infrun.c (print_signal_received_reason): Invoke gdbarch
6095 report_signal_info hook if present.
6096
6097 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6098
6099 * python/py-registers.c : Add 'unordered_map' include.
6100 (gdbpy_new_reggroup): Renamed to...
6101 (gdbpy_get_reggroup): ...this. Update to only create register
6102 group descriptors when needed.
6103 (gdbpy_reggroup_iter_next): Update.
6104
6105 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6106
6107 * python/py-registers.c (gdbpy_register_object_data): New static
6108 global.
6109 (gdbpy_register_object_data_init): New function.
6110 (gdbpy_new_register_descriptor): Renamed to...
6111 (gdbpy_get_register_descriptor): ...this, and update to reuse
6112 existing register descriptors where possible.
6113 (gdbpy_register_descriptor_iter_next): Update.
6114 (gdbpy_initialize_registers): Register new gdbarch data.
6115
6116 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * linux-nat.c (stopped_pids): Make static.
6119
6120 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 PR ada/26235
6123 * gdbtypes.c (ada_discrete_type_low_bound,
6124 ada_discrete_type_high_bound): Handle undefined bounds.
6125
6126 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6127
6128 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6129 declaration.
6130 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6131 function.
6132
6133 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6134
6135 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6136 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6137 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6138 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6139 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6140 method.
6141
6142 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6143
6144 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6145 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6146 which are deprecated in Guile 3.0.
6147 * configure.ac (try_guile_versions): Add "guile-3.0".
6148 * configure (try_guile_versions): Regenerate.
6149 * NEWS: Update entry.
6150
6151 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6152 Doug Evans <dje@google.com>
6153
6154 PR gdb/21104
6155 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6156 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6157 USING_GUILE_BEFORE_2_2.
6158 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6159 Change type to 'scm_t_port_type *'.
6160 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6161 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6162 parameter and honor it. Update callers.
6163 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6164 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6165 functions.
6166 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6167 USING_GUILE_BEFORE_2_2.
6168 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6169 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6170 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6171 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6172 and 'SCM_PORT_TYPE'.
6173 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6174 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6175 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6176 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6177 [!USING_GUILE_BEFORE_2_2]: New functions.
6178 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6179 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6180 'gdbscm_memory_port_read'.
6181 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6182 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6183 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6184 function.
6185 (ioscm_init_memory_port): Remove.
6186 (ioscm_init_memory_port_stream): New function
6187 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6188 function.
6189 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6190 Return scm_from_uint (0).
6191 (gdbscm_set_memory_port_read_buffer_size_x)
6192 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6193 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6194 Return scm_from_uint (0).
6195 (gdbscm_set_memory_port_write_buffer_size_x)
6196 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6197 * configure.ac (try_guile_versions): Add "guile-2.2".
6198 * configure: Regenerate.
6199 * NEWS: Add entry.
6200
6201 2020-07-18 Tom Tromey <tom@tromey.com>
6202
6203 * linux-nat.c (linux_multi_process): Remove.
6204 (linux_nat_target::supports_multi_process): Return true.
6205
6206 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6209 (riscv_lookup_target_description): Return pointer out of
6210 unique_ptr.
6211 * target-descriptions.c (allocate_target_description): Add
6212 comment.
6213 (target_desc_deleter::operator()): Likewise.
6214 * target-descriptions.h (struct target_desc_deleter): Moved to
6215 gdbsupport/tdesc.h.
6216 (target_desc_up): Likewise.
6217
6218 2020-07-17 Tom Tromey <tromey@adacore.com>
6219
6220 * linux-nat.c (linux_nat_target::supports_non_stop)
6221 (linux_nat_target::always_non_stop_p): Use "true".
6222 (linux_nat_target::supports_disable_randomization): Use "true" and
6223 "false".
6224
6225 2020-07-16 Caroline Tice <cmtice@google.com>
6226
6227 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6228 (RNGLIST_HEADER_SIZE64): New constant definition.
6229 (struct dwop_section_names): Add rnglists_dwo.
6230 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6231 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6232 (struct dwo_sections): Add rnglists field.
6233 (read_attribut_reprocess): Add tag parameter.
6234 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6235 (cu_debug_rnglists_section): New function (decl & definition).
6236 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6237 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6238 die whose range is being checked; get rnglist section from
6239 cu_debug_rnglists_section, to get from either objfile or dwo file as
6240 appropriate. Add cases for DW_RLE_base_addressx,
6241 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6242 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6243 test inside if-condition and updating complaint message.
6244 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6245 dwarf2_rnglists_process.
6246 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6247 dwarf2_ranges_process.
6248 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6249 need_ranges_base and update comment appropriately. Also pass die tag
6250 to dwarf2_ranges_read.
6251 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6252 need_ranges_base and update comment appropriately. Also pass die tag
6253 to dwarf2_ranges_process.
6254 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6255 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6256 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6257 need_ranges_base and update comment appropriately. Also pass die tag
6258 to read_attribute_reprocess and dwarf2_ranges_read.
6259 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6260 and update function comment appropriately.
6261 (read_loclist_index): Call read_loclists_rnglists_header instead of
6262 read_loclist_header.
6263 (read_rnglist_index): New function.
6264 (read_attribute_reprocess): Add tag parameter. Add code for
6265 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6266 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6267
6268 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6269
6270 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6271 being resolved.
6272
6273 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * arch-utils.c (show_architecture): Update formatting of messages.
6276
6277 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6278
6279 * gdbtypes.h (struct type) <bounds>: Handle array and string
6280 types.
6281 * ada-lang.c (assign_aggregate): Use type::bounds on
6282 array/string type.
6283 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6284 * c-varobj.c (c_number_of_children): Likewise.
6285 (c_describe_child): Likewise.
6286 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6287 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6288 (f_type_print_base): Likewise.
6289 * f-valprint.c (f77_array_offset_tbl): Likewise.
6290 (f77_get_upperbound): Likewise.
6291 (f77_print_array_1): Likewise.
6292 * guile/scm-type.c (gdbscm_type_range): Likewise.
6293 * m2-typeprint.c (m2_array): Likewise.
6294 (m2_is_long_set_of_type): Likewise.
6295 * m2-valprint.c (get_long_set_bounds): Likewise.
6296 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6297 * python/py-type.c (typy_range): Likewise.
6298 * rust-lang.c (rust_internal_print_type): Likewise.
6299 * type-stack.c (type_stack::follow_types): Likewise.
6300 * valarith.c (value_subscripted_rvalue): Likewise.
6301 * valops.c (value_cast): Likewise.
6302
6303 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6306 callers to use the equivalent accessor methods.
6307
6308 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6311 (struct type) <bit_stride>: New method.
6312 (TYPE_BIT_STRIDE): Remove.
6313 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6314
6315 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6316
6317 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6318 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6319 callers to use the equivalent accessor methods instead.
6320
6321 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6324 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6325 callers to use the equivalent accessor methods instead.
6326
6327 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6330 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6331 to use dynamic_prop::kind.
6332
6333 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6336 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6337 to get the bound property's kind and check against
6338 PROP_UNDEFINED.
6339
6340 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6343 all callers to use type::range_bounds followed by
6344 dynamic_prop::{low,high}.
6345
6346 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6349 const_val, set_const_val, baton, set_locexpr, set_loclist,
6350 set_addr_offset, variant_parts, set_variant_parts,
6351 original_type, set_original_type>: New methods.
6352 <kind>: Rename to...
6353 <m_kind>: ... this. Update all users to use the new methods
6354 instead.
6355 <data>: Rename to...
6356 <m_data>: ... this. Update all users to use the new methods
6357 instead.
6358
6359 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6360
6361 * gdbtypes.c (get_discrete_bounds): Return failure if
6362 the range type's bounds are not both defined and constant
6363 values.
6364 (get_array_bounds): Update comment. Remove undefined bound check.
6365
6366 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6369 the type::bounds method directly.
6370
6371 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6374 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6375 are used to set the range type's bounds to use set_bounds.
6376
6377 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6378
6379 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6380
6381 2020-07-10 Pedro Alves <pedro@palves.net>
6382
6383 * gdbthread.h (inferior_ref): Define.
6384 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6385 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6386 * thread.c
6387 (scoped_restore_current_thread::restore):
6388 Adjust to gdb::ref_ptr.
6389 (scoped_restore_current_thread::~scoped_restore_current_thread):
6390 Remove manual decref handling.
6391 (scoped_restore_current_thread::scoped_restore_current_thread):
6392 Adjust to use
6393 inferior_ref::new_reference/thread_info_ref::new_reference.
6394 Incref the thread before calling get_frame_id instead of after.
6395 Let TARGET_CLOSE_ERROR propagate.
6396
6397 2020-07-10 Pedro Alves <pedro@palves.net>
6398
6399 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6400 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6401 NOT_AVAILABLE_ERROR.
6402 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6403 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6404
6405 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6406 Pedro Alves <pedro@palves.net>
6407
6408 PR gdb/26199
6409 * infrun.c (threads_are_resumed_pending_p): Delete.
6410 (do_target_wait): Remove threads_are_executing and
6411 threads_are_resumed_pending_p checks from the inferior_matches
6412 lambda. Update comments.
6413
6414 2020-07-10 Pedro Alves <pedro@palves.net>
6415
6416 PR gdb/26199
6417 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6418 executing threads.
6419
6420 2020-07-10 Pedro Alves <pedro@palves.net>
6421
6422 PR gdb/26199
6423 * infrun.c (handle_no_resumed): Handle multiple targets.
6424
6425 2020-07-10 Pedro Alves <pedro@palves.net>
6426
6427 PR gdb/26199
6428 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6429 target_is_async_p.
6430
6431 2020-07-10 Pedro Alves <pedro@palves.net>
6432
6433 PR gdb/26199
6434 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6435 threads, not all threads.
6436
6437 2020-07-10 Pedro Alves <pedro@palves.net>
6438
6439 PR gdb/26199
6440 * remote.c (remote_target::open_1): Pass remote target pointer as
6441 data to create_async_event_handler.
6442 (remote_async_inferior_event_handler): Mark async event handler
6443 before returning if the remote target still has either pending
6444 events or unacknowledged notifications.
6445
6446 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6447
6448 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6449 declaration.
6450 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6451 function.
6452
6453 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6454
6455 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6456 inferior_ptid.
6457
6458 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6459
6460 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6461 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6462 AT_FREEBSD_PS_STRINGS.
6463
6464 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6465
6466 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6467 of debugfile path on Windows.
6468
6469 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6470
6471 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6472 argument to 'data'.
6473
6474 2020-07-08 Tom Tromey <tromey@adacore.com>
6475
6476 * ada-lang.c (ada_exception_message_1): Use read_memory.
6477
6478 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 PR python/22748
6481 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6482 special handling for inline frames.
6483 * findvar.c (value_of_register_lazy): Skip inline frames when
6484 creating lazy register values.
6485 * frame.c (frame_id_computed_p): Delete definition.
6486 * frame.h (frame_id_computed_p): Delete declaration.
6487
6488 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * NEWS: Mention additions to Python API.
6491 * python/py-arch.c (archpy_register_groups): New function.
6492 (arch_object_methods): Add 'register_groups' method.
6493 * python/py-registers.c (reggroup_iterator_object): New struct.
6494 (reggroup_object): New struct.
6495 (gdbpy_new_reggroup): New function.
6496 (gdbpy_reggroup_to_string): New function.
6497 (gdbpy_reggroup_name): New function.
6498 (gdbpy_reggroup_iter): New function.
6499 (gdbpy_reggroup_iter_next): New function.
6500 (gdbpy_new_reggroup_iterator): New function
6501 (gdbpy_initialize_registers): Register new types.
6502 (reggroup_iterator_object_type): Define new Python type.
6503 (gdbpy_reggroup_getset): New static global.
6504 (reggroup_object_type): Define new Python type.
6505 * python/python-internal.h
6506
6507 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6510 * python/py-arch.c (archpy_registers): New function.
6511 (arch_object_methods): Add 'registers' method.
6512 * python/py-registers.c: New file.
6513 * python/python-internal.h
6514 (gdbpy_new_register_descriptor_iterator): Declare.
6515 (gdbpy_initialize_registers): Declare.
6516 * python/python.c (do_start_initialization): Call
6517 gdbpy_initialize_registers.
6518 * NEWS: Mention additions to the Python API.
6519
6520 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * NEWS: Mention new Python API method.
6523 * python/py-unwind.c (pending_framepy_architecture): New function.
6524 (pending_frame_object_methods): Add architecture method.
6525
6526 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * gdbarch.c: Regenerate.
6529 * gdbarch.h: Regenerate.
6530 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6531 (gdbarch_data): Use internal_error for the case where
6532 deprecated_set_gdbarch_data was originally needed.
6533 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6534 and use passed in obstack.
6535 (libunwind_frame_set_descr): Should no longer get back NULL from
6536 gdbarch_data.
6537 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6538 type.
6539 * user-regs.c (user_regs_init): Update parameters, and use passed
6540 in obstack.
6541 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6542 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6543
6544 2020-07-06 Tom de Vries <tdevries@suse.de>
6545
6546 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6547 End-Of-Sequence in lte_is_less_than.
6548 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6549 "gdb: Don't reorder line table entries too much when sorting".
6550
6551 2020-07-06 Tom de Vries <tdevries@suse.de>
6552
6553 PR tui/26205
6554 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6555
6556 2020-07-05 Tom de Vries <tdevries@suse.de>
6557
6558 PR build/26187
6559 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6560 std::uncaught_exceptions instead of deprecated
6561 std::uncaught_exception.
6562
6563 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * macroexp.h (macro_stringify): Return
6566 gdb::unique_xmalloc_ptr<char>.
6567 * macroexp.c (macro_stringify): Likewise.
6568 * macrotab.c (fixup_definition): Update.
6569
6570 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6573 (lex_one_token): Update.
6574 * macroexp.c (struct macro_buffer) <release>: Return
6575 gdb::unique_xmalloc_ptr<char>.
6576 (macro_stringify): Update.
6577 (macro_expand): Update.
6578 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6579 * macroexp.h (macro_expand_next): Likewise.
6580
6581 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * macroexp.h (macro_lookup_ftype): Remove.
6584 (macro_expand, macro_expand_once, macro_expand_next): Remove
6585 lookup function parameters, add scope parameter.
6586 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6587 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6588 * macroscope.h (standard_macro_lookup): Change parameter type
6589 to macro_scope.
6590 * macroscope.c (standard_macro_lookup): Likewise.
6591 * c-exp.y (lex_one_token): Update.
6592 * macrocmd.c (macro_expand_command): Likewise.
6593 (macro_expand_once_command): Likewise.
6594
6595 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * inf-loop.c (inferior_event_handler): Remove client_data param.
6598 * inf-loop.h (inferior_event_handler): Likewise.
6599 * infcmd.c (step_1): Adjust.
6600 * infrun.c (proceed): Adjust.
6601 (fetch_inferior_event): Remove client_data param.
6602 (infrun_async_inferior_event_handler): Adjust.
6603 * infrun.h (fetch_inferior_event): Remove `void *` param.
6604 * linux-nat.c (handle_target_event): Adjust.
6605 * record-btrace.c (record_btrace_handle_async_inferior_event):
6606 Adjust.
6607 * record-full.c (record_full_async_inferior_event_handler):
6608 Adjust.
6609 * remote.c (remote_async_inferior_event_handler): Adjust.
6610
6611 2020-07-01 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6614 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6615
6616 2020-07-01 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6619 tui_gen_win_info.
6620 (tui_win_info::make_window): Merge with
6621 tui_gen_win_info::make_window.
6622 (tui_win_info::make_visible): Move from tui_gen_win_info.
6623 * tui/tui-win.c (tui_win_info::max_width): Move from
6624 tui_gen_win_info.
6625 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6626 type.
6627 <window_factory>: Likewise.
6628 * tui/tui-layout.c (tui_win_info::resize): Move from
6629 tui_gen_win_info.
6630 (make_standard_window): Change return type.
6631 (get_locator_window, tui_get_window_by_name): Likewise.
6632 (tui_layout_window::apply): Remove a cast.
6633 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6634 (struct tui_win_info): Merge with tui_gen_win_info.
6635 (struct tui_gen_win_info): Remove.
6636
6637 2020-07-01 Tom Tromey <tom@tromey.com>
6638
6639 * tui/tui-stack.h (struct tui_locator_window): Derive from
6640 tui_win_info.
6641 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6642 <can_box>: New method.
6643
6644 2020-07-01 Tom Tromey <tom@tromey.com>
6645
6646 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6647
6648 2020-07-01 Tom Tromey <tom@tromey.com>
6649
6650 * tui/tui-regs.c (tui_data_window::display_registers_from)
6651 (tui_data_window::display_registers_from)
6652 (tui_data_window::first_data_item_displayed)
6653 (tui_data_window::delete_data_content_windows): Update.
6654 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6655 Remove.
6656 (tui_data_window::check_register_values): Update.
6657 (tui_data_item_window::rerender): Add parameters. Update.
6658 (tui_data_item_window::refresh_window): Remove.
6659 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6660 virtual.
6661 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6662 tui_gen_win_info.
6663 <refresh_window, max_height, min_height>: Remove.
6664 <rerender>: Add parameters.
6665 <x, y, visible>: New members.
6666 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6667 <m_item_width>: New member.
6668
6669 2020-07-01 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-regs.c (tui_data_window::show_register_group)
6672 (tui_data_window::check_register_values): Update.
6673 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6674 from item_no.
6675
6676 2020-07-01 Tom Tromey <tom@tromey.com>
6677
6678 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6679 useless "if".
6680
6681 2020-07-01 Tom Tromey <tom@tromey.com>
6682
6683 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6684 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6685
6686 2020-07-01 Tom Tromey <tom@tromey.com>
6687
6688 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6689 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6690 (struct tui_line_or_address): Move from tui-data.h.
6691 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6692 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6693 (tui_cmd_window, tui_source_window_base, tui_source_window)
6694 (tui_disasm_window): Don't declare.
6695 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6696 to tui-winsource.h.
6697 (SINGLE_KEY): Move to tui-stack.c.
6698
6699 2020-07-01 Tom Tromey <tom@tromey.com>
6700
6701 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6702 std::string.
6703 * tui/tui-regs.c (class tab_expansion_file): New.
6704 (tab_expansion_file::write): New method.
6705 (tui_register_format): Change return type. Use
6706 tab_expansion_file.
6707 (tui_get_register, tui_data_window::display_registers_from)
6708 (tui_data_item_window::rerender): Update.
6709 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6710 * tui/tui-io.c (tui_expand_tabs): Remove.
6711
6712 2020-07-01 Tom Tromey <tom@tromey.com>
6713
6714 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6715
6716 2020-07-01 Fangrui Song <maskray@google.com>
6717
6718 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6719
6720 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6721
6722 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6723 forms for DW_AT_associated and DW_AT_allocated attributes,
6724 which is already checked in function attr_to_dynamic_prop.
6725
6726 2020-06-30 Tom Tromey <tromey@adacore.com>
6727
6728 * dwarf2/read.c (quirk_rust_enum): Correctly call
6729 alloc_rust_variant for default-less enum.
6730
6731 2020-06-30 Tom Tromey <tromey@adacore.com>
6732
6733 PR build/26183:
6734 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6735 gdb::to_string.
6736
6737 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6740 * gdbarch.h: Re-generate.
6741
6742 2020-06-28 Tom Tromey <tom@tromey.com>
6743
6744 * command.h (cmd_types): Remove.
6745 (cmd_type): Don't declare.
6746 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6747 typedef.
6748 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6749 * cli/cli-decode.c (cmd_type): Remove.
6750
6751 2020-06-27 Pedro Alves <palves@redhat.com>
6752
6753 * fork-child.c (prefork_hook): Adjust.
6754 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6755 Delete.
6756 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6757 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6758 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6759 Remove declarations.
6760 (struct inferior) <set_tty, tty>: New methods.
6761 (struct inferior) <terminal>: Rename to ...
6762 (struct inferior) <m_terminal>: ... this and make private.
6763 * main.c (captured_main_1): Adjust.
6764 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6765 (mi_cmd_inferior_tty_show): Adjust.
6766 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6767 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6768
6769 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6770
6771 * configure.ac: Add --enable-libctf: handle --disable-static
6772 properly.
6773 * acinclude.m4: sinclude ../config/enable.m4.
6774 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6775 (LIBCTF): Substitute in.
6776 (CTF_DEPS): New, likewise.
6777 (CLIBS): libctf needs symbols from libbfd: move earlier.
6778 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6779 flags.
6780 * ctfread.c: Surround in ENABLE_LIBCTF.
6781 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6782 * configure: Regenerate.
6783 * config.in: Likewise.
6784
6785 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6786
6787 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6788
6789 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6790
6791 * inferior.h (struct inferior) <terminal>: Change type to
6792 gdb::unique_xmalloc_ptr<char>.
6793 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6794 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6795 field, adjust to unique pointer.
6796 (get_inferior_io_terminal): Adjust to unique pointer.
6797
6798 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6801 registers, not just the known core set of registers.
6802
6803 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6804
6805 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6806 fflags, frm, and fcsr registers.
6807 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6808 restore groups.
6809 (riscv_tdesc_unknown_reg): New function.
6810 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6811 tdesc_use_registers.
6812 * riscv-tdep.h (struct gdbarch_tdep): Add
6813 unknown_csrs_first_regnum, unknown_csrs_count,
6814 duplicate_fflags_regnum, duplicate_frm_regnum, and
6815 duplicate_fcsr_regnum fields.
6816
6817 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6818
6819 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6820 callback, use the callback (when not null) to help number unknown
6821 registers.
6822 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6823 (tdesc_use_registers): Add extra parameter to declaration.
6824
6825 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6828 in the file.
6829 (class riscv_pending_register_alias): Likewise.
6830 (riscv_register_feature::register_info): Change 'required_p' field
6831 to 'required', and change its type. Add 'check' member function.
6832 (riscv_register_feature::register_info::check): Define new member
6833 function.
6834 (riscv_xreg_feature): Change initialisation of 'required' field.
6835 (riscv_freg_feature): Likewise.
6836 (riscv_virtual_feature): Likewise.
6837 (riscv_csr_feature): Likewise.
6838 (riscv_check_tdesc_feature): Take extra parameter, the csr
6839 tdesc_feature, rewrite the function to use the new
6840 riscv_register_feature::register_info::check function.
6841 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6842
6843 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6844
6845 * features/Makefile: Remove all references to the deleted files
6846 below.
6847 * features/riscv/32bit-csr.c: Deleted.
6848 * features/riscv/32bit-csr.xml: Deleted.
6849 * features/riscv/64bit-csr.c: Deleted.
6850 * features/riscv/64bit-csr.xml: Deleted.
6851 * features/riscv/rebuild-csr-xml.sh: Deleted.
6852
6853 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6856 whitespace error for declaration of names member variable.
6857 (struct riscv_register_feature): Add new prefer_first_name member
6858 variable, and fix whitespace error in declaration of registers.
6859 (riscv_xreg_feature): Initialize prefer_first_name field.
6860 (riscv_freg_feature): Likewise.
6861 (riscv_virtual_feature): Likewise.
6862 (riscv_csr_feature): Likewise.
6863 (riscv_register_name): Expand on comments. Remove register name
6864 modifications for CSR and virtual registers.
6865
6866 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6867
6868 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6869 errors.
6870
6871 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6872
6873 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6874 riscv-opc.h.
6875 (class riscv_pending_register_alias): New class.
6876 (riscv_check_tdesc_feature): Take vector of pending aliases and
6877 populate it as appropriate.
6878 (riscv_setup_register_aliases): Delete.
6879 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6880 to riscv_check_tdesc_feature in all cases. Use the vector to
6881 create the register aliases.
6882
6883 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6884
6885 * sol2-tdep.c (sol2_static_transform_name): Remove.
6886 (sol2_init_abi): Don't register it.
6887 * gdbarch.sh (static_transform_name): Remove.
6888 * gdbarch.c, gdbarch.h: Regenerate.
6889
6890 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6891 gdbarch_static_transform_name.
6892 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6893 * stabsread.c (define_symbol) <'X'>: Remove.
6894 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6895 handling.
6896 <'V'>: Likewise.
6897 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6898 <'S'>: Remove call to gdbarch_static_transform_name.
6899
6900 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6901
6902 * procfs.c (procfs_pre_trace): New function.
6903 (procfs_target::create_inferior): Pass it to fork_inferior.
6904
6905 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6906
6907 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6908 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6909 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6910 sol2-tdep.o, sparc-sol2-tdep.o.
6911 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6912 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6913 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6914 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6915
6916 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6917
6918 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6919 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6920 Call sol2_init_abi.
6921 Remove calls to set_gdbarch_skip_solib_resolver,
6922 set_gdbarch_core_pid_to_str.
6923 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6924 (i386_sol2_static_transform_name): Remove.
6925 (i386_sol2_init_abi): Call sol2_init_abi.
6926 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6927 set_gdbarch_static_transform_name,
6928 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6929 Use sol2_sigtramp_p.
6930 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6931 (sol2_sigtramp_p): New function.
6932 (sol2_static_transform_name): New function.
6933 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6934 (sol2_init_abi): New function.
6935 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6936 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6937 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6938 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6939 (sparc_sol2_static_transform_name): Remove.
6940 (sparc32_sol2_init_abi): Call sol2_init_abi.
6941 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6942 set_gdbarch_static_transform_name,
6943 set_gdbarch_skip_solib_resolver,
6944 set_gdbarch_core_pid_to_str.
6945 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6946 (sparc_sol2_static_transform_name): Remove
6947 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6948 call sol2_sigtramp_p.
6949 (sparc64_sol2_init_abi): Call sol2_init_abi.
6950 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6951 set_gdbarch_static_transform_name,
6952 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6953
6954 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6955
6956 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6957 * exec.c (validate_exec_file): If from_tty, set both
6958 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6959 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6960 and from_tty, unconditionally ask a confirmation.
6961
6962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * target-descriptions.c (tdesc_architecture_name): Protect against
6965 NULL pointer dereference.
6966 (maint_print_xml_tdesc_cmd): New function.
6967 (_initialize_target_descriptions): Register new 'maint print
6968 xml-tdesc' command and give it the filename completer.
6969 * NEWS: Mention new 'maint print xml-tdesc' command.
6970
6971 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6972
6973 * target-descriptions.c (class tdesc_compatible_info): New class.
6974 (struct target_desc): Change type of compatible vector.
6975 (tdesc_compatible_p): Update for change in type of
6976 target_desc::compatible.
6977 (tdesc_compatible_info_list): New function.
6978 (tdesc_compatible_info_arch_name): New function.
6979 (tdesc_add_compatible): Update for change in type of
6980 target_desc::compatible.
6981 (print_c_tdesc::visit_pre): Likewise.
6982
6983 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6986 whitespace to underscore.
6987 (maint_print_c_tdesc_cmd): Use fake filename for target
6988 descriptions that came from the target.
6989 (_initialize_target_descriptions): Add filename command completion
6990 for 'maint print c-tdesc'.
6991
6992 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6995 lines.
6996
6997 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7000 lines.
7001 (dwarf2_find_location_expression): Likewise.
7002 (call_site_parameter_matches): Likewise.
7003 (dwarf2_compile_expr_to_ax): Likewise.
7004 (disassemble_dwarf_expression): Likewise.
7005 (loclist_describe_location): Likewise.
7006
7007 2020-06-23 Pedro Alves <palves@redhat.com>
7008
7009 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7010 progspace-and-thread.h. Include scoped-mock-context.h instead.
7011 (register_to_value_test): Use scoped_mock_context.
7012 * regcache.c: Include "scoped-mock-context.h".
7013 (cooked_read_test): Don't error out if a target is already pushed.
7014 Use scoped_mock_context. Adjust.
7015 * scoped-mock-context.h: New file.
7016
7017 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7020 initializer.
7021 (ada_language::is_string_type_p): New member function.
7022 * c-lang.c (c_language_data): Delete la_is_string_type_p
7023 initializer.
7024 (cplus_language_data): Likewise.
7025 (asm_language_data): Likewise.
7026 (minimal_language_data): Likewise.
7027 * d-lang.c (d_language_data): Likewise.
7028 * f-lang.c (f_is_string_type_p): Delete function, implementation
7029 moved to f_language::is_string_type_p.
7030 (f_language_data): Delete la_is_string_type_p initializer.
7031 (f_language::is_string_type_p): New member function,
7032 implementation from f_is_string_type_p.
7033 * go-lang.c (go_is_string_type_p): Delete function, implementation
7034 moved to go_language::is_string_type_p.
7035 (go_language_data): Delete la_is_string_type_p initializer.
7036 (go_language::is_string_type_p): New member function,
7037 implementation from go_is_string_type_p.
7038 * language.c (language_defn::is_string_type_p): Define new member
7039 function.
7040 (default_is_string_type_p): Make static, add comment copied from
7041 header file.
7042 (unknown_language_data): Delete la_is_string_type_p initializer.
7043 (unknown_language::is_string_type_p): New member function.
7044 (auto_language_data): Delete la_is_string_type_p initializer.
7045 (auto_language::is_string_type_p): New member function.
7046 * language.h (language_data): Delete la_is_string_type_p field.
7047 (language_defn::is_string_type_p): Declare new function.
7048 (default_is_string_type_p): Delete desclaration, move comment to
7049 definition.
7050 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7051 moved to m2_language::is_string_type_p.
7052 (m2_language_data): Delete la_is_string_type_p initializer.
7053 (m2_language::is_string_type_p): New member function,
7054 implementation from m2_is_string_type_p.
7055 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7056 initializer.
7057 * opencl-lang.c (opencl_language_data): Likewise.
7058 * p-lang.c (pascal_is_string_type_p): Delete function,
7059 implementation moved to pascal_language::is_string_type_p.
7060 (pascal_language_data): Delete la_is_string_type_p initializer.
7061 (pascal_language::is_string_type_p): New member function,
7062 implementation from pascal_is_string_type_p.
7063 * rust-lang.c (rust_is_string_type_p): Delete function,
7064 implementation moved to rust_language::is_string_type_p.
7065 (rust_language_data): Delete la_is_string_type_p initializer.
7066 (rust_language::is_string_type_p): New member function,
7067 implementation from rust_is_string_type_p.
7068 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7069 is_string_type_p.
7070
7071 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * ada-lang.c (ada_language_data): Delete la_print_typedef
7074 initializer.
7075 (ada_language::print_typedef): New member function.
7076 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7077 (cplus_language_data): Likewise.
7078 (asm_language_data): Likewise.
7079 (minimal_language_data): Likewise.
7080 * d-lang.c (d_language_data): Likewise.
7081 * f-lang.c (f_language_data): Likewise.
7082 (f_language::print_typedef): New member function.
7083 * go-lang.c (go_language_data): Delete la_print_typedef
7084 initializer.
7085 * language.c (language_defn::print_typedef): Define member
7086 function.
7087 (unknown_language_data): Delete la_print_typedef initializer.
7088 (unknown_language::print_typedef): New member function.
7089 (auto_language_data): Delete la_print_typedef initializer.
7090 (auto_language::print_typedef): New member function.
7091 * language.h (language_data): Delete la_print_typedef field.
7092 (language_defn::print_typedef): Declare new member function.
7093 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7094 (default_print_typedef): Delete declaration.
7095 * m2-lang.c (m2_language_data): Delete la_print_typedef
7096 initializer.
7097 (m2_language::print_typedef): New member function.
7098 * objc-lang.c (objc_language_data): Delete la_print_typedef
7099 initializer.
7100 * opencl-lang.c (opencl_language_data): Likewise.
7101 * p-lang.c (pascal_language_data): Likewise.
7102 (pascal_language::print_typedef): New member function.
7103 * rust-lang.c (rust_print_typedef): Delete function,
7104 implementation moved to rust_language::print_typedef.
7105 (rust_language): Delete la_print_typedef initializer.
7106 (rust_language::print_typedef): New member function,
7107 implementation from rust_print_typedef.
7108 * typeprint.c (default_print_typedef): Delete.
7109
7110 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7113 (ada_language::printstr): New member function.
7114 * c-lang.c (c_language_data): Delete la_printstr initializer.
7115 (cplus_language_data): Likewise.
7116 (asm_language_data): Likewise.
7117 (minimal_language_data): Likewise.
7118 * d-lang.c (d_language_data): Likewise.
7119 * f-lang.c (f_printstr): Rename to f_language::printstr.
7120 (f_language_data): Delete la_printstr initializer.
7121 (f_language::printstr): New member function, implementation from
7122 f_printstr.
7123 * go-lang.c (go_language_data): Delete la_printstr initializer.
7124 * language.c (language_defn::printstr): Define new member
7125 function.
7126 (unk_lang_printstr): Delete.
7127 (unknown_language_data): Delete la_printstr initializer.
7128 (unknown_language::printstr): New member function.
7129 (auto_language_data): Delete la_printstr initializer.
7130 (auto_language::printstr): New member function.
7131 * language.h (language_data): Delete la_printstr field.
7132 (language_defn::printstr): Declare new member function.
7133 (LA_PRINT_STRING): Update call to printstr.
7134 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7135 (m2_language_data): Delete la_printstr initializer.
7136 (m2_language::printstr): New member function, implementation from
7137 m2_printstr.
7138 * objc-lang.c (objc_language_data): Delete la_printstr
7139 initializer.
7140 * opencl-lang.c (opencl_language_data): Likewise.
7141 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7142 (pascal_language_data): Delete la_printstr initializer.
7143 (pascal_language::printstr): New member function, implementation
7144 from pascal_printstr.
7145 * p-lang.h (pascal_printstr): Delete declaration.
7146 * rust-lang.c (rust_printstr): Update header comment.
7147 (rust_language_data): Delete la_printstr initializer.
7148 (rust_language::printstr): New member function.
7149
7150 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7153 (ada_language::printchar): New member function.
7154 * c-lang.c (c_language_data): Delete la_printchar initializer.
7155 (cplus_language_data): Likewise.
7156 (asm_language_data): Likewise.
7157 (minimal_language_data): Likewise.
7158 * d-lang.c (d_language_data): Likewise.
7159 * f-lang.c (f_printchar): Rename to f_language::printchar.
7160 (f_language_data): Delete la_printchar initializer.
7161 (f_language::printchar): New member function, implementation from
7162 f_printchar.
7163 * go-lang.c (go_language_data): Delete la_printchar initializer.
7164 * language.c (unk_lang_printchar): Delete.
7165 (language_defn::printchar): Define new member function.
7166 (unknown_language_data): Delete la_printchar initializer.
7167 (unknown_language::printchar): New member function.
7168 (auto_language_data): Delete la_printchar initializer.
7169 (auto_language::printchar): New member function.
7170 * language.h (language_data): Delete la_printchar field.
7171 (language_defn::printchar): Declare new member function.
7172 (LA_PRINT_CHAR): Update call to printchar.
7173 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7174 (m2_language::printchar): New member function.
7175 * objc-lang.c (objc_language_data): Delete la_printchar
7176 initializer.
7177 * opencl-lang.c (opencl_language_data): Likewise.
7178 * p-lang.c (pascal_language_data): Delete la_printchar
7179 initializer.
7180 (pascal_language::printchar): New member function.
7181 * rust-lang.c (rust_printchar): Rename to
7182 rust_language::printchar.
7183 (rust_language_data): Delete la_printchar initializer.
7184 (rust_language::printchar): New member function, implementation
7185 from rust_printchar.
7186
7187 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7188
7189 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7190 (ada_language_data): Delete la_emitchar initializer.
7191 (ada_language::emitchar): New member function, implementation from
7192 emit_char.
7193 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7194 (cplus_language_data): Likewise.
7195 (asm_language_data): Likewise.
7196 (minimal_language_data): Likewise.
7197 * d-lang.c (d_language_data): Likewise.
7198 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7199 (f_language_data): Delete la_emitchar initializer.
7200 (f_language::emitchar): New member function, implementation from
7201 f_emit_char.
7202 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7203 * language.c (unk_lang_emit_char): Delete.
7204 (language_defn::emitchar): New member function definition.
7205 (unknown_language_data): Delete la_emitchar initializer.
7206 (unknown_language::emitchar): New member function.
7207 (auto_language_data): Delete la_emitchar initializer.
7208 (auto_language::emitchar): New member function.
7209 * language.h (language_data): Delete la_emitchar field.
7210 (language_defn::emitchar): New member field declaration.
7211 (LA_EMIT_CHAR): Update call to emitchar.
7212 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7213 (m2_language_data): Delete la_emitchar initializer.
7214 (m2_language::emitchar): New member function, implementation from
7215 m2_emit_char.
7216 * objc-lang.c (objc_language_data): Delete la_emitchar
7217 initializer.
7218 * opencl-lang.c (opencl_language_data): Likewise.
7219 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7220 (pascal_language_data): Delete la_emitchar initializer.
7221 (pascal_language::emitchar): New member function, implementation
7222 from pascal_emit_char.
7223 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7224 (rust_language_data): Delete la_emitchar initializer.
7225 (rust_language::emitchar): New member function, implementation
7226 from rust_emitchar.
7227
7228 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7229
7230 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7231 (ada_language_data): Delete la_post_parser initializer.
7232 (ada_language::post_parser): New member function.
7233 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7234 (cplus_language_data): Likewise.
7235 (asm_language_data): Likewise.
7236 (minimal_language_data): Likewise.
7237 * d-lang.c (d_language_data): Likewise.
7238 * f-lang.c (f_language_data): Likewise.
7239 * go-lang.c (go_language_data): Likewise.
7240 * language.c (unknown_language_data): Likewise.
7241 (auto_language_data): Likewise.
7242 * language.h (language_data): Delete la_post_parser field.
7243 (language_defn::post_parser): New member function.
7244 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7245 * objc-lang.c (objc_language_data): Likewise.
7246 * opencl-lang.c (opencl_language_data): Likewise.
7247 * p-lang.c (pascal_language_data): Likewise.
7248 * parse.c (parse_exp_in_context): Update call to post_parser.
7249 (null_post_parser): Delete definition.
7250 * parser-defs.h (null_post_parser): Delete declaration.
7251 * rust-lang.c (rust_language_data): Delete la_post_parser
7252 initializer.
7253
7254 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * ada-lang.c (parse): Rename to ada_language::parser.
7257 (ada_language_data): Delete la_parser initializer.
7258 (ada_language::parser): New member function, implementation from
7259 parse.
7260 * c-lang.c (c_language_data): Delete la_parser initializer.
7261 (cplus_language_data): Likewise.
7262 (asm_language_data): Likewise.
7263 (minimal_language_data): Likewise.
7264 * d-lang.c (d_language_data): Likewise.
7265 (d_language::parser): New member function.
7266 * f-lang.c (f_language_data): Delete la_parser initializer.
7267 (f_language::parser): New member function.
7268 * go-lang.c (go_language_data): Delete la_parser initializer.
7269 (go_language::parser): New member function.
7270 * language.c (unk_lang_parser): Delete.
7271 (language_defn::parser): Define new member function.
7272 (unknown_language_data): Delete la_parser initializer.
7273 (unknown_language::parser): New member function.
7274 (auto_language_data): Delete la_parser initializer.
7275 (auto_language::parser): New member function.
7276 * language.h (language_data): Delete la_parser field.
7277 (language_defn::parser): Declare new member function.
7278 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7279 (m2_language::parser): New member function.
7280 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7281 * opencl-lang.c (opencl_language_data): Likewise.
7282 * p-lang.c (pascal_language_data): Likewise.
7283 (pascal_language::parser): New member function.
7284 * parse.c (parse_exp_in_context): Update call to parser.
7285 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7286 (rust_language::parser): New member function.
7287
7288 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * top.c (print_gdb_configuration): Print --with-python-libdir
7291 configuration value.
7292
7293 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7294
7295 * NEWS: Mention change to the alias command.
7296
7297 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7298
7299 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7300 (alias_command_completer)
7301 (make_alias_options_def_group): New functions.
7302 (alias_opts, alias_option_defs): New struct and array.
7303 (alias_usage_error): Update usage.
7304 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7305 Use option framework.
7306 (_initialize_cli_cmds): Update alias command help.
7307 Update aliases command help.
7308 (show_user):
7309 Add NULL for new default_args lookup_cmd argument.
7310 (valid_command_p): Rename to validate_aliased_command.
7311 Add NULL for new default_args lookup_cmd argument. Verify that the
7312 aliased_command has no default args.
7313 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7314 (lookup_cmd_1, lookup_cmd): New argument default_args.
7315 (add_alias_cmd):
7316 Add NULL for new default_args lookup_cmd argument.
7317 (print_help_for_command): Show default args under the layout
7318 alias some_alias = some_aliased_cmd some_alias_default_arg.
7319 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7320 xfree default_args in destructor.
7321 * cli/cli-script.c (process_next_line, do_define_command):
7322 Add NULL for new default_args lookup_cmd argument.
7323 * command.h: Declare new default_args argument in lookup_cmd
7324 and lookup_cmd_1.
7325 * completer.c (complete_line_internal_1):
7326 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7327 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7328 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7329 Likewise.
7330 * infcmd.c (_initialize_infcmd): Likewise.
7331 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7332 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7333 * python/py-param.c (add_setshow_generic): Likewise.
7334 * remote.c (_initialize_remote): Likewise.
7335 * top.c (execute_command): Prepend default_args if command has some.
7336 (set_verbose):
7337 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7338 * tracepoint.c (validate_actionline, encode_actions_1):
7339 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7340
7341 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7342
7343 * jit.c (jit_read_descriptor): Use bool as the return type.
7344 (jit_breakpoint_re_set_internal): Use bool as the return type.
7345 Invert the return value logic; return true if the jit breakpoint
7346 has been successfully initialized.
7347 (jit_inferior_init): Update the call to
7348 jit_breakpoint_re_set_internal.
7349
7350 2020-06-22 Pedro Alves <palves@redhat.com>
7351
7352 PR gdb/25939
7353 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7354 Use the current inferior instead. Don't return
7355 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7356 wait again.
7357 * sol-thread.c (sol_thread_target::wait): Don't reference
7358 inferior_ptid.
7359 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7360 (sol_update_thread_list_callback): Use the current inferior's pid
7361 instead of inferior_ptid.
7362
7363 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7364
7365 * procfs.c: Cleanup many comments.
7366
7367 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7368 (AFTER_WATCHFLAG): Replace by value.
7369
7370 (MAIN_PROC_NAME_FORMAT): Inline ...
7371 (create_procinfo): ... here.
7372
7373 (procfs_debug_inferior): Remove SYS_exec handling.
7374 (syscall_is_exec): Likewise.
7375 (procfs_set_exec_trap): Likewise.
7376
7377 (syscall_is_lwp_exit): Inline in callers.
7378 (syscall_is_exit): Likewise.
7379 (syscall_is_exec): Likewise.
7380 (syscall_is_lwp_create): Likewise.
7381
7382 (invalidate_cache): Remove #if 0 code.
7383
7384 (make_signal_thread_runnable): Remove.
7385 (procfs_target::resume): Remove #if 0 code.
7386
7387 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7388
7389 PR gdb/25939
7390 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7391 call ...
7392 (procfs_target::create_inferior): ... here.
7393
7394 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7395
7396 * exec.c (validate_exec_file): Ensure the build-id is up to
7397 date by calling reopen_exec_file (that checks file timestamp
7398 to decide to re-read the file).
7399
7400 2020-06-18 Pedro Alves <palves@redhat.com>
7401
7402 PR gdb/25412
7403 * gdbthread.h (delete_thread, delete_thread_silent)
7404 (find_thread_ptid): Update comments.
7405 * thread.c (current_thread_): New global.
7406 (is_current_thread): Move higher, and reimplement.
7407 (inferior_thread): Reimplement.
7408 (set_thread_exited): Use bool. Add assertions.
7409 (add_thread_silent): Simplify thread-reuse handling by always
7410 calling delete_thread.
7411 (delete_thread): Remove intro comment.
7412 (find_thread_ptid): Skip exited threads.
7413 (switch_to_thread_no_regs): Write to current_thread_.
7414 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7415 INFERIOR_PTID. Clear current_thread_.
7416
7417 2020-06-18 Pedro Alves <palves@redhat.com>
7418
7419 * aix-thread.c (pd_update): Use switch_to_thread.
7420
7421 2020-06-18 Pedro Alves <palves@redhat.com>
7422
7423 * ravenscar-thread.c (ravenscar_thread_target): Update.
7424 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7425 (ravenscar_thread_target::add_active_thread): ... this. Don't
7426 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7427 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7428
7429 2020-06-18 Pedro Alves <palves@redhat.com>
7430
7431 * nat/windows-nat.c (current_windows_thread): Remove.
7432 * nat/windows-nat.h (current_windows_thread): Remove.
7433 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7434 Adjust.
7435 (display_selectors): Adjust to fetch the current
7436 windows_thread_info based on inferior_ptid.
7437 (fake_create_process): No longer write to current_windows_thread.
7438 (windows_nat_target::get_windows_debug_event):
7439 Don't set inferior_ptid or current_windows_thread.
7440 (windows_nat_target::wait): Adjust to not rely on
7441 current_windows_thread.
7442 (do_initial_windows_stuff): Now a method of windows_nat_target.
7443 Switch to the last_ptid thread.
7444 (windows_nat_target::attach): Adjust.
7445 (windows_nat_target::detach): Use switch_to_no_thread instead of
7446 writing to inferior_ptid directly.
7447 (windows_nat_target::create_inferior): Adjust.
7448
7449 2020-06-18 Pedro Alves <palves@redhat.com>
7450
7451 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7452
7453 2020-06-18 Pedro Alves <palves@redhat.com>
7454
7455 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7456 after creating it, instead of writing to inferior_ptid. Don't
7457 write to inferior_ptid.
7458
7459 2020-06-18 Pedro Alves <palves@redhat.com>
7460
7461 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7462
7463 2020-06-18 Pedro Alves <palves@redhat.com>
7464
7465 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7466 it, instead of writing to inferior_ptid.
7467
7468 2020-06-18 Pedro Alves <palves@redhat.com>
7469
7470 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7471 to inferior_ptid.
7472
7473 2020-06-18 Pedro Alves <palves@redhat.com>
7474
7475 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7476 instead of writing to inferior_ptid directly.
7477
7478 2020-06-18 Pedro Alves <palves@redhat.com>
7479
7480 * corelow.c (core_target::close): Use switch_to_no_thread instead
7481 of writing to inferior_ptid directly.
7482 (add_to_thread_list, core_target_open): Use switch_to_thread
7483 instead of writing to inferior_ptid directly.
7484
7485 2020-06-18 Pedro Alves <palves@redhat.com>
7486
7487 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7488 inferior_ptid.
7489 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7490 inferior_ptid.
7491 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7492 inferior_ptid directly.
7493 (darwin_nat_target::init_thread_list): Switch to thread, instead
7494 of writing to inferior_ptid.
7495 (darwin_nat_target::attach): Don't write to inferior_ptid.
7496 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7497
7498 2020-06-18 Pedro Alves <palves@redhat.com>
7499
7500 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7501 thread.
7502 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7503 Instead use switch_to_thread.
7504 (gnu_nat_target::detach): Use switch_to_no_thread
7505 instead of writing to inferior_ptid directly. Used passed-in
7506 inferior instead of looking up the inferior by pid.
7507
7508 2020-06-18 Pedro Alves <palves@redhat.com>
7509
7510 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7511 inferior_ptid.
7512
7513 2020-06-18 Pedro Alves <palves@redhat.com>
7514
7515 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7516 inferior_ptid.
7517 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7518 thread.
7519 (nto_procfs_target::detach): Avoid referencing
7520 inferior_ptid. Use switch_to_no_thread instead of writing to
7521 inferior_ptid directly.
7522 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7523 instead of writing to inferior_ptid directly.
7524 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7525 to thread.
7526
7527 2020-06-18 Pedro Alves <palves@redhat.com>
7528
7529 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7530 after creating it, instead of writing to inferior_ptid.
7531 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7532 to inferior_ptid directly.
7533 (gdbsim_target::wait): Don't write to inferior_ptid.
7534
7535 2020-06-18 Pedro Alves <palves@redhat.com>
7536
7537 * remote.c (remote_target::remote_notice_new_inferior): Use
7538 switch_to_thread instead of writing to inferior_ptid directly.
7539 (remote_target::add_current_inferior_and_thread): Use
7540 switch_to_no_thread instead of writing to inferior_ptid directly.
7541 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7542 and switch_to_thread instead of using set_current_inferior or
7543 writing to inferior_ptid directly.
7544
7545 2020-06-18 Pedro Alves <palves@redhat.com>
7546
7547 * tracectf.c (ctf_target_open): Switch to added thread instead of
7548 writing to inferior_ptid directly.
7549 (ctf_target::close): Use switch_to_no_thread instead of writing to
7550 inferior_ptid directly.
7551
7552 2020-06-18 Pedro Alves <palves@redhat.com>
7553
7554 * tracefile-tfile.c (tfile_target_open): Don't write to
7555 inferior_ptid directly, instead switch to added thread.
7556 (tfile_target::close): Use switch_to_no_thread instead of writing
7557 to inferior_ptid directly.
7558
7559 2020-06-18 Pedro Alves <palves@redhat.com>
7560
7561 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7562 (procfs_target::detach): Use switch_to_no_thread
7563 instead of writing to inferior_ptid directly.
7564 (do_attach): Change return type to void. Switch to the added
7565 thread.
7566 (procfs_target::create_inferior): Switch to the added thread.
7567 (procfs_do_thread_registers): Don't write to inferior_ptid.
7568
7569 2020-06-18 Pedro Alves <palves@redhat.com>
7570
7571 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7572 of writing to inferior_ptid.
7573 (scoped_restore_exited_inferior): Delete.
7574 (handle_vfork_child_exec_or_exit): Simplify using
7575 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7576 instead of writing to inferior_ptid.
7577 (THREAD_STOPPED_BY): Delete.
7578 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7579 (thread_stopped_by_hw_breakpoint): Delete.
7580 (save_waitstatus): Use
7581 scoped_restore_current_thread+switch_to_thread, and call
7582 target_stopped_by_watchpoint instead of
7583 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7584 instead of thread_stopped_by_sw_breakpoint, and
7585 target_stopped_by_hw_breakpoint instead of
7586 thread_stopped_by_hw_breakpoint.
7587 (handle_inferior_event)
7588 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7589 inferior_ptid directly, nor
7590 set_current_inferior/set_current_program_space. Use
7591 switch_to_thread / switch_to_inferior_no_thread instead.
7592
7593 2020-06-18 Pedro Alves <palves@redhat.com>
7594
7595 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7596 instead of writing to inferior_ptid.
7597
7598 2020-06-18 Pedro Alves <palves@redhat.com>
7599
7600 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7601 added thread.
7602 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7603 to the added thread.
7604 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7605 instead of writing to inferior_ptid.
7606
7607 2020-06-18 Pedro Alves <palves@redhat.com>
7608
7609 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7610 (register_to_value_test): Mock a program_space too. Heap-allocate
7611 the address space. Don't write to inferior_ptid. Use
7612 switch_to_thread instead.
7613
7614 2020-06-18 Pedro Alves <palves@redhat.com>
7615
7616 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7617 Delete.
7618 (find_signalled_thread()): New, factored out from
7619 linux_make_corefile_notes and adjusted to handle exited threads.
7620 (linux_make_corefile_notes): Adjust to use the new
7621 find_signalled_thread.
7622
7623 2020-06-18 Pedro Alves <palves@redhat.com>
7624
7625 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7626 of saving/restoring inferior_ptid.
7627
7628 2020-06-17 Tom Tromey <tom@tromey.com>
7629
7630 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7631 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7632 declare.
7633 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7634
7635 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7638 of partial symtabs.
7639
7640 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * regformats/reg-arm.dat: Remove.
7643 * regformats/reg-bfin.dat: Remove.
7644 * regformats/reg-cris.dat: Remove.
7645 * regformats/reg-crisv32.dat: Remove.
7646 * regformats/reg-m32r.dat: Remove.
7647 * regformats/reg-tilegx.dat: Remove.
7648 * regformats/reg-tilegx32.dat: Remove.
7649
7650 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * features/Makefile (WHICH): Remove arm files.
7653 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7654 * regformats/arm/arm-with-neon.dat: Remove.
7655 * regformats/arm/arm-with-vfpv2.dat: Remove.
7656 * regformats/arm/arm-with-vfpv3.dat: Remove.
7657
7658 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * features/Makefile (XMLTOC): Remove rx.xml.
7661
7662 2020-06-17 Pedro Alves <palves@redhat.com>
7663
7664 * gdbthread.h (thread_control_state) <trap_expected> Update
7665 comments.
7666
7667 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7668
7669 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7670 ada_language::lookup_symbol_nonlocal.
7671 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7672 (ada_language::lookup_symbol_nonlocal): New member function,
7673 implementation from ada_lookup_symbol_nonlocal.
7674 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7675 initializer.
7676 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7677 initializer.
7678 (cplus_language::lookup_symbol_nonlocal): New member function.
7679 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7680 (minimal_language_data) Likewise.
7681 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7682 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7683 initializer.
7684 (d_language::lookup_symbol_nonlocal): New member function.
7685 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7686 initializer.
7687 (f_language::lookup_symbol_nonlocal): New member function.
7688 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7689 initializer.
7690 * language.c (unknown_language_data): Likewise.
7691 (auto_language_data): Likewise.
7692 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7693 field.
7694 (language_defn::lookup_symbol_nonlocal): New member function.
7695 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7696 initializer.
7697 * objc-lang.c (objc_language_data): Likewise.
7698 * opencl-lang.c (opencl_language_data): Likewise.
7699 * p-lang.c (pascal_language_data): Likewise.
7700 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7701 rust_language::lookup_symbol_nonlocal.
7702 (rust_language_data): Delete la_lookup_symbol_nonlocal
7703 initializer.
7704 (rust_language::lookup_symbol_nonlocal): New member function,
7705 implementation from rust_lookup_symbol_nonlocal.
7706 * symtab.c (lookup_symbol_aux): Update call to
7707 lookup_symbol_nonlocal.
7708 (basic_lookup_symbol_nonlocal): Rename to...
7709 (language_defn::lookup_symbol_nonlocal): ...this, and update
7710 header comment. Remove language_defn parameter, and replace with
7711 uses of `this'.
7712 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7713
7714 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7715
7716 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7717 initializer.
7718 (ada_language::value_print_inner): New member function.
7719 * c-lang.c (c_language_data): Delete la_value_print_inner
7720 initializer.
7721 (cplus_language_data): Likewise.
7722 (asm_language_data): Likewise.
7723 (minimal_language_data): Likewise.
7724 * d-lang.c (d_language_data): Likewise.
7725 (d_language::value_print_inner): New member function.
7726 * f-lang.c (f_language_data): Delete la_value_print_inner
7727 initializer.
7728 (f_language::value_print_inner): New member function.
7729 * f-lang.h (f_value_print_innner): Rename to...
7730 (f_value_print_inner): ...this (note spelling of 'inner').
7731 * f-valprint.c (f_value_print_innner): Rename to...
7732 (f_value_print_inner): ...this (note spelling of 'inner').
7733 * go-lang.c (go_language_data): Delete la_value_print_inner
7734 initializer.
7735 (go_language::value_print_inner): New member function.
7736 * language.c (language_defn::value_print_inner): Define new member
7737 function.
7738 (unk_lang_value_print_inner): Delete.
7739 (unknown_language_data): Delete la_value_print_inner initializer.
7740 (unknown_language::value_print_inner): New member function.
7741 (auto_language_data): Delete la_value_print_inner initializer.
7742 (auto_language::value_print_inner): New member function.
7743 * language.h (language_data): Delete la_value_print_inner field.
7744 (language_defn::value_print_inner): Delcare new member function.
7745 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7746 initializer.
7747 (m2_language::value_print_inner): New member function.
7748 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7749 initializer.
7750 * opencl-lang.c (opencl_language_data): Likewise.
7751 * p-lang.c (pascal_language_data): Likewise.
7752 (pascal_language::value_print_inner): New member function.
7753 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7754 initializer.
7755 (rust_language::value_print_inner): New member function.
7756 * valprint.c (do_val_print): Update call to value_print_inner.
7757
7758 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * ada-lang.c (ada_language_data): Delete la_value_print
7761 initializer.
7762 (ada_language::value_print): New member function.
7763 * c-lang.c (c_language_data): Delete la_value_print initializer.
7764 (cplus_language_data): Likewise.
7765 (asm_language_data): Likewise.
7766 (minimal_language_data): Likewise.
7767 * d-lang.c (d_language_data): Likewise.
7768 * f-lang.c (f_language_data): Likewise.
7769 * go-lang.c (go_language_data): Likewise.
7770 * language.c (unk_lang_value_print): Delete.
7771 (language_defn::value_print): Define new member function.
7772 (unknown_language_data): Delete la_value_print initializer.
7773 (unknown_language::value_print): New member function.
7774 (auto_language_data): Delete la_value_print initializer.
7775 (auto_language::value_print): New member function.
7776 * language.h (language_data): Delete la_value_print field.
7777 (language_defn::value_print): Declare new member function.
7778 (LA_VALUE_PRINT): Update call to value_print.
7779 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7780 * objc-lang.c (objc_language_data): Likewise.
7781 * opencl-lang.c (opencl_language_data): Likewise.
7782 * p-lang.c (pascal_language_data): Likewise.
7783 (pascal_language::value_print): New member function.
7784 * rust-lang.c (rust_language_data): Delete la_value_print
7785 initializer.
7786
7787 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 * ada-lang.c (ada_watch_location_expression): Rename to
7790 ada_language::watch_location_expression.
7791 (ada_language_data): Delete la_watch_location_expression
7792 initializer.
7793 (ada_language::watch_location_expression): New member function,
7794 implementation from ada_watch_location_expression.
7795 * breakpoint.c (watch_command_1): Update call to
7796 watch_location_expression.
7797 * c-lang.c (c_watch_location_expression): Rename to
7798 language_defn::watch_location_expression.
7799 (c_language_data): Delete la_watch_location_expression
7800 initializer.
7801 (cplus_language_data): Likewise.
7802 (asm_language_data): Likewise.
7803 (minimal_language_data): Likewise.
7804 * c-lang.h (c_watch_location_expression): Delete declaration.
7805 * d-lang.c (d_language_data): Delete la_watch_location_expression
7806 initializer.
7807 * f-lang.c (f_language_data): Likewise.
7808 * go-lang.c (go_language_data): Likewise.
7809 * language.c (language_defn::watch_location_expression): Member
7810 function implementation from c_watch_location_expression.
7811 (unknown_language_data): Delete la_watch_location_expression
7812 initializer.
7813 (auto_language_data): Likewise.
7814 * language.h (language_data): Delete la_watch_location_expression
7815 field.
7816 (language_defn::watch_location_expression): Declare new member
7817 function.
7818 * m2-lang.c (m2_language_data): Delete
7819 la_watch_location_expression initializer.
7820 * objc-lang.c (objc_language_data): Likewise.
7821 * opencl-lang.c (opencl_language_data): Likewise.
7822 * p-lang.c (pascal_language_data): Likewise.
7823 * rust-lang.c (rust_watch_location_expression): Rename to
7824 rust_language::watch_location_expression.
7825 (rust_language_data): Delete la_watch_location_expression
7826 initializer.
7827 (rust_language::watch_location_expression): New member function,
7828 implementation from rust_watch_location_expression.
7829
7830 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7831
7832 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7833 ada_language::collect_symbol_completion_matches.
7834 (ada_language_data): Delete la_collect_symbol_completion_matches
7835 initializer.
7836 (ada_language::collect_symbol_completion_matches): New member
7837 function, implementation from
7838 ada_collect_symbol_completion_matches.
7839 * c-lang.c (c_language_data): Delete
7840 la_collect_symbol_completion_matches initializer.
7841 (cplus_language_data): Likewise.
7842 (asm_language_data): Likewise.
7843 (minimal_language_data): Likewise.
7844 * d-lang.c (d_language_data): Likewise.
7845 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7846 f_language::collect_symbol_completion_matches.
7847 (f_language_data): Delete la_collect_symbol_completion_matches
7848 initializer.
7849 (f_language::collect_symbol_completion_matches) New member
7850 function, implementation from f_collect_symbol_completion_matches.
7851 * go-lang.c (go_language_data): Delete
7852 la_collect_symbol_completion_matches initializer.
7853 * language.c (unknown_language_data): Likewise.
7854 (auto_language_data): Likewise.
7855 * language.h (language_data): Delete
7856 la_collect_symbol_completion_matches field.
7857 (language_defn::collect_symbol_completion_matches): New member
7858 function.
7859 * m2-lang.c (m2_language_data): Delete
7860 la_collect_symbol_completion_matches initializer.
7861 * objc-lang.c (objc_language_data): Likewise.
7862 * opencl-lang.c (opencl_language_data): Likewise.
7863 * p-lang.c (pascal_language_data): Likewise.
7864 * rust-lang.c (rust_language_data): Likewise.
7865 * symtab.c (default_collect_symbol_completion_matches): Delete.
7866 (collect_symbol_completion_matches): Update call to
7867 collect_symbol_completion_matches.
7868 (collect_symbol_completion_matches_type): Likewise.
7869 * symtab.h (default_collect_symbol_completion_matches): Delete
7870 declaration.
7871
7872 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7875 (ada_language_data): Delete la_word_break_characters initializer.
7876 (ada_language::word_break_characters): New member function.
7877 * c-lang.c (c_language_data): Delete la_word_break_characters
7878 initializer.
7879 (cplus_language_data): Likewise.
7880 (asm_language_data): Likewise.
7881 (minimal_language_data): Likewise.
7882 * completer.c: Update global comment.
7883 (advance_to_expression_complete_word_point): Update call to
7884 word_break_characters.
7885 (complete_files_symbols): Likewise.
7886 (complete_line_internal_1): Likewise.
7887 (default_completer_handle_brkchars): Likewise.
7888 (skip_quoted_chars): Likewise.
7889 * d-lang.c (d_language_data): Delete la_word_break_characters
7890 initializer.
7891 * f-lang.c (f_word_break_characters): Delete.
7892 (f_language_data): Delete la_word_break_characters initializer.
7893 (f_language::word_break_characters): New member function.
7894 * go-lang.c (go_language_data): Delete la_word_break_characters
7895 initializer.
7896 * language.c (unknown_language_data): Likewise.
7897 (auto_language_data): Likewise.
7898 * language.h (default_word_break_characters): Move declaration to
7899 earlier in the file.
7900 (language_data): Delete la_word_break_characters field.
7901 (language_defn::word_break_characters): New member function.
7902 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7903 initializer.
7904 * objc-lang.c (objc_language_data): Likewise.
7905 * opencl-lang.c (opencl_language_data): Likewise.
7906 * p-lang.c (pascal_language_data): Likewise.
7907 * rust-lang.c (rust_language_data): Likewise.
7908
7909 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7910
7911 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7912 (ada_language_data): Delete la_get_symbol_name_matcher
7913 initializer.
7914 (language_defn::get_symbol_name_matcher_inner): New member
7915 function.
7916 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7917 initializer.
7918 (cplus_language_data): Likewise.
7919 (cplus_language::get_symbol_name_matcher_inner): New member
7920 function.
7921 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7922 (minimal_language_data): Likewise.
7923 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7924 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7925 initializer.
7926 * dictionary.c (iter_match_first_hashed): Update call to
7927 get_symbol_name_matcher.
7928 (iter_match_next_hashed): Likewise.
7929 (iter_match_next_linear): Likewise.
7930 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7931 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7932 initializer.
7933 (f_language::get_symbol_name_matcher_inner): New member function.
7934 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7935 initializer.
7936 * language.c (default_symbol_name_matcher): Update header comment,
7937 make static.
7938 (language_defn::get_symbol_name_matcher): New definition.
7939 (language_defn::get_symbol_name_matcher_inner): Likewise.
7940 (get_symbol_name_matcher): Delete.
7941 (unknown_language_data): Delete la_get_symbol_name_matcher
7942 initializer.
7943 (auto_language_data): Likewise.
7944 * language.h (language_data): Delete la_get_symbol_name_matcher
7945 field.
7946 (language_defn::get_symbol_name_matcher): New member function.
7947 (language_defn::get_symbol_name_matcher_inner): Likewise.
7948 (default_symbol_name_matcher): Delete declaration.
7949 * linespec.c (find_methods): Update call to
7950 get_symbol_name_matcher.
7951 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7952 initializer.
7953 * minsyms.c (lookup_minimal_symbol): Update call to
7954 get_symbol_name_matcher.
7955 (iterate_over_minimal_symbols): Likewise.
7956 * objc-lang.c (objc_language_data): Delete
7957 la_get_symbol_name_matcher initializer.
7958 * opencl-lang.c (opencl_language_data): Likewise.
7959 * p-lang.c (pascal_language_data): Likewise.
7960 * psymtab.c (psymbol_name_matches): Update call to
7961 get_symbol_name_matcher.
7962 * rust-lang.c (rust_language_data): Delete
7963 la_get_symbol_name_matcher initializer.
7964 * symtab.c (symbol_matches_search_name): Update call to
7965 get_symbol_name_matcher.
7966 (compare_symbol_name): Likewise.
7967
7968 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7969
7970 * ada-lang.c (ada_language_data): Delete la_compute_program
7971 initializer.
7972 * c-lang.c (c_language_data): Likewise.
7973 (c_language::compute_program): New member function.
7974 (cplus_language_data): Delete la_compute_program initializer.
7975 (cplus_language::compute_program): New member function.
7976 (asm_language_data): Delete la_compute_program initializer.
7977 (minimal_language_data): Likewise.
7978 * c-lang.h (c_compute_program): Update comment.
7979 (cplus_compute_program): Likewise.
7980 * compile/compile-c-support.c (c_compute_program): Likewise.
7981 (cplus_compute_program): Likewise.
7982 * compile/compile.c (compile_to_object): Update call to
7983 la_compute_program.
7984 * d-lang.c (d_language_data): Delete la_compute_program
7985 initializer.
7986 * f-lang.c (f_language_data): Likewise.
7987 * go-lang.c (go_language_data): Likewise.
7988 * language.c (unknown_language_data): Likewise.
7989 (auto_language_data): Likewise.
7990 * language.h (language_data): Delete la_compute_program field.
7991 (language_defn::compute_program): New member function.
7992 * m2-lang.c (m2_language_data): Delete la_compute_program
7993 initializer.
7994 * objc-lang.c (objc_language_data): Likewise.
7995 * opencl-lang.c (opencl_language_data): Likewise.
7996 * p-lang.c (pascal_language_data): Likewise.
7997 * rust-lang.c (rust_language_data): Likewise.
7998
7999 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * ada-lang.c (ada_language_data) Delete
8002 la_class_name_from_physname initializer.
8003 * c-lang.c (c_language_data): Likewise.
8004 (cplus_language_data): Likewise.
8005 (cplus_language::class_name_from_physname): New member function.
8006 (asm_language_data): Delete la_class_name_from_physname
8007 initializer.
8008 (minimal_language_data): Likewise.
8009 * d-lang.c (d_language_data): Likewise.
8010 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8011 method on language_defn class.
8012 (guess_full_die_structure_name): Likewise.
8013 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8014 initializer.
8015 * go-lang.c (go_language_data): Likewise.
8016 * language.c (language_class_name_from_physname): Delete.
8017 (unk_lang_class_name): Delete.
8018 (unknown_language_data): Delete la_class_name_from_physname
8019 initializer.
8020 (auto_language_data): Likewise.
8021 * language.h (language_data): Delete la_class_name_from_physname
8022 field.
8023 (language_defn::class_name_from_physname): New function.
8024 (language_class_name_from_physname): Delete declaration.
8025 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8026 initializer.
8027 * objc-lang.c (objc_language_data): Likewise.
8028 * opencl-lang.c (opencl_language_data): Likewise.
8029 * p-lang.c (pascal_language_data): Likewise.
8030 * rust-lang.c (rust_language_data): Likewise.
8031
8032 2020-06-16 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-data.h (STATUS_NAME): New macro.
8035 * tui/tui-layout.c (tui_remove_some_windows)
8036 (initialize_known_windows, tui_register_window)
8037 (tui_layout_split::remove_windows, initialize_layouts)
8038 (tui_new_layout_command): Don't use hard-coded window names.
8039
8040 2020-06-16 Tom Tromey <tom@tromey.com>
8041
8042 PR tui/25348:
8043 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8044 tui_initialize_readline. Only run once. Call rl_initialize.
8045 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8046 tui_initialize_readline.
8047 * tui/tui-io.c (tui_setup_io): Call
8048 tui_ensure_readline_initialized.
8049 * tui/tui-interp.c (tui_interp::init): Update.
8050
8051 2020-06-16 Tom Tromey <tom@tromey.com>
8052
8053 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8054 Also preserve the status window.
8055
8056 2020-06-16 Tom Tromey <tom@tromey.com>
8057
8058 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8059 where m_window==nullptr.
8060
8061 2020-06-15 Tom Tromey <tromey@adacore.com>
8062
8063 * windows-nat.c (windows_nat::handle_output_debug_string):
8064 Update.
8065 (windows_nat::handle_ms_vc_exception): Update.
8066 * target.h (target_read_string): Change API.
8067 * target.c (target_read_string): Change API.
8068 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8069 Update.
8070 * solib-frv.c (frv_current_sos): Update.
8071 * solib-dsbt.c (dsbt_current_sos): Update.
8072 * solib-darwin.c (darwin_current_sos): Update.
8073 * linux-thread-db.c (inferior_has_bug): Update.
8074 * expprint.c (print_subexp_standard): Update.
8075 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8076 (ada_exception_message_1): Update.
8077
8078 2020-06-15 Tom Tromey <tromey@adacore.com>
8079
8080 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8081
8082 2020-06-15 Tom Tromey <tromey@adacore.com>
8083
8084 * valprint.c (read_string): Update comment.
8085 * target.c (MIN): Remove.
8086 (target_read_string): Rewrite.
8087
8088 2020-06-15 Tom Tromey <tromey@adacore.com>
8089
8090 * corefile.c (read_memory_string): Remove.
8091 * ada-valprint.c (ada_value_print_ptr): Update.
8092 * ada-lang.h (ada_tag_name): Change return type.
8093 * ada-lang.c (type_from_tag): Update.
8094 (ada_tag_name_from_tsd): Change return type. Use
8095 target_read_string.
8096 (ada_tag_name): Likewise.
8097 * gdbcore.h (read_memory_string): Don't declare.
8098
8099 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8100
8101 * symtab.c (rbreak_command): Ignore Windows drive colon.
8102
8103 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8104
8105 * NEWS: Mention removed GDBserver host support.
8106
8107 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8108
8109 * features/riscv/rebuild-csr-xml.sh: Updated.
8110
8111 2020-06-11 Tom Tromey <tom@tromey.com>
8112
8113 PR gdb/18318:
8114 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8115
8116 2020-06-09 Jonny Grant <jg@jguk.org>
8117 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8118
8119 * main.c (captured_main_1): Don't print new line after help.
8120 (print_gdb_help): add mailing list and IRC channel information
8121 to --help. Add new lines between items in the footer. Remove
8122 quotes around bug url.
8123
8124 2020-06-11 Keith Seitz <keiths@redhat.com>
8125
8126 PR gdb/21356
8127 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8128 Resolve typedefs for type length calculations.
8129
8130 2020-06-10 Tom de Vries <tdevries@suse.de>
8131
8132 PR ada/24713
8133 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8134 (write_psymbols): Enable .gdb_index for ada.
8135 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8136 ada.
8137
8138 2020-06-10 Tom de Vries <tdevries@suse.de>
8139
8140 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8141 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8142 namei" instead of "const char *name" argument.
8143 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8144 dw2_symtab_iter_init.
8145
8146 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8147
8148 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8149 to use type::field and field::type instead.
8150
8151 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8154 to use field::type instead.
8155
8156 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * gdbtypes.h (struct field) <type, set_type>: New methods.
8159 Rename `type` field to...
8160 <m_type>: ... this. Change references throughout to use type or
8161 set_type methods.
8162 (FIELD_TYPE): Use field::type. Change call sites that modify
8163 the field's type to use field::set_type instead.
8164
8165 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8168 to use type::index_type instead.
8169
8170 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8173 methods.
8174 (TYPE_INDEX_TYPE): Use type::index_type.
8175 * gdbtypes.c (create_array_type_with_stride): Likewise.
8176
8177 2020-06-07 Tom Tromey <tom@tromey.com>
8178
8179 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8180 parameter.
8181 (generic_value_print): Update.
8182
8183 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8184
8185 Revert commit 982a38f60b0.
8186 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8187
8188 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8191 avoid use after free.
8192
8193 2020-06-05 Tom de Vries <tdevries@suse.de>
8194
8195 * NEWS: Fix typos.
8196
8197 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8200 the per_bfd object.
8201 (dwarf2_read_debug_names): Likewise.
8202 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8203 object when re-using a per_bfd object with an index.
8204
8205 2020-06-03 Tom de Vries <tdevries@suse.de>
8206
8207 PR symtab/26046
8208 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8209 children for C++.
8210 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8211 DW_TAG_subprogram.
8212
8213 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * ada-lang.c (ada_language_data): Delete skip_trampoline
8216 initializer.
8217 * c-lang.c (c_language_data): Likewise.
8218 (cplus_language_data): Likewise.
8219 (cplus_language::skip_trampoline): New member function.
8220 (asm_language_data): Delete skip_trampoline initializer.
8221 (minimal_language_data): Likewise.
8222 * d-lang.c (d_language_data): Likewise.
8223 * f-lang.c (f_language_data): Likewise.
8224 * go-lang.c (go_language_data): Likewise.
8225 * language.c (unk_lang_trampoline): Delete function.
8226 (skip_language_trampoline): Update.
8227 (unknown_language_data): Delete skip_trampoline initializer.
8228 (auto_language_data): Likewise.
8229 * language.h (language_data): Delete skip_trampoline field.
8230 (language_defn::skip_trampoline): New function.
8231 * m2-lang.c (m2_language_data): Delete skip_trampoline
8232 initializer.
8233 * objc-lang.c (objc_skip_trampoline): Delete function, move
8234 implementation to objc_language::skip_trampoline.
8235 (objc_language_data): Delete skip_trampoline initializer.
8236 (objc_language::skip_trampoline): New member function with
8237 implementation from objc_skip_trampoline.
8238 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8239 initializer.
8240 * p-lang.c (pascal_language_data): Likewise.
8241 * rust-lang.c (rust_language_data): Likewise.
8242
8243 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8246 (ada_language::demangle): New member function.
8247 * c-lang.c (c_language_data): Delete la_demangle initializer.
8248 (cplus_language_data): Delete la_demangle initializer.
8249 (cplus_language::demangle): New member function.
8250 (asm_language_data): Delete la_demangle initializer.
8251 (minimal_language_data): Delete la_demangle initializer.
8252 * d-lang.c (d_language_data): Delete la_demangle initializer.
8253 (d_language::demangle): New member function.
8254 * f-lang.c (f_language_data): Delete la_demangle initializer.
8255 (f_language::demangle): New member function.
8256 * go-lang.c (go_language_data): Delete la_demangle initializer.
8257 (go_language::demangle): New member function.
8258 * language.c (language_demangle): Update.
8259 (unk_lang_demangle): Delete.
8260 (unknown_language_data): Delete la_demangle initializer.
8261 (unknown_language::demangle): New member function.
8262 (auto_language_data): Delete la_demangle initializer.
8263 (auto_language::demangle): New member function.
8264 * language.h (language_data): Delete la_demangle field.
8265 (language_defn::demangle): New function.
8266 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8267 * objc-lang.c (objc_language_data): Delete la_demangle
8268 initializer.
8269 (objc_language::demangle): New member function.
8270 * opencl-lang.c (opencl_language_data): Delete la_demangle
8271 initializer.
8272 * p-lang.c (pascal_language_data): Likewise.
8273 * rust-lang.c (rust_language_data): Likewise.
8274 (rust_language::demangle): New member function.
8275
8276 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8277
8278 * ada-lang.c (ada_language_data): Delete la_print_type
8279 initializer.
8280 (ada_language::print_type): New member function.
8281 * c-lang.c (c_language_data): Delete la_print_type initializer.
8282 (c_language::print_type): New member function.
8283 (cplus_language_data): Delete la_print_type initializer.
8284 (cplus_language::print_type): New member function.
8285 (asm_language_data): Delete la_print_type initializer.
8286 (asm_language::print_type): New member function.
8287 (minimal_language_data): Delete la_print_type initializer.
8288 (minimal_language::print_type): New member function.
8289 * d-lang.c (d_language_data): Delete la_print_type initializer.
8290 (d_language::print_type): New member function.
8291 * f-lang.c (f_language_data): Delete la_print_type initializer.
8292 (f_language::print_type): New member function.
8293 * go-lang.c (go_language_data): Delete la_print_type initializer.
8294 (go_language::print_type): New member function.
8295 * language.c (unk_lang_print_type): Delete.
8296 (unknown_language_data): Delete la_print_type initializer.
8297 (unknown_language::print_type): New member function.
8298 (auto_language_data): Delete la_print_type initializer.
8299 (auto_language::print_type): New member function.
8300 * language.h (language_data): Delete la_print_type field.
8301 (language_defn::print_type): New function.
8302 (LA_PRINT_TYPE): Update.
8303 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8304 (m2_language::print_type): New member function.
8305 * objc-lang.c (objc_language_data): Delete la_print_type
8306 initializer.
8307 (objc_language::print_type): New member function.
8308 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8309 to opencl_language::print_type.
8310 (opencl_language_data): Delete la_print_type initializer.
8311 (opencl_language::print_type): New member function, implementation
8312 from opencl_print_type.
8313 * p-lang.c (pascal_language_data): Delete la_print_type
8314 initializer.
8315 (pascal_language::print_type): New member function.
8316 * rust-lang.c (rust_print_type): Delete, implementation moved to
8317 rust_language::print_type.
8318 (rust_language_data): Delete la_print_type initializer.
8319 (rust_language::print_type): New member function, implementation
8320 from rust_print_type.
8321
8322 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8323
8324 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8325 implementation moves to...
8326 (ada_language::sniff_from_mangled_name): ...here. Update return
8327 type.
8328 (ada_language_data): Delete la_sniff_from_mangled_name
8329 initializer.
8330 * c-lang.c (c_language_data): Likewise.
8331 (cplus_language_data): Likewise.
8332 (cplus_language::sniff_from_mangled_name): New member function,
8333 implementation taken from gdb_sniff_from_mangled_name.
8334 (asm_language_data): Delete la_sniff_from_mangled_name
8335 initializer.
8336 (minimal_language_data): Likewise.
8337 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8338 implementation moves to cplus_language::sniff_from_mangled_name.
8339 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8340 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8341 moves to...
8342 (d_language::sniff_from_mangled_name): ...here.
8343 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8344 * f-lang.c (f_language_data): Likewise.
8345 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8346 moves to...
8347 (go_language::sniff_from_mangled_name): ...here.
8348 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8349 * language.c (language_sniff_from_mangled_name): Delete.
8350 (unknown_language_data): Delete la_sniff_from_mangled_name
8351 initializer.
8352 (auto_language_data): Likewise.
8353 * language.h (language_data): Delete la_sniff_from_mangled_name
8354 field.
8355 (language_defn::sniff_from_mangled_name): New function.
8356 (language_sniff_from_mangled_name): Delete declaration.
8357 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8358 field.
8359 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8360 implementation moves to...
8361 (objc_language::sniff_from_mangled_name): ...here.
8362 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8363 * opencl-lang.c (opencl_language_data): Likewise.
8364 * p-lang.c (pascal_language_data): Likewise.
8365 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8366 implementation moves to...
8367 (rust_language::sniff_from_mangled_name): ...here.
8368 (rust_language_data): Delete la_sniff_from_mangled_name
8369 initializer.
8370 * symtab.c (symbol_find_demangled_name): Call
8371 sniff_from_mangled_name member function.
8372
8373 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8374
8375 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8376 initializer.
8377 * c-lang.c (c_language_data): Likewise.
8378 (cplus_language_data): Likewise.
8379 (cplus_language::search_name_hash): New member function.
8380 (asm_language_data): Delete la_search_name_hash initializer.
8381 (minimal_language_data): Likewise.
8382 * d-lang.c (d_language_data): Likewise.
8383 * dictionary.c (default_search_name_hash): Rename to...
8384 (language_defn::search_name_hash): ...this.
8385 * f-lang.c (f_language_data): Likewise.
8386 (f_language::search_name_hash): New member function.
8387 * go-lang.c (go_language_data): Delete la_search_name_hash
8388 initializer.
8389 * language.c (unknown_language_data): Likewise.
8390 (auto_language_data): Likewise.
8391 * language.h (struct language_data): Delete la_search_name_hash
8392 field.
8393 (language_defn::search_name_hash): Declare new member function.
8394 (default_search_name_hash): Delete declaration.
8395 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8396 initializer.
8397 * objc-lang.c (objc_language_data): Likewise.
8398 * opencl-lang.c (opencl_language_data): Likewise.
8399 * p-lang.c (pascal_language_data): Likewise.
8400 * rust-lang.c (rust_language_data): Likewise.
8401 * symtab.c (search_name_hash): Update call.
8402
8403 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8404
8405 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8406 initializer.
8407 * c-lang.c (class compile_instance): Declare.
8408 (c_language_data): Delete la_get_compile_instance initializer.
8409 (c_language::get_compile_instance): New member function.
8410 (cplus_language_data): Delete la_get_compile_instance initializer.
8411 (cplus_language::get_compile_instance): New member function.
8412 (asm_language_data): Delete la_get_compile_instance initializer.
8413 (minimal_language_data): Likewise.
8414 * c-lang.h (c_get_compile_context): Update comment.
8415 (cplus_get_compile_context): Update comment.
8416 * compile/compile.c (compile_to_object): Update calls, don't rely
8417 on function pointer being NULL.
8418 * d-lang.c (d_language_data): Delete la_get_compile_instance
8419 initializer.
8420 * f-lang.c (f_language_data): Likewise.
8421 * go-lang.c (go_language_data): Likewise.
8422 * language.c (unknown_language_data): Likewise.
8423 (auto_language_data): Likewise.
8424 * language.h (language_data): Delete la_get_compile_instance field.
8425 (language_defn::get_compile_instance): New member function.
8426 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8427 initializer.
8428 * objc-lang.c (objc_language_data): Likewise.
8429 * opencl-lang.c (opencl_language_data): Likewise.
8430 * p-lang.c (pascal_language_data): Likewise.
8431 * rust-lang.c (rust_language_data): Likewise.
8432
8433 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 * ada-lang.c (ada_add_all_symbols): Update comment.
8436 (ada_iterate_over_symbols): Delete, move implementation to...
8437 (ada_language::iterate_over_symbols): ...here, a new member
8438 function, rewrite to use range based for loop.
8439 (ada_language_data): Delete la_iterate_over_symbols initializer.
8440 * c-lang.c (c_language_data): Likewise.
8441 (cplus_language_data): Likewise.
8442 (asm_language_data): Likewise.
8443 (minimal_language_data): Likewise.
8444 * d-lang.c (d_language_data): Likewise.
8445 * f-lang.c (f_language_data): Likewise.
8446 * go-lang.c (go_language_data): Likewise.
8447 * language.c (unknown_language_data): Likewise.
8448 (auto_language_data): Likewise.
8449 * language.h (language_data): Delete la_iterate_over_symbols field.
8450 (language_defn::iterate_over_symbols): New member function.
8451 (LA_ITERATE_OVER_SYMBOLS): Update.
8452 * linespec.c (iterate_over_all_matching_symtabs): Update.
8453 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8454 initializer.
8455 * objc-lang.c (objc_language_data): Likewise.
8456 * opencl-lang.c (opencl_language_data): Likewise.
8457 * p-lang.c (pascal_language_data): Likewise.
8458 * rust-lang.c (rust_language_data): Likewise.
8459
8460 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * ada-lang.c (ada_language_data): Delete
8463 la_lookup_transparent_type initializer.
8464 * c-lang.c (c_language_data): Likewise.
8465 (cplus_language_data): Likewise.
8466 (cplus_language::lookup_transparent_type): New member function.
8467 (asm_language_data): Delete la_lookup_transparent_type
8468 initializer.
8469 (minimal_language_data): Likewise.
8470 * d-lang.c (d_language_data): Likewise.
8471 * f-lang.c (f_language_data): Likewise.
8472 * go-lang.c (go_language_data): Likewise.
8473 * language.c (unknown_language_data): Likewise.
8474 (auto_language_data): Likewise.
8475 * language.h (struct language_data): Delete
8476 la_lookup_transparent_type field.
8477 (language_defn::lookup_transparent_type): New member function.
8478 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8479 initializer.
8480 * objc-lang.c (objc_language_data): Likewise.
8481 * opencl-lang.c (opencl_language_data): Likewise.
8482 * p-lang.c (pascal_language_data): Likewise.
8483 * rust-lang.c (rust_language_data): Likewise.
8484 * symtab.c (symbol_matches_domain): Update call.
8485
8486 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * ada-lang.c (ada_language_arch_info): Delete function, move
8489 implementation to...
8490 (ada_language::language_arch_info): ...here, a new member
8491 function.
8492 (ada_language_data): Delete la_language_arch_info.
8493 * c-lang.c (c_language_data): Likewise.
8494 (c_language::language_arch_info): New member function.
8495 (cplus_language_arch_info): Delete function, move
8496 implementation to...
8497 (cplus_language::language_arch_info): ...here, a new member
8498 function.
8499 (cplus_language_data): Delete la_language_arch_info.
8500 (asm_language_data): Likewise.
8501 (asm_language::language_arch_info): New member function.
8502 (minimal_language_data): Delete la_language_arch_info.
8503 (minimal_language::language_arch_info): New member function.
8504 * d-lang.c (d_language_arch_info): Delete function, move
8505 implementation to...
8506 (d_language::language_arch_info): ...here, a new member
8507 function.
8508 (d_language_data): Delete la_language_arch_info.
8509 * f-lang.c (f_language_arch_info): Delete function, move
8510 implementation to...
8511 (f_language::language_arch_info): ...here, a new member
8512 function.
8513 (f_language_data): Delete la_language_arch_info.
8514 * go-lang.c (go_language_arch_info): Delete function, move
8515 implementation to...
8516 (go_language::language_arch_info): ...here, a new member
8517 function.
8518 (go_language_data): Delete la_language_arch_info.
8519 * language.c (unknown_language_data): Likewise.
8520 (unknown_language::language_arch_info): New member function.
8521 (auto_language_data): Delete la_language_arch_info.
8522 (auto_language::language_arch_info): New member function.
8523 (language_gdbarch_post_init): Update call to
8524 la_language_arch_info.
8525 * language.h (language_data): Delete la_language_arch_info
8526 function pointer.
8527 (language_defn::language_arch_info): New function.
8528 * m2-lang.c (m2_language_arch_info): Delete function, move
8529 implementation to...
8530 (m2_language::language_arch_info): ...here, a new member
8531 function.
8532 (m2_language_data): Delete la_language_arch_info.
8533 * objc-lang.c (objc_language_arch_info): Delete function, move
8534 implementation to...
8535 (objc_language::language_arch_info): ...here, a new member
8536 function.
8537 (objc_language_data): Delete la_language_arch_info.
8538 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8539 implementation to...
8540 (opencl_language::language_arch_info): ...here, a new member
8541 function.
8542 (opencl_language_data): Delete la_language_arch_info.
8543 * p-lang.c (pascal_language_arch_info): Delete function, move
8544 implementation to...
8545 (pascal_language::language_arch_info): ...here, a new member
8546 function.
8547 (pascal_language_data): Delete la_language_arch_info.
8548 * rust-lang.c (rust_language_arch_info): Delete function, move
8549 implementation to...
8550 (rust_language::language_arch_info): ...here, a new member
8551 function.
8552 (rust_language_data): Delete la_language_arch_info.
8553
8554 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8555
8556 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8557 initializer.
8558 * c-lang.c (c_language_data): Likewise.
8559 (cplus_language_data): Likewise.
8560 (cplus_language::pass_by_reference_info): New method.
8561 (asm_language_data): Delete la_pass_by_reference initializer.
8562 (minimal_language_data): Likewise.
8563 * cp-abi.c (cp_pass_by_reference): Remove use of
8564 default_pass_by_reference.
8565 * d-lang.c (d_language_data): Likewise.
8566 * f-lang.c (f_language_data): Likewise.
8567 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8568 default_pass_by_reference.
8569 * go-lang.c (go_language_data): Likewise.
8570 * language.c (language_pass_by_reference): Update.
8571 (default_pass_by_reference): Delete.
8572 (unknown_language_data): Delete la_pass_by_reference
8573 initializer.
8574 (auto_language_data): Likewise.
8575 * language.h (struct language_data): Delete la_pass_by_reference
8576 field.
8577 (language_defn::pass_by_reference_info): New member function.
8578 (default_pass_by_reference): Delete declaration.
8579 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8580 initializer.
8581 * objc-lang.c (objc_language_data): Likewise.
8582 * opencl-lang.c (opencl_language_data): Likewise.
8583 * p-lang.c (pascal_language_data): Likewise.
8584 * rust-lang.c (rust_language_data): Likewise.
8585
8586 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8587
8588 * ada-lang.c (ada_read_var_value): Delete function, move
8589 implementation to...
8590 (ada_language::read_var_value): ...here.
8591 (ada_language_data): Delete la_read_var_value initializer.
8592 * c-lang.c (c_language_data): Likewise.
8593 (cplus_language_data): Likewise.
8594 (minimal_language_data): Likewise.
8595 * d-lang.c (d_language_data): Likewise.
8596 * f-lang.c (f_language_data): Likewise.
8597 * findvar.c (default_read_var_value): Rename to...
8598 (language_defn::read_var_value): ...this.
8599 * findvar.c (read_var_value): Update header comment, and change to
8600 call member function instead of function pointer.
8601 * go-lang.c (go_language_data): Likewise.
8602 * language.c (unknown_language_data): Delete la_read_var_value
8603 initializer.
8604 (auto_language_data): Likewise.
8605 * language.h (struct language_data): Delete la_read_var_value
8606 field.
8607 (language_defn::read_var_value): New member function.
8608 (default_read_var_value): Delete declaration.
8609 * m2-lang.c (m2_language_data): Delete la_read_var_value
8610 initializer.
8611 * objc-lang.c (objc_language_data): Likewise.
8612 * opencl-lang.c (opencl_language_data): Likewise.
8613 * p-lang.c (pascal_language_data): Likewise.
8614 * rust-lang.c (rust_language_data): Likewise.
8615 * value.h (default_read_var_value): Delete declaration.
8616
8617 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8618
8619 * ada-lang.c (ada_print_array_index): Delete function, move
8620 implementation to...
8621 (ada_language::print_array_index): ...here.
8622 (ada_language_data): Delete la_print_array_index initializer.
8623 * c-lang.c (c_language_data): Likewise.
8624 (cplus_language_data): Likewise.
8625 (minimal_language_data): Likewise.
8626 * d-lang.c (d_language_data): Likewise.
8627 * f-lang.c (f_language_data): Likewise.
8628 * go-lang.c (go_language_data): Likewise.
8629 * language.c (default_print_array_index): Delete function, move
8630 implementation to...
8631 (language_defn::print_array_index): ...here.
8632 (unknown_language_data): Delete la_print_array_index initializer.
8633 (auto_language_data): Likewise.
8634 * language.h (struct language_data): Delete la_print_array_index
8635 field.
8636 (language_defn::print_array_index): New member function.
8637 (LA_PRINT_ARRAY_INDEX): Update.
8638 (default_print_array_index): Delete declaration.
8639 * m2-lang.c (m2_language_data): Delete la_print_array_index
8640 initializer.
8641 * objc-lang.c (objc_language_data): Likewise.
8642 * opencl-lang.c (opencl_language_data): Likewise.
8643 * p-lang.c (pascal_language_data): Likewise.
8644 * rust-lang.c (rust_language_data): Likewise.
8645
8646 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8647
8648 * gdb/ada-lang.c (ada_language_defn): Convert to...
8649 (ada_language_data): ...this.
8650 (class ada_language): New class.
8651 (ada_language_defn): New static global.
8652 * gdb/c-lang.c (c_language_defn): Convert to...
8653 (c_language_data): ...this.
8654 (class c_language): New class.
8655 (c_language_defn): New static global.
8656 (cplus_language_defn): Convert to...
8657 (cplus_language_data): ...this.
8658 (class cplus_language): New class.
8659 (cplus_language_defn): New static global.
8660 (asm_language_defn): Convert to...
8661 (asm_language_data): ...this.
8662 (class asm_language): New class.
8663 (asm_language_defn): New static global.
8664 (minimal_language_defn): Convert to...
8665 (minimal_language_data): ...this.
8666 (class minimal_language): New class.
8667 (minimal_language_defn): New static global.
8668 * gdb/d-lang.c (d_language_defn): Convert to...
8669 (d_language_data): ...this.
8670 (class d_language): New class.
8671 (d_language_defn): New static global.
8672 * gdb/f-lang.c (f_language_defn): Convert to...
8673 (f_language_data): ...this.
8674 (class f_language): New class.
8675 (f_language_defn): New static global.
8676 * gdb/go-lang.c (go_language_defn): Convert to...
8677 (go_language_data): ...this.
8678 (class go_language): New class.
8679 (go_language_defn): New static global.
8680 * gdb/language.c (unknown_language_defn): Remove declaration.
8681 (current_language): Initialize to nullptr, real initialization is
8682 moved to _initialize_language.
8683 (languages): Delete global.
8684 (language_defn::languages): Define.
8685 (set_language_command): Use language_defn::languages.
8686 (set_language): Likewise.
8687 (range_error): Likewise.
8688 (language_enum): Likewise.
8689 (language_def): Likewise.
8690 (add_set_language_command): Use language_def::languages for the
8691 language list, and language_def to lookup language pointers.
8692 (skip_language_trampoline): Use language_defn::languages.
8693 (unknown_language_defn): Convert to...
8694 (unknown_language_data): ...this.
8695 (class unknown_language): New class.
8696 (unknown_language_defn): New static global.
8697 (auto_language_defn): Convert to...
8698 (auto_language_data): ...this.
8699 (class auto_language): New class.
8700 (auto_language_defn): New static global.
8701 (language_gdbarch_post_init): Use language_defn::languages.
8702 (_initialize_language): Initialize current_language.
8703 * gdb/language.h (struct language_defn): Rename to...
8704 (struct language_data): ...this.
8705 (struct language_defn): New.
8706 (auto_language_defn): Delete.
8707 (unknown_language_defn): Delete.
8708 (minimal_language_defn): Delete.
8709 (ada_language_defn): Delete.
8710 (asm_language_defn): Delete.
8711 (c_language_defn): Delete.
8712 (cplus_language_defn): Delete.
8713 (d_language_defn): Delete.
8714 (f_language_defn): Delete.
8715 (go_language_defn): Delete.
8716 (m2_language_defn): Delete.
8717 (objc_language_defn): Delete.
8718 (opencl_language_defn): Delete.
8719 (pascal_language_defn): Delete.
8720 (rust_language_defn): Delete.
8721 * gdb/m2-lang.c (m2_language_defn): Convert to...
8722 (m2_language_data): ...this.
8723 (class m2_language): New class.
8724 (m2_language_defn): New static global.
8725 * gdb/objc-lang.c (objc_language_defn): Convert to...
8726 (objc_language_data): ...this.
8727 (class objc_language): New class.
8728 (objc_language_defn): New static global.
8729 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8730 (opencl_language_data): ...this.
8731 (class opencl_language): New class.
8732 (opencl_language_defn): New static global.
8733 * gdb/p-lang.c (pascal_language_defn): Convert to...
8734 (pascal_language_data): ...this.
8735 (class pascal_language): New class.
8736 (pascal_language_defn): New static global.
8737 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8738 language pointer, update comment format.
8739 * gdb/rust-lang.c (rust_language_defn): Convert to...
8740 (rust_language_data): ...this.
8741 (class rust_language): New class.
8742 (rust_language_defn): New static global.
8743
8744 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8747 member variable.
8748 <m_stmt_at_address>: New member variable.
8749 (lnp_state_machine::record_line): Don't record some lines, update
8750 tracking of is_stmt at the same address.
8751 (lnp_state_machine::lnp_state_machine): Initialise new member
8752 variables.
8753
8754 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8755
8756 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8757 "-include gnu-nat-mig.h".
8758 * gnu-nat-mig.h: New file.
8759 * gnu-nat.c: Include "gnu-nat-mig.h".
8760 (exc_server, msg_reply_server, notify_server,
8761 process_reply_server): Remove declarations.
8762
8763 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8764
8765 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8766 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8767 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8768 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8769 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8770 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8771 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8772 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8773 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8774 to gnu_nat_target class.
8775 * gnu-nat.c: Likewise.
8776 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8777 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8778 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8779 object.
8780 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8781 instead of `gnu_target'.
8782
8783 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8784
8785 * i386-gnu-tdep.c: Include "gdbcore.h"
8786 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8787 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8788 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8789 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8790 i386_gnu_sigcontext_addr): New functions
8791 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8792 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8793 tdep.
8794
8795 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8796
8797 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8798 before fork_inferior call. Avoid calling it if target_is_pushed returns
8799 true.
8800
8801 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8802
8803 * gnu-nat.h (gnu_target): New variable declaration.
8804 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8805 gnu_target.
8806 * gnu-nat.c (gnu_target): New variable.
8807 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8808 add_thread_silent, and add_thread calls.
8809 (gnu_nat_target::create_inferior): Pass gnu_target to
8810 add_thread_silent, thread_change_ptid call.
8811 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8812 call.
8813
8814 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8815
8816 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8817 (gnu_nat_target::find_memory_regions): Remove unused
8818 `old_address' variable.
8819
8820 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8821
8822 * gnu-nat.c: Include "gdbarch.h".
8823
8824 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8825
8826 * reply_mig_hack.awk (Error return): Cast function through
8827 void *, to bypass compiler function call check.
8828
8829 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8830
8831 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8832 $(srcdir)/reply_mig_hack.awk.
8833
8834 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8835
8836 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8837
8838 2020-05-30 Jonny Grant <jg@jguk.org>
8839
8840 * configure.ac (ACX_BUGURL): change bug URL to https.
8841
8842 2020-05-30 Pedro Alves <palves@redhat.com>
8843
8844 * cp-support.c (replace_typedefs_template): New.
8845 (replace_typedefs_qualified_name): Handle
8846 DEMANGLE_COMPONENT_TEMPLATE.
8847
8848 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8851 dwarf2/index-cache.h, dwarf2/index-write.c,
8852 dwarf2/index-write.h, dwarf2/line-header.c,
8853 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8854 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8855 variables and fields from `dwarf2_per_objfile` to just
8856 `per_objfile` throughout.
8857
8858 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8859
8860 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8861 <push_dwarf_reg_entry_value>: Add comment.
8862
8863 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8864 Keith Seitz <keiths@redhat.com>
8865
8866 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8867 instead of PyEval_ReleaseLock.
8868 (class gdbpy_gil): Move to earlier in file.
8869 (finalize_python): Set gdb_python_initialized.
8870 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8871 when not initialized.
8872
8873 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8874
8875 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8876 <push_dwarf_reg_entry_value>: Remove assert. Override
8877 per_objfile with caller_per_objfile.
8878
8879 2020-05-28 Tom de Vries <tdevries@suse.de>
8880
8881 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8882 PR gold/15646 workaround to symbol kind "type".
8883
8884 2020-05-27 Tom Tromey <tromey@adacore.com>
8885
8886 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8887
8888 2020-05-27 Tom Tromey <tromey@adacore.com>
8889
8890 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8891 Use htab_find_with_hash.
8892 <add_abbrev>: Remove "abbrev_number" parameter.
8893 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8894 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8895 (hash_abbrev): Add comment.
8896 (abbrev_table::lookup_abbrev): Move to header file.
8897 (abbrev_table::read): Update.
8898
8899 2020-05-27 Tom Tromey <tromey@adacore.com>
8900
8901 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8902 method.
8903 <canonical_name>: New member.
8904 <raw_name>: Rename from "name".
8905 (partial_die_info): Initialize canonical_name.
8906 (scan_partial_symbols): Check raw_name.
8907 (partial_die_parent_scope, partial_die_full_name)
8908 (add_partial_symbol, add_partial_subprogram)
8909 (add_partial_enumeration, load_partial_dies): Use "name" method.
8910 (partial_die_info::name): New method.
8911 (partial_die_info::read, guess_partial_die_structure_name)
8912 (partial_die_info::fixup): Update.
8913
8914 2020-05-27 Tom Tromey <tromey@adacore.com>
8915
8916 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8917 <get_ref_die_offset>: Inline.
8918 <get_ref_die_offset_complaint>: New method.
8919 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8920 (attribute::get_ref_die_offset_complaint): Rename from
8921 get_ref_die_offset. Just issue complaint.
8922
8923 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8924
8925 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8926
8927 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8928
8929 * exec.c (exec_file_attach): Use errno value of first openp failure.
8930
8931 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8932
8933 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8934 Don't close thread handle.
8935
8936 2020-05-27 Tom Tromey <tom@tromey.com>
8937 Simon Marchi <simon.marchi@efficios.com>
8938
8939 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8940 shared_ptr.
8941 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8942 member.
8943 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8944 dwarf2_per_bfd_objfile_data_key>: New globals.
8945 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8946 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8947 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8948 shared.
8949 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8950 short-circuit when sharing.
8951 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8952 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8953
8954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8955
8956 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8957 to...
8958 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8959 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8960
8961 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8962
8963 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8964 build_name_components, find_name_components_bounds>:
8965 Add per_objfile parameter.
8966 (struct mapped_index) <symbol_name_at>: Likewise.
8967 (struct mapped_debug_names): Remove constructor.
8968 <dwarf2_per_objfile>: Remove field.
8969 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8970 (mapped_index_base::find_name_components_bounds,
8971 mapped_index_base::build_name_components,
8972 dw2_expand_symtabs_matching_symbol): Likewise.
8973 (class mock_mapped_index) <symbol_name_at>: Likewise.
8974 (check_match): Likewise.
8975 (check_find_bounds_finds): Likewise.
8976 (test_mapped_index_find_name_component_bounds): Update.
8977 (CHECK_MATCH): Update.
8978 (dw2_expand_symtabs_matching): Update.
8979 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8980 per_objfile parameter.
8981 <find_vec_in_debug_names>: Likewise.
8982 <m_per_objfile>: New field.
8983 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8984 parameter.
8985 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8986 (dw2_debug_names_iterator::next): Update.
8987 (dw2_debug_names_lookup_symbol): Update.
8988 (dw2_debug_names_expand_symtabs_for_function): Update.
8989 (dw2_debug_names_map_matching_symbols): Update.
8990 (dw2_debug_names_expand_symtabs_matching): Update.
8991 (dwarf2_read_debug_names): Update.
8992
8993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8996 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8997 move to dwarf2_per_objfile.
8998 <read_in_chain>: Remove.
8999 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9000 remove_all_cus, age_comp_units>: New methods.
9001 <m_dwarf2_cus>: New member.
9002 (struct dwarf2_per_cu_data) <cu>: Remove.
9003 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9004 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9005 moved to methods of dwarf2_per_objfile.
9006 (dwarf2_clear_marks): Remove.
9007 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9008 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9009 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9010 (dwarf2_per_objfile::remove_all_cus): New.
9011 (class free_cached_comp_units) <~free_cached_comp_units>:
9012 Update.
9013 (load_cu): Update.
9014 (dw2_do_instantiate_symtab): Adjust.
9015 (fill_in_sig_entry_from_dwo_entry): Adjust.
9016 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9017 (cutu_reader::cutu_reader): Likewise.
9018 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9019 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9020 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9021 and dwarf2_per_objfile::age_comp_units.
9022 (load_partial_comp_unit): Update.
9023 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9024 (process_queue): Likewise.
9025 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9026 backlink.
9027 (dwarf2_read_addr_index): Likewise.
9028 (follow_die_offset): Likewise.
9029 (dwarf2_fetch_die_loc_sect_off): Likewise.
9030 (dwarf2_fetch_constant_bytes): Likewise.
9031 (dwarf2_fetch_die_type_sect_off): Likewise.
9032 (follow_die_sig_1): Likewise.
9033 (load_full_type_unit): Likewise.
9034 (read_signatured_type): Likewise.
9035 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9036 (dwarf2_cu::~dwarf2_cu): Remove.
9037 (dwarf2_per_objfile::get_cu): New.
9038 (dwarf2_per_objfile::set_cu): New.
9039 (age_cached_comp_units): Rename to...
9040 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9041 to std::unordered_map.
9042 (free_one_cached_comp_unit): Rename to...
9043 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9044 to std::unordered_map.
9045 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9046 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9047 a dwarf2_per_objfile in data.
9048 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9049 (dwarf2_clear_marks): Remove.
9050
9051 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9054 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9055 (init_tu_and_read_dwo_dies): Likewise.
9056 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9057 (cutu_reader::cutu_reader): Likewise.
9058 (load_partial_comp_unit): Likewise.
9059 (process_psymtab_comp_unit): Update.
9060 (build_type_psymtabs_1): Update.
9061 (process_skeletonless_type_unit): Update.
9062 (load_full_comp_unit): Update.
9063 (find_partial_die): Update.
9064 (dwarf2_read_addr_index): Update.
9065 (read_signatured_type): Update.
9066
9067 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9068
9069 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9070 m_header_read_in>: New fields.
9071 <get_header>: New method.
9072 * dwarf2/read.c (per_cu_header_read_in): Remove.
9073 (dwarf2_per_cu_data::get_header): New.
9074 (dwarf2_per_cu_data::addr_size): Update.
9075 (dwarf2_per_cu_data::offset_size): Update.
9076 (dwarf2_per_cu_data::ref_addr_size): Update.
9077
9078 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9079
9080 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9081 (dw2_do_instantiate_symtab): Update.
9082 (queue_and_load_all_dwo_tus): Change parameter from
9083 dwarf2_per_cu_data to dwarf2_cu.
9084 (dwarf2_fetch_die_loc_sect_off): Update.
9085 (dwarf2_fetch_constant_bytes): Update.
9086 (dwarf2_fetch_die_type_sect_off): Update.
9087
9088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9089
9090 * dwarf2/read.c (process_full_comp_unit,
9091 process_full_type_unit): Remove per_cu, per_objfile paramters.
9092 Add dwarf2_cu parameter.
9093 (process_queue): Update.
9094
9095 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9096
9097 * dwarf2/read.c (create_cu_from_index_list): Replace
9098 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9099 (create_cus_from_index_list): Likewise.
9100 (create_cus_from_index): Likewise.
9101 (create_signatured_type_table_from_index): Likewise.
9102 (create_cus_from_debug_names_list): Likewise.
9103 (create_cus_from_debug_names): Likewise.
9104 (dwarf2_read_gdb_index): Update.
9105 (dwarf2_read_debug_names): Update.
9106
9107 2020-05-27 Tom Tromey <tom@tromey.com>
9108 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * dwarf2/read.h (struct dwarf2_per_objfile)
9111 <get_type_for_signatured_type, set_type_for_signatured_type>:
9112 New methods.
9113 <m_type_map>: New member.
9114 (struct signatured_type) <type>: Remove.
9115 * dwarf2/read.c
9116 (dwarf2_per_objfile::get_type_for_signatured_type,
9117 dwarf2_per_objfile::set_type_for_signatured_type): New.
9118 (get_signatured_type): Use new methods.
9119
9120 2020-05-27 Tom Tromey <tom@tromey.com>
9121 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9124 (struct dwarf2_per_objfile) <type_units>: New member.
9125 <get_type_unit_group_unshareable>: New method.
9126 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9127 num_symtabs, symtabs>: Remove; move to
9128 type_unit_group_unshareable.
9129 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9130 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9131 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9132
9133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * dwarf2/read.h (struct dwarf2_per_cu_data):
9136 <dwarf2_per_objfile>: Remove.
9137 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9138 dwarf2_per_objfile.
9139 (create_signatured_type_table_from_index): Likewise.
9140 (create_signatured_type_table_from_debug_names): Likewise.
9141 (create_debug_type_hash_table): Likewise.
9142 (fill_in_sig_entry_from_dwo_entry): Likewise.
9143 (create_type_unit_group): Likewise.
9144 (read_comp_units_from_section): Likewise.
9145 (create_cus_hash_table): Likewise.
9146
9147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9150 dwarf2_per_cu_data::dwarf2_per_objfile.
9151 (compute_compunit_symtab_includes): Likewise.
9152 (dwarf2_cu::start_symtab): Likewise.
9153
9154 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9155
9156 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9157 parameter.
9158 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9159 (read_namespace_alias): Update.
9160 (lookup_die_type): Update.
9161 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9162 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9163 Update.
9164 (disassemble_dwarf_expression): Update.
9165
9166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * dwarf2/read.h (struct dwarf2_queue_item): Add
9169 dwarf2_per_objfile parameter, assign new parameter.
9170 <per_objfile>: New field.
9171 * dwarf2/read.c (free_one_cached_comp_unit): Add
9172 dwarf2_per_objfile parameter.
9173 (queue_comp_unit): Likewise.
9174 (dw2_do_instantiate_symtab): Update.
9175 (process_psymtab_comp_unit): Update.
9176 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9177 (process_imported_unit_die): Update.
9178 (queue_and_load_dwo_tu): Update.
9179 (follow_die_offset): Update.
9180 (follow_die_sig_1): Update.
9181
9182 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9185 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9186 (read_call_site_scope): Assign per_objfile.
9187 (dwarf2_per_cu_data::objfile): Remove.
9188 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9189 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9190 dwarf2_per_objfile parameter.
9191 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9192 dwarf2_per_objfile parameter.
9193 (dwarf_expr_reg_to_entry_parameter): Add output
9194 dwarf2_per_objfile parameter.
9195 (locexpr_get_frame_base): Update.
9196 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9197 <push_dwarf_reg_entry_value>: Update.
9198 <call_site_to_target_addr>: Update.
9199 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9200 parameter.
9201 (value_of_dwarf_reg_entry): Update.
9202 (rw_pieced_value): Update.
9203 (indirect_synthetic_pointer): Update.
9204 (dwarf2_evaluate_property): Update.
9205 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9206 parameter.
9207 (locexpr_read_variable): Update.
9208 (locexpr_get_symbol_read_needs): Update.
9209 (loclist_read_variable): Update.
9210
9211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9214 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9215 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9216 parameter.
9217 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9218 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9219 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9220 parameter.
9221 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9222 sect_variable_value): Add dwarf2_per_objfile parameter.
9223 (class dwarf_evaluate_loc_desc) <dwarf_call,
9224 dwarf_variable_value>: Update.
9225 (fetch_const_value_from_synthetic_pointer): Add
9226 dwarf2_per_objfile parameter.
9227 (fetch_const_value_from_synthetic_pointer): Update.
9228 (coerced_pieced_ref): Update.
9229 (class symbol_needs_eval_context) <dwarf_call,
9230 dwarf_variable_value>: Update.
9231 (dwarf2_compile_expr_to_ax): Update.
9232
9233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9234
9235 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9236 parameter.
9237 (dwarf2_evaluate_loc_desc_full): Update.
9238
9239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9240
9241 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9242 parameter.
9243 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9244 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9245 dwarf2_per_objfile parameter.
9246 (decode_debug_loc_dwo_addresses): Likewise.
9247 (dwarf2_find_location_expression): Update.
9248 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9249 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9250 parameter.
9251 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9252 parameter.
9253 (locexpr_describe_location_1): Likewise.
9254 (locexpr_describe_location): Update.
9255
9256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9259 Remove.
9260 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9261 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9262 (dwarf2_compile_property_to_c): Update.
9263 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9264 use text offset from objfile.
9265 (locexpr_tracepoint_var_ref): Update.
9266 (locexpr_generate_c_location): Update.
9267 (loclist_describe_location): Update.
9268 (loclist_tracepoint_var_ref): Update.
9269 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9270 dwarf2_per_objfile parameter.
9271 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9272 use text offset from objfile.
9273 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9274
9275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * dwarf2/expr.h (struct dwarf_expr_context)
9278 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9279 <offset>: Remove.
9280 <per_objfile>: New member.
9281 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9282 dwarf2_per_objfile parameter. Don't set offset, set
9283 per_objfile.
9284 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9285 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9286 a dwarf2_per_objfile object instead of an offset.
9287 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9288 constructor.
9289 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9290 to dwarf2_expr_executor constructor. Don't set offset.
9291 (dwarf2_fetch_cfa_info): Update.
9292 (struct dwarf2_frame_cache) <text_offset>: Remove.
9293 <per_objfile>: New field.
9294 (dwarf2_frame_cache): Update.
9295 (dwarf2_frame_prev_register): Update.
9296 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9297 <dwarf_evaluate_loc_desc>: Add constructor.
9298 (dwarf2_evaluate_loc_desc_full): Update.
9299 (dwarf2_locexpr_baton_eval): Update.
9300 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9301 Add constructor.
9302 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9303
9304 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9307 addr_sized_int_type>: Move to dwarf2_cu.
9308 <int_type>: Move to dwarf2_per_objfile.
9309 (struct dwarf2_per_objfile) <int_type>: Move here.
9310 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9311 addr_sized_int_type>: Move here.
9312 (read_func_scope): Update.
9313 (read_array_type): Update.
9314 (read_tag_string_type): Update.
9315 (attr_to_dynamic_prop): Update.
9316 (dwarf2_per_cu_data::int_type): Rename to...
9317 (dwarf2_per_objfile::int_type): ... this.
9318 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9319 (dwarf2_cu::addr_sized_int_type): ... this.
9320 (read_subrange_type): Update.
9321 (dwarf2_per_cu_data::addr_type): Rename to...
9322 (dwarf2_cu::addr_type): ... this.
9323 (set_die_type): Update.
9324
9325 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9328 data through per_cu->cu.
9329
9330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9333 dwarf2_per_cu_data parameter fo dwarf2_cu.
9334 (lookup_dwo_type_unit): Likewise.
9335 (read_cutu_die_from_dwo): Likewise.
9336 (lookup_dwo_unit): Likewise.
9337 (open_and_init_dwo_file): Likewise.
9338 (lookup_dwo_cutu): Likewise.
9339 (lookup_dwo_comp_unit): Likewise.
9340 (lookup_dwo_type_unit): Likewise.
9341 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9342 (cutu_reader::cutu_reader): Update.
9343
9344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9347 parameter.
9348 (process_full_type_unit): Likewise.
9349 (process_queue): Update.
9350
9351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * dwarf2/read.c (recursively_compute_inclusions): Add
9354 dwarf2_per_objfile parameter.
9355 (compute_compunit_symtab_includes): Likewise.
9356 (process_cu_includes): Update.
9357
9358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9361 parameter.
9362 (create_type_unit_group): Update.
9363 (process_psymtab_comp_unit_reader): Update.
9364 (build_type_psymtabs_reader): Update.
9365
9366 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9367
9368 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9369 object through m_this_cu->cu.
9370
9371 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9372
9373 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9374 the info parameter.
9375 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9376
9377 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9378
9379 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9380 per_objfile parameter.
9381 (load_full_type_unit): Add per_objfile parameter.
9382 (read_signatured_type): Likewise.
9383 (load_full_comp_unit): Likewise.
9384 (load_cu): Likewise.
9385 (dw2_do_instantiate_symtab): Likewise.
9386 (dw2_get_file_names): Likewise.
9387 (dw2_map_symtabs_matching_filename): Update.
9388 (dw_expand_symtabs_matching_file_matcher): Update.
9389 (dw2_map_symbol_filenames): Update.
9390 (process_psymtab_comp_unit): Add per_objfile parameter.
9391 (build_type_psymtabs_1): Update.
9392 (process_skeletonless_type_unit): Update.
9393 (dwarf2_build_psymtabs_hard): Update.
9394 (load_partial_comp_unit): Add per_objfile parameter.
9395 (scan_partial_symbols): Update.
9396 (load_full_comp_unit): Add per_objfile parameter.
9397 (process_imported_unit_die): Update.
9398 (create_cus_hash_table): Update.
9399 (find_partial_die): Update.
9400 (dwarf2_read_addr_index): Update.
9401 (follow_die_offset): Update.
9402 (dwarf2_fetch_die_loc_sect_off): Update.
9403 (dwarf2_fetch_constant_bytes): Update.
9404 (dwarf2_fetch_die_type_sect_off): Update.
9405 (follow_die_sig_1): Update.
9406 (load_full_type_unit): Add per_objfile parameter.
9407 (read_signatured_type): Likewise.
9408
9409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9412 of objfile_name.
9413
9414 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9415
9416 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9417 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9418 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9419 field.
9420 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9421 (create_cus_from_index): Update.
9422 (dwarf2_read_gdb_index): Update.
9423 (create_cus_from_debug_names): Update.
9424 (dwarf2_read_debug_names): Update.
9425 (get_abbrev_section_for_cu): Update.
9426 (create_all_comp_units): Update.
9427 (read_attribute_value): Update.
9428 (get_debug_line_section): Update.
9429 * dwarf2/index-cache.c (index_cache::store): Update.
9430 * dwarf2/index-write.c (save_gdb_index_command): Update.
9431 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9432
9433 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9434
9435 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9436 member.
9437 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9438 dwarf2_per_cu_data::per_bfd.
9439 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9440 (create_type_unit_group): Likewise.
9441 (queue_comp_unit): Remove reference to
9442 per_cu->dwarf2_per_objfile.
9443 (maybe_queue_comp_unit): Likewise.
9444 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9445 (create_cus_hash_table): Assign new field.
9446
9447 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * dwarf2/read.c: Replace
9450 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9451 dwarf2_cu->per_objfile throughout.
9452
9453 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9456 parameter, don't use per_cu->dwarf2_per_objfile.
9457 (dw2_instantiate_symtab): Likewise.
9458 (dw2_find_last_source_symtab): Update.
9459 (dw2_map_expand_apply): Update.
9460 (dw2_lookup_symbol): Update.
9461 (dw2_expand_symtabs_for_function): Update.
9462 (dw2_expand_all_symtabs): Update.
9463 (dw2_expand_symtabs_with_fullname): Update.
9464 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9465 don't use per_cu->dwarf2_per_objfile.
9466 (dw2_expand_marked_cus): Update.
9467 (dw2_find_pc_sect_compunit_symtab): Update.
9468 (dw2_debug_names_lookup_symbol): Update.
9469 (dw2_debug_names_expand_symtabs_for_function): Update.
9470 (dw2_debug_names_map_matching_symbols): Update.
9471 (dwarf2_psymtab::expand_psymtab): Update.
9472
9473 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9476 <per_objfile>: New member.
9477 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9478 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9479 call to dwarf2_cu.
9480 (cutu_reader::cutu_reader): Update.
9481 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9482
9483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9486 struct dwarf2_per_objfile.
9487 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9488 dwarf2_per_bfd.
9489 * dwarf2/read.c (set_die_type): Update.
9490 (get_die_type_at_offset): Update.
9491
9492 2020-05-27 Tom Tromey <tom@tromey.com>
9493 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9496 method.
9497 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9498 get_symtab, set_symtab>: New methods.
9499 <m_symtabs>: New field.
9500 (struct dwarf2_psymtab): Derive from partial_symtab.
9501 <readin_p, get_compunit_symtab>: Declare methods.
9502 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9503 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9504 New methods.
9505 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9506 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9507 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9508 (dw2_symtab_iter_next, dw2_print_stats)
9509 (dw2_expand_symtabs_with_fullname)
9510 (dw2_expand_symtabs_matching_one)
9511 (dw_expand_symtabs_matching_file_matcher)
9512 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9513 (dw2_debug_names_iterator::next)
9514 (dw2_debug_names_map_matching_symbols)
9515 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9516 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9517 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9518 New methods.
9519 (get_compunit_symtab, process_full_comp_unit)
9520 (process_full_type_unit): Update.
9521 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9522
9523 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9524
9525 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9526 then introduce a new dwarf2_per_objfile type.
9527 <read_line_string>: Move to the new dwarf2_per_objfile type.
9528 <objfile>: Likewise.
9529 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9530 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9531 dwarf2_per_objfile->per_bfd.
9532 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9533 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9534 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9535 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9536 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9537 (dwarf2_per_objfile::locate_sections): Rename to...
9538 (dwarf2_per_bfd::locate_sections): ... this.
9539 (dwarf2_per_objfile::get_cutu): Rename to...
9540 (dwarf2_per_bfd::get_cutu): ... this.
9541 (dwarf2_per_objfile::get_cu): Rename to...
9542 (dwarf2_per_bfd::get_cu): ... this.
9543 (dwarf2_per_objfile::get_tu): Rename to...
9544 (dwarf2_per_bfd::get_tu): ... this.
9545 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9546 (dwarf2_per_bfd::allocate_per_cu): ... this.
9547 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9548 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9549 (get_gdb_index_contents_ftype): Change parameter from
9550 dwarf2_per_objfile to dwarf2_per_bfd.
9551 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9552 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9553
9554 2020-05-27 Tom Tromey <tom@tromey.com>
9555 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9558 (allocate_piece_closure): Set "per_objfile" member.
9559 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9560 (locexpr_describe_location, loclist_describe_location): Use new
9561 member.
9562 * dwarf2/read.c (read_call_site_scope)
9563 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9564 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9565 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9566 handle_data_member_location): Set per_objfile member.
9567 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9568 member.
9569 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9570
9571 2020-05-27 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9574 allocate_signatured_type>: Declare new methods.
9575 <m_num_psymtabs>: New member.
9576 (struct dwarf2_per_cu_data) <index>: New member.
9577 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9578 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9579 (create_cu_from_index_list): Use allocate_per_cu.
9580 (create_signatured_type_table_from_index)
9581 (create_signatured_type_table_from_debug_names)
9582 (create_debug_type_hash_table, add_type_unit)
9583 (read_comp_units_from_section): Use allocate_signatured_type.
9584
9585 2020-05-27 Tom Tromey <tom@tromey.com>
9586
9587 * psymtab.c (partial_map_expand_apply)
9588 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9589 (psym_lookup_global_symbol_language)
9590 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9591 (psym_print_stats, psym_expand_symtabs_for_function)
9592 (psym_map_symbol_filenames, psym_map_matching_symbols)
9593 (psym_expand_symtabs_matching)
9594 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9595 (maintenance_check_psymtabs): Update.
9596 * psympriv.h (struct partial_symtab) <readin_p,
9597 get_compunit_symtab>: Add objfile parameter.
9598 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9599 Likewise.
9600 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9601 get_compunit_symtab>: Likewise.
9602 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9603
9604 2020-05-27 Tom Tromey <tom@tromey.com>
9605
9606 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9607 member.
9608 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9609 (create_cu_from_index_list)
9610 (create_signatured_type_table_from_index)
9611 (create_signatured_type_table_from_debug_names)
9612 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9613 (dwarf2_create_include_psymtab)
9614 (create_debug_type_hash_table, add_type_unit)
9615 (create_type_unit_group, read_comp_units_from_section)
9616 (dwarf2_compute_name, create_cus_hash_table)
9617 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9618 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9619 obstack.
9620 (dw2_get_real_path): Likewise. Change argument to
9621 dwarf2_per_objfile.
9622
9623 2020-05-27 Luis Machado <luis.machado@linaro.org>
9624
9625 PR tdep/26000
9626 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9627 for ldrd (immediate).
9628
9629 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9630
9631 * command.h: Add comment giving the name of class_tui.
9632 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9633 create the fake command for the help for class_tui.
9634
9635 2020-05-26 Tom Tromey <tromey@adacore.com>
9636
9637 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9638 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9639 (val_atr): New function.
9640 (value_val_atr): Use it.
9641 * ada-valprint.c (print_optional_low_bound): Change low bound
9642 handling for enums.
9643 (val_print_packed_array_elements): Don't call discrete_position.
9644 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9645 discrete_position for enum types.
9646 * language.c (default_print_array_index): Change type.
9647 * language.h (struct language_defn) <la_print_array_index>: Add
9648 index_type parameter, change type of index_value.
9649 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9650 (default_print_array_index): Update.
9651 * valprint.c (maybe_print_array_index): Don't call
9652 value_from_longest. Update.
9653 (value_print_array_elements): Don't call discrete_position.
9654
9655 2020-05-26 Tom Tromey <tromey@adacore.com>
9656
9657 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9658 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9659
9660 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9661
9662 PR gdb/13519
9663 * avr-tdep.c (avr_integer_to_address): Return data or code
9664 address accordingly to the second 'type' argument of the
9665 function.
9666
9667 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9668
9669 * infcmd.c, inferior.h: (construct_inferior_arguments):
9670 Moved function from here to gdbsupport/common-inferior.{h,cc}
9671
9672 2020-05-23 Tom Tromey <tom@tromey.com>
9673
9674 Revert commit eca1f90c:
9675 * NEWS: Remove entry for completion styling.
9676 * completer.c (_rl_completion_prefix_display_length): Move
9677 declaration later.
9678 (gdb_fnprint): Revert.
9679 (gdb_display_match_list_1): Likewise.
9680 * cli/cli-style.c (completion_prefix_style)
9681 (completion_difference_style, completion_suffix_style): Remove.
9682 (_initialize_cli_style): Revert.
9683 * cli/cli-style.h (completion_prefix_style)
9684 (completion_difference_style, completion_suffix_style): Don't
9685 declare.
9686
9687 2020-05-24 Pedro Alves <palves@redhat.com>
9688
9689 * symtab.c (completion_list_add_name): Return boolean indication
9690 of whether the symbol matched.
9691 (completion_list_add_symbol): Don't try to remove C++ aliases if
9692 the symbol didn't match in the first place.
9693 * symtab.h (completion_list_add_name): Return bool.
9694
9695 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9696
9697 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9698 type::field.
9699
9700 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9701
9702 GDB 9.2 released.
9703
9704 2020-05-23 Tom Tromey <tom@tromey.com>
9705
9706 * NEWS: Add entry for completion styling.
9707 * completer.c (_rl_completion_prefix_display_length): Move
9708 declaration earlier.
9709 (gdb_fnprint): Use completion_style.
9710 (gdb_display_match_list_1): Likewise.
9711 * cli/cli-style.c (completion_prefix_style)
9712 (completion_difference_style, completion_suffix_style): New
9713 globals.
9714 (_initialize_cli_style): Register new globals.
9715 * cli/cli-style.h (completion_prefix_style)
9716 (completion_difference_style, completion_suffix_style): Declare.
9717
9718 2020-05-23 Pedro Alves <palves@redhat.com>
9719
9720 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9721 (parse_escape): Use ISDIGIT instead of isdigit.
9722 (puts_debug): Use gdb_isprint instead of isprint.
9723 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9724 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9725 ISSPACE instead of isspace.
9726 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9727 instead of isspace.
9728 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9729 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9730 instead of isxdigit and ISDIGIT instead of isdigit.
9731
9732 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * gdbtypes.h (struct type) <field>: New method.
9735 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9736 or type::field.
9737
9738 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9741 (TYPE_FIELDS): Use type::fields. Change all call sites that
9742 modify the propery to use type::set_fields instead.
9743
9744 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9745
9746 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9747 type::num_fields instead.
9748
9749 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9752 methods.
9753 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9754 that modify the number of fields to use type::set_num_fields
9755 instead.
9756
9757 2020-05-22 Tom Tromey <tromey@adacore.com>
9758
9759 * compile/compile-object-load.h (munmap_list_free): Don't
9760 declare.
9761
9762 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9763
9764 * annotate.c (annotate_source_line): Update return type, add call
9765 to update current symtab and line.
9766 * annotate.h (annotate_source_line): Update return type, and
9767 extend header comment.
9768 * source.c (info_line_command): Check annotation_level before
9769 calling annotate_source_line.
9770 * stack.c (print_frame_info): If calling annotate_source_line
9771 returns true, then don't print any other source line information.
9772
9773 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9774
9775 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9776
9777 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * coffread.c (patch_type): Remove NULL check before xfree.
9780 * corefile.c (set_gnutarget): Likewise.
9781 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9782 * exec.c (build_section_table): Likewise.
9783 * remote.c (remote_target::pass_signals): Likewise.
9784 * utils.c (n_spaces): Likewise.
9785 * cli/cli-script.c (document_command): Likewise.
9786 * i386-windows-tdep.c (core_process_module_section): Likewise.
9787 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9788
9789 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * symfile.c (reread_symbols): Clear objfile's section_offsets
9792 vector and section indices, re-compute them by calling
9793 sym_offsets.
9794
9795 2020-05-20 Tom Tromey <tromey@adacore.com>
9796
9797 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9798 (desc_one_bound, desc_index_type): Compute field name.
9799
9800 2020-05-20 Tom de Vries <tdevries@suse.de>
9801
9802 PR symtab/25833
9803 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9804
9805 2020-05-20 Alan Modra <amodra@gmail.com>
9806
9807 PR 25993
9808 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9809 bfd_set_filename.
9810 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9811 passed to bfd_set_filename.
9812 * symfile-mem.c (add_vsyscall_page): Likewise for string
9813 passed to symbol_file_add_from_memory.
9814 (symbol_file_add_from_memory): Make name param a const char* and
9815 don't strdup.
9816
9817 2020-05-20 Alan Modra <amodra@gmail.com>
9818
9819 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9820 rather than accessing bfd->filename directly.
9821 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9822 and use bfd_section_name.
9823 * dwarf2/frame.c (decode_frame_entry): Likewise.
9824 * exec.c (exec_set_section_address): Likewise.
9825 * solib-aix.c (solib_aix_bfd_open): Likewise.
9826 * stap-probe.c (get_stap_base_address): Likewise.
9827 * symfile.c (reread_symbols): Likewise.
9828
9829 2020-05-19 Tom Tromey <tromey@adacore.com>
9830
9831 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9832
9833 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9836
9837 2020-05-19 Pedro Alves <palves@redhat.com>
9838
9839 * NEWS (set exec-file-mismatch): Adjust entry.
9840 * exec.c: Include "build-id.h".
9841 (validate_exec_file): Try to match build IDs instead of filenames.
9842 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9843 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9844 and pass down 'warn_if_slow'.
9845 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9846 gdb_bfd_open_closure to pass it down.
9847 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9848
9849 2020-05-19 Pedro Alves <palves@redhat.com>
9850
9851 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9852 * target.c (target_fileio_open_1): Rename to target_fileio_open
9853 and make extern. Use bool.
9854 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9855 (target_fileio_read_alloc_1): Adjust.
9856 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9857 (target_fileio_open_warn_if_slow): Delete declaration.
9858
9859 2020-05-19 Pedro Alves <palves@redhat.com>
9860
9861 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9862 Adjust all callers.
9863
9864 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9865
9866 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9867 whether disp is negative.
9868
9869 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * symfile.h (struct symfile_segment_data)
9872 <~symfile_segment_data>: Remove.
9873 <segment_info>: Change to std::vector.
9874 * symfile.c (default_symfile_segments): Update.
9875 * elfread.c (elf_symfile_segments): Update.
9876
9877 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9878
9879 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9880 <segments>: New.
9881 <segment_bases, segment_sizes>: Remove.
9882 * symfile.c (default_symfile_segments): Update.
9883 * elfread.c (elf_symfile_segments): Update.
9884 * remote.c (remote_target::get_offsets): Update.
9885 * solib-target.c (solib_target_relocate_section_addresses):
9886 Update.
9887
9888 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * symfile.h (struct symfile_segment_data): Initialize fields.
9891 <~symfile_segment_data>: Add.
9892 (symfile_segment_data_up): New.
9893 (struct sym_fns) <sym_segments>: Return a
9894 symfile_segment_data_up.
9895 (default_symfile_segments): Return a symfile_segment_data_up.
9896 (free_symfile_segment_data): Remove.
9897 (get_symfile_segment_data): Return a symfile_segment_data_up.
9898 * symfile.c (default_symfile_segments): Likewise.
9899 (get_symfile_segment_data): Likewise.
9900 (free_symfile_segment_data): Remove.
9901 (symfile_find_segment_sections): Update.
9902 * elfread.c (elf_symfile_segments): Return a
9903 symfile_segment_data_up.
9904 * remote.c (remote_target::get_offsets): Update.
9905 * solib-target.c (solib_target_relocate_section_addresses):
9906 Update.
9907 * symfile-debug.c (debug_sym_segments): Return a
9908 symfile_segment_data_up.
9909
9910 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9911
9912 PR build/25981
9913 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9914 Hardcode register numbers.
9915
9916 PR build/25981
9917 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9918 procfs_find_LDT_entry): Remove.
9919 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9920 procfs_find_LDT_entry): Remove.
9921 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9922 Remove.
9923
9924 2020-05-17 Pedro Alves <palves@redhat.com>
9925 Andrew Burgess <andrew.burgess@embecosm.com>
9926 Keno Fischer <keno@juliacomputing.com>
9927
9928 PR gdb/25741
9929 * breakpoint.c (build_target_condition_list): Update comments.
9930 (build_target_command_list): Update comments and skip matching
9931 locations.
9932 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9933 a separate function. Simplify "set breakpoint auto-hw off"
9934 handling.
9935 (insert_breakpoints): Update comment.
9936 (tracepoint_locations_match): New parameter. For breakpoints,
9937 compare location types too, if the caller wants to.
9938 (handle_automatic_hardware_breakpoints): New functions.
9939 (bp_location_is_less_than): Also sort by location type and
9940 hardware breakpoint length.
9941 (update_global_location_list): Handle "set breakpoint auto-hw on"
9942 here.
9943 (update_breakpoint_locations): Ask breakpoint_locations_match to
9944 ignore location types.
9945
9946 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9947
9948 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9949 type::name instead.
9950
9951 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * gdbtypes.h (struct type) <name, set_name>: New methods.
9954 (TYPE_CODE): Use type::name. Change all call sites used to set
9955 the name to use type::set_name instead.
9956
9957 2020-05-16 Tom Tromey <tom@tromey.com>
9958
9959 * top.c (quit_force): Update.
9960 * infrun.c (handle_no_resumed): Update.
9961 * top.h (all_uis): New function.
9962 (ALL_UIS): Remove.
9963
9964 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9967
9968 2020-05-16 Pedro Alves <palves@redhat.com>
9969
9970 * ia64-linux-nat.c
9971 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9972 Declare method.
9973 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9974
9975 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9978 (sparc64_adi_info): Likewise.
9979
9980 2020-05-15 Tom Tromey <tom@tromey.com>
9981
9982 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9983 block_objfile.
9984 (lookup_objfile_from_block): Remove.
9985 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9986 (lookup_global_symbol): Use block_objfile.
9987 * symtab.h (lookup_objfile_from_block): Don't declare.
9988 * printcmd.c (clear_dangling_display_expressions): Use
9989 block_objfile.
9990 * parse.c (operator_check_standard): Use block_objfile.
9991
9992 2020-05-15 Tom Tromey <tom@tromey.com>
9993
9994 * language.c (language_alloc_type_symbol): Set
9995 SYMBOL_SECTION.
9996 * symtab.c (initialize_objfile_symbol): Remove.
9997 (allocate_symbol): Remove.
9998 (allocate_template_symbol): Remove.
9999 * dwarf2/read.c (fixup_go_packaging): Use "new".
10000 (new_symbol): Use "new".
10001 (read_variable): Don't call initialize_objfile_symbol. Use
10002 "new".
10003 (read_func_scope): Use "new".
10004 * xcoffread.c (process_xcoff_symbol): Don't call
10005 initialize_objfile_symbol.
10006 (SYMBOL_DUP): Remove.
10007 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10008 "new".
10009 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10010 (allocate_template_symbol): Don't declare.
10011 (struct symbol): Add copy constructor. Change defaults.
10012 * jit.c (finalize_symtab): Use "new".
10013 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10014 Use "new".
10015 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10016 (common_block_end): Use "new".
10017 * mdebugread.c (parse_symbol): Use "new".
10018 (new_symbol): Likewise.
10019
10020 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10021
10022 * NEWS: Mention changes to help and apropos.
10023
10024 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10025
10026 * command.h (enum command_class): Improve comments, document
10027 that class_alias is for user-defined aliases, give the class
10028 name for each class, remove unused class_xdb.
10029 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10030 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10031 by a precise class.
10032 * infcmd.c (_initialize_infcmd): Likewise.
10033 * reverse.c (_initialize_reverse): Likewise.
10034 * stack.c (_initialize_stack): Likewise.
10035 * symfile.c (_initialize_symfile): Likewise.
10036 * tracepoint.c (_initialize_tracepoint): Likewise.
10037
10038 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10039
10040 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10041 when their aliased command is traversed.
10042 (help_cmd): Add fput_command_names_styled call to
10043 output command name and aliases when command has an alias.
10044
10045 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10046
10047 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10048 * cli/cli-decode.c (help_cmd_list): Declare as static,
10049 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10050 a command together with the command.
10051 (fput_command_name_styled, fput_command_names_styled): New functions.
10052 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10053 fput_command_name_styled.
10054 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10055 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10056
10057 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10058
10059 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10060 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10061 * command.h (cmd_show_list): Likewise.
10062 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10063 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10064
10065 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10066
10067 * unittests/command-def-selftests.c (traverse_command_structure):
10068 Verify all commands of a list have the same prefix command and
10069 that only the top cmdlist commands have a null prefix.
10070
10071 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10072
10073 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10074 as prefix, not one of its aliases.
10075 (set_cmd_prefix): Remove.
10076 (do_add_cmd): Centralize the setting of the prefix of a command, when
10077 command is defined after its full chain of prefix commands.
10078 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10079 (add_setshow_cmd_full): Likewise.
10080 (update_prefix_field_of_prefixed_commands): New function.
10081 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10082 update_prefix_field_of_prefixed_commands.
10083 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10084 addresses of remote_set_cmdlist and remote_show_cmdlist given
10085 as argument, not the address of an argument.
10086 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10087 * gdb/remote.c (_initialize_remote): Likewise.
10088
10089 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10090
10091 * cli/cli-cmds.c (alias_command): Check for an existing alias
10092 using lookup_cmd_composition, as valid_command_p is too strict
10093 and forbids aliases that are the prefix of an existing alias
10094 or command.
10095 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10096 command is properly recognised as a valid command.
10097
10098 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10099
10100 * unittests/help-doc-selftests.c: Rename to
10101 unittests/command-def-selftests.c
10102 * unittests/command-def-selftests.c (help_doc_tests): Update some
10103 comments.
10104 (command_structure_tests, traverse_command_structure): New namespace
10105 and function.
10106 (command_structure_invariants_tests): New function.
10107 (_initialize_command_def_selftests) Renamed from
10108 _initialize_help_doc_selftests, register command_structure_invariants
10109 selftest.
10110
10111 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10112
10113 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10114 an alias of 'show'.
10115
10116 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10117
10118 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10119 ada_is_fixed_point_type. Update all callers.
10120 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10121 all callers.
10122 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10123 Update all callers.
10124 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10125 print_fixed_point_type. Update all callers.
10126 * ada-valprint.c (ada_value_print_num): Replace call to
10127 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10128
10129 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10130
10131 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10132 processors.
10133 (cpu_supports_bts): Add CV_AMD case.
10134
10135 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10136 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * infrun.c (stop_all_threads): Collect multiple wait events at
10139 each pass.
10140
10141 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10142
10143 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10144 type::code instead.
10145
10146 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10147
10148 * gdbtypes.h (struct type) <code, set_code>: New methods.
10149 (TYPE_CODE): Use type::code. Change all call sites used to set
10150 the code to use type::set_code instead.
10151
10152 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10153 Tom de Vries <tdevries@suse.de>
10154 Pedro Alves <palves@redhat.com>
10155
10156 PR threads/25478
10157 * infrun.c (stop_all_threads): Do NOT ignore
10158 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10159 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10160 received.
10161 (handle_no_resumed): Remove code handling a live inferior with no
10162 threads.
10163 * remote.c (has_single_non_exited_thread): New.
10164 (remote_target::update_thread_list): Do not delete a thread if is
10165 the last thread of the process.
10166 * thread.c (thread_select): Call delete_exited_threads instead of
10167 prune_threads.
10168
10169 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10170
10171 * infrun.c (stop_all_threads): Enable/disable thread events of all
10172 targets. Move a debug message denoting the end of the function
10173 into the SCOPED_EXIT block.
10174
10175 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10176
10177 * process-stratum-target.h: Include <set>.
10178 (all_non_exited_process_targets, switch_to_target_no_thread): New
10179 function declarations.
10180 * process-stratum-target.c (all_non_exited_process_targets)
10181 (switch_to_target_no_thread): New function implementations.
10182
10183 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10184
10185 * infrun.c (handle_inferior_event): Extract out a piece of code
10186 into...
10187 (mark_non_executing_threads): ...this new function.
10188
10189 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10190
10191 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10192 use.
10193
10194 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10195
10196 * regcache.c (regcache_read_pc_protected): New function
10197 implementation that returns 0 if the PC cannot read via
10198 'regcache_read_pc'.
10199 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10200 instead of 'regcache_read_pc'.
10201 (keep_going_pass_signal): Ditto.
10202
10203 2020-05-13 Tom Tromey <tromey@adacore.com>
10204
10205 * ada-lang.c (align_value): Remove.
10206 (ada_template_to_fixed_record_type_1): Use align_up.
10207
10208 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10209
10210 * async-event.c: Update the copyright year.
10211 * async-event.h: Update the copyright year.
10212
10213 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10214
10215 * objfiles.h (is_addr_in_objfile,
10216 shared_objfile_contains_address_p): Return bool.
10217 * objfile.c (is_addr_in_objfile,
10218 shared_objfile_contains_address_p): Return bool.
10219
10220 2020-05-11 Tom Tromey <tromey@adacore.com>
10221
10222 * cli/cli-cmds.c (info_command): Restore.
10223 (_initialize_cli_cmds): Use add_prefix_command for "info".
10224 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10225
10226 2020-05-11 Tom Tromey <tromey@adacore.com>
10227
10228 * ada-lang.c (ada_value_primitive_field): Now public.
10229 * ada-lang.h (ada_value_primitive_field): Declare.
10230 * ada-valprint.c (print_field_values): Use
10231 ada_value_primitive_field for wrapper fields.
10232
10233 2020-05-11 Tom de Vries <tdevries@suse.de>
10234
10235 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10236 MODULE_DOMAIN.
10237
10238 2020-05-11 Tom de Vries <tdevries@suse.de>
10239
10240 PR symtab/25941
10241 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10242 with length 0, if not gdb-produced.
10243 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10244
10245 2020-05-09 Tom de Vries <tdevries@suse.de>
10246
10247 PR gdb/25955
10248 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10249 calculation.
10250
10251 2020-05-09 Tom Tromey <tom@tromey.com>
10252
10253 * top.c (server_command): Now bool.
10254 * top.h (server_command): Now bool.
10255
10256 2020-05-08 Tom Tromey <tromey@adacore.com>
10257
10258 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10259 already being processed.
10260
10261 2020-05-08 Tom Tromey <tom@tromey.com>
10262
10263 * printcmd.c (struct display) <next>: Remove.
10264 <display>: New constructor.
10265 <exp_string>: Now a std::string.
10266 <enabled_p>: Now a bool.
10267 (display_number): Move definition earlier.
10268 (displays): Rename from display_chain. Now a std::vector.
10269 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10270 (display_command): Update.
10271 (do_one_display, disable_display)
10272 (enable_disable_display_command, do_enable_disable_display):
10273 Update.
10274 (free_display): Remove.
10275 (clear_displays): Rewrite.
10276 (delete_display): Update.
10277 (map_display_numbers): Use function_view. Remove "data"
10278 parameter. Update.
10279 (do_delete_display): Remove.
10280 (undisplay_command): Update.
10281 (do_one_display, do_displays, disable_display)
10282 (info_display_command): Update.
10283 (do_enable_disable_display): Remove.
10284 (enable_disable_display_command)
10285 (clear_dangling_display_expressions): Update.
10286
10287 2020-05-08 Tom Tromey <tom@tromey.com>
10288
10289 * symtab.c (set_symbol_cache_size)
10290 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10291 (maintenance_print_symbol_cache_statistics): Update.
10292 * symmisc.c (print_symbol_bcache_statistics)
10293 (print_objfile_statistics, maintenance_print_objfiles)
10294 (maintenance_info_symtabs, maintenance_check_symtabs)
10295 (maintenance_expand_symtabs, maintenance_info_line_tables):
10296 Update.
10297 * symfile-debug.c (set_debug_symfile): Update.
10298 * source.c (forget_cached_source_info): Update.
10299 * python/python.c (gdbpy_progspaces): Update.
10300 * psymtab.c (maintenance_info_psymtabs): Update.
10301 * probe.c (parse_probes): Update.
10302 * linespec.c (iterate_over_all_matching_symtabs)
10303 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10304 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10305 * exec.c (exec_target::close): Update.
10306 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10307 * breakpoint.c (print_one_breakpoint_location)
10308 (create_longjmp_master_breakpoint)
10309 (create_std_terminate_master_breakpoint): Update.
10310 * progspace.c (program_spaces): Now a std::vector.
10311 (maybe_new_address_space): Update.
10312 (add_program_space): Remove.
10313 (program_space::program_space): Update.
10314 (remove_program_space): Update.
10315 (number_of_program_spaces): Remove.
10316 (print_program_space, update_address_spaces): Update.
10317 * progspace.h (program_spaces): Change type.
10318 (ALL_PSPACES): Remove.
10319 (number_of_program_spaces): Don't declare.
10320 (struct program_space) <next>: Remove.
10321
10322 2020-05-08 Tom Tromey <tom@tromey.com>
10323
10324 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10325 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10326 (enable_break): Update.
10327 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10328 (frv_fdpic_find_canonical_descriptor): Update.
10329 (frv_fetch_objfile_link_map): Update.
10330 * progspace.c (program_space::free_all_objfiles): Update.
10331 (program_space::solibs): New method.
10332 * progspace.h (struct program_space) <solibs>: New method.
10333 * solist.h (master_so_list): Don't declare.
10334 (ALL_SO_LIBS): Remove.
10335 * solib.h (so_list_head): Remove.
10336 (update_solib_list): Update comment.
10337 * solib.c (master_so_list): Remove.
10338 (solib_used, update_solib_list, solib_add)
10339 (info_sharedlibrary_command, clear_solib)
10340 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10341
10342 2020-05-08 Tom Tromey <tom@tromey.com>
10343
10344 * extension.c (extension_languages): Now a std::array.
10345 (ALL_EXTENSION_LANGUAGES): Remove.
10346 (get_ext_lang_defn, get_ext_lang_of_file)
10347 (eval_ext_lang_from_control_command): Update.
10348 (finish_ext_lang_initialization)
10349 (auto_load_ext_lang_scripts_for_objfile)
10350 (ext_lang_type_printers::ext_lang_type_printers)
10351 (apply_ext_lang_type_printers)
10352 (ext_lang_type_printers::~ext_lang_type_printers)
10353 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10354 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10355 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10356 (get_matching_xmethod_workers, ext_lang_colorize)
10357 (ext_lang_before_prompt): Update.
10358 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10359
10360 2020-05-08 Tom Tromey <tom@tromey.com>
10361
10362 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10363 overload.
10364 <swap_string, m_string>: Remove.
10365 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10366 Update.
10367 * stabsread.c (define_symbol, read_type): Update.
10368 * linespec.c (find_linespec_symbols): Update.
10369 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10370 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10371 * dbxread.c (read_dbx_symtab): Update.
10372 * cp-support.h (cp_canonicalize_string_full)
10373 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10374 Return unique_xmalloc_ptr.
10375 * cp-support.c (inspect_type): Update.
10376 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10377 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10378 Likewise.
10379 * c-typeprint.c (print_name_maybe_canonical): Update.
10380 * break-catch-throw.c (check_status_exception_catchpoint):
10381 Update.
10382
10383 2020-05-08 Tom de Vries <tdevries@suse.de>
10384
10385 * infrun.c (follow_fork): Copy current_line and current_symtab to
10386 child thread.
10387
10388 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10389
10390 * async-event.c (struct async_signal_handler, struct
10391 async_event_handler): Reformat, remove typedef.
10392
10393 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10394
10395 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10396 access thistype->main_type->dyn_prop_list directly.
10397
10398 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10401 (remove_dyn_prop): Remove. Update all users to use
10402 type::remove_dyn_prop.
10403 * gdbtypes.c (remove_dyn_prop): Rename to...
10404 (type::remove_dyn_prop): ... this.
10405
10406 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10407
10408 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10409 (add_dyn_prop): Remove. Update all users to use
10410 type::add_dyn_prop.
10411 * gdbtypes.c (add_dyn_prop): Rename to...
10412 (type::add_dyn_prop): ... this.
10413
10414 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10417 (get_dyn_prop): Remove. Update all users to use
10418 type::dyn_prop.
10419 * gdbtypes.c (get_dyn_prop): Rename to...
10420 (type::dyn_prop): ... this.
10421
10422 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10423
10424 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10425
10426 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10429 instruction, skip it if it's there.
10430
10431 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10434
10435 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10438 * gdbtypes.c (recursive_dump_type): Remove use of
10439 TYPE_INCOMPLETE.
10440
10441 2020-05-03 Tom Tromey <tom@tromey.com>
10442
10443 * breakpoint.c (catch_command, tcatch_command): Remove.
10444 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10445 add_show_prefix_cmd.
10446 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10447 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10448 Remove.
10449 (add_internal_problem_command): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 * mips-tdep.c (set_mipsfpu_command): Remove.
10452 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10453 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10454 (_initialize_index_cache): Use add_basic_prefix_cmd.
10455 * memattr.c (dummy_cmd): Remove.
10456 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10457 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10458 (_initialize_tui_win): Use add_basic_prefix_cmd,
10459 add_show_prefix_cmd.
10460 * cli/cli-logging.c (set_logging_command): Remove.
10461 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10462 add_show_prefix_cmd.
10463 (show_logging_command): Remove.
10464 * target.c (target_command): Remove.
10465 (add_target): Use add_basic_prefix_cmd.
10466
10467 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10468
10469 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10470
10471 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10472
10473 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10474 info_command.
10475
10476 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10477
10478 * nbsd-nat.c (nbsd_enable_proc_events)
10479 (nbsd_nat_target::post_startup_inferior): Add.
10480 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10481 (nbsd_nat_target::update_thread_list): Rewrite.
10482 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10483 "PTRACE_LWP_CREATE".
10484 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10485
10486 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10487
10488 * stack.c (_initialize_stack): Remove duplicated creation
10489 of "frame" command and "f" alias.
10490
10491 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10492
10493 PR gdb/18706
10494 * gdbtypes.c (check_typedef): Calculate size of array of
10495 stubbed type.
10496
10497 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10498
10499 PR gdb/15559
10500 * i386-tdep.c (i386_push_dummy_call): Call
10501 i386_thiscall_push_dummy_call.
10502 (i386_thiscall_push_dummy_call): New function.
10503 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10504 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10505 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10506
10507 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * gdbarch.sh (do_read): Add shellcheck disable directive for
10510 warning SC2162.
10511
10512 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10515 "referenced but not assigned" warning.
10516
10517 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10518
10519 * gdbarch.sh: Remove code that sets fallbackdefault.
10520
10521 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10522
10523 * gdbarch.sh: Use shell operators && and || instead of
10524 -a and -o.
10525
10526 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10527
10528 * gdbarch.sh: Use $(...) instead of `...`.
10529
10530 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * gdbarch.sh: Use double quotes around variables.
10533
10534 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10535
10536 * gdbarch.sh: Use %s with printf, instead of variables in the
10537 format string.
10538
10539 2020-04-29 Tom Tromey <tromey@adacore.com>
10540
10541 PR ada/25875:
10542 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10543 type fields here.
10544 (read_enumeration_type): Call
10545 update_enumeration_type_from_children later. Update comments.
10546 (process_enumeration_scope): Don't create type fields.
10547
10548 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10549
10550 * nbsd-tdep.c: Include "xml-syscall.h".
10551 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10552
10553 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10554
10555 * nbsd-nat.c: Include "sys/wait.h".
10556 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10557 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10558 (nbsd_nat_target::remove_exec_catchpoint)
10559 (nbsd_nat_target::set_syscall_catchpoint): Add.
10560 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10561 (nbsd_nat_target::insert_exec_catchpoint)
10562 (nbsd_nat_target::remove_exec_catchpoint)
10563 (nbsd_nat_target::set_syscall_catchpoint): Add.
10564 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10565 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10566 `nbsd_get_syscall_number'.
10567
10568 2020-04-29 Tom Tromey <tom@tromey.com>
10569
10570 * stack.c (print_block_frame_labels): Remove.
10571
10572 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10573
10574 PR gdb/17320
10575 * ada-valprint.c (val_print_packed_array_elements): Move array
10576 end bracket to new line.
10577 (ada_val_print_string): Remove extra spaces before first array
10578 element.
10579 * c-valprint.c (c_value_print_array): Likewise.
10580 * m2-valprint.c (m2_print_array_contents): Likewise.
10581 (m2_value_print_inner): Likewise.
10582 * p-valprint.c (pascal_value_print_inner): Likewise.
10583 * valprint.c (generic_val_print_array): Likewise.
10584 (value_print_array_elements): Move first array element and array
10585 end bracket to new line.
10586
10587 2020-04-29 Tom de Vries <tdevries@suse.de>
10588
10589 PR symtab/25889
10590 * linespec.c (find_method): Fix ix calculation.
10591
10592 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10593
10594 * syscalls/update-netbsd.sh: New file.
10595 * syscalls/netbsd.xml: Regenerate.
10596 * data-directory/Makefile.in: Register `netbsd.xml' in
10597 `SYSCALLS_FILES'.
10598
10599 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * syscalls/update-freebsd.sh: Add double quotes.
10602
10603 2020-04-28 Tom Tromey <tom@tromey.com>
10604
10605 * NEWS: Update.
10606 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10607 (cmdpy_init): Allow class_tui.
10608
10609 2020-04-28 Mark Williams <mark@myosotissp.com>
10610
10611 PR gdb/24480
10612 * dwarf2read.c: Add missing assingments to list_in_scope when
10613 start_symtab was already called.
10614
10615 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10616
10617 PR gdb/25881
10618 * dwarf2/read.c (offset_map_type): Use
10619 gdb:hash_enum<sect_offset> as hash function.
10620
10621 2020-04-28 Tom de Vries <tdevries@suse.de>
10622
10623 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10624 with DW_AT_signature.
10625
10626 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10627
10628 * configure.ac: Remove check for fs_base/gs_base in
10629 user_regs_struct.
10630 * configure: Re-generate.
10631 * config.in: Re-generate.
10632 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10633 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10634 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10635
10636 2020-04-27 Luis Machado <luis.machado@linaro.org>
10637
10638 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10639 problematic inline frame unwinding situation.
10640 * frame.c (frame_id_computed_p): New function.
10641 * frame.h (frame_id_computed_p): New prototype.
10642
10643 2020-04-26 Tom Tromey <tom@tromey.com>
10644
10645 * command.h (enum command_class) <class_pseudo>: Remove.
10646
10647 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10648
10649 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10650 and whitespace.
10651
10652 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10653
10654 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10655 `PT_GET_PROCESS_STATE' block.
10656
10657 2020-04-24 Tom Tromey <tom@tromey.com>
10658
10659 * symtab.h (symbol_get_demangled_name): Don't declare.
10660 * symtab.c (symbol_get_demangled_name): Remove.
10661 (general_symbol_info::natural_name)
10662 (general_symbol_info::demangled_name): Update.
10663
10664 2020-04-24 Tom Tromey <tom@tromey.com>
10665
10666 PR rust/25025:
10667 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10668
10669 2020-04-24 Tom Tromey <tom@tromey.com>
10670
10671 PR symtab/12707:
10672 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10673 exists.
10674 (new_symbol): Likewise.
10675 * compile/compile-object-load.c (get_out_value_type): Use
10676 symbol_matches_search_name.
10677
10678 2020-04-24 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.c (add_partial_symbol): Do not call
10681 compute_and_set_names.
10682
10683 2020-04-24 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10686 overload.
10687
10688 2020-04-24 Tom Tromey <tom@tromey.com>
10689
10690 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10691 (add_psymbol_to_list): New overload. Make old overload call new
10692 one.
10693 * psympriv.h (add_psymbol_to_list): New overload.
10694
10695 2020-04-24 Tom Tromey <tom@tromey.com>
10696
10697 * dwarf2/read.c (partial_die_info::read) <case
10698 DW_AT_linkage_name>: Use value_as_string.
10699 (dwarf2_string_attr): Use value_as_string.
10700 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10701 method.
10702 * dwarf2/attribute.c (attribute::value_as_string): New method.
10703
10704 2020-04-24 Tom Tromey <tom@tromey.com>
10705
10706 * symtab.c (general_symbol_info::natural_name)
10707 (general_symbol_info::demangled_name): Check for language_rust.
10708
10709 2020-04-24 Tom Tromey <tom@tromey.com>
10710
10711 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10712 (dwarf2_physname): ... from here.
10713 (partial_die_info::read): Add Rust "{" hack.
10714
10715 2020-04-24 Tom Tromey <tom@tromey.com>
10716
10717 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10718 method.
10719 (symbol_set_demangled_name): Don't declare.
10720 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10721 symbol_set_demangled_name.
10722 (general_symbol_info::set_language)
10723 (general_symbol_info::compute_and_set_names): Update.
10724 * minsyms.c (minimal_symbol_reader::install): Update.
10725 * dwarf2/read.c (new_symbol): Update.
10726
10727 2020-04-24 Tom Tromey <tromey@adacore.com>
10728
10729 PR python/23662:
10730 * python/py-type.c (convert_field): Handle
10731 FIELD_LOC_KIND_DWARF_BLOCK.
10732 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10733 (typy_get_dynamic): Nw function.
10734 (type_object_getset): Add "dynamic".
10735 * NEWS: Add entry.
10736
10737 2020-04-24 Tom Tromey <tromey@adacore.com>
10738
10739 * ada-typeprint.c (print_choices, print_variant_part)
10740 (print_record_field_types_dynamic): New functions.
10741 (print_record_field_types): Use print_record_field_types_dynamic.
10742
10743 2020-04-24 Tom Tromey <tromey@adacore.com>
10744
10745 * dwarf2/read.c (handle_data_member_location): New overload.
10746 (dwarf2_add_field): Use it.
10747 (decode_locdesc): Add "computed" parameter. Update comment.
10748 * gdbtypes.c (is_dynamic_type_internal): Also look for
10749 FIELD_LOC_KIND_DWARF_BLOCK.
10750 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10751 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10752 virtual base classes.
10753 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10754 FIELD_LOC_KIND_DWARF_BLOCK.
10755
10756 2020-04-24 Tom Tromey <tromey@adacore.com>
10757
10758 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10759 * gdbtypes.c (is_dynamic_type_internal): Check
10760 TYPE_HAS_DYNAMIC_LENGTH.
10761 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10762 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10763 New macros.
10764 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10765 constant.
10766
10767 2020-04-24 Tom Tromey <tromey@adacore.com>
10768
10769 * dwarf2/read.c (struct variant_field): Rewrite.
10770 (struct variant_part_builder): New.
10771 (struct nextfield): Remove "variant" field. Add "offset".
10772 (struct field_info): Add "current_variant_part" and
10773 "variant_parts".
10774 (alloc_discriminant_info): Remove.
10775 (alloc_rust_variant): New function.
10776 (quirk_rust_enum): Update.
10777 (dwarf2_add_field): Set "offset" member. Don't handle
10778 DW_TAG_variant_part.
10779 (offset_map_type): New typedef.
10780 (convert_variant_range, create_one_variant)
10781 (create_one_variant_part, create_variant_parts)
10782 (add_variant_property): New functions.
10783 (dwarf2_attach_fields_to_type): Call add_variant_property.
10784 (read_structure_type): Don't handle DW_TAG_variant_part.
10785 (handle_variant_part, handle_variant): New functions.
10786 (handle_struct_member_die): Use them.
10787 (process_structure_scope): Don't handle variant parts.
10788 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10789 (struct discriminant_info): Remove.
10790 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10791 (struct main_type) <flag_discriminated_union>: Remove.
10792 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10793 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10794 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10795 Update.
10796 * valops.c (value_union_variant): Remove.
10797 * value.h (value_union_variant): Don't declare.
10798
10799 2020-04-24 Tom Tromey <tromey@adacore.com>
10800
10801 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10802 (ada_value_primitive_packed_val): Update.
10803 * ada-valprint.c (ada_value_print_1): Update.
10804 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10805 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10806 just an address. Use evaluate_for_locexpr_baton.
10807 (dwarf2_evaluate_property): Update.
10808 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10809 array_view.
10810 * findvar.c (default_read_var_value): Update.
10811 * gdbtypes.c (compute_variant_fields_inner)
10812 (resolve_dynamic_type_internal): Update.
10813 (resolve_dynamic_type): Change type of valaddr parameter.
10814 * gdbtypes.h (resolve_dynamic_type): Update.
10815 * valarith.c (value_subscripted_rvalue): Update.
10816 * value.c (value_from_contents_and_address): Update.
10817
10818 2020-04-24 Tom Tromey <tromey@adacore.com>
10819
10820 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10821 "push_initial_value" parameter.
10822 (dwarf2_evaluate_property): Likewise.
10823 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10824
10825 2020-04-24 Tom Tromey <tromey@adacore.com>
10826
10827 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10828 (variant::matches, compute_variant_fields_recurse)
10829 (compute_variant_fields_inner, compute_variant_fields): New
10830 functions.
10831 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10832 Use resolved_type after type is made.
10833 (operator==): Add new cases.
10834 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10835 (struct discriminant_range, struct variant, struct variant_part):
10836 New.
10837 (union dynamic_prop_data) <variant_parts, original_type>: New
10838 members.
10839 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10840 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10841 constants.
10842 * value.c (unpack_bits_as_long): Now public.
10843 * value.h (unpack_bits_as_long): Declare.
10844
10845 2020-04-24 Tom Tromey <tromey@adacore.com>
10846
10847 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10848 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10849
10850 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10851
10852 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10853
10854 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10855
10856 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10857 (remove_fork_catchpoint, post_startup_inferior)
10858 (post_attach): Move...
10859 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10860 (remove_fork_catchpoint, post_startup_inferior)
10861 (post_attach): ...here.
10862 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10863 (remove_fork_catchpoint, post_startup_inferior)
10864 (post_attach): Move...
10865 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10866 (remove_fork_catchpoint, post_startup_inferior)
10867 (post_attach): ...here.
10868
10869 2020-04-24 Tom Tromey <tromey@adacore.com>
10870
10871 * nat/windows-nat.h (struct windows_thread_info)
10872 <pc_adjusted>: New member.
10873 * windows-nat.c (windows_fetch_one_register): Check
10874 pc_adjusted.
10875 (windows_nat_target::get_windows_debug_event)
10876 (windows_nat_target::wait): Set pc_adjusted.
10877
10878 2020-04-24 Tom de Vries <tdevries@suse.de>
10879
10880 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10881 Run gdb-add-index inside temp dir.
10882
10883 2020-04-23 Tom Tromey <tromey@adacore.com>
10884
10885 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10886 in loop.
10887
10888 2020-04-23 Luis Machado <luis.machado@linaro.org>
10889
10890 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10891 get_frame_register instead of gdbarch_unwind_pc.
10892
10893 2020-04-23 Tom de Vries <tdevries@suse.de>
10894
10895 * symtab.c (lookup_global_symbol): Prefer def over decl.
10896
10897 2020-04-23 Tom de Vries <tdevries@suse.de>
10898
10899 PR symtab/25807
10900 * block.c (best_symbol, better_symbol): Promote to external.
10901 * block.h (best_symbol, better_symbol): Declare.
10902 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10903 decl.
10904
10905 2020-04-23 Tom Tromey <tromey@adacore.com>
10906
10907 PR ada/25837:
10908 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10909 "const char *", not a "const std::string &".
10910 <name_and_matcher::operator==>: Update.
10911 * unittests/lookup_name_info-selftests.c: Change type of
10912 "result".
10913
10914 2020-04-23 Tom Tromey <tom@tromey.com>
10915
10916 * inferior.h (iterate_over_inferiors): Don't declare.
10917 * inferior.c (iterate_over_inferiors): Remove.
10918 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10919 Remove.
10920 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10921 use iterate_over_inferiors.
10922 (darwin_resume_inferior_it)
10923 (struct resume_inferior_threads_param)
10924 (darwin_resume_inferior_threads_it): Remove.
10925 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10926
10927 2020-04-23 Tom de Vries <tdevries@suse.de>
10928
10929 * blockframe.c (find_pc_partial_function): Use
10930 find_pc_sect_compunit_symtab rather than
10931 objfile->sf->qf->find_pc_sect_compunit_symtab.
10932
10933 2020-04-22 Tom de Vries <tdevries@suse.de>
10934
10935 PR symtab/25764
10936 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10937 in psymtabs.
10938
10939 2020-04-22 Tom de Vries <tdevries@suse.de>
10940
10941 PR symtab/25801
10942 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10943 symtabs.
10944
10945 2020-04-22 Tom de Vries <tdevries@suse.de>
10946
10947 PR symtab/25700
10948 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10949 CU if already created.
10950
10951 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10952
10953 * infrun.c (displaced_step_fixup): Switch to the event_thread
10954 before calling displaced_step_restore, not after.
10955
10956 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10957
10958 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10959 its inferior is not recorded by us.
10960 (record_btrace_target_open): Replace call to
10961 all_non_exited_threads () with call to current_inferior
10962 ()->non_exited_threads ().
10963 (record_btrace_target::stop_recording): Likewise.
10964 (record_btrace_target::close): Likewise.
10965 (record_btrace_target::wait): Likewise.
10966 (record_btrace_target::record_stop_replaying): Likewise.
10967
10968 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10969
10970 * btrace.c (btrace_enable): Throw an error on double enables and
10971 when enabling recording fails.
10972 (btrace_disable): Throw an error if the thread is not recorded.
10973
10974 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10975
10976 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10977 request if we do not have a thread_info.
10978
10979 2020-04-21 Tom de Vries <tdevries@suse.de>
10980
10981 PR gdb/25471
10982 * thread.c
10983 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10984 exception in get_frame_id.
10985
10986 2020-04-20 Tom Tromey <tromey@adacore.com>
10987
10988 * python/python.c (struct gdbpy_event): Mark move constructor as
10989 noexcept.
10990 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10991 constructor as noexcept.
10992 * completer.h (struct completion_result): Mark move constructor as
10993 noexcept.
10994 * completer.c (completion_result::completion_result): Use
10995 initialization style. Don't call reset_match_list.
10996
10997 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10998
10999 * MAINTAINERS (Write After Approval): Add myself.
11000
11001 2020-04-18 Tom Tromey <tom@tromey.com>
11002
11003 * windows-tdep.c (init_w32_command_list)
11004 (w32_prefix_command_valid): Restore.
11005 (_initialize_windows_tdep): Call init_w32_command_list.
11006
11007 2020-04-18 Tom Tromey <tom@tromey.com>
11008
11009 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11010 * value.c (value_fn_field): Update.
11011 * valops.c (find_function_in_inferior)
11012 (value_allocate_space_in_inferior): Update.
11013 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11014 Update.
11015 * tui/tui-source.c (tui_source_window::set_contents): Update.
11016 * symtab.c (lookup_global_or_static_symbol)
11017 (find_function_start_sal_1, skip_prologue_sal)
11018 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11019 * symmisc.c (dump_msymbols, dump_symtab_1)
11020 (maintenance_print_one_line_table): Update.
11021 * symfile.c (init_entry_point_info, section_is_mapped)
11022 (list_overlays_command, simple_read_overlay_table)
11023 (simple_overlay_update_1): Update.
11024 * stap-probe.c (handle_stap_probe): Update.
11025 * stabsread.c (dbx_init_float_type, define_symbol)
11026 (read_one_struct_field, read_enum_type, read_range_type): Update.
11027 * source.c (info_line_command): Update.
11028 * python/python.c (gdbpy_source_objfile_script)
11029 (gdbpy_execute_objfile_script): Update.
11030 * python/py-type.c (save_objfile_types): Update.
11031 * python/py-objfile.c (py_free_objfile): Update.
11032 * python/py-inferior.c (python_new_objfile): Update.
11033 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11034 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11035 (maintenance_check_psymtabs): Update.
11036 * printcmd.c (info_address_command): Update.
11037 * objfiles.h (struct objfile) <arch>: New method, from
11038 get_objfile_arch.
11039 (get_objfile_arch): Don't declare.
11040 * objfiles.c (get_objfile_arch): Remove.
11041 (filter_overlapping_sections): Update.
11042 * minsyms.c (msymbol_is_function): Update.
11043 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11044 (output_nondebug_symbol): Update.
11045 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11046 (mdebug_expand_psymtab): Update.
11047 * machoread.c (macho_add_oso_symfile): Update.
11048 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11049 Update.
11050 * linux-fork.c (checkpoint_command): Update.
11051 * linespec.c (convert_linespec_to_sals): Update.
11052 * jit.c (finalize_symtab): Update.
11053 * infrun.c (insert_exception_resume_from_probe): Update.
11054 * ia64-tdep.c (ia64_find_unwind_table): Update.
11055 * hppa-tdep.c (internalize_unwinds): Update.
11056 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11057 Update.
11058 * gcore.c (call_target_sbrk): Update.
11059 * elfread.c (record_minimal_symbol, elf_symtab_read)
11060 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11061 (elf_gnu_ifunc_resolve_by_got): Update.
11062 * dwarf2/read.c (create_addrmap_from_index)
11063 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11064 (read_debug_names_from_section)
11065 (process_psymtab_comp_unit_reader, add_partial_symbol)
11066 (add_partial_subprogram, process_full_comp_unit)
11067 (read_file_scope, read_func_scope, read_lexical_block_scope)
11068 (read_call_site_scope, dwarf2_ranges_read)
11069 (dwarf2_record_block_ranges, dwarf2_add_field)
11070 (mark_common_block_symbol_computed, read_tag_pointer_type)
11071 (read_tag_string_type, dwarf2_init_float_type)
11072 (dwarf2_init_complex_target_type, read_base_type)
11073 (partial_die_info::read, partial_die_info::read)
11074 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11075 (dwarf2_fetch_die_loc_sect_off): Update.
11076 * dwarf2/loc.c (dwarf2_find_location_expression)
11077 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11078 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11079 (dwarf2_loc_desc_get_symbol_read_needs)
11080 (locexpr_describe_location_piece, locexpr_describe_location_1)
11081 (loclist_describe_location): Update.
11082 * dwarf2/index-write.c (write_debug_names): Update.
11083 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11084 * dtrace-probe.c (dtrace_process_dof): Update.
11085 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11086 (process_one_symbol): Update.
11087 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11088 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11089 (coff_read_enum_type): Update.
11090 * cli/cli-cmds.c (edit_command, list_command): Update.
11091 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11092 * breakpoint.c (create_overlay_event_breakpoint)
11093 (create_longjmp_master_breakpoint)
11094 (create_std_terminate_master_breakpoint)
11095 (create_exception_master_breakpoint, get_sal_arch): Update.
11096 * block.c (block_gdbarch): Update.
11097 * annotate.c (annotate_source_line): Update.
11098
11099 2020-04-17 Tom Tromey <tromey@adacore.com>
11100
11101 * auto-load.c (show_auto_load_cmd): Remove.
11102 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11103 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11104 (maintenance_print_arc_command): Remove.
11105 * tui/tui-win.c (tui_command): Remove.
11106 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11107 * tui/tui-layout.c (tui_layout_command): Remove.
11108 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11109 * python/python.c (user_set_python, user_show_python): Remove.
11110 (_initialize_python): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11113 (install_gdb_commands): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 (info_guile_command): Remove.
11116 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11117 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11118 add_show_prefix_cmd.
11119 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11120 Remove do_set and do_show parameters.
11121 * cli/cli-style.c (set_style, show_style): Remove.
11122 (_initialize_cli_style): Use add_basic_prefix_cmd,
11123 add_show_prefix_cmd.
11124 (cli_style_option::add_setshow_commands): Remove do_set and
11125 do_show parameters.
11126 (cli_style_option::add_setshow_commands): Use
11127 add_basic_prefix_cmd, add_show_prefix_cmd.
11128 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11129 (set_style_name): Remove.
11130 * cli/cli-dump.c (dump_command, append_command): Remove.
11131 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11132 (tekhex_dump_command, binary_dump_command)
11133 (binary_append_command): Remove.
11134 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11135 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11136 (init_w32_command_list): Remove; move into ...
11137 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11138 * valprint.c (set_print, show_print, set_print_raw)
11139 (show_print_raw): Remove.
11140 (_initialize_valprint): Use add_basic_prefix_cmd,
11141 add_show_prefix_cmd.
11142 * typeprint.c (set_print_type, show_print_type): Remove.
11143 (_initialize_typeprint): Use add_basic_prefix_cmd,
11144 add_show_prefix_cmd.
11145 * record.c (set_record_command, show_record_command): Remove.
11146 (_initialize_record): Use add_basic_prefix_cmd,
11147 add_show_prefix_cmd.
11148 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11149 add_show_prefix_cmd.
11150 (info_command, show_command, set_debug, show_debug): Remove.
11151 * top.h (set_history, show_history): Don't declare.
11152 * top.c (set_history, show_history): Remove.
11153 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11154 (unset_tdesc_cmd): Remove.
11155 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11156 add_show_prefix_cmd.
11157 * symtab.c (info_module_command): Remove.
11158 (_initialize_symtab): Use add_basic_prefix_cmd.
11159 * symfile.c (overlay_command): Remove.
11160 (_initialize_symfile): Use add_basic_prefix_cmd.
11161 * sparc64-tdep.c (info_adi_command): Remove.
11162 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11163 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11164 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11165 add_show_prefix_cmd.
11166 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11167 (_initialize_serial): Use add_basic_prefix_cmd,
11168 add_show_prefix_cmd.
11169 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11170 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11171 add_show_prefix_cmd.
11172 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11173 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11174 add_show_prefix_cmd.
11175 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11176 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11177 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11178 add_show_prefix_cmd.
11179 * remote.c (remote_command, set_remote_cmd): Remove.
11180 (_initialize_remote): Use add_basic_prefix_cmd.
11181 * record-full.c (set_record_full_command)
11182 (show_record_full_command): Remove.
11183 (_initialize_record_full): Use add_basic_prefix_cmd,
11184 add_show_prefix_cmd.
11185 * record-btrace.c (cmd_set_record_btrace)
11186 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11187 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11188 (cmd_show_record_btrace_pt): Remove.
11189 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11190 add_show_prefix_cmd.
11191 * ravenscar-thread.c (set_ravenscar_command)
11192 (show_ravenscar_command): Remove.
11193 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11194 add_show_prefix_cmd.
11195 * mips-tdep.c (show_mips_command, set_mips_command)
11196 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11197 add_show_prefix_cmd.
11198 * maint.c (maintenance_command, maintenance_info_command)
11199 (maintenance_check_command, maintenance_print_command)
11200 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11201 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11202 add_show_prefix_cmd.
11203 (show_per_command_cmd): Remove.
11204 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11205 Remove.
11206 (maintenance_show_test_settings_cmd): Remove.
11207 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11208 add_show_prefix_cmd.
11209 * maint-test-options.c (maintenance_test_options_command):
11210 Remove.
11211 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11212 * macrocmd.c (macro_command): Remove
11213 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11214 * language.c (set_check, show_check): Remove.
11215 (_initialize_language): Use add_basic_prefix_cmd,
11216 add_show_prefix_cmd.
11217 * infcmd.c (unset_command): Remove.
11218 (_initialize_infcmd): Use add_basic_prefix_cmd.
11219 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11220 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11221 add_show_prefix_cmd.
11222 * go32-nat.c (go32_info_dos_command): Remove.
11223 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11224 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11225 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11226 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11227 (_initialize_frame): Use add_basic_prefix_cmd,
11228 add_show_prefix_cmd.
11229 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11230 (_initialize_dcache): Use add_basic_prefix_cmd,
11231 add_show_prefix_cmd.
11232 * cp-support.c (maint_cplus_command): Remove.
11233 (_initialize_cp_support): Use add_basic_prefix_cmd.
11234 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11235 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11236 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11237 add_basic_prefix_cmd, add_show_prefix_cmd.
11238 * breakpoint.c (save_command): Remove.
11239 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11240 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11241 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11242 add_show_prefix_cmd.
11243 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11244 (set_ada_command, show_ada_command): Remove.
11245 (_initialize_ada_language): Use add_basic_prefix_cmd,
11246 add_show_prefix_cmd.
11247 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11248
11249 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11250
11251 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11252 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11253
11254 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11255
11256 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11257 warning messages.
11258
11259 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11260
11261 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11262 import table is not at beginning of .idata section.
11263
11264 2020-04-16 Pedro Alves <palves@redhat.com>
11265
11266 * inferior.c (delete_inferior): Use delete operator directly
11267 instead of delete_program_space.
11268 * progspace.c (add_program_space): New, factored out from
11269 program_space::program_space.
11270 (remove_program_space): New, factored out from
11271 delete_program_space.
11272 (program_space::program_space): Remove intro comment. Rewrite.
11273 (program_space::~program_space): Remove intro comment. Call
11274 remove_program_space.
11275 (delete_program_space): Delete.
11276 * progspace.h (program_space::program_space): Make explicit. Move
11277 intro comment here, adjusted.
11278 (program_space::~program_space): Move intro comment here,
11279 adjusted.
11280 (delete_program_space): Remove.
11281
11282 2020-04-16 Tom Tromey <tromey@adacore.com>
11283
11284 * windows-nat.c (windows_nat::handle_access_violation): New
11285 function.
11286 * nat/windows-nat.h (handle_access_violation): Declare.
11287 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11288 windows-nat.c. Call handle_access_violation.
11289
11290 2020-04-16 Tom de Vries <tdevries@suse.de>
11291
11292 PR symtab/25791
11293 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11294 CUs without psymtab.
11295
11296 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11297
11298 * python/python.c (do_start_initialization): Don't call
11299 PyEval_InitThreads for Python 3.9 and beyond.
11300
11301 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11302
11303 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11304 thread functions.
11305 (obsd_nat_target::wait): Likewise.
11306
11307 2020-04-15 Tom Tromey <tromey@adacore.com>
11308
11309 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11310 (DEBUG_EXCEPT): Use debug_printf.
11311
11312 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11313
11314 * completer.c (class completion_tracker::completion_hash_entry)
11315 <hash_name>: New member function.
11316 (completion_tracker::discard_completions): New callback to hash a
11317 completion_hash_entry, pass this to htab_create_alloc.
11318
11319 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11320
11321 * windows-nat.c (windows_make_so): Warn rather than stopping with
11322 an error if realpath() fails.
11323
11324 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11325
11326 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11327 (nbsd_nat_target::info_proc): Add do_status.
11328
11329 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11330 Tom de Vries <tdevries@suse.de>
11331
11332 PR symtab/25718
11333 * psympriv.h (struct partial_symtab::read_symtab)
11334 (struct partial_symtab::expand_psymtab)
11335 (struct partial_symtab::read_dependencies): Update comments.
11336 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11337 read_symtab for includer.
11338 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11339 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11340 (struct dwarf2_include_psymtab::m_readin): Remove.
11341 (struct dwarf2_include_psymtab::includer): New member function.
11342 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11343
11344 2020-04-14 Tom de Vries <tdevries@suse.de>
11345
11346 PR symtab/25720
11347 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11348 with NULL symbol_matcher and lookup_name.
11349 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11350 and lookup_name.
11351 * dwarf2/read.c (dw2_expand_symtabs_matching)
11352 (dw2_debug_names_expand_symtabs_matching): Same.
11353 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11354 Make lookup_name a pointer. Update comment.
11355 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11356 lookup_name being a pointer.
11357 * symfile.c (expand_symtabs_matching): Same.
11358 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11359 * linespec.c (iterate_over_all_matching_symtabs): Same.
11360
11361 2020-04-13 Tom Tromey <tom@tromey.com>
11362
11363 * run-on-main-thread.c: Update include.
11364 * unittests/main-thread-selftests.c: Update include.
11365 * tui/tui-win.c: Update include.
11366 * tui/tui-io.c: Update include.
11367 * tui/tui-interp.c: Update include.
11368 * tui/tui-hooks.c: Update include.
11369 * top.h: Update include.
11370 * top.c: Update include.
11371 * ser-base.c: Update include.
11372 * remote.c: Update include.
11373 * remote-notif.c: Update include.
11374 * remote-fileio.c: Update include.
11375 * record-full.c: Update include.
11376 * record-btrace.c: Update include.
11377 * python/python.c: Update include.
11378 * posix-hdep.c: Update include.
11379 * mingw-hdep.c: Update include.
11380 * mi/mi-main.c: Update include.
11381 * mi/mi-interp.c: Update include.
11382 * main.c: Update include.
11383 * linux-nat.c: Update include.
11384 * interps.c: Update include.
11385 * infrun.c: Update include.
11386 * inf-loop.c: Update include.
11387 * event-top.c: Update include.
11388 * event-loop.c: Move to ../gdbsupport/.
11389 * event-loop.h: Move to ../gdbsupport/.
11390 * async-event.h: Update include.
11391 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11392
11393 2020-04-13 Tom Tromey <tom@tromey.com>
11394
11395 * tui/tui-win.c: Include async-event.h.
11396 * remote.c: Include async-event.h.
11397 * remote-notif.c: Include async-event.h.
11398 * record-full.c: Include async-event.h.
11399 * record-btrace.c: Include async-event.h.
11400 * infrun.c: Include async-event.h.
11401 * event-top.c: Include async-event.h.
11402 * event-loop.h: Move some declarations to async-event.h.
11403 * event-loop.c: Don't include ser-event.h or top.h. Move some
11404 code to async-event.c.
11405 * async-event.h: New file.
11406 * async-event.c: New file.
11407 * Makefile.in (COMMON_SFILES): Add async-event.c.
11408 (HFILES_NO_SRCDIR): Add async-event.h.
11409
11410 2020-04-13 Tom Tromey <tom@tromey.com>
11411
11412 * utils.c (flush_streams): New function.
11413 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11414
11415 2020-04-13 Tom Tromey <tom@tromey.com>
11416
11417 * event-loop.c (handle_file_event): Use warning, not
11418 printf_unfiltered.
11419
11420 2020-04-13 Tom Tromey <tom@tromey.com>
11421
11422 * event-loop.c: Include <chrono>.
11423
11424 2020-04-13 Tom Tromey <tom@tromey.com>
11425
11426 * gdb_select.h: Move to ../gdbsupport/.
11427 * event-loop.c: Update include path.
11428 * top.c: Update include path.
11429 * ser-base.c: Update include path.
11430 * ui-file.c: Update include path.
11431 * ser-tcp.c: Update include path.
11432 * guile/scm-ports.c: Update include path.
11433 * posix-hdep.c: Update include path.
11434 * ser-unix.c: Update include path.
11435 * gdb_usleep.c: Update include path.
11436 * mingw-hdep.c: Update include path.
11437 * inflow.c: Update include path.
11438 * infrun.c: Update include path.
11439 * event-top.c: Update include path.
11440
11441 2020-04-13 Tom Tromey <tom@tromey.com>
11442
11443 * configure: Rebuild.
11444 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11445
11446 2020-04-13 Tom Tromey <tom@tromey.com>
11447
11448 * event-loop.h (start_event_loop): Don't declare.
11449 * event-loop.c (start_event_loop): Move...
11450 * main.c (start_event_loop): ...here. Now static.
11451
11452 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11453
11454 * MAINTAINERS: Update my email address.
11455
11456 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11457
11458 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11459 IP_ALL.
11460
11461 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11462
11463 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11464 (nbsd_nat_target::info_proc): Add do_cmdline.
11465
11466 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11467
11468 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11469 (nbsd_nat_target::info_proc): Add do_cwd.
11470
11471 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11472
11473 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11474
11475 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11476
11477 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11478 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11479 (nbsd_nat_target::info_proc): New functions.
11480 * nbsd-nat.c (kinfo_get_vmmap): New function.
11481 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11482 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11483 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11484 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11485 functions.
11486 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11487 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11488 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11489 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11490 (KINFO_VME_FLAG_GROWS_DOWN): New.
11491
11492 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11493
11494 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11495 bit shift.
11496
11497 2020-04-10 Tom Tromey <tromey@adacore.com>
11498
11499 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11500
11501 2020-04-10 Tom Tromey <tromey@adacore.com>
11502
11503 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11504 separate debug files.
11505
11506 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11507
11508 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11509 Move to...
11510 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11511 ... here.
11512 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11513 Check for STATUS_WX86_BREAKPOINT.
11514 (windows_nat_target::wait): Same.
11515
11516 2020-04-10 Tom de Vries <tdevries@suse.de>
11517
11518 PR cli/25808
11519 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11520
11521 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11522
11523 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11524 (Write After Approval): Remove Tom de Vries.
11525
11526 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11527
11528 revert partially:
11529 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11530
11531 * buildsym.c (record_line): Fix undefined behavior and preserve
11532 lines at eof.
11533
11534 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11535
11536 * auxv.h (svr4_auxv_parse): New.
11537 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11538 and generic_auxv_parse.
11539 (svr4_auxv_parse): Add.
11540 * obsd-tdep.c: Include "auxv.h".
11541 (obsd_auxv_parse): Remove.
11542 (obsd_init_abi): Remove comment.
11543 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11544 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11545 * nbsd-tdep.c: Include "auxv.h".
11546 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11547
11548 2020-04-08 Tom Tromey <tromey@adacore.com>
11549
11550 * nat/windows-nat.h (last_wait_event): Don't declare.
11551 (wait_for_debug_event): Update comment.
11552 * nat/windows-nat.c (last_wait_event): Now static.
11553
11554 2020-04-08 Tom Tromey <tromey@adacore.com>
11555
11556 * windows-nat.c (wait_for_debug_event): Move to
11557 nat/windows-nat.c.
11558 * nat/windows-nat.h (wait_for_debug_event): Declare.
11559 * nat/windows-nat.c (wait_for_debug_event): Move from
11560 windows-nat.c. No longer static.
11561
11562 2020-04-08 Tom Tromey <tromey@adacore.com>
11563
11564 * windows-nat.c (get_windows_debug_event): Use
11565 fetch_pending_stop.
11566 * nat/windows-nat.h (fetch_pending_stop): Declare.
11567 * nat/windows-nat.c (fetch_pending_stop): New function.
11568
11569 2020-04-08 Tom Tromey <tromey@adacore.com>
11570
11571 * windows-nat.c (windows_continue): Use matching_pending_stop and
11572 continue_last_debug_event.
11573 * nat/windows-nat.h (matching_pending_stop)
11574 (continue_last_debug_event): Declare.
11575 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11576 (matching_pending_stop, continue_last_debug_event): New
11577 functions.
11578
11579 2020-04-08 Tom Tromey <tromey@adacore.com>
11580
11581 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11582 (handle_exception_result): Move to nat/windows-nat.h.
11583 (DEBUG_EXCEPTION_SIMPLE): Remove.
11584 (windows_nat::handle_ms_vc_exception): New function.
11585 (handle_exception): Move to nat/windows-nat.c.
11586 (get_windows_debug_event): Update.
11587 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11588 nat/windows-nat.c.
11589 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11590 (handle_exception_result): Move from windows-nat.c.
11591 (handle_exception): Declare.
11592 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11593 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11594 windows-nat.c.
11595
11596 2020-04-08 Tom Tromey <tromey@adacore.com>
11597
11598 * windows-nat.c (exception_count, event_count): Remove.
11599 (handle_exception, get_windows_debug_event)
11600 (do_initial_windows_stuff): Update.
11601
11602 2020-04-08 Tom Tromey <tromey@adacore.com>
11603
11604 * windows-nat.c (windows_nat::handle_load_dll)
11605 (windows_nat::handle_unload_dll): Rename. No longer static.
11606 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11607 Declare.
11608
11609 2020-04-08 Tom Tromey <tromey@adacore.com>
11610
11611 * complaints.h (stop_whining): Declare at top-level.
11612 (complaint): Don't declare stop_whining.
11613
11614 2020-04-08 Tom Tromey <tromey@adacore.com>
11615
11616 * windows-nat.c (windows_nat::handle_output_debug_string):
11617 Rename. No longer static.
11618 * nat/windows-nat.h (handle_output_debug_string): Declare.
11619
11620 2020-04-08 Tom Tromey <tromey@adacore.com>
11621
11622 * windows-nat.c (current_process_handle, current_process_id)
11623 (main_thread_id, last_sig, current_event, last_wait_event)
11624 (current_windows_thread, desired_stop_thread_id, pending_stops)
11625 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11626 (display_selectors, fake_create_process)
11627 (get_windows_debug_event): Update.
11628 * nat/windows-nat.h (current_process_handle, current_process_id)
11629 (main_thread_id, last_sig, current_event, last_wait_event)
11630 (current_windows_thread, desired_stop_thread_id, pending_stops)
11631 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11632 * nat/windows-nat.c (current_process_handle, current_process_id)
11633 (main_thread_id, last_sig, current_event, last_wait_event)
11634 (current_windows_thread, desired_stop_thread_id, pending_stops)
11635 (siginfo_er): New globals. Move from windows-nat.c.
11636
11637 2020-04-08 Tom Tromey <tromey@adacore.com>
11638
11639 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11640 (handle_load_dll): Update.
11641 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11642
11643 2020-04-08 Tom Tromey <tromey@adacore.com>
11644
11645 * windows-nat.c (enum thread_disposition_type): Move to
11646 nat/windows-nat.h.
11647 (windows_nat::thread_rec): Rename from thread_rec. No longer
11648 static.
11649 (windows_add_thread, windows_nat_target::fetch_registers)
11650 (windows_nat_target::store_registers, handle_exception)
11651 (windows_nat_target::resume, get_windows_debug_event)
11652 (windows_nat_target::get_tib_address)
11653 (windows_nat_target::thread_name)
11654 (windows_nat_target::thread_alive): Update.
11655 * nat/windows-nat.h (enum thread_disposition_type): Move from
11656 windows-nat.c.
11657 (thread_rec): Declare.
11658
11659 2020-04-08 Tom Tromey <tromey@adacore.com>
11660
11661 * windows-nat.c: Add "using namespace".
11662 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11663 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11664
11665 2020-04-08 Tom Tromey <tromey@adacore.com>
11666
11667 * nat/windows-nat.h (struct windows_thread_info): Declare
11668 destructor.
11669 * nat/windows-nat.c (~windows_thread_info): New.
11670
11671 2020-04-08 Tom Tromey <tromey@adacore.com>
11672
11673 PR gdb/22992
11674 * windows-nat.c (current_event): Update comment.
11675 (last_wait_event, desired_stop_thread_id): New globals.
11676 (struct pending_stop): New.
11677 (pending_stops): New global.
11678 (windows_nat_target) <stopped_by_sw_breakpoint>
11679 <supports_stopped_by_sw_breakpoint>: New methods.
11680 (windows_fetch_one_register): Add assertions. Adjust PC.
11681 (windows_continue): Handle pending stops. Suspend other threads
11682 when stepping. Use last_wait_event
11683 (wait_for_debug_event): New function.
11684 (get_windows_debug_event): Use wait_for_debug_event. Handle
11685 pending stops. Queue spurious stops.
11686 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11687 (windows_nat_target::kill): Use wait_for_debug_event.
11688 * nat/windows-nat.h (struct windows_thread_info)
11689 <stopped_at_software_breakpoint>: New field.
11690 * nat/windows-nat.c (windows_thread_info::resume): Clear
11691 stopped_at_software_breakpoint.
11692
11693 2020-04-08 Tom Tromey <tromey@adacore.com>
11694
11695 * windows-nat.c (enum thread_disposition_type): New.
11696 (thread_rec): Replace "get_context" parameter with "disposition";
11697 change type.
11698 (windows_add_thread, windows_nat_target::fetch_registers)
11699 (windows_nat_target::store_registers, handle_exception)
11700 (windows_nat_target::resume, get_windows_debug_event)
11701 (windows_nat_target::get_tib_address)
11702 (windows_nat_target::thread_name)
11703 (windows_nat_target::thread_alive): Update.
11704
11705 2020-04-08 Tom Tromey <tromey@adacore.com>
11706
11707 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11708 (windows_continue): Use windows_continue::resume.
11709 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11710 resume>: Declare new methods.
11711 * nat/windows-nat.c: New file.
11712 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11713
11714 2020-04-08 Tom Tromey <tromey@adacore.com>
11715
11716 * windows-nat.c (windows_add_thread, windows_delete_thread)
11717 (windows_nat_target::fetch_registers)
11718 (windows_nat_target::store_registers, fake_create_process)
11719 (windows_nat_target::resume, windows_nat_target::resume)
11720 (get_windows_debug_event, windows_nat_target::wait)
11721 (windows_nat_target::pid_to_str)
11722 (windows_nat_target::get_tib_address)
11723 (windows_nat_target::get_ada_task_ptid)
11724 (windows_nat_target::thread_name)
11725 (windows_nat_target::thread_alive): Use lwp, not tid.
11726
11727 2020-04-08 Tom Tromey <tromey@adacore.com>
11728
11729 * windows-nat.c (handle_exception)
11730 (windows_nat_target::thread_name): Update.
11731 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11732 <name>: Now unique_xmalloc_ptr.
11733
11734 2020-04-08 Tom Tromey <tromey@adacore.com>
11735
11736 * windows-nat.c (thread_rec)
11737 (windows_nat_target::fetch_registers): Update.
11738 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11739 Update comment.
11740 <debug_registers_changed, reload_context>: Now bool.
11741
11742 2020-04-08 Tom Tromey <tromey@adacore.com>
11743
11744 * windows-nat.c (windows_add_thread): Use new.
11745 (windows_init_thread_list, windows_delete_thread): Use delete.
11746 (get_windows_debug_event): Update.
11747 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11748 destructor, and initializers.
11749
11750 2020-04-08 Tom Tromey <tromey@adacore.com>
11751
11752 * windows-nat.c (struct windows_thread_info): Remove.
11753 * nat/windows-nat.h: New file.
11754
11755 2020-04-08 Tom Tromey <tromey@adacore.com>
11756
11757 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11758 (thread_rec, windows_add_thread, windows_delete_thread)
11759 (windows_continue): Update.
11760
11761 2020-04-08 Tom Tromey <tromey@adacore.com>
11762
11763 * windows-nat.c (struct windows_thread_info): Remove typedef.
11764 (thread_head): Remove.
11765 (thread_list): New global.
11766 (thread_rec, windows_add_thread, windows_init_thread_list)
11767 (windows_delete_thread, windows_continue): Update.
11768
11769 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11770
11771 * windows-tdep.h (windows_init_abi): Add comment.
11772 (cygwin_init_abi): New declaration.
11773 * windows-tdep.c: Split signal enumeration in two, one for
11774 Windows and one for Cygwin.
11775 (windows_gdb_signal_to_target): Only deal with signal of the
11776 Windows OS ABI.
11777 (cygwin_gdb_signal_to_target): New function.
11778 (windows_init_abi): Rename to windows_init_abi_common, don't set
11779 gdb_signal_to_target gdbarch method. Add new new function with
11780 this name.
11781 (cygwin_init_abi): New function.
11782 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11783 comment. Don't call windows_init_abi.
11784 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11785 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11786 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11787 i386_windows_init_abi_common, don't call windows_init_abi. Add
11788 a new function of this name.
11789 (i386_cygwin_init_abi): New function.
11790 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11791 OS ABI Cygwin.
11792
11793 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11794
11795 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11796 parameter.c.
11797 (dwarf2_read_gdb_index): Update.
11798
11799 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11800
11801 * nbsd-tdep.c: Include "objfiles.h".
11802 (nbsd_skip_solib_resolver): New.
11803 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11804
11805 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11806
11807 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11808 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11809 with DW_LLE_base_addressx are being emitted in DWARFv5.
11810 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11811 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11812 unsigned integer.
11813
11814 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11815
11816 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11817 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11818 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11819 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11820 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11821 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11822 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11823
11824
11825 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11826
11827 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11828 (read_loclist_index): New function definition.
11829 (lookup_loclist_base): New function definition.
11830 (read_loclist_header): New function definition.
11831 (dwarf2_cu): Add loclist_base and loclist_header field.
11832 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11833 (read_full_die_1): Read the value of DW_AT_loclists_base.
11834 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11835 (read_attribute_value): Handle DW_FORM_loclistx.
11836 (skip_one_die): Handle DW_FORM_loclistx.
11837 (loclist_header): New structure declaration.
11838 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11839
11840 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11841
11842 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11843 constructor. Remove `addr` parameter from other constructor and
11844 add `per_cu` parameter.
11845 * dwarf2/read.c (create_partial_symtab): Update.
11846
11847 2020-04-07 Tom de Vries <tdevries@suse.de>
11848
11849 PR symtab/25796
11850 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11851 (partial_die_info::fixup): Inherit has_const_value.
11852
11853 2020-04-07 Tom de Vries <tdevries@suse.de>
11854
11855 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11856 symbols without address.
11857
11858 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11859
11860 * nbsd-nat.h (struct thread_info): Add forward declaration.
11861 (nbsd_nat_target::thread_alive): Add.
11862 (nbsd_nat_target::thread_name): Likewise.
11863 (nbsd_nat_target::update_thread_list): Likewise.
11864 (update_thread_list::post_attach): Likewise.
11865 (post_attach::pid_to_str): Likewise.
11866 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11867 (nbsd_thread_lister): Add.
11868 (nbsd_nat_target::thread_alive): Likewise.
11869 (nbsd_nat_target::thread_name): Likewise.
11870 (nbsd_add_threads): Likewise.
11871 (update_thread_list::post_attach): Likewise.
11872 (nbsd_nat_target::update_thread_list): Likewise.
11873 (post_attach::pid_to_str): Likewise.
11874
11875 2020-04-06 Tom Tromey <tromey@adacore.com>
11876
11877 * ada-valprint.c (print_variant_part): Extract the variant field.
11878 (print_field_values): Use the field as the outer value when
11879 recursing.
11880
11881 2020-04-06 Tom Tromey <tromey@adacore.com>
11882
11883 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11884 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11885 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11886 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11887 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11888
11889 2020-04-06 Tom Tromey <tromey@adacore.com>
11890
11891 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11892 TYPE_CODE_ERROR.
11893
11894 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11895
11896 * nbsd-tdep.c: Include "gdbarch.h".
11897 Define enum with NetBSD signal numbers.
11898 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11899 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11900 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11901 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11902 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11903 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11904 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11905 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11906 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11907 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11908 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11909 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11910
11911 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11912
11913 PR gdb/25325
11914 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11915
11916 2020-04-03 Tom Tromey <tromey@adacore.com>
11917
11918 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11919 Read constant block.
11920
11921 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11922
11923 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11924 (gdb_bfd_get_full_section_contents): New declaration.
11925 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11926 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11927 gdb_bfd_get_full_section_contents.
11928
11929 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11930
11931 * exec.c (build_section_table): Replace internal_error with
11932 gdb_assert.
11933 (section_table_xfer_memory_partial): Likewise.
11934 * mdebugread.c (parse_partial_symbols): Likewise.
11935 * psymtab.c (lookup_partial_symbol): Likewise.
11936 * utils.c (wrap_here): Likewise.
11937
11938 2020-04-02 Tom Tromey <tromey@adacore.com>
11939
11940 * f-lang.c (build_fortran_types): Use arch_type to initialize
11941 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11942
11943 2020-04-02 Tom Tromey <tromey@adacore.com>
11944
11945 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11946 of attributes.
11947
11948 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11949 Bernd Edlinger <bernd.edlinger@hotmail.de>
11950 Tom Tromey <tromey@adacore.com>
11951
11952 * buildsym.c (buildsym_compunit::record_line): Remove
11953 deduplication code.
11954
11955 2020-04-02 Tom de Vries <tdevries@suse.de>
11956
11957 PR ada/24671
11958 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11959
11960 2020-04-02 Tom de Vries <tdevries@suse.de>
11961
11962 * dwarf2/read.c (dwarf2_gdb_index_functions,
11963 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11964 NULL.
11965 * psymtab.c (psym_lookup_global_symbol_language): New function.
11966 (psym_functions): Init psym_lookup_global_symbol_language with
11967 psym_lookup_global_symbol_language.
11968 * symfile-debug.c (debug_sym_quick_functions): Init
11969 lookup_global_symbol_language with NULL.
11970 * symfile.c (set_initial_language): Remove fixme comment.
11971 * symfile.h (struct quick_symbol_functions): Add
11972 lookup_global_symbol_language.
11973 * symtab.c (find_quick_global_symbol_language): New function.
11974 (find_main_name): Use find_quick_global_symbol_language.
11975
11976 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11977
11978 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11979
11980 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11981
11982 * buildsym.c (record_line): Fix undefined behavior and preserve
11983 lines at eof.
11984
11985 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11986
11987 * buildsym.c (record_line): Fix the resizing condition.
11988
11989 2020-04-01 Tom Tromey <tom@tromey.com>
11990
11991 * value.h (value_literal_complex): Add comment.
11992 * valops.c (value_literal_complex): Refer to value.h.
11993
11994 2020-04-01 Tom Tromey <tom@tromey.com>
11995
11996 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11997 (scalar_type): New rule, from typebase.
11998 (typebase): Use scalar_type. Recognize complex types.
11999 (field_name): Handle FLOAT_KEYWORD.
12000 (ident_tokens): Add _Complex and __complex__.
12001
12002 2020-04-01 Tom Tromey <tom@tromey.com>
12003
12004 PR exp/25299:
12005 * valarith.c (promotion_type, complex_binop): New functions.
12006 (scalar_binop): Handle complex numbers. Use promotion_type.
12007 (value_pos, value_neg, value_complement): Handle complex numbers.
12008
12009 2020-04-01 Tom Tromey <tom@tromey.com>
12010
12011 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12012 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12013 (parse_number): Handle complex numbers.
12014
12015 2020-04-01 Tom Tromey <tom@tromey.com>
12016
12017 * c-valprint.c (c_decorations): Change complex suffix to "i".
12018
12019 2020-04-01 Tom Tromey <tom@tromey.com>
12020
12021 * valprint.c (generic_value_print_complex): Use accessors.
12022 * value.h (value_real_part, value_imaginary_part): Declare.
12023 * valops.c (value_real_part, value_imaginary_part): New
12024 functions.
12025 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12026
12027 2020-04-01 Tom Tromey <tom@tromey.com>
12028
12029 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12030 (read_range_type): Update.
12031 * mdebugread.c (basic_type): Update.
12032 * go-lang.c (build_go_types): Use init_complex_type.
12033 * gdbtypes.h (struct main_type) <complex_type>: New member.
12034 (init_complex_type): Update.
12035 (arch_complex_type): Don't declare.
12036 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12037 Make name if none given. Use alloc_type_copy. Look for cached
12038 complex type.
12039 (arch_complex_type): Remove.
12040 (gdbtypes_post_init): Use init_complex_type.
12041 * f-lang.c (build_fortran_types): Use init_complex_type.
12042 * dwarf2/read.c (read_base_type): Update.
12043 * d-lang.c (build_d_types): Use init_complex_type.
12044 * ctfread.c (read_base_type): Update.
12045
12046 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12047
12048 * infrun.c (stop_all_threads): Update assertion, plus when
12049 stopping threads, take into account that we might be trying
12050 to stop an all-stop target.
12051 (stop_waiting): Call 'stop_all_threads' if there exists a
12052 non-stop target.
12053
12054 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12055
12056 * target.h (exists_non_stop_target): New function declaration.
12057 * target.c (exists_non_stop_target): New function.
12058
12059 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12060
12061 PR gdb/24789
12062 * eval.c (is_integral_or_integral_reference): New function.
12063 (evaluate_subexp_standard): Allow integer references in
12064 pointer arithmetic.
12065
12066 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12067
12068 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12069 check for no ptid in the stop reply when the target is non-stop.
12070
12071 2020-04-01 Tom Tromey <tromey@adacore.com>
12072
12073 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12074 "name" parameter to rvalue reference. Initialize m_name_holder.
12075 <lookup_name_info>: New overloads.
12076 <name>: Return gdb::string_view.
12077 <c_str>: New method.
12078 <make_ignore_params>: Update.
12079 <search_name_hash>: Update.
12080 <language_lookup_name>: Return const char *.
12081 <m_name>: Change type.
12082 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12083 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12084 (lookup_name_info::match_any): Update.
12085 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12086 Update.
12087 * minsyms.c (linkage_name_str): Update.
12088 * language.c (default_symbol_name_matcher): Update.
12089 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12090 Update.
12091 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12092 (ada_lookup_name_info::ada_lookup_name_info): Update.
12093 (literal_symbol_name_matcher): Update.
12094
12095 2020-04-01 Tom Tromey <tromey@adacore.com>
12096
12097 * psymtab.c (psymtab_search_name): Remove function.
12098 (psym_lookup_symbol): Create search name and lookup name here.
12099 (lookup_partial_symbol): Remove "name" parameter; add
12100 lookup_name.
12101 (psym_expand_symtabs_for_function): Update.
12102
12103 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12104
12105 PR tui/25597:
12106 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12107
12108 2020-03-31 Tom Tromey <tromey@adacore.com>
12109
12110 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12111 memcpy.
12112
12113 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12114
12115 * features/riscv/32bit-csr.xml: Regenerated.
12116 * features/riscv/64bit-csr.xml: Regenerated.
12117
12118 2020-03-30 Tom Tromey <tromey@adacore.com>
12119
12120 * ada-valprint.c (print_variant_part): Update.
12121 * ada-lang.h (ada_which_variant_applies): Update.
12122 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12123 outer_valaddr parameters; replace with "outer" value parameter.
12124 (to_fixed_variant_branch_type): Update.
12125
12126 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12127
12128 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12129 <list>. Remove inclusion of observable.h.
12130 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12131 (struct arch_lwp_info): New struct.
12132 (class ppc_linux_dreg_interface): New class.
12133 (struct ppc_linux_process_info): New struct.
12134 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12135 <low_new_clone, low_forget_process, low_prepare_to_resume>
12136 <copy_thread_dreg_state, mark_thread_stale>
12137 <mark_debug_registers_changed, register_hw_breakpoint>
12138 <clear_hw_breakpoint, register_wp, clear_wp>
12139 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12140 <num_memory_accesses, get_trigger_type>
12141 <create_watchpoint_request, hwdebug_point_cmp>
12142 <init_arch_lwp_info, get_arch_lwp_info>
12143 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12144 methods.
12145 <struct ptid_hash>: New inner struct.
12146 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12147 members.
12148 (saved_dabr_value, hwdebug_info, max_slots_number)
12149 (struct hw_break_tuple, struct thread_points, ppc_threads)
12150 (have_ptrace_hwdebug_interface)
12151 (hwdebug_find_thread_points_by_tid)
12152 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12153 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12154 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12155 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12156 use m_dreg_interface.
12157 (hwdebug_point_cmp): Change to...
12158 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12159 reference arguments instead of pointers.
12160 (ppc_linux_nat_target::ranged_break_num_registers): Use
12161 m_dreg_interface.
12162 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12163 m_dreg_interface. Call register_hw_breakpoint.
12164 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12165 m_dreg_interface. Call clear_hw_breakpoint.
12166 (get_trigger_type): Change to...
12167 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12168 comment.
12169 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12170 use m_dreg_interface. Call register_hw_breakpoint.
12171 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12172 use m_dreg_interface. Call clear_hw_breakpoint.
12173 (can_use_watchpoint_cond_accel): Change to...
12174 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12175 method. Update comment, use m_dreg_interface and
12176 m_process_info.
12177 (calculate_dvc): Change to...
12178 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12179 m_dreg_interface.
12180 (num_memory_accesses): Change to...
12181 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12182 (check_condition): Change to...
12183 (ppc_linux_nat_target::check_condition): ...this method.
12184 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12185 comment, use m_dreg_interface.
12186 (create_watchpoint_request): Change to...
12187 (ppc_linux_nat_target::create_watchpoint_request): ...this
12188 method. Use m_dreg_interface.
12189 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12190 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12191 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12192 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12193 (ppc_linux_nat_target::low_forget_process)
12194 (ppc_linux_nat_target::low_new_fork)
12195 (ppc_linux_nat_target::low_new_clone)
12196 (ppc_linux_nat_target::low_delete_thread)
12197 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12198 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12199 only call mark_thread_stale.
12200 (ppc_linux_thread_exit): Remove.
12201 (ppc_linux_nat_target::stopped_data_address): Change to...
12202 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12203 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12204 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12205 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12206 comment. Call low_stopped_data_address.
12207 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12208 m_dreg_interface.
12209 (ppc_linux_nat_target::masked_watch_num_registers): Use
12210 m_dreg_interface.
12211 (ppc_linux_nat_target::copy_thread_dreg_state)
12212 (ppc_linux_nat_target::mark_thread_stale)
12213 (ppc_linux_nat_target::mark_debug_registers_changed)
12214 (ppc_linux_nat_target::register_hw_breakpoint)
12215 (ppc_linux_nat_target::clear_hw_breakpoint)
12216 (ppc_linux_nat_target::register_wp)
12217 (ppc_linux_nat_target::clear_wp)
12218 (ppc_linux_nat_target::init_arch_lwp_info)
12219 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12220 (_initialize_ppc_linux_nat): Remove observer callback.
12221
12222 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12223
12224 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12225 (ppc_linux_nat_target::auxv_parse)
12226 (ppc_linux_nat_target::read_description)
12227 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12228 Move up.
12229
12230 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12231
12232 * linux-nat.h (low_new_clone): New method.
12233 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12234
12235 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12236
12237 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12238 (dbx_expand_psymtab): ... this.
12239 (start_psymtab): Update.
12240 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12241 (mdebug_expand_psymtab): ... this.
12242 (parse_partial_symbols): Update.
12243 (new_psymtab): Update.
12244 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12245 (xcoff_expand_psymtab): ... this.
12246 (xcoff_start_psymtab): Update.
12247
12248 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12249
12250 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12251 <expand_dependencies>: ... this.
12252 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12253 (partial_symtab::expand_dependencies): ... this.
12254 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12255 Update.
12256 (dwarf2_psymtab::expand_psymtab): Update.
12257 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12258 * mdebugread.c (psymtab_to_symtab_1): Update.
12259 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12260
12261 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12262
12263 * psympriv.h (discard_psymtab): Remove.
12264 * dbxread.c (dbx_end_psymtab): Update.
12265 * xcoffread.c (xcoff_end_psymtab): Update.
12266
12267 2020-03-28 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12270 comment.
12271
12272 2020-03-28 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12275
12276 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12277
12278 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12279
12280 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12281
12282 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12283
12284 2020-03-26 Tom Tromey <tom@tromey.com>
12285
12286 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12287 (mark_common_block_symbol_computed, read_tag_string_type)
12288 (attr_to_dynamic_prop, read_subrange_type): Update.
12289 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12290 to be methods on struct attribute.
12291 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12292 (read_call_site_scope, partial_die_info::read)
12293 (partial_die_info::read, lookup_die_type, follow_die_ref):
12294 Update.
12295 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12296 from dwarf2_get_ref_die_offset.
12297 (attribute::constant_value): New method, from
12298 dwarf2_get_attr_constant_value.
12299 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12300 Declare method.
12301 <constant_value>: New method.
12302
12303 2020-03-26 Tom Tromey <tom@tromey.com>
12304
12305 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12306 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12307 (dwarf_type_encoding_name): Move to stringify.c.
12308 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12309 * dwarf2/stringify.c: New file.
12310 * dwarf2/stringify.h: New file.
12311
12312 2020-03-26 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12315 Rewrite.
12316
12317 2020-03-26 Tom Tromey <tom@tromey.com>
12318
12319 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12320 methods.
12321 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12322 (lookup_ranges_base): Likewise.
12323 (read_cutu_die_from_dwo, read_full_die_1): Update.
12324
12325 2020-03-26 Tom Tromey <tom@tromey.com>
12326
12327 * dwarf2/read.c (read_import_statement, read_file_scope)
12328 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12329 (read_lexical_block_scope, read_call_site_scope)
12330 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12331 (handle_struct_member_die, process_structure_scope)
12332 (update_enumeration_type_from_children)
12333 (process_enumeration_scope, read_array_type, read_common_block)
12334 (read_namespace, read_module, read_subroutine_type): Update.
12335 (sibling_die): Remove.
12336
12337 2020-03-26 Tom Tromey <tom@tromey.com>
12338
12339 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12340 (build_type_psymtabs_reader, read_structure_type)
12341 (read_enumeration_type, read_full_die_1): Update.
12342 (dwarf2_attr_no_follow): Move to die.h.
12343 * dwarf2/die.h (struct die_info) <attr>: New method.
12344
12345 2020-03-26 Tom Tromey <tom@tromey.com>
12346
12347 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12348 <base_address>: Now an optional.
12349 (dwarf2_find_base_address, dwarf2_rnglists_process)
12350 (dwarf2_ranges_process, fill_in_loclist_baton)
12351 (dwarf2_symbol_mark_computed): Update.
12352
12353 2020-03-26 Tom Tromey <tom@tromey.com>
12354
12355 * dwarf2/read.c (struct die_info): Move to die.h.
12356 * dwarf2/die.h: New file.
12357
12358 2020-03-26 Tom Tromey <tom@tromey.com>
12359
12360 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12361 * dwarf2/read.c
12362 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12363 Move to line-header.c.
12364 (read_checked_initial_length_and_offset, read_formatted_entries):
12365 Likewise.
12366 (dwarf_decode_line_header): Split into two.
12367 * dwarf2/line-header.c
12368 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12369 Move from read.c.
12370 (read_checked_initial_length_and_offset, read_formatted_entries):
12371 Likewise.
12372 (dwarf_decode_line_header): New function, split from read.c.
12373
12374 2020-03-26 Tom Tromey <tom@tromey.com>
12375
12376 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12377 Declare method.
12378 * dwarf2/read.c (read_attribute_value): Update.
12379 (dwarf2_per_objfile::read_line_string): Rename from
12380 read_indirect_line_string.
12381 (read_formatted_entries): Update.
12382
12383 2020-03-26 Tom Tromey <tom@tromey.com>
12384
12385 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12386 variable.
12387
12388 2020-03-26 Tom Tromey <tom@tromey.com>
12389
12390 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12391 const.
12392 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12393 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12394 parameter const.
12395
12396 2020-03-26 Tom Tromey <tom@tromey.com>
12397
12398 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12399 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12400 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12401 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12402
12403 2020-03-26 Tom Tromey <tom@tromey.com>
12404
12405 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12406 file_names_size, file_full_name, file_file_name>: Use const.
12407 <file_name_at, file_names>: Add const overload.
12408 * dwarf2/line-header.c (line_header::file_file_name)
12409 (line_header::file_full_name): Update.
12410
12411 2020-03-26 Tom Tromey <tom@tromey.com>
12412
12413 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12414 (macro_start_file, consume_improper_spaces)
12415 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12416 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12417 (dwarf_decode_macros): Move to macro.c.
12418 * dwarf2/macro.c: New file.
12419 * dwarf2/macro.h: New file.
12420 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12421
12422 2020-03-26 Tom Tromey <tom@tromey.com>
12423
12424 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12425 method.
12426 * dwarf2/section.c: New method. From
12427 read_indirect_string_at_offset_from.
12428 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12429 (read_indirect_string_at_offset_from): Move to section.c.
12430 (read_indirect_string_at_offset): Rewrite.
12431 (read_indirect_line_string_at_offset): Remove.
12432 (read_indirect_string, read_indirect_line_string)
12433 (dwarf_decode_macro_bytes): Update.
12434
12435 2020-03-26 Tom Tromey <tom@tromey.com>
12436
12437 * dwarf2/section.h (struct dwarf2_section_info)
12438 <overload_complaint>: Declare.
12439 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12440 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12441 Rename from dwarf2_section_buffer_overflow_complaint.
12442 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12443 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12444
12445 2020-03-26 Tom Tromey <tom@tromey.com>
12446
12447 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12448 Declare.
12449 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12450 Move from read.c.
12451 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12452 to section.c.
12453
12454 2020-03-26 Tom Tromey <tom@tromey.com>
12455
12456 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12457
12458 2020-03-26 Tom Tromey <tom@tromey.com>
12459
12460 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12461 "builder".
12462 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12463 parameter.
12464 (dwarf_decode_macros): Update.
12465
12466 2020-03-26 Tom Tromey <tom@tromey.com>
12467
12468 * dwarf2/read.c (read_attribute_value): Update.
12469 (read_indirect_string_from_dwz): Move to dwz.c; change into
12470 method.
12471 (dwarf_decode_macro_bytes): Update.
12472 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12473 * dwarf2/dwz.c: New file.
12474 * Makefile.in (COMMON_SFILES): Add dwz.c.
12475
12476 2020-03-26 Tom Tromey <tom@tromey.com>
12477
12478 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12479 * dwarf2/read.c: Add include.
12480 * dwarf2/index-write.c: Add include.
12481 * dwarf2/index-cache.c: Add include.
12482 * dwarf2/dwz.h: New file.
12483
12484 2020-03-25 Tom Tromey <tom@tromey.com>
12485
12486 * compile/compile-object-load.c (get_out_value_type): Mention
12487 correct symbol name in error message.
12488
12489 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12490
12491 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12492
12493 2020-03-25 Tom de Vries <tdevries@suse.de>
12494
12495 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12496 * symmisc.c (dump_symtab_1): Print user and includes fields.
12497 (maintenance_info_symtabs): Same.
12498
12499 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12500
12501 PR gdb/25534
12502 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12503 (riscv_regcache_cooked_write): New function.
12504 (riscv_push_dummy_call): Use new function.
12505 (riscv_return_value): Likewise.
12506
12507 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12508
12509 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12510 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12511 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12512 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12513 * infrun.c (follow_fork): Likewise.
12514 (follow_fork_inferior): Likewise.
12515 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12516 * linux-nat.h (class linux_nat_target): Likewise.
12517 * remote.c (class remote_target) <follow_fork>: Likewise.
12518 (remote_target::follow_fork): Likewise.
12519 * target-delegates.c: Re-generate.
12520 * target.c (default_follow_fork): Likewise.
12521 (target_follow_fork): Likewise.
12522 * target.h (struct target_ops) <follow_fork>: Likewise.
12523 (target_follow_fork): Likewise.
12524
12525 2020-03-24 Tom de Vries <tdevries@suse.de>
12526
12527 * psymtab.c (maintenance_info_psymtabs): Print user field.
12528
12529 2020-03-20 Tom Tromey <tromey@adacore.com>
12530
12531 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12532 const.
12533 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12534 const.
12535
12536 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12537
12538 * ptrace.m4: Don't check for ptrace declaration.
12539 * config.in: Re-generate.
12540 * configure: Re-generate.
12541 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12542 not defined.
12543
12544 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12545
12546 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12547 `PTRACE_TYPE_RET'.
12548 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12549 * sparc-nat.c (gdb_ptrace): Likewise.
12550 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12551
12552 2020-03-20 Tom Tromey <tromey@adacore.com>
12553
12554 * c-exp.y (lex_one_token): Fix assert.
12555
12556 2020-03-20 Tom Tromey <tromey@adacore.com>
12557
12558 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12559 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12560 strncpy call.
12561
12562 2020-03-20 Tom Tromey <tromey@adacore.com>
12563
12564 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12565
12566 2020-03-20 Tom Tromey <tromey@adacore.com>
12567
12568 * ada-valprint.c (print_variant_part): Remove parameters; switch
12569 to value-based API.
12570 (print_field_values): Likewise.
12571 (ada_val_print_struct_union): Likewise.
12572 (ada_value_print_1): Update.
12573
12574 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12575
12576 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12577 nbsd_nat_target instead of inf_ptrace_target.
12578 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12579 nbsd_nat_target.
12580
12581 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12582
12583 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12584 it to the ptrace call.
12585 * (store_registers): Likewise.
12586
12587 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12588
12589 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12590 it to the ptrace call.
12591 * (store_registers): Likewise.
12592
12593 2020-03-19 Luis Machado <luis.machado@linaro.org>
12594
12595 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12596 valid, fetch vg value from ptrace.
12597
12598 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12599 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12600 * inf-ptrace.c: Likewise.
12601 * (gdb_ptrace): Add.
12602 * (inf_ptrace_target::resume): Update.
12603 * (inf_ptrace_target::xfer_partial): Likewise.
12604 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12605 * (inf_ptrace_peek_poke): Update.
12606
12607 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12608
12609 * x86-bsd-nat.c (gdb_ptrace): New.
12610 * (x86bsd_dr_set): Add new argument `ptid'.
12611 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12612 x86bsd_dr_set_addr): Update.
12613
12614 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12615
12616 * remote.c (remote_target::process_stop_reply): Handle events for
12617 all threads differently.
12618
12619 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12620
12621 * completer.c (completion_tracker::remove_completion): Define new
12622 function.
12623 * completer.h (completion_tracker::remove_completion): Declare new
12624 function.
12625 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12626 when adding a C++ function symbol.
12627
12628 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12629
12630 * completer.c (completion_tracker::completion_hash_entry): Define
12631 new class.
12632 (advance_to_filename_complete_word_point): Call
12633 recompute_lowest_common_denominator.
12634 (completion_tracker::completion_tracker): Call discard_completions
12635 to setup the hash table.
12636 (completion_tracker::discard_completions): Allow for being called
12637 from the constructor, pass new equal function, and element deleter
12638 when constructing the hash table. Initialise new class member
12639 variables.
12640 (completion_tracker::maybe_add_completion): Remove use of
12641 m_entries_vec, and store more information into m_entries_hash.
12642 (completion_tracker::recompute_lcd_visitor): New function, most
12643 content taken from...
12644 (completion_tracker::recompute_lowest_common_denominator):
12645 ...here, this now just visits each item in the hash calling the
12646 above visitor.
12647 (completion_tracker::build_completion_result): Remove use of
12648 m_entries_vec, call recompute_lowest_common_denominator.
12649 * completer.h (completion_tracker::have_completions): Remove use
12650 of m_entries_vec.
12651 (completion_tracker::completion_hash_entry): Declare new class.
12652 (completion_tracker::recompute_lowest_common_denominator): Change
12653 function signature.
12654 (completion_tracker::recompute_lcd_visitor): Declare new function.
12655 (completion_tracker::m_entries_vec): Delete.
12656 (completion_tracker::m_entries_hash): Initialize to NULL.
12657 (completion_tracker::m_lowest_common_denominator_valid): New
12658 member variable.
12659 (completion_tracker::m_lowest_common_denominator_max_length): New
12660 member variable.
12661
12662 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12663
12664 * regformats/regdef.h: Put reg in gdb namespace.
12665
12666 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12667
12668 * i386-bsd-nat.c (gdb_ptrace): New.
12669 * (i386bsd_fetch_inferior_registers,
12670 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12671 * (i386bsd_fetch_inferior_registers,
12672 i386bsd_store_inferior_registers) Use gdb_ptrace.
12673
12674 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12675
12676 * amd64-bsd-nat.c (gdb_ptrace): New.
12677 * (amd64bsd_fetch_inferior_registers,
12678 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12679 * (amd64bsd_fetch_inferior_registers,
12680 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12681
12682 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12683
12684 * user-regs.c (user_reg::read): Rename to...
12685 (user_reg::xread): ...this.
12686 * (append_user_reg): Rename argument `read' to `xread'.
12687 * (user_reg_add_builtin): Likewise.
12688 * (user_reg_add): Likewise.
12689 * (value_of_user_reg): Likewise.
12690
12691 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12692
12693 * sparc-nat.c (gdb_ptrace): New.
12694 * sparc-nat.c (sparc_fetch_inferior_registers)
12695 (sparc_store_inferior_registers) Remove obsolete comment.
12696 * sparc-nat.c (sparc_fetch_inferior_registers)
12697 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12698 * sparc-nat.c (sparc_fetch_inferior_registers)
12699 (sparc_store_inferior_registers) Use gdb_ptrace.
12700
12701 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12702
12703 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12704 it to the ptrace call.
12705 * sh-nbsd-nat.c (store_registers): Likewise.
12706
12707 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12708
12709 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12710 nbsd_nat_target instead of inf_ptrace_target.
12711 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12712 nbsd_nat_target.
12713
12714 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12715
12716 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12717
12718 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12719
12720 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12721 <sys/sysctl.h>.
12722 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12723
12724 2020-03-17 Tom de Vries <tdevries@suse.de>
12725
12726 PR gdb/23710
12727 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12728 fields.
12729 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12730 fields.
12731 (process_imported_unit_die): Skip import of c++ CUs.
12732
12733 2020-03-16 Tom Tromey <tom@tromey.com>
12734
12735 * p-valprint.c (pascal_object_print_value): Initialize
12736 base_value.
12737
12738 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12739 Shahab Vahedi <shahab@synopsys.com>
12740
12741 * Makefile.in: Add arch/arc.o
12742 * configure.tgt: Likewise.
12743 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12744 (_initialize_arc_tdep): Don't initialize old target descriptions.
12745 (arc_read_description): New function to cache target descriptions.
12746 * arc-tdep.h (arc_read_description): Add proto type.
12747 * arch/arc.c: New file.
12748 * arch/arc.h: Likewise.
12749 * features/Makefile: Replace old target descriptions with new.
12750 * features/arc-arcompact.c: Remove.
12751 * features/arc-arcompact.xml: Likewise.
12752 * features/arc-v2.c: Likewise
12753 * features/arc-v2.xml: Likewise
12754 * features/arc/aux-arcompact.xml: New file.
12755 * features/arc/aux-v2.xml: Likewise.
12756 * features/arc/core-arcompact.xml: Likewise.
12757 * features/arc/core-v2.xml: Likewise.
12758 * features/arc/aux-arcompact.c: Generate.
12759 * features/arc/aux-v2.c: Likewise.
12760 * features/arc/core-arcompact.c: Likewise.
12761 * features/arc/core-v2.c: Likewise.
12762 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12763
12764 2020-03-16 Tom Tromey <tromey@adacore.com>
12765
12766 PR gdb/25663:
12767 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12768 putting value into bcache.
12769
12770 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12771
12772 PR gdb/21500
12773 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12774 to...
12775 (amd64_windows_init_abi_common): ... this. Don't set size of
12776 long type.
12777 (amd64_windows_init_abi): New function.
12778 (amd64_cygwin_init_abi): New function.
12779 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12780 the Cygwin OS ABI.
12781 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12782 comment.
12783
12784 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12785
12786 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12787 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12788 (pe_import_directory_entry): New struct type.
12789 (is_linked_with_cygwin_dll): New function.
12790 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12791 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12792 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12793
12794 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12795
12796 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12797 i386_cygwin_core_osabi_sniffer.
12798
12799 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12800
12801 * i386-cygwin-tdep.c: Rename to...
12802 * i386-windows-tdep.c: ... this.
12803 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12804 i386-windows-tdep.c.
12805 * configure.tgt: Likewise.
12806
12807 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12808
12809 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12810 * osabi.c (gdb_osabi_names): Add "Windows".
12811 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12812 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12813 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12814 i386_cygwin_osabi_sniffer.
12815 (_initialize_i386_cygwin_tdep): Register OS ABI
12816 GDB_OSABI_WINDOWS for i386.
12817 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12818 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12819 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12820 for x86-64.
12821 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12822 when the target matches '*-*-mingw*'.
12823
12824 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * defs.h (enum gdb_osabi): Move to...
12827 * osabi.h (enum gdb_osabi): ... here.
12828 * gdbarch.sh: Include osabi.h in gdbarch.h.
12829 * gdbarch.h: Re-generate.
12830
12831 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12832
12833 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12834 function.
12835 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12836
12837 2020-03-14 Tom Tromey <tom@tromey.com>
12838
12839 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12840 for C++.
12841 (c_type_print_modifier): Likewise. Add "language" parameter.
12842 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12843 (c_type_print_base_1): Update.
12844 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12845 constants.
12846 * type-stack.c (type_stack::insert): Handle tp_atomic and
12847 tp_restrict.
12848 (type_stack::follow_type_instance_flags): Likewise.
12849 (type_stack::follow_types): Likewise. Merge type-following code.
12850 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12851 (space_identifier, cv_with_space_id)
12852 (const_or_volatile_or_space_identifier_noopt)
12853 (const_or_volatile_or_space_identifier): Remove.
12854 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12855 rules.
12856 (ptr_operator, typebase): Update.
12857 (enum token_flag) <FLAG_C>: New constant.
12858 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12859 "_Atomic".
12860 (lex_one_token): Handle FLAG_C.
12861
12862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12863
12864 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12865 it to the ptrace call.
12866 * m68k-bsd-nat.c (store_registers): Likewise.
12867
12868 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12869
12870 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12871 gdb_byte *.
12872 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12873 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12874 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12875
12876 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12877
12878 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12879 nbsd_nat_target instead of inf_ptrace_target.
12880 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12881 nbsd_nat_target.
12882
12883 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12884
12885 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12886 register_t.
12887
12888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12889
12890 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12891 it to the ptrace call.
12892 * alpha-bsd-nat.c (store_registers): Likewise.
12893
12894 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12895
12896 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12897 includes.
12898 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12899 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12900 fill_fpregset): Likewise.
12901
12902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12903
12904 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12905 nbsd_nat_target instead of inf_ptrace_target.
12906 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12907 nbsd_nat_target.
12908
12909 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12910
12911 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12912 register_t.
12913
12914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12915
12916 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12917 it to the ptrace call.
12918 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12919 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12920 * arm-nbsd-nat.c (store_register): Likewise.
12921 * arm-nbsd-nat.c (store_regs): Likewise.
12922 * arm-nbsd-nat.c (store_fp_register): Likewise.
12923 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12924
12925 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12926
12927 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12928 nbsd_nat_target instead of inf_ptrace_target.
12929 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12930 nbsd_nat_target.
12931
12932 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12933
12934 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12935 it to the ptrace call.
12936 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12937
12938 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12939
12940 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12941 it to the ptrace call.
12942 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12943
12944 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12945
12946 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12947 gdb_byte *.
12948 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12949
12950 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12951
12952 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12953 instead of inf_ptrace_target.
12954 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12955 nbsd_nat_target.
12956
12957 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12958
12959 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12960 register_t.
12961
12962 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12963
12964 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12965 register_t.
12966
12967 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12968
12969 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12970 register_t.
12971
12972 2020-03-13 Tom Tromey <tom@tromey.com>
12973
12974 * value.h (val_print): Don't declare.
12975 * valprint.h (val_print_array_elements)
12976 (val_print_scalar_formatted, generic_val_print): Don't declare.
12977 * valprint.c (generic_val_print_array): Take a struct value.
12978 (generic_val_print_ptr, generic_val_print_memberptr)
12979 (generic_val_print_bool, generic_val_print_int)
12980 (generic_val_print_char, generic_val_print_complex)
12981 (generic_val_print): Remove.
12982 (generic_value_print): Update.
12983 (do_val_print): Remove unused parameters. Don't call
12984 la_val_print.
12985 (val_print): Remove.
12986 (common_val_print): Update. Don't call value_check_printable.
12987 (val_print_scalar_formatted, val_print_array_elements): Remove.
12988 * rust-lang.c (rust_val_print): Remove.
12989 (rust_language_defn): Update.
12990 * p-valprint.c (pascal_val_print): Remove.
12991 (pascal_value_print_inner): Update.
12992 (pascal_object_print_val_fields, pascal_object_print_val):
12993 Remove.
12994 (pascal_object_print_static_field): Update.
12995 * p-lang.h (pascal_val_print): Don't declare.
12996 * p-lang.c (pascal_language_defn): Update.
12997 * opencl-lang.c (opencl_language_defn): Update.
12998 * objc-lang.c (objc_language_defn): Update.
12999 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13000 * m2-lang.h (m2_val_print): Don't declare.
13001 * m2-lang.c (m2_language_defn): Update.
13002 * language.h (struct language_defn) <la_val_print>: Remove.
13003 * language.c (unk_lang_value_print_inner): Rename. Change
13004 argument types.
13005 (unknown_language_defn, auto_language_defn): Update.
13006 * go-valprint.c (go_val_print): Remove.
13007 * go-lang.h (go_val_print): Don't declare.
13008 * go-lang.c (go_language_defn): Update.
13009 * f-valprint.c (f_val_print): Remove.
13010 * f-lang.h (f_value_print): Don't declare.
13011 * f-lang.c (f_language_defn): Update.
13012 * d-valprint.c (d_val_print): Remove.
13013 * d-lang.h (d_value_print): Don't declare.
13014 * d-lang.c (d_language_defn): Update.
13015 * cp-valprint.c (cp_print_value_fields)
13016 (cp_print_value_fields_rtti, cp_print_value): Remove.
13017 (cp_print_static_field): Update.
13018 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13019 (c_val_print_struct, c_val_print_union, c_val_print_int)
13020 (c_val_print_memberptr, c_val_print): Remove.
13021 * c-lang.h (c_val_print_array, cp_print_value_fields)
13022 (cp_print_value_fields_rtti): Don't declare.
13023 * c-lang.c (c_language_defn, cplus_language_defn)
13024 (asm_language_defn, minimal_language_defn): Update.
13025 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13026 (ada_val_print_enum): Take a struct value.
13027 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13028 (ada_val_print): Remove.
13029 (ada_value_print_1): Update.
13030 (printable_val_type): Remove.
13031 * ada-lang.h (ada_val_print): Don't declare.
13032 * ada-lang.c (ada_language_defn): Update.
13033
13034 2020-03-13 Tom Tromey <tom@tromey.com>
13035
13036 * valprint.c (do_val_print): Update.
13037 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13038 a struct value.
13039 (value_to_value_object_no_release): Declare.
13040 * python/py-value.c (value_to_value_object_no_release): New
13041 function.
13042 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13043 struct value.
13044 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13045 function.
13046 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13047 a struct value.
13048 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13049 Declare.
13050 (gdbscm_apply_val_pretty_printer): Take a struct value.
13051 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13052 value.
13053 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13054 value.
13055 * extension-priv.h (struct extension_language_ops)
13056 <apply_val_pretty_printer>: Take a struct value.
13057 * cp-valprint.c (cp_print_value): Create a struct value.
13058 (cp_print_value): Update.
13059
13060 2020-03-13 Tom Tromey <tom@tromey.com>
13061
13062 * ada-valprint.c (print_field_values): Call common_val_print.
13063
13064 2020-03-13 Tom Tromey <tom@tromey.com>
13065
13066 * ada-valprint.c (val_print_packed_array_elements): Remove
13067 bitoffset and val parameters. Call common_val_print.
13068 (ada_val_print_string): Remove offset, address, and original_value
13069 parameters.
13070 (ada_val_print_array): Update.
13071 (ada_value_print_array): New function.
13072 (ada_value_print_1): Call it.
13073
13074 2020-03-13 Tom Tromey <tom@tromey.com>
13075
13076 * ada-valprint.c (ada_value_print): Use common_val_print.
13077
13078 2020-03-13 Tom Tromey <tom@tromey.com>
13079
13080 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13081
13082 2020-03-13 Tom Tromey <tom@tromey.com>
13083
13084 * ada-valprint.c (ada_value_print_num): New function.
13085 (ada_value_print_1): Use it.
13086
13087 2020-03-13 Tom Tromey <tom@tromey.com>
13088
13089 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13090
13091 2020-03-13 Tom Tromey <tom@tromey.com>
13092
13093 * ada-valprint.c (ada_value_print_ptr): New function.
13094 (ada_value_print_1): Use it.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13099 call common_val_print.
13100 (ada_val_print_1): Update.
13101 (ada_value_print_1): New function.
13102 (ada_value_print_inner): Rewrite.
13103
13104 2020-03-13 Tom Tromey <tom@tromey.com>
13105
13106 * cp-valprint.c (cp_print_value_fields): Update.
13107 (cp_print_value): New function.
13108
13109 2020-03-13 Tom Tromey <tom@tromey.com>
13110
13111 * m2-valprint.c (m2_value_print_inner): Use
13112 cp_print_value_fields.
13113 * cp-valprint.c (cp_print_value_fields): New function.
13114 * c-valprint.c (c_value_print_struct): New function.
13115 (c_value_print_inner): Use c_value_print_struct.
13116 * c-lang.h (cp_print_value_fields): Declare.
13117
13118 2020-03-13 Tom Tromey <tom@tromey.com>
13119
13120 * c-valprint.c (c_value_print_array): New function.
13121 (c_value_print_inner): Use it.
13122
13123 2020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * c-valprint.c (c_value_print_memberptr): New function.
13126 (c_value_print_inner): Use it.
13127
13128 2020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * c-valprint.c (c_value_print_int): New function.
13131 (c_value_print_inner): Use it.
13132
13133 2020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * c-valprint.c (c_value_print_ptr): New function.
13136 (c_value_print_inner): Use it.
13137
13138 2020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * c-valprint.c (c_value_print_inner): Rewrite.
13141
13142 2020-03-13 Tom Tromey <tom@tromey.com>
13143
13144 * valprint.c (generic_value_print_complex): New function.
13145 (generic_value_print): Use it.
13146
13147 2020-03-13 Tom Tromey <tom@tromey.com>
13148
13149 * valprint.c (generic_val_print_float): Don't call
13150 val_print_scalar_formatted.
13151 (generic_val_print, generic_value_print): Update.
13152
13153 2020-03-13 Tom Tromey <tom@tromey.com>
13154
13155 * valprint.c (generic_value_print_char): New function
13156 (generic_value_print): Use it.
13157
13158 2020-03-13 Tom Tromey <tom@tromey.com>
13159
13160 * valprint.c (generic_value_print_int): New function.
13161 (generic_value_print): Use it.
13162
13163 2020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * valprint.c (generic_value_print_bool): New function.
13166 (generic_value_print): Use it.
13167
13168 2020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * valprint.c (generic_val_print_func): Simplify.
13171 (generic_val_print, generic_value_print): Update.
13172
13173 2020-03-13 Tom Tromey <tom@tromey.com>
13174
13175 * valprint.c (generic_val_print_flags): Remove.
13176 (generic_val_print, generic_value_print): Update.
13177 (val_print_type_code_flags): Add original_value parameter.
13178
13179 2020-03-13 Tom Tromey <tom@tromey.com>
13180
13181 * valprint.c (generic_val_print): Update.
13182 (generic_value_print): Update.
13183 * valprint.c (generic_val_print_enum): Don't call
13184 val_print_scalar_formatted.
13185
13186 2020-03-13 Tom Tromey <tom@tromey.com>
13187
13188 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13189 * valprint.c (generic_value_print_ptr): New function.
13190
13191 2020-03-13 Tom Tromey <tom@tromey.com>
13192
13193 * valprint.c (generic_value_print): Rewrite.
13194
13195 2020-03-13 Tom Tromey <tom@tromey.com>
13196
13197 * p-valprint.c (pascal_object_print_value_fields)
13198 (pascal_object_print_value): New functions.
13199
13200 2020-03-13 Tom Tromey <tom@tromey.com>
13201
13202 * p-valprint.c (pascal_value_print_inner): Rewrite.
13203
13204 2020-03-13 Tom Tromey <tom@tromey.com>
13205
13206 * f-valprint.c (f_value_print_innner): Rewrite.
13207
13208 2020-03-13 Tom Tromey <tom@tromey.com>
13209
13210 * m2-valprint.c (m2_print_unbounded_array): New overload.
13211 (m2_print_unbounded_array): Update.
13212 (m2_print_array_contents): Take a struct value.
13213 (m2_value_print_inner): Rewrite.
13214
13215 2020-03-13 Tom Tromey <tom@tromey.com>
13216
13217 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13218 (d_value_print_inner): New function.
13219 * d-lang.h (d_value_print_inner): Declare.
13220 * d-lang.c (d_language_defn): Use d_value_print_inner.
13221
13222 2020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * go-valprint.c (go_value_print_inner): New function.
13225 * go-lang.h (go_value_print_inner): Declare.
13226 * go-lang.c (go_language_defn): Use go_value_print_inner.
13227
13228 2020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13231 API.
13232 (rust_val_print): Rewrite.
13233 (rust_value_print_inner): New function, from rust_val_print.
13234 (rust_language_defn): Use rust_value_print_inner.
13235
13236 2020-03-13 Tom Tromey <tom@tromey.com>
13237
13238 * ada-valprint.c (ada_value_print_inner): New function.
13239 * ada-lang.h (ada_value_print_inner): Declare.
13240 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13241
13242 2020-03-13 Tom Tromey <tom@tromey.com>
13243
13244 * f-valprint.c (f_value_print_innner): New function.
13245 * f-lang.h (f_value_print_innner): Declare.
13246 * f-lang.c (f_language_defn): Use f_value_print_innner.
13247
13248 2020-03-13 Tom Tromey <tom@tromey.com>
13249
13250 * p-valprint.c (pascal_value_print_inner): New function.
13251 * p-lang.h (pascal_value_print_inner): Declare.
13252 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13253
13254 2020-03-13 Tom Tromey <tom@tromey.com>
13255
13256 * m2-valprint.c (m2_value_print_inner): New function.
13257 * m2-lang.h (m2_value_print_inner): Declare.
13258 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13259
13260 2020-03-13 Tom Tromey <tom@tromey.com>
13261
13262 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13263 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13264 * c-valprint.c (c_value_print_inner): New function.
13265 * c-lang.h (c_value_print_inner): Declare.
13266 * c-lang.c (c_language_defn, cplus_language_defn)
13267 (asm_language_defn, minimal_language_defn): Use
13268 c_value_print_inner.
13269
13270 2020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * p-valprint.c (pascal_object_print_value_fields): Now static.
13273 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13274
13275 2020-03-13 Tom Tromey <tom@tromey.com>
13276
13277 * c-valprint.c (c_val_print_array): Simplify.
13278
13279 2020-03-13 Tom Tromey <tom@tromey.com>
13280
13281 * valprint.c (value_print_array_elements): New function.
13282 * valprint.h (value_print_array_elements): Declare.
13283
13284 2020-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13287 * mips-tdep.c (mips_print_register): Use
13288 value_print_scalar_formatted.
13289
13290 2020-03-13 Tom Tromey <tom@tromey.com>
13291
13292 * valprint.h (value_print_scalar_formatted): Declare.
13293 * valprint.c (value_print_scalar_formatted): New function.
13294
13295 2020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * valprint.h (generic_value_print): Declare.
13298 * valprint.c (generic_value_print): New function.
13299
13300 2020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * valprint.c (do_val_print): Call la_value_print_inner, if
13303 available.
13304 * rust-lang.c (rust_language_defn): Update.
13305 * p-lang.c (pascal_language_defn): Update.
13306 * opencl-lang.c (opencl_language_defn): Update.
13307 * objc-lang.c (objc_language_defn): Update.
13308 * m2-lang.c (m2_language_defn): Update.
13309 * language.h (struct language_defn) <la_value_print_inner>: New
13310 member.
13311 * language.c (unknown_language_defn, auto_language_defn): Update.
13312 * go-lang.c (go_language_defn): Update.
13313 * f-lang.c (f_language_defn): Update.
13314 * d-lang.c (d_language_defn): Update.
13315 * c-lang.c (c_language_defn, cplus_language_defn)
13316 (asm_language_defn, minimal_language_defn): Update.
13317 * ada-lang.c (ada_language_defn): Update.
13318
13319 2020-03-13 Tom Tromey <tom@tromey.com>
13320
13321 * c-valprint.c (c_value_print): Use common_val_print.
13322
13323 2020-03-13 Tom Tromey <tom@tromey.com>
13324
13325 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13326
13327 2020-03-13 Tom Tromey <tom@tromey.com>
13328
13329 * f-valprint.c (f77_print_array_1, f_val_print): Use
13330 common_val_print.
13331
13332 2020-03-13 Tom Tromey <tom@tromey.com>
13333
13334 * riscv-tdep.c (riscv_print_one_register_info): Use
13335 common_val_print.
13336
13337 2020-03-13 Tom Tromey <tom@tromey.com>
13338
13339 * mi/mi-main.c (output_register): Use common_val_print.
13340
13341 2020-03-13 Tom Tromey <tom@tromey.com>
13342
13343 * infcmd.c (default_print_one_register_info): Use
13344 common_val_print.
13345
13346 2020-03-13 Tom Tromey <tom@tromey.com>
13347
13348 * valprint.h (common_val_print_checked): Declare.
13349 * valprint.c (common_val_print_checked): New function.
13350 * stack.c (print_frame_arg): Use common_val_print_checked.
13351
13352 2020-03-13 Tom Tromey <tom@tromey.com>
13353
13354 * valprint.c (do_val_print): New function, from val_print.
13355 (val_print): Use do_val_print.
13356 (common_val_print): Use do_val_print.
13357
13358 2020-03-13 Tom Tromey <tom@tromey.com>
13359
13360 * valprint.c (value_print): Use scoped_value_mark.
13361
13362 2020-03-13 Tom de Vries <tdevries@suse.de>
13363
13364 PR symtab/25646
13365 * psymtab.c (partial_symtab::partial_symtab): Don't set
13366 globals_offset and statics_offset. Push element onto
13367 current_global_psymbols and current_static_psymbols stacks.
13368 (concat): New function.
13369 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13370 element from current_global_psymbols and current_static_psymbols
13371 stacks. Concat popped elements to global_psymbols and
13372 static_symbols.
13373 (add_psymbol_to_list): Use current_global_psymbols and
13374 current_static_psymbols stacks.
13375 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13376 current_static_psymbols fields.
13377
13378 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13379
13380 * corelow.c (sniff_core_bfd): Remove.
13381 (class core_target) <m_core_vec>: Remove.
13382 (core_target::core_target): Update.
13383 (core_file_fns): Remove.
13384 (deprecated_add_core_fns): Remove.
13385 (default_core_sniffer): Remove.
13386 (sniff_core_bfd): Remove.
13387 (default_check_format): Remove.
13388 (gdb_check_format): Remove.
13389 (core_target_open): Update.
13390 (core_target::get_core_register_section): Update.
13391 (get_core_registers_cb): Update.
13392 (core_target::fetch_registers): Update.
13393 * gdbcore.h (struct core_fns): Remove.
13394 (deprecated_add_core_fns): Remove.
13395 (default_core_sniffer): Remove.
13396 (default_check_format): Remove.
13397
13398 2020-03-12 Tom Tromey <tom@tromey.com>
13399
13400 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13401 CORE_ADDR.
13402 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13403
13404 2020-03-12 Tom Tromey <tom@tromey.com>
13405
13406 * remote.c (remote_target::download_tracepoint)
13407 (remote_target::enable_tracepoint)
13408 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13409 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13410 sprintf_vma.
13411
13412 2020-03-12 Tom Tromey <tom@tromey.com>
13413
13414 * symfile-mem.c: Update CORE_ADDR size assert.
13415
13416 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13417
13418 * selftest.m4: Move to gdbsupport/.
13419 * acinclude.m4: Update path to selftest.m4.
13420
13421 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13424 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13425 gdbarch-selfselftests.c and selftest-arch.c.
13426 (SUBDIR_UNITTESTS_OBS): Rename to...
13427 (SELFTESTS_OBS): ... this.
13428 (COMMON_SFILES): Remove disasm-selftests.c and
13429 gdbarch-selftests.c.
13430 * configure.ac: Don't add selftest-arch.{c,o} to
13431 CONFIG_{SRCS,OBS}.
13432 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13433 preprocessor conditions.
13434
13435 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13436
13437 * configure.ac: Don't source bfd/development.sh.
13438 * selftest.m4: Modify comment.
13439 * configure: Re-generate.
13440
13441 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13442
13443 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13444 not "true" or "false".
13445 * configure: Re-generate.
13446
13447 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13448
13449 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13450 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13451 renamed to arm_nbsd_supply_gregset.
13452 (fetch_register): Update to call arm_nbsd_supply_gregset.
13453 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13454 (arm_netbsd_nat_target::fetch_registers): Update.
13455 (fetch_elfcore_registers): Removed.
13456 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13457 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13458 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13459 not require NetBSD system headers.
13460 (arm_nbsd_regset): New struct.
13461 (arm_nbsd_iterate_over_regset_sections): New function.
13462 (arm_netbsd_init_abi_common): Updated to call
13463 set_gdbarch_iterate_over_regset_sections.
13464 * arm-nbsd-tdep.h: New file.
13465
13466 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13467
13468 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13469 recursion.
13470
13471 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13472
13473 * configure: Re-generate.
13474
13475 2020-03-11 Tom Tromey <tromey@adacore.com>
13476
13477 * ada-typeprint.c (print_choices): Fix comment.
13478
13479 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13480
13481 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13482 previous item in the list, when the list has no items.
13483
13484 2020-03-11 Tom de Vries <tdevries@suse.de>
13485
13486 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13487 PROP_LOCLIST handling code.
13488
13489 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * buildsym-legacy.c (record_line): Pass extra parameter to
13492 record_line.
13493 * buildsym.c (buildsym_compunit::record_line): Take an extra
13494 parameter, reduce duplication in the line table, and record the
13495 is_stmt flag in the line table.
13496 * buildsym.h (buildsym_compunit::record_line): Add extra
13497 parameter.
13498 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13499 non-statement lines.
13500 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13501 this to the symtab builder.
13502 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13503 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13504 through to dwarf_record_line_1.
13505 * infrun.c (process_event_stop_test): When stepping, don't stop at
13506 a non-statement instruction, and only refresh the step info when
13507 we land in the middle of a line's range. Also add an extra
13508 comment.
13509 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13510 field.
13511 * record-btrace.c (btrace_find_line_range): Only record lines
13512 marked as is-statement.
13513 * stack.c (frame_show_address): Show the frame address if we are
13514 in a non-statement sal.
13515 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13516 (maintenance_print_one_line_table): Print a header for the is_stmt
13517 column, and include is_stmt information in the output.
13518 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13519 preference to non-statements.
13520 (find_pcs_for_symtab_line): Prefer is-statement entries.
13521 (find_line_common): Likewise.
13522 * symtab.h (struct linetable_entry): Add is_stmt field.
13523 (struct symtab_and_line): Likewise.
13524 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13525 arranging the line table.
13526
13527 2020-03-07 Tom de Vries <tdevries@suse.de>
13528
13529 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13530 DIE.
13531
13532 2020-03-07 Tom Tromey <tom@tromey.com>
13533
13534 * valops.c (value_literal_complex): Remove obsolete comment.
13535 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13536 comment.
13537
13538 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13539
13540 * infrun.h: Forward-declare thread_info.
13541 (set_step_info): Add thread_info parameter, add doc.
13542 * infrun.c (set_step_info): Add thread_info parameter, move doc
13543 to header.
13544 * infrun.c (process_event_stop_test): Pass thread to
13545 set_step_info call.
13546 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13547 set_step_info.
13548 (prepare_one_step): Add thread_info parameter, pass it to
13549 set_step_frame and prepare_one_step (recursive) call.
13550 (step_1): Pass thread to prepare_one_step call.
13551 (step_command_fsm::should_stop): Pass thread to
13552 prepare_one_step.
13553 (until_next_fsm): Pass thread to set_step_frame call.
13554 (finish_command): Pass thread to set_step_info call.
13555
13556 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13557
13558 * windows-tdep.c (windows_solib_create_inferior_hook):
13559 Check if inferior is running.
13560
13561 2020-03-06 Tom de Vries <tdevries@suse.de>
13562
13563 * NEWS: Fix "the the".
13564 * ctfread.c: Same.
13565
13566 2020-03-06 Tom de Vries <tdevries@suse.de>
13567
13568 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13569
13570 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13571
13572 * .dir-locals.el: Add a comment referencing the other copies of
13573 this file.
13574
13575 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13576
13577 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13578 psargs.
13579
13580 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13581
13582 * .gitattributes: New file.
13583
13584 2020-03-04 Tom Tromey <tom@tromey.com>
13585
13586 * symmisc.c (print_symbol_bcache_statistics)
13587 (print_objfile_statistics): Update.
13588 * symfile.c (allocate_symtab): Use intern.
13589 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13590 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13591 macro_cache>: Remove.
13592 <string_cache>: New member.
13593 (struct objfile) <intern>: New methods.
13594 * elfread.c (elf_symtab_read): Use intern.
13595 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13596 (dwarf2_compute_name, dwarf2_physname)
13597 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13598 names.
13599 (guess_partial_die_structure_name): Update.
13600 (partial_die_info::fixup): Intern name.
13601 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13602 name.
13603 (dwarf2_name): Intern name. Update.
13604 * buildsym.c (buildsym_compunit::get_macro_table): Use
13605 string_cache.
13606
13607 2020-03-04 Tom Tromey <tom@tromey.com>
13608
13609 * jit.c (bfd_open_from_target_memory): Make "target" const.
13610 * corefile.c (gnutarget): Now const.
13611 * gdbcore.h (gnutarget): Now const.
13612
13613 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13614
13615 * NEWS: Mention support for WOW64 processes.
13616 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13617 (amd64_windows_segment_register_p): Remove static.
13618 (_initialize_amd64_windows_nat): Update.
13619 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13620 * i386-windows-nat.c (context_offset): Update.
13621 (i386_mappings): Rename and remove static.
13622 (i386_windows_segment_register_p): Remove static.
13623 (_initialize_i386_windows_nat): Update.
13624 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13625 (STATUS_WX86_SINGLE_STEP): New macro.
13626 (EnumProcessModulesEx): New macro.
13627 (Wow64SuspendThread): New macro.
13628 (Wow64GetThreadContext): New macro.
13629 (Wow64SetThreadContext): New macro.
13630 (Wow64GetThreadSelectorEntry): New macro.
13631 (windows_set_context_register_offsets): Add static.
13632 (windows_set_segment_register_p): Likewise.
13633 (windows_add_thread): Adapt for WOW64 processes.
13634 (windows_fetch_one_register): Likewise.
13635 (windows_nat_target::fetch_registers): Likewise.
13636 (windows_store_one_register): Likewise.
13637 (display_selector): Likewise.
13638 (display_selectors): Likewise.
13639 (handle_exception): Likewise.
13640 (windows_continue): Likewise.
13641 (windows_nat_target::resume): Likewise.
13642 (windows_add_all_dlls): Likewise.
13643 (do_initial_windows_stuff): Likewise.
13644 (windows_nat_target::attach): Likewise.
13645 (windows_get_exec_module_filename): Likewise.
13646 (windows_nat_target::create_inferior): Likewise.
13647 (windows_xfer_siginfo): Likewise.
13648 (_initialize_loadable): Initialize Wow64SuspendThread,
13649 Wow64GetThreadContext, Wow64SetThreadContext,
13650 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13651 * windows-nat.h (windows_set_context_register_offsets):
13652 Remove declaration.
13653 (windows_set_segment_register_p): Likewise.
13654 (i386_windows_segment_register_p): Add declaration.
13655 (amd64_windows_segment_register_p): Likewise.
13656
13657 2020-03-04 Luis Machado <luis.machado@linaro.org>
13658
13659 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13660 in "info registers" for AArch64/ARM.
13661
13662 The change caused "info registers" to not print GPR's.
13663
13664 gdb/ChangeLog:
13665
13666 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13667
13668 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13669 when reg->group is empty and reggroup is not.
13670
13671 2020-03-03 Tom Tromey <tromey@adacore.com>
13672
13673 * dwarf2/frame.c (struct dwarf2_frame_cache)
13674 <checked_tailcall_bottom, entry_cfa_sp_offset,
13675 entry_cfa_sp_offset_p>: Remove members.
13676 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13677 (dwarf2_frame_prev_register): Don't call
13678 dwarf2_tailcall_sniffer_first.
13679 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13680 * frame-unwind.c (add_unwinder): New fuction.
13681 (frame_unwind_init): Use it. Add tailcall unwinder.
13682
13683 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13684 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13685
13686 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13687 value should be printed as true.
13688
13689 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13690
13691 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13692 (windows_init_abi): Set and use windows_so_ops.
13693
13694 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13695
13696 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13697 when verifying if dealing with a convenience variable.
13698
13699 2020-03-03 Luis Machado <luis.machado@linaro.org>
13700
13701 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13702
13703 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13704
13705 * infrun.c (gdbarch_supports_displaced_stepping): New.
13706 (use_displaced_stepping): Break up conditions in smaller pieces.
13707 Use gdbarch_supports_displaced_stepping.
13708 (displaced_step_prepare_throw): Use
13709 gdbarch_supports_displaced_stepping.
13710
13711 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13712
13713 * NEWS: Mention new behaviour of the history filename.
13714 * top.c (write_history_p): Add comment.
13715 (show_write_history_p): Add header comment, give a different
13716 message when history writing is on, but the history filename is
13717 empty.
13718 (history_filename): Add comment.
13719 (history_filename_empty): New function.
13720 (show_history_filename): Add header comment, give a different
13721 message when the filename is empty.
13722 (init_history): Compare history_filename against nullptr, and only
13723 read history if the filename is not empty.
13724 (set_history_filename): Add header comment, and only make
13725 non-empty filenames absolute.
13726 (init_main): Make the filename argument to 'set history filename'
13727 optional.
13728
13729 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13730
13731 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13732 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13733 (fetch_fp_register): Update.
13734 (fetch_fp_regs): Update.
13735 (store_fp_register): Update.
13736 (store_fp_regs): Update.
13737 (arm_netbsd_nat_target::read_description): New function.
13738 (fetch_elfcore_registers): Update.
13739
13740 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13741
13742 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13743 general_thread if the stop reply is missing a thread-id.
13744 (remote_target::process_stop_reply): Use the first non-exited
13745 thread if the target didn't pass a thread-id.
13746 * infrun.c (do_target_wait): Move call to
13747 switch_to_inferior_no_thread to ....
13748 (do_target_wait_1): ... here.
13749
13750 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13751
13752 * debuginfod-support.c: Include defs.h first.
13753
13754 2020-02-28 Tom de Vries <tdevries@suse.de>
13755
13756 * symfile.c (set_initial_language): Use default language for lookup.
13757
13758 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13759
13760 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13761 reader variable, pass `this` to read_cutu_die_from_dwo.
13762
13763 2020-02-27 Aaron Merey <amerey@redhat.com>
13764
13765 * source.c (open_source_file): Check for nullptr when computing
13766 srcpath.
13767
13768 2020-02-27 Tom Tromey <tromey@adacore.com>
13769
13770 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13771 member.
13772 (dwarf2_add_field): Don't update nfields.
13773 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13774
13775 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13776
13777 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13778 abs.
13779
13780 2020-02-26 Tom Tromey <tom@tromey.com>
13781
13782 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13783 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13784 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13785 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13786 per_cu_data.
13787
13788 2020-02-26 Tom Tromey <tom@tromey.com>
13789
13790 * dwarf2/index-write.c (psym_index_map): Change type.
13791 (add_address_entry_worker, write_one_signatured_type)
13792 (recursively_count_psymbols, recursively_write_psymbols)
13793 (class debug_names, psyms_seen_size, write_gdbindex)
13794 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13795
13796 2020-02-26 Aaron Merey <amerey@redhat.com>
13797
13798 * Makefile.in: Handle optional debuginfod support.
13799 * NEWS: Update.
13800 * README: Add --with-debuginfod summary.
13801 * config.in: Regenerate.
13802 * configure: Regenerate.
13803 * configure.ac: Handle optional debuginfod support.
13804 * debuginfod-support.c: debuginfod helper functions.
13805 * debuginfod-support.h: Ditto.
13806 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13807 summary.
13808 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13809 when a dwz file cannot be found.
13810 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13811 debuginfo file cannot be found.
13812 * source.c (open_source_file): Query debuginfod servers when a
13813 source file cannot be found.
13814 * top.c (print_gdb_configuration): Include
13815 --{with,without}-debuginfod in the output.
13816
13817 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13818
13819 * thread.c (thr_try_catch_cmd): Print thread name.
13820
13821 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13822
13823 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13824 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13825 dwarf2_fetch_die_type_sect_off): Move to...
13826 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13827 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13828 dwarf2_fetch_die_type_sect_off): ... here.
13829 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13830 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13831 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13832
13833 2020-02-26 Tom de Vries <tdevries@suse.de>
13834
13835 PR gdb/25603
13836 * symfile.c (set_initial_language): Exit-early if
13837 language_mode == language_mode_manual.
13838
13839 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13840
13841 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13842 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13843 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13844
13845 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13846
13847 * gdbtypes.c (create_array_type_with_stride): Handle negative
13848 array strides.
13849 * valarith.c (value_subscripted_rvalue): Likewise.
13850
13851 2020-02-25 Luis Machado <luis.machado@linaro.org>
13852
13853 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13854
13855 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13856
13857 * loc.h (dwarf2_get_die_type): Move to...
13858 * read.h (dwarf2_get_die_type): ... here.
13859 * read.c (dwarf2_get_die_type): Move doc to header.
13860
13861 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13862
13863 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13864 'gnulib/Makefile.in' to the list.
13865
13866 2020-02-24 Tom Tromey <tom@tromey.com>
13867
13868 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13869 Remove.
13870 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13871 XOBNEWVEC.
13872
13873 2020-02-24 Tom Tromey <tom@tromey.com>
13874
13875 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13876 New method.
13877 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13878 (dw2_do_instantiate_symtab, dw2_get_file_names)
13879 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13880
13881 2020-02-24 Tom Tromey <tom@tromey.com>
13882
13883 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13884 make_scoped_restore.
13885 (dwarf2_psymtab::read_symtab): Don't clear
13886 reading_partial_symbols.
13887
13888 2020-02-24 Tom de Vries <tdevries@suse.de>
13889
13890 PR gdb/25592
13891 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13892
13893 2020-02-24 Tom de Vries <tdevries@suse.de>
13894
13895 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13896 commands layout next/prev/regs.
13897
13898 2020-02-22 Tom Tromey <tom@tromey.com>
13899
13900 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13901 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13902
13903 2020-02-22 Tom Tromey <tom@tromey.com>
13904
13905 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13906
13907 2020-02-22 Tom Tromey <tom@tromey.com>
13908
13909 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13910 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13911 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13912 * tui/tui.c (_initialize_tui): Add usage text.
13913
13914 2020-02-22 Tom Tromey <tom@tromey.com>
13915
13916 * tui/tui-win.c (tui_set_focus_command)
13917 (tui_set_win_height_command): Use error_no_arg.
13918 (_initialize_tui_win): Update help text.
13919 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13920
13921 2020-02-22 Tom Tromey <tom@tromey.com>
13922
13923 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13924 * tui/tui-disasm.h (struct tui_disasm_window)
13925 <display_start_addr>: Declare.
13926 * tui/tui-source.h (struct tui_source_window)
13927 <display_start_addr>: Declare.
13928 * tui/tui-winsource.h (struct tui_source_window_base)
13929 <show_source_line, display_start_addr>: New methods.
13930 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13931 Rename and move to protected section.
13932 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13933 (tui_source_window_base::do_erase_source_content): Update.
13934 (tui_source_window_base::show_source_line): Now a method.
13935 (tui_source_window_base::show_source_content)
13936 (tui_source_window_base::tui_source_window_base)
13937 (tui_source_window_base::rerender)
13938 (tui_source_window_base::refill)
13939 (tui_source_window_base::do_scroll_horizontal)
13940 (tui_source_window_base::set_is_exec_point_at)
13941 (tui_source_window_base::update_breakpoint_info)
13942 (tui_source_window_base::update_exec_info): Update.
13943 * tui/tui-source.c (tui_source_window::set_contents)
13944 (tui_source_window::showing_source_p)
13945 (tui_source_window::do_scroll_vertical)
13946 (tui_source_window::location_matches_p)
13947 (tui_source_window::line_is_displayed): Update.
13948 (tui_source_window::display_start_addr): New method.
13949 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13950 (tui_disasm_window::do_scroll_vertical)
13951 (tui_disasm_window::location_matches_p): Update.
13952 (tui_disasm_window::display_start_addr): New method.
13953
13954 2020-02-22 Tom Tromey <tom@tromey.com>
13955
13956 * NEWS: Add entry for gdb.register_window_type.
13957 * tui/tui-layout.h (window_factory): New typedef.
13958 (tui_register_window): Declare.
13959 * tui/tui-layout.c (saved_tui_windows): New global.
13960 (tui_apply_current_layout): Use it.
13961 (tui_register_window): New function.
13962 * python/python.c (do_start_initialization): Call
13963 gdbpy_initialize_tui.
13964 (python_GdbMethods): Add "register_window_type" function.
13965 * python/python-internal.h (gdbpy_register_tui_window)
13966 (gdbpy_initialize_tui): Declare.
13967 * python/py-tui.c: New file.
13968 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13969
13970 2020-02-22 Tom Tromey <tom@tromey.com>
13971
13972 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13973
13974 2020-02-22 Tom Tromey <tom@tromey.com>
13975
13976 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13977 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13978 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13979 (tui_set_win_focus_to): Move from tui-win.c.
13980
13981 2020-02-22 Tom Tromey <tom@tromey.com>
13982
13983 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13984 functions.
13985 (known_window_types): New global.
13986 (tui_get_window_by_name): Reimplement.
13987 (initialize_known_windows): New function.
13988 (validate_window_name): Rewrite.
13989 (_initialize_tui_layout): Call initialize_known_windows.
13990
13991 2020-02-22 Tom Tromey <tom@tromey.com>
13992
13993 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13994 Remove constants.
13995 * tui/tui-winsource.h (struct tui_source_window_base)
13996 <tui_source_window_base>: Remove parameter.
13997 * tui/tui-winsource.c
13998 (tui_source_window_base::tui_source_window_base): Remove
13999 parameter.
14000 (tui_source_window_base::refill): Update.
14001 * tui/tui-stack.h (struct tui_locator_window)
14002 <tui_locator_window>: Update.
14003 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14004 Default the constructor.
14005 * tui/tui-regs.h (struct tui_data_item_window)
14006 <tui_data_item_window>: Default the constructor.
14007 (struct tui_data_window) <tui_data_window>: Likewise.
14008 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14009 Default the constructor.
14010 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14011 Default the constructor.
14012 <type>: Remove.
14013 (struct tui_win_info) <tui_win_info>: Default the constructor.
14014 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14015 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14016 Default the constructor.
14017
14018 2020-02-22 Tom Tromey <tom@tromey.com>
14019
14020 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14021 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14022 * tui/tui-win.c (tui_resize_all): Don't call
14023 tui_delete_invisible_windows.
14024 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14025 done.
14026 (tui_set_layout): Update.
14027 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14028 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14029 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14030
14031 2020-02-22 Tom Tromey <tom@tromey.com>
14032
14033 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14034 correctly.
14035
14036 2020-02-22 Tom Tromey <tom@tromey.com>
14037
14038 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14039
14040 2020-02-22 Tom Tromey <tom@tromey.com>
14041
14042 * tui/tui-winsource.h (struct tui_source_window_iterator)
14043 <inner_iterator>: New etytypedef.
14044 <tui_source_window_iterator>: Take "end" parameter.
14045 <tui_source_window_iterator>: Take iterator.
14046 <operator*, advance>: Update.
14047 <m_iter>: Change type.
14048 <m_end>: New field.
14049 (struct tui_source_windows) <begin, end>: Update.
14050 * tui/tui-layout.c (tui_windows): New global.
14051 (tui_apply_current_layout): Clear tui_windows.
14052 (tui_layout_window::apply): Update tui_windows.
14053 * tui/tui-data.h (tui_windows): Declare.
14054 (all_tui_windows): Now inline function.
14055 (class tui_window_iterator, struct all_tui_windows): Remove.
14056
14057 2020-02-22 Tom Tromey <tom@tromey.com>
14058
14059 PR tui/17850:
14060 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14061 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14062 "height" argument.
14063 (class tui_layout_window) <get_sizes>: Likewise.
14064 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14065 argument.
14066 <get_sizes>: Add "height" argument.
14067 <m_vertical>: New field.
14068 * tui/tui-layout.c (tui_layout_split::clone): Update.
14069 (tui_layout_split::get_sizes): Add "height" argument.
14070 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14071 (tui_new_layout_command): Parse "-horizontal".
14072 (_initialize_tui_layout): Update help string.
14073 (tui_layout_split::specification): Add "-horizontal" when needed.
14074 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14075 argument.
14076 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14077 New methods.
14078
14079 2020-02-22 Tom Tromey <tom@tromey.com>
14080
14081 * tui/tui-layout.h (enum tui_adjust_result): New.
14082 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14083 (class tui_layout_window) <adjust_size>: Return
14084 tui_adjust_result. Rewrite.
14085 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14086 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14087
14088 2020-02-22 Tom Tromey <tom@tromey.com>
14089
14090 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14091 parameter and return types.
14092 (class tui_layout_base) <specification>: Add "depth".
14093 (class tui_layout_window) <specification>: Add "depth".
14094 (class tui_layout_split) <specification>: Add "depth".
14095 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14096 and return types.
14097 (tui_new_layout_command): Parse sub-layouts.
14098 (_initialize_tui_layout): Update help string.
14099 (tui_layout_window::specification): Add "depth".
14100 (add_layout_command): Update.
14101
14102 2020-02-22 Tom Tromey <tom@tromey.com>
14103
14104 * NEWS: Add "tui new-layout" item.
14105 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14106 Add new-layout command to help text.
14107 (validate_window_name): New function.
14108 (tui_new_layout_command): New function.
14109 (_initialize_tui_layout): Register "new-layout".
14110 (tui_layout_window::specification): New method.
14111 (tui_layout_window::specification): New method.
14112 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14113 method.
14114 (class tui_layout_window) <specification>: New method.
14115 (class tui_layout_split) <specification>: New method.
14116
14117 2020-02-22 Tom Tromey <tom@tromey.com>
14118
14119 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14120 * tui/tui-win.c (window_name_completer): Update comment.
14121 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14122 Declare method.
14123 (class tui_layout_window) <replace_window>: Likewise.
14124 (class tui_layout_split) <replace_window>: Likewise.
14125 (tui_set_layout): Don't declare.
14126 (tui_set_initial_layout): Declare function.
14127 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14128 (asm_regs_layout): New globals.
14129 (tui_current_layout, show_layout): Remove.
14130 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14131 (find_layout, tui_apply_layout): New function.
14132 (layout_completer): Remove.
14133 (tui_next_layout): Reimplement.
14134 (tui_next_layout_command): New function.
14135 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14136 (tui_regs_layout): Reimplement.
14137 (tui_regs_layout_command): New function.
14138 (extract_display_start_addr): Rewrite.
14139 (next_layout, prev_layout): Remove.
14140 (tui_layout_window::replace_window): New method.
14141 (tui_layout_split::replace_window): New method.
14142 (destroy_layout): New function.
14143 (layout_list): New global.
14144 (add_layout_command): New function.
14145 (initialize_layouts): Update.
14146 (tui_layout_command): New function.
14147 (_initialize_tui_layout): Install "layout" commands.
14148 * tui/tui-data.h (enum tui_layout_type): Remove.
14149 (tui_current_layout): Don't declare.
14150
14151 2020-02-22 Tom Tromey <tom@tromey.com>
14152
14153 * tui/tui-regs.c (tui_reg_layout): Remove.
14154 (tui_reg_command): Use tui_regs_layout.
14155 * tui/tui-layout.h (tui_reg_command): Declare.
14156 * tui/tui-layout.c (tui_reg_command): New function.
14157
14158 2020-02-22 Tom Tromey <tom@tromey.com>
14159
14160 * tui/tui.c (tui_rl_delete_other_windows): Call
14161 tui_remove_some_windows.
14162 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14163 Declare method.
14164 (class tui_layout_window) <remove_windows>: New method.
14165 (class tui_layout_split) <remove_windows>: Declare.
14166 (tui_remove_some_windows): Declare.
14167 * tui/tui-layout.c (tui_remove_some_windows): New function.
14168 (tui_layout_split::remove_windows): New method.
14169
14170 2020-02-22 Tom Tromey <tom@tromey.com>
14171
14172 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14173 * tui/tui-layout.h (tui_next_layout): Declare.
14174 * tui/tui-layout.c (tui_next_layout): New function.
14175
14176 2020-02-22 Tom Tromey <tom@tromey.com>
14177
14178 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14179 correct coordinates.
14180
14181 2020-02-22 Tom Tromey <tom@tromey.com>
14182
14183 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14184 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14185 DATA_WIN case.
14186
14187 2020-02-22 Tom Tromey <tom@tromey.com>
14188
14189 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14190 TUI_DISASM_WIN, not tui_win_list.
14191
14192 2020-02-22 Tom Tromey <tom@tromey.com>
14193
14194 * valprint.c (generic_val_print_enum_1)
14195 (val_print_type_code_flags): Style member names.
14196 * rust-lang.c (val_print_struct, rust_print_enum)
14197 (rust_print_struct_def, rust_internal_print_type): Style member
14198 names.
14199 * p-valprint.c (pascal_object_print_value_fields): Style member
14200 names. Only call fprintf_symbol_filtered for static members.
14201 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14202 * f-valprint.c (f_val_print): Style member names.
14203 * f-typeprint.c (f_type_print_base): Style member names.
14204 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14205 call fprintf_symbol_filtered for static members.
14206 (cp_print_class_member): Style member names.
14207 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14208 member names.
14209 * ada-valprint.c (ada_print_scalar): Style enum names.
14210 (ada_val_print_enum): Likewise.
14211 * ada-typeprint.c (print_enum_type): Style enum names.
14212
14213 2020-02-21 Tom Tromey <tom@tromey.com>
14214
14215 * psympriv.h (struct partial_symtab): Update comment.
14216
14217 2020-02-21 Tom Tromey <tromey@adacore.com>
14218
14219 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14220 type is CORE_ADDR.
14221
14222 2020-02-21 Tom de Vries <tdevries@suse.de>
14223
14224 PR gdb/25534
14225 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14226 if dependencies[i]->user != NULL.
14227
14228 2020-02-21 Ali Tamur <tamur@google.com>
14229
14230 * dwarf2/read.c (dwarf2_name): Add null check.
14231
14232 2020-02-20 Tom Tromey <tom@tromey.com>
14233
14234 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14235 ">=", in binary search.
14236 (dwarf2_find_containing_comp_unit): New overload.
14237 (run_test): New self-test.
14238 (_initialize_dwarf2_read): Register new test.
14239
14240 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14241
14242 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14243 * riscv-tdep.h: Likewise.
14244 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14245 rv32-only CSR.
14246 * features/riscv/64bit-csr.xml: Regenerated.
14247
14248 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14249 Tom Tromey <tom@tromey.com>
14250
14251 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14252 of 'fputc_unfiltered'.
14253 (putchar_unfiltered): Call 'fputc_unfiltered'.
14254 (fputc_unfiltered): Call 'fputs_unfiltered'.
14255
14256 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14257
14258 * config.in: Regenerate.
14259 * configure: Regenerate.
14260 * configure.ac: Add --with-python-libdir option.
14261 * main.c: Use WITH_PYTHON_LIBDIR.
14262
14263 2020-02-19 Tom Tromey <tom@tromey.com>
14264
14265 * symtab.c (general_symbol_info::compute_and_set_names): Use
14266 obstack_strndup. Simplify call to symbol_set_demangled_name.
14267
14268 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14269
14270 * dwarf2/read.c (allocate_signatured_type_table,
14271 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14272 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14273 Remove objfile parameter, update all callers.
14274
14275 2020-02-19 Doug Evans <dje@google.com>
14276
14277 PR rust/25535
14278 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14279 rust_enum_variant calculation.
14280
14281 2020-02-19 Tom Tromey <tromey@adacore.com>
14282
14283 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14284
14285 2020-02-19 Tom Tromey <tromey@adacore.com>
14286
14287 * ada-lang.c (cache_symbol): Use obstack_strdup.
14288
14289 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14290
14291 * configure: Regenerate.
14292
14293 2020-02-19 Tom Tromey <tromey@adacore.com>
14294
14295 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14296 NULL check.
14297
14298 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14299
14300 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14301
14302 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14303
14304 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14305 if GDBSERVER is not defined.
14306 (riscv_tdesc_cache): Likewise, also store const target_desc.
14307 (STATIC_IN_GDB): Define.
14308 (riscv_create_target_description): Update declaration with
14309 STATIC_IN_GDB.
14310 (riscv_lookup_target_description): New function, only define if
14311 GDBSERVER is not defined.
14312 * arch/riscv.h (riscv_create_target_description): Declare only
14313 when GDBSERVER is defined.
14314 (riscv_lookup_target_description): New declaration when GDBSERVER
14315 is not defined.
14316 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14317 (riscv_linux_read_features): ...this, and return
14318 riscv_gdbarch_features instead of target_desc.
14319 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14320 (riscv_linux_read_description): Rename to...
14321 (riscv_linux_read_features): ...this.
14322 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14323 Update to use riscv_gdbarch_features and
14324 riscv_lookup_target_description.
14325 * riscv-tdep.c (riscv_find_default_target_description): Use
14326 riscv_lookup_target_description instead of
14327 riscv_create_target_description.
14328
14329 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14330
14331 * valprint.c (generic_val_print_enum_1): When printing a flag
14332 enum with value 0 and there is no enumerator with value 0, print
14333 just "0" instead of "(unknown: 0x0)".
14334
14335 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14336
14337 * valprint.c (generic_val_print_enum_1): Print unknown part of
14338 flag enum in hex.
14339
14340 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14341
14342 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14343 flag enums to contain duplicate enumerators.
14344 * valprint.c (generic_val_print_enum_1): Update comment.
14345
14346 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14347
14348 * dwarf2/read.c: Include "count-one-bits.h".
14349 (update_enumeration_type_from_children): If an enumerator has
14350 multiple bits set, don't treat the enumeration as a "flag enum".
14351 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14352 of flag enums have 0 or 1 bit set.
14353
14354 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14355
14356 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14357 conversion.
14358 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14359 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14360 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14361 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14362 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14363
14364 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14365
14366 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14367
14368 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14369
14370 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14371 displaced_step_closure_up.
14372 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14373 (struct displaced_step_closure_up):
14374 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14375 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14376 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14377 Likewise.
14378 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14379 * gdbarch.c, gdbarch.h: Re-generate.
14380 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14381 displaced_step_closure_up.
14382 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14383 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14384 * infrun.h (displaced_step_closure_up): New type alias.
14385 (struct displaced_step_inferior_state) <step_closure>: Change
14386 type to displaced_step_closure_up.
14387 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14388 displaced_step_closure_up.
14389 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14390
14391 2020-02-14 Tom Tromey <tom@tromey.com>
14392
14393 * minidebug.c (gnu_debug_key): New global.
14394 (find_separate_debug_file_in_section): Use it.
14395
14396 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14397
14398 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14399 std::unique_ptr.
14400 * gdbarch.c: Re-generate.
14401 * gdbarch.h: Re-generate.
14402 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14403 change.
14404 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14405 type to std::unique_ptr.
14406 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14407 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14408 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14409 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14410 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14411 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14412 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14413 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14414 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14415
14416 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14417
14418 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14419 std::unique_ptr.
14420 (displaced_step_clear): Rename to...
14421 (displaced_step_reset): ... this. Just call displaced->reset ().
14422 (displaced_step_clear_cleanup): Rename to...
14423 (displaced_step_reset_cleanup): ... this.
14424 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14425 (displaced_step_fixup): Likewise.
14426 (resume_1): Likewise.
14427 (handle_inferior_event): Restore child's memory before calling
14428 displaced_step_fixup on the parent.
14429 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14430 to std::unique_ptr.
14431 <step_closure>: Change type to std::unique_ptr.
14432
14433 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14434
14435 * arm-tdep.c: Include count-one-bits.h.
14436 (cleanup_block_store_pc): Use count_one_bits.
14437 (cleanup_block_load_pc): Use count_one_bits.
14438 (arm_copy_block_xfer): Use count_one_bits.
14439 (thumb2_copy_block_xfer): Use count_one_bits.
14440 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14441 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14442 (thumb_get_next_pcs_raw): Use count_one_bits.
14443 (arm_get_next_pcs_raw): Use count_one_bits_l.
14444 * arch/arm.c (bitcount): Remove.
14445 * arch/arm.h (bitcount): Remove.
14446
14447 2020-02-14 Tom Tromey <tromey@adacore.com>
14448
14449 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14450 Update.
14451 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14452 * dwarf2/loc.c (call_site_find_chain_1): Return
14453 unique_xmalloc_ptr.
14454 (call_site_find_chain): Likewise.
14455
14456 2020-02-14 Richard Biener <rguenther@suse.de>
14457
14458 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14459 on expression with division operators.
14460
14461 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14462
14463 * MAINTAINERS (Write After Approval): Adding myself.
14464
14465 2020-02-12 Tom Tromey <tom@tromey.com>
14466
14467 * event-loop.c (event_data, gdb_event, event_handler_func):
14468 Remove.
14469
14470 2020-02-12 Tom Tromey <tom@tromey.com>
14471
14472 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14473 (dwarf2_frame_objfile_data): Add comment.
14474 (find_comp_unit, set_comp_unit): New functions.
14475 (dwarf2_frame_find_fde): Use find_comp_unit.
14476 (dwarf2_build_frame_info): Use set_comp_unit.
14477
14478 2020-02-12 Tom Tromey <tom@tromey.com>
14479
14480 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14481 (comp_unit): Don't initialize objfile.
14482 (execute_cfa_program): Add text_offset parameter.
14483 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14484 (dwarf2_frame_cache): Update.
14485 (dwarf2_build_frame_info): Don't set "objfile" member.
14486
14487 2020-02-12 Tom Tromey <tom@tromey.com>
14488
14489 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14490 (decode_frame_entry): Likewise.
14491 (dwarf2_build_frame_info): Update.
14492
14493 2020-02-12 Tom Tromey <tom@tromey.com>
14494
14495 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14496 (decode_frame_entry_1): Use the comp_unit obstack.
14497
14498 2020-02-12 Tom Tromey <tom@tromey.com>
14499
14500 * dwarf2/frame.c (struct comp_unit): Add initializers and
14501 constructor.
14502 (dwarf2_frame_objfile_data): Store a comp_unit.
14503 (dwarf2_frame_find_fde): Update.
14504 (dwarf2_build_frame_info): Use "new".
14505
14506 2020-02-12 Tom Tromey <tom@tromey.com>
14507
14508 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14509 (dwarf2_fde_table): Typedef for std::vector.
14510 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14511 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14512 (decode_frame_entry): Update.
14513 (dwarf2_build_frame_info): Use "new".
14514
14515 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14516
14517 * arm-tdep.c (arm_gdbarch_init): Update.
14518 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14519 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14520 have_neon, is_m>: Change to bool.
14521
14522 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14523
14524 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14525
14526 2020-02-12 Tom Tromey <tom@tromey.com>
14527
14528 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14529
14530 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14531
14532 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14533 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14534
14535 2020-02-11 Tom Tromey <tom@tromey.com>
14536
14537 * psymtab.h: Update comment.
14538
14539 2020-02-11 Tom Tromey <tom@tromey.com>
14540
14541 * gdb_obstack.h (struct auto_obstack): Use
14542 DISABLE_COPY_AND_ASSIGN.
14543
14544 2020-02-11 Tom Tromey <tom@tromey.com>
14545
14546 * dwarf2/frame.h (struct objfile): Don't forward declare.
14547
14548 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14549
14550 * cris-tdep.c (cris_supply_gregset): Change signature to match
14551 what struct regset expects.
14552 (cris_regset): New struct.
14553 (fetch_core_registers): Remove.
14554 (cris_iterate_over_regset_sections): New function.
14555 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14556 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14557
14558 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14559
14560 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14561 registers.
14562
14563 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14564
14565 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14566
14567 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14568
14569 * configure: Re-generate.
14570
14571 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14572
14573 * configure: Re-generate.
14574
14575 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14576
14577 * acinclude: Update warning.m4 path.
14578 * warning.m4: Move to gdbsupport.
14579
14580 2020-02-11 Tom Tromey <tromey@adacore.com>
14581
14582 * remote.c (remote_console_output): Update.
14583 * printcmd.c (printf_command): Update.
14584 * event-loop.c (gdb_wait_for_event): Update.
14585 * linux-nat.c (sigchld_handler): Update.
14586 * remote-sim.c (gdb_os_write_stdout): Update.
14587 (gdb_os_flush_stdout): Update.
14588 (gdb_os_flush_stderr): Update.
14589 (gdb_os_write_stderr): Update.
14590 * exceptions.c (print_exception): Update.
14591 * remote-fileio.c (remote_fileio_func_read): Update.
14592 (remote_fileio_func_write): Update.
14593 * tui/tui.c (tui_enable): Update.
14594 * tui/tui-interp.c (tui_interp::init): Update.
14595 * utils.c (init_page_info): Update.
14596 (putchar_unfiltered, fputc_unfiltered): Update.
14597 (gdb_flush): Update.
14598 (emit_style_escape): Update.
14599 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14600 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14601 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14602 (stderr_file::write): Update.
14603 (stderr_file::puts): Update.
14604 * ui-file.h (ui_file_isatty, ui_file_write)
14605 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14606 (ui_file_puts): Don't declare.
14607
14608 2020-02-10 Tom de Vries <tdevries@suse.de>
14609
14610 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14611 sentinel to char *.
14612
14613 2020-02-09 Tom de Vries <tdevries@suse.de>
14614
14615 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14616 filename if it matches "<artificial>".
14617
14618 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14619
14620 * windows-tdep.c (struct enum_value_name): New struct.
14621 (create_enum): New function.
14622 (windows_get_siginfo_type): Create and use enum types.
14623
14624 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14625
14626 * NEWS: Mention $_siginfo support for Windows.
14627 * windows-nat.c (handle_exception): Set siginfo_er.
14628 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14629 (windows_xfer_siginfo): New function.
14630 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14631 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14632 (init_windows_gdbarch_data): New function.
14633 (get_windows_gdbarch_data): New function.
14634 (windows_get_siginfo_type): New function.
14635 (windows_init_abi): Register windows_get_siginfo_type.
14636 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14637
14638 2020-02-08 Tom Tromey <tom@tromey.com>
14639
14640 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14641 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14642 <keep>: Declare method.
14643 <m_keep>: Remove member.
14644 <~cutu_reader>: Remove.
14645 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14646 (cutu_reader::cutu_reader): Update.
14647 (cutu_reader::keep): Rename from ~cutu_reader.
14648 (process_psymtab_comp_unit, build_type_psymtabs_1)
14649 (process_skeletonless_type_unit, load_partial_comp_unit)
14650 (load_full_comp_unit, dwarf2_read_addr_index)
14651 (read_signatured_type): Update.
14652
14653 2020-02-08 Tom Tromey <tom@tromey.com>
14654
14655 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14656 "want_partial_unit" parameter.
14657 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14658 Inline check for DW_TAG_partial_unit.
14659 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14660
14661 2020-02-08 Tom Tromey <tom@tromey.com>
14662
14663 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14664 read.c.
14665 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14666 read.c.
14667
14668 2020-02-08 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2/read.c (read_address): Move to comp-unit.c.
14671 (dwarf2_rnglists_process, dwarf2_ranges_process)
14672 (read_attribute_value, dwarf_decode_lines_1)
14673 (var_decode_location, decode_locdesc): Update.
14674 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14675 read.c. Remove "cu" parameter.
14676 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14677 method.
14678
14679 2020-02-08 Tom Tromey <tom@tromey.com>
14680
14681 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14682 (read_indirect_line_string): Update.
14683 * dwarf2/comp-unit.c (read_offset): Remove.
14684 (read_comp_unit_head): Update.
14685 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14686 method.
14687 (read_offset): Don't declare.
14688
14689 2020-02-08 Tom Tromey <tom@tromey.com>
14690
14691 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14692 * dwarf2/read.c (struct comp_unit_head): Move to
14693 dwarf2/comp-unit.h.
14694 (enum class rcuh_kind): Move to comp-unit.h.
14695 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14696 (read_comp_unit_head, error_check_comp_unit_head)
14697 (read_and_check_comp_unit_head): Move to comp-unit.c.
14698 (read_offset, dwarf_unit_type_name): Likewise.
14699 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14700 (cutu_reader::cutu_reader, read_call_site_scope)
14701 (find_partial_die, follow_die_offset): Update.
14702 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14703
14704 2020-02-08 Tom Tromey <tom@tromey.com>
14705
14706 * dwarf2/read.c (read_offset_1): Move to leb.c.
14707 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14708 (dwarf_decode_macro_bytes): Update.
14709 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14710 * dwarf2/leb.h (read_offset): Declare.
14711
14712 2020-02-08 Tom Tromey <tom@tromey.com>
14713
14714 * dwarf2/read.c (dwarf2_section_size): Remove.
14715 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14716 Update.
14717 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14718
14719 2020-02-08 Tom Tromey <tom@tromey.com>
14720
14721 * dwarf2/read.c (read_initial_length): Move to leb.c.
14722 * dwarf2/leb.h (read_initial_length): Declare.
14723 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14724 handle_nonstd parameter.
14725 * dwarf2/frame.c (read_initial_length): Remove.
14726 (decode_frame_entry_1): Update.
14727
14728 2020-02-08 Tom Tromey <tom@tromey.com>
14729
14730 * dwarf2/loc.c (dwarf2_find_location_expression)
14731 (dwarf_evaluate_loc_desc::get_tls_address)
14732 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14733 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14734 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14735 (dwarf2_compile_property_to_c)
14736 (dwarf2_loc_desc_get_symbol_read_needs)
14737 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14738 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14739 (loclist_describe_location, loclist_tracepoint_var_ref)
14740 (loclist_generate_c_location): Update.
14741 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14742 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14743 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14744 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14745 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14746 (dwarf2_per_cu_data::addr_size)
14747 (dwarf2_per_cu_data::ref_addr_size)
14748 (dwarf2_per_cu_data::text_offset)
14749 (dwarf2_per_cu_data::addr_type): Now methods.
14750 (per_cu_header_read_in): Make per_cu "const".
14751 (dwarf2_version): Remove.
14752 (dwarf2_per_cu_data::int_type): Now a method.
14753 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14754 (set_die_type, read_array_type, read_subrange_index_type)
14755 (read_tag_string_type, read_subrange_type): Update.
14756 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14757 offset_size, ref_addr_size, text_offset, addr_type, version,
14758 objfile, int_type, addr_sized_int_type>: Declare methods.
14759
14760 2020-02-08 Tom Tromey <tom@tromey.com>
14761
14762 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14763 Move earlier.
14764
14765 2020-02-08 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/read.h (dwarf_line_debug): Declare.
14768 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14769 * dwarf2/read.c: Move line_header code to new files.
14770 (dwarf_line_debug): No longer static.
14771 * dwarf2/line-header.c: New file.
14772 * dwarf2/line-header.h: New file.
14773
14774 2020-02-08 Tom Tromey <tom@tromey.com>
14775
14776 * dwarf2/read.c (struct line_header) <file_full_name,
14777 file_file_name>: Return unique_xmalloc_ptr.
14778 (line_header::file_file_name): Update.
14779 (line_header::file_full_name): Update.
14780 (dw2_get_file_names_reader): Update.
14781 (macro_start_file): Update.
14782
14783 2020-02-08 Tom Tromey <tom@tromey.com>
14784
14785 * dwarf2/read.c (struct line_header) <file_full_name,
14786 file_file_name>: Declare methods.
14787 (dw2_get_file_names_reader): Update.
14788 (file_file_name): Now a method.
14789 (file_full_name): Likewise.
14790 (macro_start_file): Update.
14791
14792 2020-02-08 Tom Tromey <tom@tromey.com>
14793
14794 * dwarf2/read.c (dwarf_always_disassemble)
14795 (show_dwarf_always_disassemble): Move to loc.c.
14796 (_initialize_dwarf2_read): Move "always-disassemble" registration
14797 to loc.c.
14798 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14799 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14800 static.
14801 (show_dwarf_always_disassemble): Move from read.c.
14802 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14803
14804 2020-02-08 Tom Tromey <tom@tromey.com>
14805
14806 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14807 (create_quick_file_names_table): Return htab_up.
14808 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14809 Update.
14810 * dwarf2/read.h (struct dwarf2_per_objfile)
14811 <quick_file_names_table>: Now htab_up.
14812
14813 2020-02-08 Tom Tromey <tom@tromey.com>
14814
14815 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14816
14817 2020-02-08 Tom Tromey <tom@tromey.com>
14818
14819 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14820 Rewrite.
14821 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14822 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14823 (abbrev_table::abbrev_table): No longer inline.
14824 (ABBREV_HASH_SIZE): Remove.
14825 (abbrev_table::m_abbrevs): Now an htab_up.
14826
14827 2020-02-08 Tom Tromey <tom@tromey.com>
14828
14829 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14830 (cutu_reader): Update.
14831 (build_type_psymtabs_1): Update.
14832 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14833 (abbrev_table::alloc_abbrev): Update.
14834 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14835 (abbrev_table::read): New static method, renamed from
14836 abbrev_table_read_table.
14837 (abbrev_table::alloc_abbrev)
14838 (abbrev_table::add_abbrev): Now private.
14839 (abbrev_table::abbrev_table): Now private.
14840 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14841
14842 2020-02-08 Tom Tromey <tom@tromey.com>
14843
14844 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14845 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14846 htab_up.
14847
14848 2020-02-08 Tom Tromey <tom@tromey.com>
14849
14850 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14851 htab_up.
14852 (lookup_dwo_unit_in_dwp): Update.
14853 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14854 on obstack.
14855
14856 2020-02-08 Tom Tromey <tom@tromey.com>
14857
14858 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14859 obstack.
14860
14861 2020-02-08 Tom Tromey <tom@tromey.com>
14862
14863 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14864 line_header_hash.
14865 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14866 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14867 Change type to htab_up.
14868
14869 2020-02-08 Tom Tromey <tom@tromey.com>
14870
14871 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14872 htab_up. Don't allocate on obstack.
14873 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14874 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14875 Change type to htab_up.
14876
14877 2020-02-08 Tom Tromey <tom@tromey.com>
14878
14879 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14880 Change type to htab_up.
14881 * dwarf2/read.c (create_signatured_type_table_from_index)
14882 (create_signatured_type_table_from_debug_names)
14883 (create_all_type_units, add_type_unit)
14884 (lookup_dwo_signatured_type, lookup_signatured_type)
14885 (process_skeletonless_type_unit): Update.
14886 (create_debug_type_hash_table, create_debug_types_hash_table):
14887 Change type of types_htab.
14888 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14889 htab_up. Don't allocate on obstack.
14890 (create_cus_hash_table): Change type of cus_htab parameter.
14891 (struct dwo_file) <cus, tus>: Now htab_up.
14892 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14893 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14894 (queue_and_load_all_dwo_tus): Update.
14895 * dwarf2/index-write.c (write_gdbindex): Update.
14896 (write_debug_names): Update.
14897
14898 2020-02-08 Tom Tromey <tom@tromey.com>
14899
14900 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14901 dwarf2/read.c. Remove "next" member. Add constructor ntad
14902 destructor.
14903 (struct dwarf2_per_objfile) <queue>: New member.
14904 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14905 dwarf2/read.h.
14906 (dwarf2_queue, dwarf2_queue_tail): Remove.
14907 (class dwarf2_queue_guard): Add parameter to constructor. Use
14908 DISABLE_COPY_AND_ASSIGN.
14909 <m_per_objfile>: New member.
14910 <~dwarf2_queue_guard>: Rewrite.
14911 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14912 Update.
14913 (~dwarf2_queue_item): New.
14914
14915 2020-02-08 Tom Tromey <tom@tromey.com>
14916
14917 * dwarf2/read.c (struct die_info) <has_children>: New member.
14918 (dw2_get_file_names_reader): Remove has_children.
14919 (dw2_get_file_names): Update.
14920 (read_cutu_die_from_dwo): Remove has_children.
14921 (cutu_reader::init_tu_and_read_dwo_dies)
14922 (cutu_reader::cutu_reader): Update.
14923 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14924 Remove has_children.
14925 (build_type_psymtabs_1, process_skeletonless_type_unit)
14926 (load_partial_comp_unit, load_full_comp_unit): Update.
14927 (create_dwo_cu_reader): Remove has_children.
14928 (create_cus_hash_table, read_die_and_children): Update.
14929 (read_full_die_1,read_full_die): Remove has_children.
14930 (read_signatured_type): Update.
14931 (class cutu_reader) <has_children>: Remove.
14932
14933 2020-02-08 Tom Tromey <tom@tromey.com>
14934
14935 * dwarf2/expr.c: Rename from dwarf2expr.c.
14936 * dwarf2/expr.h: Rename from dwarf2expr.h.
14937 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14938 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14939 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14940 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14941 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14942 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14943 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14944 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14945 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14946 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14947 * dwarf2/loc.c: Rename from dwarf2loc.c.
14948 * dwarf2/loc.h: Rename from dwarf2loc.h.
14949 * dwarf2/read.c: Rename from dwarf2read.c.
14950 * dwarf2/read.h: Rename from dwarf2read.h.
14951 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14952 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14953 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14954 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14955 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14956 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14957 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14958 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14959 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14960 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14961 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14962 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14963 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14964 Update.
14965 * Makefile.in (COMMON_SFILES): Update.
14966 (HFILES_NO_SRCDIR): Update.
14967
14968 2020-02-08 Tom Tromey <tom@tromey.com>
14969
14970 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14971 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14972
14973 2020-02-08 Tom Tromey <tom@tromey.com>
14974
14975 * dwarf2read.h (struct die_info): Don't declare.
14976
14977 2020-02-08 Tom Tromey <tom@tromey.com>
14978
14979 * dwarf2read.h (die_info_ptr): Remove typedef.
14980
14981 2020-02-08 Tom Tromey <tom@tromey.com>
14982
14983 * dwarf2read.c (read_call_site_scope)
14984 (handle_data_member_location, dwarf2_add_member_fn)
14985 (mark_common_block_symbol_computed, read_common_block)
14986 (attr_to_dynamic_prop, partial_die_info::read)
14987 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14988 (dwarf2_symbol_mark_computed, set_die_type): Update.
14989 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14990 method.
14991 (attr_form_is_block): Don't declare.
14992 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14993
14994 2020-02-08 Tom Tromey <tom@tromey.com>
14995
14996 * dwarf2read.c (dwarf2_find_base_address, )
14997 (read_call_site_scope, rust_containing_type)
14998 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14999 (handle_data_member_location, dwarf2_add_member_fn)
15000 (get_alignment, read_structure_type, process_structure_scope)
15001 (mark_common_block_symbol_computed, read_common_block)
15002 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15003 (partial_die_info::read, read_attribute_value, new_symbol)
15004 (lookup_die_type, dwarf2_get_ref_die_offset)
15005 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15006 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15007 (dwarf2_symbol_mark_computed): Update.
15008 * dwarf2/attribute.h (struct attribute) <value_as_address,
15009 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15010 methods.
15011 (value_as_address, attr_form_is_section_offset)
15012 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15013 * dwarf2/attribute.c (attribute::value_as_address)
15014 (attribute::form_is_section_offset, attribute::form_is_constant)
15015 (attribute::form_is_ref): Now methods.
15016
15017 2020-02-08 Tom Tromey <tom@tromey.com>
15018
15019 * dwarf2read.c (struct attribute, DW_STRING)
15020 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15021 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15022 (attr_form_is_block, attr_form_is_section_offset)
15023 (attr_form_is_constant, attr_form_is_ref): Move.
15024 * dwarf2/attribute.h: New file.
15025 * dwarf2/attribute.c: New file, from dwarf2read.c.
15026 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15027
15028 2020-02-08 Tom Tromey <tom@tromey.com>
15029
15030 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15031 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15032 Move.
15033 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15034 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15035 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15036 abbrev.c.
15037 * dwarf2/abbrev.h: New file.
15038 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15039 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15040
15041 2020-02-08 Tom Tromey <tom@tromey.com>
15042
15043 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15044 (dwarf2_section_size, dwarf2_get_section_info)
15045 (create_signatured_type_table_from_debug_names)
15046 (create_addrmap_from_aranges, read_debug_names_from_section)
15047 (get_gdb_index_contents_from_section, read_comp_unit_head)
15048 (error_check_comp_unit_head, read_abbrev_offset)
15049 (create_debug_type_hash_table, init_cu_die_reader)
15050 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15051 (read_comp_units_from_section, create_cus_hash_table)
15052 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15053 (create_dwp_v2_section, dwarf2_rnglists_process)
15054 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15055 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15056 (read_indirect_string_from_dwz, read_addr_index_1)
15057 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15058 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15059 (fill_in_loclist_baton): Update.
15060 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15061 get_containing_section, get_bfd_owner, get_bfd_section,
15062 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15063 (dwarf2_read_section, get_section_name, get_section_file_name)
15064 (get_containing_section, get_section_bfd_owner)
15065 (get_section_bfd_section, get_section_name, get_section_file_name)
15066 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15067 declare.
15068 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15069 (dwarf2_section_info::get_bfd_owner)
15070 (dwarf2_section_info::get_bfd_section)
15071 (dwarf2_section_info::get_name)
15072 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15073 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15074 (dwarf2_section_info::read): Now methods.
15075 * dwarf-index-write.c (class debug_names): Update.
15076
15077 2020-02-08 Tom Tromey <tom@tromey.com>
15078
15079 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15080 Move to dwarf2/section.h.
15081 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15082 (get_section_bfd_section, get_section_name)
15083 (get_section_file_name, get_section_id, get_section_flags)
15084 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15085 dwarf2/section.c.
15086 * dwarf2/section.h: New file.
15087 * dwarf2/section.c: New file, from dwarf2read.c.
15088 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15089
15090 2020-02-08 Tom Tromey <tom@tromey.com>
15091
15092 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15093 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15094 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15095 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15096 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15097 * dwarf2/leb.h: New file, from dwarf2read.c.
15098 * dwarf2/leb.c: New file, from dwarf2read.c.
15099 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15100 Remove.
15101 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15102 (COMMON_SFILES): Add dwarf2/leb.c.
15103
15104 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15105
15106 GDB 9.1 released.
15107
15108 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15109
15110 PR gdb/25190:
15111 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15112 * gdb/remote.c (remote_console_output): Update.
15113 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15114 (ui_file_puts): ...this.
15115 * gdb/ui-file.h (ui_file_puts): Add declaration.
15116 * gdb/utils.c (emit_style_escape): Update.
15117 (flush_wrap_buffer): Update.
15118 (fputs_maybe_filtered): Update.
15119 (fputs_unfiltered): Add function.
15120
15121 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15122
15123 * gdb/event-loop.c (gdb_wait_for_event): Update.
15124 * gdb/printcmd.c (printf_command): Update.
15125 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15126 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15127 (gdb_os_flush_stderr): Update.
15128 * gdb/remote.c (remote_console_output): Update.
15129 * gdb/ui-file.c (gdb_flush): Rename to...
15130 (ui_file_flush): ...this.
15131 (stderr_file::write): Update.
15132 (stderr_file::puts): Update.
15133 * gdb/ui-file.h (gdb_flush): Rename to...
15134 (ui_file_flush): ...this.
15135 * gdb/utils.c (gdb_flush): Add function.
15136 * gdb/utils.h (gdb_flush): Add declaration.
15137
15138 2020-02-07 Tom Tromey <tromey@adacore.com>
15139
15140 PR breakpoints/24915:
15141 * source.c (find_and_open_source): Do not check basenames_may_differ.
15142
15143 2020-02-07 Tom Tromey <tom@tromey.com>
15144
15145 * README: Update gdbserver documentation.
15146 * gdbserver: Move to top level.
15147 * configure.tgt (build_gdbserver): Remove.
15148 * configure.ac: Remove --enable-gdbserver.
15149 * configure: Rebuild.
15150 * Makefile.in (distclean): Don't mention gdbserver.
15151
15152 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15153
15154 * source-cache.c (source_cache::ensure): Surround
15155 get_plain_source_lines with a try/catch.
15156 (source_cache::get_line_charpos): Get rid of try/catch
15157 and only check for the return value of "ensure".
15158 * tui/tui-source.c (tui_source_window::set_contents):
15159 Simplify "nlines" calculation.
15160
15161 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15162
15163 * MAINTAINERS (Write After Approval): Add myself.
15164
15165 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15166
15167 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15168 function call.
15169
15170 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15171
15172 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15173
15174 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15175
15176 * nat/riscv-linux-tdesc.h: New file.
15177 * nat/riscv-linux-tdesc.c: New file, taking code from...
15178 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15179 ... here.
15180 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15181 NATDEPFILES.
15182
15183 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15184
15185 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15186 we don't set the fake simulator ptid to the null_ptid.
15187
15188 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15189
15190 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15191 * gdbthread.h (class thread_info) <resumed>: Likewise.
15192 * infrun.c (resume_1): Likewise.
15193 (proceed): Likewise.
15194 (infrun_thread_stop_requested): Likewise.
15195 (stop_all_threads): Likewise.
15196 (handle_inferior_event): Likewise.
15197 (restart_threads): Likewise.
15198 (finish_step_over): Likewise.
15199 (keep_going_stepped_thread): Likewise.
15200 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15201 (linux_handle_extended_wait): Likewise.
15202 * record-btrace.c (get_thread_current_frame_id): Likewise.
15203 * record-full.c (record_full_wait_1): Likewise.
15204 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15205 * target.c (target_resume): Likewise.
15206 * thread.c (set_running_thread): Likewise.
15207
15208 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15209
15210 * f-valprint.c (f77_print_array_1): Changed datatype of index
15211 variable to LONGEST from int to enable it to contain bound
15212 values correctly.
15213
15214 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15215
15216 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15217 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15218 offsets according to FLEN determined.
15219 (riscv_linux_nat_target::read_description): Determine FLEN
15220 dynamically.
15221 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15222 according to FLEN determined.
15223 (riscv_linux_nat_target::store_registers): Likewise.
15224
15225 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15226
15227 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15228 when reg->group is empty and reggroup is not.
15229
15230 2020-01-31 Tom Tromey <tromey@adacore.com>
15231
15232 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15233 Call beneath target's mourn_inferior after unpushing.
15234
15235 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15236
15237 PR tui/9765
15238 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15239 have enough lines to fill the screen, still return the lowest
15240 address we found.
15241
15242 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15243
15244 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15245 '-', '<', and '>' commands.
15246
15247 2020-01-29 Pedro Alves <palves@redhat.com>
15248 Sergio Durigan Junior <sergiodj@redhat.com>
15249
15250 * infcmd.c (construct_inferior_arguments): Assert that
15251 'argc' is greater than 0.
15252
15253 2020-01-29 Luis Machado <luis.machado@linaro.org>
15254
15255 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15256 (BRK_INSN_MASK): Define to 0xd4200000.
15257 (aarch64_program_breakpoint_here_p): New function.
15258 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15259 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15260 breakpoint.c.
15261 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15262 breakpoint.h
15263 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15264 call gdbarch_program_breakpoint_here_p.
15265 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15266 default_program_breakpoint_here_p, changed return type to bool and
15267 simplified.
15268 * breakpoint.h (program_breakpoint_here): Moved prototype to
15269 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15270 return type to bool.
15271 * gdbarch.c: Regenerate.
15272 * gdbarch.h: Regenerate.
15273 * gdbarch.sh (program_breakpoint_here_p): New method.
15274 * infrun.c (handle_signal_stop): Call
15275 gdbarch_program_breakpoint_here_p.
15276
15277 2020-01-26 Tom Tromey <tom@tromey.com>
15278
15279 * ctfread.c (struct ctf_fp_info): Reindent.
15280 (_initialize_ctfread): Remove.
15281
15282 2020-01-26 Tom Tromey <tom@tromey.com>
15283
15284 * psymtab.c (partial_map_expand_apply)
15285 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15286 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15287 (psym_print_stats, psym_expand_symtabs_for_function)
15288 (psym_map_symbol_filenames, psym_map_matching_symbols)
15289 (psym_expand_symtabs_matching)
15290 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15291 (maintenance_check_psymtabs): Use new methods.
15292 * psympriv.h (struct partial_symtab) <readin_p,
15293 get_compunit_symtab>: New methods.
15294 <readin, compunit_symtab>: Remove members.
15295 (struct standard_psymtab): New.
15296 (struct legacy_psymtab): Derive from standard_psymtab.
15297 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15298 standard_psymtab.
15299 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15300
15301 2020-01-26 Tom Tromey <tom@tromey.com>
15302
15303 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15304 read_dependencies. Add assert.
15305 * psymtab.c (partial_symtab::read_dependencies): New method.
15306 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15307 method.
15308 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15309 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15310 read_dependencies.
15311 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15312 Add assert.
15313
15314 2020-01-26 Tom Tromey <tom@tromey.com>
15315
15316 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15317 Call expand_psymtab.
15318 (xcoff_read_symtab): Call expand_psymtab.
15319 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15320 legacy_expand_psymtab.
15321 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15322 method.
15323 (struct legacy_psymtab) <expand_psymtab>: Implement.
15324 <legacy_expand_psymtab>: New member.
15325 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15326 (parse_partial_symbols): Set legacy_expand_psymtab.
15327 (psymtab_to_symtab_1): Change argument order. Call
15328 expand_psymtab.
15329 (new_psymtab): Set legacy_expand_psymtab.
15330 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15331 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15332 expand_psymtab.
15333 (dwarf2_psymtab::expand_psymtab): Rename from
15334 psymtab_to_symtab_1. Call expand_psymtab.
15335 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15336 (dbx_end_psymtab): Likewise.
15337 (dbx_psymtab_to_symtab_1): Change argument order. Call
15338 expand_psymtab.
15339 (dbx_read_symtab): Call expand_psymtab.
15340 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15341 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15342 (ctf_psymtab::read_symtab): Call expand_psymtab.
15343
15344 2020-01-26 Tom Tromey <tom@tromey.com>
15345
15346 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15347 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15348 messages.
15349 * mdebugread.c (mdebug_read_symtab): Remove prints.
15350 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15351 assert.
15352 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15353
15354 2020-01-26 Tom Tromey <tom@tromey.com>
15355
15356 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15357 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15358 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15359 legacy_symtab.
15360 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15361 * psymtab.c (psymtab_to_symtab): Call method.
15362 (dump_psymtab): Update.
15363 * psympriv.h (struct partial_symtab): Add virtual destructor.
15364 <read_symtab>: New method.
15365 (struct legacy_symtab): New.
15366 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15367 (struct pst_map) <pst>: Now a legacy_psymtab.
15368 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15369 (new_psymtab): Use legacy_psymtab.
15370 * dwarf2read.h (struct dwarf2_psymtab): New.
15371 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15372 * dwarf2read.c (dwarf2_create_include_psymtab)
15373 (dwarf2_build_include_psymtabs, create_type_unit_group)
15374 (create_partial_symtab, process_psymtab_comp_unit_reader)
15375 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15376 (set_partial_user): Use dwarf2_psymtab.
15377 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15378 (psymtab_to_symtab_1, process_full_comp_unit)
15379 (process_full_type_unit, dwarf2_ranges_read)
15380 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15381 (dwarf_decode_lines): Use dwarf2_psymtab.
15382 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15383 (add_address_entry_worker, write_one_signatured_type)
15384 (recursively_count_psymbols, recursively_write_psymbols)
15385 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15386 (write_debug_names): Likewise.
15387 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15388 <pst>: Now a legacy_psymtab.
15389 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15390 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15391 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15392 * ctfread.c (struct ctf_psymtab): New.
15393 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15394 ctf_psymtab.
15395 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15396 (create_partial_symtab): Return a ctf_psymtab.
15397 (scan_partial_symbols): Update.
15398
15399 2020-01-26 Tom Tromey <tom@tromey.com>
15400
15401 * xcoffread.c (xcoff_start_psymtab): Use new.
15402 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15403 renamed from start_psymtab_common.
15404 * psympriv.h (struct partial_symtab): Add new constructor.
15405 (start_psymtab_common): Don't declare.
15406 * mdebugread.c (parse_partial_symbols): Use new.
15407 * dwarf2read.c (create_partial_symtab): Use new.
15408 * dbxread.c (start_psymtab): Use new.
15409 * ctfread.c (create_partial_symtab): Use new.
15410
15411 2020-01-26 Tom Tromey <tom@tromey.com>
15412
15413 * xcoffread.c (xcoff_end_psymtab): Use new.
15414 * psymtab.c (start_psymtab_common): Use new.
15415 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15416 Update.
15417 * psympriv.h (struct partial_symtab): Add parameters to
15418 constructor. Don't inline.
15419 (allocate_psymtab): Don't declare.
15420 * mdebugread.c (new_psymtab): Use new.
15421 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15422 * dbxread.c (dbx_end_psymtab): Use new.
15423
15424 2020-01-26 Tom Tromey <tom@tromey.com>
15425
15426 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15427 allocate_psymtab. Update documentation.
15428 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15429 allocate_psymtab. Do not use new.
15430 (allocate_psymtab): Use new. Update.
15431
15432 2020-01-26 Tom Tromey <tom@tromey.com>
15433
15434 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15435 * psymtab.c (psym_print_stats): Update.
15436 * psympriv.h (struct partial_symtab) <readin,
15437 psymtabs_addrmap_supported, anonymous>: Now bool.
15438 * mdebugread.c (psymtab_to_symtab_1): Update.
15439 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15440 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15441 (process_full_comp_unit, process_full_type_unit): Update.
15442 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15443 * ctfread.c (psymtab_to_symtab): Update.
15444
15445 2020-01-26 Tom Tromey <tom@tromey.com>
15446
15447 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15448 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15449 * psymtab.c (psymtab_storage): Delete psymtabs.
15450 (psymtab_storage::allocate_psymtab): Use new.
15451 (psymtab_storage::discard_psymtab): Use delete.
15452 * psympriv.h (struct partial_symtab): Add constructor and
15453 initializers.
15454
15455 2020-01-26 Tom Tromey <tom@tromey.com>
15456
15457 * machoread.c: Do not include psympriv.h.
15458
15459 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15460
15461 * NEWS: Mention the new option and the set/show commands.
15462
15463 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15464
15465 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15466 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15467 (validate_exec_file): New variables, enums, functions.
15468 (exec_file_locate_attach, print_section_info): Style the filenames.
15469 (_initialize_exec): Install show_exec_file_mismatch_command and
15470 set_exec_file_mismatch_command.
15471 * gdbcore.h (validate_exec_file): Declare.
15472 * infcmd.c (attach_command): Call validate_exec_file.
15473 * remote.c ( remote_target::remote_add_inferior): Likewise.
15474
15475 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15476
15477 * frame.c (find_frame_sal): Move call to get_next_frame into more
15478 inner scope.
15479 * inline-frame.c (inilne_state) <inline_state>: Update argument
15480 types.
15481 (inilne_state) <skipped_symbol>: Rename to...
15482 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15483 (skip_inline_frames): Build vector of skipped symbols and use this
15484 to reate the inline_state.
15485 (inline_skipped_symbol): Add a comment and some assertions, fetch
15486 skipped symbol from the list.
15487
15488 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15489
15490 * buildsym.c (lte_is_less_than): Delete.
15491 (buildsym_compunit::end_symtab_with_blockvector): Create local
15492 lambda function to sort line table entries, and use
15493 std::stable_sort instead of std::sort.
15494 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15495 markers when looking for a previous line.
15496
15497 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15498
15499 * dwarf2read.c (lnp_state_machine::record_line): Include
15500 end_sequence parameter in debug print out. Record the line if we
15501 are at an end_sequence marker even if it's not the start of a
15502 statement.
15503 * symmisc.c (maintenance_print_one_line_table): Print end of
15504 sequence markers with 'END' not '0'.
15505
15506 2020-01-24 Pedro Alves <palves@redhat.com>
15507
15508 PR gdb/25410
15509 * thread.c (scoped_restore_current_thread::restore): Use
15510 switch_to_inferior_no_thread.
15511 * exec.c: Include "progspace-and-thread.h".
15512 (add_target_sections, remove_target_sections):
15513 scoped_restore_current_pspace_and_thread instead of
15514 scoped_restore_current_thread.
15515 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15516 and aspace to the inferior before calling clone_program_space.
15517 Remove stale comment.
15518
15519 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15520
15521 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15522 (arm_netbsd_nat_target::fetch_registers): ...this.
15523 (arm_nbsd_nat_target::store_registers): Rename to...
15524 (arm_netbsd_nat_target::store_registers): ...this.
15525
15526 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15527
15528 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15529 register_t.
15530
15531 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15532
15533 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15534 Update comment.
15535 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15536 Likewise.
15537 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15538 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15539 the correct replacement (iterate_over_regset_sections).
15540 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15541 Update comment.
15542
15543 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15544
15545 PR gdb/23718
15546 * gdb/python/python.c (execute_gdb_command): Call
15547 async_enable_stdin in catch block.
15548
15549 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15550
15551 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15552 SWITCH_THRU_ALL_UIS.
15553
15554 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15555
15556 PR tui/9765
15557 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15558 comment, add extra parameter, and update to store previous symbol
15559 when appropriate.
15560 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15561 add extra parameter.
15562 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15563 remove unneeded parameter, add try/catch around gdb_print_insn,
15564 rewrite to add items to asm_lines vector.
15565 (tui_find_backward_disassembly_start_address): New function.
15566 (tui_find_disassembly_address): Updated throughout.
15567 (tui_disasm_window::set_contents): Update for changes to
15568 tui_disassemble.
15569 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15570 number of lines to scroll.
15571
15572 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15573
15574 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15575 (SECT_OFF_DATA): Likewise.
15576 (SECT_OFF_RODATA): Likewise.
15577 (SECT_OFF_TEXT): Likewise.
15578 (SECT_OFF_BSS): Likewise.
15579 (struct objfile) <text_section_offset, data_section_offset>: New
15580 methods.
15581 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15582 objfile::text_section_offset.
15583 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15584 * coffread.c (coff_symtab_read): Likewise.
15585 (enter_linenos): Likewise.
15586 (process_coff_symbol): Likewise.
15587 * ctfread.c (get_objfile_text_range): Likewise.
15588 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15589 Use objfile::data_section_offset.
15590 * dwarf2-frame.c (execute_cfa_program): Use
15591 objfile::text_section_offset.
15592 (dwarf2_frame_find_fde): Likewise.
15593 * dwarf2read.c (create_addrmap_from_index): Likewise.
15594 (create_addrmap_from_aranges): Likewise.
15595 (dw2_find_pc_sect_compunit_symtab): Likewise.
15596 (process_psymtab_comp_unit_reader): Likewise.
15597 (add_partial_symbol): Likewise.
15598 (add_partial_subprogram): Likewise.
15599 (process_full_comp_unit): Likewise.
15600 (read_file_scope): Likewise.
15601 (read_func_scope): Likewise.
15602 (read_lexical_block_scope): Likewise.
15603 (read_call_site_scope): Likewise.
15604 (dwarf2_rnglists_process): Likewise.
15605 (dwarf2_ranges_process): Likewise.
15606 (dwarf2_ranges_read): Likewise.
15607 (dwarf_decode_lines_1): Likewise.
15608 (new_symbol): Likewise.
15609 (dwarf2_fetch_die_loc_sect_off): Likewise.
15610 (dwarf2_per_cu_text_offset): Likewise.
15611 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15612 * hppa-tdep.c (read_unwind_info): Likewise.
15613 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15614 * psympriv.h (struct partial_symtab): Likewise.
15615 * psymtab.c (find_pc_sect_psymtab): Likewise.
15616 * solib-svr4.c (enable_break): Likewise.
15617 * stap-probe.c (relocate_address): Use
15618 objfile::data_section_offset.
15619 * xcoffread.c (enter_line_range): Use
15620 objfile::text_section_offset.
15621 (read_xcoff_symtab): Likewise.
15622
15623 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15624
15625 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15626 declaration to narrower scopes.
15627
15628 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15629
15630 * darwin-nat.h (struct darwin_exception_msg, enum
15631 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15632 Move up.
15633 (class darwin_nat_target) <wait_1, check_new_threads,
15634 decode_exception_message, decode_message, stop_inferior,
15635 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15636 * darwin-nat.c (darwin_check_new_threads): Rename to...
15637 (darwin_nat_target::check_new_threads): ... this.
15638 (darwin_suspend_inferior_it): Remove.
15639 (darwin_decode_exception_message): Rename to...
15640 (darwin_nat_target::decode_exception_message): ... this.
15641 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15642 (darwin_decode_message): Rename to...
15643 (darwin_nat_target::decode_message): ... this.
15644 (cancel_breakpoint): Rename to...
15645 (darwin_nat_target::cancel_breakpoint): ... this.
15646 (darwin_wait): Rename to...
15647 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15648 instead of iterate_over_inferiors.
15649 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15650 (darwin_stop_inferior): Rename to...
15651 (darwin_nat_target::stop_inferior): ... this.
15652 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15653 (darwin_init_thread_list): Rename to...
15654 (darwin_nat_target::init_thread_list): ... this.
15655 (darwin_ptrace_him): Rename to...
15656 (darwin_nat_target::ptrace_him): ... this.
15657 (darwin_nat_target::create_inferior): Pass lambda function to
15658 fork_inferior.
15659 (darwin_nat_target::detach): Call stop_inferior instead of
15660 darwin_stop_inferior.
15661 * fork-inferior.h (fork_inferior): Change init_trace_fun
15662 parameter to gdb::function_view.
15663 * fork-inferior.c (fork_inferior): Likewise.
15664
15665 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15666
15667 * i386-cygwin-tdep.c (core_process_module_section): Update.
15668 * windows-nat.c (struct lm_info_windows): Add text_offset.
15669 (windows_xfer_shared_libraries): Update.
15670 * windows-tdep.c (windows_xfer_shared_library):
15671 Add text_offset_cached argument.
15672 * windows-tdep.h (windows_xfer_shared_library): Update.
15673
15674 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15675
15676 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15677
15678 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15679
15680 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15681 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15682 replace with range-based for.
15683 (gdbsim_interrupt_inferior): Remove.
15684 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15685 with a range-based for. Inline code from
15686 gdbsim_interrupt_inferior.
15687
15688 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15689
15690 * infrun.c (proceed): Fix indentation.
15691
15692 2020-01-21 Tom Tromey <tromey@adacore.com>
15693
15694 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15695 * python/python.c (python_extension_ops): Update.
15696 (gdbpy_colorize): New function.
15697 * python/lib/gdb/__init__.py (colorize): New function.
15698 * extension.h (ext_lang_colorize): Declare.
15699 * extension.c (ext_lang_colorize): New function.
15700 * extension-priv.h (struct extension_language_ops) <colorize>: New
15701 member.
15702 * cli/cli-style.c (_initialize_cli_style): Update help text.
15703
15704 2020-01-21 Luis Machado <luis.machado@linaro.org>
15705
15706 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15707 <cond>: Change type to bool.
15708 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15709 (aarch64_displaced_step_cb): Likewise.
15710 (aarch64_displaced_step_tb): Likewise.
15711
15712 2020-01-21 Luis Machado <luis.machado@linaro.org>
15713
15714 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15715 output.
15716
15717 2020-01-21 Luis Machado <luis.machado@linaro.org>
15718
15719 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15720 <pc_adjust>: Adjust the documentation.
15721 (aarch64_displaced_step_fixup): Check if PC really moved before
15722 adjusting it.
15723
15724 2020-01-19 Tom Tromey <tom@tromey.com>
15725
15726 * disasm.c (~gdb_disassembler): New destructor.
15727 (gdb_buffered_insn_length): Call disassemble_free_target.
15728 * disasm.h (class gdb_disassembler): Declare destructor. Use
15729 DISABLE_COPY_AND_ASSIGN.
15730
15731 2020-01-19 Tom Tromey <tom@tromey.com>
15732
15733 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15734 (die_reader_func_ftype): Remove.
15735 (cutu_reader): New class.
15736 (dw2_get_file_names_reader): Remove "data" parameter.
15737 (dw2_get_file_names): Use cutu_reader.
15738 (create_debug_type_hash_table): Update.
15739 (read_cutu_die_from_dwo): Update comment.
15740 (lookup_dwo_unit): Add dwo_name parameter.
15741 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15742 die_reader_func_ftype and data parameters.
15743 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15744 Remove die_reader_func_ftype and data parameters.
15745 (~cutu_reader): New; from init_cutu_and_read_dies.
15746 (cutu_reader::cutu_reader): Rename from
15747 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15748 and data parameters.
15749 (init_cutu_and_read_dies_simple): Remove.
15750 (struct process_psymtab_comp_unit_data): Remove.
15751 (process_psymtab_comp_unit_reader): Remove data parameter; add
15752 want_partial_unit and pretend_language parameters.
15753 (process_psymtab_comp_unit): Use cutu_reader.
15754 (build_type_psymtabs_reader): Remove data parameter.
15755 (build_type_psymtabs_1): Use cutu_reader.
15756 (process_skeletonless_type_unit): Likewise.
15757 (load_partial_comp_unit_reader): Remove.
15758 (load_partial_comp_unit): Use cutu_reader.
15759 (load_full_comp_unit_reader): Remove.
15760 (load_full_comp_unit): Use cutu_reader.
15761 (struct create_dwo_cu_data): Remove.
15762 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15763 dwo_unit parameters.
15764 (create_cus_hash_table): Use cutu_reader.
15765 (struct dwarf2_read_addr_index_data): Remove.
15766 (dwarf2_read_addr_index_reader): Remove.
15767 (dwarf2_read_addr_index): Use cutu_reader.
15768 (read_signatured_type_reader): Remove.
15769 (read_signatured_type): Use cutu_reader.
15770
15771 2020-01-19 Tom Tromey <tom@tromey.com>
15772
15773 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15774 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15775 (tui_wrefresh): Declare.
15776 * tui/tui-wingeneral.c (suppress_output): New global.
15777 (tui_suppress_output, ~tui_suppress_output): New constructor and
15778 destructor.
15779 (tui_wrefresh): New function.
15780 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15781 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15782 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15783 method.
15784 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15785 tui_wrefresh.
15786 (tui_data_window::no_refresh): New method.
15787 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15788 (tui_reg_command): Use tui_suppress_output
15789 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15790 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15791 method.
15792 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15793
15794 2020-01-19 Tom Tromey <tom@tromey.com>
15795
15796 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15797 Handle case where symtab is null.
15798
15799 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15800
15801 * linux-fork.c (one_fork_p): Simplify.
15802
15803 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15804
15805 * top.c (struct qt_args): Remove.
15806 (kill_or_detach): Change return type to void, replace `void *`
15807 parameter with a proper one.
15808 (print_inferior_quit_action): Likewise.
15809 (quit_confirm): Use range-based for loop to iterate over inferiors.
15810 (quit_force): Likewise.
15811
15812 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15813
15814 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15815 `void *` parameter with proper parameters.
15816 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15817 (print_one_inferior): Change return type to void, replace `void *`
15818 parameter with proper parameters.
15819 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15820 inferiors.
15821 (get_other_inferior): Remove.
15822 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15823 inferiors.
15824
15825 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15826
15827 * mi/mi-interp.c (report_initial_inferior): Remove.
15828 (mi_interp::init): Use range-based for to iterate over inferiors.
15829
15830 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15831
15832 * python/py-inferior.c (build_inferior_list): Remove.
15833 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15834
15835 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15836
15837 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15838 (btrace_stitch_trace): Likewise.
15839 * charset.c (intermediate_encoding): Likewise (vaild).
15840 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15841 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15842 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15843
15844 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15845
15846 * windows-tdep.c (windows_get_tlb_type):
15847 Add rtl_user_process_parameters type.
15848
15849 2020-01-16 Pedro Alves <palves@redhat.com>
15850 Norbert Lange <nolange79@gmail.com>
15851
15852 PR build/24805
15853 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15854 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15855 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15856 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15857 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15858 (ps_plog): Redeclare exported functions with default visibility.
15859
15860 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15861
15862 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15863 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15864
15865 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15866
15867 * infcmd.c (post_create_inferior): Use get_thread_regcache
15868 instead of get_current_regcache.
15869
15870 2020-01-14 Tom Tromey <tom@tromey.com>
15871
15872 PR symtab/12535:
15873 * python/python.c (gdbpy_decode_line): Treat empty string the same
15874 as no argument.
15875
15876 2020-01-14 Tom Tromey <tom@tromey.com>
15877
15878 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15879
15880 2020-01-14 Tom Tromey <tom@tromey.com>
15881
15882 * nat/linux-btrace.c: Don't include <config.h>.
15883 * nat/linux-ptrace.c: Don't include <config.h>.
15884 * nat/x86-linux-dregs.c: Don't include <config.h>.
15885
15886 2020-01-14 Tom Tromey <tom@tromey.com>
15887
15888 * configure: Rebuild.
15889 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15890
15891 2020-01-14 Tom Tromey <tom@tromey.com>
15892
15893 * nat/x86-linux-dregs.c: Include configh.h.
15894 * nat/linux-ptrace.c: Include configh.h.
15895 * nat/linux-btrace.c: Include configh.h.
15896 * defs.h: Include config.h, bfd.h.
15897 * configure.ac: Don't source common.host.
15898 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15899 * configure: Rebuild.
15900 * acinclude.m4: Update path.
15901 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15902 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15903 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15904 (CLIBS): Add LIBSUPPORT.
15905 (CDEPS): Likewise.
15906 (COMMON_SFILES): Remove gdbsupport files.
15907 (HFILES_NO_SRCDIR): Likewise.
15908 (stamp-version): Update path to create-version.sh.
15909 (ALLDEPFILES): Remove gdbsupport files.
15910
15911 2020-01-14 Tom Tromey <tom@tromey.com>
15912
15913 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15914 USE_WIN32API when needed.
15915 * configure.ac (USE_WIN32API): Don't define.
15916 (WIN32LIBS): Use WIN32APILIBS.
15917 * configure: Rebuild.
15918
15919 2020-01-14 Tom Tromey <tom@tromey.com>
15920
15921 * configure: Rebuild.
15922 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15923
15924 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15925
15926 * skip.c (skip_function_command): Make skip w/o arguments use the
15927 name of the inlined function if pc is inside any inlined function.
15928
15929 2020-01-14 Luis Machado <luis.machado@linaro.org>
15930
15931 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15932 * infrun.c (resume_1): Likewise.
15933 (handle_inferior_event): Remove stale comment.
15934 * linux-nat.c (linux_nat_target::resume): Update comments.
15935 (save_stop_reason): Likewise.
15936 (linux_nat_filter_event): Likewise.
15937 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15938
15939 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15940
15941 * elfread.c (record_minimal_symbol): Set section index to 0 for
15942 non-allocatable sections.
15943
15944
15945 2020-01-13 Ali Tamur <tamur@google.com>
15946
15947 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15948 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15949 to gdb::optional. Update comments.
15950 (dwo_file): Update comments.
15951 (read_attribute): Update API to take an additional out parameter,
15952 need_reprocess. This is used to mark attributes that need other
15953 attributes (e.g. str_offsets_base) for correct computation which may not
15954 have been read yet.
15955 (read_attribute_reprocess): New function declaration.
15956 (read_addr_index): Likewise.
15957 (read_dwo_str_index): Likewise.
15958 (read_stub_str_index): Likewise.
15959 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15960 (lookup_addr_base): New function definition.
15961 (lookup_ranges_base): Likewise.
15962 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15963 lookup_ranges_base.
15964 (init_cutu_and_read_dies): Update comments.
15965 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15966 unit. This is used to inherit parent's str_offsets_base and addr_base.
15967 Update comments.
15968 (init_cutu_and_read_dies_simple): Reflect API changes.
15969 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15970 (create_cus_hash_table): Change API to take parent compile unit.
15971 Reflect API changes.
15972 (open_and_init_dwo_file): Reflect API changes.
15973 (dwarf2_get_pc_bounds): Update comments.
15974 (dwarf2_record_block_ranges): Likewise.
15975 (read_full_die_1): Change implementation to reprocess attributes that
15976 need str_offsets_base and addr_base.
15977 (partial_die_info::read): Likewise.
15978 (read_attribute_reprocess): New function definition.
15979 (read_attribute_value): Change API to take an additional out parameter,
15980 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15981 when a non-dwo compile unit has index based attributes.
15982 (read_attribute): Reflect API changes.
15983 (read_addr_index_1): Reflect API changes. Update comments.
15984 (dwarf2_read_addr_index_data): Reflect API changes.
15985 (dwarf2_read_addr_index): Likewise.
15986 (read_str_index): Change API and implementation. This becomes a helper
15987 to be used by the new string index related methods. Update error
15988 message and comments.
15989 (read_dwo_str_index): New function definition.
15990 (read_stub_str_index): Likewise.
15991 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15992 * symfile.h (dwarf2_debug_sections): Likewise.
15993 * xcoffread.c (dwarf2_debug_sections): Likewise.
15994
15995 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15996
15997 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15998 core_reg_sect type to gdb_byte *.
15999 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16000 * cris-tdep.c (fetch_core_registers): Likewise.
16001 * corelow.c (core_target::get_core_register_section): Change
16002 type of `contents` to gdb::byte_vector.
16003
16004 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16005
16006 * tui/tui-wingeneral.c (box_win): Position the title in the center
16007 of the border.
16008
16009 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16010
16011 * corelow.c (core_target::get_core_register_section): Use
16012 std::vector instead of alloca.
16013
16014 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16015
16016 * warning.m4: Add -Wmissing-declarations to build_warnings.
16017 * configure: Re-generate.
16018
16019 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16020
16021 * python/python.c (init__gdb_module): Add declaration.
16022
16023 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16024
16025 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16026 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16027 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16028 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16029 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16030 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16031 * ada-exp.y (_initialize_ada_exp): Add declaration.
16032 * ada-lang.c (_initialize_ada_language): Add declaration.
16033 * ada-tasks.c (_initialize_tasks): Add declaration.
16034 * agent.c (_initialize_agent): Add declaration.
16035 * aix-thread.c (_initialize_aix_thread): Add declaration.
16036 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16037 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16038 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16039 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16040 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16041 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16042 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16043 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16044 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16045 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16046 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16047 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16048 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16049 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16050 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16051 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16052 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16053 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16054 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16055 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16056 * annotate.c (_initialize_annotate): Add declaration.
16057 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16058 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16059 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16060 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16061 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16062 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16063 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16064 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16065 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16066 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16067 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16068 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16069 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16070 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16071 * auto-load.c (_initialize_auto_load): Add declaration.
16072 * auxv.c (_initialize_auxv): Add declaration.
16073 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16074 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16075 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16076 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16077 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16078 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16079 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16080 * breakpoint.c (_initialize_breakpoint): Add declaration.
16081 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16082 * btrace.c (_initialize_btrace): Add declaration.
16083 * charset.c (_initialize_charset): Add declaration.
16084 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16085 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16086 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16087 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16088 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16089 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16090 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16091 * coffread.c (_initialize_coffread): Add declaration.
16092 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16093 * compile/compile.c (_initialize_compile): Add declaration.
16094 * complaints.c (_initialize_complaints): Add declaration.
16095 * completer.c (_initialize_completer): Add declaration.
16096 * copying.c (_initialize_copying): Add declaration.
16097 * corefile.c (_initialize_core): Add declaration.
16098 * corelow.c (_initialize_corelow): Add declaration.
16099 * cp-abi.c (_initialize_cp_abi): Add declaration.
16100 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16101 * cp-support.c (_initialize_cp_support): Add declaration.
16102 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16103 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16104 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16105 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16106 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16107 * ctfread.c (_initialize_ctfread): Add declaration.
16108 * d-lang.c (_initialize_d_language): Add declaration.
16109 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16110 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16111 * dbxread.c (_initialize_dbxread): Add declaration.
16112 * dcache.c (_initialize_dcache): Add declaration.
16113 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16114 * disasm.c (_initialize_disasm): Add declaration.
16115 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16116 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16117 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16118 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16119 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16120 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16121 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16122 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16123 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16124 * elfread.c (_initialize_elfread): Add declaration.
16125 * exec.c (_initialize_exec): Add declaration.
16126 * extension.c (_initialize_extension): Add declaration.
16127 * f-lang.c (_initialize_f_language): Add declaration.
16128 * f-valprint.c (_initialize_f_valprint): Add declaration.
16129 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16130 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16131 * filesystem.c (_initialize_filesystem): Add declaration.
16132 * findcmd.c (_initialize_mem_search): Add declaration.
16133 * findvar.c (_initialize_findvar): Add declaration.
16134 * fork-child.c (_initialize_fork_child): Add declaration.
16135 * frame-base.c (_initialize_frame_base): Add declaration.
16136 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16137 * frame.c (_initialize_frame): Add declaration.
16138 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16139 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16140 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16141 * gcore.c (_initialize_gcore): Add declaration.
16142 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16143 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16144 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16145 * gdbarch.c (_initialize_gdbarch): Add declaration.
16146 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16147 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16148 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16149 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16150 * go-lang.c (_initialize_go_language): Add declaration.
16151 * go32-nat.c (_initialize_go32_nat): Add declaration.
16152 * guile/guile.c (_initialize_guile): Add declaration.
16153 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16154 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16155 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16156 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16157 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16158 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16159 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16160 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16161 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16162 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16163 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16164 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16165 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16166 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16167 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16168 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16169 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16170 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16171 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16172 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16173 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16174 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16175 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16176 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16177 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16178 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16179 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16180 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16181 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16182 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16183 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16184 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16185 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16186 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16187 * infcall.c (_initialize_infcall): Add declaration.
16188 * infcmd.c (_initialize_infcmd): Add declaration.
16189 * inflow.c (_initialize_inflow): Add declaration.
16190 * infrun.c (_initialize_infrun): Add declaration.
16191 * interps.c (_initialize_interpreter): Add declaration.
16192 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16193 * jit.c (_initialize_jit): Add declaration.
16194 * language.c (_initialize_language): Add declaration.
16195 * linux-fork.c (_initialize_linux_fork): Add declaration.
16196 * linux-nat.c (_initialize_linux_nat): Add declaration.
16197 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16198 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16199 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16200 * m2-lang.c (_initialize_m2_language): Add declaration.
16201 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16202 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16203 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16204 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16205 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16206 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16207 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16208 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16209 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16210 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16211 * machoread.c (_initialize_machoread): Add declaration.
16212 * macrocmd.c (_initialize_macrocmd): Add declaration.
16213 * macroscope.c (_initialize_macroscope): Add declaration.
16214 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16215 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16216 * maint.c (_initialize_maint_cmds): Add declaration.
16217 * mdebugread.c (_initialize_mdebugread): Add declaration.
16218 * memattr.c (_initialize_mem): Add declaration.
16219 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16220 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16221 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16222 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16223 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16224 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16225 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16226 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16227 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16228 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16229 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16230 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16231 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16232 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16233 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16234 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16235 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16236 * mipsread.c (_initialize_mipsread): Add declaration.
16237 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16238 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16239 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16240 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16241 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16242 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16243 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16244 * nto-procfs.c (_initialize_procfs): Add declaration.
16245 * objc-lang.c (_initialize_objc_language): Add declaration.
16246 * observable.c (_initialize_observer): Add declaration.
16247 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16248 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16249 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16250 * osabi.c (_initialize_gdb_osabi): Add declaration.
16251 * osdata.c (_initialize_osdata): Add declaration.
16252 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16253 * parse.c (_initialize_parse): Add declaration.
16254 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16255 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16256 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16257 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16258 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16259 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16260 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16261 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16262 * printcmd.c (_initialize_printcmd): Add declaration.
16263 * probe.c (_initialize_probe): Add declaration.
16264 * proc-api.c (_initialize_proc_api): Add declaration.
16265 * proc-events.c (_initialize_proc_events): Add declaration.
16266 * proc-service.c (_initialize_proc_service): Add declaration.
16267 * procfs.c (_initialize_procfs): Add declaration.
16268 * producer.c (_initialize_producer): Add declaration.
16269 * psymtab.c (_initialize_psymtab): Add declaration.
16270 * python/python.c (_initialize_python): Add declaration.
16271 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16272 * record-btrace.c (_initialize_record_btrace): Add declaration.
16273 * record-full.c (_initialize_record_full): Add declaration.
16274 * record.c (_initialize_record): Add declaration.
16275 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16276 * regcache.c (_initialize_regcache): Add declaration.
16277 * reggroups.c (_initialize_reggroup): Add declaration.
16278 * remote-notif.c (_initialize_notif): Add declaration.
16279 * remote-sim.c (_initialize_remote_sim): Add declaration.
16280 * remote.c (_initialize_remote): Add declaration.
16281 * reverse.c (_initialize_reverse): Add declaration.
16282 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16283 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16284 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16285 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16286 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16287 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16288 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16289 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16290 Add declaration.
16291 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16292 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16293 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16294 * rust-exp.y (_initialize_rust_exp): Add declaration.
16295 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16296 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16297 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16298 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16299 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16300 * score-tdep.c (_initialize_score_tdep): Add declaration.
16301 * ser-go32.c (_initialize_ser_dos): Add declaration.
16302 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16303 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16304 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16305 * ser-uds.c (_initialize_ser_socket): Add declaration.
16306 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16307 * serial.c (_initialize_serial): Add declaration.
16308 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16309 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16310 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16311 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16312 * skip.c (_initialize_step_skip): Add declaration.
16313 * sol-thread.c (_initialize_sol_thread): Add declaration.
16314 * solib-aix.c (_initialize_solib_aix): Add declaration.
16315 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16316 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16317 * solib-frv.c (_initialize_frv_solib): Add declaration.
16318 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16319 * solib-target.c (_initialize_solib_target): Add declaration.
16320 * solib.c (_initialize_solib): Add declaration.
16321 * source-cache.c (_initialize_source_cache): Add declaration.
16322 * source.c (_initialize_source): Add declaration.
16323 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16324 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16325 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16326 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16327 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16328 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16329 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16330 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16331 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16332 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16333 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16334 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16335 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16336 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16337 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16338 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16339 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16340 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16341 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16342 * stabsread.c (_initialize_stabsread): Add declaration.
16343 * stack.c (_initialize_stack): Add declaration.
16344 * stap-probe.c (_initialize_stap_probe): Add declaration.
16345 * std-regs.c (_initialize_frame_reg): Add declaration.
16346 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16347 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16348 * symfile.c (_initialize_symfile): Add declaration.
16349 * symmisc.c (_initialize_symmisc): Add declaration.
16350 * symtab.c (_initialize_symtab): Add declaration.
16351 * target.c (_initialize_target): Add declaration.
16352 * target-connection.c (_initialize_target_connection): Add
16353 declaration.
16354 * target-dcache.c (_initialize_target_dcache): Add declaration.
16355 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16356 * thread.c (_initialize_thread): Add declaration.
16357 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16358 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16359 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16360 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16361 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16362 * tracectf.c (_initialize_ctf): Add declaration.
16363 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16364 * tracefile.c (_initialize_tracefile): Add declaration.
16365 * tracepoint.c (_initialize_tracepoint): Add declaration.
16366 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16367 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16368 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16369 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16370 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16371 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16372 * tui/tui.c (_initialize_tui): Add declaration.
16373 * typeprint.c (_initialize_typeprint): Add declaration.
16374 * ui-style.c (_initialize_ui_style): Add declaration.
16375 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16376 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16377 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16378 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16379 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16380 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16381 * unittests/filtered_iterator-selftests.c
16382 (_initialize_filtered_iterator_selftests): Add declaration.
16383 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16384 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16385 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16386 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16387 * unittests/main-thread-selftests.c
16388 (_initialize_main_thread_selftests): Add declaration.
16389 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16390 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16391 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16392 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16393 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16394 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16395 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16396 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16397 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16398 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16399 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16400 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16401 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16402 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16403 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16404 declaration.
16405 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16406 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16407 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16408 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16409 * user-regs.c (_initialize_user_regs): Add declaration.
16410 * utils.c (_initialize_utils): Add declaration.
16411 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16412 * valops.c (_initialize_valops): Add declaration.
16413 * valprint.c (_initialize_valprint): Add declaration.
16414 * value.c (_initialize_values): Add declaration.
16415 * varobj.c (_initialize_varobj): Add declaration.
16416 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16417 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16418 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16419 * windows-nat.c (_initialize_windows_nat): Add declaration.
16420 (_initialize_check_for_gdb_ini): Add declaration.
16421 (_initialize_loadable): Add declaration.
16422 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16423 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16424 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16425 * xcoffread.c (_initialize_xcoffread): Add declaration.
16426 * xml-support.c (_initialize_xml_support): Add declaration.
16427 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16428 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16429 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16430 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16431
16432 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16433
16434 * regformats/regdat.sh: Generate declaration for init function.
16435
16436 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16437
16438 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16439 up.
16440 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16441 close_one_inferior>: New methods.
16442 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16443 pass down target to find_inferior_pid.
16444 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16445 Pass down target to find_inferior_ptid.
16446 (gdbsim_target::create_inferior): Pass down target to
16447 add_thread_silent.
16448 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16449 target down to find_inferior_ptid and switch_to_thread.
16450 (gdbsim_target::close): Update to call close_one_inferior.
16451 (struct resume_data): Remove.
16452 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16453 directly, rather than through a void pointer.
16454 (gdbsim_target::resume): Update to call resume_one_inferior.
16455
16456 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16457
16458 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16459
16460 2020-01-12 Pedro Alves <palves@redhat.com>
16461
16462 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16463 directly for the current inferior instead of
16464 discard_all_inferiors.
16465 (discard_all_inferiors): Delete.
16466
16467 2020-01-11 Tom Tromey <tom@tromey.com>
16468
16469 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16470 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16471 deprecated_safe_get_selected_frame.
16472
16473 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16474
16475 * inferior.c (print_inferior): Switch inferior before printing it.
16476
16477 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16478 Pedro Alves <palves@redhat.com>
16479
16480 * progspace-and-thread.c (switch_to_program_space_and_thread):
16481 Assert there's an inferior for PSPACE. Use
16482 switch_to_inferior_no_thread to switch the inferior too.
16483 * progspace.c (program_space::~program_space): Call
16484 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16485 (program_space::free_all_objfiles): Don't call clear_symtab_users
16486 here.
16487 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16488
16489 2020-01-10 Pedro Alves <palves@redhat.com>
16490
16491 * NEWS: Mention multi-target debugging, "info connections", and
16492 "add-inferior -no-connection".
16493
16494 2020-01-10 Pedro Alves <palves@redhat.com>
16495
16496 * infrun.c: Include "target-connection.h".
16497 (check_multi_target_resumption): New.
16498 (proceed): Call it.
16499 * target-connection.c (make_target_connection_string): Make
16500 extern.
16501 * target-connection.h (make_target_connection_string): Declare.
16502
16503 2020-01-10 Pedro Alves <palves@redhat.com>
16504
16505 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16506 * inferior.c (uiout_field_connection): New function.
16507 (print_inferior): Add new "connection-id" column.
16508 (add_inferior_command): Show connection number/string of added
16509 inferior.
16510 * process-stratum-target.h
16511 (process_stratum_target::connection_string): New virtual method.
16512 (process_stratum_target::connection_number): New field.
16513 * remote.c (remote_target::connection_string): New override.
16514 * target-connection.c: New file.
16515 * target-connection.h: New file.
16516 * target.c (decref_target): Remove process_stratum targets from
16517 the connection list.
16518 (target_stack::push): Add process_stratum targets to the
16519 connection list.
16520
16521 2020-01-10 Pedro Alves <palves@redhat.com>
16522
16523 Revert:
16524 2016-04-12 Pedro Alves <palves@redhat.com>
16525 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16526 Remove references to name.
16527 * serial.h (struct serial) <name>: Delete.
16528
16529 2020-01-10 Pedro Alves <palves@redhat.com>
16530
16531 * gdbarch-selftests.c (register_to_value_test): Remove "target
16532 already pushed" check.
16533
16534 2020-01-10 Pedro Alves <palves@redhat.com>
16535 John Baldwin <jhb@FreeBSD.org>
16536
16537 * aarch64-linux-nat.c
16538 (aarch64_linux_nat_target::thread_architecture): Adjust.
16539 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16540 (task_command_1): Likewise.
16541 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16542 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16543 (aix_thread_target::store_registers)
16544 (aix_thread_target::thread_alive): Adjust.
16545 * amd64-fbsd-tdep.c: Include "inferior.h".
16546 (amd64fbsd_get_thread_local_address): Pass down target.
16547 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16548 thread's gdbarch instead of target_gdbarch.
16549 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16550 get_last_target_status.
16551 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16552 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16553 inferiors.
16554 (update_inserted_breakpoint_locations): Skip if inferiors with no
16555 execution.
16556 (update_global_location_list): When handling moribund locations,
16557 find representative inferior for location's pspace, and use thread
16558 count of its process_stratum target.
16559 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16560 * bsd-uthread.c (bsd_uthread_target::wait): Use
16561 as_process_stratum_target and adjust thread_change_ptid and
16562 add_thread calls.
16563 (bsd_uthread_target::update_thread_list): Use
16564 as_process_stratum_target and adjust find_thread_ptid,
16565 thread_change_ptid and add_thread calls.
16566 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16567 find_thread_ptid call.
16568 * corelow.c (add_to_thread_list): Adjust add_thread call.
16569 (core_target_open): Adjust add_thread_silent and thread_count
16570 calls.
16571 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16572 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16573 * event-top.c (async_disconnect): Pop targets from all inferiors.
16574 * exec.c (add_target_sections): Push exec target on all inferiors
16575 sharing the program space.
16576 (remove_target_sections): Remove the exec target from all
16577 inferiors sharing the program space.
16578 (exec_on_vfork): New.
16579 * exec.h (exec_on_vfork): Declare.
16580 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16581 Pass it down.
16582 (fbsd_nat_target::update_thread_list): Adjust.
16583 (fbsd_nat_target::resume): Adjust.
16584 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16585 down.
16586 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16587 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16588 get_thread_arch_regcache call.
16589 * fork-child.c (gdb_startup_inferior): Pass target down to
16590 startup_inferior and set_executing.
16591 * gdbthread.h (struct process_stratum_target): Forward declare.
16592 (add_thread, add_thread_silent, add_thread_with_info)
16593 (in_thread_list): Add process_stratum_target parameter.
16594 (find_thread_ptid(inferior*, ptid_t)): New overload.
16595 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16596 parameter.
16597 (all_threads()): Delete overload.
16598 (all_threads, all_non_exited_threads): Add process_stratum_target
16599 parameter.
16600 (all_threads_safe): Use brace initialization.
16601 (thread_count): Add process_stratum_target parameter.
16602 (set_resumed, set_running, set_stop_requested, set_executing)
16603 (threads_are_executing, finish_thread_state): Add
16604 process_stratum_target parameter.
16605 (switch_to_thread): Use is_current_thread.
16606 * i386-fbsd-tdep.c: Include "inferior.h".
16607 (i386fbsd_get_thread_local_address): Pass down target.
16608 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16609 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16610 have_inferiors check.
16611 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16612 (inf_ptrace_target::attach): Adjust.
16613 * infcall.c (run_inferior_call): Adjust.
16614 * infcmd.c (run_command_1): Pass target to
16615 scoped_finish_thread_state.
16616 (proceed_thread_callback): Skip inferiors with no execution.
16617 (continue_command): Rename 'all_threads' local to avoid hiding
16618 'all_threads' function. Adjust get_last_target_status call.
16619 (prepare_one_step): Adjust set_running call.
16620 (signal_command): Use user_visible_resume_target. Compare thread
16621 pointers instead of inferior_ptid.
16622 (info_program_command): Adjust to pass down target.
16623 (attach_command): Mark target's 'thread_executing' flag.
16624 (stop_current_target_threads_ns): New, factored out from ...
16625 (interrupt_target_1): ... this. Switch inferior before making
16626 target calls.
16627 * inferior-iter.h
16628 (struct all_inferiors_iterator, struct all_inferiors_range)
16629 (struct all_inferiors_safe_range)
16630 (struct all_non_exited_inferiors_range): Filter on
16631 process_stratum_target too. Remove explicit.
16632 * inferior.c (inferior::inferior): Push dummy target on target
16633 stack.
16634 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16635 Add process_stratum_target parameter, and pass it down.
16636 (have_live_inferiors): Adjust.
16637 (switch_to_inferior_and_push_target): New.
16638 (add_inferior_command, clone_inferior_command): Handle
16639 "-no-connection" parameter. Use
16640 switch_to_inferior_and_push_target.
16641 (_initialize_inferior): Mention "-no-connection" option in
16642 the help of "add-inferior" and "clone-inferior" commands.
16643 * inferior.h: Include "process-stratum-target.h".
16644 (interrupt_target_1): Use bool.
16645 (struct inferior) <push_target, unpush_target, target_is_pushed,
16646 find_target_beneath, top_target, process_target, target_at,
16647 m_stack>: New.
16648 (discard_all_inferiors): Delete.
16649 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16650 (all_inferiors, all_non_exited_inferiors): Add
16651 process_stratum_target parameter.
16652 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16653 (target_last_proc_target): New global.
16654 (follow_fork_inferior): Push target on new inferior. Pass target
16655 to add_thread_silent. Call exec_on_vfork. Handle target's
16656 reference count.
16657 (follow_fork): Adjust get_last_target_status call. Also consider
16658 target.
16659 (follow_exec): Push target on new inferior.
16660 (struct execution_control_state) <target>: New field.
16661 (user_visible_resume_target): New.
16662 (do_target_resume): Call target_async.
16663 (resume_1): Set target's threads_executing flag. Consider resume
16664 target.
16665 (commit_resume_all_targets): New.
16666 (proceed): Also consider resume target. Skip threads of inferiors
16667 with no execution. Commit resumtion in all targets.
16668 (start_remote): Pass current inferior to wait_for_inferior.
16669 (infrun_thread_stop_requested): Consider target as well. Pass
16670 thread_info pointer to clear_inline_frame_state instead of ptid.
16671 (infrun_thread_thread_exit): Consider target as well.
16672 (random_pending_event_thread): New inferior parameter. Use it.
16673 (do_target_wait): Rename to ...
16674 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16675 down.
16676 (threads_are_resumed_pending_p, do_target_wait): New.
16677 (prepare_for_detach): Adjust calls.
16678 (wait_for_inferior): New inferior parameter. Handle it. Use
16679 do_target_wait_1 instead of do_target_wait.
16680 (fetch_inferior_event): Adjust. Switch to representative
16681 inferior. Pass target down.
16682 (set_last_target_status): Add process_stratum_target parameter.
16683 Save target in global.
16684 (get_last_target_status): Add process_stratum_target parameter and
16685 handle it.
16686 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16687 (context_switch): Check inferior_ptid == null_ptid before calling
16688 inferior_thread().
16689 (get_inferior_stop_soon): Pass down target.
16690 (wait_one): Rename to ...
16691 (poll_one_curr_target): ... this.
16692 (struct wait_one_event): New.
16693 (wait_one): New.
16694 (stop_all_threads): Adjust.
16695 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16696 event's target.
16697 (switch_back_to_stepped_thread): Also consider target.
16698 (print_stop_event): Update.
16699 (normal_stop): Update. Also consider the resume target.
16700 * infrun.h (wait_for_inferior): Remove declaration.
16701 (user_visible_resume_target): New declaration.
16702 (get_last_target_status, set_last_target_status): New
16703 process_stratum_target parameter.
16704 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16705 process_stratum_target parameter, and use it.
16706 (clear_inline_frame_state (thread_info*)): New.
16707 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16708 process_stratum_target parameter.
16709 (clear_inline_frame_state (thread_info*)): Declare.
16710 * linux-fork.c (delete_checkpoint_command): Pass target down to
16711 find_thread_ptid.
16712 (checkpoint_command): Adjust.
16713 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16714 instead of just tweaking inferior_ptid.
16715 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16716 (exit_lwp): Pass target down to find_thread_ptid.
16717 (attach_proc_task_lwp_callback): Pass target down to
16718 add_thread/set_running/set_executing.
16719 (linux_nat_target::attach): Pass target down to
16720 thread_change_ptid.
16721 (get_detach_signal): Pass target down to find_thread_ptid.
16722 Consider last target status's target.
16723 (linux_resume_one_lwp_throw, resume_lwp)
16724 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16725 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16726 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16727 (linux_nat_target::async_wait_fd): New.
16728 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16729 target down.
16730 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16731 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16732 * linux-thread-db.c (struct thread_db_info::process_target): New
16733 field.
16734 (add_thread_db_info): Save target.
16735 (get_thread_db_info): New process_stratum_target parameter. Also
16736 match target.
16737 (delete_thread_db_info): New process_stratum_target parameter.
16738 Also match target.
16739 (thread_from_lwp): Adjust to pass down target.
16740 (thread_db_notice_clone): Pass down target.
16741 (check_thread_db_callback): Pass down target.
16742 (try_thread_db_load_1): Always push the thread_db target.
16743 (try_thread_db_load, record_thread): Pass target down.
16744 (thread_db_target::detach): Pass target down. Always unpush the
16745 thread_db target.
16746 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16747 target down. Always unpush the thread_db target.
16748 (find_new_threads_callback, thread_db_find_new_threads_2)
16749 (thread_db_target::update_thread_list): Pass target down.
16750 (thread_db_target::pid_to_str): Pass current inferior down.
16751 (thread_db_target::get_thread_local_address): Pass target down.
16752 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16753 target down.
16754 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16755 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16756 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16757 (procfs_init_inferior): Rename to ...
16758 (procfs_target::procfs_init_inferior): ... this and adjust.
16759 (procfs_target::create_inferior, procfs_notice_thread)
16760 (procfs_do_thread_registers): Adjust.
16761 * ppc-fbsd-tdep.c: Include "inferior.h".
16762 (ppcfbsd_get_thread_local_address): Pass down target.
16763 * proc-service.c (ps_xfer_memory): Switch current inferior and
16764 program space as well.
16765 (get_ps_regcache): Pass target down.
16766 * process-stratum-target.c
16767 (process_stratum_target::thread_address_space)
16768 (process_stratum_target::thread_architecture): Pass target down.
16769 * process-stratum-target.h
16770 (process_stratum_target::threads_executing): New field.
16771 (as_process_stratum_target): New.
16772 * ravenscar-thread.c
16773 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16774 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16775 down.
16776 * record-btrace.c (record_btrace_target::info_record): Adjust.
16777 (record_btrace_target::record_method)
16778 (record_btrace_target::record_is_replaying)
16779 (record_btrace_target::fetch_registers)
16780 (get_thread_current_frame_id, record_btrace_target::resume)
16781 (record_btrace_target::wait, record_btrace_target::stop): Pass
16782 target down.
16783 * record-full.c (record_full_wait_1): Switch to event thread.
16784 Pass target down.
16785 * regcache.c (regcache::regcache)
16786 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16787 process_stratum_target parameter and handle it.
16788 (current_thread_target): New global.
16789 (get_thread_regcache): Add process_stratum_target parameter and
16790 handle it. Switch inferior before calling target method.
16791 (get_thread_regcache): Pass target down.
16792 (get_thread_regcache_for_ptid): Pass target down.
16793 (registers_changed_ptid): Add process_stratum_target parameter and
16794 handle it.
16795 (registers_changed_thread, registers_changed): Pass target down.
16796 (test_get_thread_arch_aspace_regcache): New.
16797 (current_regcache_test): Define a couple local test_target_ops
16798 instances and use them for testing.
16799 (readwrite_regcache): Pass process_stratum_target parameter.
16800 (cooked_read_test, cooked_write_test): Pass mock_target down.
16801 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16802 (get_thread_arch_aspace_regcache): Add process_stratum_target
16803 parameter.
16804 (regcache::target): New method.
16805 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16806 (regcache::registers_changed_ptid): Add process_stratum_target
16807 parameter.
16808 (regcache::m_target): New field.
16809 (registers_changed_ptid): Add process_stratum_target parameter.
16810 * remote.c (remote_state::supports_vCont_probed): New field.
16811 (remote_target::async_wait_fd): New method.
16812 (remote_unpush_and_throw): Add remote_target parameter.
16813 (get_current_remote_target): Adjust.
16814 (remote_target::remote_add_inferior): Push target.
16815 (remote_target::remote_add_thread)
16816 (remote_target::remote_notice_new_inferior)
16817 (get_remote_thread_info): Pass target down.
16818 (remote_target::update_thread_list): Skip threads of inferiors
16819 bound to other targets. (remote_target::close): Don't discard
16820 inferiors. (remote_target::add_current_inferior_and_thread)
16821 (remote_target::process_initial_stop_replies)
16822 (remote_target::start_remote)
16823 (remote_target::remote_serial_quit_handler): Pass down target.
16824 (remote_target::remote_unpush_target): New remote_target
16825 parameter. Unpush the target from all inferiors.
16826 (remote_target::remote_unpush_and_throw): New remote_target
16827 parameter. Pass it down.
16828 (remote_target::open_1): Check whether the current inferior has
16829 execution instead of checking whether any inferior is live. Pass
16830 target down.
16831 (remote_target::remote_detach_1): Pass down target. Use
16832 remote_unpush_target.
16833 (extended_remote_target::attach): Pass down target.
16834 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16835 (remote_target::append_resumption): Pass down target.
16836 (remote_target::append_pending_thread_resumptions)
16837 (remote_target::remote_resume_with_hc, remote_target::resume)
16838 (remote_target::commit_resume): Pass down target.
16839 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16840 (remote_target::interrupt_query)
16841 (remote_target::remove_new_fork_children)
16842 (remote_target::check_pending_events_prevent_wildcard_vcont)
16843 (remote_target::remote_parse_stop_reply)
16844 (remote_target::process_stop_reply): Pass down target.
16845 (first_remote_resumed_thread): New remote_target parameter. Pass
16846 it down.
16847 (remote_target::wait_as): Pass down target.
16848 (unpush_and_perror): New remote_target parameter. Pass it down.
16849 (remote_target::readchar, remote_target::remote_serial_write)
16850 (remote_target::getpkt_or_notif_sane_1)
16851 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16852 down target.
16853 (remote_target::mourn_inferior): Pass down target. Use
16854 remote_unpush_target.
16855 (remote_target::core_of_thread)
16856 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16857 (remote_target::pid_to_exec_file)
16858 (remote_target::thread_handle_to_thread_info): Pass down target.
16859 (remote_target::async_wait_fd): New.
16860 * riscv-fbsd-tdep.c: Include "inferior.h".
16861 (riscv_fbsd_get_thread_local_address): Pass down target.
16862 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16863 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16864 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16865 Adjust.
16866 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16867 * solib-svr4.c (enable_break): Pass down target.
16868 * spu-multiarch.c (parse_spufs_run): Pass down target.
16869 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16870 * target-delegates.c: Regenerate.
16871 * target.c (g_target_stack): Delete.
16872 (current_top_target): Return the current inferior's top target.
16873 (target_has_execution_1): Refer to the passed-in inferior's top
16874 target.
16875 (target_supports_terminal_ours): Check whether the initial
16876 inferior was already created.
16877 (decref_target): New.
16878 (target_stack::push): Incref/decref the target.
16879 (push_target, push_target, unpush_target): Adjust.
16880 (target_stack::unpush): Defref target.
16881 (target_is_pushed): Return bool. Adjust to refer to the current
16882 inferior's target stack.
16883 (dispose_inferior): Delete, and inline parts ...
16884 (target_preopen): ... here. Only dispose of the current inferior.
16885 (target_detach): Hold strong target reference while detaching.
16886 Pass target down.
16887 (target_thread_name): Add assertion.
16888 (target_resume): Pass down target.
16889 (target_ops::beneath, find_target_at): Adjust to refer to the
16890 current inferior's target stack.
16891 (get_dummy_target): New.
16892 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16893 has a thread running.
16894 (initialize_targets): Rename to ...
16895 (_initialize_target): ... this.
16896 * target.h: Include "gdbsupport/refcounted-object.h".
16897 (struct target_ops): Inherit refcounted_object.
16898 (target_ops::shortname, target_ops::longname): Make const.
16899 (target_ops::async_wait_fd): New method.
16900 (decref_target): Declare.
16901 (struct target_ops_ref_policy): New.
16902 (target_ops_ref): New typedef.
16903 (get_dummy_target): Declare function.
16904 (target_is_pushed): Return bool.
16905 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16906 (all_matching_threads_iterator::all_matching_threads_iterator):
16907 Handle filter target.
16908 * thread-iter.h (struct all_matching_threads_iterator, struct
16909 all_matching_threads_range, class all_non_exited_threads_range):
16910 Filter by target too. Remove explicit.
16911 * thread.c (threads_executing): Delete.
16912 (inferior_thread): Pass down current inferior.
16913 (clear_thread_inferior_resources): Pass down thread pointer
16914 instead of ptid_t.
16915 (add_thread_silent, add_thread_with_info, add_thread): Add
16916 process_stratum_target parameter. Use it for thread and inferior
16917 searches.
16918 (is_current_thread): New.
16919 (thread_info::deletable): Use it.
16920 (find_thread_ptid, thread_count, in_thread_list)
16921 (thread_change_ptid, set_resumed, set_running): New
16922 process_stratum_target parameter. Pass it down.
16923 (set_executing): New process_stratum_target parameter. Pass it
16924 down. Adjust reference to 'threads_executing'.
16925 (threads_are_executing): New process_stratum_target parameter.
16926 Adjust reference to 'threads_executing'.
16927 (set_stop_requested, finish_thread_state): New
16928 process_stratum_target parameter. Pass it down.
16929 (switch_to_thread): Also match inferior.
16930 (switch_to_thread): New process_stratum_target parameter. Pass it
16931 down.
16932 (update_threads_executing): Reimplement.
16933 * top.c (quit_force): Pop targets from all inferior.
16934 (gdb_init): Don't call initialize_targets.
16935 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16936 Declare.
16937 (windows_add_thread, windows_delete_thread): Adjust.
16938 (get_windows_debug_event): Rename to ...
16939 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16940 * tracefile-tfile.c (tfile_target_open): Pass down target.
16941 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16942 Forward declare.
16943 (switch_to_thread): Add process_stratum_target parameter.
16944 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16945 parameter. Use it.
16946 (mi_on_resume): Pass target down.
16947 * nat/fork-inferior.c (startup_inferior): Add
16948 process_stratum_target parameter. Pass it down.
16949 * nat/fork-inferior.h (startup_inferior): Add
16950 process_stratum_target parameter.
16951 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16952
16953 2020-01-10 Pedro Alves <palves@redhat.com>
16954
16955 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16956 directly. Instead find the first thread in the thread list and
16957 use switch_to_thread.
16958
16959 2020-01-10 Pedro Alves <palves@redhat.com>
16960
16961 * remote.c (remote_target::remote_add_inferior): Don't bind a
16962 process to the current inferior if the current inferior is already
16963 bound to a process.
16964
16965 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16966 Pedro Alves <palves@redhat.com>
16967
16968 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16969 If no process is specified, return null_ptid instead of
16970 inferior_ptid.
16971 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16972 TARGET_WAITKIND_SIGNALLED with no pid.
16973
16974 2020-01-10 Pedro Alves <palves@redhat.com>
16975
16976 * remote.c (first_remote_resumed_thread): New.
16977 (remote_target::wait_as): Use it as default event_ptid instead of
16978 inferior_ptid.
16979
16980 2020-01-10 Pedro Alves <palves@redhat.com>
16981
16982 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16983
16984 2020-01-10 Pedro Alves <palves@redhat.com>
16985
16986 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16987 not -1.
16988
16989 2020-01-10 Pedro Alves <palves@redhat.com>
16990
16991 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16992 ptid to get_last_target_status.
16993 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16994 ptid to get_last_target_status.
16995 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16996 get_last_target_status.
16997 (info_program_command): Don't pass a target_waitstatus to
16998 get_last_target_status.
16999 * infrun.c (init_wait_for_inferior): Use
17000 nullify_last_target_wait_ptid.
17001 (get_last_target_status): Handle nullptr arguments.
17002 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17003 (print_stop_event): Don't pass a ptid to get_last_target_status.
17004 (normal_stop): Don't pass a ptid to get_last_target_status.
17005 * infrun.h (get_last_target_status, set_last_target_status): Move
17006 comments here and update.
17007 (nullify_last_target_wait_ptid): Declare.
17008 * linux-fork.c (fork_load_infrun_state): Remove local extern
17009 declaration of nullify_last_target_wait_ptid.
17010 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17011 to get_last_target_status.
17012
17013 2020-01-10 Pedro Alves <palves@redhat.com>
17014
17015 * gdbthread.h (scoped_restore_current_thread)
17016 <dont_restore, restore, m_dont_restore>: Declare.
17017 * thread.c (thread_alive): Add assertion. Return bool.
17018 (switch_to_thread_if_alive): New.
17019 (prune_threads): Switch inferior/thread.
17020 (print_thread_info_1): Switch thread before calling target methods.
17021 (scoped_restore_current_thread::restore): New, factored out from
17022 ...
17023 (scoped_restore_current_thread::~scoped_restore_current_thread):
17024 ... this.
17025 (scoped_restore_current_thread::scoped_restore_current_thread):
17026 Add assertion.
17027 (thread_apply_all_command, thread_select): Use
17028 switch_to_thread_if_alive.
17029 * infrun.c (proceed, restart_threads, handle_signal_stop)
17030 (switch_back_to_stepped_thread): Switch current thread before
17031 calling target methods.
17032
17033 2020-01-10 Pedro Alves <palves@redhat.com>
17034
17035 * inferior.c (switch_to_inferior_no_thread): New function,
17036 factored out from ...
17037 (inferior_command): ... here.
17038 * inferior.h (switch_to_inferior_no_thread): Declare.
17039 * mi/mi-main.c (run_one_inferior): Use
17040 switch_to_inferior_no_thread.
17041
17042 2020-01-10 Pedro Alves <palves@redhat.com>
17043
17044 * infcmd.c (kill_command): Remove dead code.
17045
17046 2020-01-10 Pedro Alves <palves@redhat.com>
17047
17048 * remote.c (remote_target::mourn_inferior): No longer check
17049 whether the target is running.
17050
17051 2020-01-10 Pedro Alves <palves@redhat.com>
17052
17053 * corelow.c (core_target::has_execution): Change parameter type to
17054 inferior pointer.
17055 * inferior.c (number_of_live_inferiors): Use
17056 inferior::has_execution instead of target_has_execution_1.
17057 * inferior.h (inferior::has_execution): New.
17058 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17059 inferior::has_execution instead of target_has_execution_1.
17060 * process-stratum-target.c
17061 (process_stratum_target::has_execution): Change parameter type to
17062 inferior pointer. Check the inferior's PID instead of
17063 inferior_ptid.
17064 * process-stratum-target.h
17065 (process_stratum_target::has_execution): Change parameter type to
17066 inferior pointer.
17067 * record-full.c (record_full_core_target::has_execution): Change
17068 parameter type to inferior pointer.
17069 * target.c (target_has_execution_1): Change parameter type to
17070 inferior pointer.
17071 (target_has_execution_current): Adjust.
17072 * target.h (target_ops::has_execution): Change parameter type to
17073 inferior pointer.
17074 (target_has_execution_1): Change parameter type to inferior
17075 pointer. Change return type to bool.
17076 * tracefile.h (tracefile_target::has_execution): Change parameter
17077 type to inferior pointer.
17078
17079 2020-01-10 Pedro Alves <palves@redhat.com>
17080
17081 * exceptions.c (print_flush): Remove current_top_target() check.
17082
17083 2020-01-10 Pedro Alves <palves@redhat.com>
17084
17085 * remote.c (show_remote_exec_file): Show the current inferior's
17086 exec-file instead of the command variable's value.
17087
17088 2020-01-10 Pedro Alves <palves@redhat.com>
17089
17090 * record-full.c (record_full_resume_ptid): New global.
17091 (record_full_target::resume): Set it.
17092 (record_full_wait_1): Use record_full_resume_ptid instead of
17093 inferior_ptid.
17094
17095 2020-01-10 Pedro Alves <palves@redhat.com>
17096
17097 * gdbthread.h (scoped_restore_current_thread)
17098 <dont_restore, restore, m_dont_restore>: Declare.
17099 * thread.c (thread_alive): Add assertion. Return bool.
17100 (switch_to_thread_if_alive): New.
17101 (prune_threads): Switch inferior/thread.
17102 (print_thread_info_1): Switch thread before calling target methods.
17103 (scoped_restore_current_thread::restore): New, factored out from
17104 ...
17105 (scoped_restore_current_thread::~scoped_restore_current_thread):
17106 ... this.
17107 (scoped_restore_current_thread::scoped_restore_current_thread):
17108 Add assertion.
17109 (thread_apply_all_command, thread_select): Use
17110 switch_to_thread_if_alive.
17111
17112 2020-01-10 George Barrett <bob@bob131.so>
17113
17114 * stap-probe.c (stap_modify_semaphore): Don't check for null
17115 semaphores.
17116 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17117 for null semaphores.
17118
17119 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17120
17121 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17122 all source windows, and maintain horizontal scroll status while
17123 doing so.
17124
17125 2020-01-09 Tom Tromey <tom@tromey.com>
17126
17127 PR tui/18932:
17128 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17129 update_source_window, not print_source_lines.
17130
17131 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17132
17133 * tui/tui.c (tui_enable): Register tui hooks after calling
17134 tui_display_main.
17135
17136 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17137
17138 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17139
17140 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17141
17142 * thread.c (print_thread_info_1): Fix indentation.
17143
17144 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17145
17146 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17147 unique_xmalloc_ptr outside the if to always free the demangled name.
17148
17149 2020-01-08 Tom Tromey <tromey@adacore.com>
17150
17151 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17152 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17153 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17154 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17155 Remove.
17156 (section_offsets): New typedef.
17157 * symtab.c (fixup_section, get_msymbol_address): Update.
17158 * symmisc.c (dump_msymbols): Update.
17159 * symfile.h (relative_addr_info_to_section_offsets)
17160 (symfile_map_offsets_to_segments): Update.
17161 * symfile.c (build_section_addr_info_from_objfile)
17162 (init_objfile_sect_indices): Update.
17163 (struct place_section_arg): Change type of "offsets".
17164 (place_section): Update.
17165 (relative_addr_info_to_section_offsets): Change type of
17166 "section_offsets". Remove "num_sections" parameter.
17167 (default_symfile_offsets, syms_from_objfile_1)
17168 (set_objfile_default_section_offset): Update.
17169 (reread_symbols): No need to preserve section offsets by hand.
17170 (symfile_map_offsets_to_segments): Change type of "offsets".
17171 * stap-probe.c (relocate_address): Update.
17172 * stabsread.h (process_one_symbol): Update.
17173 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17174 (solib_target_relocate_section_addresses): Update.
17175 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17176 Update.
17177 * solib-frv.c (frv_relocate_main_executable): Update.
17178 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17179 * solib-aix.c (solib_aix_get_section_offsets): Change return
17180 type.
17181 (solib_aix_solib_create_inferior_hook): Update.
17182 * remote.c (remote_target::get_offsets): Update.
17183 * psymtab.c (find_pc_sect_psymtab): Update.
17184 * psympriv.h (struct partial_symbol) <address, text_low,
17185 text_high>: Update.
17186 * objfiles.h (obj_section_offset): Update.
17187 (struct objfile) <section_offsets>: Change type.
17188 <num_sections>: Remove.
17189 (objfile_relocate): Update.
17190 * objfiles.c (entry_point_address_query): Update
17191 (relocate_one_symbol): Change type of "section_offsets".
17192 (objfile_relocate1, objfile_relocate1): Change type of
17193 "new_offsets".
17194 (objfile_rebase1): Update.
17195 * mipsread.c (mipscoff_symfile_read): Update.
17196 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17197 parameter.
17198 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17199 (parse_external, psymtab_to_symtab_1): Update.
17200 * machoread.c (macho_symfile_offsets): Update.
17201 * ia64-tdep.c (ia64_find_unwind_table): Update.
17202 * hppa-tdep.c (read_unwind_info): Update.
17203 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17204 * dwarf2read.c (create_addrmap_from_index)
17205 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17206 (process_psymtab_comp_unit_reader, add_partial_symbol)
17207 (add_partial_subprogram, process_full_comp_unit)
17208 (read_file_scope, read_func_scope, read_lexical_block_scope)
17209 (read_call_site_scope, dwarf2_rnglists_process)
17210 (dwarf2_ranges_process, dwarf2_ranges_read)
17211 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17212 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17213 Update.
17214 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17215 Update.
17216 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17217 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17218 (process_one_symbol): Change type of "section_offsets".
17219 * ctfread.c (get_objfile_text_range): Update.
17220 * coffread.c (coff_symtab_read, enter_linenos)
17221 (process_coff_symbol): Update.
17222 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17223 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17224
17225 2020-01-08 Tom Tromey <tromey@adacore.com>
17226
17227 * dwarf2read.c (parse_macro_definition): Use std::string.
17228 (parse_macro_definition): Likewise.
17229
17230 2020-01-08 Tom Tromey <tromey@adacore.com>
17231
17232 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17233 (ATTR_ALLOC_CHUNK): Remove.
17234
17235 2020-01-08 Tom Tromey <tromey@adacore.com>
17236
17237 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17238
17239 2020-01-08 Tom Tromey <tromey@adacore.com>
17240
17241 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17242 (dwarf2_compute_name, open_dwo_file): Likewise.
17243 (process_enumeration_scope): Use std::vector.
17244 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17245 (partial_die_info::fixup, dwarf2_start_subfile)
17246 (guess_full_die_structure_name, dwarf2_name): Likewise.
17247 (determine_prefix): Update.
17248 (guess_full_die_structure_name): Make return type const.
17249 (partial_die_full_name): Return unique_xmalloc_ptr.
17250 (DW_FIELD_ALLOC_CHUNK): Remove.
17251
17252 2020-01-07 Tom Tromey <tromey@adacore.com>
17253
17254 PR build/24937:
17255 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17256
17257 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17258
17259 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17260
17261 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17262
17263 * stack.c (print_frame_info): Move disassemble_next_line code
17264 inside source_print block.
17265
17266 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17267
17268 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17269 gdb/signals.h, as we are now using native signal symbols.
17270
17271 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17272
17273 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17274 overflow by an early check of content vs threshold.
17275 * tui/tui-source.c (tui_source_window::line_is_displayed):
17276 Likewise.
17277
17278 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17279
17280 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17281
17282 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17283
17284 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17285 export table if no section contains it's RVA.
17286
17287 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17288
17289 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17290
17291 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17292
17293 * source.c (print_source_lines_base): Set last_line_listed.
17294
17295 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17296
17297 * tui/tui-disasm.c: Remove trailing spaces.
17298
17299 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17300 Pedro Alves <palves@redhat.com>
17301
17302 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17303 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17304 (windows_gdb_signal_to_target): New function, uses the above
17305 enumeration to convert GDB internal signal codes to equivalent
17306 Windows codes.
17307 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17308 * windows-nat.c: Include "gdb_wait.h".
17309 (get_windows_debug_event): Extract the fatal exception from the
17310 exit status and convert to the equivalent Posix signal number.
17311 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17312 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17313 * gdbsupport/gdb_wait.c: New file, implements
17314 windows_status_to_termsig.
17315 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17316 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17317
17318 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17319
17320 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17321 show_layout.
17322
17323 2020-01-05 Luis Machado <luis.machado@linaro.org>
17324
17325 * aarch64-linux-nat.c
17326 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17327 and bfd_mach_aarch64.
17328
17329 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17330
17331 * ui-file.c (stdio_file::can_emit_style_escape)
17332 (tee_file::can_emit_style_escape): Ensure style is used also on
17333 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17334 to gdb_stdout.
17335 * main.c (set_gdb_data_directory): Use file style to output the
17336 warning that the given pathname is not a directory.
17337 * top.c (show_history_filename, gdb_safe_append_history)
17338 (show_gdb_datadir): Use file style.
17339
17340 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17341
17342 * solib-target.c (struct lm_info_target):
17343 Change offsets to be a unique_xmalloc_ptr.
17344 (solib_target_relocate_section_addresses): Update.
17345
17346 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17347
17348 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17349
17350 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17351
17352 * MAINTAINERS (Write After Approval): Add myself.
17353
17354 2020-01-02 Luis Machado <luis.machado@linaro.org>
17355
17356 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17357 Cell BE architecture.
17358 * target.h (struct target_ops) <thread_architecture>: Likewise.
17359
17360 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17361
17362 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17363
17364 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17365
17366 * MAINTAINERS (Write After Approval): Add myself.
17367
17368 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17369
17370 * gdbarch.sh: Update copyright year range of generated files.
17371
17372 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17373
17374 Update copyright year range in all GDB files.
17375
17376 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17377
17378 * copyright.py: Convert to Python 3.
17379
17380 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17381
17382 * copyright.py: Adapt after move of gnulib directory from gdb
17383 directory to toplevel directory.
17384
17385 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17386
17387 * copyright.py (main): Exit if run from the wrong directory.
17388
17389 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17390
17391 * top.c (print_gdb_version): Change copyright year to 2020.
17392
17393 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17394
17395 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17396
17397 For older changes see ChangeLog-2019.
17398 \f
17399 Local Variables:
17400 mode: change-log
17401 left-margin: 8
17402 fill-column: 74
17403 version-control: never
17404 coding: utf-8
17405 End:
This page took 0.356999 seconds and 5 git commands to generate.