fdda913104174033b76b925de08de7faec05f7a3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
4 DECLARE_CSR_ALIAS.
5
6 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * riscv-tdep.c (riscv_is_unknown_csr): New function,
9 implementation moved from riscv_register_reggroup_p.
10 (riscv_register_reggroup_p): Update group handling for unknown
11 CSRs.
12
13 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
14
15 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
16 (dwarf2_get_dwz_file): Convert 'filename' to a
17 std::string. Use dwz_search_other_debugdirs to search for DWZ
18 files in the debug-file-directories provided by the user as well.
19
20 2020-12-01 Tom Tromey <tom@tromey.com>
21
22 * parse.c (expr_builder::expr_builder): Initialize expout.
23 (expr_builder::release): Use expression::resize.
24 (expression::expression, expression::~expression)
25 (expression::resize): New methods.
26 (write_exp_elt): Use expression::resize.
27 (prefixify_expression): Update.
28 (increase_expout_size): Use expression::resize.
29 * expression.h (struct expression): Add constructor, destructor.
30 <resize>: New method.
31 (expression_up): Change type.
32
33 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
34 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
35 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
36 set region.
37
38 2020-11-30 Tom de Vries <tdevries@suse.de>
39
40 PR symtab/26905
41 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
42 is_reference parameter.
43 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
44
45 2020-11-30 Tom Tromey <tom@tromey.com>
46
47 * rust-lang.c (rust_op_name): Remove.
48 (exp_descriptor_rust): Update.
49 * parser-defs.h (op_name_standard): Don't declare.
50 (struct exp_descriptor) <op_name>: Remove.
51 * parse.c (exp_descriptor_standard): Update.
52 * opencl-lang.c (exp_descriptor_opencl): Update.
53 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
54 * f-lang.c (op_name_f): Remove.
55 (f_language::exp_descriptor_tab): Update.
56 * expression.h (op_name): Update.
57 * expprint.c (op_name): Rewrite.
58 (op_name_standard): Remove.
59 (dump_raw_expression, dump_subexp): Update.
60 * c-lang.c (exp_descriptor_c): Update.
61 * ax-gdb.c (gen_expr): Update.
62 * ada-lang.c (ada_op_name): Remove.
63 (ada_exp_descriptor): Update.
64
65 2020-11-30 Tom Tromey <tom@tromey.com>
66
67 * eval.c (init_array_element): Remove.
68 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
69
70 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
71
72 PR tui/26973
73 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
74 static locator win info.
75
76 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
77
78 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
79 program.
80
81 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
84 is always initialized.
85
86 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
87 * MAINTAINERS (Write After Approval): Add myself.
88
89 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
90
91 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
92 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
93
94 2020-11-25 Tom Tromey <tom@tromey.com>
95
96 * eval.c (evaluate_subexp_standard): Remove unnecessary
97 variables.
98
99 2020-11-25 Tom Tromey <tom@tromey.com>
100
101 * d-lang.c: Include parser-defs.h.
102 * rust-lang.c: Include parser-defs.h.
103 * c-lang.h: Do not include parser-defs.h.
104
105 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * regcache.h (struct cached_reg): Remove typedef.
108
109 2020-11-24 Joel Brobecker <brobecker@adacore.com>
110
111 * README: Fix the URL of the MPFR library.
112
113 2020-11-24 Joel Brobecker <brobecker@adacore.com>
114
115 * README: Document the --with-libgmp-prefix configure option.
116
117 2020-11-24 Joel Brobecker <brobecker@adacore.com>
118
119 * NEWS: Add entry documenting support for DWARF-based fixed
120 point types.
121
122 2020-11-24 Joel Brobecker <brobecker@adacore.com>
123
124 * NEWS: Document that building GDB now requires GMP.
125
126 2020-11-24 Joel Brobecker <brobecker@adacore.com>
127
128 * typeprint.c (print_type_scalar): Add handling of
129 TYPE_CODE_FIXED_POINT.
130
131 2020-11-24 Joel Brobecker <brobecker@adacore.com>
132
133 * valarith.c (fixed_point_binop): Replace the
134 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
135 users accordingly.
136
137 2020-11-24 Joel Brobecker <brobecker@adacore.com>
138
139 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
140 replacing fixed_point_scaling_factor. All callers updated
141 throughout this project.
142 (fixed_point_scaling_factor): Delete declaration.
143 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
144 fixed_point_scaling_factor. Adjust implementation accordingly.
145
146 2020-11-24 Joel Brobecker <brobecker@adacore.com>
147
148 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
149 replacing the fixed_point_type_base_type function. All callers
150 updated throughout this project.
151 (fixed_point_type_base_type): Remove declaration.
152 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
153 fixed_point_type_base_type. Adjust implementation accordingly.
154
155 2020-11-24 Joel Brobecker <brobecker@adacore.com>
156
157 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
158 New methods.
159 (INIT_FIXED_POINT_SPECIFIC): Adjust.
160 (TYPE_FIXED_POINT_INFO): Delete macro.
161 (allocate_fixed_point_type_info): Change return type to void.
162 * gdbtypes.c (copy_type_recursive): Replace the use of
163 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
164 (fixed_point_scaling_factor): Likewise.
165 (allocate_fixed_point_type_info): Change return type to void.
166 Adjust implementation accordingly.
167 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
168 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
169
170 2020-11-24 Joel Brobecker <brobecker@adacore.com>
171
172 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
173 into one single gdb::array_view parameter.
174 (gdb_mpz::write): Likewise.
175 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
176 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
177 into one single gdb::array_view parameter.
178 Adjust implementation accordingly.
179 (gdb_mpz::write): Likewise.
180 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
181 * unittests/gmp-utils-selftests.c: Adapt following changes above.
182 * valarith.c, valops.c, valprint.c, value.c: Likewise.
183
184 2020-11-24 Joel Brobecker <brobecker@adacore.com>
185
186 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
187 Change return type to std::string. Update all callers.
188 * gmp-utils.c (gmp_string_printf): Likewise.
189
190 2020-11-24 Joel Brobecker <brobecker@adacore.com>
191
192 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
193 instead of mpq_set_ui to initialize our GMP rational.
194
195 2020-11-23 Tom de Vries <tdevries@suse.de>
196
197 * debuginfod-support.c (debuginfod_source_query)
198 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
199
200 2020-11-21 Tom Tromey <tom@tromey.com>
201
202 * breakpoint.c (watchpoint_exp_is_const): Return bool.
203
204 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
207 Pass 2.0 to pow.
208 (gdb_mpz_write_all_from_small): Likewise.
209
210 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
213 of abs.
214
215 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
216
217 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
218 ctf_arc_open_by_name.
219
220 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
221
222 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
223 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
224
225 2020-11-20 Pedro Alves <pedro@palves.net>
226
227 * language.c (language_arch_info::lookup_primitive_type): Use
228 gdb::function_view instead of gdb::function.
229 (template language_lookup_primitive_type): Rename to ...
230 (language_lookup_primitive_type_1): ... this, and make static.
231 (language_lookup_primitive_type(const struct language_defn *,
232 struct gdbarch *, const char *): Make non-template.
233 (language_lookup_primitive_type(const struct language_defn *,
234 struct gdbarch *, std::function<bool (struct type *)>): Make
235 non-template and use gdb::function_view.
236 * language.h (language_arch_info::lookup_primitive_type): Use
237 gdb::function_view instead of std::function.
238 (language_lookup_primitive_type): No longer template.
239 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
240 lambda instead of a std::function.
241
242 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
243
244 PR tdep/26916
245 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
246 and STOCFH.
247
248 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
251
252 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
255 in `loop_cb` parameter.
256 * gdbarch.c: Re-generate.
257 * gdbarch.h: Re-generate.
258 * arch-utils.c (default_read_core_file_mappings): Remove `other`
259 parameter.
260 * arch-utils.h (default_read_core_file_mappings): Likewise.
261 * corelow.c (core_target::build_file_mappings): Likewise.
262 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
263 (linux_core_info_proc_mappings): Likewise.
264
265 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
268 * NEWS: Mention new options.
269 * f-array-walker.h: New file.
270 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
271 (repack_array_slices): New static global.
272 (show_repack_array_slices): New function.
273 (fortran_array_slicing_debug): New static global.
274 (show_fortran_array_slicing_debug): New function.
275 (value_f90_subarray): Delete.
276 (skip_undetermined_arglist): Delete.
277 (class fortran_array_repacker_base_impl): New class.
278 (class fortran_lazy_array_repacker_impl): New class.
279 (class fortran_array_repacker_impl): New class.
280 (fortran_value_subarray): Complete rewrite.
281 (set_fortran_list): New static global.
282 (show_fortran_list): Likewise.
283 (_initialize_f_language): Register new commands.
284 (fortran_adjust_dynamic_array_base_address_hack): New function.
285 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
286 Declare.
287 * f-valprint.c: Include 'f-array-walker.h'.
288 (class fortran_array_printer_impl): New class.
289 (f77_print_array_1): Delete.
290 (f77_print_array): Delete.
291 (fortran_print_array): New.
292 (f_value_print_inner): Update to call fortran_print_array.
293 * gdbtypes.c: Include 'f-lang.h'.
294 (resolve_dynamic_type_internal): Call
295 fortran_adjust_dynamic_array_base_address_hack.
296
297 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * breakpoint.c (struct watch_options): New struct.
300 (watch_option_defs): New static global.
301 (make_watch_options_def_group): New function.
302 (watch_maybe_just_location): Convert option parsing.
303 (watch_command_completer): New function.
304 (_initialize_breakpoint): Build help text using options mechanism.
305
306 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
307
308 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
309 (watch_command_1): Update parameter types. Convert locals to
310 bool.
311 (watch_command_wrapper): Change parameter type.
312 (watch_maybe_just_location): Change locals to bool.
313 (rwatch_command_wrapper): Update parameter type.
314 (awatch_command_wrapper): Update parameter type.
315 * breakpoint.h (watch_command_wrapper): Change parameter type.
316 (rwatch_command_wrapper): Update parameter type.
317 (awatch_command_wrapper): Update parameter type.
318 * eval.c (fetch_subexp_value): Change parameter type.
319 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
320 'false' not '0'.
321 * value.h (fetch_subexp_value): Change parameter type in
322 declaration.
323
324 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
327 skip_spaces.
328
329 2020-11-18 Keith Seitz <keiths@redhat.com>
330
331 * linux-tdep.c (dump_note_entry_p): Return true instead of
332 checking `filename'.
333
334 2020-11-18 Tom de Vries <tdevries@suse.de>
335
336 * debuginfod-support.c (debuginfod_source_query)
337 (debuginfod_debuginfo_query): Also do early exit if
338 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
339
340 2020-11-18 Tom de Vries <tdevries@suse.de>
341
342 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
343 warning.
344
345 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * gdbtypes.h (get_array_bounds): Return bool, adjust some
348 callers. Move doc here.
349 * gdbtypes.c (get_array_bounds): Return bool
350
351 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
354 assert.
355 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
356 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
357 case to the default.
358
359 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * printcmd.c: Include 'safe-ctype.c'.
362 (skip_over_slash_fmt): New function.
363 (print_command_completer): Call skip_over_slash_fmt.
364 (display_and_x_command_completer): New function.
365 (_initialize_printcmd): Add command completion for 'x' and
366 'display'.
367
368 2020-11-16 Pedro Alves <pedro@palves.net>
369
370 * frame.c (get_prev_frame): Move get_frame_id call from here ...
371 (get_prev_frame_always_1): ... to here.
372 * inline-frame.c (inline_frame_this_id): Mention
373 get_prev_frame_always_1 in comment.
374
375 2020-11-15 Joel Brobecker <brobecker@adacore.com>
376
377 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
378 handling.
379 (value_less): Add fixed-point handling.
380
381 2020-11-15 Joel Brobecker <brobecker@adacore.com>
382
383 * eval.c (binop_promote): Add fixed-point type handling.
384 * valarith.c (fixed_point_binop): New function.
385 (scalar_binop): Add fixed-point type handling.
386 (value_neg): Add fixed-point type handling.
387 * valops.c (value_cast_to_fixed_point): New function.
388 (value_cast): Add fixed-point type handling.
389
390 2020-11-15 Joel Brobecker <brobecker@adacore.com>
391
392 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
393 range types.
394 * c-typeprint.c (c_type_print_varspec_prefix)
395 (c_type_print_varspec_suffix, c_type_print_base_1): Add
396 TYPE_CODE_FIXED_POINT handling.
397 * p-typeprint.c (pascal_type_print_varspec_prefix)
398 (pascal_type_print_varspec_suffix): Likewise.
399 * typeprint.c (print_type_fixed_point): New function.
400 * typeprint.h (print_type_fixed_point): Add declaration.
401
402 2020-11-15 Joel Brobecker <brobecker@adacore.com>
403
404 * printcmd.c (print_scalar_formatted): Add fixed-point type
405 handling when options->format is set.
406
407 2020-11-15 Joel Brobecker <brobecker@adacore.com>
408
409 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
410 * dwarf2/read.c (get_dwarf2_rational_constant)
411 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
412 (has_zero_over_zero_small_attribute): New functions.
413 read_base_type, set_die_type): Add fixed-point type handling.
414 * gdb-gdb.py.in: Add fixed-point type handling.
415 * gdbtypes.c: #include "gmp-utils.h".
416 (create_range_type, set_type_code): Add fixed-point type handling.
417 (init_fixed_point_type): New function.
418 (is_integral_type, is_scalar_type): Add fixed-point type handling.
419 (print_fixed_point_type_info): New function.
420 (recursive_dump_type, copy_type_recursive): Add fixed-point type
421 handling.
422 (fixed_point_type_storage): New typedef.
423 (fixed_point_objfile_key): New static global.
424 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
425 (fixed_point_type_base_type, fixed_point_scaling_factor): New
426 functions.
427 * gdbtypes.h: #include "gmp-utils.h".
428 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
429 (union type_specific) <fixed_point_info>: New field.
430 (struct fixed_point_type_info): New struct.
431 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
432 (init_fixed_point_type, is_fixed_point_type)
433 (fixed_point_type_base_type, fixed_point_scaling_factor)
434 (allocate_fixed_point_type_info): Add declarations.
435 * valprint.c (generic_val_print_fixed_point): New function.
436 (generic_value_print): Add fixed-point type handling.
437 * value.c (value_as_address, unpack_long): Add fixed-point type
438 handling.
439
440 2020-11-15 Joel Brobecker <brobecker@adacore.com>
441
442 * utils.h (uinteger_pow): Add declaration.
443 * utils.c (uinteger_pow): Moved here (without changes)...
444 * valarith.c (uinteger_pow): ... from here.
445
446 2020-11-15 Joel Brobecker <brobecker@adacore.com>
447
448 * gmp-utils.h, gmp-utils.c: New file.
449 * unittests/gmp-utils-selftests.c: New file.
450 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
451 unittests/gmp-utils-selftests.c.
452 (COMMON_SFILES) Add gmp-utils.c.
453 (HFILES_NO_SRCDIR): Add gmp-utils.h.
454
455 2020-11-15 Joel Brobecker <brobecker@adacore.com>
456
457 * configure.ac: Generate an error if a usable GMP library
458 could not be found.
459 * configure: Regenerate.
460
461 2020-11-15 Joel Brobecker <brobecker@adacore.com>
462
463 * configure.ac: Add support for --with-libgmp-prefix.
464 * Makefile.in (LIBGMP): New variable.
465 (CLIBS): Include $(LIBGMP).
466 * configure, config.in: Regenerate
467
468 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
469
470 PR cli/26879
471 * f-exp.y (COMPLETE): New token.
472 (exp): Two new rules for tab-completion.
473 (saw_name_at_eof): New static global.
474 (last_was_structop): Likewise.
475 (yylex): Set new variables, and return COMPLETE token at the end
476 of the input stream in some cases.
477
478 2020-11-14 Tom Tromey <tom@tromey.com>
479
480 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
481
482 2020-11-14 Tom Tromey <tom@tromey.com>
483
484 * opencl-lang.c (opencl_component_ref): Make "comps" const.
485
486 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
487
488 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
489
490 2020-11-13 Tom Tromey <tom@tromey.com>
491
492 * c-lang.c (convert_ucn, convert_octal, convert_hex)
493 (convert_escape, parse_one_string): Constify.
494
495 2020-11-13 Keith Seitz <keiths@redhat.com>
496
497 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
498 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
499 outside of ELF segments" warning for debugin
500
501 2020-11-13 Keith Seitz <keiths@redhat.com>
502
503 PR gdb/23034
504 * elfread.c (elf_symfile_segments): Output a BFD file name
505 for the "Loadable section ... outside of ELF segments" warning.
506
507 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
508
509 PR gdb/26835
510 * arm-tdep.c (class arm_instruction_reader): New.
511 (target_arm_instruction_reader): New.
512 (arm_analyze_prologue): Add instruction reader parameter and use
513 it. Use arm_expand_immediate.
514 (class target_arm_instruction_reader): Adjust.
515 (arm_skip_prologue): Adjust.
516 (arm_expand_immediate): New.
517 (arm_scan_prologue): Adjust.
518 (arm_analyze_prologue_test): New.
519 (class test_arm_instruction_reader): New.
520
521 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * f-lang.c (fortran_argument_convert): Add declaration. Add
524 header comment, taken from f-lang.h. Make static.
525 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
526 (fortran_argument_convert): Delete declaration.
527
528 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * ada-exp.y (find_primitive_type): Make parameter const.
531 * ada-lang.c (enum ada_primitive_types): Delete.
532 (ada_language::language_arch_info): Update.
533 * c-lang.c (enum c_primitive_types): Delete.
534 (c_language_arch_info): Update.
535 (enum cplus_primitive_types): Delete.
536 (cplus_language::language_arch_info): Update.
537 * d-lang.c (enum d_primitive_types): Delete.
538 (d_language::language_arch_info): Update.
539 * f-lang.c (enum f_primitive_types): Delete.
540 (f_language::language_arch_info): Update.
541 * go-lang.c (enum go_primitive_types): Delete.
542 (go_language::language_arch_info): Update.
543 * language.c (auto_or_unknown_language::language_arch_info):
544 Update.
545 (language_gdbarch_post_init): Use obstack_new, use array indexing.
546 (language_string_char_type): Add header comment, call function in
547 language_arch_info.
548 (language_bool_type): Likewise
549 (language_arch_info::bool_type): Define.
550 (language_lookup_primitive_type_1): Delete.
551 (language_lookup_primitive_type): Rewrite as a templated function
552 to call function in language_arch_info, then instantiate twice.
553 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
554 (language_arch_info::lookup_primitive_type_and_symbol): Define.
555 (language_arch_info::lookup_primitive_type): Define twice with
556 different signatures.
557 (language_arch_info::lookup_primitive_type_as_symbol): Define.
558 (language_lookup_primitive_type_as_symbol): Rewrite to call a
559 member function in language_arch_info.
560 * language.h (language_arch_info): Complete rewrite.
561 (language_lookup_primitive_type): Make templated.
562 * m2-lang.c (enum m2_primitive_types): Delete.
563 (m2_language::language_arch_info): Update.
564 * opencl-lang.c (OCL_P_TYPE): Delete.
565 (enum opencl_primitive_types): Delete.
566 (opencl_type_data): Delete.
567 (builtin_opencl_type): Delete.
568 (lookup_opencl_vector_type): Update.
569 (opencl_language::language_arch_info): Update, lots of content
570 moved from...
571 (build_opencl_types): ...here. This function is now deleted.
572 (_initialize_opencl_language): Delete.
573 * p-lang.c (enum pascal_primitive_types): Delete.
574 (pascal_language::language_arch_info): Update.
575 * rust-lang.c (enum rust_primitive_types): Delete.
576 (rust_language::language_arch_info): Update.
577
578 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
581 dwarf2_queue_guard.
582
583 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
584
585 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
586 comment.
587
588 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * dwarf2/read.c (dwarf_read_debug_printf,
591 dwarf_read_debug_printf_v): New macros, use throughout the file.
592
593 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
594
595 * arc-linux-tdep.c (collect_register): Populate "eret" by
596 "pc" value from the regcache when asked for "pc" value.
597
598 2020-11-12 Tom Tromey <tom@tromey.com>
599
600 PR rust/26799:
601 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
602 exist.
603
604 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * features/Makefile (XMLTOC): Add rx.xml.
607 (FEATURE_XMLFILES): Remove rx.xml.
608 (FEATURE_CFILES rule): Pass '-single-feature' flag.
609 * features/rx.c: Regenerate.
610 * features/rx.xml: Wrap in `target` tags, and reindent.
611 * target-descriptions.c (struct maint_print_c_tdesc_options): New
612 structure.
613 (maint_print_c_tdesc_opt_def): New typedef.
614 (maint_print_c_tdesc_opt_defs): New static global.
615 (make_maint_print_c_tdesc_options_def_group): New function.
616 (maint_print_c_tdesc_cmd): Make use of command line flags, only
617 print single feature C file for target descriptions containing a
618 single feature.
619 (maint_print_c_tdesc_cmd_completer): New function.
620 (_initialize_target_descriptions): Update call to register command
621 completer, and include command line flag in help text.
622
623 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
626 numbers.
627 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
628 enum values.
629
630 2020-11-10 Tom Tromey <tom@tromey.com>
631
632 * value.h (internalvar_name): Update.
633 * value.c (internalvar_name): Make return type const.
634
635 2020-11-10 Tom Tromey <tom@tromey.com>
636
637 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
638 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
639 const.
640
641 2020-11-10 Tom Tromey <tom@tromey.com>
642
643 * objc-lang.h (value_nsstring): Update.
644 * objc-lang.c (value_nsstring): Make "ptr" const.
645
646 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * expprint.c (print_subexp_funcall): Increment expression position
649 after reading argument count.
650 * f-lang.c (print_subexp_f): Skip over opcode before calling
651 common function.
652 (dump_subexp_body_f): Likewise.
653
654 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
655
656 PR python/26832
657 * configure: Regenerate.
658 * configure.ac: Check for python modules ctypes instead of
659 itertools.
660
661 2020-11-06 Pedro Alves <pedro@palves.net>
662
663 * macroexp.c (struct macro_buffer): Split in two classes. Add
664 uses adjusted.
665 (struct shared_macro_buffer): New, factored out from struct
666 macro_buffer.
667 (struct growable_macro_buffer): New, factored out from struct
668 macro_buffer.
669 (set_token, get_comment, get_identifier, get_pp_number)
670 (get_character_constant, get_string_literal, get_punctuator)
671 (get_next_token_for_substitution): Constify parameters.
672 (substitute_args): Constify locals.
673
674 2020-11-05 Tom Tromey <tom@tromey.com>
675
676 * dwarf2/read.c (read_cutu_die_from_dwo)
677 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
678 (build_type_psymtabs_1): Update.
679 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
680 parameter.
681 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
682 Don't read section. Add assert.
683
684 2020-11-04 Tom Tromey <tromey@adacore.com>
685
686 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
687
688 2020-11-04 Tom Tromey <tromey@adacore.com>
689
690 * ada-typeprint.c (ada_print_type): Handle __T types.
691
692 2020-11-04 Tom Tromey <tromey@adacore.com>
693
694 * dwarf2/read.c (add_partial_symbol, process_die):
695 Handle DW_TAG_array_type.
696 (is_type_tag_for_partial): Add "lang" parameter.
697 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
698
699 2020-11-04 Tom Tromey <tromey@adacore.com>
700
701 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
702
703 2020-11-04 Tom Tromey <tromey@adacore.com>
704
705 * dwarf2/read.c (read_array_type): Only apply stride to innermost
706 array.
707
708 2020-11-04 Tom Tromey <tromey@adacore.com>
709
710 * gdbtypes.c (update_static_array_size): Handle bit stride.
711
712 2020-11-04 Tom Tromey <tromey@adacore.com>
713
714 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
715
716 2020-11-04 Tom Tromey <tromey@adacore.com>
717
718 * ada-lang.c (ada_is_any_packed_array_type): New function.
719 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
720
721 2020-11-04 Tom Tromey <tromey@adacore.com>
722
723 * dwarf2/read.c (recognize_bound_expression)
724 (quirk_ada_thick_pointer): New functions.
725 (read_array_type): Call quirk_ada_thick_pointer.
726 (set_die_type): Add "skip_data_location" parameter.
727 (quirk_ada_thick_pointer): New function.
728 (process_structure_scope): Call quirk_ada_thick_pointer.
729 * ada-lang.c (ada_is_unconstrained_packed_array_type)
730 (decode_packed_array_bitsize): Handle thick pointers without
731 parallel types.
732 (ada_is_gnat_encoded_packed_array_type): Rename from
733 ada_is_packed_array_type.
734 (ada_is_constrained_packed_array_type): Update.
735 * ada-valprint.c (ada_val_print_gnat_array): Remove.
736 (ada_value_print_1): Use ada_get_decoded_value.
737
738 2020-11-04 Tom Tromey <tromey@adacore.com>
739
740 * ada-lang.c (recursively_update_array_bitsize): New function.
741 (decode_constrained_packed_array_type): Call it.
742
743 2020-11-04 Tom Tromey <tromey@adacore.com>
744
745 * ada-lang.c (to_fixed_array_type): Error if
746 decode_constrained_packed_array_type returns NULL.
747
748 2020-11-04 Tom Tromey <tromey@adacore.com>
749
750 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
751
752 2020-11-02 Tom Tromey <tromey@adacore.com>
753
754 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
755 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
756 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
757 * amd64-ravenscar-thread.c: New file.
758 * amd64-ravenscar-thread.h: New file.
759 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
760 * configure.tgt (amd64_tobjs): Add ravenscar objects.
761
762 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * main.c (execute_cmdargs): New function.
765 (captured_main_1): Make use of execute_cmdargs.
766
767 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * NEWS: Mention changes to config file search path.
770 * main.c
771
772 2020-11-02 Tom Tromey <tromey@adacore.com>
773
774 * python/python.c: Consolidate two HAVE_PYTHON blocks.
775 (python_GdbModuleDef): Move earlier. Now static.
776 (do_start_initialization): Consolidate some IS_PY3K blocks.
777
778 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
779
780 * aarch64-linux-tdep.c: Fix indentation.
781 * aarch64-ravenscar-thread.c: Fix indentation.
782 * aarch64-tdep.c: Fix indentation.
783 * aarch64-tdep.h: Fix indentation.
784 * ada-lang.c: Fix indentation.
785 * ada-lang.h: Fix indentation.
786 * ada-tasks.c: Fix indentation.
787 * ada-typeprint.c: Fix indentation.
788 * ada-valprint.c: Fix indentation.
789 * ada-varobj.c: Fix indentation.
790 * addrmap.c: Fix indentation.
791 * addrmap.h: Fix indentation.
792 * agent.c: Fix indentation.
793 * aix-thread.c: Fix indentation.
794 * alpha-bsd-nat.c: Fix indentation.
795 * alpha-linux-tdep.c: Fix indentation.
796 * alpha-mdebug-tdep.c: Fix indentation.
797 * alpha-nbsd-tdep.c: Fix indentation.
798 * alpha-obsd-tdep.c: Fix indentation.
799 * alpha-tdep.c: Fix indentation.
800 * amd64-bsd-nat.c: Fix indentation.
801 * amd64-darwin-tdep.c: Fix indentation.
802 * amd64-linux-nat.c: Fix indentation.
803 * amd64-linux-tdep.c: Fix indentation.
804 * amd64-nat.c: Fix indentation.
805 * amd64-obsd-tdep.c: Fix indentation.
806 * amd64-tdep.c: Fix indentation.
807 * amd64-windows-tdep.c: Fix indentation.
808 * annotate.c: Fix indentation.
809 * arc-tdep.c: Fix indentation.
810 * arch-utils.c: Fix indentation.
811 * arch/arm-get-next-pcs.c: Fix indentation.
812 * arch/arm.c: Fix indentation.
813 * arm-linux-nat.c: Fix indentation.
814 * arm-linux-tdep.c: Fix indentation.
815 * arm-nbsd-tdep.c: Fix indentation.
816 * arm-pikeos-tdep.c: Fix indentation.
817 * arm-tdep.c: Fix indentation.
818 * arm-tdep.h: Fix indentation.
819 * arm-wince-tdep.c: Fix indentation.
820 * auto-load.c: Fix indentation.
821 * auxv.c: Fix indentation.
822 * avr-tdep.c: Fix indentation.
823 * ax-gdb.c: Fix indentation.
824 * ax-general.c: Fix indentation.
825 * bfin-linux-tdep.c: Fix indentation.
826 * block.c: Fix indentation.
827 * block.h: Fix indentation.
828 * blockframe.c: Fix indentation.
829 * bpf-tdep.c: Fix indentation.
830 * break-catch-sig.c: Fix indentation.
831 * break-catch-syscall.c: Fix indentation.
832 * break-catch-throw.c: Fix indentation.
833 * breakpoint.c: Fix indentation.
834 * breakpoint.h: Fix indentation.
835 * bsd-uthread.c: Fix indentation.
836 * btrace.c: Fix indentation.
837 * build-id.c: Fix indentation.
838 * buildsym-legacy.h: Fix indentation.
839 * buildsym.c: Fix indentation.
840 * c-typeprint.c: Fix indentation.
841 * c-valprint.c: Fix indentation.
842 * c-varobj.c: Fix indentation.
843 * charset.c: Fix indentation.
844 * cli/cli-cmds.c: Fix indentation.
845 * cli/cli-decode.c: Fix indentation.
846 * cli/cli-decode.h: Fix indentation.
847 * cli/cli-script.c: Fix indentation.
848 * cli/cli-setshow.c: Fix indentation.
849 * coff-pe-read.c: Fix indentation.
850 * coffread.c: Fix indentation.
851 * compile/compile-cplus-types.c: Fix indentation.
852 * compile/compile-object-load.c: Fix indentation.
853 * compile/compile-object-run.c: Fix indentation.
854 * completer.c: Fix indentation.
855 * corefile.c: Fix indentation.
856 * corelow.c: Fix indentation.
857 * cp-abi.h: Fix indentation.
858 * cp-namespace.c: Fix indentation.
859 * cp-support.c: Fix indentation.
860 * cp-valprint.c: Fix indentation.
861 * cris-linux-tdep.c: Fix indentation.
862 * cris-tdep.c: Fix indentation.
863 * darwin-nat-info.c: Fix indentation.
864 * darwin-nat.c: Fix indentation.
865 * darwin-nat.h: Fix indentation.
866 * dbxread.c: Fix indentation.
867 * dcache.c: Fix indentation.
868 * disasm.c: Fix indentation.
869 * dtrace-probe.c: Fix indentation.
870 * dwarf2/abbrev.c: Fix indentation.
871 * dwarf2/attribute.c: Fix indentation.
872 * dwarf2/expr.c: Fix indentation.
873 * dwarf2/frame.c: Fix indentation.
874 * dwarf2/index-cache.c: Fix indentation.
875 * dwarf2/index-write.c: Fix indentation.
876 * dwarf2/line-header.c: Fix indentation.
877 * dwarf2/loc.c: Fix indentation.
878 * dwarf2/macro.c: Fix indentation.
879 * dwarf2/read.c: Fix indentation.
880 * dwarf2/read.h: Fix indentation.
881 * elfread.c: Fix indentation.
882 * eval.c: Fix indentation.
883 * event-top.c: Fix indentation.
884 * exec.c: Fix indentation.
885 * exec.h: Fix indentation.
886 * expprint.c: Fix indentation.
887 * f-lang.c: Fix indentation.
888 * f-typeprint.c: Fix indentation.
889 * f-valprint.c: Fix indentation.
890 * fbsd-nat.c: Fix indentation.
891 * fbsd-tdep.c: Fix indentation.
892 * findvar.c: Fix indentation.
893 * fork-child.c: Fix indentation.
894 * frame-unwind.c: Fix indentation.
895 * frame-unwind.h: Fix indentation.
896 * frame.c: Fix indentation.
897 * frv-linux-tdep.c: Fix indentation.
898 * frv-tdep.c: Fix indentation.
899 * frv-tdep.h: Fix indentation.
900 * ft32-tdep.c: Fix indentation.
901 * gcore.c: Fix indentation.
902 * gdb_bfd.c: Fix indentation.
903 * gdbarch.sh: Fix indentation.
904 * gdbarch.c: Re-generate
905 * gdbarch.h: Re-generate.
906 * gdbcore.h: Fix indentation.
907 * gdbthread.h: Fix indentation.
908 * gdbtypes.c: Fix indentation.
909 * gdbtypes.h: Fix indentation.
910 * glibc-tdep.c: Fix indentation.
911 * gnu-nat.c: Fix indentation.
912 * gnu-nat.h: Fix indentation.
913 * gnu-v2-abi.c: Fix indentation.
914 * gnu-v3-abi.c: Fix indentation.
915 * go32-nat.c: Fix indentation.
916 * guile/guile-internal.h: Fix indentation.
917 * guile/scm-cmd.c: Fix indentation.
918 * guile/scm-frame.c: Fix indentation.
919 * guile/scm-iterator.c: Fix indentation.
920 * guile/scm-math.c: Fix indentation.
921 * guile/scm-ports.c: Fix indentation.
922 * guile/scm-pretty-print.c: Fix indentation.
923 * guile/scm-value.c: Fix indentation.
924 * h8300-tdep.c: Fix indentation.
925 * hppa-linux-nat.c: Fix indentation.
926 * hppa-linux-tdep.c: Fix indentation.
927 * hppa-nbsd-nat.c: Fix indentation.
928 * hppa-nbsd-tdep.c: Fix indentation.
929 * hppa-obsd-nat.c: Fix indentation.
930 * hppa-tdep.c: Fix indentation.
931 * hppa-tdep.h: Fix indentation.
932 * i386-bsd-nat.c: Fix indentation.
933 * i386-darwin-nat.c: Fix indentation.
934 * i386-darwin-tdep.c: Fix indentation.
935 * i386-dicos-tdep.c: Fix indentation.
936 * i386-gnu-nat.c: Fix indentation.
937 * i386-linux-nat.c: Fix indentation.
938 * i386-linux-tdep.c: Fix indentation.
939 * i386-nto-tdep.c: Fix indentation.
940 * i386-obsd-tdep.c: Fix indentation.
941 * i386-sol2-nat.c: Fix indentation.
942 * i386-tdep.c: Fix indentation.
943 * i386-tdep.h: Fix indentation.
944 * i386-windows-tdep.c: Fix indentation.
945 * i387-tdep.c: Fix indentation.
946 * i387-tdep.h: Fix indentation.
947 * ia64-libunwind-tdep.c: Fix indentation.
948 * ia64-libunwind-tdep.h: Fix indentation.
949 * ia64-linux-nat.c: Fix indentation.
950 * ia64-linux-tdep.c: Fix indentation.
951 * ia64-tdep.c: Fix indentation.
952 * ia64-tdep.h: Fix indentation.
953 * ia64-vms-tdep.c: Fix indentation.
954 * infcall.c: Fix indentation.
955 * infcmd.c: Fix indentation.
956 * inferior.c: Fix indentation.
957 * infrun.c: Fix indentation.
958 * iq2000-tdep.c: Fix indentation.
959 * language.c: Fix indentation.
960 * linespec.c: Fix indentation.
961 * linux-fork.c: Fix indentation.
962 * linux-nat.c: Fix indentation.
963 * linux-tdep.c: Fix indentation.
964 * linux-thread-db.c: Fix indentation.
965 * lm32-tdep.c: Fix indentation.
966 * m2-lang.c: Fix indentation.
967 * m2-typeprint.c: Fix indentation.
968 * m2-valprint.c: Fix indentation.
969 * m32c-tdep.c: Fix indentation.
970 * m32r-linux-tdep.c: Fix indentation.
971 * m32r-tdep.c: Fix indentation.
972 * m68hc11-tdep.c: Fix indentation.
973 * m68k-bsd-nat.c: Fix indentation.
974 * m68k-linux-nat.c: Fix indentation.
975 * m68k-linux-tdep.c: Fix indentation.
976 * m68k-tdep.c: Fix indentation.
977 * machoread.c: Fix indentation.
978 * macrocmd.c: Fix indentation.
979 * macroexp.c: Fix indentation.
980 * macroscope.c: Fix indentation.
981 * macrotab.c: Fix indentation.
982 * macrotab.h: Fix indentation.
983 * main.c: Fix indentation.
984 * mdebugread.c: Fix indentation.
985 * mep-tdep.c: Fix indentation.
986 * mi/mi-cmd-catch.c: Fix indentation.
987 * mi/mi-cmd-disas.c: Fix indentation.
988 * mi/mi-cmd-env.c: Fix indentation.
989 * mi/mi-cmd-stack.c: Fix indentation.
990 * mi/mi-cmd-var.c: Fix indentation.
991 * mi/mi-cmds.c: Fix indentation.
992 * mi/mi-main.c: Fix indentation.
993 * mi/mi-parse.c: Fix indentation.
994 * microblaze-tdep.c: Fix indentation.
995 * minidebug.c: Fix indentation.
996 * minsyms.c: Fix indentation.
997 * mips-linux-nat.c: Fix indentation.
998 * mips-linux-tdep.c: Fix indentation.
999 * mips-nbsd-tdep.c: Fix indentation.
1000 * mips-tdep.c: Fix indentation.
1001 * mn10300-linux-tdep.c: Fix indentation.
1002 * mn10300-tdep.c: Fix indentation.
1003 * moxie-tdep.c: Fix indentation.
1004 * msp430-tdep.c: Fix indentation.
1005 * namespace.h: Fix indentation.
1006 * nat/fork-inferior.c: Fix indentation.
1007 * nat/gdb_ptrace.h: Fix indentation.
1008 * nat/linux-namespaces.c: Fix indentation.
1009 * nat/linux-osdata.c: Fix indentation.
1010 * nat/netbsd-nat.c: Fix indentation.
1011 * nat/x86-dregs.c: Fix indentation.
1012 * nbsd-nat.c: Fix indentation.
1013 * nbsd-tdep.c: Fix indentation.
1014 * nios2-linux-tdep.c: Fix indentation.
1015 * nios2-tdep.c: Fix indentation.
1016 * nto-procfs.c: Fix indentation.
1017 * nto-tdep.c: Fix indentation.
1018 * objfiles.c: Fix indentation.
1019 * objfiles.h: Fix indentation.
1020 * opencl-lang.c: Fix indentation.
1021 * or1k-tdep.c: Fix indentation.
1022 * osabi.c: Fix indentation.
1023 * osabi.h: Fix indentation.
1024 * osdata.c: Fix indentation.
1025 * p-lang.c: Fix indentation.
1026 * p-typeprint.c: Fix indentation.
1027 * p-valprint.c: Fix indentation.
1028 * parse.c: Fix indentation.
1029 * ppc-linux-nat.c: Fix indentation.
1030 * ppc-linux-tdep.c: Fix indentation.
1031 * ppc-nbsd-nat.c: Fix indentation.
1032 * ppc-nbsd-tdep.c: Fix indentation.
1033 * ppc-obsd-nat.c: Fix indentation.
1034 * ppc-ravenscar-thread.c: Fix indentation.
1035 * ppc-sysv-tdep.c: Fix indentation.
1036 * ppc64-tdep.c: Fix indentation.
1037 * printcmd.c: Fix indentation.
1038 * proc-api.c: Fix indentation.
1039 * producer.c: Fix indentation.
1040 * producer.h: Fix indentation.
1041 * prologue-value.c: Fix indentation.
1042 * prologue-value.h: Fix indentation.
1043 * psymtab.c: Fix indentation.
1044 * python/py-arch.c: Fix indentation.
1045 * python/py-bpevent.c: Fix indentation.
1046 * python/py-event.c: Fix indentation.
1047 * python/py-event.h: Fix indentation.
1048 * python/py-finishbreakpoint.c: Fix indentation.
1049 * python/py-frame.c: Fix indentation.
1050 * python/py-framefilter.c: Fix indentation.
1051 * python/py-inferior.c: Fix indentation.
1052 * python/py-infthread.c: Fix indentation.
1053 * python/py-objfile.c: Fix indentation.
1054 * python/py-prettyprint.c: Fix indentation.
1055 * python/py-registers.c: Fix indentation.
1056 * python/py-signalevent.c: Fix indentation.
1057 * python/py-stopevent.c: Fix indentation.
1058 * python/py-stopevent.h: Fix indentation.
1059 * python/py-threadevent.c: Fix indentation.
1060 * python/py-tui.c: Fix indentation.
1061 * python/py-unwind.c: Fix indentation.
1062 * python/py-value.c: Fix indentation.
1063 * python/py-xmethods.c: Fix indentation.
1064 * python/python-internal.h: Fix indentation.
1065 * python/python.c: Fix indentation.
1066 * ravenscar-thread.c: Fix indentation.
1067 * record-btrace.c: Fix indentation.
1068 * record-full.c: Fix indentation.
1069 * record.c: Fix indentation.
1070 * reggroups.c: Fix indentation.
1071 * regset.h: Fix indentation.
1072 * remote-fileio.c: Fix indentation.
1073 * remote.c: Fix indentation.
1074 * reverse.c: Fix indentation.
1075 * riscv-linux-tdep.c: Fix indentation.
1076 * riscv-ravenscar-thread.c: Fix indentation.
1077 * riscv-tdep.c: Fix indentation.
1078 * rl78-tdep.c: Fix indentation.
1079 * rs6000-aix-tdep.c: Fix indentation.
1080 * rs6000-lynx178-tdep.c: Fix indentation.
1081 * rs6000-nat.c: Fix indentation.
1082 * rs6000-tdep.c: Fix indentation.
1083 * rust-lang.c: Fix indentation.
1084 * rx-tdep.c: Fix indentation.
1085 * s12z-tdep.c: Fix indentation.
1086 * s390-linux-tdep.c: Fix indentation.
1087 * score-tdep.c: Fix indentation.
1088 * ser-base.c: Fix indentation.
1089 * ser-mingw.c: Fix indentation.
1090 * ser-uds.c: Fix indentation.
1091 * ser-unix.c: Fix indentation.
1092 * serial.c: Fix indentation.
1093 * sh-linux-tdep.c: Fix indentation.
1094 * sh-nbsd-tdep.c: Fix indentation.
1095 * sh-tdep.c: Fix indentation.
1096 * skip.c: Fix indentation.
1097 * sol-thread.c: Fix indentation.
1098 * solib-aix.c: Fix indentation.
1099 * solib-darwin.c: Fix indentation.
1100 * solib-frv.c: Fix indentation.
1101 * solib-svr4.c: Fix indentation.
1102 * solib.c: Fix indentation.
1103 * source.c: Fix indentation.
1104 * sparc-linux-tdep.c: Fix indentation.
1105 * sparc-nbsd-tdep.c: Fix indentation.
1106 * sparc-obsd-tdep.c: Fix indentation.
1107 * sparc-ravenscar-thread.c: Fix indentation.
1108 * sparc-tdep.c: Fix indentation.
1109 * sparc64-linux-tdep.c: Fix indentation.
1110 * sparc64-nbsd-tdep.c: Fix indentation.
1111 * sparc64-obsd-tdep.c: Fix indentation.
1112 * sparc64-tdep.c: Fix indentation.
1113 * stabsread.c: Fix indentation.
1114 * stack.c: Fix indentation.
1115 * stap-probe.c: Fix indentation.
1116 * stubs/ia64vms-stub.c: Fix indentation.
1117 * stubs/m32r-stub.c: Fix indentation.
1118 * stubs/m68k-stub.c: Fix indentation.
1119 * stubs/sh-stub.c: Fix indentation.
1120 * stubs/sparc-stub.c: Fix indentation.
1121 * symfile-mem.c: Fix indentation.
1122 * symfile.c: Fix indentation.
1123 * symfile.h: Fix indentation.
1124 * symmisc.c: Fix indentation.
1125 * symtab.c: Fix indentation.
1126 * symtab.h: Fix indentation.
1127 * target-float.c: Fix indentation.
1128 * target.c: Fix indentation.
1129 * target.h: Fix indentation.
1130 * tic6x-tdep.c: Fix indentation.
1131 * tilegx-linux-tdep.c: Fix indentation.
1132 * tilegx-tdep.c: Fix indentation.
1133 * top.c: Fix indentation.
1134 * tracefile-tfile.c: Fix indentation.
1135 * tracepoint.c: Fix indentation.
1136 * tui/tui-disasm.c: Fix indentation.
1137 * tui/tui-io.c: Fix indentation.
1138 * tui/tui-regs.c: Fix indentation.
1139 * tui/tui-stack.c: Fix indentation.
1140 * tui/tui-win.c: Fix indentation.
1141 * tui/tui-winsource.c: Fix indentation.
1142 * tui/tui.c: Fix indentation.
1143 * typeprint.c: Fix indentation.
1144 * ui-out.h: Fix indentation.
1145 * unittests/copy_bitwise-selftests.c: Fix indentation.
1146 * unittests/memory-map-selftests.c: Fix indentation.
1147 * utils.c: Fix indentation.
1148 * v850-tdep.c: Fix indentation.
1149 * valarith.c: Fix indentation.
1150 * valops.c: Fix indentation.
1151 * valprint.c: Fix indentation.
1152 * valprint.h: Fix indentation.
1153 * value.c: Fix indentation.
1154 * value.h: Fix indentation.
1155 * varobj.c: Fix indentation.
1156 * vax-tdep.c: Fix indentation.
1157 * windows-nat.c: Fix indentation.
1158 * windows-tdep.c: Fix indentation.
1159 * xcoffread.c: Fix indentation.
1160 * xml-syscall.c: Fix indentation.
1161 * xml-tdesc.c: Fix indentation.
1162 * xstormy16-tdep.c: Fix indentation.
1163 * xtensa-config.c: Fix indentation.
1164 * xtensa-linux-nat.c: Fix indentation.
1165 * xtensa-linux-tdep.c: Fix indentation.
1166 * xtensa-tdep.c: Fix indentation.
1167
1168 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1169 Craig Blackmore <craig.blackmore@embecosm.com>
1170
1171 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1172 as an unsigned value.
1173
1174 2020-11-01 Tom Tromey <tom@tromey.com>
1175
1176 * dbxread.c (dbx_end_psymtab): Update.
1177 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1178 (build_type_psymtabs_reader): Update.
1179 * xcoffread.c (xcoff_end_psymtab): Update.
1180 * ctfread.c (scan_partial_symbols): Update.
1181 * psymtab.c (sort_pst_symbols): Remove.
1182 (partial_symtab::end): Rename from end_psymtab_common. Inline
1183 sort_pst_symbols.
1184 * psympriv.h (struct partial_symtab) <end>: New method.
1185 (end_psymtab_common): Don't declare.
1186
1187 2020-11-01 Tom Tromey <tom@tromey.com>
1188
1189 * symmisc.c (count_psyms): New function.
1190 (print_objfile_statistics): Use it.
1191 * psymtab.c (append_psymbol_to_list): Remove.
1192 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1193 * objfiles.h (struct objstats) <n_psyms>: Remove.
1194
1195 2020-11-01 Tom Tromey <tom@tromey.com>
1196
1197 * dbxread.c (dbx_end_psymtab): Update.
1198 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1199 (build_type_psymtabs_reader): Update.
1200 * xcoffread.c (xcoff_end_psymtab): Update.
1201 * ctfread.c (scan_partial_symbols): Update.
1202 * psympriv.h (end_psymtab_common): Update.
1203 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1204 (sort_pst_symbols): Likewise.
1205
1206 2020-11-01 Tom Tromey <tom@tromey.com>
1207
1208 * dbxread.c (dbx_symfile_read): Update.
1209 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1210 * xcoffread.c (xcoff_initial_scan): Update.
1211 * psympriv.h (init_psymbol_list): Don't declare.
1212 * psymtab.c (init_psymbol_list): Remove.
1213
1214 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1215
1216 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1217 gnat_encoded_fixed_type_info. Update all callers.
1218
1219 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1220
1221 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1222 line too long.
1223
1224 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1225
1226 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1227 cast_from_fixed. Update all callers.
1228 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1229 Update all callers.
1230 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1231 Update all callers.
1232 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1233 ada_scaling_factor.
1234 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1235 to print_gnat_encoded_fixed_point_type.
1236 * ada-valprint.c: Likewise.
1237
1238 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1241 (debug_prefixed_printf): Add check of debug_displaced flag.
1242 * linux-nat.c (linux_nat_debug_printf): Add check of
1243 debug_linux_nat flag.
1244
1245 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * infrun.c (infrun_debug_printf_1): Remove.
1248 (displaced_debug_printf_1): Remove.
1249 (stop_all_threads): Use debug_prefixed_printf.
1250 * infrun.h (infrun_debug_printf_1): Remove.
1251 (infrun_debug_printf): Use debug_prefixed_printf.
1252 (displaced_debug_printf_1): Remove.
1253 (displaced_debug_printf): Use debug_prefixed_printf.
1254 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1255 (linux_nat_debug_printf): Use debug_prefixed_printf.
1256
1257 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * configure: Re-generate.
1260 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1261 AC_LANG_PROGRAM.
1262
1263 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * configure: Re-generate.
1266
1267 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * configure: Re-generate.
1270
1271 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1272
1273 * configure: Re-generate.
1274
1275 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * configure: Re-generate.
1278
1279 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * acinclude.m4: Modernize.
1282 * configure: Re-generate.
1283
1284 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * configure.ac: Modernize.
1287 * configure: Re-generate.
1288
1289 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1292 * configure: Re-generate.
1293 * configure.ac: Remove AM_PROG_CC_STDC.
1294
1295 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1298 AC_CANONICAL_SYSTEM.
1299 * configure: Re-generate.
1300
1301 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1302
1303 * infrun.h (displaced_debug_printf): New macro. Replace
1304 displaced debug prints throughout to use it.
1305 (displaced_debug_printf_1): New declaration.
1306 (displaced_step_dump_bytes): Return string, remove ui_file
1307 parameter, update all callers.
1308 * infrun.c (displaced_debug_printf_1): New function.
1309 (displaced_step_dump_bytes): Return string, remove ui_file
1310 parameter
1311
1312 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1313
1314 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1315
1316 2020-10-30 Tom Tromey <tromey@adacore.com>
1317
1318 * Makefile.in (stamp-init): Depend on config.status.
1319
1320 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321
1322 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1323
1324 2020-10-30 Pedro Alves <pedro@palves.net>
1325
1326 * thread.c (lookup_selected_frame): Move ...
1327 * frame.c (lookup_selected_frame): ... here.
1328
1329 2020-10-30 Pedro Alves <pedro@palves.net>
1330
1331 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1332 * frame.c
1333 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1334 Use save_selected_frame. Save language as well.
1335 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1336 Use restore_selected_frame, and restore language as well.
1337 (selected_frame_id, selected_frame_level): New.
1338 (selected_frame): Update comments.
1339 (save_selected_frame, restore_selected_frame): New.
1340 (get_selected_frame): Use lookup_selected_frame.
1341 (get_selected_frame_if_set): Delete.
1342 (select_frame): Record selected_frame_level and selected_frame_id.
1343 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1344 fields.
1345 (get_selected_frame): Make 'message' parameter optional.
1346 (get_selected_frame_if_set): Delete declaration.
1347 (select_frame): Update comments.
1348 (save_selected_frame, restore_selected_frame)
1349 (lookup_selected_frame): Declare.
1350 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1351 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1352 New field.
1353 (save_infcall_control_state): Use save_selected_frame.
1354 (restore_selected_frame): Delete.
1355 (restore_infcall_control_state): Use restore_selected_frame.
1356 * stack.c (select_frame_command_core, frame_command_core): Use
1357 get_selected_frame.
1358 * thread.c (restore_selected_frame): Rename to ...
1359 (lookup_selected_frame): ... this and make extern. Select the
1360 current frame if the frame level is -1.
1361 (scoped_restore_current_thread::restore): Also restore the
1362 language.
1363 (scoped_restore_current_thread::~scoped_restore_current_thread):
1364 Don't try/catch.
1365 (scoped_restore_current_thread::scoped_restore_current_thread):
1366 Save the language as well. Use save_selected_frame.
1367
1368 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1371 documentation.
1372 * gdbarch.h: Re-generate.
1373
1374 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1375
1376 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1377 parameter.
1378 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1379 Likewise.
1380 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1381 Likewise.
1382 * arch-utils.c (default_displaced_step_hw_singlestep):
1383 Likewise.
1384 * arch-utils.h (default_displaced_step_hw_singlestep):
1385 Likewise.
1386 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1387 Likewise.
1388 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1389 Likewise.
1390 * gdbarch.c: Re-generate.
1391 * gdbarch.h: Re-generate.
1392 * infrun.c (resume_1): Adjust.
1393
1394 2020-10-29 Tom Tromey <tom@tromey.com>
1395
1396 * progspace.c (program_space::~program_space): Don't call
1397 exec_close.
1398
1399 2020-10-29 Tom Tromey <tom@tromey.com>
1400
1401 * exec.c (exec_target::close): Don't change current program
1402 space.
1403
1404 2020-10-29 Tom Tromey <tom@tromey.com>
1405
1406 * symfile.c (add_symbol_file_command): Update.
1407 * exec.c (program_space::add_target_sections): Rename.
1408 * symfile-mem.c (symbol_file_add_from_memory): Update.
1409 * progspace.h (struct program_space) <add_target_sections>:
1410 Declare new overload.
1411 * exec.h (add_target_sections_of_objfile): Don't declare.
1412
1413 2020-10-29 Tom Tromey <tom@tromey.com>
1414
1415 * solib.c (solib_map_sections): Update.
1416 * exec.c (program_space::add_target_sections): Now a method.
1417 (exec_file_attach): Update.
1418 * exec.h (add_target_sections): Don't declare.
1419 * progspace.h (struct program_space) <add_target_sections>:
1420 Declare.
1421
1422 2020-10-29 Tom Tromey <tom@tromey.com>
1423
1424 * progspace.h (struct program_space) <remove_target_sections>:
1425 Declare.
1426 * exec.c (program_space::remove_target_sections): Now a method.
1427 * exec.h (remove_target_sections): Don't declare.
1428
1429 2020-10-29 Tom Tromey <tom@tromey.com>
1430
1431 * inferior.c (delete_inferior): Update.
1432 * progspace.c (program_space::empty): Rename from
1433 program_space_empty_p. Return bool.
1434 * progspace.h (struct program_space) <empty>: New method.
1435 (program_space_empty_p): Don't declare.
1436
1437 2020-10-29 Tom Tromey <tom@tromey.com>
1438
1439 * progspace.c (program_space::~program_space): Don't call
1440 clear_program_space_solib_cache.
1441 (program_space::clear_solib_cache): Rename from
1442 clear_solib_cache.
1443 * solib.c (handle_solib_event): Update.
1444 * progspace.h (struct program_space) <clear_solib_cache>: New
1445 method.
1446 (clear_program_space_solib_cache): Don't declare.
1447
1448 2020-10-29 Tom Tromey <tom@tromey.com>
1449
1450 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1451 * target.c (info_target_command): Update.
1452 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1453 (symbol_file_clear, reread_symbols): Update.
1454 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1455 * stabsread.c (scan_file_globals): Update.
1456 * solib.c (update_solib_list): Update.
1457 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1458 (svr4_fetch_objfile_link_map, enable_break)
1459 (svr4_relocate_main_executable)
1460 (svr4_iterate_over_objfiles_in_search_order): Update.
1461 * solib-frv.c (lm_base, enable_break)
1462 (frv_relocate_main_executable): Update.
1463 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1464 (frv_fetch_objfile_link_map): Update.
1465 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1466 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1467 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1468 * remote.c (remote_target::get_offsets): Update.
1469 (remote_target::start_remote)
1470 (extended_remote_target::post_attach): Update.
1471 * objfiles.c (entry_point_address_query): Update.
1472 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1473 * minsyms.c (get_symbol_leading_char): Update.
1474 * frame.c (inside_main_func): Update.
1475 * progspace.h (symfile_objfile): Remove macro.
1476
1477 2020-10-29 Tom Tromey <tom@tromey.com>
1478
1479 * exec.c (exec_file_attach): Update.
1480 * progspace.c (program_space::exec_close): Update.
1481 * progspace.h (struct program_space) <ebfd>: Now a
1482 gdb_bfd_ref_ptr.
1483 <set_exec_bfd>: Change argument type.
1484 <exec_bfd>: Update.
1485
1486 2020-10-29 Tom Tromey <tom@tromey.com>
1487
1488 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1489 * symfile.c (reread_symbols): Update.
1490 * symfile-mem.c (add_symbol_file_from_memory_command)
1491 (add_vsyscall_page): Update.
1492 * source-cache.c (source_cache::get_plain_source_lines): Update.
1493 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1494 (svr4_current_sos_direct, svr4_exec_displacement)
1495 (svr4_relocate_main_executable): Update.
1496 (svr4_iterate_over_objfiles_in_search_order): Update.
1497 * solib-frv.c (enable_break2, enable_break): Update.
1498 * solib-dsbt.c (lm_base, enable_break): Update.
1499 * solib-darwin.c (find_program_interpreter)
1500 (darwin_solib_create_inferior_hook): Update.
1501 * sol-thread.c (rw_common, ps_pdmodel): Update.
1502 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1503 * remote.c (compare_sections_command)
1504 (remote_target::trace_set_readonly_regions): Update.
1505 * remote-sim.c (get_sim_inferior_data)
1506 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1507 (gdbsim_target_open, gdbsim_target::files_info): Update.
1508 * exec.h (exec_bfd): Remove macro.
1509 * progspace.c (initialize_progspace): Update.
1510 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1511 Update.
1512 * nto-procfs.c (nto_procfs_target::post_attach)
1513 (nto_procfs_target::create_inferior): Update.
1514 * maint.c (maintenance_info_sections): Update.
1515 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1516 Update.
1517 * infcmd.c (post_create_inferior): Update.
1518 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1519 (objfile_find_memory_regions): Update.
1520 * exec.c (validate_exec_file, exec_file_attach)
1521 (exec_read_partial_read_only, print_section_info): Update.
1522 * corelow.c (core_target_open): Update.
1523 * corefile.c (reopen_exec_file, validate_files): Update.
1524 * arm-tdep.c (gdb_print_insn_arm): Update.
1525 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1526 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1527 methods.
1528
1529 2020-10-29 Tom Tromey <tom@tromey.com>
1530
1531 * progspace.h (current_target_sections): Remove macro.
1532 * solib-svr4.c (scan_dyntag): Update.
1533 * solib-dsbt.c (scan_dyntag): Update.
1534 * exec.c (exec_target::close): Update.
1535 (add_target_sections, add_target_sections_of_objfile)
1536 (remove_target_sections, exec_target::get_section_table)
1537 (exec_target::files_info, set_section_command)
1538 (exec_set_section_address, exec_target::has_memory)
1539 (exec_target::has_memory): Update.
1540
1541 2020-10-29 Tom Tromey <tom@tromey.com>
1542
1543 * source-cache.c (source_cache::get_plain_source_lines): Use
1544 current_program_space.
1545 * corefile.c (reopen_exec_file): Use current_program_space.
1546 * exec.c (exec_file_attach): Use current_program_space.
1547 * exec.h (exec_bfd_mtime): Remove.
1548
1549 2020-10-29 Tom Tromey <tom@tromey.com>
1550
1551 * gcore.c (default_gcore_mach): Remove.
1552 (create_gcore_bfd): Update.
1553
1554 2020-10-29 Tom Tromey <tom@tromey.com>
1555
1556 * progspace.c (program_space::exec_close): New method, from
1557 exec_close in exec.c.
1558 * exec.c (exec_close): Move to progspace.c.
1559 (exec_target::close, exec_file_attach): Update.
1560 * progspace.h (struct program_space) <exec_close>: Declare
1561 method.
1562
1563 2020-10-29 Tom Tromey <tom@tromey.com>
1564
1565 * progspace.h (struct program_space) <exec_filename>: Rename from
1566 pspace_exec_filename. Now a unique_xmalloc_ptr.
1567 * inferior.c (print_selected_inferior): Update.
1568 (print_inferior): Update.
1569 * mi/mi-main.c (print_one_inferior): Update.
1570 * exec.h (exec_filename): Remove macro.
1571 * corefile.c (get_exec_file): Update.
1572 * exec.c (exec_close): Update.
1573 (exec_file_attach): Update.
1574 * progspace.c (clone_program_space): Update.
1575 (print_program_space): Update.
1576
1577 2020-10-29 Tom Tromey <tom@tromey.com>
1578
1579 * target-section.h (struct target_section): Add constructor.
1580 * exec.c (build_section_table, add_target_sections_of_objfile):
1581 Update.
1582 * corelow.c (core_target::build_file_mappings): Update.
1583
1584 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1585
1586 PR gdb/19318
1587 * inferior.c (detach_inferior_command): Restore the current thread.
1588 (kill_inferior_command): Ditto.
1589
1590 2020-10-28 Tom de Vries <tdevries@suse.de>
1591
1592 PR symtab/26772
1593 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1594 map, check it in the "best match" loop.
1595
1596 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * m32c-tdep.c: Remove unused includes.
1599
1600 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1601
1602 * xtensa-tdep.c: Remove includes.
1603
1604 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1605
1606 * breakpoint.c (struct condition_command_opts): New struct.
1607 (condition_command_option_defs): New static global.
1608 (make_condition_command_options_def_group): New function.
1609 (condition_completer): Update to consider the '-force' flag.
1610 (condition_command): Use gdb::option for the '-force' flag.
1611
1612 2020-10-27 Tom de Vries <tdevries@suse.de>
1613
1614 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1615 symbols in section check.
1616
1617 2020-10-27 Tom de Vries <tdevries@suse.de>
1618
1619 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1620
1621 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1622
1623 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1624 * breakpoint.c: Update the help text of the 'condition' and 'break'
1625 commands.
1626 (set_breakpoint_condition): Take a new bool parameter
1627 to control whether condition definition should be forced even when
1628 the condition expression is invalid in all of the current locations.
1629 (condition_command): Update the call to 'set_breakpoint_condition'.
1630 (find_condition_and_thread): Take the "-force-condition" flag into
1631 account.
1632 * linespec.c (linespec_keywords): Add "-force-condition" as an
1633 element.
1634 (FORCE_KEYWORD_INDEX): New #define.
1635 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1636 as a keyword.
1637 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1638 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1639 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1640 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1641
1642 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1643
1644 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1645 * breakpoint.c (set_breakpoint_location_condition): New function.
1646 (set_breakpoint_condition): Disable a breakpoint location if parsing
1647 the condition string gives an error.
1648 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1649 (build_target_condition_list): Ditto.
1650 (build_target_command_list): Ditto.
1651 (build_bpstat_chain): Ditto.
1652 (print_one_breakpoint_location): Ditto.
1653 (print_one_breakpoint): Ditto.
1654 (breakpoint_1): Ditto.
1655 (bp_location::bp_location): Ditto.
1656 (locations_are_equal): Ditto.
1657 (update_breakpoint_locations): Ditto.
1658 (enable_disable_bp_num_loc): Ditto.
1659 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1660 (find_condition_and_thread_for_sals): New static function.
1661 (create_breakpoint): Call find_condition_and_thread_for_sals.
1662 (location_to_sals): Call find_condition_and_thread_for_sals instead
1663 of find_condition_and_thread.
1664
1665 2020-10-26 Tom de Vries <tdevries@suse.de>
1666
1667 * dwarf2/read.c (process_full_comp_unit): Call
1668 dwarf2_find_base_address.
1669
1670 2020-10-26 Tom Tromey <tromey@adacore.com>
1671
1672 * gdbtypes.c (create_range_type): Revert previous patch. Add
1673 comment.
1674
1675 2020-10-26 Pedro Alves <pedro@palves.net>
1676
1677 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1678 (my_waitpid): Use gdb::handle_eintr.
1679
1680 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1681
1682 * acinclude.m4: Update ptrace.m4 path.
1683 * ptrace.m4: Moved to gdbsupport.
1684
1685 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1686
1687 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1688 instead of target_gdbarch.
1689
1690 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1691
1692 * jit.c (jit_reader_load_command): Pass current inferior.
1693 (jit_inferior_init): Change parameter type to inferior, use it.
1694 (jit_inferior_created): Remove.
1695 (jit_inferior_created_hook): Pass inferior parameter down.
1696 (_initialize_jit): Use jit_inferior_created_hook instead of
1697 jit_inferior_created.
1698 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1699 * infrun.c (follow_exec): Pass inferior to
1700 jit_inferior_created_hook.
1701
1702 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1703
1704 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1705 parameter and use it.
1706 (thread_db_inferior_created): Pass inferior argument.
1707
1708 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1709
1710 * aix-thread.c (aix_thread_inferior_created): Add inferior
1711 parameter.
1712 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1713 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1714 * jit.c (jit_inferior_created): Likewise.
1715 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1716 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1717 * observable.h (inferior_created): Likewise.
1718 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1719 * symfile-mem.c (add_vsyscall_page): Likewise.
1720 * infcmd.c (post_create_inferior): Pass inferior argument.
1721
1722 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1723
1724 GDB 10.1 released.
1725
1726 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1727
1728 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1729 to ada_check_typedef.
1730
1731 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * f-exp.y (f_parse): Rename to...
1734 (f_language::parser): ...this.
1735 * f-lang.c (f_get_encoding): Rename to...
1736 (f_language::get_encoding): ...this.
1737 (f_op_print_tab): Rename to...
1738 (f_language::op_print_tab): ...this.
1739 (exp_descriptor_f): Rename to...
1740 (f_language::exp_descriptor_tab): ...this.
1741 (class f_language): Moved to f-lang.h.
1742 (f_language::language_arch_info): New function, moved out of class
1743 declaration.
1744 (f_language::search_name_hash): Likewise.
1745 (f_language::lookup_symbol_nonlocal): Likewise.
1746 (f_language::get_symbol_name_matcher_inner): Likewise.
1747 * f-lang.h: Add 'valprint.h' include.
1748 (class f_language): Moved here from f-lang.c.
1749 * f-typeprint.c (f_type_print_args): Delete commented out
1750 declaration.
1751 (f_print_typedef): Rename to...
1752 (f_language::print_typedef): ...this.
1753 (f_print_type): Rename to...
1754 (f_language::print_type): ...this.
1755 (f_type_print_varspec_prefix): Delete declaration and rename to...
1756 (f_language::f_type_print_varspec_prefix): ...this.
1757 (f_type_print_varspec_suffix): Delete declaration and rename to...
1758 (f_language::f_type_print_varspec_suffix): ...this.
1759 (f_type_print_base): Delete declaration and rename to...
1760 (f_language::f_type_print_base): ...this.
1761 * f-valprint.c (f_value_print_inner): Rename to...
1762 (f_language::value_print_inner): ...this.
1763 * parse.c: Delete 'f-lang.h' include.
1764
1765 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * language.h (language_defn::print_type): Add variable names in
1768 declaration, and update header comment.
1769
1770 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * ada-lang.c (ada_language::demangle): Rename to...
1773 (ada_language::demangle_symbol): ...this.
1774 * c-lang.c (cplus_language::demangle): Rename to...
1775 (cplus_language::demangle_symbol): ...this.
1776 * d-lang.c (d_language::demangle): Rename to...
1777 (d_language::demangle_symbol): ...this.
1778 * f-lang.c (f_language::demangle): Rename to...
1779 (f_language::demangle_symbol): ...this.
1780 * go-lang.c (go_language::demangle): Rename to...
1781 (go_language::demangle_symbol): ...this.
1782 * language.c (language_demangle): Update call to demangle_symbol.
1783 (auto_or_unknown_language::demangle): Rename to...
1784 (auto_or_unknown_language::demangle_symbol): ...this.
1785 * language.h (language_defn::demangle): Rename to...
1786 (language_defn::demangle_symbol): ...this.
1787 * objc-lang.c (objc_language::demangle): Rename to...
1788 (objc_language::demangle_symbol): ...this.
1789 * rust-lang.c (rust_language::demangle): Rename to...
1790 (rust_language::demangle_symbol): ...this.
1791
1792 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1795 (iterate_over_file_blocks): Replace use of macro with the macros
1796 definition.
1797
1798 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1801 * valprint.c (maybe_print_array_index): Replace use of macro with
1802 the macros definition.
1803
1804 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * ada-lang.c (ada_language::print_array_index): Call value_print
1807 directly.
1808 * language.c (language_defn::print_array_index): Likewise.
1809 * language.h (LA_VALUE_PRINT): Delete.
1810 * valprint.c (value_print): Call value_print on the
1811 current_language directly.
1812
1813 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * language.h (LA_PRINT_TYPEDEF): Delete.
1816 * typeprint.c (typedef_print): Call print_typedef directly on the
1817 current_language object.
1818
1819 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1820
1821 * m2-exp.y (m2_parse): Rename to...
1822 (m2_language::parser): ...this. Update function signature.
1823 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1824 (m2_op_print): Rename to...
1825 (m2_language::op_print_tab): ...this, and make const.
1826 (exp_descriptor_modula2): Rename to...
1827 (m2_language::exp_descriptor_modula2): ...this.
1828 (class m2_language): Move to m2-lang.h.
1829 (m2_language::language_arch_info): New function, moved out of
1830 class declaration.
1831 (m2_language::printchar): New function, body from m2_printchar.
1832 (m2_language::printstr): New function, moved out of class
1833 declaration.
1834 (m2_language::emitchar): Likewise.
1835 * m2-lang.h (m2_parse): Delete declaration.
1836 (m2_print_typedef): Delete declaration.
1837 (m2_value_print_inner): Delete declaration.
1838 (class m2_language): Class declaration moved from m2-lang.c,
1839 larger functions are left in m2-lang.c.
1840 * m2-typeprint.c (m2_print_typedef): Rename to...
1841 (m2_language::print_typedef): ...this, and update function
1842 signature.
1843 * m2-valprint.c (m2_value_print_inner): Rename to...
1844 (m2_language::value_print_inner): ...this, replace use of
1845 LA_PRINT_STRING with a direct call to printstr member function,
1846 and update recursive call.
1847
1848 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1849
1850 * language.c (default_is_string_type_p): Delete, implementation
1851 moved into auto_or_unknown_language::is_string_type_p.
1852 (unk_op_print_tab): Moved into
1853 auto_or_unknown_language::opcode_print_table.
1854 (unknown_language_arch_info): Delete, implementation moved into
1855 auto_or_unknown_language::language_arch_info.
1856 (class auto_or_unknown_language): New class, member functions
1857 copied from unknown_language class, with some updates.
1858 (class unknown_language): Most member functions moved into
1859 auto_or_unknown_language class. Inherit from
1860 auto_or_unknown_language class.
1861 (class auto_language): Inherit from auto_or_unknown_language.
1862 Delete most member functions.
1863
1864 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1865
1866 * stabsread.c (read_member_functions): Remove gdb_assert.
1867
1868 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1869
1870 * gdbtypes.c (init_complex_type): Check target type name.
1871
1872 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * target-debug.h (target_debug_print_struct_target_ops_p):
1875 Remove.
1876 (target_debug_print_async_callback_ftype_p): Remove.
1877 (target_debug_print_struct_trace_state_variable_p): Remove.
1878 (target_debug_print_struct_traceframe_info_p): Remove.
1879 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1880 (target_debug_print_enum_btrace_format): Remove.
1881 (target_debug_print_enum_info_proc_what): Remove.
1882 (target_debug_print_thread_info_pp): Remove.
1883
1884 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * target.h (struct target_ops) <make_corefile_notes>:
1887 Change return type to unique pointer.
1888 * target.c (dummy_make_corefile_notes): Likewise.
1889 * exec.c (struct exec_target) <make_corefile_notes>:
1890 Likewise.
1891 (exec_target::make_corefile_notes): Likewise.
1892 * procfs.c (class procfs_target) <make_corefile_notes>:
1893 Likewise.
1894 (procfs_do_thread_registers): Adjust to unique pointer.
1895 (struct procfs_corefile_thread_data): Add constructor.
1896 <note_data>: Change type to unique pointer.
1897 (procfs_corefile_thread_callback): Adjust to unique pointer.
1898 (procfs_target::make_corefile_notes): Change return type to
1899 unique pointer.
1900 * target-delegates.c: Re-generate.
1901 * gcore.c (write_gcore_file_1): Adjust.
1902 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1903 New.
1904
1905 2020-10-22 Tom de Vries <tdevries@suse.de>
1906
1907 * block.c (find_block_in_blockvector): Make sure the returned block
1908 contains pc.
1909
1910 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1911
1912 PR gdb/26693
1913 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1914 parameter.
1915 (load_cu): Pass existing CU.
1916 (process_imported_unit_die): Likewise.
1917 (follow_die_offset): Likewise.
1918
1919 2020-10-22 Luis Machado <luis.machado@linaro.org>
1920
1921 * corelow.c (core_target::xfer_partial): Also check for an empty
1922 m_core_unavailable_mappings vector.
1923
1924 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1927 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1928 * f-exp.y (arglist): Allow for a series of subranges.
1929 (subrange): Add cases for subranges with strides.
1930 * f-lang.c (value_f90_subarray): Catch use of array strides and
1931 throw an error.
1932 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1933
1934 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1935
1936 * expprint.c (print_subexp_standard): Change enum range_type to
1937 range_flag and rename variables to match.
1938 (dump_subexp_body_standard): Likewise.
1939 * expression.h (enum range_type): Rename to...
1940 (enum range_flag): ...this.
1941 (range_types): Rename to...
1942 (range_flags): ...this.
1943 * f-lang.c (value_f90_subarray): Change enum range_type to
1944 range_flag and rename variables to match.
1945 * parse.c (operator_length_standard): Likewise.
1946 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1947 range_type to range_flag.
1948 * rust-lang.c (rust_evaluate_funcall): Likewise.
1949 (rust_range): Likewise.
1950 (rust_compute_range): Likewise.
1951 (rust_subscript): Likewise.
1952
1953 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * expprint.c (print_subexp_standard): Update to reflect changes to
1956 enum range_type.
1957 (dump_subexp_body_standard): Likewise.
1958 * expression.h (enum range_type): Convert to a bit field enum, and
1959 make the enum unsigned.
1960 * f-exp.y (subrange): Update to reflect changes to enum
1961 range_type.
1962 * f-lang.c (value_f90_subarray): Likewise.
1963 * parse.c (operator_length_standard): Likewise.
1964 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1965 * rust-lang.c (rust_range): Likewise.
1966 (rust_compute_range): Likewise.
1967 (rust_subscript): Likewise.
1968
1969 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1970
1971 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1972 (displaced_step_in_progress): Fix comment.
1973
1974 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1977 * gdbarch.c: Re-generate.
1978 * gdbarch.h: Re-generate.
1979 * gcore.c (write_gcore_file_1): Adjust.
1980 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1981 constructor.
1982 <note_data>: Change type to unique pointer.
1983 <abort_iteration>: Change type to bool.
1984 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1985 (fbsd_collect_thread_registers): Return void, adjust.
1986 (struct fbsd_corefile_thread_data): Add construtor.
1987 <note_data>: Change type to unique pointer.
1988 (fbsd_corefile_thread): Adjust.
1989 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1990 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1991 to unique pointer, adjust.
1992 (struct linux_collect_regset_section_cb_data): Add constructor.
1993 <note_data>: Change type to unique pointer.
1994 <abort_iteration>: Change type to bool.
1995 (linux_collect_thread_registers): Return void, adjust.
1996 (struct linux_corefile_thread_data): Add constructor.
1997 <note_data>: Change type to unique pointer.
1998 (linux_corefile_thread): Adjust.
1999 (linux_make_corefile_notes): Return unique pointer, adjust.
2000
2001 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2004 * gdbarch.c: Re-generate.
2005 * gdbarch.h: Re-generate.
2006 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2007 bool.
2008 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2009 Likewise.
2010 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2011 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2012 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2013 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2014
2015 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * gdbarch.sh: Make generated predicates return bool.
2018 * gdbarch.c: Re-generate.
2019 * gdbarch.h: Re-generate.
2020
2021 2020-10-20 Tom Tromey <tom@tromey.com>
2022
2023 * varobj-iter.h (struct varobj_item): Remove typedef.
2024
2025 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * infrun.c (currently_stepping): Change int to bool
2028 (maybe_software_singlestep): Likewise.
2029 (show_stop_on_solib_events): Likewise.
2030 (stepping_past_nonsteppable_watchpoint): Likewise.
2031 (displaced_step_in_progress_any_inferior): Likewise.
2032 (displaced_step_in_progress_thread): Likewise.
2033 (keep_going_stepped_thread): Likewise.
2034 (thread_still_needs_step_over): Likewise.
2035 (start_step_over): Likewise.
2036 (do_target_resume): Likewise.
2037 (resume_1): Likewise.
2038 (clear_proceed_status): Likewise.
2039 (thread_still_needs_step_over_bp): Likewise.
2040 (proceed): Likewise.
2041 (switch_back_to_stepped_thread): Likewise.
2042 (adjust_pc_after_break): Likewise.
2043 (stepped_in_from): Likewise.
2044 (handle_stop_requested): Likewise.
2045 (handle_syscall_event): Likewise.
2046 (handle_no_resumed): Likewise.
2047 (handle_inferior_event): Likewise.
2048 (finish_step_over): Likewise.
2049 (handle_signal_stop): Likewise.
2050 (process_event_stop_test): Likewise.
2051
2052 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * infrun.c (get_displaced_stepping_state): Fix comment.
2055
2056 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2057
2058 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2059
2060 2020-10-19 Tom Tromey <tromey@adacore.com>
2061
2062 PR tui/26719
2063 * tui/tui-winsource.h (struct tui_source_window_base)
2064 <refresh_window>: Rename from refresh_pad.
2065 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2066 Rename from refresh_pad.
2067 (tui_source_window_base::show_source_content)
2068 (tui_source_window_base::do_scroll_horizontal): Update.
2069
2070 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2071
2072 * thread.c (_initialize_thread): Fine-tune the help text of
2073 'info threads'.
2074
2075 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2076
2077 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2078
2079 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2080
2081 * breakpoint.c (handle_jit_event): Add an argument, change how
2082 `jit_event_handler` is called.
2083
2084 2020-10-17 Tom Tromey <tom@tromey.com>
2085
2086 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2087 (scan_xcoff_symtab): Update.
2088 * psymtab.h (class psymtab_storage) <global_psymbols,
2089 static_psymbols, current_global_psymbols,
2090 current_static_psymbols>: Remove.
2091 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2092 (match_partial_symbol, lookup_partial_symbol): Update.
2093 (print_partial_symbols): Change parameters.
2094 (dump_psymtab, recursively_search_psymtabs)
2095 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2096 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2097 (concat): Remove.
2098 (end_psymtab_common): Simplify.
2099 (append_psymbol_to_list): Change parameters.
2100 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2101 (init_psymbol_list): Simplify.
2102 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2103 * psympriv.h (struct partial_symtab) <empty>: New method.
2104 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2105 Remove.
2106 <global_psymbols, static_psymbols>: New members.
2107 <add_psymbol>: New methods.
2108 (add_psymbol_to_list): Don't declare.
2109 (psymbol_placement): Move earlier.
2110 * mdebugread.c (parse_partial_symbols): Update.
2111 (handle_psymbol_enumerators): Change parameters.
2112 (mdebug_expand_psymtab): Update.
2113 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2114 (add_partial_symbol): Update.
2115 * dwarf2/index-write.c (write_psymbols): Change parameters.
2116 (write_one_signatured_type): Update.
2117 (recursively_count_psymbols): Update.
2118 (recursively_write_psymbols): Update.
2119 (class debug_names) <recursively_write_psymbols>: Update.
2120 <write_psymbols>: Change parameters.
2121 <write_one_signatured_type>: Update.
2122 * dbxread.c (read_dbx_symtab): Update.
2123 (dbx_end_psymtab): Use partial_symtab::empty.
2124 * ctfread.c (struct ctf_context) <pst>: New member.
2125 (create_partial_symtab): Set it.
2126 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2127 (scan_partial_symbols): Use the psymtab's context. Update.
2128
2129 2020-10-17 Tom Tromey <tom@tromey.com>
2130
2131 * valprint.c (generic_value_print): Remove comment.
2132 * m2-valprint.c (m2_value_print_inner): Remove comment.
2133 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2134 type.
2135
2136 2020-10-17 Tom de Vries <tdevries@suse.de>
2137
2138 PR symtab/26317
2139 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2140 symbol main.
2141
2142 2020-10-14 Tom de Vries <tdevries@suse.de>
2143
2144 PR gdb/26733
2145 * solib.c (solib_contains_address_p): Handle
2146 'solib->sections == nullptr'.
2147
2148 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 PR gdb/26642
2151 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2152 target can't do async.
2153 * target.c (target_wait): Assert that we don't pass
2154 TARGET_WNOHANG to a target that can't async.
2155
2156 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2157
2158 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2159 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2160 * alpha-bsd-nat.c: Adjust include.
2161 * alpha-bsd-tdep.h: Adjust comment.
2162 * alpha-nbsd-tdep.c: Rename to ...
2163 * alpha-netbsd-tdep.c: ... this, adjust include.
2164 * amd64-nbsd-nat.c: Rename to ...
2165 * amd64-netbsd-nat.c: ... this, adjust include.
2166 * amd64-nbsd-tdep.c: Rename to ...
2167 * amd64-netbsd-tdep.c: ... this, adjust include.
2168 * amd64-tdep.h: Adjust include.
2169 * arm-nbsd-nat.c: Rename to ...
2170 * arm-netbsd-nat.c: ... this, adjust include.
2171 * arm-nbsd-tdep.c: Rename to ...
2172 * arm-netbsd-tdep.c: ... this, adjust include.
2173 * arm-nbsd-tdep.h: Rename to ...
2174 * arm-netbsd-tdep.h: ... this, adjust include.
2175 * configure.nat: Adjust file lists.
2176 * configure.tgt: Likewise.
2177 * hppa-nbsd-nat.c: Rename to ...
2178 * hppa-netbsd-nat.c: ... this, adjust include.
2179 * hppa-nbsd-tdep.c: Rename to ...
2180 * hppa-netbsd-tdep.c: ... this, adjust include.
2181 * i386-nbsd-nat.c: Rename to ...
2182 * i386-netbsd-nat.c: ... this, adjust include.
2183 * i386-nbsd-tdep.c: Rename to ...
2184 * i386-netbsd-tdep.c: ... this, adjust include.
2185 * m68k-bsd-nat.c: Adjust include.
2186 * mips-nbsd-nat.c: Rename to ...
2187 * mips-netbsd-nat.c: ... this, adjust include.
2188 * mips-nbsd-tdep.c: Rename to ...
2189 * mips-netbsd-tdep.c: ... this, adjust include.
2190 * mips-nbsd-tdep.h: Rename to ...
2191 * mips-netbsd-tdep.h: ... this.
2192 * nbsd-nat.c: Rename to ...
2193 * netbsd-nat.c: ... this, adjust include.
2194 * nbsd-nat.h: Rename to ...
2195 * netbsd-nat.h: ... this, adjust include.
2196 * nbsd-tdep.c: Rename to ...
2197 * netbsd-tdep.c: ... this, adjust include.
2198 * nbsd-tdep.h: Rename to ...
2199 * netbsd-tdep.h: ... this.
2200 * ppc-nbsd-nat.c: Rename to ...
2201 * ppc-netbsd-nat.c: ... this, adjust include.
2202 * ppc-nbsd-tdep.c: Rename to ...
2203 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2204 * ppc-nbsd-tdep.h: Rename to ...
2205 * ppc-netbsd-tdep.h: ... this.
2206 * sh-nbsd-nat.c: Rename to ...
2207 * sh-netbsd-nat.c: ... this, adjust include.
2208 * sh-nbsd-tdep.c: Rename to ...
2209 * sh-netbsd-tdep.c: ... this, adjust include.
2210 * sparc-nbsd-nat.c: Rename to ...
2211 * sparc-netbsd-nat.c: ... this.
2212 * sparc-nbsd-tdep.c: Rename to ...
2213 * sparc-netbsd-tdep.c: ... this, adjust include.
2214 * sparc64-nbsd-nat.c: Rename to ...
2215 * sparc64-netbsd-nat.c: ... this.
2216 * sparc64-nbsd-tdep.c: Rename to ...
2217 * sparc64-netbsd-tdep.c: ... this, adjust include.
2218 * sparc64-tdep.h: Adjust comment.
2219 * vax-bsd-nat.c: Adjust include.
2220 * vax-nbsd-tdep.c: Rename to ...
2221 * vax-netbsd-tdep.c: ... this, adjust include.
2222
2223 2020-10-12 Tom Tromey <tom@tromey.com>
2224
2225 * target.h (struct target_ops) <get_section_table>: Update.
2226 (target_get_section_table): Update.
2227 * target.c (target_get_section_table, target_section_by_addr)
2228 (memory_xfer_partial_1): Update.
2229 * target-section.h (target_section_table): Now an alias.
2230 * target-delegates.c: Rebuild.
2231 * target-debug.h (target_debug_print_target_section_table_p):
2232 Rename from target_debug_print_struct_target_section_table_p.
2233 * symfile.c (build_section_addr_info_from_section_table): Update.
2234 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2235 * solib-svr4.c (scan_dyntag): Update.
2236 * solib-dsbt.c (scan_dyntag): Update.
2237 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2238 Update.
2239 * record-full.c (record_full_core_target::xfer_partial): Update.
2240 * progspace.h (struct program_space) <target_sections>: Update.
2241 * exec.h (print_section_info): Update.
2242 * exec.c (exec_target::close, build_section_table)
2243 (add_target_sections, add_target_sections_of_objfile)
2244 (remove_target_sections, exec_on_vfork)
2245 (section_table_available_memory)
2246 (section_table_xfer_memory_partial)
2247 (exec_target::get_section_table, exec_target::xfer_partial)
2248 (print_section_info, set_section_command)
2249 (exec_set_section_address, exec_target::has_memory): Update.
2250 * corelow.c (core_target::build_file_mappings)
2251 (core_target::xfer_partial, core_target::info_proc_mappings)
2252 (core_target::info_proc_mappings): Update.
2253 * bfd-target.c (class target_bfd): Update
2254
2255 2020-10-12 Tom Tromey <tom@tromey.com>
2256
2257 * progspace.c (program_space::~program_space): Don't call
2258 clear_section_table.
2259 * exec.h (clear_section_table): Don't declare.
2260 * exec.c (exec_target::close): Update.
2261 (clear_section_table): Remove.
2262
2263 2020-10-12 Tom Tromey <tom@tromey.com>
2264
2265 * exec.c (add_target_sections_of_objfile): Simplify.
2266
2267 2020-10-12 Tom Tromey <tom@tromey.com>
2268
2269 * solib.c (solib_map_sections): Update.
2270 * record-full.c (record_full_core_open_1): Update.
2271 * exec.h (build_section_table): Return a target_section_table.
2272 * exec.c (exec_file_attach): Update.
2273 (build_section_table): Return a target_section_table.
2274 * corelow.c (core_target::core_target): Update.
2275 * bfd-target.c (target_bfd::target_bfd): Update.
2276
2277 2020-10-12 Tom Tromey <tom@tromey.com>
2278
2279 * target.c (target_section_by_addr, memory_xfer_partial_1):
2280 Update.
2281 * target-section.h (struct target_section_table): Use
2282 std::vector.
2283 * symfile.h (build_section_addr_info_from_section_table): Take a
2284 target_section_table.
2285 * symfile.c (build_section_addr_info_from_section_table): Take a
2286 target_section_table.
2287 * solist.h (struct so_list) <sections>: Change type.
2288 <sections_end>: Remove.
2289 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2290 (solib_contains_address_p): Update.
2291 * solib-svr4.c (scan_dyntag): Update.
2292 * solib-dsbt.c (scan_dyntag): Update.
2293 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2294 Update.
2295 * record-full.c (record_full_core_start, record_full_core_end):
2296 Remove.
2297 (record_full_core_sections): New global.
2298 (record_full_core_open_1, record_full_core_target::xfer_partial):
2299 Update.
2300 * exec.h (build_section_table, section_table_xfer_memory_partial)
2301 (add_target_sections): Take a target_section_table.
2302 * exec.c (exec_file_attach, clear_section_table): Update.
2303 (resize_section_table): Remove.
2304 (build_section_table, add_target_sections): Take a
2305 target_section_table.
2306 (add_target_sections_of_objfile, remove_target_sections)
2307 (exec_on_vfork): Update.
2308 (section_table_available_memory): Take a target_section_table.
2309 (section_table_read_available_memory): Update.
2310 (section_table_xfer_memory_partial): Take a target_section_table.
2311 (print_section_info, set_section_command)
2312 (exec_set_section_address, exec_target::has_memory): Update.
2313 * corelow.c (class core_target) <m_core_section_table,
2314 m_core_file_mappings>: Remove braces.
2315 <~core_target>: Remove.
2316 (core_target::core_target): Update.
2317 (core_target::~core_target): Remove.
2318 (core_target::build_file_mappings)
2319 (core_target::xfer_memory_via_mappings)
2320 (core_target::xfer_partial, core_target::info_proc_mappings):
2321 Update.
2322 * bfd-target.c (target_bfd::xfer_partial): Update.
2323 (target_bfd::target_bfd): Update.
2324 (target_bfd::~target_bfd): Remove.
2325
2326 2020-10-12 Tom Tromey <tom@tromey.com>
2327
2328 * target.h (struct target_section, struct target_section_table):
2329 Move to target-section.h.
2330 * target-section.h: New file.
2331
2332 2020-10-12 Pedro Alves <pedro@palves.net>
2333
2334 PR exp/26602
2335 * valops.c (struct struct_field_searcher): New.
2336 (update_search_result): Rename to ...
2337 (struct_field_searcher::update_result): ... this. Simplify
2338 prototype. Record all found fields.
2339 (do_search_struct_field): Rename to ...
2340 (struct_field_searcher::search): ... this. Simplify prototype.
2341 Maintain stack of visited baseclass path. Call update_result for
2342 fields too. Keep searching fields in baseclasses instead of
2343 stopping at the first found field.
2344 (search_struct_field): Use struct_field_searcher. When looking
2345 for fields, report ambiguous access attempts.
2346
2347 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * frame.c (inside_main_func): Check full symbols as well as
2350 minimal symbols.
2351
2352 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2353
2354 * ada-lang.c (advance_wild_match): Rewrite the function's
2355 description. Change the type of target0, t0 and t1 to char.
2356
2357 2020-10-09 Tom Tromey <tromey@adacore.com>
2358
2359 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2360
2361 2020-10-09 Tom Tromey <tromey@adacore.com>
2362
2363 * ada-lang.h (ada_encode): Return std::string.
2364 * ada-lang.c (ada_encode_1): Return std::string.
2365 (ada_encode): Likewise.
2366 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2367 Update.
2368 * ada-exp.y (block_lookup, write_var_or_type): Update.
2369
2370 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2371
2372 PR exp/26714
2373 * printcmd.c (print_formatted): Handle void results as
2374 unformatted prints.
2375
2376 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2377
2378 * arch/aarch32.c (aarch32_create_target_description): Release the
2379 target_desc_up as late as possible.
2380 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2381 * arch/amd64.c (amd64_create_target_description): Likewise.
2382 * arch/arc.c (arc_create_target_description): Return a
2383 target_desc_up, don't release it.
2384 * arch/arc.h (arc_create_target_description): Update declaration.
2385 (arc_lookup_target_description): Move target_desc_up into the
2386 cache, and return a borrowed pointer.
2387 * arch/arm.c (arm_create_target_description): Release the
2388 target_desc_up as late as possible.
2389 * arch/i386.c (i386_create_target_description): Likewise.
2390 * arch/riscv.h (riscv_create_target_description): Update
2391 declaration to match definition.
2392 * arch/tic6x.c (tic6x_create_target_description): Release the
2393 target_desc_up as late as possible.
2394
2395 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2396
2397 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2398 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2399
2400 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2401
2402 * source.c (directory_command): Notify observers that "directories"
2403 parameter has changed.
2404
2405 2020-10-08 Tom Tromey <tom@tromey.com>
2406
2407 * cli/cli-cmds.c (print_disassembly): Style function name and
2408 addresses. Add _() wrappers.
2409
2410 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2411
2412 * NEWS: Mention ARC support in GDBserver.
2413
2414 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * arch/aarch32.c (aarch32_create_target_description): Release
2417 unique_ptr returned from allocate_target_description.
2418 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2419 * arch/amd64.c (amd64_create_target_description): Likewise.
2420 * arch/arc.c (arc_create_target_description): Likewise.
2421 * arch/arm.c (arm_create_target_description): Likewise.
2422 * arch/i386.c (i386_create_target_description): Likewise.
2423 * arch/riscv.c (riscv_create_target_description): Update return
2424 type. Handle allocate_target_description returning a unique_ptr.
2425 (riscv_lookup_target_description): Update to handle unique_ptr.
2426 * arch/tic6x.c (tic6x_create_target_description): Release
2427 unique_ptr returned from allocate_target_description.
2428 * features/microblaze-with-stack-protect.c: Regenerate.
2429 * features/microblaze.c: Regenerate.
2430 * features/mips-dsp-linux.c: Regenerate.
2431 * features/mips-linux.c: Regenerate.
2432 * features/mips64-dsp-linux.c: Regenerate.
2433 * features/mips64-linux.c: Regenerate.
2434 * features/nds32.c: Regenerate.
2435 * features/nios2.c: Regenerate.
2436 * features/or1k.c: Regenerate.
2437 * features/rs6000/powerpc-32.c: Regenerate.
2438 * features/rs6000/powerpc-32l.c: Regenerate.
2439 * features/rs6000/powerpc-403.c: Regenerate.
2440 * features/rs6000/powerpc-403gc.c: Regenerate.
2441 * features/rs6000/powerpc-405.c: Regenerate.
2442 * features/rs6000/powerpc-505.c: Regenerate.
2443 * features/rs6000/powerpc-601.c: Regenerate.
2444 * features/rs6000/powerpc-602.c: Regenerate.
2445 * features/rs6000/powerpc-603.c: Regenerate.
2446 * features/rs6000/powerpc-604.c: Regenerate.
2447 * features/rs6000/powerpc-64.c: Regenerate.
2448 * features/rs6000/powerpc-64l.c: Regenerate.
2449 * features/rs6000/powerpc-7400.c: Regenerate.
2450 * features/rs6000/powerpc-750.c: Regenerate.
2451 * features/rs6000/powerpc-860.c: Regenerate.
2452 * features/rs6000/powerpc-altivec32.c: Regenerate.
2453 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2454 * features/rs6000/powerpc-altivec64.c: Regenerate.
2455 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2456 * features/rs6000/powerpc-e500.c: Regenerate.
2457 * features/rs6000/powerpc-e500l.c: Regenerate.
2458 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2459 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2460 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2461 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2462 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2463 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2464 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2465 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2466 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2467 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2468 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2469 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2470 * features/rs6000/powerpc-vsx32.c: Regenerate.
2471 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2472 * features/rs6000/powerpc-vsx64.c: Regenerate.
2473 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2474 * features/rs6000/rs6000.c: Regenerate.
2475 * features/rx.c: Regenerate.
2476 * features/s390-gs-linux64.c: Regenerate.
2477 * features/s390-linux32.c: Regenerate.
2478 * features/s390-linux32v1.c: Regenerate.
2479 * features/s390-linux32v2.c: Regenerate.
2480 * features/s390-linux64.c: Regenerate.
2481 * features/s390-linux64v1.c: Regenerate.
2482 * features/s390-linux64v2.c: Regenerate.
2483 * features/s390-te-linux64.c: Regenerate.
2484 * features/s390-tevx-linux64.c: Regenerate.
2485 * features/s390-vx-linux64.c: Regenerate.
2486 * features/s390x-gs-linux64.c: Regenerate.
2487 * features/s390x-linux64.c: Regenerate.
2488 * features/s390x-linux64v1.c: Regenerate.
2489 * features/s390x-linux64v2.c: Regenerate.
2490 * features/s390x-te-linux64.c: Regenerate.
2491 * features/s390x-tevx-linux64.c: Regenerate.
2492 * features/s390x-vx-linux64.c: Regenerate.
2493 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2494 from allocate_target_description.
2495 * target-descriptions.c (allocate_target_description): Update
2496 return type.
2497 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2498 allocate_target_description.
2499
2500 2020-10-07 Tom Tromey <tromey@adacore.com>
2501
2502 * unittests/search-memory-selftests.c: New file.
2503 * Makefile.in (SELFTESTS_SRCS): Add
2504 unittests/search-memory-selftests.c.
2505
2506 2020-10-07 Tom Tromey <tromey@adacore.com>
2507
2508 PR gdb/16930:
2509 * findcmd.c (_initialize_mem_search): Mention that the range is
2510 inclusive.
2511
2512 2020-10-07 Tom Tromey <tromey@adacore.com>
2513
2514 * target.h (simple_search_memory): Don't declare.
2515 * target.c (simple_search_memory): Move to gdbsupport.
2516 (default_search_memory): Update.
2517 * remote.c (remote_target::search_memory): Update.
2518
2519 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2520
2521 * Makefile.in (COMPILE): Add CXXFLAGS.
2522 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2523 (check-headers): Add CXXFLAGS.
2524
2525 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2526
2527 * arc-linux-tdep.h: New file.
2528 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2529 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2530 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2531 arc_linux_gregset, arc_linux_v2_regset,
2532 arc_linux_iterate_over_regset_sections,
2533 arc_linux_core_read_description): Implement.
2534 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2535 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2536 (arc_gdbarch_features_create): Add.
2537 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2538
2539 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2540
2541 * arch/arc.h: Rename "arc_gdbarch_features" to
2542 "arc_arch_features".
2543 * arc-tdep.h: Likewise.
2544 * arc-tdep.c: Likewise.
2545
2546 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2547
2548 * infcmd.c (attach_command): Remove the redundant call to
2549 `clear_proceed_status`.
2550
2551 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2552
2553 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2554
2555 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2556
2557 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2558 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2559 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2560
2561 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2564 (_initialize_break_catch_sig): Don't allocate array.
2565
2566 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * symtab.c (find_pc_line): Return unmapped addresses when the
2569 requested address is also unmapped.
2570
2571 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2574 tui/tui-out.h.
2575
2576 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2577
2578 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2579 type::is_vector instead of TYPE_VECTOR.
2580
2581 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2582
2583 * auto-load.c (auto_load_objfile_script_1): Don't use
2584 debugfile_holder as temporary variable when stripping drive
2585 letter.
2586
2587 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
2588
2589 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2590 Add TYPE_CODE_COMPLEX.
2591 (amd64_windows_return_value): Fix types returned via XMM0.
2592
2593 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2594
2595 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2596 AArch64/ARM maintainers.
2597
2598 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2599
2600 * NEWS: Mention set/show debug event-loop.
2601
2602 2020-10-02 Tom Tromey <tromey@adacore.com>
2603
2604 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2605 REG_EXTENDED.
2606
2607 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2608
2609 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2610 * procfs.c (procfs_inferior_created): Remove.
2611 (_initialize_procfs): Don't register procfs_inferior_created.
2612
2613 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2614
2615 * async-event.c (invoke_async_signal_handlers): Add debug
2616 print.
2617 (check_async_event_handlers): Likewise.
2618 * event-top.c (show_debug_event_loop): New function.
2619 (_initialize_event_top): Register "set debug event-loop"
2620 setting.
2621
2622 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2625 * debug.h: Remove.
2626 * infrun.c: Include gdbsupport/common-debug.h.
2627 * linux-nat.c: Likewise.
2628
2629 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2630
2631 * async-event.h (create_async_signal_handler): Add name
2632 parameter.
2633 (create_async_event_handler): Likewise.
2634 * async-event.c (struct async_signal_handler) <name>: New field.
2635 (struct async_event_handler) <name>: New field.
2636 (create_async_signal_handler): Assign name.
2637 (create_async_event_handler): Assign name.
2638 * event-top.c (async_init_signals): Pass name when creating
2639 handler.
2640 * infrun.c (_initialize_infrun): Likewise.
2641 * record-btrace.c (record_btrace_push_target): Likewise.
2642 * record-full.c (record_full_open): Likewise.
2643 * remote-notif.c (remote_notif_state_allocate): Likewise.
2644 * remote.c (remote_target::open_1): Likewise.
2645 * tui/tui-win.c (tui_initialize_win): Likewise.
2646
2647 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2648
2649 * async-event.c (initialize_async_signal_handlers): Pass name to
2650 add_file_handler
2651 * event-top.c (ui_register_input_event_handler): Likewise.
2652 * linux-nat.c (linux_nat_target::async): Likewise.
2653 * run-on-main-thread.c (_initialize_run_on_main_thread):
2654 Likewise
2655 * ser-base.c (reschedule): Likewise.
2656 (ser_base_async): Likewise.
2657 * tui/tui-io.c: Likewise.
2658 * top.h (struct ui) <num>: New field.
2659 * top.c (highest_ui_num): New variable.
2660 (ui::ui): Initialize num.
2661
2662 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2663
2664 * observable.h <inferior_created>: Remove parameters. Update all
2665 listeners.
2666 * inferior.h (post_create_inferior): Remove target parameter.
2667 Update all callers.
2668
2669 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2670
2671 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2672 and DW_MACRO_undef_strx.
2673 (dwarf_decode_macros): Likewise
2674 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2675 which is the value of DW_AT_str_offsets_base.
2676 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2677 str_offsets_base.
2678
2679 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2680
2681 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2682
2683 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2684
2685 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2686 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2687
2688 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2689
2690 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2691
2692 2020-09-30 Tom de Vries <tdevries@suse.de>
2693
2694 PR symtab/26683
2695 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2696
2697 2020-09-30 Tom Tromey <tromey@adacore.com>
2698
2699 * dwarf2/read.c (handle_variant): Use constant_value.
2700
2701 2020-09-29 Tom Tromey <tom@tromey.com>
2702
2703 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2704 (read_file_scope, dwarf2_get_pc_bounds)
2705 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2706 (read_structure_type, handle_struct_member_die)
2707 (read_enumeration_type, read_array_type, read_set_type)
2708 (read_tag_pointer_type, read_tag_reference_type)
2709 (read_subroutine_type, read_base_type, read_subrange_type)
2710 (read_full_die_1, partial_die_info::read)
2711 (partial_die_info::read, by, new_symbol)
2712 (dwarf2_const_value_data, dwarf2_const_value_attr)
2713 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2714 (prepare_one_comp_unit): Update.
2715 * dwarf2/attribute.h (DW_UNSND): Remove.
2716
2717 2020-09-29 Tom Tromey <tom@tromey.com>
2718
2719 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2720 (read_subroutine_type, partial_die_info::read)
2721 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2722 (dwarf2_add_member_fn): Update.
2723 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2724 * dwarf2/attribute.c (attribute::as_boolean): New method.
2725
2726 2020-09-29 Tom Tromey <tom@tromey.com>
2727
2728 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2729 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2730 method.
2731 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2732
2733 2020-09-29 Tom Tromey <tom@tromey.com>
2734
2735 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2736 the attribute's form.
2737
2738 2020-09-29 Tom Tromey <tom@tromey.com>
2739
2740 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2741 (dwarf2_add_member_fn): Update.
2742 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2743 * dwarf2/attribute.c (attribute::defaulted): New method, from
2744 is_valid_DW_AT_defaulted.
2745
2746 2020-09-29 Tom Tromey <tom@tromey.com>
2747
2748 * dwarf2/read.c (dw2_get_file_names_reader)
2749 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2750 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2751 (dwarf2_symbol_mark_computed): Use as_unsigned.
2752 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2753 method.
2754 <form_is_section_offset>: Update comment.
2755
2756 2020-09-29 Tom Tromey <tom@tromey.com>
2757
2758 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2759 dwarf2_default_access_attribute. Look up attribute.
2760 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2761 Update.
2762
2763 2020-09-29 Tom Tromey <tom@tromey.com>
2764
2765 * dwarf2/read.c (skip_one_die): Update.
2766 (read_full_die_1): Change how reprocessing is done.
2767 (partial_die_info::read): Update.
2768 (read_attribute_value): Remove need_reprocess parameter.
2769 (read_attribute): Likewise.
2770 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2771 New method.
2772
2773 2020-09-29 Tom Tromey <tom@tromey.com>
2774
2775 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2776 (dwarf2_const_value_attr, dump_die_shallow)
2777 (dwarf2_fetch_constant_bytes): Update.
2778 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2779 comment.
2780 <set_address>: New method.
2781 (DW_ADDR): Remove.
2782 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2783 (attribute::as_string, attribute::as_address): Add assert.
2784
2785 2020-09-29 Tom Tromey <tom@tromey.com>
2786
2787 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2788 (read_attribute_reprocess, read_attribute_value): Update.
2789 (read_attribute): Clear requires_reprocessing.
2790 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2791 form_requires_reprocessing>: New methods.
2792 <string_init>: Clear requires_reprocessing.
2793 <set_unsigned_reprocess>: New method.
2794 <name>: Shrink by one bit.
2795 <requires_reprocessing>: New member.
2796 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2797 method.
2798
2799 2020-09-29 Tom Tromey <tom@tromey.com>
2800
2801 * dwarf2/read.c (read_attribute_value): Update.
2802 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2803 set_unsigned>: New methods.
2804 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2805
2806 2020-09-29 Tom Tromey <tom@tromey.com>
2807
2808 * dwarf2/read.c (get_alignment, read_array_order)
2809 (read_attribute_value, dwarf2_const_value_attr)
2810 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2811 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2812 New methods.
2813 (DW_SND): Remove.
2814
2815 2020-09-29 Tom Tromey <tom@tromey.com>
2816
2817 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2818 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2819 Update.
2820 * dwarf2/attribute.h (struct attribute) <as_signature,
2821 set_signature>: New methods.
2822 (DW_SIGNATURE): Remove.
2823
2824 2020-09-29 Tom Tromey <tom@tromey.com>
2825
2826 * dwarf2/read.c (read_call_site_scope)
2827 (handle_data_member_location, dwarf2_add_member_fn)
2828 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2829 (partial_die_info::read, read_attribute_value)
2830 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2831 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2832 (dwarf2_symbol_mark_computed): Update.
2833 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2834 methods.
2835 (DW_BLOCK): Remove.
2836 * dwarf2/attribute.c (attribute::form_is_block): Add
2837 DW_FORM_data16.
2838
2839 2020-09-29 Tom Tromey <tom@tromey.com>
2840
2841 * dwarf2/read.c (read_cutu_die_from_dwo)
2842 (read_attribute_reprocess, read_attribute_value, read_attribute)
2843 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2844 (dwarf2_fetch_constant_bytes): Update.
2845 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2846 <set_string_noncanonical, set_string_canonical>: New methods.
2847 <string_is_canonical>: Update comment.
2848 <canonical_string_p>: Add assert.
2849 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2850 * dwarf2/attribute.c (attribute::form_is_string): New method.
2851 (attribute::string): Use it.
2852
2853 2020-09-29 Tom Tromey <tom@tromey.com>
2854
2855 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2856 (dump_die_shallow): Use canonical_string_p.
2857 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2858 method.
2859
2860 2020-09-29 Tom Tromey <tom@tromey.com>
2861
2862 * dwarf2/read.c (partial_die_info::read)
2863 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2864 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2865 attribute::as_string.
2866
2867 2020-09-29 Tom Tromey <tom@tromey.com>
2868
2869 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2870 DW_ADDR.
2871 (attribute::string): Don't use DW_STRING.
2872 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2873 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2874
2875 2020-09-29 Tom Tromey <tom@tromey.com>
2876
2877 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2878 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2879 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2880 * dwarf2/attribute.h (struct attribute): Rename methods.
2881 * dwarf2/attribute.c (attribute::as_address): Rename from
2882 value_as_address.
2883 (attribute::as_string): Rename from value_as_string.
2884
2885 2020-09-29 Tom Tromey <tom@tromey.com>
2886
2887 * dwarf2/read.c (partial_die_info::read) <case
2888 DW_AT_linkage_name>: Use value_as_string.
2889 (dwarf2_string_attr): Use value_as_string.
2890 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2891 method.
2892 * dwarf2/attribute.c (attribute::value_as_string): New method.
2893
2894 2020-09-29 Pedro Alves <pedro@palves.net>
2895
2896 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2897 defined before using '#pragma GCC diagnostic' instead of checking
2898 __clang__.
2899
2900 2020-09-28 Tom Tromey <tom@tromey.com>
2901
2902 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2903 (handle_signal_stop): Update.
2904 * procfs.c (procfs_target::insert_watchpoint): Update.
2905 * target.h (target_have_steppable_watchpoint): Now a function.
2906
2907 2020-09-28 Tom Tromey <tom@tromey.com>
2908
2909 * infrun.c (set_schedlock_func): Update.
2910 * target.h (target_can_lock_scheduler): Now a function.
2911
2912 2020-09-28 Tom Tromey <tom@tromey.com>
2913
2914 * inferior.h (class inferior) <has_execution>: Update.
2915 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2916 * valops.c (find_function_in_inferior)
2917 (value_allocate_space_in_inferior): Update.
2918 * top.c (kill_or_detach): Update.
2919 * target.c (target_preopen, set_target_permissions): Update.
2920 (target_has_execution_current): Remove.
2921 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2922 Update.
2923 * solib.c (update_solib_list, reload_shared_libraries): Update.
2924 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2925 * solib-dsbt.c (enable_break): Update.
2926 * score-tdep.c (score7_fetch_inst): Update.
2927 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2928 Update.
2929 * remote.c (remote_target::start_remote)
2930 (remote_target::remote_check_symbols, remote_target::open_1)
2931 (remote_target::remote_detach_1, remote_target::verify_memory)
2932 (remote_target::xfer_partial, remote_target::read_description)
2933 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2934 * record-full.c (record_full_open_1): Update.
2935 * record-btrace.c (record_btrace_target_open): Update.
2936 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2937 (value_nsstring): Update.
2938 * linux-thread-db.c (add_thread_db_info)
2939 (thread_db_find_new_threads_silently, check_thread_db_callback)
2940 (try_thread_db_load_1, record_thread): Update.
2941 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2942 Update.
2943 * linux-fork.c (checkpoint_command): Update.
2944 * infrun.c (set_non_stop, set_observer_mode)
2945 (check_multi_target_resumption, for_each_just_stopped_thread)
2946 (maybe_remove_breakpoints, normal_stop)
2947 (class infcall_suspend_state): Update.
2948 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2949 (info_program_command, attach_command): Update.
2950 * infcall.c (call_function_by_hand_dummy): Update.
2951 * inf-loop.c (inferior_event_handler): Update.
2952 * gcore.c (gcore_command, derive_heap_segment): Update.
2953 * exec.c (exec_file_command): Update.
2954 * eval.c (evaluate_subexp): Update.
2955 * compile/compile.c (compile_to_object): Update.
2956 * cli/cli-dump.c (restore_command): Update.
2957 * breakpoint.c (update_watchpoint)
2958 (update_inserted_breakpoint_locations)
2959 (insert_breakpoint_locations, get_bpstat_thread): Update.
2960 * target.h (target_has_execution): Remove macro.
2961 (target_has_execution_current): Don't declare.
2962 (target_has_execution): Rename from target_has_execution_1. Add
2963 argument default.
2964
2965 2020-09-28 Tom Tromey <tom@tromey.com>
2966
2967 * mi/mi-main.c (exec_reverse_continue)
2968 (mi_cmd_list_target_features): Update.
2969 * infrun.c (set_exec_direction_func): Update.
2970 * target.c (default_execution_direction): Update.
2971 * reverse.c (exec_reverse_once): Update.
2972 * target.h (target_can_execute_reverse): Now a function.
2973
2974 2020-09-28 Tom Tromey <tom@tromey.com>
2975
2976 * tui/tui-regs.c (tui_get_register)
2977 (tui_data_window::show_registers): Update.
2978 * thread.c (scoped_restore_current_thread::restore)
2979 (scoped_restore_current_thread::scoped_restore_current_thread):
2980 Update.
2981 * regcache-dump.c (regcache_print): Update.
2982 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2983 Update.
2984 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2985 * mep-tdep.c (current_me_module, current_options): Update.
2986 * linux-thread-db.c (thread_db_load): Update.
2987 * infcmd.c (registers_info, info_vector_command)
2988 (info_float_command): Update.
2989 * ia64-tdep.c (ia64_frame_prev_register)
2990 (ia64_sigtramp_frame_prev_register): Update.
2991 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2992 * gcore.c (derive_stack_segment): Update.
2993 * frame.c (get_current_frame, has_stack_frames): Update.
2994 * findvar.c (language_defn::read_var_value): Update.
2995 * arm-tdep.c (arm_pc_is_thumb): Update.
2996 * target.c (target_has_registers): Rename from
2997 target_has_registers_1.
2998 * target.h (target_has_registers): Remove macro.
2999 (target_has_registers): Rename from target_has_registers_1.
3000
3001 2020-09-28 Tom Tromey <tom@tromey.com>
3002
3003 * windows-tdep.c (tlb_make_value): Update.
3004 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3005 * thread.c (scoped_restore_current_thread::restore)
3006 (scoped_restore_current_thread::scoped_restore_current_thread)
3007 (thread_command): Update.
3008 * stack.c (backtrace_command_1, frame_apply_level_command)
3009 (frame_apply_all_command, frame_apply_command): Update.
3010 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3011 Update.
3012 * gcore.c (derive_stack_segment): Update.
3013 * frame.c (get_current_frame, has_stack_frames): Update.
3014 * auxv.c (info_auxv_command): Update.
3015 * ada-tasks.c (ada_build_task_list): Update.
3016 * target.c (target_has_stack): Rename from target_has_stack_1.
3017 * target.h (target_has_stack): Remove macro.
3018 (target_has_stack): Rename from target_has_stack_1.
3019
3020 2020-09-28 Tom Tromey <tom@tromey.com>
3021
3022 * target.c (target_has_memory): Rename from target_has_memory_1.
3023 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3024 * thread.c (scoped_restore_current_thread::restore)
3025 (scoped_restore_current_thread::scoped_restore_current_thread):
3026 Update.
3027 * frame.c (get_current_frame, has_stack_frames): Update.
3028 * target.h (target_has_memory): Remove macro.
3029 (target_has_memory): Rename from target_has_memory_1.
3030
3031 2020-09-28 Tom Tromey <tom@tromey.com>
3032
3033 * target.c (target_has_all_memory_1): Remove.
3034 * target.h (target_has_all_memory): Remove define.
3035 (target_has_all_memory_1): Don't declare.
3036
3037 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * ser-base.c: Adjust comments formatting.
3040
3041 2020-09-27 Tom Tromey <tom@tromey.com>
3042
3043 PR tui/25342:
3044 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3045
3046 2020-09-27 Tom Tromey <tom@tromey.com>
3047
3048 PR tui/25342:
3049 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3050
3051 2020-09-27 Tom Tromey <tom@tromey.com>
3052
3053 * unittests/tui-selftests.c: Update.
3054 * tui/tui-winsource.h (struct tui_source_window_base)
3055 <extra_margin, show_line_number, refresh_pad>: New methods.
3056 <m_max_length, m_pad>: New members.
3057 (tui_copy_source_line): Update.
3058 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3059 first_col, line_width, ndigits parameters. Add length.
3060 (tui_source_window_base::show_source_line): Write to pad. Line
3061 number now 0-based.
3062 (tui_source_window_base::refresh_pad): New method.
3063 (tui_source_window_base::show_source_content): Write to pad. Call
3064 refresh_pad.
3065 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3066 not refill.
3067 (tui_source_window_base::update_exec_info): Call
3068 show_line_number.
3069 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3070 method.
3071 <m_digits>: New member.
3072 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3073 and m_max_length.
3074 (tui_source_window::show_line_number): New method.
3075 * tui/tui-io.h (tui_puts): Fix comment.
3076 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3077 m_max_length.
3078
3079 2020-09-27 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-winsource.c
3082 (tui_source_window_base::set_is_exec_point_at): Don't call
3083 show_source_line.
3084
3085 2020-09-27 Tom Tromey <tom@tromey.com>
3086
3087 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3088 method.
3089 <erase>: Update.
3090 <cursor_x, cursor_y>: Remove.
3091 <m_inner_window>: New member.
3092 (tui_py_window::rerender): Create inner window.
3093 (tui_py_window::output): Write to inner window.
3094
3095 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3096
3097 PR python/26586
3098 * cli/cli-script.c (execute_control_commands): don't set
3099 instream to nullptr here as this breaks the from_tty argument
3100 to gdb.execute in Python.
3101 (execute_user_command): set instream to nullptr here instead.
3102
3103 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * infrun.h (infrun_debug_printf): Fix formatting.
3106 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3107
3108 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3109
3110 * compile/compile-object-load.h (struct munmap_list): Add
3111 explicitly-defined move constructor.
3112
3113 2020-09-24 Tom Tromey <tromey@adacore.com>
3114
3115 PR tui/26638:
3116 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3117 method.
3118 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3119 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3120 (tui_prev_win): Rewrite.
3121
3122 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3123
3124 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3125 in WOW64 processes as SIGINT.
3126 * nat/windows-nat.h: Make wow64_process a shared variable.
3127 * windows-nat.c: Remove static wow64_process variable.
3128
3129 2020-09-23 Tom Tromey <tom@tromey.com>
3130
3131 PR symtab/25470:
3132 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3133 offset and bit size.
3134 * printcmd.c (print_scalar_formatted): Handle zero-length
3135 integer.
3136 (print_scalar_formatted): Use bit_size_differs_p.
3137 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3138 constant.
3139 (union type_specific): <int_stuff>: New member.
3140 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3141 methods.
3142 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3143 TYPE_SPECIFIC_FIELD.
3144 (recursive_dump_type, copy_type_recursive): Update.
3145 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3146 DW_AT_data_bit_offset.
3147
3148 2020-09-23 Tom Tromey <tom@tromey.com>
3149
3150 * utils.h (class gdb_argv): Add move operators.
3151 <append>: New methods.
3152 * compile/compile.c (build_argc_argv): Remove.
3153 (compile_args_argc): Remove.
3154 (compile_args_argv): Change type.
3155 (set_compile_args): Simplify.
3156 (append_args): Remove.
3157 (filter_args): Remove argcp parameter.
3158 (get_args): Return gdb_argv. Simplify.
3159 (compile_to_object): Update.
3160
3161 2020-09-23 Tom Tromey <tom@tromey.com>
3162
3163 * compile/compile-object-run.c (do_module_cleanup)
3164 <~do_module_cleanup> :Remove.
3165 (do_module_cleanup): Update.
3166 * compile/compile-object-load.h (struct munmap_list): Add move
3167 assignment operator.
3168 <source_file>: Now a std::string.
3169 <munmap_list>: Rename. No longer a pointer.
3170 * compile/compile-object-load.c (struct setup_sections_data): Add
3171 constructor.
3172 <setup_one_section>: Declare.
3173 <munmap_list>: Move earlier.
3174 <m_bfd>: New member.
3175 <m_last_size, m_last_section_first, m_last_prot,
3176 m_last_max_alignment>: Rename, add initializers where needed.
3177 (setup_sections_data::setup_one_section): Rename from
3178 setup_sections. Update.
3179 (compile_object_load): Update. Don't use bfd_map_over_sections.
3180
3181 2020-09-23 Tom Tromey <tom@tromey.com>
3182
3183 * compile/compile-object-run.c (struct do_module_cleanup): Add
3184 parameters to constructor. Update destructor.
3185 <source_file, scope, scope_data, out_value_type, out_value_addr,
3186 munmap_list_head, objfile_name_string>: Remove.
3187 <module>: New member.
3188 (do_module_cleanup): Update.
3189 (compile_object_run): Update.
3190
3191 2020-09-23 Tom Tromey <tom@tromey.com>
3192
3193 * compile/compile.c (eval_compile_command): Update.
3194 * compile/compile-object-run.h (compile_object_run): Take a
3195 compile_module_up.
3196 * compile/compile-object-run.c (compile_object_run): Take a
3197 compile_module_up.
3198 * compile/compile-object-load.h (struct compile_module): Add
3199 constructor, destructor.
3200 (compile_module_up): New typedef.
3201 (compile_object_load): Return compile_object_up.
3202 * compile/compile-object-load.c (compile_object_load): Return
3203 compile_module_up.
3204
3205 2020-09-23 Tom Tromey <tom@tromey.com>
3206
3207 * compile/compile-object-run.c (struct do_module_cleanup): Add
3208 constructor, destructor.
3209 <objfile_name_string>: Don't use struct hack.
3210 (do_module_cleanup): Use delete.
3211 (compile_object_run): Use new.
3212
3213 2020-09-23 Tom Tromey <tom@tromey.com>
3214
3215 * compile/compile-cplus-types.c
3216 (compile_cplus_convert_struct_or_union): Use std::vector.
3217 (compile_cplus_convert_func): Likewise.
3218 * compile/compile-c-types.c (convert_func): Use std::vector.
3219
3220 2020-09-21 Tom Tromey <tromey@adacore.com>
3221
3222 * sparc-tdep.c (sparc32_skip_prologue): Use
3223 skip_prologue_using_sal.
3224
3225 2020-09-19 Tom Tromey <tom@tromey.com>
3226
3227 * symfile.c (add_section_size_callback): Remove.
3228 (load_one_section): Rename from load_section_callback. Change
3229 parameters.
3230 (generic_load): Use foreach.
3231
3232 2020-09-19 Tom Tromey <tom@tromey.com>
3233
3234 * exec.c (add_to_section_table): Remove.
3235 (build_section_table): Use foreach.
3236
3237 2020-09-19 Tom Tromey <tom@tromey.com>
3238
3239 * elfread.c (elf_locate_sections): Change parameters.
3240 (elf_symfile_read): Use foreach.
3241
3242 2020-09-19 Tom Tromey <tom@tromey.com>
3243
3244 * cli/cli-dump.c (struct callback_data): Remove.
3245 (restore_one_section): Rename from restore_section_callback.
3246 Change parameters.
3247 (restore_binary_file): Change parameters.
3248 (restore_command): Use foreach.
3249
3250 2020-09-19 Tom Tromey <tom@tromey.com>
3251
3252 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3253 (gcore_copy_callback): Likewise.
3254 (gcore_memory_sections): Use foreach.
3255
3256 2020-09-19 Tom Tromey <tom@tromey.com>
3257
3258 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3259 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3260 parameters.
3261 (generic_elf_osabi_sniffer): Use foreach.
3262 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3263 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3264
3265 2020-09-19 Tom Tromey <tom@tromey.com>
3266
3267 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3268 (dwarf2_get_dwz_file): Use foreach.
3269 (dwarf2_locate_dwo_sections): Change parameters.
3270 (open_and_init_dwo_file): Use foreach.
3271 (dwarf2_locate_common_dwp_sections): Change parameters.
3272 (open_and_init_dwp_file): Use foreach.
3273
3274 2020-09-19 Tom Tromey <tom@tromey.com>
3275
3276 * symfile.h: (find_lowest_section): Don't declare.
3277 * symfile.c (find_lowest_section): Now static. Change
3278 parameters.
3279 (struct place_section_arg): Remove.
3280 (place_section): Change parameters.
3281 (addr_info_make_relative): Use foreach.
3282 (symfile_dummy_outputs): Remove.
3283 (default_symfile_relocate): Use foreach.
3284
3285 2020-09-19 Tom Tromey <tom@tromey.com>
3286
3287 * objfiles.c (add_to_objfile_sections): Rename from
3288 add_to_objfile_sections_full.
3289 (add_to_objfile_sections): Remove.
3290 (build_objfile_section_table): Use foreach.
3291
3292 2020-09-19 Tom Tromey <tom@tromey.com>
3293
3294 * stap-probe.c (get_stap_base_address_1): Remove.
3295 (get_stap_base_address): Use foreach.
3296
3297 2020-09-19 Tom Tromey <tom@tromey.com>
3298
3299 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3300 parameters.
3301 (gdb_bfd_close_or_warn): Use foreach.
3302
3303 2020-09-19 Tom Tromey <tom@tromey.com>
3304
3305 * corelow.c (add_to_thread_list): Change parameters.
3306 (core_target_open): Use foreach.
3307
3308 2020-09-19 Tom Tromey <tom@tromey.com>
3309
3310 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3311 existing function.
3312
3313 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3316 for arrays.
3317
3318 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * eval.c: Remove 'f-lang.h' include.
3321 (value_f90_subarray): Moved to f-lang.c.
3322 (eval_call): Renamed to...
3323 (evaluate_subexp_do_call): ...this, is no longer static, header
3324 comment moved into header file.
3325 (evaluate_funcall): Update call to eval_call.
3326 (skip_undetermined_arglist): Moved to f-lang.c.
3327 (fortran_value_subarray): Likewise.
3328 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3329 moved to evaluate_subexp_f.
3330 (calc_f77_array_dims): Moved to f-lang.c
3331 * expprint.c (print_subexp_funcall): New function.
3332 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3333 moved to print_subexp_f, OP_FUNCALL uses new function.
3334 (dump_subexp_body_funcall): New function.
3335 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3336 moved to dump_subexp_f, OP_FUNCALL uses new function.
3337 * expression.h (evaluate_subexp_do_call): Declare.
3338 * f-lang.c (value_f90_subarray): Moved from eval.c.
3339 (skip_undetermined_arglist): Likewise.
3340 (calc_f77_array_dims): Likewise.
3341 (fortran_value_subarray): Likewise.
3342 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3343 (operator_length_f): Likewise.
3344 (print_subexp_f): Likewise.
3345 (dump_subexp_body_f): Likewise.
3346 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3347 declaration of this operation to here.
3348 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3349 support moved to operator_length_f.
3350 * parser-defs.h (dump_subexp_body_funcall): Declare.
3351 (print_subexp_funcall): Declare.
3352 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3353 fortran-operator.def.
3354
3355 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * eval.c (fortran_value_subarray): New function, content is taken
3358 from...
3359 (evaluate_subexp_standard): ...here, in two places. Now arrays
3360 and strings both call the new function.
3361 (calc_f77_array_dims): Add header comment, handle strings.
3362
3363 2020-09-18 Victor Collod <vcollod@nvidia.com>
3364
3365 PR gdb/26635
3366 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3367 (i386_analyze_prologue): Call i386_skip_endbr.
3368
3369 2020-09-18 Tom Tromey <tromey@adacore.com>
3370
3371 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3372 (windows_nat_target::wait): Update.
3373 * target/wait.h (enum target_wait_flag): New. Use
3374 DEF_ENUM_FLAGS_TYPE.
3375 * target/target.h (target_wait): Change type of options.
3376 * target.h (target_options_to_string, default_target_wait):
3377 Update.
3378 (struct target_ops) <wait>: Change type of options.
3379 * target.c (target_wait, default_target_wait, do_option): Change
3380 type of "options".
3381 (target_options_to_string): Likewise.
3382 * target-delegates.c: Rebuild.
3383 * target-debug.h (target_debug_print_target_wait_flags): Rename
3384 from target_debug_print_options.
3385 * sol-thread.c (class sol_thread_target) <wait>: Update.
3386 (sol_thread_target::wait): Update.
3387 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3388 (rs6000_nat_target::wait): Update.
3389 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3390 Update.
3391 (remote_target::wait_ns, remote_target::wait_as): Change type of
3392 "options".
3393 (remote_target::wait): Update.
3394 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3395 (gdbsim_target::wait): Update.
3396 * record-full.c (class record_full_base_target) <wait>: Update.
3397 (record_full_wait_1): Change type of "options".
3398 (record_full_base_target::wait): Update.
3399 * record-btrace.c (class record_btrace_target) <wait>: Update.
3400 (record_btrace_target::wait): Update.
3401 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3402 Update.
3403 (ravenscar_thread_target::wait): Update.
3404 * procfs.c (class procfs_target) <wait>: Update.
3405 (procfs_target::wait): Update.
3406 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3407 * obsd-nat.c (obsd_nat_target::wait): Update.
3408 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3409 (nto_procfs_target::wait): Update.
3410 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3411 * nbsd-nat.c (nbsd_wait): Change type of "options".
3412 (nbsd_nat_target::wait): Update.
3413 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3414 (thread_db_target::wait): Update.
3415 * linux-nat.h (class linux_nat_target) <wait>: Update.
3416 * linux-nat.c (linux_nat_target::wait): Update.
3417 (linux_nat_wait_1): Update.
3418 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3419 "options".
3420 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3421 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3422 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3423 (go32_nat_target::wait): Update.
3424 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3425 * gnu-nat.c (gnu_nat_target::wait): Update.
3426 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3427 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3428 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3429 * darwin-nat.c (darwin_nat_target::wait): Update.
3430 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3431 (bsd_uthread_target::wait): Update.
3432 * aix-thread.c (class aix_thread_target) <wait>: Update.
3433 (aix_thread_target::wait): Update.
3434
3435 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * compile/compile-object-run.c (create_copied_type_recursive): New
3438 function.
3439 (compile_object_run): Use new function.
3440
3441 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3442
3443 * NEWS: Mention x86_64 Cygwin core file support.
3444
3445 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3446
3447 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3448 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3449
3450 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3451
3452 * windows-tdep.h: Add prototypes.
3453 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3454 (i386_windows_core_pid_to_str): Move and rename ...
3455 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3456 (windows_core_pid_to_str): ... and here.
3457 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3458
3459 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3460 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3461 (amd64_windows_init_abi_common): ... and register.
3462
3463 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3464
3465 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3466 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3467
3468 2020-09-18 Pedro Alves <pedro@palves.net>
3469
3470 PR gdb/26631
3471 * thread.c (thread_find_command): Switch inferior before calling
3472 target methods.
3473
3474 2020-09-17 Tom Tromey <tromey@adacore.com>
3475
3476 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3477 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3478 (tdesc_arch_data_up): New typedef.
3479 (tdesc_use_registers, tdesc_data_alloc): Update.
3480 (tdesc_data_cleanup): Don't declare.
3481 * target-descriptions.c (tdesc_data_alloc): Return a
3482 tdesc_arch_data_up.
3483 (tdesc_arch_data_deleter::operator()): Rename from
3484 tdesc_data_cleanup. Change argument type.
3485 (tdesc_use_registers): Change early_data to an rvalue reference.
3486 (tdesc_use_registers): Don't use delete.
3487 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3488 * s390-tdep.c (s390_gdbarch_init): Update.
3489 * rx-tdep.c (rx_gdbarch_init): Update.
3490 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3491 * riscv-tdep.c (riscv_gdbarch_init): Update.
3492 * or1k-tdep.c (or1k_gdbarch_init): Update.
3493 * nios2-tdep.c (nios2_gdbarch_init): Update.
3494 * nds32-tdep.c (nds32_gdbarch_init): Update.
3495 * mips-tdep.c (mips_gdbarch_init): Update.
3496 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3497 * m68k-tdep.c (m68k_gdbarch_init): Update.
3498 * i386-tdep.c (i386_gdbarch_init): Update.
3499 * arm-tdep.c (arm_gdbarch_init): Update.
3500 * arc-tdep.c (arc_tdesc_init): Update.
3501 (arc_gdbarch_init): Update.
3502 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3503
3504 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3505
3506 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3507 for WOW64 processes.
3508
3509 2020-09-17 Tom Tromey <tom@tromey.com>
3510
3511 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3512
3513 2020-09-17 Tom Tromey <tom@tromey.com>
3514
3515 * value.c (preserve_values): Update.
3516 * python/py-type.c (save_objfile_types): Update.
3517 * guile/scm-type.c (save_objfile_types): Update.
3518 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3519 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3520 * compile/compile-object-run.c (compile_object_run): Update.
3521
3522 2020-09-17 Tom Tromey <tom@tromey.com>
3523
3524 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3525 Remove.
3526 <m_table>: Now htab_up.
3527 * typeprint.c (typedef_hash_table::recursively_update)
3528 (typedef_hash_table::add_template_parameters)
3529 (typedef_hash_table::typedef_hash_table): Update.
3530 (typedef_hash_table::~typedef_hash_table): Remove.
3531 (typedef_hash_table::typedef_hash_table)
3532 (typedef_hash_table::find_global_typedef)
3533 (typedef_hash_table::find_typedef): Update.
3534
3535 2020-09-17 Tom Tromey <tom@tromey.com>
3536
3537 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3538
3539 2020-09-17 Tom Tromey <tom@tromey.com>
3540
3541 * linespec.c (class decode_compound_collector)
3542 <~decode_compound_collector>: Remove.
3543 <m_unique_syms>: Now htab_up.
3544 (decode_compound_collector::operator ()): Update.
3545 (class symtab_collector) <~symtab_collector>: Remove.
3546 <m_symtab_table>: Now htab_up.
3547 (symtab_collector::operator ()): Update.
3548
3549 2020-09-17 Tom Tromey <tom@tromey.com>
3550
3551 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3552 (filename_seen_cache::clear): Update.
3553 (~filename_seen_cache): Remove.
3554 (filename_seen_cache::seen): Update.
3555 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3556 htab_up.
3557 <~filename_seen_cache>: Remove.
3558 <traverse>: Update.
3559
3560 2020-09-17 Tom Tromey <tom@tromey.com>
3561
3562 * completer.c (completion_tracker::discard_completions)
3563 (completion_tracker::~completion_tracker)
3564 (completion_tracker::maybe_add_completion)
3565 (completion_tracker::remove_completion)
3566 (completion_tracker::recompute_lowest_common_denominator)
3567 (completion_tracker::build_completion_result): Update.
3568 * completer.h (class completion_tracker) <have_completions>:
3569 Update.
3570 <m_entries_hash>: Now htab_up.
3571
3572 2020-09-17 Tom Tromey <tom@tromey.com>
3573
3574 * breakpoint.c (ambiguous_names_p): Use htab_up.
3575
3576 2020-09-17 Tom Tromey <tom@tromey.com>
3577
3578 * auto-load.c (struct auto_load_pspace_info)
3579 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3580 <loaded_script_files, loaded_script_texts>: Change type to
3581 htab_up.
3582 (~auto_load_pspace_info) Remove.
3583 (init_loaded_scripts_info, maybe_add_script_file)
3584 (maybe_add_script_text, auto_load_info_scripts): Update.
3585
3586 2020-09-17 Tom Tromey <tromey@adacore.com>
3587
3588 * c-exp.y (name_obstack): Now static.
3589
3590 2020-09-17 Chungyi Chi <demonic@csie.io>
3591
3592 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3593
3594 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3597 (add_solib_catchpoint): Likewise.
3598 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3599 to bool.
3600 (add_solib_catchpoint): Change int parameter/variable to bool.
3601 (catch_load_or_unload): Likewise.
3602 (init_catchpoint): Likewise.
3603 (create_fork_vfork_event_catchpoint): Likewise.
3604 (catch_fork_command_1): Likewise.
3605 (catch_exec_command_1): Likewise.
3606
3607 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3610 Change instance_flags to m_instance_flags.
3611
3612 2020-09-16 Tom Tromey <tromey@adacore.com>
3613
3614 PR gdb/26598:
3615 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3616
3617 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3618
3619 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3620 PL_FLAG_EXEC.
3621 (fbsd_nat_target::insert_exec_catchpoint)
3622 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3623 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3624 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3625
3626 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3627
3628 * configure.ac: Remove check for kinfo_getvmmap().
3629 * configure, config.in: Regenerate.
3630 * fbsd-nat.c (fbsd_read_mapping): Remove
3631 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3632 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3633 kinfo_get_vmmap() are always present.
3634
3635 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3636
3637 * fbsd-nat.c: Always include support for
3638 TARGET_OBJECT_SIGNAL_INFO.
3639
3640 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3641
3642 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3643 sysctl and remove procfs fallback.
3644
3645 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3646
3647 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3648 * fbsd-nat.h: Likewise.
3649
3650 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3653 argument.
3654
3655 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3656
3657 * ada-lang.c (ada_language_data): Delete.
3658 (ada_language): Remove references to ada_language_data.
3659 * c-lang.c (c_language_data): Delete.
3660 (c_language): Remove references to c_language_data.
3661 (cplus_language_data): Delete.
3662 (cplus_language): Remove references to cplus_language_data.
3663 (asm_language_data): Delete.
3664 (asm_language): Remove references to asm_language_data.
3665 (minimal_language_data): Delete.
3666 (minimal_language): Remove references to minimal_language_data.
3667 * d-lang.c (d_language_data): Delete.
3668 (d_language): Remove references to d_language_data.
3669 * f-lang.c (f_language_data): Delete.
3670 (f_language): Remove references to f_language_data.
3671 * go-lang.c (go_language_data): Delete.
3672 (go_language): Remove references to go_language_data.
3673 * language.c (unknown_language_data): Delete.
3674 (unknown_language): Remove references to unknown_language_data.
3675 (auto_language_data): Delete.
3676 (auto_language): Remove references to auto_language_data.
3677 * language.h (language_data): Delete struct.
3678 (language_defn): No longer inherit from language_data.
3679 * m2-lang.c (m2_language_data): Delete.
3680 (m2_language): Remove references to m2_language_data.
3681 * objc-lang.c (objc_language_data): Delete.
3682 (objc_language): Remove references to objc_language_data.
3683 * opencl-lang.c (opencl_language_data): Delete.
3684 (opencl_language): Remove references to opencl_language_data.
3685 * p-lang.c (pascal_language_data): Delete.
3686 (pascal_language): Remove references to pascal_language_data.
3687 * rust-lang.c (rust_language_data): Delete.
3688 (rust_language): Remove references to rust_language_data.
3689
3690 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3691
3692 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3693 initializer.
3694 (ada_language::opcode_print_table): New member function.
3695 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3696 (c_language::opcode_print_table): New member function.
3697 (cplus_language_data): Remove la_op_print_tab initializer.
3698 (cplus_language::opcode_print_table): New member function.
3699 (asm_language_data): Remove la_op_print_tab initializer.
3700 (asm_language::opcode_print_table): New member function.
3701 (minimal_language_data): Remove la_op_print_tab initializer.
3702 (minimal_language::opcode_print_table): New member function.
3703 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3704 (d_language::opcode_print_table): New member function.
3705 * expprint.c (print_subexp_standard): Update call to
3706 opcode_print_table.
3707 (op_string): Likewise.
3708 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3709 (f_language::opcode_print_table): New member function.
3710 * go-lang.c (go_language_data): Remove la_op_print_tab
3711 initializer.
3712 (go_language::opcode_print_table): New member function.
3713 * language.c (unknown_language_data): Remove la_op_print_tab
3714 initializer.
3715 (unknown_language::opcode_print_table): New member function.
3716 (auto_language_data): Remove la_op_print_tab initializer.
3717 (auto_language::opcode_print_table): New member function.
3718 * language.h (language_data): Remove la_op_print_tab field.
3719 (language_defn::opcode_print_table): Declare new member function.
3720 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3721 initializer.
3722 (m2_language::opcode_print_table): New member function.
3723 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3724 initializer.
3725 (objc_language::opcode_print_table): New member function.
3726 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3727 initializer.
3728 (opencl_language::opcode_print_table): New member function.
3729 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3730 initializer.
3731 (pascal_language::opcode_print_table): New member function.
3732 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3733 initializer.
3734 (rust_language::opcode_print_table): New member function.
3735
3736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3739 (ada_language::expression_ops): New member function.
3740 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3741 (c_language::expression_ops): New member function.
3742 (cplus_language_data): Remove la_exp_desc initializer.
3743 (cplus_language::expression_ops): New member function.
3744 (asm_language_data): Remove la_exp_desc initializer.
3745 (asm_language::expression_ops): New member function.
3746 (minimal_language_data): Remove la_exp_desc initializer.
3747 (minimal_language::expression_ops): New member function.
3748 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3749 (d_language::expression_ops): New member function.
3750 * eval.c (evaluate_subexp): Update call to expression_ops.
3751 * expprint.c (print_subexp): Likewise.
3752 (op_name): Likewise.
3753 (dump_subexp_body): Likewise.
3754 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3755 (f_language::expression_ops): New member function.
3756 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3757 (go_language::expression_ops): New member function.
3758 * language.c (language_defn::expression_ops): New function.
3759 (unknown_language_data): Remove la_exp_desc initializer.
3760 (auto_language_data): Likewise.
3761 * language.h (language_data): Remove la_exp_desc field.
3762 (language_defn::expression_ops): Declare new member function.
3763 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3764 (m2_language::expression_ops): New member function.
3765 * objc-lang.c (objc_language_data): Remove la_exp_desc
3766 initializer.
3767 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3768 initializer.
3769 (opencl_language::expression_ops): New member function.
3770 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3771 * parse.c (operator_length): Update call to expression_ops.
3772 (exp_iterate): Likewise.
3773 * rust-lang.c (rust_language_data): Remove la_exp_desc
3774 initializer.
3775 (ruse_language::expression_ops): New member function.
3776
3777 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3778
3779 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3780 initializer.
3781 (ada_language::varobj_ops): New member function.
3782 * c-lang.c (c_language_data): Remove la_varobj_ops
3783 initializer.
3784 (cplus_language_data): Likewise.
3785 (cplus_language::varobj_ops): New member function.
3786 (asm_language_data): Remove la_varobj_ops initializer.
3787 (minimal_language_data): Likewise.
3788 * d-lang.c (d_language_data): Likewise.
3789 * f-lang.c (f_language_data): Likewise.
3790 * go-lang.c (go_language_data): Likewise.
3791 * language.c (language_defn::varobj_ops): New function.
3792 (unknown_language_data): Remove la_varobj_ops
3793 initializer.
3794 (auto_language_data): Likewise.
3795 * language.h (language_data): Remove la_varobj_ops field.
3796 (language_defn::varobj_ops): Declare new member function.
3797 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3798 * objc-lang.c (objc_language_data): Likewise.
3799 * opencl-lang.c (opencl_language_data): Likewise.
3800 * p-lang.c (pascal_language_data): Likewise.
3801 * rust-lang.c (rust_language_data): Likewise.
3802 * varobj.c (varobj_create): Update call to varobj_ops.
3803 * varobj.h (default_varobj_ops): Delete define.
3804
3805 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3808 initializer.
3809 * c-lang.c (c_language_data): Likewise.
3810 (c_language::macro_expansion): New member function.
3811 (cplus_language_data): Likewise.
3812 (cplus_language::macro_expansion): New member function.
3813 (asm_language_data): Likewise.
3814 (asm_language::macro_expansion): New member function.
3815 (minimal_language_data): Likewise.
3816 (minimal_language::macro_expansion): New member function.
3817 * d-lang.c (d_language_data): Remove la_macro_expansion
3818 initializer.
3819 * f-lang.c (f_language_data): Likewise.
3820 * go-lang.c (go_language_data): Likewise.
3821 * language.c (unknown_language_data): Likewise.
3822 (auto_language_data): Likewise.
3823 * language.h (language_data): Remove la_macro_expansion field.
3824 (language_defn::macro_expansion): New member function.
3825 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3826 initializer.
3827 * objc-lang.c (objc_language_data): Likewise.
3828 (objc_language::macro_expansion): New member function.
3829 * opencl-lang.c (opencl_language_data): Likewise.
3830 (opencl_language::macro_expansion): New member function.
3831 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3832 initializer.
3833 * rust-lang.c (rust_language_data): Likewise.
3834 * symtab.c (default_collect_symbol_completion_matches_break_on):
3835 Update call to macro_expansion.
3836
3837 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * ada-lang.c (ada_language_data): Remove la_array_ordering
3840 initializer.
3841 * c-lang.c (c_language_data): Likewise.
3842 (cplus_language_data): Likewise.
3843 (asm_language_data): Likewise.
3844 (minimal_language_data): Likewise.
3845 * d-lang.c (d_language_data): Likewise.
3846 * dwarf2/read.c (read_array_order): Update for call to
3847 array_ordering.
3848 * f-lang.c (f_language_data): Remove la_array_ordering
3849 initializer.
3850 (f_language::array_ordering): New member function.
3851 * go-lang.c (go_language_data): Remove la_array_ordering
3852 initializer.
3853 * language.c (unknown_language_data): Likewise.
3854 (auto_language_data): Likewise.
3855 * language.h (language_data): Delete la_array_ordering field.
3856 (language_defn::array_ordering): New member function.
3857 * m2-lang.c (m2_language_data): Remove la_array_ordering
3858 initializer.
3859 * objc-lang.c (objc_language_data): Likewise.
3860 * opencl-lang.c (opencl_language_data): Likewise.
3861 * p-lang.c (pascal_language_data): Likewise.
3862 * rust-lang.c (rust_language_data): Likewise.
3863
3864 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3867 initializer.
3868 * c-lang.c (c_language_data): Likewise.
3869 (cplus_language_data): Likewise.
3870 (asm_language_data): Likewise.
3871 (minimal_language_data): Likewise.
3872 * d-lang.c (d_language_data): Likewise.
3873 * f-lang.c (f_language_data): Likewise.
3874 (f_language::case_sensitivity): New member function.
3875 * go-lang.c (go_language_data): Remove la_case_sensitivity
3876 initializer.
3877 * language.c (enum case_mode): Moved here from language.h.
3878 (case_mode): Make static.
3879 (show_case_command): Update for case_sensitivity being a method.
3880 (set_case_command): Likewise.
3881 (set_range_case): Likewise.
3882 (unknown_language_data): Remove la_case_sensitivity initializer.
3883 (auto_language_data): Likewise.
3884 * language.h (case_mode): Delete, move enum declaration to
3885 language.c.
3886 (language_data): Delete la_case_sensitivity field.
3887 (language_defn::case_sensitivity): New member function.
3888 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3889 initializer.
3890 * objc-lang.c (objc_language_data): Likewise.
3891 * opencl-lang.c (opencl_language_data): Likewise.
3892 * p-lang.c (pascal_language_data): Likewise.
3893 * rust-lang.c (rust_language_data): Likewise.
3894
3895 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3896
3897 * ada-lang.c (ada_language_data): Remove la_range_check
3898 initializer.
3899 * c-lang.c (c_language_data): Likewise.
3900 (cplus_language_data): Likewise.
3901 (asm_language_data): Likewise.
3902 (minimal_language_data): Likewise.
3903 * d-lang.c (d_language_data): Likewise.
3904 * f-lang.c (f_language_data): Likewise.
3905 (f_language::range_checking_on_by_default): New member function.
3906 * go-lang.c (go_language_data): Remove la_range_check initializer.
3907 * language.c (enum range_mode): Moved here from language.h.
3908 (range_mode): Made static.
3909 (show_range_command): Update to use
3910 range_checking_on_by_default.
3911 (set_range_command): Likewise.
3912 (set_range_case): Likewise.
3913 (unknown_language_data): Remove la_range_check initializer.
3914 (auto_language_data): Likewise.
3915 * language.h (range_mode): Delete. Enum definition moved to
3916 language.c.
3917 (language_data): Remove la_range_check field.
3918 (language_defn::range_checking_on_by_default): New member
3919 function.
3920 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3921 (m2_language::range_checking_on_by_default): New member function.
3922 * objc-lang.c (objc_language_data): Remove la_range_check
3923 initializer.
3924 * opencl-lang.c (opencl_language_data): Likewise.
3925 * p-lang.c (pascal_language_data): Likewise.
3926 (pascal_language::range_checking_on_by_default): New member
3927 function.
3928 * rust-lang.c (rust_language_data): Remove la_range_check
3929 initializer.
3930 (rust_language::range_checking_on_by_default): New member
3931 function.
3932
3933 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * dwarf2/read.c (dwarf2_physname): Remove special case for
3936 language_go.
3937 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3938 member function.
3939
3940 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * ada-lang.c (ada_language_data): Remove
3943 la_store_sym_names_in_linkage_form_p initializer.
3944 (ada_language::store_sym_names_in_linkage_form_p): New member
3945 function.
3946 * c-lang.c (c_language_data): Remove
3947 la_store_sym_names_in_linkage_form_p initializer.
3948 (c_language::store_sym_names_in_linkage_form_p): New member
3949 function.
3950 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3951 initializer.
3952 (asm_language_data): Likewise.
3953 (asm_language::store_sym_names_in_linkage_form_p): New member
3954 function.
3955 (minimal_language_data): Remove
3956 la_store_sym_names_in_linkage_form_p initializer.
3957 (minimal_language::store_sym_names_in_linkage_form_p): New member
3958 function.
3959 * d-lang.c (d_language_data): Remove
3960 la_store_sym_names_in_linkage_form_p initializer.
3961 * dwarf2/read.c (dwarf2_physname): Update call to
3962 store_sym_names_in_linkage_form_p.
3963 * f-lang.c (f_language_data): Remove
3964 la_store_sym_names_in_linkage_form_p initializer.
3965 * go-lang.c (go_language_data): Remove
3966 la_store_sym_names_in_linkage_form_p initializer.
3967 * language.c (unknown_language_data): Remove
3968 la_store_sym_names_in_linkage_form_p initializer.
3969 (unknown_language::store_sym_names_in_linkage_form_p): New member
3970 function.
3971 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3972 initializer.
3973 (auto_language::store_sym_names_in_linkage_form_p): New member
3974 function.
3975 * language.h (language_data): Remove
3976 la_store_sym_names_in_linkage_form_p member variable.
3977 (language_defn::store_sym_names_in_linkage_form_p): New member
3978 function.
3979 * m2-lang.c (m2_language_data): Remove
3980 la_store_sym_names_in_linkage_form_p initializer.
3981 * objc-lang.c (objc_language_data): Likewise.
3982 * opencl-lang.c (opencl_language_data): Likewise.
3983 * p-lang.c (pascal_language_data): Likewise.
3984 * rust-lang.c (rust_language_data): Likewise.
3985
3986 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3987
3988 * ada-lang.c (ada_language_data): Remove string_lower_bound
3989 initializer.
3990 * c-lang.c (c_language_data): Likewise.
3991 (cplus_language_data): Likewise.
3992 (asm_language_data): Likewise.
3993 (minimal_language_data): Likewise.
3994 * d-lang.c (d_language_data): Likewise.
3995 * f-lang.c (f_language_data): Likewise.
3996 * go-lang.c (go_language_data): Likewise.
3997 * language.c (unknown_language_data): Likewise.
3998 (auto_language_data): Likewise.
3999 * language.h (language_data): Remove string_lower_bound field.
4000 (language_defn::string_lower_bound): New member function.
4001 * m2-lang.c (m2_language_data): Remove string_lower_bound
4002 initializer.
4003 (m2_language::string_lower_bound): New member function.
4004 * objc-lang.c (objc_language_data): Remove string_lower_bound
4005 initializer.
4006 * opencl-lang.c (opencl_language_data): Likewise.
4007 * p-lang.c (pascal_language_data): Likewise.
4008 * rust-lang.c (rust_language_data): Likewise.
4009 * valops.c (value_cstring): Update call to string_lower_bound.
4010 (value_string): Likewise.
4011 * value.c (allocate_repeated_value): Likewise.
4012
4013 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4014
4015 * valops.c (value_repeat): Fix incorrect argument name in comment.
4016
4017 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * ada-lang.c (ada_language_data): Remove c_style_arrays
4020 initializer.
4021 (ada_language::c_style_arrays_p): New member fuction.
4022 * c-lang.c (c_language_data): Remove c_style_arrays
4023 initializer.
4024 (cplus_language_data): Likewise.
4025 (asm_language_data): Likewise.
4026 (minimal_language_data): Likewise.
4027 * d-lang.c (d_language_data): Likewise.
4028 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4029 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4030 (f_language::c_style_arrays_p): New member function.
4031 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4032 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4033 * language.c (unknown_language_data): Remove c_style_arrays
4034 initializer.
4035 (auto_language_data): Likewise.
4036 * language.h (language_data): Remove c_style_arrays field.
4037 (language_defn::c_style_arrays_p): New member function.
4038 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4039 (m2_language::c_style_arrays_p): New member function.
4040 * objc-lang.c (objc_language_data): Remove c_style_arrays
4041 initializer.
4042 * opencl-lang.c (opencl_language_data): Likewise.
4043 * p-lang.c (pascal_language_data): Likewise.
4044 * rust-lang.c (rust_language_data): Likewise.
4045 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4046 and update local variable to a bool.
4047 * valops.c (value_cast): Update call to c_style_arrays_p.
4048 (value_array): Likewise.
4049 * value.c (coerce_array): Likewise.
4050
4051 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4052
4053 * ada-lang.c (ada_language_data): Remove la_language initializer.
4054 * c-lang.c (c_language_data): Likewise.
4055 (cplus_language_data): Likewise.
4056 (asm_language_data): Likewise.
4057 (minimal_language_data): Likewise.
4058 * d-lang.c (d_language_data): Likewise.
4059 * f-lang.c (f_language_data): Likewise.
4060 * go-lang.c (go_language_data): Likewise.
4061 * language.c (unknown_language_data): Likewise.
4062 (auto_language_data): Likewise.
4063 * language.h (language_data): Remove la_language field.
4064 (language_defn::language_defn): Initialise la_language field.
4065 (language_defn::la_language): New member variable.
4066 * m2-lang.c (m2_language_data): Remove la_language field.
4067 * objc-lang.c (objc_language_data): Likewise.
4068 * opencl-lang.c (opencl_language_data): Likewise.
4069 * p-lang.c (pascal_language_data): Likewise.
4070 * rust-lang.c (rust_language_data): Likewise.
4071
4072 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4073
4074 * ada-lang.c (ada_extensions): Delete, moved into
4075 ada_language::filename_extensions.
4076 (ada_language_data): Remove la_filename_extensions initializer.
4077 (ada_language::filename_extensions): New member function.
4078 * c-lang.c (c_extensions): Delete, moved into
4079 c_language::filename_extensions.
4080 (c_language_data): Remove la_filename_extensions initializer.
4081 (c_language::filename_extensions): New member function.
4082 (cplus_extensions): Delete, moved into
4083 cplus_language::filename_extensions.
4084 (cplus_language_data): Remove la_filename_extensions initializer.
4085 (cplus_language::filename_extensions): New member function.
4086 (asm_extensions): Delete, moved into
4087 asm_language::filename_extensions.
4088 (asm_language_data): Remove la_filename_extensions initializer.
4089 (asm_language::filename_extensions): New member function.
4090 (minimal_language_data): Remove la_filename_extensions
4091 initializer.
4092 * d-lang.c (d_extensions): Delete, moved into
4093 d_language::filename_extensions.
4094 (d_language_data): Remove la_filename_extensions initializer.
4095 (d_language::filename_extensions): New member function.
4096 * f-lang.c (f_extensions): Delete, moved into
4097 f_language::filename_extensions.
4098 (f_language_data): Remove la_filename_extensions initializer.
4099 (f_language::filename_extensions): New member function.
4100 * go-lang.c (go_language_data): Remove la_filename_extensions
4101 initializer.
4102 * language.c (add_set_language_command): Update now that
4103 filename_extensions returns a vector.
4104 (unknown_language_data): Remove la_filename_extensions
4105 initializer.
4106 (auto_language_data): Likewise.
4107 * language.h (language_data): Remove la_filename_extensions field.
4108 (language_defn::filename_extensions): New member function.
4109 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4110 initializer.
4111 * objc-lang.c (objc_extensions): Delete, moved into
4112 objc_language::filename_extensions.
4113 (objc_language_data): Remove la_filename_extensions initializer.
4114 (objc_language::filename_extensions): New member function.
4115 * opencl-lang.c (opencl_language_data): Remove
4116 la_filename_extensions initializer.
4117 * p-lang.c (pascal_extensions): Delete, moved into
4118 pascal_language::filename_extensions.
4119 (pascal_language_data): Remove la_filename_extensions initializer.
4120 (pascal_language::filename_extensions): New member function.
4121 * rust-lang.c (rust_extensions): Delete, moved into
4122 rust_language::filename_extensions.
4123 (rust_language_data): Remove la_filename_extensions initializer.
4124 (rust_language::filename_extensions): New member function.
4125 * symfile.c (add_filename_language): Add new assert.
4126
4127 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * ada-lang.c (ada_language_data): Remove la_name and
4130 la_natural_name initializers.
4131 (ada_language::name): New member function.
4132 (ada_language::natural_name): New member function.
4133 * c-lang.c (c_language_data): Remove la_name and
4134 la_natural_name initializers.
4135 (c_language::name): New member function.
4136 (c_language::natural_name): New member function.
4137 (cplus_language_data): Remove la_name and
4138 la_natural_name initializers.
4139 (cplus_language::name): New member function.
4140 (cplus_language::natural_name): New member function.
4141 (asm_language_data): Remove la_name and
4142 la_natural_name initializers.
4143 (asm_language::name): New member function.
4144 (asm_language::natural_name): New member function.
4145 (minimal_language_data): Remove la_name and
4146 la_natural_name initializers.
4147 (minimal_language::name): New member function.
4148 (minimal_language::natural_name): New member function.
4149 * compile/compile.c (compile_to_object): Update call to
4150 lanugage_defn::name.
4151 * d-lang.c (d_language_data): Remove la_name and
4152 la_natural_name initializers.
4153 (d_language::name): New member function.
4154 (d_language::natural_name): New member function.
4155 * expprint.c (print_subexp_standard): Update call to
4156 language_defn::name.
4157 (dump_raw_expression): Likewise
4158 (dump_prefix_expression): Likewise.
4159 * f-lang.c (f_language_data): Remove la_name and
4160 la_natural_name initializers.
4161 (f_language::name): New member function.
4162 (f_language::natural_name): New member function.
4163 * go-lang.c (go_language_data): Remove la_name and
4164 la_natural_name initializers.
4165 (go_language::name): New member function.
4166 (go_language::natural_name): New member function.
4167 * language.c (show_language_command): Update call to
4168 language_defn::name.
4169 (set_language_command): Likewise.
4170 (language_enum): Likewise.
4171 (language_str): Likewise.
4172 (add_set_language_command): Likewise, use
4173 language_defn::natural_name in the doc string.
4174 (unknown_language_data): Remove la_name and
4175 la_natural_name initializers.
4176 (unknown_language::name): New member function.
4177 (unknown_language::natural_name): New member function.
4178 (auto_language_data): Remove la_name and
4179 la_natural_name initializers.
4180 (auto_language::name): New member function.
4181 (auto_language::natural_name): New member function.
4182 (language_lookup_primitive_type_as_symbol): Update call to
4183 language_defn::name.
4184 * language.h (language_data): Remove la_name and la_natural_name
4185 member variables.
4186 (language_defn::name): New member function.
4187 (language_defn::natural_name): New member function.
4188 * m2-lang.c (m2_language_data): Remove la_name and
4189 la_natural_name initializers.
4190 (m2_language::name): New member function.
4191 (m2_language::natural_name): New member function.
4192 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4193 language_defn::natural_name.
4194 * objc-lang.c (objc_language_data): Remove la_name and
4195 la_natural_name initializers.
4196 (objc_language::name): New member function.
4197 (objc_language::natural_name): New member function.
4198 * opencl-lang.c (opencl_language_data): Remove la_name and
4199 la_natural_name initializers.
4200 (opencl_language::name): New member function.
4201 (opencl_language::natural_name): New member function.
4202 * p-lang.c (pascal_language_data): Remove la_name and
4203 la_natural_name initializers.
4204 (pascal_language::name): New member function.
4205 (pascal_language::natural_name): New member function.
4206 * rust-lang.c (rust_language_data): Remove la_name and
4207 la_natural_name initializers.
4208 (rust_language::name): New member function.
4209 (rust_language::natural_name): New member function.
4210 * symtab.c (lookup_language_this): Update call to
4211 language_defn::name.
4212
4213 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4214
4215 * ada-lang.c (ada_language_data): Remove la_name_of_this
4216 initializer.
4217 * ax-gdb.c (gen_expr): Update call to name_of_this.
4218 * c-exp.y (classify_name): Likewise.
4219 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4220 (cplus_language_data): Likewise.
4221 (cplus_language::name_of_this): New member function.
4222 (asm_language_data): Remove la_name_of_this initializer.
4223 (minimal_language_data): Likewise.
4224 * d-lang.c (d_language_data): Likewise.
4225 (d_language::name_of_this): New member function.
4226 * expprint.c (print_subexp_standard): Update call to name_of_this.
4227 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4228 * go-lang.c (go_language_data): Likewise.
4229 * language.c (unknown_language_data): Likewise.
4230 (unknown_language::name_of_this): New member function.
4231 (auto_language_data): Remove la_name_of_this initializer.
4232 (auto_language::name_of_this): New member function.
4233 * language.h (language_data): Delete la_name_of_this member
4234 variable.
4235 (language_defn::name_of_this): New member function.
4236 * m2-lang.c (m2_language_data): Remove la_name_of_this
4237 initializer.
4238 * objc-lang.c (objc_language_data): Likewise.
4239 (objc_language::name_of_this): New member function.
4240 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4241 initializer.
4242 * p-lang.c (pascal_language_data): Likewise.
4243 (pascal_language::name_of_this): New member function.
4244 * rust-lang.c (rust_language_data): Remove la_name_of_this
4245 initializer.
4246 * symtab.c (lookup_language_this): Update call to name_of_this.
4247 (lookup_symbol_aux): Likewise.
4248 * valops.c (value_of_this): Likewise.
4249
4250 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * ada-lang.c (ada_language_data): Remove
4253 la_struct_too_deep_ellipsis initializer.
4254 (ada_language::struct_too_deep_ellipsis): New member function.
4255 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4256 initializer.
4257 (cplus_language_data): Likewise.
4258 (asm_language_data): Likewise.
4259 (minimal_language_data): Likewise.
4260 * cp-valprint.c (cp_print_value): Update call to
4261 struct_too_deep_ellipsis.
4262 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4263 initializer.
4264 * f-lang.c (f_language_data): Likewise.
4265 (f_language::struct_too_deep_ellipsis): New member function.
4266 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4267 initializer.
4268 * language.c (unknown_language_data): Likewise.
4269 (auto_language_data): Likewise.
4270 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4271 member variable.
4272 (language_defn::struct_too_deep_ellipsis): New member function.
4273 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4274 initializer.Q
4275 * objc-lang.c (objc_language_data): Likewise.
4276 * opencl-lang.c (opencl_language_data): Likewise.
4277 * p-lang.c (pascal_language_data): Likewise.
4278 * rust-lang.c (rust_language_data): Likewise.
4279 * valprint.c (val_print_check_max_depth): Update call to
4280 struct_too_deep_ellipsis.
4281
4282 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4283
4284 * MAINTAINERS (Write After Approval): Add myself.
4285
4286 2020-09-15 Tom Tromey <tom@tromey.com>
4287
4288 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4289 Remove.
4290
4291 2020-09-15 Tom Tromey <tom@tromey.com>
4292
4293 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4294 and TYPE_CODE_METHODPTR cases.
4295 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4296 (c_value_print_inner): Update.
4297 * valprint.c (generic_value_print_memberptr): New function, from
4298 c_value_print_memberptr.
4299 (generic_value_print): Use it. Call cplus_print_method_ptr.
4300
4301 2020-09-15 Tom Tromey <tromey@adacore.com>
4302
4303 * python/python-internal.h (PyInt_FromLong): Remove define.
4304 * python/py-value.c (convert_value_from_python): Use
4305 gdb_py_object_from_longest.
4306 * python/py-type.c (typy_get_code): Use
4307 gdb_py_object_from_longest.
4308 * python/py-symtab.c (salpy_get_line): Use
4309 gdb_py_object_from_longest.
4310 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4311 gdb_py_object_from_longest.
4312 * python/py-record.c (recpy_gap_reason_code): Use
4313 gdb_py_object_from_longest.
4314 * python/py-record-btrace.c (recpy_bt_insn_size)
4315 (recpy_bt_func_level, btpy_list_count): Use
4316 gdb_py_object_from_longest.
4317 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4318 gdb_py_object_from_longest. Fix error handling.
4319 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4320 gdb_py_object_from_longest.
4321 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4322 gdb_py_object_from_longest.
4323 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4324 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4325 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4326
4327 2020-09-15 Tom Tromey <tromey@adacore.com>
4328
4329 * python/python.c (gdbpy_parameter_value): Use
4330 gdb_py_object_from_ulongest.
4331
4332 2020-09-15 Tom Tromey <tromey@adacore.com>
4333
4334 * python/py-infevents.c (create_register_changed_event_object):
4335 Use gdb_py_object_from_longest.
4336 * python/py-exitedevent.c (create_exited_event_object): Use
4337 gdb_py_object_from_longest.
4338
4339 2020-09-15 Tom Tromey <tromey@adacore.com>
4340
4341 * python/python.c (gdbpy_parameter_value): Use
4342 gdb_py_object_from_longest.
4343 * python/py-type.c (convert_field, typy_range): Use
4344 gdb_py_object_from_longest.
4345 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4346 gdb_py_object_from_longest.
4347 * python/py-lazy-string.c (stpy_get_length): Use
4348 gdb_py_object_from_longest.
4349 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4350 gdb_py_object_from_longest.
4351 * python/py-infevents.c (create_memory_changed_event_object): Use
4352 gdb_py_object_from_longest.
4353 * python/py-inferior.c (infpy_get_num): Use
4354 gdb_py_object_from_longest.
4355 (infpy_get_pid): Likewise.
4356
4357 2020-09-15 Tom Tromey <tromey@adacore.com>
4358
4359 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4360 defines.
4361 * python/py-value.c (valpy_long): Use
4362 gdb_py_object_from_ulongest.
4363 * python/py-symtab.c (salpy_get_pc): Use
4364 gdb_py_object_from_ulongest.
4365 (salpy_get_last): Likewise.
4366 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4367 gdb_py_object_from_ulongest.
4368 * python/py-lazy-string.c (stpy_get_address): Use
4369 gdb_py_object_from_ulongest.
4370 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4371 * python/py-arch.c (archpy_disassemble): Use
4372 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4373 error handling.
4374
4375 2020-09-15 Tom Tromey <tromey@adacore.com>
4376
4377 * python/python-internal.h (gdb_py_long_from_longest): Remove
4378 defines.
4379 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4380 * python/py-type.c (convert_field, typy_get_sizeof): Use
4381 gdb_py_object_from_longest.
4382 * python/py-record-btrace.c (btpy_list_index): Use
4383 gdb_py_object_from_longest.
4384
4385 2020-09-15 Tom Tromey <tromey@adacore.com>
4386
4387 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4388 * python/py-record.c (recpy_element_number): Use
4389 gdb_py_object_from_longest.
4390 (recpy_gap_number): Likewise.
4391
4392 2020-09-15 Tom Tromey <tromey@adacore.com>
4393
4394 * top.c (ui::ui): Update.
4395 (highest_ui_num): Remove.
4396 * top.h (struct ui) <num>: Remove.
4397
4398 2020-09-15 Tom Tromey <tromey@adacore.com>
4399
4400 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4401 * ui-style.c (ansi_regex_text): Now array.
4402 * rust-exp.y (number_regex_text): Now array.
4403 * linespec.c (linespec_quote_characters): Now array.
4404 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4405 Now arrays.
4406
4407 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4408
4409 * debuginfod-support.c (debuginfod_client_deleter): New.
4410 (debuginfod_client_up): New.
4411 (debuginfod_init): Return debuginfod_client_up.
4412 (debuginfod_source_query): Adjust.
4413 (debuginfod_debuginfo_query): Adjust.
4414
4415 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * debuginfod-support.c (debuginfod_source_query): Use
4418 make_unique_xstrdup.
4419
4420 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4423 with `type::instance_flags`.
4424
4425 2020-09-14 Michael Mullin <masmullin@gmail.com>
4426
4427 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4428 Remove baton parameter.
4429
4430 2020-09-14 Pedro Alves <pedro@palves.net>
4431
4432 * Makefile.in (SELFTESTS_SRCS): Add
4433 unittests/enum-flags-selftests.c.
4434 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4435 btrace_function_flags instead of enum btrace_function_flag.
4436 * compile/compile-c-types.c (convert_qualified): Use
4437 enum_flags::raw.
4438 * compile/compile-cplus-symbols.c (convert_one_symbol)
4439 (convert_symbol_bmsym):
4440 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4441 (compile_cplus_convert_struct_or_union_methods)
4442 (compile_cplus_instance::convert_qualified_base):
4443 * go-exp.y (parse_string_or_char): Add cast to int.
4444 * unittests/enum-flags-selftests.c: New file.
4445 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4446 type to btrace_thread_flags from btrace_thread_flag.
4447 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4448 local's type to btrace_thread_flags from btrace_thread_flag. Add
4449 cast in DEBUG call.
4450
4451 2020-09-14 Pedro Alves <pedro@palves.net>
4452
4453 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4454 * gdbtypes.c (address_space_name_to_int): Rename to ...
4455 (address_space_name_to_type_instance_flags): ... this.
4456 (address_space_int_to_name): Rename to ...
4457 (address_space_type_instance_flags_to_name): ... this.
4458 * gdbtypes.h (address_space_name_to_int): Rename to ...
4459 (address_space_name_to_type_instance_flags): ... this.
4460 (address_space_int_to_name): Rename to ...
4461 (address_space_type_instance_flags_to_name): ... this.
4462 * type-stack.c (type_stack::insert): Adjust to rename.
4463 * type-stack.h (type_stack::insert): Likewise.
4464
4465 2020-09-14 Pedro Alves <pedro@palves.net>
4466 Andrew Burgess <andrew.burgess@embecosm.com>
4467
4468 * avr-tdep.c (avr_address_class_type_flags): Return
4469 type_instance_flags.
4470 (avr_address_class_type_flags_to_name): Take a
4471 type_instance_flags.
4472 (avr_address_class_name_to_type_flags): Return bool and take a
4473 type_instance_flags.
4474 * d-lang.c (build_d_types): Use type::set_instance_flags.
4475 * ft32-tdep.c (ft32_address_class_type_flags): Return
4476 type_instance_flags.
4477 (ft32_address_class_type_flags_to_name): Take a
4478 type_instance_flags.
4479 (ft32_address_class_name_to_type_flags): Return bool and take a
4480 type_instance_flags.
4481 (ft32_gdbarch_init): Use type::set_instance_flags.
4482 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4483 * gdbarch.h, gdbarch.c: Regenerate.
4484 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4485 (address_class_name_to_type_flags): Use type_instance_flags and
4486 bool.
4487 * gdbtypes.c (address_space_name_to_int)
4488 (address_space_int_to_name, make_qualified_type): Use
4489 type_instance_flags.
4490 (make_qualified_type): Use type_instance_flags and
4491 type::set_instance_flags.
4492 (make_type_with_address_space, make_cv_type, make_vector_type)
4493 (check_typedef): Use type_instance_flags.
4494 (recursive_dump_type): Cast type_instance_flags to unsigned for
4495 printing.
4496 (copy_type_recursive): Use type::set_instance_flags.
4497 (gdbtypes_post_init): Use type::set_instance_flags.
4498 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4499 <m_instance_flags>: ... this.
4500 <instance_flags, set_instance_flags>: New methods.
4501 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4502 (SET_TYPE_INSTANCE_FLAGS): New.
4503 (address_space_name_to_int, address_space_int_to_name)
4504 (make_type_with_address_space): Pass flags using
4505 type_instance_flags instead of int.
4506 * stabsread.c (cleanup_undefined_types_noname): Use
4507 type::set_instance_flags.
4508 * s390-tdep.c (s390_address_class_type_flags): Return
4509 type_instance_flags.
4510 (s390_address_class_type_flags_to_name): Take a
4511 type_instance_flags.
4512 (s390_address_class_name_to_type_flags): Return bool and take a
4513 type_instance_flags.
4514 * type-stack.c (type_stack::follow_types): Use
4515 type_instance_flags.
4516 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4517
4518 2020-09-14 Tom Tromey <tromey@adacore.com>
4519
4520 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4521 * x86-tdep.c (x86_is_thunk_register_name)
4522 (x86_in_indirect_branch_thunk): Update.
4523 * sparc64-tdep.c (sparc64_fpu_register_names)
4524 (sparc64_cp0_register_names, sparc64_register_names)
4525 (sparc64_pseudo_register_names): Now const.
4526 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4527 cp0_registers_num>: Now const.
4528 * sparc-tdep.c (sparc_core_register_names)
4529 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4530 (sparc32_pseudo_register_names): Now const.
4531 (validate_tdesc_registers): Update.
4532 * rust-lang.c (rust_extensions): Now const.
4533 * p-lang.c (p_extensions): Now const.
4534 * objc-lang.c (objc_extensions): Now const.
4535 * nto-tdep.c (nto_thread_state_str): Now const.
4536 * moxie-tdep.c (moxie_register_names): Now const.
4537 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4538 Now const.
4539 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4540 (mips_linux_reg_names): Now const.
4541 (mips_gdbarch_init): Update.
4542 * microblaze-tdep.c (microblaze_register_names): Now const.
4543 * m68k-tdep.c (m68k_register_names): Now const.
4544 * m32r-tdep.c (m32r_register_names): Now const.
4545 * ia64-tdep.c (ia64_register_names): Now const.
4546 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4547 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4548 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4549 ymm_avx512_register_names, pkeys_register_names>: Now const.
4550 * i386-tdep.c (i386_register_names, i386_zmm_names)
4551 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4552 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4553 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4554 * f-lang.c (f_extensions): Now const.
4555 * d-lang.c (d_extensions): Now const.
4556 * csky-tdep.c (csky_register_names): Now const.
4557 * charset.c (default_charset_names, charset_enum): Now const.
4558 (_initialize_charset): Update.
4559 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4560 const.
4561 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4562 (bsd_uthread_solib_loaded): Update.
4563 (bsd_uthread_state): Now const.
4564 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4565 (amd64_ymm_avx512_names, amd64_ymmh_names)
4566 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4567 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4568 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4569 (amd64_dword_names): Now const.
4570 * agent.c (can_use_agent_enum): Now const.
4571 * ada-tasks.c (task_states, long_task_states): Now const.
4572 * ada-lang.c (known_runtime_file_name_patterns)
4573 (known_auxiliary_function_name_patterns, attribute_names)
4574 (standard_exc, ada_extensions): Now const.
4575
4576 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4577
4578 * bcache.h (struct bcache) <bcache>: Remove constructor.
4579 <m_hash_function, m_compare_function>: Remove.
4580 <~bcache>: Make virtual.
4581 <compare>: Remove static method, introduce virtual method.
4582 <default_hash>: Remove.
4583 <hash>: New virtual method.
4584 * bcache.c (bcache::expand_hash_table): Update.
4585 (bcache::insert): Update.
4586 (bcache::hash): New.
4587 (bcache::compare): Update comment and parameter names.
4588 * gdbtypes.c (types_deeply_equal): Update.
4589 * psymtab.h (struct psymbol_bcache): New struct.
4590 (class psymtab_storage) <psymtab_storage>: Make default.
4591 <psymbol_cache>: Change type to psymbol_bcache.
4592 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4593 (psymbol_hash): Change to...
4594 (psymbol_bcache::hash): ... this.
4595 (psymbol_compare): Change to...
4596 (psymbol_bcache::compare): ... this.
4597
4598 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4599
4600 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4601 checking for initial lwp.
4602
4603 2020-09-14 Tom Tromey <tromey@adacore.com>
4604
4605 * m68k-tdep.c (m68k_extract_return_value): Use
4606 pointer_result_regnum.
4607 (m68k_store_return_value): Likewise.
4608 (m68k_reg_struct_return_p): Handle vectors and arrays.
4609 (m68k_return_value): Handle arrays.
4610 (m68k_svr4_return_value): Fix single-element aggregate handling.
4611 Handle long double. Adjust for embedded ABI.
4612 (m68k_svr4_init_abi): Set pointer_result_regnum.
4613 (m68k_embedded_init_abi): New function.
4614 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4615 (m68k_osabi_sniffer): New function.
4616 (_initialize_m68k_tdep): Register osabi sniffer.
4617 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4618 member.
4619
4620 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4621
4622 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4623 with gdb::unique_xmalloc_ptr<char>.
4624
4625 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4626
4627 * xml-support.h (xml_fetch_another): Change type to be a
4628 function_view.
4629 (xml_process_xincludes): Remove baton parameter.
4630 (xml_fetch_content_from_file): Change baton parameter to
4631 dirname.
4632 * xml-support.c (struct xinclude_parsing_data)
4633 <xinclude_parsing_data>: Remove baton parameter.
4634 <fetcher_baton>: Remove.
4635 (xinclude_start_include): Adjust.
4636 (xml_process_xincludes): Adjust.
4637 (xml_fetch_content_from_file): Replace baton parameter with
4638 dirname.
4639 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4640 (xml_init_syscalls_info): Use a lambda.
4641 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4642 (file_read_description_xml): Use a lambda.
4643 (fetch_available_features_from_target): Change baton parameter
4644 to target_ops.
4645 (target_read_description_xml): Use a lambda.
4646 (target_fetch_description_xml): Use a lambda.
4647 (string_read_description_xml): Update.
4648
4649 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4650
4651 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4652 uses with type::endianity_is_not_default.
4653
4654 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbtypes.h (struct type) <endianity_is_not_default,
4657 set_endianity_is_not_default>: New methods.
4658 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4659 type::endianity_is_not_default, change all write call sites to
4660 use type::set_endianity_is_not_default.
4661
4662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4665 uses with type::is_fixed_instance.
4666
4667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (struct type) <is_fixed_instance,
4670 set_is_fixed_instance>: New methods.
4671 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4672 write call sites to use type::set_is_fixed_instance.
4673
4674 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4677 uses with type::is_gnu_ifunc.
4678
4679 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4682 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4683 use type::set_is_gnu_ifunc.
4684
4685 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4688 uses with type::stub_is_supported.
4689
4690 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4693 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4694 use type::set_stub_is_supported.
4695
4696 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4699 uses with type::is_vector.
4700
4701 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4702
4703 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4704 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4705 use type::set_is_vector.
4706
4707 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4710 uses with type::has_varargs.
4711
4712 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4715 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4716 use type::set_has_varargs.
4717
4718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4721 uses with type::is_prototyped.
4722
4723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4726 New methods.
4727 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4728 call sites to use type::set_is_prototyped.
4729
4730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4733 uses with type::target_is_stub.
4734
4735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4738 New methods.
4739 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4740 sites to use type::set_target_is_stub.
4741
4742 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4743
4744 * gdbtypes.h (TYPE_STUB): Remove, replace all
4745 uses with type::is_stub.
4746
4747 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4750 (TYPE_STUB): Use type::is_stub, change all write call sites to
4751 use type::set_is_stub.
4752
4753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4756 type::has_no_signedness.
4757
4758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * gdbtypes.h (struct type) <has_no_signedness,
4761 set_has_no_signedness>: New methods.
4762 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4763 call sites to use type::set_has_no_signedness.
4764
4765 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4768 type::is_unsigned.
4769
4770 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4773 methods.
4774 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4775 sites to use type::set_is_unsigned.
4776
4777 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4778 Adam Renquinha <arenquinha@cimeq.qc.ca>
4779
4780 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4781 pointer and stack frame offset when unwinding.
4782
4783 2020-09-13 Pedro Alves <pedro@palves.net>
4784
4785 * NEWS: Document "-break-insert --qualified".
4786 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4787
4788 2020-09-13 Pedro Alves <pedro@palves.net>
4789
4790 * linespec.c (classify_mtype, compare_msyms): Delete.
4791 (search_minsyms_for_name): Remove classification logic. Instead
4792 filter out trampoline symbols if we also found an external
4793 function of the same name.
4794
4795 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4796
4797 * NEWS: Create a new section for the next release branch.
4798 Rename the section of the current branch, now that it has
4799 been cut.
4800
4801 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4802
4803 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4804 * version.in: Bump version to 11.0.50.DATE-git.
4805
4806 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4807
4808 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4809
4810 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4811 Felix Willgerodt <Felix.Willgerodt@intel.com>
4812
4813 * gdbarch.sh: Added bfloat16 type.
4814 * gdbarch.c: Regenerated.
4815 * gdbarch.h: Regenerated.
4816 * gdbtypes.c (floatformats_bfloat16): New struct.
4817 (gdbtypes_post_init): Add builtin_bfloat16.
4818 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4819 (floatformats_bfloat16): New struct.
4820 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4821 (i386_ymm_type): Add field "v16_bfloat16"
4822 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4823 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4824 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4825 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4826 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4827 * features/i386/64bit-avx512.c: Regenerated.
4828 * features/i386/64bit-sse.xml: Add bfloat16 type.
4829 * features/i386/64bit-sse.c: Regenerated.
4830
4831 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4832
4833 * i386-tdep.c (i386_zmm_type): Fix field names.
4834 (i386_ymm_type): Fix field names.
4835
4836 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4837
4838 * breakpoint.c: Fix typo in the help message of the
4839 "set breakpoint condition-evaluation" command.
4840
4841 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4842
4843 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4844 * (nbsd_nat_target::pid_to_exec_file)
4845 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4846 (nbsd_nat_target::post_startup_inferior)
4847 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4848 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4849 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4850 * (nbsd_thread_lister): Remove.
4851
4852 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4853
4854 * fork-inferior.c (startup_inferior): Avoid double free.
4855
4856 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4857
4858 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4859 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4860
4861 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4862
4863 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4864 * netbsd-nat.c: Include <sys/ptrace.h>.
4865 * (netbsd_nat::enable_proc_events): Add.
4866
4867 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4868
4869 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4870 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4871 (netbsd_nat::for_each_thread): Add.
4872 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4873 "gdbsupport/common-debug.h".
4874 * (netbsd_nat::netbsd_thread_lister)
4875 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4876 (netbsd_nat::for_each_thread): Add.
4877
4878 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4879
4880 * netbsd-nat.h: Include <unistd.h>.
4881 * (netbsd_nat::pid_to_exec_file): Add.
4882 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4883 * (netbsd_nat::pid_to_exec_file) Add.
4884
4885 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4886
4887 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4888
4889 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4890
4891 * netbsd-nat.h: New file.
4892 * netbsd-nat.c: Likewise.
4893
4894 2020-09-09 Tom Tromey <tromey@adacore.com>
4895
4896 * ada-lang.c (remove_extra_symbols): Do not increment when
4897 removing an element
4898
4899 2020-09-08 Tom Tromey <tromey@adacore.com>
4900
4901 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4902
4903 2020-09-08 Tom Tromey <tromey@adacore.com>
4904
4905 PR win32/25302:
4906 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4907 (gdb_bfd_init_data): New function.
4908 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4909
4910 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4911
4912 * infrun.c (fetch_inferior_event): Use
4913 `switch_to_target_no_thread` to switch the target.
4914
4915 2020-09-06 Tom Tromey <tom@tromey.com>
4916
4917 * symfile.h (dwarf2_free_objfile): Don't declare.
4918
4919 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4920
4921 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4922 to match 16 byte real/complex type generated by Flang compiler.
4923
4924 2020-09-03 Tom de Vries <tdevries@suse.de>
4925
4926 PR breakpoint/26546
4927 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4928 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4929
4930 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4931
4932 * maint.c (index_digits): New function.
4933 (struct maint_print_section_data): Remove.
4934 (print_bfd_section_info): Remove print_data parameter, add arg
4935 and index_digits.
4936 (print_objfile_section_info): Likewise.
4937 (print_bfd_section_info_maybe_relocated): Likewise (plus
4938 objfile).
4939 (maintenance_info_sections): Adjust calls.
4940
4941 2020-09-02 Tom Tromey <tromey@adacore.com>
4942
4943 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4944 for null pointers.
4945 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4946
4947 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4948
4949 * bcache.h (struct bcache) <insert>: Change type of `added` to
4950 pointer to bool.
4951 * bcache.c (bcache::insert): Likewise.
4952 * gdbtypes.c (check_types_worklist): Adjust.
4953 * psymtab.c (add_psymbol_to_bcache): Adjust.
4954
4955 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4956
4957 * corelow.c (unordered_set): Include.
4958 (class core_target): Add field 'm_core_unavailable_mappings'.
4959 (core_target::build_file_mappings): Print only one warning
4960 per inaccessible file. Add unavailable/broken mappings
4961 to m_core_unavailable_mappings.
4962 (core_target::xfer_partial): Call...
4963 (core_target::xfer_memory_via_mappings): New method.
4964
4965 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4966
4967 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4968 type to bool.
4969
4970 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4971
4972 * dwarf2/read.c (struct field_info): Fix indentation.
4973
4974 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4975
4976 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4977 ordering in comment.
4978 * frame.c (frame_id_eq): Fix indentation.
4979
4980 2020-08-31 Scott Linder <scott@scottlinder.com>
4981 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4984 inline frame ids in outer frame.
4985
4986 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4989 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4990 (outer_frame_id): Use FID_STACK_OUTER instead of
4991 FID_STACK_INVALID.
4992 (frame_id_p): Don't check for outer_frame_id.
4993
4994 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4997 regnum/frame in value. Call allocate_value_lazy.
4998 * frame.c (frame_unwind_register_value): Use
4999 val_print_not_saved.
5000
5001 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5002
5003 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5004
5005 2020-08-29 Pedro Alves <pedro@palves.net>
5006
5007 * progspace.c (print_program_space): Use all_inferiors. Switch to
5008 the inferior before calling target_pid_to_str.
5009
5010 2020-08-28 Tom Tromey <tom@tromey.com>
5011
5012 * xcoffread.c (xcoff_end_psymtab): Update comment.
5013 * dbxread.c (dbx_end_psymtab): Update comment.
5014
5015 2020-08-28 Tom de Vries <tdevries@suse.de>
5016
5017 PR breakpoint/26544
5018 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5019 event_location.
5020 (create_breakpoint): Same.
5021 (base_breakpoint_decode_location): Same.
5022 (bkpt_create_sals_from_location): Same.
5023 (bkpt_decode_location): Same.
5024 (bkpt_probe_create_sals_from_location): Same.
5025 (bkpt_probe_decode_location): Same.
5026 (tracepoint_create_sals_from_location): Same.
5027 (tracepoint_decode_location): Same.
5028 (tracepoint_probe_decode_location): Same.
5029 (strace_marker_create_sals_from_location): Same.
5030 (strace_marker_decode_location): Same.
5031 (create_sals_from_location_default): Same.
5032 (decode_location_default): Same.
5033 * breakpoint.h (struct breakpoint_ops): Same.
5034 (create_breakpoint): Same.
5035 * linespec.h (decode_line_full): Same.
5036 * linespec.c (decode_line_full): Same. Throw error if
5037 result.size () == 0.
5038
5039 2020-08-27 Pedro Alves <pedro@palves.net>
5040
5041 PR gdb/26524
5042 * breakpoint.c (until_break_fsm) <location_breakpoint,
5043 caller_breakpoint>: Delete fields.
5044 <breakpoints>: New field.
5045 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5046 two individual breakpoints.
5047 (until_break_fsm::should_stop): Loop over breakpoints in the
5048 breakpoint vector.
5049 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5050 vector.
5051 (until_break_command): Handle location expanding into multiple
5052 sals.
5053
5054 2020-08-27 Pedro Alves <pedro@palves.net>
5055
5056 PR gdb/26523
5057 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5058 bp_until breakpoints user-specified locations. Update intro
5059 comment.
5060
5061 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5062
5063 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5064 gdb_bfd_sections): New.
5065 * maint.c (print_bfd_section_info): Change param type to
5066 maint_print_section_data.
5067 (print_objfile_section_info): Likewise.
5068 (print_bfd_section_info_maybe_relocated): Likewise.
5069 (maintenance_info_sections): Use gdb_bfd_sections.
5070
5071 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5072
5073 * MAINTAINERS: Add ARC target and maintainer.
5074
5075 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5076
5077 * configure.tgt: ARC support for GNU/Linux.
5078 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5079 * arc-linux-tdep.c: New file.
5080 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5081 * arc-tdep.c (arc_write_pc): Use it.
5082
5083 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5084
5085 * arc-tdep.c (arc_check_for_hardware_loop): New.
5086 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5087
5088 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5089
5090 * arc-tdep.h: Include "gdbarch.h".
5091
5092 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5093
5094 * arch/arc.h
5095 (arc_gdbarch_features): New class to stir the selection of target XML.
5096 (arc_create_target_description): Use FEATURES to choose XML target.
5097 (arc_lookup_target_description): Use arc_create_target_description
5098 to create _new_ target descriptions or return the already created
5099 ones if the FEATURES is the same.
5100 * arch/arc.c: Implementation of prototypes described above.
5101 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5102 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5103 * arc-tdep.c (*_feature_name): Make feature names consistent.
5104 (arc_register_feature): A new struct to hold information about
5105 registers of a particular target/feature.
5106 (arc_check_tdesc_feature): Check if XML provides registers in
5107 compliance with ARC_REGISTER_FEATURE structs.
5108 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5109 (determine_*_reg_feature_set): Which feature name to look for.
5110 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5111 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5112 to expected ISA enums to be used in arc_gdbarch_features structs.
5113 * features/Makefile (FEATURE_XMLFILES): Add new files.
5114 * gdb/features/arc/v1-aux.c: New file.
5115 * gdb/features/arc/v1-aux.xml: Likewise.
5116 * gdb/features/arc/v1-core.c: Likewise.
5117 * gdb/features/arc/v1-core.xml: Likewise.
5118 * gdb/features/arc/v2-aux.c: Likewise.
5119 * gdb/features/arc/v2-aux.xml: Likewise.
5120 * gdb/features/arc/v2-core.c: Likewise.
5121 * gdb/features/arc/v2-core.xml: Likewise.
5122 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5123
5124 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5125 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 PR m2/26372
5128 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5129 an assert. Remove single element array indexing pattern as the
5130 MULTI_SUBSCRIPT support will handle this case too.
5131
5132 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * value.h (valprint_check_validity): Move declaration from
5135 here...
5136 * valprint.h (valprint_check_validity): ... to here.
5137
5138 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5139
5140 * debug.h: New file.
5141 * debug.c (debug_prefixed_vprintf): New function.
5142 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5143 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5144
5145 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * infrun.h (infrun_debug_printf_1): New function declaration.
5148 (infrun_debug_printf): New macro.
5149 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5150 throughout.
5151 (infrun_debug_printf): New function.
5152 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5153 (handle_jit_event): Likewise.
5154
5155 2020-08-21 Mark Wielaard <mark@klomp.org>
5156
5157 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5158
5159 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * frame.c (enum class frame_id_status): New.
5162 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5163 (fprintf_frame): Update.
5164 (compute_frame_id): Set frame id status to "computing" on entry.
5165 Set it back to "not_computed" on failure and to "computed" on
5166 success.
5167 (get_frame_id): Assert the frame id is not being computed.
5168 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5169 (create_new_frame): Likewise.
5170 (frame_cleanup_after_sniffer): Update assert.
5171
5172 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5173
5174 * regcache.c (pid_ptid_regcache_map): New type.
5175 (target_ptid_regcache_map): Remove.
5176 (target_pid_ptid_regcache_map): New type.
5177 (regcaches): Change type to target_pid_ptid_regcache_map.
5178 (get_thread_arch_aspace_regcache): Update.
5179 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5180 case.
5181 (regcaches_size): Update.
5182 (regcache_count): Update.
5183 (registers_changed_ptid_target_pid_test): New.
5184 (_initialize_regcache): Register new test.
5185
5186 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 * regcache.c (regcache_count): New.
5189 (struct regcache_test_data): New.
5190 (regcache_test_data_up): New.
5191 (populate_regcaches_for_test): New.
5192 (regcaches_test): Remove.
5193 (get_thread_arch_aspace_regcache_test): New.
5194 (registers_changed_ptid_all_test): New.
5195 (registers_changed_ptid_target_test): New.
5196 (registers_changed_ptid_target_ptid_test): New.
5197 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5198 (_initialize_regcache): Register new tests.
5199
5200 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5201
5202 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5203 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5204 gdbarch and aspace parameter. Use current inferior's aspace.
5205 Validate regcache's arch value.
5206 (regcaches_test): Update.
5207
5208 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * regcache.c (regcaches_test): Call registers_changed.
5211
5212 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5213
5214 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5215
5216 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5217
5218 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5219 to find the end of prologue for flang compiled binaries.
5220 * arm-tdep.c (arm_skip_prologue): Likewise.
5221 * i386-tdep.c (i386_skip_prologue): Likewise.
5222 * producer.c (producer_is_llvm): New function.
5223 (producer_parsing_tests): Added new tests for clang/flang.
5224 * producer.h (producer_is_llvm): New declaration.
5225
5226 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5227
5228 * linux-nat.c (linux_nat_debug_printf): New function.
5229 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5230
5231 2020-08-18 Aaron Merey <amerey@redhat.com>
5232
5233 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5234 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5235 (CLIBS): Add DEBUGINFOD_LIBS.
5236
5237 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5238
5239 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5240 'gdbarch_num_regs'.
5241
5242 2020-08-17 Tom Tromey <tromey@adacore.com>
5243
5244 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5245 ada_get_decoded_value returns NULL.
5246
5247 2020-08-17 Tom Tromey <tromey@adacore.com>
5248
5249 * python/py-inferior.c (infpy_search_memory): Use
5250 gdb_py_object_from_ulongest.
5251 * python/py-infevents.c (create_inferior_call_event_object)
5252 (create_memory_changed_event_object): Use
5253 gdb_py_object_from_ulongest.
5254 * python/py-linetable.c (ltpy_entry_get_pc): Use
5255 gdb_py_object_from_ulongest.
5256
5257 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5258
5259 * loc.c (class symbol_needs_eval_context): Fix indentation.
5260
5261 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5262
5263 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5264 bool.
5265
5266 2020-08-17 Tom de Vries <tdevries@suse.de>
5267
5268 PR gdb/26393
5269 * gdbtypes.c (dump_dynamic_prop): New function.
5270 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5271
5272 2020-08-15 Tom de Vries <tdevries@suse.de>
5273
5274 PR backtrace/26390
5275 * stack.c (print_frame_args): Temporarily set the selected
5276 frame to FRAME while printing the frame's arguments.
5277
5278 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5279
5280 PR breakpoints/26385
5281 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5282 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5283
5284 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5285
5286 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5287 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5288 and >= to check return value instead of == -1 and != -1.
5289
5290 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5291
5292 * utils.h (class gdb_argv) <as_array_view>: New method.
5293 * utils.c (gdb_argv_as_array_view_test): New.
5294 (_initialize_utils): Register selftest.
5295 * maint.c (maintenance_selftest): Use the new method.
5296
5297 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5298
5299 * target.h (supports_dumpcore, dumpcore): New
5300 function declarations.
5301 * target.c (supports_dumpcore, dumpcore): New
5302 functions.
5303 * target-delegates.c: Rebuild.
5304 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5305 and target_dumpcore ().
5306
5307 2020-08-13 Aaron Merey <amerey@redhat.com>
5308
5309 * debuginfod-support.c: Replace global variables with user_data.
5310
5311 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * maint.c (maintenance_selftest): Split args and pass array_view
5314 to run_tests.
5315
5316 2020-08-12 Luis Machado <luis.machado@linaro.org>
5317
5318 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5319 type's length.
5320 Use %s and pulongest to print the length.
5321
5322 2020-08-12 Pedro Alves <palves@redhat.com>
5323
5324 * NEWS: Move "Multi-target debugging support" item to the
5325 "Changes since GDB 9" section.
5326
5327 2020-08-12 Pedro Alves <palves@redhat.com>
5328
5329 PR gdb/26336
5330 * progspace.c (program_space::remove_objfile): Invalidate the
5331 frame cache.
5332
5333 2020-08-11 Tom de Vries <tdevries@suse.de>
5334
5335 * MAINTAINERS: Mark ms1 as deleted.
5336
5337 2020-08-10 Luis Machado <luis.machado@linaro.org>
5338
5339 PR gdb/26310
5340
5341 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5342 act accordingly.
5343 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5344 movz/str/stur/stp skipping behavior.
5345
5346 2020-08-10 Luis Machado <luis.machado@linaro.org>
5347
5348 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5349 struct user_sve_header instead of struct sve_context.
5350
5351 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5352
5353 * read.h (dwarf2_fetch_die_loc_sect_off,
5354 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5355 `void *` parameter with function_view.
5356 * read.c (dwarf2_fetch_die_loc_sect_off,
5357 dwarf2_fetch_die_loc_cu_off): Likewise.
5358 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5359 (per_cu_dwarf_call): Adjust.
5360 (get_frame_address_in_block_wrapper): Remove.
5361 (indirect_synthetic_pointer): Adjust.
5362 (get_ax_pc): Remove.
5363 (dwarf2_compile_expr_to_ax): Adjust.
5364
5365 2020-08-08 Tom de Vries <tdevries@suse.de>
5366
5367 PR build/26344
5368 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5369 constructor.
5370 * regcache.c (get_thread_arch_aspace_regcache): Same.
5371
5372 2020-08-07 Tom Tromey <tromey@adacore.com>
5373
5374 * ravenscar-thread.c
5375 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5376 New method.
5377 (ravenscar_thread_target::wait): Check
5378 runtime_initialized.
5379 (ravenscar_thread_target::prepare_to_store)
5380 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5381 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5382 (ravenscar_thread_target::stopped_by_watchpoint)
5383 (ravenscar_thread_target::stopped_data_address)
5384 (ravenscar_thread_target::core_of_thread): Use
5385 scoped_restore_current_thread and
5386 set_base_thread_from_ravenscar_task.
5387
5388 2020-08-07 Tom Tromey <tromey@adacore.com>
5389
5390 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5391
5392 2020-08-07 Tom Tromey <tromey@adacore.com>
5393
5394 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5395 update_inferior_ptid before update_thread_list.
5396 (temporarily_change_regcache_ptid): New class.
5397 (ravenscar_thread_target::fetch_registers)
5398 (ravenscar_thread_target::store_registers)
5399 (ravenscar_thread_target::prepare_to_store): Use base thread when
5400 forwarding operation.
5401
5402 2020-08-07 Tom Tromey <tromey@adacore.com>
5403
5404 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5405 "is_pid" case.
5406
5407 2020-08-07 Tom Tromey <tromey@adacore.com>
5408
5409 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5410 New methods.
5411 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5412 first.
5413 (ravenscar_thread_target::add_thread): Rename from
5414 ravenscar_add_thread.
5415 (ravenscar_thread_target::update_thread_list): Use a lambda.
5416 (ravenscar_thread_target::xfer_partial): New method.
5417
5418 2020-08-07 Tom Tromey <tromey@adacore.com>
5419
5420 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5421 gdb::function_view.
5422 (iterate_over_live_ada_tasks): Change type of argument.
5423 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5424 of argument.
5425
5426 2020-08-07 Tom Tromey <tromey@adacore.com>
5427
5428 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5429 Remove.
5430 (ravenscar_thread_target::extra_thread_info): Remove.
5431 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5432 defer to target beneath for non-Ravenscar threads.
5433
5434 2020-08-07 Tom Tromey <tromey@adacore.com>
5435
5436 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5437 get_base_thread_from_ravenscar_task>: Now methods.
5438 <m_cpu_map>: New member.
5439 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5440 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5441 (ravenscar_thread_target::task_is_currently_active): Update.
5442 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5443 Now a method.
5444 (ravenscar_thread_target::add_active_thread): Put initial thread
5445 into the m_cpu_map.
5446
5447 2020-08-07 Tom Tromey <tromey@adacore.com>
5448
5449 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5450 event_ptid.
5451
5452 2020-08-07 Tom Tromey <tromey@adacore.com>
5453
5454 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5455 runtime_initialized.
5456
5457 2020-08-07 Tom Tromey <tromey@adacore.com>
5458
5459 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5460 add_active_thread.
5461 (ravenscar_thread_target::add_active_thread): Now public.
5462 (ravenscar_inferior_created): Call add_active_thread after pushing
5463 the target.
5464
5465 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * regcache.c (ptid_regcache_map): New type.
5468 (target_ptid_regcache_map): New type.
5469 (regcaches): Change type to target_ptid_regcache_map.
5470 (get_thread_arch_aspace_regcache): Update to regcaches' new
5471 type.
5472 (regcache_thread_ptid_changed): Likewise.
5473 (registers_changed_ptid): Likewise.
5474 (regcaches_size): Likewise.
5475 (regcaches_test): Update.
5476 (regcache_thread_ptid_changed): Update.
5477 * regcache.h (regcache_up): New type.
5478 * gdbsupport/ptid.h (hash_ptid): New struct.
5479
5480 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * observable.h (thread_ptid_changed): Add parameter
5483 `process_stratum_target *`.
5484 * infrun.c (infrun_thread_ptid_changed): Add parameter
5485 `process_stratum_target *` and use it.
5486 (selftests): New namespace.
5487 (infrun_thread_ptid_changed): New function.
5488 (_initialize_infrun): Register selftest.
5489 * regcache.c (regcache_thread_ptid_changed): Add parameter
5490 `process_stratum_target *` and use it.
5491 (regcache_thread_ptid_changed): New function.
5492 (_initialize_regcache): Register selftest.
5493 * thread.c (thread_change_ptid): Pass target to
5494 thread_ptid_changed observable.
5495
5496 2020-08-06 Caroline Tice <cmtice@google.com>
5497
5498 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5499 (struct dwp_sections): Update field comments. Add loclists and
5500 rnglists fields.
5501 (struct virtual_v2_dwo_sections): Rename struct to
5502 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5503 size & offset fields for loclists and rnglists.
5504 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5505 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5506 skipping dummy type units.
5507 (create_dwp_hash_table): Update the large comment above the function to
5508 discuss Version 5 DWP files as well, with references. Update all the
5509 version checks in the function to check for version 5 as well. Add new
5510 section at the end to create dwp hash table for version 5.
5511 (create_dwp_v2_section): Rename function to
5512 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5513 Add V5 to error message text.
5514 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5515 into calls to create_dwp_v2_or_v5_section.
5516 (create_dwo_unit_in_dwp_v5): New function.
5517 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5518 check for version2; add else clause to handle version 5.
5519 (open_and_init_dwo_file): Add code to check dwarf version & only call
5520 create_debug_types_hash_table (with sections.types) if version is not 5;
5521 else call create_debug_type_hash_table, with sections.info.
5522 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5523 version 5.
5524 (dwarf2_locate_v5_dwp_sections): New function.
5525 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5526 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5527
5528 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5529
5530 * regcache.h (class regcache): Remove friend
5531 registers_changed_ptid.
5532 <regcache_thread_ptid_changed>: Remove.
5533 <regcaches>: Remove.
5534 * regcache.c (regcache::regcaches): Rename to...
5535 (regcaches): ... this. Make static.
5536 (get_thread_arch_aspace_regcache): Update.
5537 (regcache::regcache_thread_ptid_changed): Rename to...
5538 (regcache_thread_ptid_changed): ... this. Update.
5539 (class regcache_access): Remove.
5540 (regcaches_test): Update.
5541 (_initialize_regcache): Update.
5542 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5543 <forward_list>.
5544
5545 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * regcache.h (class regcache) <current_regcache>: Rename to...
5548 <regcaches>: ... this. Move doc here.
5549 * regcache.c (regcache::current_regcache) Rename to...
5550 (regcache::regcaches): ... this. Move doc to header.
5551 (get_thread_arch_aspace_regcache): Update.
5552 (regcache::regcache_thread_ptid_changed): Update.
5553 (registers_changed_ptid): Update.
5554 (class regcache_access) <current_regcache_size>: Rename to...
5555 <regcaches_size>: ... this.
5556 (current_regcache_test): Rename to...
5557 (regcaches_test): ... this.
5558 (_initialize_regcache): Update.
5559
5560 2020-08-06 Victor Collod <vcollod@nvidia.com>
5561
5562 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5563
5564 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5565
5566 * corelow.c (core_target::build_file_mappings): Don't output
5567 null pathname in warning.
5568
5569 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5570
5571 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5572 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5573 gdb.dwarf2/dw2-single-line-discriminators.exp,
5574 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5575
5576 2020-08-05 Tom Tromey <tromey@adacore.com>
5577
5578 PR rust/26197:
5579 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5580 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5581 Fix off-by-one and type size errors in ordinary case.
5582
5583 2020-08-05 Tom de Vries <tdevries@suse.de>
5584
5585 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5586 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5587
5588 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * frame.h (frame_id_p): Return bool.
5591 (frame_id_artificial_p): Return bool.
5592 (frame_id_eq): Return bool.
5593 (has_stack_frames): Return bool.
5594 (get_selected_frame): Fix typo in comment.
5595 (get_frame_pc_if_available): Return bool.
5596 (get_frame_address_in_block_if_available): Return bool.
5597 (get_frame_func_if_available): Return bool.
5598 (read_frame_register_unsigned): Return bool.
5599 (get_frame_register_bytes): Return bool.
5600 (safe_frame_unwind_memory): Return bool.
5601 (deprecated_frame_register_read): Return bool.
5602 (frame_unwinder_is): Return bool.
5603 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5604 bool.
5605 <this_id::p>: Likewise.
5606 <prev_p>: Likewise.
5607 (frame_stash_add): Return bool.
5608 (get_frame_id): Use bool.
5609 (frame_id_build_special) Use bool.
5610 (frame_id_build_unavailable_stack): Use bool.
5611 (frame_id_build): Use bool.
5612 (frame_id_p): Return bool, use true/false instead of 1/0.
5613 (frame_id_artificial_p): Likewise.
5614 (frame_id_eq): Likewise.
5615 (frame_id_inner): Likewise.
5616 (get_frame_func_if_available): Likewise.
5617 (read_frame_register_unsigned): Likewise.
5618 (deprecated_frame_register_read): Likewise.
5619 (get_frame_register_bytes): Likewise.
5620 (has_stack_frames): Likewise.
5621 (inside_main_func): Likewise.
5622 (inside_entry_func): Likewise.
5623 (get_frame_pc_if_available): Likewise.
5624 (get_frame_address_in_block_if_available): Likewise.
5625 (frame_unwinder_is): Likewise.
5626 (safe_frame_unwind_memory): Likewise.
5627 (frame_unwind_arch): Likewise.
5628
5629 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5632 type to cached_copy_status.
5633 (fprintf_frame): Adjust.
5634 (get_frame_func_if_available): Adjust.
5635 (frame_cleanup_after_sniffer): Adjust.
5636
5637 2020-08-04 Mark Wielaard <mark@klomp.org>
5638
5639 * MAINTAINERS (Write After Approval): Update email address.
5640
5641 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5642
5643 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5644 dynamic_prop::const_val.
5645
5646 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5647
5648 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5649 dynamic_prop::kind.
5650
5651 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5654
5655 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5656
5657 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5658
5659 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5660 Jose E. Marchesi <jose.marchesi@oracle.com>
5661
5662 * configure.tgt: Add entry for bpf-*-*.
5663 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5664 (ALLDEPFILES): Add bpf-tdep.c.
5665 * bpf-tdep.c: New file.
5666 * MAINTAINERS: Add bpf target and maintainer.
5667 * NEWS: Mention the support for the new target.
5668
5669 2020-08-04 Tom de Vries <tdevries@suse.de>
5670
5671 PR symtab/23270
5672 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5673 Error.
5674
5675 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5676
5677 * syscalls/freebsd.xml: Regenerate.
5678
5679 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5680
5681 * syscalls/update-freebsd.sh: Fix usage and year range.
5682
5683 2020-08-03 Tom de Vries <tdevries@suse.de>
5684
5685 PR symtab/26333
5686 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5687 DW_LNE_lo_user/DW_LNE_hi_user range.
5688
5689 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5690
5691 PR ada/26318
5692 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5693 kind.
5694
5695 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5696
5697 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5698
5699 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5700
5701 * breakpoint.c (set_breakpoint_condition): Update the condition
5702 expressions after checking that the input condition string parses
5703 successfully and does not contain junk at the end.
5704
5705 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5706
5707 * breakpoint.c (set_breakpoint_condition): Update the
5708 condition string after parsing the new condition successfully.
5709
5710 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5711
5712 * proc-api.c (_STRUCTURED_PROC): Don't define.
5713 * proc-events.c: Likewise.
5714 * proc-flags.c: Likewise.
5715 * proc-why.c: Likewise.
5716 * procfs.c: Likewise.
5717
5718 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5719 * configure, config.in: Regenerate.
5720
5721 2020-07-30 Tom de Vries <tdevries@suse.de>
5722
5723 PR build/26320
5724 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5725 m_red/m_green/m_blue in a union.
5726
5727 2020-07-29 Tom de Vries <tdevries@suse.de>
5728
5729 PR tdep/26280
5730 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5731
5732 2020-07-28 Tom Tromey <tromey@adacore.com>
5733
5734 PR symtab/26270:
5735 * symtab.h (find_pc_partial_function_sym): Declare.
5736 * cli/cli-cmds.c (disassemble_command): Use
5737 find_pc_partial_function_sym. Check asm_demangle.
5738 * blockframe.c (cache_pc_function_sym): New global.
5739 (cache_pc_function_name): Remove.
5740 (clear_pc_function_cache): Update.
5741 (find_pc_partial_function_sym): New function, from
5742 find_pc_partial_function.
5743 (find_pc_partial_function): Rewrite using
5744 find_pc_partial_function_sym.
5745
5746 2020-07-28 Tom Tromey <tromey@adacore.com>
5747
5748 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5749 help. Add usage.
5750
5751 2020-07-28 Tom Tromey <tromey@adacore.com>
5752
5753 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5754 <DW_OP_GNU_variable_value>: Cast to address type.
5755
5756 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5757
5758 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5759 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5760 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5761 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5762 (nbsd_get_siginfo_type): New.
5763 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5764 (_initialize_nbsd_tdep): New.
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 H.J. Lu <hongjiu.lu@intel.com>
5772
5773 PR binutils/26301
5774 * configure: Regenerated.
5775
5776 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5777
5778 * python/py-frame.c: Remove 'user-regs.h' include.
5779 (frapy_read_register): Rewrite to make use of
5780 gdbpy_parse_register_id.
5781 * python/py-registers.c (gdbpy_parse_register_id): New function,
5782 moved here from python/py-unwind.c. Updated the return type, and
5783 also accepts register descriptor objects.
5784 * python/py-unwind.c: Remove 'user-regs.h' include.
5785 (pyuw_parse_register_id): Moved to python/py-registers.c.
5786 (unwind_infopy_add_saved_register): Update to use
5787 gdbpy_parse_register_id.
5788 (pending_framepy_read_register): Likewise.
5789 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5790
5791 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5792
5793 * python/py-registers.c: Add 'user-regs.h' include.
5794 (register_descriptor_iter_find): New function.
5795 (register_descriptor_iterator_object_methods): New static global
5796 methods array.
5797 (register_descriptor_iterator_object_type): Add pointer to methods
5798 array.
5799
5800 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5801
5802 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5803 for all architectures on FreeBSD 11.3 and later.
5804
5805 2020-07-27 Tom Tromey <tromey@adacore.com>
5806
5807 * gcore.h (load_corefile): Don't declare.
5808
5809 2020-07-27 Tom de Vries <tdevries@suse.de>
5810
5811 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5812 * config.in: Regenerate.
5813 * configure: Regenerate.
5814
5815 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5816
5817 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5818 ws2tcpip.h. When checking whether socklen_t type is defined, use
5819 ws2tcpip.h if it is available and sys/socket.h isn't.
5820 * configure: Regenerate.
5821 * config.in: Regenerate.
5822
5823 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5824
5825 PR fortran/23051
5826 PR fortran/26139
5827 * valops.c (value_ind): Pass address to
5828 readjust_indirect_value_type.
5829 * value.c (readjust_indirect_value_type): Make parameter
5830 non-const, and add extra address parameter. Resolve original type
5831 before using it.
5832 * value.h (readjust_indirect_value_type): Update function
5833 signature and comment.
5834
5835 2020-07-25 Tom de Vries <tdevries@suse.de>
5836
5837 PR symtab/26243
5838 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5839 entries.
5840
5841 2020-07-24 Aaron Merey <amerey@redhat.com>
5842
5843 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5844 * configure: Rebuild.
5845
5846 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5847
5848 PR corefiles/26294
5849 * corelow.c (_initialize_corelow): Add period to help text
5850 for "maintenance print core-file-backed-mappings".
5851
5852 2020-07-23 Pedro Alves <pedro@palves.net>
5853
5854 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5855 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5856 meanwhile.
5857 * frame.c (frame_cache_generation, get_frame_cache_generation):
5858 New.
5859 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5860 (get_prev_frame_if_no_cycle): On exception, don't touch
5861 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5862 * frame.h (get_frame_cache_generation): Declare.
5863
5864 2020-07-23 Tom de Vries <tdevries@suse.de>
5865
5866 PR tui/26282
5867 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5868 New default constructor.
5869
5870 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5871
5872 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5873 exclude non-statement entries.
5874
5875 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5876
5877 * NEWS (New commands): Mention new command
5878 "maintenance print core-file-backed-mappings".
5879
5880 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5881
5882 * corelow.c (gdbcmd.h): Include.
5883 (core_target::info_proc_mappings): New method.
5884 (get_current_core_target): New function.
5885 (maintenance_print_core_file_backed_mappings): New function.
5886 (_initialize_corelow): Add core-file-backed-mappings to
5887 "maint print" commands.
5888
5889 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5890
5891 * linux-tdep.c (dump_note_entry_p): New function.
5892 (linux_dump_mapping_p_ftype): New typedef.
5893 (linux_find_memory_regions_full): Add new parameter,
5894 should_dump_mapping_p.
5895 (linux_find_memory_regions): Adjust call to
5896 linux_find_memory_regions_full.
5897 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5898 call to linux_find_memory_regions_full.
5899
5900 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5901
5902 * corelow.c (solist.h, unordered_map): Include.
5903 (class core_target): Add field m_core_file_mappings and
5904 method build_file_mappings.
5905 (core_target::core_target): Call build_file_mappings.
5906 (core_target::~core_target): Free memory associated with
5907 m_core_file_mappings.
5908 (core_target::build_file_mappings): New method.
5909 (core_target::xfer_partial): Use m_core_file_mappings
5910 for memory transfers.
5911 * linux-tdep.c (linux_read_core_file_mappings): New
5912 function.
5913 (linux_core_info_proc_mappings): Rewrite to use
5914 linux_read_core_file_mappings.
5915 (linux_init_abi): Register linux_read_core_file_mappings.
5916
5917 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5918
5919 * arch-utils.c (default_read_core_file_mappings): New function.
5920 * arch-utils.c (default_read_core_file_mappings): Declare.
5921 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5922 * gdbarch.h, gdbarch.c: Regenerate.
5923
5924 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5925
5926 PR corefiles/25631
5927 * corelow.c (core_target:xfer_partial): Revise
5928 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5929 case after first checking the stratum beneath the core
5930 target.
5931 (has_all_memory): Return true.
5932 * target.c (raw_memory_xfer_partial): Revise comment
5933 regarding use of has_all_memory.
5934
5935 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5936
5937 * exec.h (section_table_xfer_memory): Revise declaration,
5938 replacing section name parameter with an optional callback
5939 predicate.
5940 * exec.c (section_table_xfer_memory): Likewise.
5941 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5942 of section_table_xfer_memory.
5943
5944 2020-07-22 Tom Tromey <tromey@adacore.com>
5945
5946 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5947 lookup_symbol_search_name.
5948
5949 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5950
5951 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5952 redundant local variable.
5953 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5954 reference, not pointer, update code accordingly.
5955
5956 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5957 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5958
5959 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5960 * jit.c (jit_breakpoint_re_set_internal): Use the
5961 `skip_jit_symbol_lookup` field.
5962
5963 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5964 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5965
5966 * jit.c (jit_read_descriptor): Define the descriptor address once,
5967 use twice.
5968 (jit_breakpoint_deleted): Move the declaration of the loop variable
5969 `iter` into the loop header.
5970 (jit_breakpoint_re_set_internal): Move the declaration of the local
5971 variable `objf_data` to the first point of definition.
5972 (jit_event_handler): Move the declaration of local variables
5973 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5974 Rename `objf` to `jited`.
5975
5976 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5979 Remove.
5980 * jit.c (get_jiter_objfile_data): Update.
5981
5982 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5983 Simon Marchi <simon.marchi@polymtl.ca>
5984
5985 * jit.c (struct jit_program_space_data): Remove.
5986 (jit_program_space_key): Remove.
5987 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5988 stuff.
5989 (get_jit_program_space_data): Remove.
5990 (jit_breakpoint_deleted): Iterate on all of the program space's
5991 objfiles.
5992 (jit_inferior_init): Likewise.
5993 (jit_breakpoint_re_set_internal): Likewise. Also change return
5994 type to void.
5995 (jit_breakpoint_re_set): Pass current_program_space to
5996 jit_breakpoint_re_set_internal.
5997
5998 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * jit.h (struct jiter_objfile_data) <cached_code_address,
6001 jit_breakpoint>: Move to here from ...
6002 * jit.c (jit_program_space_data): ... here.
6003 (jiter_objfile_data::~jiter_objfile_data): Update.
6004 (jit_breakpoint_deleted): Update.
6005 (jit_breakpoint_re_set_internal): Update.
6006
6007 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6010 checks.
6011 (jit_read_descriptor): Remove NULL check.
6012 (jit_event_handler): Add an assertion.
6013
6014 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 * jit.h (struct jit_objfile_data): Split into...
6017 (struct jiter_objfile_data): ... this ...
6018 (struct jited_objfile_data): ... and this.
6019 * objfiles.h (struct objfile) <jit_data>: Remove.
6020 <jiter_data, jited_data>: New fields.
6021 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6022 (jiter_objfile_data::~jiter_objfile_data): ... this.
6023 (get_jit_objfile_data): Rename to ...
6024 (get_jiter_objfile_data): ... this.
6025 (add_objfile_entry): Update.
6026 (jit_read_descriptor): Use get_jiter_objfile_data.
6027 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6028 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6029 (jit_inferior_exit_hook): Use objfile's jited_data field.
6030
6031 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * jit.h: Forward-declare `struct minimal_symbol`.
6034 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6035 constructor, destructor, and an objfile* field.
6036 * jit.c (jit_objfile_data): Remove.
6037 (struct jit_objfile_data): Migrate from here to jit.h.
6038 (jit_objfile_data::~jit_objfile_data): New destructor
6039 implementation with code moved from free_objfile_data.
6040 (free_objfile_data): Delete.
6041 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6042 (jit_find_objf_with_entry_addr): Ditto.
6043 (jit_inferior_exit_hook): Ditto.
6044 (_initialize_jit): Remove the call to
6045 register_objfile_data_with_cleanup.
6046 * objfiles.h (struct objfile) <jit_data>: New field.
6047
6048 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6049
6050 * jit.h: Forward-declare `struct objfile`.
6051 (jit_event_handler): Add a second parameter, the JITer objfile.
6052 * jit.c (jit_read_descriptor): Change the signature to take the
6053 JITer objfile as an argument instead of the jit_program_space_data.
6054 (jit_inferior_init): Update the call to jit_read_descriptor.
6055 (jit_event_handler): Use the new JITer objfile argument when calling
6056 jit_read_descriptor.
6057 * breakpoint.c (handle_jit_event): Update the call to
6058 jit_event_handler to pass the JITer objfile.
6059
6060 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6061
6062 * gdbarch.c: Regenerate.
6063 * gdbarch.h: Regenerate.
6064 * gdbarch.sh (handle_segmentation_fault): Remove method.
6065 * infrun.c (handle_segmentation_fault): Remove.
6066 (print_signal_received_reason): Remove call to
6067 handle_segmentation_fault.
6068
6069 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6070
6071 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6072 Rename to sparc64_linux_report_signal_info and add siggnal
6073 argument.
6074 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6075 instead of sparc64_linux_handle_segmentation_fault.
6076
6077 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6078
6079 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6080 i386_linux_report_signal_info instead of
6081 i386_linux_handle_segmentation_fault.
6082 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6083 to i386_linux_report_signal_info and add siggnal argument.
6084 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6085 of i386_linux_handle_segmentation_fault.
6086 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6087 to i386_linux_report_signal_info and add siggnal argument.
6088
6089 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6090
6091 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6092 hook if present.
6093
6094 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6095
6096 * gdbarch.c: Regenerate.
6097 * gdbarch.h: Regenerate.
6098 * gdbarch.sh (report_signal_info): New method.
6099 * infrun.c (print_signal_received_reason): Invoke gdbarch
6100 report_signal_info hook if present.
6101
6102 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * python/py-registers.c : Add 'unordered_map' include.
6105 (gdbpy_new_reggroup): Renamed to...
6106 (gdbpy_get_reggroup): ...this. Update to only create register
6107 group descriptors when needed.
6108 (gdbpy_reggroup_iter_next): Update.
6109
6110 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * python/py-registers.c (gdbpy_register_object_data): New static
6113 global.
6114 (gdbpy_register_object_data_init): New function.
6115 (gdbpy_new_register_descriptor): Renamed to...
6116 (gdbpy_get_register_descriptor): ...this, and update to reuse
6117 existing register descriptors where possible.
6118 (gdbpy_register_descriptor_iter_next): Update.
6119 (gdbpy_initialize_registers): Register new gdbarch data.
6120
6121 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * linux-nat.c (stopped_pids): Make static.
6124
6125 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6126
6127 PR ada/26235
6128 * gdbtypes.c (ada_discrete_type_low_bound,
6129 ada_discrete_type_high_bound): Handle undefined bounds.
6130
6131 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6132
6133 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6134 declaration.
6135 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6136 function.
6137
6138 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6139
6140 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6141 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6142 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6143 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6144 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6145 method.
6146
6147 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6148
6149 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6150 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6151 which are deprecated in Guile 3.0.
6152 * configure.ac (try_guile_versions): Add "guile-3.0".
6153 * configure (try_guile_versions): Regenerate.
6154 * NEWS: Update entry.
6155
6156 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6157 Doug Evans <dje@google.com>
6158
6159 PR gdb/21104
6160 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6161 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6162 USING_GUILE_BEFORE_2_2.
6163 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6164 Change type to 'scm_t_port_type *'.
6165 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6166 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6167 parameter and honor it. Update callers.
6168 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6169 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6170 functions.
6171 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6172 USING_GUILE_BEFORE_2_2.
6173 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6174 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6175 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6176 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6177 and 'SCM_PORT_TYPE'.
6178 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6179 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6180 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6181 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6182 [!USING_GUILE_BEFORE_2_2]: New functions.
6183 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6184 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6185 'gdbscm_memory_port_read'.
6186 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6187 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6188 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6189 function.
6190 (ioscm_init_memory_port): Remove.
6191 (ioscm_init_memory_port_stream): New function
6192 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6193 function.
6194 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6195 Return scm_from_uint (0).
6196 (gdbscm_set_memory_port_read_buffer_size_x)
6197 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6198 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6199 Return scm_from_uint (0).
6200 (gdbscm_set_memory_port_write_buffer_size_x)
6201 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6202 * configure.ac (try_guile_versions): Add "guile-2.2".
6203 * configure: Regenerate.
6204 * NEWS: Add entry.
6205
6206 2020-07-18 Tom Tromey <tom@tromey.com>
6207
6208 * linux-nat.c (linux_multi_process): Remove.
6209 (linux_nat_target::supports_multi_process): Return true.
6210
6211 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6214 (riscv_lookup_target_description): Return pointer out of
6215 unique_ptr.
6216 * target-descriptions.c (allocate_target_description): Add
6217 comment.
6218 (target_desc_deleter::operator()): Likewise.
6219 * target-descriptions.h (struct target_desc_deleter): Moved to
6220 gdbsupport/tdesc.h.
6221 (target_desc_up): Likewise.
6222
6223 2020-07-17 Tom Tromey <tromey@adacore.com>
6224
6225 * linux-nat.c (linux_nat_target::supports_non_stop)
6226 (linux_nat_target::always_non_stop_p): Use "true".
6227 (linux_nat_target::supports_disable_randomization): Use "true" and
6228 "false".
6229
6230 2020-07-16 Caroline Tice <cmtice@google.com>
6231
6232 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6233 (RNGLIST_HEADER_SIZE64): New constant definition.
6234 (struct dwop_section_names): Add rnglists_dwo.
6235 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6236 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6237 (struct dwo_sections): Add rnglists field.
6238 (read_attribut_reprocess): Add tag parameter.
6239 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6240 (cu_debug_rnglists_section): New function (decl & definition).
6241 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6242 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6243 die whose range is being checked; get rnglist section from
6244 cu_debug_rnglists_section, to get from either objfile or dwo file as
6245 appropriate. Add cases for DW_RLE_base_addressx,
6246 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6247 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6248 test inside if-condition and updating complaint message.
6249 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6250 dwarf2_rnglists_process.
6251 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6252 dwarf2_ranges_process.
6253 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6254 need_ranges_base and update comment appropriately. Also pass die tag
6255 to dwarf2_ranges_read.
6256 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6257 need_ranges_base and update comment appropriately. Also pass die tag
6258 to dwarf2_ranges_process.
6259 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6260 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6261 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6262 need_ranges_base and update comment appropriately. Also pass die tag
6263 to read_attribute_reprocess and dwarf2_ranges_read.
6264 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6265 and update function comment appropriately.
6266 (read_loclist_index): Call read_loclists_rnglists_header instead of
6267 read_loclist_header.
6268 (read_rnglist_index): New function.
6269 (read_attribute_reprocess): Add tag parameter. Add code for
6270 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6271 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6272
6273 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6276 being resolved.
6277
6278 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6279
6280 * arch-utils.c (show_architecture): Update formatting of messages.
6281
6282 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6283
6284 * gdbtypes.h (struct type) <bounds>: Handle array and string
6285 types.
6286 * ada-lang.c (assign_aggregate): Use type::bounds on
6287 array/string type.
6288 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6289 * c-varobj.c (c_number_of_children): Likewise.
6290 (c_describe_child): Likewise.
6291 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6292 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6293 (f_type_print_base): Likewise.
6294 * f-valprint.c (f77_array_offset_tbl): Likewise.
6295 (f77_get_upperbound): Likewise.
6296 (f77_print_array_1): Likewise.
6297 * guile/scm-type.c (gdbscm_type_range): Likewise.
6298 * m2-typeprint.c (m2_array): Likewise.
6299 (m2_is_long_set_of_type): Likewise.
6300 * m2-valprint.c (get_long_set_bounds): Likewise.
6301 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6302 * python/py-type.c (typy_range): Likewise.
6303 * rust-lang.c (rust_internal_print_type): Likewise.
6304 * type-stack.c (type_stack::follow_types): Likewise.
6305 * valarith.c (value_subscripted_rvalue): Likewise.
6306 * valops.c (value_cast): Likewise.
6307
6308 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6311 callers to use the equivalent accessor methods.
6312
6313 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6316 (struct type) <bit_stride>: New method.
6317 (TYPE_BIT_STRIDE): Remove.
6318 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6319
6320 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6321
6322 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6323 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6324 callers to use the equivalent accessor methods instead.
6325
6326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6329 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6330 callers to use the equivalent accessor methods instead.
6331
6332 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6335 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6336 to use dynamic_prop::kind.
6337
6338 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6341 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6342 to get the bound property's kind and check against
6343 PROP_UNDEFINED.
6344
6345 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6348 all callers to use type::range_bounds followed by
6349 dynamic_prop::{low,high}.
6350
6351 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6352
6353 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6354 const_val, set_const_val, baton, set_locexpr, set_loclist,
6355 set_addr_offset, variant_parts, set_variant_parts,
6356 original_type, set_original_type>: New methods.
6357 <kind>: Rename to...
6358 <m_kind>: ... this. Update all users to use the new methods
6359 instead.
6360 <data>: Rename to...
6361 <m_data>: ... this. Update all users to use the new methods
6362 instead.
6363
6364 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * gdbtypes.c (get_discrete_bounds): Return failure if
6367 the range type's bounds are not both defined and constant
6368 values.
6369 (get_array_bounds): Update comment. Remove undefined bound check.
6370
6371 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6374 the type::bounds method directly.
6375
6376 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6379 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6380 are used to set the range type's bounds to use set_bounds.
6381
6382 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6383
6384 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6385
6386 2020-07-10 Pedro Alves <pedro@palves.net>
6387
6388 * gdbthread.h (inferior_ref): Define.
6389 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6390 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6391 * thread.c
6392 (scoped_restore_current_thread::restore):
6393 Adjust to gdb::ref_ptr.
6394 (scoped_restore_current_thread::~scoped_restore_current_thread):
6395 Remove manual decref handling.
6396 (scoped_restore_current_thread::scoped_restore_current_thread):
6397 Adjust to use
6398 inferior_ref::new_reference/thread_info_ref::new_reference.
6399 Incref the thread before calling get_frame_id instead of after.
6400 Let TARGET_CLOSE_ERROR propagate.
6401
6402 2020-07-10 Pedro Alves <pedro@palves.net>
6403
6404 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6405 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6406 NOT_AVAILABLE_ERROR.
6407 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6408 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6409
6410 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6411 Pedro Alves <pedro@palves.net>
6412
6413 PR gdb/26199
6414 * infrun.c (threads_are_resumed_pending_p): Delete.
6415 (do_target_wait): Remove threads_are_executing and
6416 threads_are_resumed_pending_p checks from the inferior_matches
6417 lambda. Update comments.
6418
6419 2020-07-10 Pedro Alves <pedro@palves.net>
6420
6421 PR gdb/26199
6422 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6423 executing threads.
6424
6425 2020-07-10 Pedro Alves <pedro@palves.net>
6426
6427 PR gdb/26199
6428 * infrun.c (handle_no_resumed): Handle multiple targets.
6429
6430 2020-07-10 Pedro Alves <pedro@palves.net>
6431
6432 PR gdb/26199
6433 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6434 target_is_async_p.
6435
6436 2020-07-10 Pedro Alves <pedro@palves.net>
6437
6438 PR gdb/26199
6439 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6440 threads, not all threads.
6441
6442 2020-07-10 Pedro Alves <pedro@palves.net>
6443
6444 PR gdb/26199
6445 * remote.c (remote_target::open_1): Pass remote target pointer as
6446 data to create_async_event_handler.
6447 (remote_async_inferior_event_handler): Mark async event handler
6448 before returning if the remote target still has either pending
6449 events or unacknowledged notifications.
6450
6451 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6452
6453 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6454 declaration.
6455 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6456 function.
6457
6458 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6459
6460 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6461 inferior_ptid.
6462
6463 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6464
6465 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6466 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6467 AT_FREEBSD_PS_STRINGS.
6468
6469 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6470
6471 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6472 of debugfile path on Windows.
6473
6474 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6475
6476 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6477 argument to 'data'.
6478
6479 2020-07-08 Tom Tromey <tromey@adacore.com>
6480
6481 * ada-lang.c (ada_exception_message_1): Use read_memory.
6482
6483 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 PR python/22748
6486 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6487 special handling for inline frames.
6488 * findvar.c (value_of_register_lazy): Skip inline frames when
6489 creating lazy register values.
6490 * frame.c (frame_id_computed_p): Delete definition.
6491 * frame.h (frame_id_computed_p): Delete declaration.
6492
6493 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * NEWS: Mention additions to Python API.
6496 * python/py-arch.c (archpy_register_groups): New function.
6497 (arch_object_methods): Add 'register_groups' method.
6498 * python/py-registers.c (reggroup_iterator_object): New struct.
6499 (reggroup_object): New struct.
6500 (gdbpy_new_reggroup): New function.
6501 (gdbpy_reggroup_to_string): New function.
6502 (gdbpy_reggroup_name): New function.
6503 (gdbpy_reggroup_iter): New function.
6504 (gdbpy_reggroup_iter_next): New function.
6505 (gdbpy_new_reggroup_iterator): New function
6506 (gdbpy_initialize_registers): Register new types.
6507 (reggroup_iterator_object_type): Define new Python type.
6508 (gdbpy_reggroup_getset): New static global.
6509 (reggroup_object_type): Define new Python type.
6510 * python/python-internal.h
6511
6512 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6515 * python/py-arch.c (archpy_registers): New function.
6516 (arch_object_methods): Add 'registers' method.
6517 * python/py-registers.c: New file.
6518 * python/python-internal.h
6519 (gdbpy_new_register_descriptor_iterator): Declare.
6520 (gdbpy_initialize_registers): Declare.
6521 * python/python.c (do_start_initialization): Call
6522 gdbpy_initialize_registers.
6523 * NEWS: Mention additions to the Python API.
6524
6525 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6526
6527 * NEWS: Mention new Python API method.
6528 * python/py-unwind.c (pending_framepy_architecture): New function.
6529 (pending_frame_object_methods): Add architecture method.
6530
6531 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6532
6533 * gdbarch.c: Regenerate.
6534 * gdbarch.h: Regenerate.
6535 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6536 (gdbarch_data): Use internal_error for the case where
6537 deprecated_set_gdbarch_data was originally needed.
6538 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6539 and use passed in obstack.
6540 (libunwind_frame_set_descr): Should no longer get back NULL from
6541 gdbarch_data.
6542 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6543 type.
6544 * user-regs.c (user_regs_init): Update parameters, and use passed
6545 in obstack.
6546 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6547 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6548
6549 2020-07-06 Tom de Vries <tdevries@suse.de>
6550
6551 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6552 End-Of-Sequence in lte_is_less_than.
6553 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6554 "gdb: Don't reorder line table entries too much when sorting".
6555
6556 2020-07-06 Tom de Vries <tdevries@suse.de>
6557
6558 PR tui/26205
6559 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6560
6561 2020-07-05 Tom de Vries <tdevries@suse.de>
6562
6563 PR build/26187
6564 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6565 std::uncaught_exceptions instead of deprecated
6566 std::uncaught_exception.
6567
6568 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * macroexp.h (macro_stringify): Return
6571 gdb::unique_xmalloc_ptr<char>.
6572 * macroexp.c (macro_stringify): Likewise.
6573 * macrotab.c (fixup_definition): Update.
6574
6575 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6578 (lex_one_token): Update.
6579 * macroexp.c (struct macro_buffer) <release>: Return
6580 gdb::unique_xmalloc_ptr<char>.
6581 (macro_stringify): Update.
6582 (macro_expand): Update.
6583 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6584 * macroexp.h (macro_expand_next): Likewise.
6585
6586 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * macroexp.h (macro_lookup_ftype): Remove.
6589 (macro_expand, macro_expand_once, macro_expand_next): Remove
6590 lookup function parameters, add scope parameter.
6591 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6592 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6593 * macroscope.h (standard_macro_lookup): Change parameter type
6594 to macro_scope.
6595 * macroscope.c (standard_macro_lookup): Likewise.
6596 * c-exp.y (lex_one_token): Update.
6597 * macrocmd.c (macro_expand_command): Likewise.
6598 (macro_expand_once_command): Likewise.
6599
6600 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * inf-loop.c (inferior_event_handler): Remove client_data param.
6603 * inf-loop.h (inferior_event_handler): Likewise.
6604 * infcmd.c (step_1): Adjust.
6605 * infrun.c (proceed): Adjust.
6606 (fetch_inferior_event): Remove client_data param.
6607 (infrun_async_inferior_event_handler): Adjust.
6608 * infrun.h (fetch_inferior_event): Remove `void *` param.
6609 * linux-nat.c (handle_target_event): Adjust.
6610 * record-btrace.c (record_btrace_handle_async_inferior_event):
6611 Adjust.
6612 * record-full.c (record_full_async_inferior_event_handler):
6613 Adjust.
6614 * remote.c (remote_async_inferior_event_handler): Adjust.
6615
6616 2020-07-01 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6619 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6620
6621 2020-07-01 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6624 tui_gen_win_info.
6625 (tui_win_info::make_window): Merge with
6626 tui_gen_win_info::make_window.
6627 (tui_win_info::make_visible): Move from tui_gen_win_info.
6628 * tui/tui-win.c (tui_win_info::max_width): Move from
6629 tui_gen_win_info.
6630 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6631 type.
6632 <window_factory>: Likewise.
6633 * tui/tui-layout.c (tui_win_info::resize): Move from
6634 tui_gen_win_info.
6635 (make_standard_window): Change return type.
6636 (get_locator_window, tui_get_window_by_name): Likewise.
6637 (tui_layout_window::apply): Remove a cast.
6638 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6639 (struct tui_win_info): Merge with tui_gen_win_info.
6640 (struct tui_gen_win_info): Remove.
6641
6642 2020-07-01 Tom Tromey <tom@tromey.com>
6643
6644 * tui/tui-stack.h (struct tui_locator_window): Derive from
6645 tui_win_info.
6646 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6647 <can_box>: New method.
6648
6649 2020-07-01 Tom Tromey <tom@tromey.com>
6650
6651 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6652
6653 2020-07-01 Tom Tromey <tom@tromey.com>
6654
6655 * tui/tui-regs.c (tui_data_window::display_registers_from)
6656 (tui_data_window::display_registers_from)
6657 (tui_data_window::first_data_item_displayed)
6658 (tui_data_window::delete_data_content_windows): Update.
6659 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6660 Remove.
6661 (tui_data_window::check_register_values): Update.
6662 (tui_data_item_window::rerender): Add parameters. Update.
6663 (tui_data_item_window::refresh_window): Remove.
6664 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6665 virtual.
6666 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6667 tui_gen_win_info.
6668 <refresh_window, max_height, min_height>: Remove.
6669 <rerender>: Add parameters.
6670 <x, y, visible>: New members.
6671 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6672 <m_item_width>: New member.
6673
6674 2020-07-01 Tom Tromey <tom@tromey.com>
6675
6676 * tui/tui-regs.c (tui_data_window::show_register_group)
6677 (tui_data_window::check_register_values): Update.
6678 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6679 from item_no.
6680
6681 2020-07-01 Tom Tromey <tom@tromey.com>
6682
6683 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6684 useless "if".
6685
6686 2020-07-01 Tom Tromey <tom@tromey.com>
6687
6688 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6689 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6690
6691 2020-07-01 Tom Tromey <tom@tromey.com>
6692
6693 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6694 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6695 (struct tui_line_or_address): Move from tui-data.h.
6696 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6697 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6698 (tui_cmd_window, tui_source_window_base, tui_source_window)
6699 (tui_disasm_window): Don't declare.
6700 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6701 to tui-winsource.h.
6702 (SINGLE_KEY): Move to tui-stack.c.
6703
6704 2020-07-01 Tom Tromey <tom@tromey.com>
6705
6706 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6707 std::string.
6708 * tui/tui-regs.c (class tab_expansion_file): New.
6709 (tab_expansion_file::write): New method.
6710 (tui_register_format): Change return type. Use
6711 tab_expansion_file.
6712 (tui_get_register, tui_data_window::display_registers_from)
6713 (tui_data_item_window::rerender): Update.
6714 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6715 * tui/tui-io.c (tui_expand_tabs): Remove.
6716
6717 2020-07-01 Tom Tromey <tom@tromey.com>
6718
6719 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6720
6721 2020-07-01 Fangrui Song <maskray@google.com>
6722
6723 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6724
6725 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6726
6727 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6728 forms for DW_AT_associated and DW_AT_allocated attributes,
6729 which is already checked in function attr_to_dynamic_prop.
6730
6731 2020-06-30 Tom Tromey <tromey@adacore.com>
6732
6733 * dwarf2/read.c (quirk_rust_enum): Correctly call
6734 alloc_rust_variant for default-less enum.
6735
6736 2020-06-30 Tom Tromey <tromey@adacore.com>
6737
6738 PR build/26183:
6739 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6740 gdb::to_string.
6741
6742 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6743
6744 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6745 * gdbarch.h: Re-generate.
6746
6747 2020-06-28 Tom Tromey <tom@tromey.com>
6748
6749 * command.h (cmd_types): Remove.
6750 (cmd_type): Don't declare.
6751 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6752 typedef.
6753 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6754 * cli/cli-decode.c (cmd_type): Remove.
6755
6756 2020-06-27 Pedro Alves <palves@redhat.com>
6757
6758 * fork-child.c (prefork_hook): Adjust.
6759 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6760 Delete.
6761 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6762 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6763 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6764 Remove declarations.
6765 (struct inferior) <set_tty, tty>: New methods.
6766 (struct inferior) <terminal>: Rename to ...
6767 (struct inferior) <m_terminal>: ... this and make private.
6768 * main.c (captured_main_1): Adjust.
6769 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6770 (mi_cmd_inferior_tty_show): Adjust.
6771 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6772 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6773
6774 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6775
6776 * configure.ac: Add --enable-libctf: handle --disable-static
6777 properly.
6778 * acinclude.m4: sinclude ../config/enable.m4.
6779 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6780 (LIBCTF): Substitute in.
6781 (CTF_DEPS): New, likewise.
6782 (CLIBS): libctf needs symbols from libbfd: move earlier.
6783 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6784 flags.
6785 * ctfread.c: Surround in ENABLE_LIBCTF.
6786 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6787 * configure: Regenerate.
6788 * config.in: Likewise.
6789
6790 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6791
6792 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6793
6794 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * inferior.h (struct inferior) <terminal>: Change type to
6797 gdb::unique_xmalloc_ptr<char>.
6798 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6799 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6800 field, adjust to unique pointer.
6801 (get_inferior_io_terminal): Adjust to unique pointer.
6802
6803 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6804
6805 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6806 registers, not just the known core set of registers.
6807
6808 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6809
6810 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6811 fflags, frm, and fcsr registers.
6812 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6813 restore groups.
6814 (riscv_tdesc_unknown_reg): New function.
6815 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6816 tdesc_use_registers.
6817 * riscv-tdep.h (struct gdbarch_tdep): Add
6818 unknown_csrs_first_regnum, unknown_csrs_count,
6819 duplicate_fflags_regnum, duplicate_frm_regnum, and
6820 duplicate_fcsr_regnum fields.
6821
6822 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6825 callback, use the callback (when not null) to help number unknown
6826 registers.
6827 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6828 (tdesc_use_registers): Add extra parameter to declaration.
6829
6830 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6831
6832 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6833 in the file.
6834 (class riscv_pending_register_alias): Likewise.
6835 (riscv_register_feature::register_info): Change 'required_p' field
6836 to 'required', and change its type. Add 'check' member function.
6837 (riscv_register_feature::register_info::check): Define new member
6838 function.
6839 (riscv_xreg_feature): Change initialisation of 'required' field.
6840 (riscv_freg_feature): Likewise.
6841 (riscv_virtual_feature): Likewise.
6842 (riscv_csr_feature): Likewise.
6843 (riscv_check_tdesc_feature): Take extra parameter, the csr
6844 tdesc_feature, rewrite the function to use the new
6845 riscv_register_feature::register_info::check function.
6846 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6847
6848 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * features/Makefile: Remove all references to the deleted files
6851 below.
6852 * features/riscv/32bit-csr.c: Deleted.
6853 * features/riscv/32bit-csr.xml: Deleted.
6854 * features/riscv/64bit-csr.c: Deleted.
6855 * features/riscv/64bit-csr.xml: Deleted.
6856 * features/riscv/rebuild-csr-xml.sh: Deleted.
6857
6858 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6859
6860 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6861 whitespace error for declaration of names member variable.
6862 (struct riscv_register_feature): Add new prefer_first_name member
6863 variable, and fix whitespace error in declaration of registers.
6864 (riscv_xreg_feature): Initialize prefer_first_name field.
6865 (riscv_freg_feature): Likewise.
6866 (riscv_virtual_feature): Likewise.
6867 (riscv_csr_feature): Likewise.
6868 (riscv_register_name): Expand on comments. Remove register name
6869 modifications for CSR and virtual registers.
6870
6871 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6872
6873 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6874 errors.
6875
6876 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6877
6878 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6879 riscv-opc.h.
6880 (class riscv_pending_register_alias): New class.
6881 (riscv_check_tdesc_feature): Take vector of pending aliases and
6882 populate it as appropriate.
6883 (riscv_setup_register_aliases): Delete.
6884 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6885 to riscv_check_tdesc_feature in all cases. Use the vector to
6886 create the register aliases.
6887
6888 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6889
6890 * sol2-tdep.c (sol2_static_transform_name): Remove.
6891 (sol2_init_abi): Don't register it.
6892 * gdbarch.sh (static_transform_name): Remove.
6893 * gdbarch.c, gdbarch.h: Regenerate.
6894
6895 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6896 gdbarch_static_transform_name.
6897 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6898 * stabsread.c (define_symbol) <'X'>: Remove.
6899 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6900 handling.
6901 <'V'>: Likewise.
6902 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6903 <'S'>: Remove call to gdbarch_static_transform_name.
6904
6905 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6906
6907 * procfs.c (procfs_pre_trace): New function.
6908 (procfs_target::create_inferior): Pass it to fork_inferior.
6909
6910 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6911
6912 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6913 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6914 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6915 sol2-tdep.o, sparc-sol2-tdep.o.
6916 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6917 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6918 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6919 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6920
6921 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6922
6923 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6924 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6925 Call sol2_init_abi.
6926 Remove calls to set_gdbarch_skip_solib_resolver,
6927 set_gdbarch_core_pid_to_str.
6928 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6929 (i386_sol2_static_transform_name): Remove.
6930 (i386_sol2_init_abi): Call sol2_init_abi.
6931 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6932 set_gdbarch_static_transform_name,
6933 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6934 Use sol2_sigtramp_p.
6935 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6936 (sol2_sigtramp_p): New function.
6937 (sol2_static_transform_name): New function.
6938 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6939 (sol2_init_abi): New function.
6940 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6941 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6942 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6943 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6944 (sparc_sol2_static_transform_name): Remove.
6945 (sparc32_sol2_init_abi): Call sol2_init_abi.
6946 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6947 set_gdbarch_static_transform_name,
6948 set_gdbarch_skip_solib_resolver,
6949 set_gdbarch_core_pid_to_str.
6950 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6951 (sparc_sol2_static_transform_name): Remove
6952 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6953 call sol2_sigtramp_p.
6954 (sparc64_sol2_init_abi): Call sol2_init_abi.
6955 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6956 set_gdbarch_static_transform_name,
6957 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6958
6959 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6960
6961 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6962 * exec.c (validate_exec_file): If from_tty, set both
6963 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6964 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6965 and from_tty, unconditionally ask a confirmation.
6966
6967 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6968
6969 * target-descriptions.c (tdesc_architecture_name): Protect against
6970 NULL pointer dereference.
6971 (maint_print_xml_tdesc_cmd): New function.
6972 (_initialize_target_descriptions): Register new 'maint print
6973 xml-tdesc' command and give it the filename completer.
6974 * NEWS: Mention new 'maint print xml-tdesc' command.
6975
6976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * target-descriptions.c (class tdesc_compatible_info): New class.
6979 (struct target_desc): Change type of compatible vector.
6980 (tdesc_compatible_p): Update for change in type of
6981 target_desc::compatible.
6982 (tdesc_compatible_info_list): New function.
6983 (tdesc_compatible_info_arch_name): New function.
6984 (tdesc_add_compatible): Update for change in type of
6985 target_desc::compatible.
6986 (print_c_tdesc::visit_pre): Likewise.
6987
6988 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6991 whitespace to underscore.
6992 (maint_print_c_tdesc_cmd): Use fake filename for target
6993 descriptions that came from the target.
6994 (_initialize_target_descriptions): Add filename command completion
6995 for 'maint print c-tdesc'.
6996
6997 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7000 lines.
7001
7002 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7005 lines.
7006 (dwarf2_find_location_expression): Likewise.
7007 (call_site_parameter_matches): Likewise.
7008 (dwarf2_compile_expr_to_ax): Likewise.
7009 (disassemble_dwarf_expression): Likewise.
7010 (loclist_describe_location): Likewise.
7011
7012 2020-06-23 Pedro Alves <palves@redhat.com>
7013
7014 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7015 progspace-and-thread.h. Include scoped-mock-context.h instead.
7016 (register_to_value_test): Use scoped_mock_context.
7017 * regcache.c: Include "scoped-mock-context.h".
7018 (cooked_read_test): Don't error out if a target is already pushed.
7019 Use scoped_mock_context. Adjust.
7020 * scoped-mock-context.h: New file.
7021
7022 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7025 initializer.
7026 (ada_language::is_string_type_p): New member function.
7027 * c-lang.c (c_language_data): Delete la_is_string_type_p
7028 initializer.
7029 (cplus_language_data): Likewise.
7030 (asm_language_data): Likewise.
7031 (minimal_language_data): Likewise.
7032 * d-lang.c (d_language_data): Likewise.
7033 * f-lang.c (f_is_string_type_p): Delete function, implementation
7034 moved to f_language::is_string_type_p.
7035 (f_language_data): Delete la_is_string_type_p initializer.
7036 (f_language::is_string_type_p): New member function,
7037 implementation from f_is_string_type_p.
7038 * go-lang.c (go_is_string_type_p): Delete function, implementation
7039 moved to go_language::is_string_type_p.
7040 (go_language_data): Delete la_is_string_type_p initializer.
7041 (go_language::is_string_type_p): New member function,
7042 implementation from go_is_string_type_p.
7043 * language.c (language_defn::is_string_type_p): Define new member
7044 function.
7045 (default_is_string_type_p): Make static, add comment copied from
7046 header file.
7047 (unknown_language_data): Delete la_is_string_type_p initializer.
7048 (unknown_language::is_string_type_p): New member function.
7049 (auto_language_data): Delete la_is_string_type_p initializer.
7050 (auto_language::is_string_type_p): New member function.
7051 * language.h (language_data): Delete la_is_string_type_p field.
7052 (language_defn::is_string_type_p): Declare new function.
7053 (default_is_string_type_p): Delete desclaration, move comment to
7054 definition.
7055 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7056 moved to m2_language::is_string_type_p.
7057 (m2_language_data): Delete la_is_string_type_p initializer.
7058 (m2_language::is_string_type_p): New member function,
7059 implementation from m2_is_string_type_p.
7060 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7061 initializer.
7062 * opencl-lang.c (opencl_language_data): Likewise.
7063 * p-lang.c (pascal_is_string_type_p): Delete function,
7064 implementation moved to pascal_language::is_string_type_p.
7065 (pascal_language_data): Delete la_is_string_type_p initializer.
7066 (pascal_language::is_string_type_p): New member function,
7067 implementation from pascal_is_string_type_p.
7068 * rust-lang.c (rust_is_string_type_p): Delete function,
7069 implementation moved to rust_language::is_string_type_p.
7070 (rust_language_data): Delete la_is_string_type_p initializer.
7071 (rust_language::is_string_type_p): New member function,
7072 implementation from rust_is_string_type_p.
7073 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7074 is_string_type_p.
7075
7076 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 * ada-lang.c (ada_language_data): Delete la_print_typedef
7079 initializer.
7080 (ada_language::print_typedef): New member function.
7081 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7082 (cplus_language_data): Likewise.
7083 (asm_language_data): Likewise.
7084 (minimal_language_data): Likewise.
7085 * d-lang.c (d_language_data): Likewise.
7086 * f-lang.c (f_language_data): Likewise.
7087 (f_language::print_typedef): New member function.
7088 * go-lang.c (go_language_data): Delete la_print_typedef
7089 initializer.
7090 * language.c (language_defn::print_typedef): Define member
7091 function.
7092 (unknown_language_data): Delete la_print_typedef initializer.
7093 (unknown_language::print_typedef): New member function.
7094 (auto_language_data): Delete la_print_typedef initializer.
7095 (auto_language::print_typedef): New member function.
7096 * language.h (language_data): Delete la_print_typedef field.
7097 (language_defn::print_typedef): Declare new member function.
7098 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7099 (default_print_typedef): Delete declaration.
7100 * m2-lang.c (m2_language_data): Delete la_print_typedef
7101 initializer.
7102 (m2_language::print_typedef): New member function.
7103 * objc-lang.c (objc_language_data): Delete la_print_typedef
7104 initializer.
7105 * opencl-lang.c (opencl_language_data): Likewise.
7106 * p-lang.c (pascal_language_data): Likewise.
7107 (pascal_language::print_typedef): New member function.
7108 * rust-lang.c (rust_print_typedef): Delete function,
7109 implementation moved to rust_language::print_typedef.
7110 (rust_language): Delete la_print_typedef initializer.
7111 (rust_language::print_typedef): New member function,
7112 implementation from rust_print_typedef.
7113 * typeprint.c (default_print_typedef): Delete.
7114
7115 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7116
7117 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7118 (ada_language::printstr): New member function.
7119 * c-lang.c (c_language_data): Delete la_printstr initializer.
7120 (cplus_language_data): Likewise.
7121 (asm_language_data): Likewise.
7122 (minimal_language_data): Likewise.
7123 * d-lang.c (d_language_data): Likewise.
7124 * f-lang.c (f_printstr): Rename to f_language::printstr.
7125 (f_language_data): Delete la_printstr initializer.
7126 (f_language::printstr): New member function, implementation from
7127 f_printstr.
7128 * go-lang.c (go_language_data): Delete la_printstr initializer.
7129 * language.c (language_defn::printstr): Define new member
7130 function.
7131 (unk_lang_printstr): Delete.
7132 (unknown_language_data): Delete la_printstr initializer.
7133 (unknown_language::printstr): New member function.
7134 (auto_language_data): Delete la_printstr initializer.
7135 (auto_language::printstr): New member function.
7136 * language.h (language_data): Delete la_printstr field.
7137 (language_defn::printstr): Declare new member function.
7138 (LA_PRINT_STRING): Update call to printstr.
7139 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7140 (m2_language_data): Delete la_printstr initializer.
7141 (m2_language::printstr): New member function, implementation from
7142 m2_printstr.
7143 * objc-lang.c (objc_language_data): Delete la_printstr
7144 initializer.
7145 * opencl-lang.c (opencl_language_data): Likewise.
7146 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7147 (pascal_language_data): Delete la_printstr initializer.
7148 (pascal_language::printstr): New member function, implementation
7149 from pascal_printstr.
7150 * p-lang.h (pascal_printstr): Delete declaration.
7151 * rust-lang.c (rust_printstr): Update header comment.
7152 (rust_language_data): Delete la_printstr initializer.
7153 (rust_language::printstr): New member function.
7154
7155 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7158 (ada_language::printchar): New member function.
7159 * c-lang.c (c_language_data): Delete la_printchar initializer.
7160 (cplus_language_data): Likewise.
7161 (asm_language_data): Likewise.
7162 (minimal_language_data): Likewise.
7163 * d-lang.c (d_language_data): Likewise.
7164 * f-lang.c (f_printchar): Rename to f_language::printchar.
7165 (f_language_data): Delete la_printchar initializer.
7166 (f_language::printchar): New member function, implementation from
7167 f_printchar.
7168 * go-lang.c (go_language_data): Delete la_printchar initializer.
7169 * language.c (unk_lang_printchar): Delete.
7170 (language_defn::printchar): Define new member function.
7171 (unknown_language_data): Delete la_printchar initializer.
7172 (unknown_language::printchar): New member function.
7173 (auto_language_data): Delete la_printchar initializer.
7174 (auto_language::printchar): New member function.
7175 * language.h (language_data): Delete la_printchar field.
7176 (language_defn::printchar): Declare new member function.
7177 (LA_PRINT_CHAR): Update call to printchar.
7178 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7179 (m2_language::printchar): New member function.
7180 * objc-lang.c (objc_language_data): Delete la_printchar
7181 initializer.
7182 * opencl-lang.c (opencl_language_data): Likewise.
7183 * p-lang.c (pascal_language_data): Delete la_printchar
7184 initializer.
7185 (pascal_language::printchar): New member function.
7186 * rust-lang.c (rust_printchar): Rename to
7187 rust_language::printchar.
7188 (rust_language_data): Delete la_printchar initializer.
7189 (rust_language::printchar): New member function, implementation
7190 from rust_printchar.
7191
7192 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7195 (ada_language_data): Delete la_emitchar initializer.
7196 (ada_language::emitchar): New member function, implementation from
7197 emit_char.
7198 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7199 (cplus_language_data): Likewise.
7200 (asm_language_data): Likewise.
7201 (minimal_language_data): Likewise.
7202 * d-lang.c (d_language_data): Likewise.
7203 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7204 (f_language_data): Delete la_emitchar initializer.
7205 (f_language::emitchar): New member function, implementation from
7206 f_emit_char.
7207 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7208 * language.c (unk_lang_emit_char): Delete.
7209 (language_defn::emitchar): New member function definition.
7210 (unknown_language_data): Delete la_emitchar initializer.
7211 (unknown_language::emitchar): New member function.
7212 (auto_language_data): Delete la_emitchar initializer.
7213 (auto_language::emitchar): New member function.
7214 * language.h (language_data): Delete la_emitchar field.
7215 (language_defn::emitchar): New member field declaration.
7216 (LA_EMIT_CHAR): Update call to emitchar.
7217 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7218 (m2_language_data): Delete la_emitchar initializer.
7219 (m2_language::emitchar): New member function, implementation from
7220 m2_emit_char.
7221 * objc-lang.c (objc_language_data): Delete la_emitchar
7222 initializer.
7223 * opencl-lang.c (opencl_language_data): Likewise.
7224 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7225 (pascal_language_data): Delete la_emitchar initializer.
7226 (pascal_language::emitchar): New member function, implementation
7227 from pascal_emit_char.
7228 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7229 (rust_language_data): Delete la_emitchar initializer.
7230 (rust_language::emitchar): New member function, implementation
7231 from rust_emitchar.
7232
7233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7236 (ada_language_data): Delete la_post_parser initializer.
7237 (ada_language::post_parser): New member function.
7238 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7239 (cplus_language_data): Likewise.
7240 (asm_language_data): Likewise.
7241 (minimal_language_data): Likewise.
7242 * d-lang.c (d_language_data): Likewise.
7243 * f-lang.c (f_language_data): Likewise.
7244 * go-lang.c (go_language_data): Likewise.
7245 * language.c (unknown_language_data): Likewise.
7246 (auto_language_data): Likewise.
7247 * language.h (language_data): Delete la_post_parser field.
7248 (language_defn::post_parser): New member function.
7249 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7250 * objc-lang.c (objc_language_data): Likewise.
7251 * opencl-lang.c (opencl_language_data): Likewise.
7252 * p-lang.c (pascal_language_data): Likewise.
7253 * parse.c (parse_exp_in_context): Update call to post_parser.
7254 (null_post_parser): Delete definition.
7255 * parser-defs.h (null_post_parser): Delete declaration.
7256 * rust-lang.c (rust_language_data): Delete la_post_parser
7257 initializer.
7258
7259 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7260
7261 * ada-lang.c (parse): Rename to ada_language::parser.
7262 (ada_language_data): Delete la_parser initializer.
7263 (ada_language::parser): New member function, implementation from
7264 parse.
7265 * c-lang.c (c_language_data): Delete la_parser initializer.
7266 (cplus_language_data): Likewise.
7267 (asm_language_data): Likewise.
7268 (minimal_language_data): Likewise.
7269 * d-lang.c (d_language_data): Likewise.
7270 (d_language::parser): New member function.
7271 * f-lang.c (f_language_data): Delete la_parser initializer.
7272 (f_language::parser): New member function.
7273 * go-lang.c (go_language_data): Delete la_parser initializer.
7274 (go_language::parser): New member function.
7275 * language.c (unk_lang_parser): Delete.
7276 (language_defn::parser): Define new member function.
7277 (unknown_language_data): Delete la_parser initializer.
7278 (unknown_language::parser): New member function.
7279 (auto_language_data): Delete la_parser initializer.
7280 (auto_language::parser): New member function.
7281 * language.h (language_data): Delete la_parser field.
7282 (language_defn::parser): Declare new member function.
7283 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7284 (m2_language::parser): New member function.
7285 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7286 * opencl-lang.c (opencl_language_data): Likewise.
7287 * p-lang.c (pascal_language_data): Likewise.
7288 (pascal_language::parser): New member function.
7289 * parse.c (parse_exp_in_context): Update call to parser.
7290 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7291 (rust_language::parser): New member function.
7292
7293 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * top.c (print_gdb_configuration): Print --with-python-libdir
7296 configuration value.
7297
7298 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7299
7300 * NEWS: Mention change to the alias command.
7301
7302 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7303
7304 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7305 (alias_command_completer)
7306 (make_alias_options_def_group): New functions.
7307 (alias_opts, alias_option_defs): New struct and array.
7308 (alias_usage_error): Update usage.
7309 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7310 Use option framework.
7311 (_initialize_cli_cmds): Update alias command help.
7312 Update aliases command help.
7313 (show_user):
7314 Add NULL for new default_args lookup_cmd argument.
7315 (valid_command_p): Rename to validate_aliased_command.
7316 Add NULL for new default_args lookup_cmd argument. Verify that the
7317 aliased_command has no default args.
7318 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7319 (lookup_cmd_1, lookup_cmd): New argument default_args.
7320 (add_alias_cmd):
7321 Add NULL for new default_args lookup_cmd argument.
7322 (print_help_for_command): Show default args under the layout
7323 alias some_alias = some_aliased_cmd some_alias_default_arg.
7324 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7325 xfree default_args in destructor.
7326 * cli/cli-script.c (process_next_line, do_define_command):
7327 Add NULL for new default_args lookup_cmd argument.
7328 * command.h: Declare new default_args argument in lookup_cmd
7329 and lookup_cmd_1.
7330 * completer.c (complete_line_internal_1):
7331 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7332 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7333 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7334 Likewise.
7335 * infcmd.c (_initialize_infcmd): Likewise.
7336 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7337 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7338 * python/py-param.c (add_setshow_generic): Likewise.
7339 * remote.c (_initialize_remote): Likewise.
7340 * top.c (execute_command): Prepend default_args if command has some.
7341 (set_verbose):
7342 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7343 * tracepoint.c (validate_actionline, encode_actions_1):
7344 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7345
7346 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7347
7348 * jit.c (jit_read_descriptor): Use bool as the return type.
7349 (jit_breakpoint_re_set_internal): Use bool as the return type.
7350 Invert the return value logic; return true if the jit breakpoint
7351 has been successfully initialized.
7352 (jit_inferior_init): Update the call to
7353 jit_breakpoint_re_set_internal.
7354
7355 2020-06-22 Pedro Alves <palves@redhat.com>
7356
7357 PR gdb/25939
7358 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7359 Use the current inferior instead. Don't return
7360 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7361 wait again.
7362 * sol-thread.c (sol_thread_target::wait): Don't reference
7363 inferior_ptid.
7364 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7365 (sol_update_thread_list_callback): Use the current inferior's pid
7366 instead of inferior_ptid.
7367
7368 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7369
7370 * procfs.c: Cleanup many comments.
7371
7372 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7373 (AFTER_WATCHFLAG): Replace by value.
7374
7375 (MAIN_PROC_NAME_FORMAT): Inline ...
7376 (create_procinfo): ... here.
7377
7378 (procfs_debug_inferior): Remove SYS_exec handling.
7379 (syscall_is_exec): Likewise.
7380 (procfs_set_exec_trap): Likewise.
7381
7382 (syscall_is_lwp_exit): Inline in callers.
7383 (syscall_is_exit): Likewise.
7384 (syscall_is_exec): Likewise.
7385 (syscall_is_lwp_create): Likewise.
7386
7387 (invalidate_cache): Remove #if 0 code.
7388
7389 (make_signal_thread_runnable): Remove.
7390 (procfs_target::resume): Remove #if 0 code.
7391
7392 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7393
7394 PR gdb/25939
7395 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7396 call ...
7397 (procfs_target::create_inferior): ... here.
7398
7399 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7400
7401 * exec.c (validate_exec_file): Ensure the build-id is up to
7402 date by calling reopen_exec_file (that checks file timestamp
7403 to decide to re-read the file).
7404
7405 2020-06-18 Pedro Alves <palves@redhat.com>
7406
7407 PR gdb/25412
7408 * gdbthread.h (delete_thread, delete_thread_silent)
7409 (find_thread_ptid): Update comments.
7410 * thread.c (current_thread_): New global.
7411 (is_current_thread): Move higher, and reimplement.
7412 (inferior_thread): Reimplement.
7413 (set_thread_exited): Use bool. Add assertions.
7414 (add_thread_silent): Simplify thread-reuse handling by always
7415 calling delete_thread.
7416 (delete_thread): Remove intro comment.
7417 (find_thread_ptid): Skip exited threads.
7418 (switch_to_thread_no_regs): Write to current_thread_.
7419 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7420 INFERIOR_PTID. Clear current_thread_.
7421
7422 2020-06-18 Pedro Alves <palves@redhat.com>
7423
7424 * aix-thread.c (pd_update): Use switch_to_thread.
7425
7426 2020-06-18 Pedro Alves <palves@redhat.com>
7427
7428 * ravenscar-thread.c (ravenscar_thread_target): Update.
7429 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7430 (ravenscar_thread_target::add_active_thread): ... this. Don't
7431 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7432 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7433
7434 2020-06-18 Pedro Alves <palves@redhat.com>
7435
7436 * nat/windows-nat.c (current_windows_thread): Remove.
7437 * nat/windows-nat.h (current_windows_thread): Remove.
7438 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7439 Adjust.
7440 (display_selectors): Adjust to fetch the current
7441 windows_thread_info based on inferior_ptid.
7442 (fake_create_process): No longer write to current_windows_thread.
7443 (windows_nat_target::get_windows_debug_event):
7444 Don't set inferior_ptid or current_windows_thread.
7445 (windows_nat_target::wait): Adjust to not rely on
7446 current_windows_thread.
7447 (do_initial_windows_stuff): Now a method of windows_nat_target.
7448 Switch to the last_ptid thread.
7449 (windows_nat_target::attach): Adjust.
7450 (windows_nat_target::detach): Use switch_to_no_thread instead of
7451 writing to inferior_ptid directly.
7452 (windows_nat_target::create_inferior): Adjust.
7453
7454 2020-06-18 Pedro Alves <palves@redhat.com>
7455
7456 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7457
7458 2020-06-18 Pedro Alves <palves@redhat.com>
7459
7460 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7461 after creating it, instead of writing to inferior_ptid. Don't
7462 write to inferior_ptid.
7463
7464 2020-06-18 Pedro Alves <palves@redhat.com>
7465
7466 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7467
7468 2020-06-18 Pedro Alves <palves@redhat.com>
7469
7470 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7471 it, instead of writing to inferior_ptid.
7472
7473 2020-06-18 Pedro Alves <palves@redhat.com>
7474
7475 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7476 to inferior_ptid.
7477
7478 2020-06-18 Pedro Alves <palves@redhat.com>
7479
7480 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7481 instead of writing to inferior_ptid directly.
7482
7483 2020-06-18 Pedro Alves <palves@redhat.com>
7484
7485 * corelow.c (core_target::close): Use switch_to_no_thread instead
7486 of writing to inferior_ptid directly.
7487 (add_to_thread_list, core_target_open): Use switch_to_thread
7488 instead of writing to inferior_ptid directly.
7489
7490 2020-06-18 Pedro Alves <palves@redhat.com>
7491
7492 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7493 inferior_ptid.
7494 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7495 inferior_ptid.
7496 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7497 inferior_ptid directly.
7498 (darwin_nat_target::init_thread_list): Switch to thread, instead
7499 of writing to inferior_ptid.
7500 (darwin_nat_target::attach): Don't write to inferior_ptid.
7501 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7502
7503 2020-06-18 Pedro Alves <palves@redhat.com>
7504
7505 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7506 thread.
7507 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7508 Instead use switch_to_thread.
7509 (gnu_nat_target::detach): Use switch_to_no_thread
7510 instead of writing to inferior_ptid directly. Used passed-in
7511 inferior instead of looking up the inferior by pid.
7512
7513 2020-06-18 Pedro Alves <palves@redhat.com>
7514
7515 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7516 inferior_ptid.
7517
7518 2020-06-18 Pedro Alves <palves@redhat.com>
7519
7520 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7521 inferior_ptid.
7522 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7523 thread.
7524 (nto_procfs_target::detach): Avoid referencing
7525 inferior_ptid. Use switch_to_no_thread instead of writing to
7526 inferior_ptid directly.
7527 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7528 instead of writing to inferior_ptid directly.
7529 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7530 to thread.
7531
7532 2020-06-18 Pedro Alves <palves@redhat.com>
7533
7534 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7535 after creating it, instead of writing to inferior_ptid.
7536 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7537 to inferior_ptid directly.
7538 (gdbsim_target::wait): Don't write to inferior_ptid.
7539
7540 2020-06-18 Pedro Alves <palves@redhat.com>
7541
7542 * remote.c (remote_target::remote_notice_new_inferior): Use
7543 switch_to_thread instead of writing to inferior_ptid directly.
7544 (remote_target::add_current_inferior_and_thread): Use
7545 switch_to_no_thread instead of writing to inferior_ptid directly.
7546 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7547 and switch_to_thread instead of using set_current_inferior or
7548 writing to inferior_ptid directly.
7549
7550 2020-06-18 Pedro Alves <palves@redhat.com>
7551
7552 * tracectf.c (ctf_target_open): Switch to added thread instead of
7553 writing to inferior_ptid directly.
7554 (ctf_target::close): Use switch_to_no_thread instead of writing to
7555 inferior_ptid directly.
7556
7557 2020-06-18 Pedro Alves <palves@redhat.com>
7558
7559 * tracefile-tfile.c (tfile_target_open): Don't write to
7560 inferior_ptid directly, instead switch to added thread.
7561 (tfile_target::close): Use switch_to_no_thread instead of writing
7562 to inferior_ptid directly.
7563
7564 2020-06-18 Pedro Alves <palves@redhat.com>
7565
7566 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7567 (procfs_target::detach): Use switch_to_no_thread
7568 instead of writing to inferior_ptid directly.
7569 (do_attach): Change return type to void. Switch to the added
7570 thread.
7571 (procfs_target::create_inferior): Switch to the added thread.
7572 (procfs_do_thread_registers): Don't write to inferior_ptid.
7573
7574 2020-06-18 Pedro Alves <palves@redhat.com>
7575
7576 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7577 of writing to inferior_ptid.
7578 (scoped_restore_exited_inferior): Delete.
7579 (handle_vfork_child_exec_or_exit): Simplify using
7580 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7581 instead of writing to inferior_ptid.
7582 (THREAD_STOPPED_BY): Delete.
7583 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7584 (thread_stopped_by_hw_breakpoint): Delete.
7585 (save_waitstatus): Use
7586 scoped_restore_current_thread+switch_to_thread, and call
7587 target_stopped_by_watchpoint instead of
7588 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7589 instead of thread_stopped_by_sw_breakpoint, and
7590 target_stopped_by_hw_breakpoint instead of
7591 thread_stopped_by_hw_breakpoint.
7592 (handle_inferior_event)
7593 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7594 inferior_ptid directly, nor
7595 set_current_inferior/set_current_program_space. Use
7596 switch_to_thread / switch_to_inferior_no_thread instead.
7597
7598 2020-06-18 Pedro Alves <palves@redhat.com>
7599
7600 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7601 instead of writing to inferior_ptid.
7602
7603 2020-06-18 Pedro Alves <palves@redhat.com>
7604
7605 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7606 added thread.
7607 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7608 to the added thread.
7609 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7610 instead of writing to inferior_ptid.
7611
7612 2020-06-18 Pedro Alves <palves@redhat.com>
7613
7614 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7615 (register_to_value_test): Mock a program_space too. Heap-allocate
7616 the address space. Don't write to inferior_ptid. Use
7617 switch_to_thread instead.
7618
7619 2020-06-18 Pedro Alves <palves@redhat.com>
7620
7621 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7622 Delete.
7623 (find_signalled_thread()): New, factored out from
7624 linux_make_corefile_notes and adjusted to handle exited threads.
7625 (linux_make_corefile_notes): Adjust to use the new
7626 find_signalled_thread.
7627
7628 2020-06-18 Pedro Alves <palves@redhat.com>
7629
7630 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7631 of saving/restoring inferior_ptid.
7632
7633 2020-06-17 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7636 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7637 declare.
7638 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7639
7640 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7643 of partial symtabs.
7644
7645 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7646
7647 * regformats/reg-arm.dat: Remove.
7648 * regformats/reg-bfin.dat: Remove.
7649 * regformats/reg-cris.dat: Remove.
7650 * regformats/reg-crisv32.dat: Remove.
7651 * regformats/reg-m32r.dat: Remove.
7652 * regformats/reg-tilegx.dat: Remove.
7653 * regformats/reg-tilegx32.dat: Remove.
7654
7655 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * features/Makefile (WHICH): Remove arm files.
7658 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7659 * regformats/arm/arm-with-neon.dat: Remove.
7660 * regformats/arm/arm-with-vfpv2.dat: Remove.
7661 * regformats/arm/arm-with-vfpv3.dat: Remove.
7662
7663 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7664
7665 * features/Makefile (XMLTOC): Remove rx.xml.
7666
7667 2020-06-17 Pedro Alves <palves@redhat.com>
7668
7669 * gdbthread.h (thread_control_state) <trap_expected> Update
7670 comments.
7671
7672 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7675 ada_language::lookup_symbol_nonlocal.
7676 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7677 (ada_language::lookup_symbol_nonlocal): New member function,
7678 implementation from ada_lookup_symbol_nonlocal.
7679 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7680 initializer.
7681 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7682 initializer.
7683 (cplus_language::lookup_symbol_nonlocal): New member function.
7684 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7685 (minimal_language_data) Likewise.
7686 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7687 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7688 initializer.
7689 (d_language::lookup_symbol_nonlocal): New member function.
7690 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7691 initializer.
7692 (f_language::lookup_symbol_nonlocal): New member function.
7693 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7694 initializer.
7695 * language.c (unknown_language_data): Likewise.
7696 (auto_language_data): Likewise.
7697 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7698 field.
7699 (language_defn::lookup_symbol_nonlocal): New member function.
7700 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7701 initializer.
7702 * objc-lang.c (objc_language_data): Likewise.
7703 * opencl-lang.c (opencl_language_data): Likewise.
7704 * p-lang.c (pascal_language_data): Likewise.
7705 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7706 rust_language::lookup_symbol_nonlocal.
7707 (rust_language_data): Delete la_lookup_symbol_nonlocal
7708 initializer.
7709 (rust_language::lookup_symbol_nonlocal): New member function,
7710 implementation from rust_lookup_symbol_nonlocal.
7711 * symtab.c (lookup_symbol_aux): Update call to
7712 lookup_symbol_nonlocal.
7713 (basic_lookup_symbol_nonlocal): Rename to...
7714 (language_defn::lookup_symbol_nonlocal): ...this, and update
7715 header comment. Remove language_defn parameter, and replace with
7716 uses of `this'.
7717 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7718
7719 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7720
7721 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7722 initializer.
7723 (ada_language::value_print_inner): New member function.
7724 * c-lang.c (c_language_data): Delete la_value_print_inner
7725 initializer.
7726 (cplus_language_data): Likewise.
7727 (asm_language_data): Likewise.
7728 (minimal_language_data): Likewise.
7729 * d-lang.c (d_language_data): Likewise.
7730 (d_language::value_print_inner): New member function.
7731 * f-lang.c (f_language_data): Delete la_value_print_inner
7732 initializer.
7733 (f_language::value_print_inner): New member function.
7734 * f-lang.h (f_value_print_innner): Rename to...
7735 (f_value_print_inner): ...this (note spelling of 'inner').
7736 * f-valprint.c (f_value_print_innner): Rename to...
7737 (f_value_print_inner): ...this (note spelling of 'inner').
7738 * go-lang.c (go_language_data): Delete la_value_print_inner
7739 initializer.
7740 (go_language::value_print_inner): New member function.
7741 * language.c (language_defn::value_print_inner): Define new member
7742 function.
7743 (unk_lang_value_print_inner): Delete.
7744 (unknown_language_data): Delete la_value_print_inner initializer.
7745 (unknown_language::value_print_inner): New member function.
7746 (auto_language_data): Delete la_value_print_inner initializer.
7747 (auto_language::value_print_inner): New member function.
7748 * language.h (language_data): Delete la_value_print_inner field.
7749 (language_defn::value_print_inner): Delcare new member function.
7750 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7751 initializer.
7752 (m2_language::value_print_inner): New member function.
7753 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7754 initializer.
7755 * opencl-lang.c (opencl_language_data): Likewise.
7756 * p-lang.c (pascal_language_data): Likewise.
7757 (pascal_language::value_print_inner): New member function.
7758 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7759 initializer.
7760 (rust_language::value_print_inner): New member function.
7761 * valprint.c (do_val_print): Update call to value_print_inner.
7762
7763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * ada-lang.c (ada_language_data): Delete la_value_print
7766 initializer.
7767 (ada_language::value_print): New member function.
7768 * c-lang.c (c_language_data): Delete la_value_print initializer.
7769 (cplus_language_data): Likewise.
7770 (asm_language_data): Likewise.
7771 (minimal_language_data): Likewise.
7772 * d-lang.c (d_language_data): Likewise.
7773 * f-lang.c (f_language_data): Likewise.
7774 * go-lang.c (go_language_data): Likewise.
7775 * language.c (unk_lang_value_print): Delete.
7776 (language_defn::value_print): Define new member function.
7777 (unknown_language_data): Delete la_value_print initializer.
7778 (unknown_language::value_print): New member function.
7779 (auto_language_data): Delete la_value_print initializer.
7780 (auto_language::value_print): New member function.
7781 * language.h (language_data): Delete la_value_print field.
7782 (language_defn::value_print): Declare new member function.
7783 (LA_VALUE_PRINT): Update call to value_print.
7784 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7785 * objc-lang.c (objc_language_data): Likewise.
7786 * opencl-lang.c (opencl_language_data): Likewise.
7787 * p-lang.c (pascal_language_data): Likewise.
7788 (pascal_language::value_print): New member function.
7789 * rust-lang.c (rust_language_data): Delete la_value_print
7790 initializer.
7791
7792 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * ada-lang.c (ada_watch_location_expression): Rename to
7795 ada_language::watch_location_expression.
7796 (ada_language_data): Delete la_watch_location_expression
7797 initializer.
7798 (ada_language::watch_location_expression): New member function,
7799 implementation from ada_watch_location_expression.
7800 * breakpoint.c (watch_command_1): Update call to
7801 watch_location_expression.
7802 * c-lang.c (c_watch_location_expression): Rename to
7803 language_defn::watch_location_expression.
7804 (c_language_data): Delete la_watch_location_expression
7805 initializer.
7806 (cplus_language_data): Likewise.
7807 (asm_language_data): Likewise.
7808 (minimal_language_data): Likewise.
7809 * c-lang.h (c_watch_location_expression): Delete declaration.
7810 * d-lang.c (d_language_data): Delete la_watch_location_expression
7811 initializer.
7812 * f-lang.c (f_language_data): Likewise.
7813 * go-lang.c (go_language_data): Likewise.
7814 * language.c (language_defn::watch_location_expression): Member
7815 function implementation from c_watch_location_expression.
7816 (unknown_language_data): Delete la_watch_location_expression
7817 initializer.
7818 (auto_language_data): Likewise.
7819 * language.h (language_data): Delete la_watch_location_expression
7820 field.
7821 (language_defn::watch_location_expression): Declare new member
7822 function.
7823 * m2-lang.c (m2_language_data): Delete
7824 la_watch_location_expression initializer.
7825 * objc-lang.c (objc_language_data): Likewise.
7826 * opencl-lang.c (opencl_language_data): Likewise.
7827 * p-lang.c (pascal_language_data): Likewise.
7828 * rust-lang.c (rust_watch_location_expression): Rename to
7829 rust_language::watch_location_expression.
7830 (rust_language_data): Delete la_watch_location_expression
7831 initializer.
7832 (rust_language::watch_location_expression): New member function,
7833 implementation from rust_watch_location_expression.
7834
7835 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7836
7837 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7838 ada_language::collect_symbol_completion_matches.
7839 (ada_language_data): Delete la_collect_symbol_completion_matches
7840 initializer.
7841 (ada_language::collect_symbol_completion_matches): New member
7842 function, implementation from
7843 ada_collect_symbol_completion_matches.
7844 * c-lang.c (c_language_data): Delete
7845 la_collect_symbol_completion_matches initializer.
7846 (cplus_language_data): Likewise.
7847 (asm_language_data): Likewise.
7848 (minimal_language_data): Likewise.
7849 * d-lang.c (d_language_data): Likewise.
7850 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7851 f_language::collect_symbol_completion_matches.
7852 (f_language_data): Delete la_collect_symbol_completion_matches
7853 initializer.
7854 (f_language::collect_symbol_completion_matches) New member
7855 function, implementation from f_collect_symbol_completion_matches.
7856 * go-lang.c (go_language_data): Delete
7857 la_collect_symbol_completion_matches initializer.
7858 * language.c (unknown_language_data): Likewise.
7859 (auto_language_data): Likewise.
7860 * language.h (language_data): Delete
7861 la_collect_symbol_completion_matches field.
7862 (language_defn::collect_symbol_completion_matches): New member
7863 function.
7864 * m2-lang.c (m2_language_data): Delete
7865 la_collect_symbol_completion_matches initializer.
7866 * objc-lang.c (objc_language_data): Likewise.
7867 * opencl-lang.c (opencl_language_data): Likewise.
7868 * p-lang.c (pascal_language_data): Likewise.
7869 * rust-lang.c (rust_language_data): Likewise.
7870 * symtab.c (default_collect_symbol_completion_matches): Delete.
7871 (collect_symbol_completion_matches): Update call to
7872 collect_symbol_completion_matches.
7873 (collect_symbol_completion_matches_type): Likewise.
7874 * symtab.h (default_collect_symbol_completion_matches): Delete
7875 declaration.
7876
7877 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7878
7879 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7880 (ada_language_data): Delete la_word_break_characters initializer.
7881 (ada_language::word_break_characters): New member function.
7882 * c-lang.c (c_language_data): Delete la_word_break_characters
7883 initializer.
7884 (cplus_language_data): Likewise.
7885 (asm_language_data): Likewise.
7886 (minimal_language_data): Likewise.
7887 * completer.c: Update global comment.
7888 (advance_to_expression_complete_word_point): Update call to
7889 word_break_characters.
7890 (complete_files_symbols): Likewise.
7891 (complete_line_internal_1): Likewise.
7892 (default_completer_handle_brkchars): Likewise.
7893 (skip_quoted_chars): Likewise.
7894 * d-lang.c (d_language_data): Delete la_word_break_characters
7895 initializer.
7896 * f-lang.c (f_word_break_characters): Delete.
7897 (f_language_data): Delete la_word_break_characters initializer.
7898 (f_language::word_break_characters): New member function.
7899 * go-lang.c (go_language_data): Delete la_word_break_characters
7900 initializer.
7901 * language.c (unknown_language_data): Likewise.
7902 (auto_language_data): Likewise.
7903 * language.h (default_word_break_characters): Move declaration to
7904 earlier in the file.
7905 (language_data): Delete la_word_break_characters field.
7906 (language_defn::word_break_characters): New member function.
7907 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7908 initializer.
7909 * objc-lang.c (objc_language_data): Likewise.
7910 * opencl-lang.c (opencl_language_data): Likewise.
7911 * p-lang.c (pascal_language_data): Likewise.
7912 * rust-lang.c (rust_language_data): Likewise.
7913
7914 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7917 (ada_language_data): Delete la_get_symbol_name_matcher
7918 initializer.
7919 (language_defn::get_symbol_name_matcher_inner): New member
7920 function.
7921 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7922 initializer.
7923 (cplus_language_data): Likewise.
7924 (cplus_language::get_symbol_name_matcher_inner): New member
7925 function.
7926 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7927 (minimal_language_data): Likewise.
7928 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7929 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7930 initializer.
7931 * dictionary.c (iter_match_first_hashed): Update call to
7932 get_symbol_name_matcher.
7933 (iter_match_next_hashed): Likewise.
7934 (iter_match_next_linear): Likewise.
7935 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7936 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7937 initializer.
7938 (f_language::get_symbol_name_matcher_inner): New member function.
7939 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7940 initializer.
7941 * language.c (default_symbol_name_matcher): Update header comment,
7942 make static.
7943 (language_defn::get_symbol_name_matcher): New definition.
7944 (language_defn::get_symbol_name_matcher_inner): Likewise.
7945 (get_symbol_name_matcher): Delete.
7946 (unknown_language_data): Delete la_get_symbol_name_matcher
7947 initializer.
7948 (auto_language_data): Likewise.
7949 * language.h (language_data): Delete la_get_symbol_name_matcher
7950 field.
7951 (language_defn::get_symbol_name_matcher): New member function.
7952 (language_defn::get_symbol_name_matcher_inner): Likewise.
7953 (default_symbol_name_matcher): Delete declaration.
7954 * linespec.c (find_methods): Update call to
7955 get_symbol_name_matcher.
7956 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7957 initializer.
7958 * minsyms.c (lookup_minimal_symbol): Update call to
7959 get_symbol_name_matcher.
7960 (iterate_over_minimal_symbols): Likewise.
7961 * objc-lang.c (objc_language_data): Delete
7962 la_get_symbol_name_matcher initializer.
7963 * opencl-lang.c (opencl_language_data): Likewise.
7964 * p-lang.c (pascal_language_data): Likewise.
7965 * psymtab.c (psymbol_name_matches): Update call to
7966 get_symbol_name_matcher.
7967 * rust-lang.c (rust_language_data): Delete
7968 la_get_symbol_name_matcher initializer.
7969 * symtab.c (symbol_matches_search_name): Update call to
7970 get_symbol_name_matcher.
7971 (compare_symbol_name): Likewise.
7972
7973 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7974
7975 * ada-lang.c (ada_language_data): Delete la_compute_program
7976 initializer.
7977 * c-lang.c (c_language_data): Likewise.
7978 (c_language::compute_program): New member function.
7979 (cplus_language_data): Delete la_compute_program initializer.
7980 (cplus_language::compute_program): New member function.
7981 (asm_language_data): Delete la_compute_program initializer.
7982 (minimal_language_data): Likewise.
7983 * c-lang.h (c_compute_program): Update comment.
7984 (cplus_compute_program): Likewise.
7985 * compile/compile-c-support.c (c_compute_program): Likewise.
7986 (cplus_compute_program): Likewise.
7987 * compile/compile.c (compile_to_object): Update call to
7988 la_compute_program.
7989 * d-lang.c (d_language_data): Delete la_compute_program
7990 initializer.
7991 * f-lang.c (f_language_data): Likewise.
7992 * go-lang.c (go_language_data): Likewise.
7993 * language.c (unknown_language_data): Likewise.
7994 (auto_language_data): Likewise.
7995 * language.h (language_data): Delete la_compute_program field.
7996 (language_defn::compute_program): New member function.
7997 * m2-lang.c (m2_language_data): Delete la_compute_program
7998 initializer.
7999 * objc-lang.c (objc_language_data): Likewise.
8000 * opencl-lang.c (opencl_language_data): Likewise.
8001 * p-lang.c (pascal_language_data): Likewise.
8002 * rust-lang.c (rust_language_data): Likewise.
8003
8004 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * ada-lang.c (ada_language_data) Delete
8007 la_class_name_from_physname initializer.
8008 * c-lang.c (c_language_data): Likewise.
8009 (cplus_language_data): Likewise.
8010 (cplus_language::class_name_from_physname): New member function.
8011 (asm_language_data): Delete la_class_name_from_physname
8012 initializer.
8013 (minimal_language_data): Likewise.
8014 * d-lang.c (d_language_data): Likewise.
8015 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8016 method on language_defn class.
8017 (guess_full_die_structure_name): Likewise.
8018 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8019 initializer.
8020 * go-lang.c (go_language_data): Likewise.
8021 * language.c (language_class_name_from_physname): Delete.
8022 (unk_lang_class_name): Delete.
8023 (unknown_language_data): Delete la_class_name_from_physname
8024 initializer.
8025 (auto_language_data): Likewise.
8026 * language.h (language_data): Delete la_class_name_from_physname
8027 field.
8028 (language_defn::class_name_from_physname): New function.
8029 (language_class_name_from_physname): Delete declaration.
8030 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8031 initializer.
8032 * objc-lang.c (objc_language_data): Likewise.
8033 * opencl-lang.c (opencl_language_data): Likewise.
8034 * p-lang.c (pascal_language_data): Likewise.
8035 * rust-lang.c (rust_language_data): Likewise.
8036
8037 2020-06-16 Tom Tromey <tom@tromey.com>
8038
8039 * tui/tui-data.h (STATUS_NAME): New macro.
8040 * tui/tui-layout.c (tui_remove_some_windows)
8041 (initialize_known_windows, tui_register_window)
8042 (tui_layout_split::remove_windows, initialize_layouts)
8043 (tui_new_layout_command): Don't use hard-coded window names.
8044
8045 2020-06-16 Tom Tromey <tom@tromey.com>
8046
8047 PR tui/25348:
8048 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8049 tui_initialize_readline. Only run once. Call rl_initialize.
8050 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8051 tui_initialize_readline.
8052 * tui/tui-io.c (tui_setup_io): Call
8053 tui_ensure_readline_initialized.
8054 * tui/tui-interp.c (tui_interp::init): Update.
8055
8056 2020-06-16 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8059 Also preserve the status window.
8060
8061 2020-06-16 Tom Tromey <tom@tromey.com>
8062
8063 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8064 where m_window==nullptr.
8065
8066 2020-06-15 Tom Tromey <tromey@adacore.com>
8067
8068 * windows-nat.c (windows_nat::handle_output_debug_string):
8069 Update.
8070 (windows_nat::handle_ms_vc_exception): Update.
8071 * target.h (target_read_string): Change API.
8072 * target.c (target_read_string): Change API.
8073 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8074 Update.
8075 * solib-frv.c (frv_current_sos): Update.
8076 * solib-dsbt.c (dsbt_current_sos): Update.
8077 * solib-darwin.c (darwin_current_sos): Update.
8078 * linux-thread-db.c (inferior_has_bug): Update.
8079 * expprint.c (print_subexp_standard): Update.
8080 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8081 (ada_exception_message_1): Update.
8082
8083 2020-06-15 Tom Tromey <tromey@adacore.com>
8084
8085 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8086
8087 2020-06-15 Tom Tromey <tromey@adacore.com>
8088
8089 * valprint.c (read_string): Update comment.
8090 * target.c (MIN): Remove.
8091 (target_read_string): Rewrite.
8092
8093 2020-06-15 Tom Tromey <tromey@adacore.com>
8094
8095 * corefile.c (read_memory_string): Remove.
8096 * ada-valprint.c (ada_value_print_ptr): Update.
8097 * ada-lang.h (ada_tag_name): Change return type.
8098 * ada-lang.c (type_from_tag): Update.
8099 (ada_tag_name_from_tsd): Change return type. Use
8100 target_read_string.
8101 (ada_tag_name): Likewise.
8102 * gdbcore.h (read_memory_string): Don't declare.
8103
8104 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8105
8106 * symtab.c (rbreak_command): Ignore Windows drive colon.
8107
8108 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * NEWS: Mention removed GDBserver host support.
8111
8112 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8113
8114 * features/riscv/rebuild-csr-xml.sh: Updated.
8115
8116 2020-06-11 Tom Tromey <tom@tromey.com>
8117
8118 PR gdb/18318:
8119 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8120
8121 2020-06-09 Jonny Grant <jg@jguk.org>
8122 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8123
8124 * main.c (captured_main_1): Don't print new line after help.
8125 (print_gdb_help): add mailing list and IRC channel information
8126 to --help. Add new lines between items in the footer. Remove
8127 quotes around bug url.
8128
8129 2020-06-11 Keith Seitz <keiths@redhat.com>
8130
8131 PR gdb/21356
8132 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8133 Resolve typedefs for type length calculations.
8134
8135 2020-06-10 Tom de Vries <tdevries@suse.de>
8136
8137 PR ada/24713
8138 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8139 (write_psymbols): Enable .gdb_index for ada.
8140 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8141 ada.
8142
8143 2020-06-10 Tom de Vries <tdevries@suse.de>
8144
8145 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8146 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8147 namei" instead of "const char *name" argument.
8148 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8149 dw2_symtab_iter_init.
8150
8151 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8154 to use type::field and field::type instead.
8155
8156 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8157
8158 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8159 to use field::type instead.
8160
8161 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * gdbtypes.h (struct field) <type, set_type>: New methods.
8164 Rename `type` field to...
8165 <m_type>: ... this. Change references throughout to use type or
8166 set_type methods.
8167 (FIELD_TYPE): Use field::type. Change call sites that modify
8168 the field's type to use field::set_type instead.
8169
8170 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8173 to use type::index_type instead.
8174
8175 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8178 methods.
8179 (TYPE_INDEX_TYPE): Use type::index_type.
8180 * gdbtypes.c (create_array_type_with_stride): Likewise.
8181
8182 2020-06-07 Tom Tromey <tom@tromey.com>
8183
8184 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8185 parameter.
8186 (generic_value_print): Update.
8187
8188 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 Revert commit 982a38f60b0.
8191 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8192
8193 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8194
8195 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8196 avoid use after free.
8197
8198 2020-06-05 Tom de Vries <tdevries@suse.de>
8199
8200 * NEWS: Fix typos.
8201
8202 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8203
8204 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8205 the per_bfd object.
8206 (dwarf2_read_debug_names): Likewise.
8207 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8208 object when re-using a per_bfd object with an index.
8209
8210 2020-06-03 Tom de Vries <tdevries@suse.de>
8211
8212 PR symtab/26046
8213 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8214 children for C++.
8215 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8216 DW_TAG_subprogram.
8217
8218 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8219
8220 * ada-lang.c (ada_language_data): Delete skip_trampoline
8221 initializer.
8222 * c-lang.c (c_language_data): Likewise.
8223 (cplus_language_data): Likewise.
8224 (cplus_language::skip_trampoline): New member function.
8225 (asm_language_data): Delete skip_trampoline initializer.
8226 (minimal_language_data): Likewise.
8227 * d-lang.c (d_language_data): Likewise.
8228 * f-lang.c (f_language_data): Likewise.
8229 * go-lang.c (go_language_data): Likewise.
8230 * language.c (unk_lang_trampoline): Delete function.
8231 (skip_language_trampoline): Update.
8232 (unknown_language_data): Delete skip_trampoline initializer.
8233 (auto_language_data): Likewise.
8234 * language.h (language_data): Delete skip_trampoline field.
8235 (language_defn::skip_trampoline): New function.
8236 * m2-lang.c (m2_language_data): Delete skip_trampoline
8237 initializer.
8238 * objc-lang.c (objc_skip_trampoline): Delete function, move
8239 implementation to objc_language::skip_trampoline.
8240 (objc_language_data): Delete skip_trampoline initializer.
8241 (objc_language::skip_trampoline): New member function with
8242 implementation from objc_skip_trampoline.
8243 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8244 initializer.
8245 * p-lang.c (pascal_language_data): Likewise.
8246 * rust-lang.c (rust_language_data): Likewise.
8247
8248 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8249
8250 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8251 (ada_language::demangle): New member function.
8252 * c-lang.c (c_language_data): Delete la_demangle initializer.
8253 (cplus_language_data): Delete la_demangle initializer.
8254 (cplus_language::demangle): New member function.
8255 (asm_language_data): Delete la_demangle initializer.
8256 (minimal_language_data): Delete la_demangle initializer.
8257 * d-lang.c (d_language_data): Delete la_demangle initializer.
8258 (d_language::demangle): New member function.
8259 * f-lang.c (f_language_data): Delete la_demangle initializer.
8260 (f_language::demangle): New member function.
8261 * go-lang.c (go_language_data): Delete la_demangle initializer.
8262 (go_language::demangle): New member function.
8263 * language.c (language_demangle): Update.
8264 (unk_lang_demangle): Delete.
8265 (unknown_language_data): Delete la_demangle initializer.
8266 (unknown_language::demangle): New member function.
8267 (auto_language_data): Delete la_demangle initializer.
8268 (auto_language::demangle): New member function.
8269 * language.h (language_data): Delete la_demangle field.
8270 (language_defn::demangle): New function.
8271 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8272 * objc-lang.c (objc_language_data): Delete la_demangle
8273 initializer.
8274 (objc_language::demangle): New member function.
8275 * opencl-lang.c (opencl_language_data): Delete la_demangle
8276 initializer.
8277 * p-lang.c (pascal_language_data): Likewise.
8278 * rust-lang.c (rust_language_data): Likewise.
8279 (rust_language::demangle): New member function.
8280
8281 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8282
8283 * ada-lang.c (ada_language_data): Delete la_print_type
8284 initializer.
8285 (ada_language::print_type): New member function.
8286 * c-lang.c (c_language_data): Delete la_print_type initializer.
8287 (c_language::print_type): New member function.
8288 (cplus_language_data): Delete la_print_type initializer.
8289 (cplus_language::print_type): New member function.
8290 (asm_language_data): Delete la_print_type initializer.
8291 (asm_language::print_type): New member function.
8292 (minimal_language_data): Delete la_print_type initializer.
8293 (minimal_language::print_type): New member function.
8294 * d-lang.c (d_language_data): Delete la_print_type initializer.
8295 (d_language::print_type): New member function.
8296 * f-lang.c (f_language_data): Delete la_print_type initializer.
8297 (f_language::print_type): New member function.
8298 * go-lang.c (go_language_data): Delete la_print_type initializer.
8299 (go_language::print_type): New member function.
8300 * language.c (unk_lang_print_type): Delete.
8301 (unknown_language_data): Delete la_print_type initializer.
8302 (unknown_language::print_type): New member function.
8303 (auto_language_data): Delete la_print_type initializer.
8304 (auto_language::print_type): New member function.
8305 * language.h (language_data): Delete la_print_type field.
8306 (language_defn::print_type): New function.
8307 (LA_PRINT_TYPE): Update.
8308 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8309 (m2_language::print_type): New member function.
8310 * objc-lang.c (objc_language_data): Delete la_print_type
8311 initializer.
8312 (objc_language::print_type): New member function.
8313 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8314 to opencl_language::print_type.
8315 (opencl_language_data): Delete la_print_type initializer.
8316 (opencl_language::print_type): New member function, implementation
8317 from opencl_print_type.
8318 * p-lang.c (pascal_language_data): Delete la_print_type
8319 initializer.
8320 (pascal_language::print_type): New member function.
8321 * rust-lang.c (rust_print_type): Delete, implementation moved to
8322 rust_language::print_type.
8323 (rust_language_data): Delete la_print_type initializer.
8324 (rust_language::print_type): New member function, implementation
8325 from rust_print_type.
8326
8327 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8328
8329 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8330 implementation moves to...
8331 (ada_language::sniff_from_mangled_name): ...here. Update return
8332 type.
8333 (ada_language_data): Delete la_sniff_from_mangled_name
8334 initializer.
8335 * c-lang.c (c_language_data): Likewise.
8336 (cplus_language_data): Likewise.
8337 (cplus_language::sniff_from_mangled_name): New member function,
8338 implementation taken from gdb_sniff_from_mangled_name.
8339 (asm_language_data): Delete la_sniff_from_mangled_name
8340 initializer.
8341 (minimal_language_data): Likewise.
8342 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8343 implementation moves to cplus_language::sniff_from_mangled_name.
8344 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8345 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8346 moves to...
8347 (d_language::sniff_from_mangled_name): ...here.
8348 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8349 * f-lang.c (f_language_data): Likewise.
8350 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8351 moves to...
8352 (go_language::sniff_from_mangled_name): ...here.
8353 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8354 * language.c (language_sniff_from_mangled_name): Delete.
8355 (unknown_language_data): Delete la_sniff_from_mangled_name
8356 initializer.
8357 (auto_language_data): Likewise.
8358 * language.h (language_data): Delete la_sniff_from_mangled_name
8359 field.
8360 (language_defn::sniff_from_mangled_name): New function.
8361 (language_sniff_from_mangled_name): Delete declaration.
8362 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8363 field.
8364 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8365 implementation moves to...
8366 (objc_language::sniff_from_mangled_name): ...here.
8367 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8368 * opencl-lang.c (opencl_language_data): Likewise.
8369 * p-lang.c (pascal_language_data): Likewise.
8370 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8371 implementation moves to...
8372 (rust_language::sniff_from_mangled_name): ...here.
8373 (rust_language_data): Delete la_sniff_from_mangled_name
8374 initializer.
8375 * symtab.c (symbol_find_demangled_name): Call
8376 sniff_from_mangled_name member function.
8377
8378 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8381 initializer.
8382 * c-lang.c (c_language_data): Likewise.
8383 (cplus_language_data): Likewise.
8384 (cplus_language::search_name_hash): New member function.
8385 (asm_language_data): Delete la_search_name_hash initializer.
8386 (minimal_language_data): Likewise.
8387 * d-lang.c (d_language_data): Likewise.
8388 * dictionary.c (default_search_name_hash): Rename to...
8389 (language_defn::search_name_hash): ...this.
8390 * f-lang.c (f_language_data): Likewise.
8391 (f_language::search_name_hash): New member function.
8392 * go-lang.c (go_language_data): Delete la_search_name_hash
8393 initializer.
8394 * language.c (unknown_language_data): Likewise.
8395 (auto_language_data): Likewise.
8396 * language.h (struct language_data): Delete la_search_name_hash
8397 field.
8398 (language_defn::search_name_hash): Declare new member function.
8399 (default_search_name_hash): Delete declaration.
8400 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8401 initializer.
8402 * objc-lang.c (objc_language_data): Likewise.
8403 * opencl-lang.c (opencl_language_data): Likewise.
8404 * p-lang.c (pascal_language_data): Likewise.
8405 * rust-lang.c (rust_language_data): Likewise.
8406 * symtab.c (search_name_hash): Update call.
8407
8408 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8411 initializer.
8412 * c-lang.c (class compile_instance): Declare.
8413 (c_language_data): Delete la_get_compile_instance initializer.
8414 (c_language::get_compile_instance): New member function.
8415 (cplus_language_data): Delete la_get_compile_instance initializer.
8416 (cplus_language::get_compile_instance): New member function.
8417 (asm_language_data): Delete la_get_compile_instance initializer.
8418 (minimal_language_data): Likewise.
8419 * c-lang.h (c_get_compile_context): Update comment.
8420 (cplus_get_compile_context): Update comment.
8421 * compile/compile.c (compile_to_object): Update calls, don't rely
8422 on function pointer being NULL.
8423 * d-lang.c (d_language_data): Delete la_get_compile_instance
8424 initializer.
8425 * f-lang.c (f_language_data): Likewise.
8426 * go-lang.c (go_language_data): Likewise.
8427 * language.c (unknown_language_data): Likewise.
8428 (auto_language_data): Likewise.
8429 * language.h (language_data): Delete la_get_compile_instance field.
8430 (language_defn::get_compile_instance): New member function.
8431 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8432 initializer.
8433 * objc-lang.c (objc_language_data): Likewise.
8434 * opencl-lang.c (opencl_language_data): Likewise.
8435 * p-lang.c (pascal_language_data): Likewise.
8436 * rust-lang.c (rust_language_data): Likewise.
8437
8438 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * ada-lang.c (ada_add_all_symbols): Update comment.
8441 (ada_iterate_over_symbols): Delete, move implementation to...
8442 (ada_language::iterate_over_symbols): ...here, a new member
8443 function, rewrite to use range based for loop.
8444 (ada_language_data): Delete la_iterate_over_symbols initializer.
8445 * c-lang.c (c_language_data): Likewise.
8446 (cplus_language_data): Likewise.
8447 (asm_language_data): Likewise.
8448 (minimal_language_data): Likewise.
8449 * d-lang.c (d_language_data): Likewise.
8450 * f-lang.c (f_language_data): Likewise.
8451 * go-lang.c (go_language_data): Likewise.
8452 * language.c (unknown_language_data): Likewise.
8453 (auto_language_data): Likewise.
8454 * language.h (language_data): Delete la_iterate_over_symbols field.
8455 (language_defn::iterate_over_symbols): New member function.
8456 (LA_ITERATE_OVER_SYMBOLS): Update.
8457 * linespec.c (iterate_over_all_matching_symtabs): Update.
8458 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8459 initializer.
8460 * objc-lang.c (objc_language_data): Likewise.
8461 * opencl-lang.c (opencl_language_data): Likewise.
8462 * p-lang.c (pascal_language_data): Likewise.
8463 * rust-lang.c (rust_language_data): Likewise.
8464
8465 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * ada-lang.c (ada_language_data): Delete
8468 la_lookup_transparent_type initializer.
8469 * c-lang.c (c_language_data): Likewise.
8470 (cplus_language_data): Likewise.
8471 (cplus_language::lookup_transparent_type): New member function.
8472 (asm_language_data): Delete la_lookup_transparent_type
8473 initializer.
8474 (minimal_language_data): Likewise.
8475 * d-lang.c (d_language_data): Likewise.
8476 * f-lang.c (f_language_data): Likewise.
8477 * go-lang.c (go_language_data): Likewise.
8478 * language.c (unknown_language_data): Likewise.
8479 (auto_language_data): Likewise.
8480 * language.h (struct language_data): Delete
8481 la_lookup_transparent_type field.
8482 (language_defn::lookup_transparent_type): New member function.
8483 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8484 initializer.
8485 * objc-lang.c (objc_language_data): Likewise.
8486 * opencl-lang.c (opencl_language_data): Likewise.
8487 * p-lang.c (pascal_language_data): Likewise.
8488 * rust-lang.c (rust_language_data): Likewise.
8489 * symtab.c (symbol_matches_domain): Update call.
8490
8491 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8492
8493 * ada-lang.c (ada_language_arch_info): Delete function, move
8494 implementation to...
8495 (ada_language::language_arch_info): ...here, a new member
8496 function.
8497 (ada_language_data): Delete la_language_arch_info.
8498 * c-lang.c (c_language_data): Likewise.
8499 (c_language::language_arch_info): New member function.
8500 (cplus_language_arch_info): Delete function, move
8501 implementation to...
8502 (cplus_language::language_arch_info): ...here, a new member
8503 function.
8504 (cplus_language_data): Delete la_language_arch_info.
8505 (asm_language_data): Likewise.
8506 (asm_language::language_arch_info): New member function.
8507 (minimal_language_data): Delete la_language_arch_info.
8508 (minimal_language::language_arch_info): New member function.
8509 * d-lang.c (d_language_arch_info): Delete function, move
8510 implementation to...
8511 (d_language::language_arch_info): ...here, a new member
8512 function.
8513 (d_language_data): Delete la_language_arch_info.
8514 * f-lang.c (f_language_arch_info): Delete function, move
8515 implementation to...
8516 (f_language::language_arch_info): ...here, a new member
8517 function.
8518 (f_language_data): Delete la_language_arch_info.
8519 * go-lang.c (go_language_arch_info): Delete function, move
8520 implementation to...
8521 (go_language::language_arch_info): ...here, a new member
8522 function.
8523 (go_language_data): Delete la_language_arch_info.
8524 * language.c (unknown_language_data): Likewise.
8525 (unknown_language::language_arch_info): New member function.
8526 (auto_language_data): Delete la_language_arch_info.
8527 (auto_language::language_arch_info): New member function.
8528 (language_gdbarch_post_init): Update call to
8529 la_language_arch_info.
8530 * language.h (language_data): Delete la_language_arch_info
8531 function pointer.
8532 (language_defn::language_arch_info): New function.
8533 * m2-lang.c (m2_language_arch_info): Delete function, move
8534 implementation to...
8535 (m2_language::language_arch_info): ...here, a new member
8536 function.
8537 (m2_language_data): Delete la_language_arch_info.
8538 * objc-lang.c (objc_language_arch_info): Delete function, move
8539 implementation to...
8540 (objc_language::language_arch_info): ...here, a new member
8541 function.
8542 (objc_language_data): Delete la_language_arch_info.
8543 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8544 implementation to...
8545 (opencl_language::language_arch_info): ...here, a new member
8546 function.
8547 (opencl_language_data): Delete la_language_arch_info.
8548 * p-lang.c (pascal_language_arch_info): Delete function, move
8549 implementation to...
8550 (pascal_language::language_arch_info): ...here, a new member
8551 function.
8552 (pascal_language_data): Delete la_language_arch_info.
8553 * rust-lang.c (rust_language_arch_info): Delete function, move
8554 implementation to...
8555 (rust_language::language_arch_info): ...here, a new member
8556 function.
8557 (rust_language_data): Delete la_language_arch_info.
8558
8559 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8560
8561 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8562 initializer.
8563 * c-lang.c (c_language_data): Likewise.
8564 (cplus_language_data): Likewise.
8565 (cplus_language::pass_by_reference_info): New method.
8566 (asm_language_data): Delete la_pass_by_reference initializer.
8567 (minimal_language_data): Likewise.
8568 * cp-abi.c (cp_pass_by_reference): Remove use of
8569 default_pass_by_reference.
8570 * d-lang.c (d_language_data): Likewise.
8571 * f-lang.c (f_language_data): Likewise.
8572 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8573 default_pass_by_reference.
8574 * go-lang.c (go_language_data): Likewise.
8575 * language.c (language_pass_by_reference): Update.
8576 (default_pass_by_reference): Delete.
8577 (unknown_language_data): Delete la_pass_by_reference
8578 initializer.
8579 (auto_language_data): Likewise.
8580 * language.h (struct language_data): Delete la_pass_by_reference
8581 field.
8582 (language_defn::pass_by_reference_info): New member function.
8583 (default_pass_by_reference): Delete declaration.
8584 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8585 initializer.
8586 * objc-lang.c (objc_language_data): Likewise.
8587 * opencl-lang.c (opencl_language_data): Likewise.
8588 * p-lang.c (pascal_language_data): Likewise.
8589 * rust-lang.c (rust_language_data): Likewise.
8590
8591 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * ada-lang.c (ada_read_var_value): Delete function, move
8594 implementation to...
8595 (ada_language::read_var_value): ...here.
8596 (ada_language_data): Delete la_read_var_value initializer.
8597 * c-lang.c (c_language_data): Likewise.
8598 (cplus_language_data): Likewise.
8599 (minimal_language_data): Likewise.
8600 * d-lang.c (d_language_data): Likewise.
8601 * f-lang.c (f_language_data): Likewise.
8602 * findvar.c (default_read_var_value): Rename to...
8603 (language_defn::read_var_value): ...this.
8604 * findvar.c (read_var_value): Update header comment, and change to
8605 call member function instead of function pointer.
8606 * go-lang.c (go_language_data): Likewise.
8607 * language.c (unknown_language_data): Delete la_read_var_value
8608 initializer.
8609 (auto_language_data): Likewise.
8610 * language.h (struct language_data): Delete la_read_var_value
8611 field.
8612 (language_defn::read_var_value): New member function.
8613 (default_read_var_value): Delete declaration.
8614 * m2-lang.c (m2_language_data): Delete la_read_var_value
8615 initializer.
8616 * objc-lang.c (objc_language_data): Likewise.
8617 * opencl-lang.c (opencl_language_data): Likewise.
8618 * p-lang.c (pascal_language_data): Likewise.
8619 * rust-lang.c (rust_language_data): Likewise.
8620 * value.h (default_read_var_value): Delete declaration.
8621
8622 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * ada-lang.c (ada_print_array_index): Delete function, move
8625 implementation to...
8626 (ada_language::print_array_index): ...here.
8627 (ada_language_data): Delete la_print_array_index initializer.
8628 * c-lang.c (c_language_data): Likewise.
8629 (cplus_language_data): Likewise.
8630 (minimal_language_data): Likewise.
8631 * d-lang.c (d_language_data): Likewise.
8632 * f-lang.c (f_language_data): Likewise.
8633 * go-lang.c (go_language_data): Likewise.
8634 * language.c (default_print_array_index): Delete function, move
8635 implementation to...
8636 (language_defn::print_array_index): ...here.
8637 (unknown_language_data): Delete la_print_array_index initializer.
8638 (auto_language_data): Likewise.
8639 * language.h (struct language_data): Delete la_print_array_index
8640 field.
8641 (language_defn::print_array_index): New member function.
8642 (LA_PRINT_ARRAY_INDEX): Update.
8643 (default_print_array_index): Delete declaration.
8644 * m2-lang.c (m2_language_data): Delete la_print_array_index
8645 initializer.
8646 * objc-lang.c (objc_language_data): Likewise.
8647 * opencl-lang.c (opencl_language_data): Likewise.
8648 * p-lang.c (pascal_language_data): Likewise.
8649 * rust-lang.c (rust_language_data): Likewise.
8650
8651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8652
8653 * gdb/ada-lang.c (ada_language_defn): Convert to...
8654 (ada_language_data): ...this.
8655 (class ada_language): New class.
8656 (ada_language_defn): New static global.
8657 * gdb/c-lang.c (c_language_defn): Convert to...
8658 (c_language_data): ...this.
8659 (class c_language): New class.
8660 (c_language_defn): New static global.
8661 (cplus_language_defn): Convert to...
8662 (cplus_language_data): ...this.
8663 (class cplus_language): New class.
8664 (cplus_language_defn): New static global.
8665 (asm_language_defn): Convert to...
8666 (asm_language_data): ...this.
8667 (class asm_language): New class.
8668 (asm_language_defn): New static global.
8669 (minimal_language_defn): Convert to...
8670 (minimal_language_data): ...this.
8671 (class minimal_language): New class.
8672 (minimal_language_defn): New static global.
8673 * gdb/d-lang.c (d_language_defn): Convert to...
8674 (d_language_data): ...this.
8675 (class d_language): New class.
8676 (d_language_defn): New static global.
8677 * gdb/f-lang.c (f_language_defn): Convert to...
8678 (f_language_data): ...this.
8679 (class f_language): New class.
8680 (f_language_defn): New static global.
8681 * gdb/go-lang.c (go_language_defn): Convert to...
8682 (go_language_data): ...this.
8683 (class go_language): New class.
8684 (go_language_defn): New static global.
8685 * gdb/language.c (unknown_language_defn): Remove declaration.
8686 (current_language): Initialize to nullptr, real initialization is
8687 moved to _initialize_language.
8688 (languages): Delete global.
8689 (language_defn::languages): Define.
8690 (set_language_command): Use language_defn::languages.
8691 (set_language): Likewise.
8692 (range_error): Likewise.
8693 (language_enum): Likewise.
8694 (language_def): Likewise.
8695 (add_set_language_command): Use language_def::languages for the
8696 language list, and language_def to lookup language pointers.
8697 (skip_language_trampoline): Use language_defn::languages.
8698 (unknown_language_defn): Convert to...
8699 (unknown_language_data): ...this.
8700 (class unknown_language): New class.
8701 (unknown_language_defn): New static global.
8702 (auto_language_defn): Convert to...
8703 (auto_language_data): ...this.
8704 (class auto_language): New class.
8705 (auto_language_defn): New static global.
8706 (language_gdbarch_post_init): Use language_defn::languages.
8707 (_initialize_language): Initialize current_language.
8708 * gdb/language.h (struct language_defn): Rename to...
8709 (struct language_data): ...this.
8710 (struct language_defn): New.
8711 (auto_language_defn): Delete.
8712 (unknown_language_defn): Delete.
8713 (minimal_language_defn): Delete.
8714 (ada_language_defn): Delete.
8715 (asm_language_defn): Delete.
8716 (c_language_defn): Delete.
8717 (cplus_language_defn): Delete.
8718 (d_language_defn): Delete.
8719 (f_language_defn): Delete.
8720 (go_language_defn): Delete.
8721 (m2_language_defn): Delete.
8722 (objc_language_defn): Delete.
8723 (opencl_language_defn): Delete.
8724 (pascal_language_defn): Delete.
8725 (rust_language_defn): Delete.
8726 * gdb/m2-lang.c (m2_language_defn): Convert to...
8727 (m2_language_data): ...this.
8728 (class m2_language): New class.
8729 (m2_language_defn): New static global.
8730 * gdb/objc-lang.c (objc_language_defn): Convert to...
8731 (objc_language_data): ...this.
8732 (class objc_language): New class.
8733 (objc_language_defn): New static global.
8734 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8735 (opencl_language_data): ...this.
8736 (class opencl_language): New class.
8737 (opencl_language_defn): New static global.
8738 * gdb/p-lang.c (pascal_language_defn): Convert to...
8739 (pascal_language_data): ...this.
8740 (class pascal_language): New class.
8741 (pascal_language_defn): New static global.
8742 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8743 language pointer, update comment format.
8744 * gdb/rust-lang.c (rust_language_defn): Convert to...
8745 (rust_language_data): ...this.
8746 (class rust_language): New class.
8747 (rust_language_defn): New static global.
8748
8749 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8750
8751 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8752 member variable.
8753 <m_stmt_at_address>: New member variable.
8754 (lnp_state_machine::record_line): Don't record some lines, update
8755 tracking of is_stmt at the same address.
8756 (lnp_state_machine::lnp_state_machine): Initialise new member
8757 variables.
8758
8759 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8760
8761 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8762 "-include gnu-nat-mig.h".
8763 * gnu-nat-mig.h: New file.
8764 * gnu-nat.c: Include "gnu-nat-mig.h".
8765 (exc_server, msg_reply_server, notify_server,
8766 process_reply_server): Remove declarations.
8767
8768 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8769
8770 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8771 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8772 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8773 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8774 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8775 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8776 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8777 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8778 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8779 to gnu_nat_target class.
8780 * gnu-nat.c: Likewise.
8781 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8782 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8783 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8784 object.
8785 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8786 instead of `gnu_target'.
8787
8788 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8789
8790 * i386-gnu-tdep.c: Include "gdbcore.h"
8791 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8792 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8793 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8794 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8795 i386_gnu_sigcontext_addr): New functions
8796 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8797 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8798 tdep.
8799
8800 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8801
8802 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8803 before fork_inferior call. Avoid calling it if target_is_pushed returns
8804 true.
8805
8806 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8807
8808 * gnu-nat.h (gnu_target): New variable declaration.
8809 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8810 gnu_target.
8811 * gnu-nat.c (gnu_target): New variable.
8812 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8813 add_thread_silent, and add_thread calls.
8814 (gnu_nat_target::create_inferior): Pass gnu_target to
8815 add_thread_silent, thread_change_ptid call.
8816 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8817 call.
8818
8819 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8820
8821 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8822 (gnu_nat_target::find_memory_regions): Remove unused
8823 `old_address' variable.
8824
8825 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8826
8827 * gnu-nat.c: Include "gdbarch.h".
8828
8829 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8830
8831 * reply_mig_hack.awk (Error return): Cast function through
8832 void *, to bypass compiler function call check.
8833
8834 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8835
8836 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8837 $(srcdir)/reply_mig_hack.awk.
8838
8839 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8840
8841 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8842
8843 2020-05-30 Jonny Grant <jg@jguk.org>
8844
8845 * configure.ac (ACX_BUGURL): change bug URL to https.
8846
8847 2020-05-30 Pedro Alves <palves@redhat.com>
8848
8849 * cp-support.c (replace_typedefs_template): New.
8850 (replace_typedefs_qualified_name): Handle
8851 DEMANGLE_COMPONENT_TEMPLATE.
8852
8853 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8856 dwarf2/index-cache.h, dwarf2/index-write.c,
8857 dwarf2/index-write.h, dwarf2/line-header.c,
8858 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8859 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8860 variables and fields from `dwarf2_per_objfile` to just
8861 `per_objfile` throughout.
8862
8863 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8866 <push_dwarf_reg_entry_value>: Add comment.
8867
8868 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8869 Keith Seitz <keiths@redhat.com>
8870
8871 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8872 instead of PyEval_ReleaseLock.
8873 (class gdbpy_gil): Move to earlier in file.
8874 (finalize_python): Set gdb_python_initialized.
8875 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8876 when not initialized.
8877
8878 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8879
8880 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8881 <push_dwarf_reg_entry_value>: Remove assert. Override
8882 per_objfile with caller_per_objfile.
8883
8884 2020-05-28 Tom de Vries <tdevries@suse.de>
8885
8886 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8887 PR gold/15646 workaround to symbol kind "type".
8888
8889 2020-05-27 Tom Tromey <tromey@adacore.com>
8890
8891 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8892
8893 2020-05-27 Tom Tromey <tromey@adacore.com>
8894
8895 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8896 Use htab_find_with_hash.
8897 <add_abbrev>: Remove "abbrev_number" parameter.
8898 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8899 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8900 (hash_abbrev): Add comment.
8901 (abbrev_table::lookup_abbrev): Move to header file.
8902 (abbrev_table::read): Update.
8903
8904 2020-05-27 Tom Tromey <tromey@adacore.com>
8905
8906 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8907 method.
8908 <canonical_name>: New member.
8909 <raw_name>: Rename from "name".
8910 (partial_die_info): Initialize canonical_name.
8911 (scan_partial_symbols): Check raw_name.
8912 (partial_die_parent_scope, partial_die_full_name)
8913 (add_partial_symbol, add_partial_subprogram)
8914 (add_partial_enumeration, load_partial_dies): Use "name" method.
8915 (partial_die_info::name): New method.
8916 (partial_die_info::read, guess_partial_die_structure_name)
8917 (partial_die_info::fixup): Update.
8918
8919 2020-05-27 Tom Tromey <tromey@adacore.com>
8920
8921 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8922 <get_ref_die_offset>: Inline.
8923 <get_ref_die_offset_complaint>: New method.
8924 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8925 (attribute::get_ref_die_offset_complaint): Rename from
8926 get_ref_die_offset. Just issue complaint.
8927
8928 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8929
8930 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8931
8932 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8933
8934 * exec.c (exec_file_attach): Use errno value of first openp failure.
8935
8936 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8937
8938 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8939 Don't close thread handle.
8940
8941 2020-05-27 Tom Tromey <tom@tromey.com>
8942 Simon Marchi <simon.marchi@efficios.com>
8943
8944 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8945 shared_ptr.
8946 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8947 member.
8948 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8949 dwarf2_per_bfd_objfile_data_key>: New globals.
8950 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8951 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8952 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8953 shared.
8954 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8955 short-circuit when sharing.
8956 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8957 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8958
8959 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8960
8961 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8962 to...
8963 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8964 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8965
8966 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8967
8968 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8969 build_name_components, find_name_components_bounds>:
8970 Add per_objfile parameter.
8971 (struct mapped_index) <symbol_name_at>: Likewise.
8972 (struct mapped_debug_names): Remove constructor.
8973 <dwarf2_per_objfile>: Remove field.
8974 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8975 (mapped_index_base::find_name_components_bounds,
8976 mapped_index_base::build_name_components,
8977 dw2_expand_symtabs_matching_symbol): Likewise.
8978 (class mock_mapped_index) <symbol_name_at>: Likewise.
8979 (check_match): Likewise.
8980 (check_find_bounds_finds): Likewise.
8981 (test_mapped_index_find_name_component_bounds): Update.
8982 (CHECK_MATCH): Update.
8983 (dw2_expand_symtabs_matching): Update.
8984 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8985 per_objfile parameter.
8986 <find_vec_in_debug_names>: Likewise.
8987 <m_per_objfile>: New field.
8988 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8989 parameter.
8990 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8991 (dw2_debug_names_iterator::next): Update.
8992 (dw2_debug_names_lookup_symbol): Update.
8993 (dw2_debug_names_expand_symtabs_for_function): Update.
8994 (dw2_debug_names_map_matching_symbols): Update.
8995 (dw2_debug_names_expand_symtabs_matching): Update.
8996 (dwarf2_read_debug_names): Update.
8997
8998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9001 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9002 move to dwarf2_per_objfile.
9003 <read_in_chain>: Remove.
9004 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9005 remove_all_cus, age_comp_units>: New methods.
9006 <m_dwarf2_cus>: New member.
9007 (struct dwarf2_per_cu_data) <cu>: Remove.
9008 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9009 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9010 moved to methods of dwarf2_per_objfile.
9011 (dwarf2_clear_marks): Remove.
9012 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9013 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9014 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9015 (dwarf2_per_objfile::remove_all_cus): New.
9016 (class free_cached_comp_units) <~free_cached_comp_units>:
9017 Update.
9018 (load_cu): Update.
9019 (dw2_do_instantiate_symtab): Adjust.
9020 (fill_in_sig_entry_from_dwo_entry): Adjust.
9021 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9022 (cutu_reader::cutu_reader): Likewise.
9023 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9024 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9025 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9026 and dwarf2_per_objfile::age_comp_units.
9027 (load_partial_comp_unit): Update.
9028 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9029 (process_queue): Likewise.
9030 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9031 backlink.
9032 (dwarf2_read_addr_index): Likewise.
9033 (follow_die_offset): Likewise.
9034 (dwarf2_fetch_die_loc_sect_off): Likewise.
9035 (dwarf2_fetch_constant_bytes): Likewise.
9036 (dwarf2_fetch_die_type_sect_off): Likewise.
9037 (follow_die_sig_1): Likewise.
9038 (load_full_type_unit): Likewise.
9039 (read_signatured_type): Likewise.
9040 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9041 (dwarf2_cu::~dwarf2_cu): Remove.
9042 (dwarf2_per_objfile::get_cu): New.
9043 (dwarf2_per_objfile::set_cu): New.
9044 (age_cached_comp_units): Rename to...
9045 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9046 to std::unordered_map.
9047 (free_one_cached_comp_unit): Rename to...
9048 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9049 to std::unordered_map.
9050 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9051 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9052 a dwarf2_per_objfile in data.
9053 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9054 (dwarf2_clear_marks): Remove.
9055
9056 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9059 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9060 (init_tu_and_read_dwo_dies): Likewise.
9061 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9062 (cutu_reader::cutu_reader): Likewise.
9063 (load_partial_comp_unit): Likewise.
9064 (process_psymtab_comp_unit): Update.
9065 (build_type_psymtabs_1): Update.
9066 (process_skeletonless_type_unit): Update.
9067 (load_full_comp_unit): Update.
9068 (find_partial_die): Update.
9069 (dwarf2_read_addr_index): Update.
9070 (read_signatured_type): Update.
9071
9072 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9073
9074 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9075 m_header_read_in>: New fields.
9076 <get_header>: New method.
9077 * dwarf2/read.c (per_cu_header_read_in): Remove.
9078 (dwarf2_per_cu_data::get_header): New.
9079 (dwarf2_per_cu_data::addr_size): Update.
9080 (dwarf2_per_cu_data::offset_size): Update.
9081 (dwarf2_per_cu_data::ref_addr_size): Update.
9082
9083 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9084
9085 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9086 (dw2_do_instantiate_symtab): Update.
9087 (queue_and_load_all_dwo_tus): Change parameter from
9088 dwarf2_per_cu_data to dwarf2_cu.
9089 (dwarf2_fetch_die_loc_sect_off): Update.
9090 (dwarf2_fetch_constant_bytes): Update.
9091 (dwarf2_fetch_die_type_sect_off): Update.
9092
9093 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9094
9095 * dwarf2/read.c (process_full_comp_unit,
9096 process_full_type_unit): Remove per_cu, per_objfile paramters.
9097 Add dwarf2_cu parameter.
9098 (process_queue): Update.
9099
9100 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9101
9102 * dwarf2/read.c (create_cu_from_index_list): Replace
9103 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9104 (create_cus_from_index_list): Likewise.
9105 (create_cus_from_index): Likewise.
9106 (create_signatured_type_table_from_index): Likewise.
9107 (create_cus_from_debug_names_list): Likewise.
9108 (create_cus_from_debug_names): Likewise.
9109 (dwarf2_read_gdb_index): Update.
9110 (dwarf2_read_debug_names): Update.
9111
9112 2020-05-27 Tom Tromey <tom@tromey.com>
9113 Simon Marchi <simon.marchi@efficios.com>
9114
9115 * dwarf2/read.h (struct dwarf2_per_objfile)
9116 <get_type_for_signatured_type, set_type_for_signatured_type>:
9117 New methods.
9118 <m_type_map>: New member.
9119 (struct signatured_type) <type>: Remove.
9120 * dwarf2/read.c
9121 (dwarf2_per_objfile::get_type_for_signatured_type,
9122 dwarf2_per_objfile::set_type_for_signatured_type): New.
9123 (get_signatured_type): Use new methods.
9124
9125 2020-05-27 Tom Tromey <tom@tromey.com>
9126 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9129 (struct dwarf2_per_objfile) <type_units>: New member.
9130 <get_type_unit_group_unshareable>: New method.
9131 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9132 num_symtabs, symtabs>: Remove; move to
9133 type_unit_group_unshareable.
9134 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9135 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9136 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9137
9138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * dwarf2/read.h (struct dwarf2_per_cu_data):
9141 <dwarf2_per_objfile>: Remove.
9142 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9143 dwarf2_per_objfile.
9144 (create_signatured_type_table_from_index): Likewise.
9145 (create_signatured_type_table_from_debug_names): Likewise.
9146 (create_debug_type_hash_table): Likewise.
9147 (fill_in_sig_entry_from_dwo_entry): Likewise.
9148 (create_type_unit_group): Likewise.
9149 (read_comp_units_from_section): Likewise.
9150 (create_cus_hash_table): Likewise.
9151
9152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9153
9154 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9155 dwarf2_per_cu_data::dwarf2_per_objfile.
9156 (compute_compunit_symtab_includes): Likewise.
9157 (dwarf2_cu::start_symtab): Likewise.
9158
9159 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9160
9161 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9162 parameter.
9163 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9164 (read_namespace_alias): Update.
9165 (lookup_die_type): Update.
9166 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9167 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9168 Update.
9169 (disassemble_dwarf_expression): Update.
9170
9171 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * dwarf2/read.h (struct dwarf2_queue_item): Add
9174 dwarf2_per_objfile parameter, assign new parameter.
9175 <per_objfile>: New field.
9176 * dwarf2/read.c (free_one_cached_comp_unit): Add
9177 dwarf2_per_objfile parameter.
9178 (queue_comp_unit): Likewise.
9179 (dw2_do_instantiate_symtab): Update.
9180 (process_psymtab_comp_unit): Update.
9181 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9182 (process_imported_unit_die): Update.
9183 (queue_and_load_dwo_tu): Update.
9184 (follow_die_offset): Update.
9185 (follow_die_sig_1): Update.
9186
9187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9190 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9191 (read_call_site_scope): Assign per_objfile.
9192 (dwarf2_per_cu_data::objfile): Remove.
9193 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9194 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9195 dwarf2_per_objfile parameter.
9196 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9197 dwarf2_per_objfile parameter.
9198 (dwarf_expr_reg_to_entry_parameter): Add output
9199 dwarf2_per_objfile parameter.
9200 (locexpr_get_frame_base): Update.
9201 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9202 <push_dwarf_reg_entry_value>: Update.
9203 <call_site_to_target_addr>: Update.
9204 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9205 parameter.
9206 (value_of_dwarf_reg_entry): Update.
9207 (rw_pieced_value): Update.
9208 (indirect_synthetic_pointer): Update.
9209 (dwarf2_evaluate_property): Update.
9210 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9211 parameter.
9212 (locexpr_read_variable): Update.
9213 (locexpr_get_symbol_read_needs): Update.
9214 (loclist_read_variable): Update.
9215
9216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9219 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9220 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9221 parameter.
9222 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9223 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9224 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9225 parameter.
9226 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9227 sect_variable_value): Add dwarf2_per_objfile parameter.
9228 (class dwarf_evaluate_loc_desc) <dwarf_call,
9229 dwarf_variable_value>: Update.
9230 (fetch_const_value_from_synthetic_pointer): Add
9231 dwarf2_per_objfile parameter.
9232 (fetch_const_value_from_synthetic_pointer): Update.
9233 (coerced_pieced_ref): Update.
9234 (class symbol_needs_eval_context) <dwarf_call,
9235 dwarf_variable_value>: Update.
9236 (dwarf2_compile_expr_to_ax): Update.
9237
9238 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9239
9240 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9241 parameter.
9242 (dwarf2_evaluate_loc_desc_full): Update.
9243
9244 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9247 parameter.
9248 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9249 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9250 dwarf2_per_objfile parameter.
9251 (decode_debug_loc_dwo_addresses): Likewise.
9252 (dwarf2_find_location_expression): Update.
9253 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9254 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9255 parameter.
9256 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9257 parameter.
9258 (locexpr_describe_location_1): Likewise.
9259 (locexpr_describe_location): Update.
9260
9261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9264 Remove.
9265 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9266 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9267 (dwarf2_compile_property_to_c): Update.
9268 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9269 use text offset from objfile.
9270 (locexpr_tracepoint_var_ref): Update.
9271 (locexpr_generate_c_location): Update.
9272 (loclist_describe_location): Update.
9273 (loclist_tracepoint_var_ref): Update.
9274 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9275 dwarf2_per_objfile parameter.
9276 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9277 use text offset from objfile.
9278 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9279
9280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * dwarf2/expr.h (struct dwarf_expr_context)
9283 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9284 <offset>: Remove.
9285 <per_objfile>: New member.
9286 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9287 dwarf2_per_objfile parameter. Don't set offset, set
9288 per_objfile.
9289 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9290 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9291 a dwarf2_per_objfile object instead of an offset.
9292 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9293 constructor.
9294 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9295 to dwarf2_expr_executor constructor. Don't set offset.
9296 (dwarf2_fetch_cfa_info): Update.
9297 (struct dwarf2_frame_cache) <text_offset>: Remove.
9298 <per_objfile>: New field.
9299 (dwarf2_frame_cache): Update.
9300 (dwarf2_frame_prev_register): Update.
9301 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9302 <dwarf_evaluate_loc_desc>: Add constructor.
9303 (dwarf2_evaluate_loc_desc_full): Update.
9304 (dwarf2_locexpr_baton_eval): Update.
9305 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9306 Add constructor.
9307 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9308
9309 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9312 addr_sized_int_type>: Move to dwarf2_cu.
9313 <int_type>: Move to dwarf2_per_objfile.
9314 (struct dwarf2_per_objfile) <int_type>: Move here.
9315 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9316 addr_sized_int_type>: Move here.
9317 (read_func_scope): Update.
9318 (read_array_type): Update.
9319 (read_tag_string_type): Update.
9320 (attr_to_dynamic_prop): Update.
9321 (dwarf2_per_cu_data::int_type): Rename to...
9322 (dwarf2_per_objfile::int_type): ... this.
9323 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9324 (dwarf2_cu::addr_sized_int_type): ... this.
9325 (read_subrange_type): Update.
9326 (dwarf2_per_cu_data::addr_type): Rename to...
9327 (dwarf2_cu::addr_type): ... this.
9328 (set_die_type): Update.
9329
9330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9333 data through per_cu->cu.
9334
9335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9338 dwarf2_per_cu_data parameter fo dwarf2_cu.
9339 (lookup_dwo_type_unit): Likewise.
9340 (read_cutu_die_from_dwo): Likewise.
9341 (lookup_dwo_unit): Likewise.
9342 (open_and_init_dwo_file): Likewise.
9343 (lookup_dwo_cutu): Likewise.
9344 (lookup_dwo_comp_unit): Likewise.
9345 (lookup_dwo_type_unit): Likewise.
9346 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9347 (cutu_reader::cutu_reader): Update.
9348
9349 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9350
9351 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9352 parameter.
9353 (process_full_type_unit): Likewise.
9354 (process_queue): Update.
9355
9356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9357
9358 * dwarf2/read.c (recursively_compute_inclusions): Add
9359 dwarf2_per_objfile parameter.
9360 (compute_compunit_symtab_includes): Likewise.
9361 (process_cu_includes): Update.
9362
9363 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9364
9365 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9366 parameter.
9367 (create_type_unit_group): Update.
9368 (process_psymtab_comp_unit_reader): Update.
9369 (build_type_psymtabs_reader): Update.
9370
9371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9372
9373 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9374 object through m_this_cu->cu.
9375
9376 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9377
9378 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9379 the info parameter.
9380 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9381
9382 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9383
9384 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9385 per_objfile parameter.
9386 (load_full_type_unit): Add per_objfile parameter.
9387 (read_signatured_type): Likewise.
9388 (load_full_comp_unit): Likewise.
9389 (load_cu): Likewise.
9390 (dw2_do_instantiate_symtab): Likewise.
9391 (dw2_get_file_names): Likewise.
9392 (dw2_map_symtabs_matching_filename): Update.
9393 (dw_expand_symtabs_matching_file_matcher): Update.
9394 (dw2_map_symbol_filenames): Update.
9395 (process_psymtab_comp_unit): Add per_objfile parameter.
9396 (build_type_psymtabs_1): Update.
9397 (process_skeletonless_type_unit): Update.
9398 (dwarf2_build_psymtabs_hard): Update.
9399 (load_partial_comp_unit): Add per_objfile parameter.
9400 (scan_partial_symbols): Update.
9401 (load_full_comp_unit): Add per_objfile parameter.
9402 (process_imported_unit_die): Update.
9403 (create_cus_hash_table): Update.
9404 (find_partial_die): Update.
9405 (dwarf2_read_addr_index): Update.
9406 (follow_die_offset): Update.
9407 (dwarf2_fetch_die_loc_sect_off): Update.
9408 (dwarf2_fetch_constant_bytes): Update.
9409 (dwarf2_fetch_die_type_sect_off): Update.
9410 (follow_die_sig_1): Update.
9411 (load_full_type_unit): Add per_objfile parameter.
9412 (read_signatured_type): Likewise.
9413
9414 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9415
9416 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9417 of objfile_name.
9418
9419 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9422 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9423 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9424 field.
9425 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9426 (create_cus_from_index): Update.
9427 (dwarf2_read_gdb_index): Update.
9428 (create_cus_from_debug_names): Update.
9429 (dwarf2_read_debug_names): Update.
9430 (get_abbrev_section_for_cu): Update.
9431 (create_all_comp_units): Update.
9432 (read_attribute_value): Update.
9433 (get_debug_line_section): Update.
9434 * dwarf2/index-cache.c (index_cache::store): Update.
9435 * dwarf2/index-write.c (save_gdb_index_command): Update.
9436 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9437
9438 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9439
9440 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9441 member.
9442 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9443 dwarf2_per_cu_data::per_bfd.
9444 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9445 (create_type_unit_group): Likewise.
9446 (queue_comp_unit): Remove reference to
9447 per_cu->dwarf2_per_objfile.
9448 (maybe_queue_comp_unit): Likewise.
9449 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9450 (create_cus_hash_table): Assign new field.
9451
9452 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * dwarf2/read.c: Replace
9455 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9456 dwarf2_cu->per_objfile throughout.
9457
9458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9461 parameter, don't use per_cu->dwarf2_per_objfile.
9462 (dw2_instantiate_symtab): Likewise.
9463 (dw2_find_last_source_symtab): Update.
9464 (dw2_map_expand_apply): Update.
9465 (dw2_lookup_symbol): Update.
9466 (dw2_expand_symtabs_for_function): Update.
9467 (dw2_expand_all_symtabs): Update.
9468 (dw2_expand_symtabs_with_fullname): Update.
9469 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9470 don't use per_cu->dwarf2_per_objfile.
9471 (dw2_expand_marked_cus): Update.
9472 (dw2_find_pc_sect_compunit_symtab): Update.
9473 (dw2_debug_names_lookup_symbol): Update.
9474 (dw2_debug_names_expand_symtabs_for_function): Update.
9475 (dw2_debug_names_map_matching_symbols): Update.
9476 (dwarf2_psymtab::expand_psymtab): Update.
9477
9478 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9481 <per_objfile>: New member.
9482 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9483 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9484 call to dwarf2_cu.
9485 (cutu_reader::cutu_reader): Update.
9486 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9487
9488 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9489
9490 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9491 struct dwarf2_per_objfile.
9492 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9493 dwarf2_per_bfd.
9494 * dwarf2/read.c (set_die_type): Update.
9495 (get_die_type_at_offset): Update.
9496
9497 2020-05-27 Tom Tromey <tom@tromey.com>
9498 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9501 method.
9502 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9503 get_symtab, set_symtab>: New methods.
9504 <m_symtabs>: New field.
9505 (struct dwarf2_psymtab): Derive from partial_symtab.
9506 <readin_p, get_compunit_symtab>: Declare methods.
9507 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9508 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9509 New methods.
9510 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9511 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9512 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9513 (dw2_symtab_iter_next, dw2_print_stats)
9514 (dw2_expand_symtabs_with_fullname)
9515 (dw2_expand_symtabs_matching_one)
9516 (dw_expand_symtabs_matching_file_matcher)
9517 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9518 (dw2_debug_names_iterator::next)
9519 (dw2_debug_names_map_matching_symbols)
9520 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9521 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9522 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9523 New methods.
9524 (get_compunit_symtab, process_full_comp_unit)
9525 (process_full_type_unit): Update.
9526 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9527
9528 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9531 then introduce a new dwarf2_per_objfile type.
9532 <read_line_string>: Move to the new dwarf2_per_objfile type.
9533 <objfile>: Likewise.
9534 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9535 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9536 dwarf2_per_objfile->per_bfd.
9537 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9538 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9539 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9540 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9541 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9542 (dwarf2_per_objfile::locate_sections): Rename to...
9543 (dwarf2_per_bfd::locate_sections): ... this.
9544 (dwarf2_per_objfile::get_cutu): Rename to...
9545 (dwarf2_per_bfd::get_cutu): ... this.
9546 (dwarf2_per_objfile::get_cu): Rename to...
9547 (dwarf2_per_bfd::get_cu): ... this.
9548 (dwarf2_per_objfile::get_tu): Rename to...
9549 (dwarf2_per_bfd::get_tu): ... this.
9550 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9551 (dwarf2_per_bfd::allocate_per_cu): ... this.
9552 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9553 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9554 (get_gdb_index_contents_ftype): Change parameter from
9555 dwarf2_per_objfile to dwarf2_per_bfd.
9556 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9557 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9558
9559 2020-05-27 Tom Tromey <tom@tromey.com>
9560 Simon Marchi <simon.marchi@efficios.com>
9561
9562 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9563 (allocate_piece_closure): Set "per_objfile" member.
9564 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9565 (locexpr_describe_location, loclist_describe_location): Use new
9566 member.
9567 * dwarf2/read.c (read_call_site_scope)
9568 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9569 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9570 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9571 handle_data_member_location): Set per_objfile member.
9572 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9573 member.
9574 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9575
9576 2020-05-27 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9579 allocate_signatured_type>: Declare new methods.
9580 <m_num_psymtabs>: New member.
9581 (struct dwarf2_per_cu_data) <index>: New member.
9582 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9583 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9584 (create_cu_from_index_list): Use allocate_per_cu.
9585 (create_signatured_type_table_from_index)
9586 (create_signatured_type_table_from_debug_names)
9587 (create_debug_type_hash_table, add_type_unit)
9588 (read_comp_units_from_section): Use allocate_signatured_type.
9589
9590 2020-05-27 Tom Tromey <tom@tromey.com>
9591
9592 * psymtab.c (partial_map_expand_apply)
9593 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9594 (psym_lookup_global_symbol_language)
9595 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9596 (psym_print_stats, psym_expand_symtabs_for_function)
9597 (psym_map_symbol_filenames, psym_map_matching_symbols)
9598 (psym_expand_symtabs_matching)
9599 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9600 (maintenance_check_psymtabs): Update.
9601 * psympriv.h (struct partial_symtab) <readin_p,
9602 get_compunit_symtab>: Add objfile parameter.
9603 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9604 Likewise.
9605 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9606 get_compunit_symtab>: Likewise.
9607 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9608
9609 2020-05-27 Tom Tromey <tom@tromey.com>
9610
9611 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9612 member.
9613 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9614 (create_cu_from_index_list)
9615 (create_signatured_type_table_from_index)
9616 (create_signatured_type_table_from_debug_names)
9617 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9618 (dwarf2_create_include_psymtab)
9619 (create_debug_type_hash_table, add_type_unit)
9620 (create_type_unit_group, read_comp_units_from_section)
9621 (dwarf2_compute_name, create_cus_hash_table)
9622 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9623 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9624 obstack.
9625 (dw2_get_real_path): Likewise. Change argument to
9626 dwarf2_per_objfile.
9627
9628 2020-05-27 Luis Machado <luis.machado@linaro.org>
9629
9630 PR tdep/26000
9631 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9632 for ldrd (immediate).
9633
9634 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9635
9636 * command.h: Add comment giving the name of class_tui.
9637 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9638 create the fake command for the help for class_tui.
9639
9640 2020-05-26 Tom Tromey <tromey@adacore.com>
9641
9642 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9643 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9644 (val_atr): New function.
9645 (value_val_atr): Use it.
9646 * ada-valprint.c (print_optional_low_bound): Change low bound
9647 handling for enums.
9648 (val_print_packed_array_elements): Don't call discrete_position.
9649 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9650 discrete_position for enum types.
9651 * language.c (default_print_array_index): Change type.
9652 * language.h (struct language_defn) <la_print_array_index>: Add
9653 index_type parameter, change type of index_value.
9654 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9655 (default_print_array_index): Update.
9656 * valprint.c (maybe_print_array_index): Don't call
9657 value_from_longest. Update.
9658 (value_print_array_elements): Don't call discrete_position.
9659
9660 2020-05-26 Tom Tromey <tromey@adacore.com>
9661
9662 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9663 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9664
9665 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9666
9667 PR gdb/13519
9668 * avr-tdep.c (avr_integer_to_address): Return data or code
9669 address accordingly to the second 'type' argument of the
9670 function.
9671
9672 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9673
9674 * infcmd.c, inferior.h: (construct_inferior_arguments):
9675 Moved function from here to gdbsupport/common-inferior.{h,cc}
9676
9677 2020-05-23 Tom Tromey <tom@tromey.com>
9678
9679 Revert commit eca1f90c:
9680 * NEWS: Remove entry for completion styling.
9681 * completer.c (_rl_completion_prefix_display_length): Move
9682 declaration later.
9683 (gdb_fnprint): Revert.
9684 (gdb_display_match_list_1): Likewise.
9685 * cli/cli-style.c (completion_prefix_style)
9686 (completion_difference_style, completion_suffix_style): Remove.
9687 (_initialize_cli_style): Revert.
9688 * cli/cli-style.h (completion_prefix_style)
9689 (completion_difference_style, completion_suffix_style): Don't
9690 declare.
9691
9692 2020-05-24 Pedro Alves <palves@redhat.com>
9693
9694 * symtab.c (completion_list_add_name): Return boolean indication
9695 of whether the symbol matched.
9696 (completion_list_add_symbol): Don't try to remove C++ aliases if
9697 the symbol didn't match in the first place.
9698 * symtab.h (completion_list_add_name): Return bool.
9699
9700 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9701
9702 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9703 type::field.
9704
9705 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9706
9707 GDB 9.2 released.
9708
9709 2020-05-23 Tom Tromey <tom@tromey.com>
9710
9711 * NEWS: Add entry for completion styling.
9712 * completer.c (_rl_completion_prefix_display_length): Move
9713 declaration earlier.
9714 (gdb_fnprint): Use completion_style.
9715 (gdb_display_match_list_1): Likewise.
9716 * cli/cli-style.c (completion_prefix_style)
9717 (completion_difference_style, completion_suffix_style): New
9718 globals.
9719 (_initialize_cli_style): Register new globals.
9720 * cli/cli-style.h (completion_prefix_style)
9721 (completion_difference_style, completion_suffix_style): Declare.
9722
9723 2020-05-23 Pedro Alves <palves@redhat.com>
9724
9725 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9726 (parse_escape): Use ISDIGIT instead of isdigit.
9727 (puts_debug): Use gdb_isprint instead of isprint.
9728 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9729 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9730 ISSPACE instead of isspace.
9731 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9732 instead of isspace.
9733 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9734 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9735 instead of isxdigit and ISDIGIT instead of isdigit.
9736
9737 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * gdbtypes.h (struct type) <field>: New method.
9740 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9741 or type::field.
9742
9743 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9746 (TYPE_FIELDS): Use type::fields. Change all call sites that
9747 modify the propery to use type::set_fields instead.
9748
9749 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9752 type::num_fields instead.
9753
9754 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9757 methods.
9758 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9759 that modify the number of fields to use type::set_num_fields
9760 instead.
9761
9762 2020-05-22 Tom Tromey <tromey@adacore.com>
9763
9764 * compile/compile-object-load.h (munmap_list_free): Don't
9765 declare.
9766
9767 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9768
9769 * annotate.c (annotate_source_line): Update return type, add call
9770 to update current symtab and line.
9771 * annotate.h (annotate_source_line): Update return type, and
9772 extend header comment.
9773 * source.c (info_line_command): Check annotation_level before
9774 calling annotate_source_line.
9775 * stack.c (print_frame_info): If calling annotate_source_line
9776 returns true, then don't print any other source line information.
9777
9778 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9781
9782 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * coffread.c (patch_type): Remove NULL check before xfree.
9785 * corefile.c (set_gnutarget): Likewise.
9786 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9787 * exec.c (build_section_table): Likewise.
9788 * remote.c (remote_target::pass_signals): Likewise.
9789 * utils.c (n_spaces): Likewise.
9790 * cli/cli-script.c (document_command): Likewise.
9791 * i386-windows-tdep.c (core_process_module_section): Likewise.
9792 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9793
9794 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * symfile.c (reread_symbols): Clear objfile's section_offsets
9797 vector and section indices, re-compute them by calling
9798 sym_offsets.
9799
9800 2020-05-20 Tom Tromey <tromey@adacore.com>
9801
9802 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9803 (desc_one_bound, desc_index_type): Compute field name.
9804
9805 2020-05-20 Tom de Vries <tdevries@suse.de>
9806
9807 PR symtab/25833
9808 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9809
9810 2020-05-20 Alan Modra <amodra@gmail.com>
9811
9812 PR 25993
9813 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9814 bfd_set_filename.
9815 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9816 passed to bfd_set_filename.
9817 * symfile-mem.c (add_vsyscall_page): Likewise for string
9818 passed to symbol_file_add_from_memory.
9819 (symbol_file_add_from_memory): Make name param a const char* and
9820 don't strdup.
9821
9822 2020-05-20 Alan Modra <amodra@gmail.com>
9823
9824 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9825 rather than accessing bfd->filename directly.
9826 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9827 and use bfd_section_name.
9828 * dwarf2/frame.c (decode_frame_entry): Likewise.
9829 * exec.c (exec_set_section_address): Likewise.
9830 * solib-aix.c (solib_aix_bfd_open): Likewise.
9831 * stap-probe.c (get_stap_base_address): Likewise.
9832 * symfile.c (reread_symbols): Likewise.
9833
9834 2020-05-19 Tom Tromey <tromey@adacore.com>
9835
9836 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9837
9838 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9841
9842 2020-05-19 Pedro Alves <palves@redhat.com>
9843
9844 * NEWS (set exec-file-mismatch): Adjust entry.
9845 * exec.c: Include "build-id.h".
9846 (validate_exec_file): Try to match build IDs instead of filenames.
9847 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9848 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9849 and pass down 'warn_if_slow'.
9850 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9851 gdb_bfd_open_closure to pass it down.
9852 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9853
9854 2020-05-19 Pedro Alves <palves@redhat.com>
9855
9856 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9857 * target.c (target_fileio_open_1): Rename to target_fileio_open
9858 and make extern. Use bool.
9859 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9860 (target_fileio_read_alloc_1): Adjust.
9861 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9862 (target_fileio_open_warn_if_slow): Delete declaration.
9863
9864 2020-05-19 Pedro Alves <palves@redhat.com>
9865
9866 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9867 Adjust all callers.
9868
9869 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9870
9871 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9872 whether disp is negative.
9873
9874 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9875
9876 * symfile.h (struct symfile_segment_data)
9877 <~symfile_segment_data>: Remove.
9878 <segment_info>: Change to std::vector.
9879 * symfile.c (default_symfile_segments): Update.
9880 * elfread.c (elf_symfile_segments): Update.
9881
9882 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9885 <segments>: New.
9886 <segment_bases, segment_sizes>: Remove.
9887 * symfile.c (default_symfile_segments): Update.
9888 * elfread.c (elf_symfile_segments): Update.
9889 * remote.c (remote_target::get_offsets): Update.
9890 * solib-target.c (solib_target_relocate_section_addresses):
9891 Update.
9892
9893 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * symfile.h (struct symfile_segment_data): Initialize fields.
9896 <~symfile_segment_data>: Add.
9897 (symfile_segment_data_up): New.
9898 (struct sym_fns) <sym_segments>: Return a
9899 symfile_segment_data_up.
9900 (default_symfile_segments): Return a symfile_segment_data_up.
9901 (free_symfile_segment_data): Remove.
9902 (get_symfile_segment_data): Return a symfile_segment_data_up.
9903 * symfile.c (default_symfile_segments): Likewise.
9904 (get_symfile_segment_data): Likewise.
9905 (free_symfile_segment_data): Remove.
9906 (symfile_find_segment_sections): Update.
9907 * elfread.c (elf_symfile_segments): Return a
9908 symfile_segment_data_up.
9909 * remote.c (remote_target::get_offsets): Update.
9910 * solib-target.c (solib_target_relocate_section_addresses):
9911 Update.
9912 * symfile-debug.c (debug_sym_segments): Return a
9913 symfile_segment_data_up.
9914
9915 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9916
9917 PR build/25981
9918 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9919 Hardcode register numbers.
9920
9921 PR build/25981
9922 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9923 procfs_find_LDT_entry): Remove.
9924 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9925 procfs_find_LDT_entry): Remove.
9926 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9927 Remove.
9928
9929 2020-05-17 Pedro Alves <palves@redhat.com>
9930 Andrew Burgess <andrew.burgess@embecosm.com>
9931 Keno Fischer <keno@juliacomputing.com>
9932
9933 PR gdb/25741
9934 * breakpoint.c (build_target_condition_list): Update comments.
9935 (build_target_command_list): Update comments and skip matching
9936 locations.
9937 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9938 a separate function. Simplify "set breakpoint auto-hw off"
9939 handling.
9940 (insert_breakpoints): Update comment.
9941 (tracepoint_locations_match): New parameter. For breakpoints,
9942 compare location types too, if the caller wants to.
9943 (handle_automatic_hardware_breakpoints): New functions.
9944 (bp_location_is_less_than): Also sort by location type and
9945 hardware breakpoint length.
9946 (update_global_location_list): Handle "set breakpoint auto-hw on"
9947 here.
9948 (update_breakpoint_locations): Ask breakpoint_locations_match to
9949 ignore location types.
9950
9951 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9954 type::name instead.
9955
9956 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * gdbtypes.h (struct type) <name, set_name>: New methods.
9959 (TYPE_CODE): Use type::name. Change all call sites used to set
9960 the name to use type::set_name instead.
9961
9962 2020-05-16 Tom Tromey <tom@tromey.com>
9963
9964 * top.c (quit_force): Update.
9965 * infrun.c (handle_no_resumed): Update.
9966 * top.h (all_uis): New function.
9967 (ALL_UIS): Remove.
9968
9969 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9970
9971 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9972
9973 2020-05-16 Pedro Alves <palves@redhat.com>
9974
9975 * ia64-linux-nat.c
9976 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9977 Declare method.
9978 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9979
9980 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9981
9982 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9983 (sparc64_adi_info): Likewise.
9984
9985 2020-05-15 Tom Tromey <tom@tromey.com>
9986
9987 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9988 block_objfile.
9989 (lookup_objfile_from_block): Remove.
9990 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9991 (lookup_global_symbol): Use block_objfile.
9992 * symtab.h (lookup_objfile_from_block): Don't declare.
9993 * printcmd.c (clear_dangling_display_expressions): Use
9994 block_objfile.
9995 * parse.c (operator_check_standard): Use block_objfile.
9996
9997 2020-05-15 Tom Tromey <tom@tromey.com>
9998
9999 * language.c (language_alloc_type_symbol): Set
10000 SYMBOL_SECTION.
10001 * symtab.c (initialize_objfile_symbol): Remove.
10002 (allocate_symbol): Remove.
10003 (allocate_template_symbol): Remove.
10004 * dwarf2/read.c (fixup_go_packaging): Use "new".
10005 (new_symbol): Use "new".
10006 (read_variable): Don't call initialize_objfile_symbol. Use
10007 "new".
10008 (read_func_scope): Use "new".
10009 * xcoffread.c (process_xcoff_symbol): Don't call
10010 initialize_objfile_symbol.
10011 (SYMBOL_DUP): Remove.
10012 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10013 "new".
10014 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10015 (allocate_template_symbol): Don't declare.
10016 (struct symbol): Add copy constructor. Change defaults.
10017 * jit.c (finalize_symtab): Use "new".
10018 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10019 Use "new".
10020 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10021 (common_block_end): Use "new".
10022 * mdebugread.c (parse_symbol): Use "new".
10023 (new_symbol): Likewise.
10024
10025 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10026
10027 * NEWS: Mention changes to help and apropos.
10028
10029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10030
10031 * command.h (enum command_class): Improve comments, document
10032 that class_alias is for user-defined aliases, give the class
10033 name for each class, remove unused class_xdb.
10034 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10035 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10036 by a precise class.
10037 * infcmd.c (_initialize_infcmd): Likewise.
10038 * reverse.c (_initialize_reverse): Likewise.
10039 * stack.c (_initialize_stack): Likewise.
10040 * symfile.c (_initialize_symfile): Likewise.
10041 * tracepoint.c (_initialize_tracepoint): Likewise.
10042
10043 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10044
10045 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10046 when their aliased command is traversed.
10047 (help_cmd): Add fput_command_names_styled call to
10048 output command name and aliases when command has an alias.
10049
10050 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10051
10052 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10053 * cli/cli-decode.c (help_cmd_list): Declare as static,
10054 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10055 a command together with the command.
10056 (fput_command_name_styled, fput_command_names_styled): New functions.
10057 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10058 fput_command_name_styled.
10059 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10060 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10061
10062 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10063
10064 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10065 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10066 * command.h (cmd_show_list): Likewise.
10067 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10068 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10069
10070 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10071
10072 * unittests/command-def-selftests.c (traverse_command_structure):
10073 Verify all commands of a list have the same prefix command and
10074 that only the top cmdlist commands have a null prefix.
10075
10076 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10077
10078 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10079 as prefix, not one of its aliases.
10080 (set_cmd_prefix): Remove.
10081 (do_add_cmd): Centralize the setting of the prefix of a command, when
10082 command is defined after its full chain of prefix commands.
10083 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10084 (add_setshow_cmd_full): Likewise.
10085 (update_prefix_field_of_prefixed_commands): New function.
10086 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10087 update_prefix_field_of_prefixed_commands.
10088 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10089 addresses of remote_set_cmdlist and remote_show_cmdlist given
10090 as argument, not the address of an argument.
10091 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10092 * gdb/remote.c (_initialize_remote): Likewise.
10093
10094 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10095
10096 * cli/cli-cmds.c (alias_command): Check for an existing alias
10097 using lookup_cmd_composition, as valid_command_p is too strict
10098 and forbids aliases that are the prefix of an existing alias
10099 or command.
10100 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10101 command is properly recognised as a valid command.
10102
10103 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10104
10105 * unittests/help-doc-selftests.c: Rename to
10106 unittests/command-def-selftests.c
10107 * unittests/command-def-selftests.c (help_doc_tests): Update some
10108 comments.
10109 (command_structure_tests, traverse_command_structure): New namespace
10110 and function.
10111 (command_structure_invariants_tests): New function.
10112 (_initialize_command_def_selftests) Renamed from
10113 _initialize_help_doc_selftests, register command_structure_invariants
10114 selftest.
10115
10116 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10117
10118 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10119 an alias of 'show'.
10120
10121 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10122
10123 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10124 ada_is_fixed_point_type. Update all callers.
10125 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10126 all callers.
10127 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10128 Update all callers.
10129 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10130 print_fixed_point_type. Update all callers.
10131 * ada-valprint.c (ada_value_print_num): Replace call to
10132 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10133
10134 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10135
10136 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10137 processors.
10138 (cpu_supports_bts): Add CV_AMD case.
10139
10140 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10141 Simon Marchi <simon.marchi@efficios.com>
10142
10143 * infrun.c (stop_all_threads): Collect multiple wait events at
10144 each pass.
10145
10146 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10147
10148 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10149 type::code instead.
10150
10151 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10152
10153 * gdbtypes.h (struct type) <code, set_code>: New methods.
10154 (TYPE_CODE): Use type::code. Change all call sites used to set
10155 the code to use type::set_code instead.
10156
10157 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10158 Tom de Vries <tdevries@suse.de>
10159 Pedro Alves <palves@redhat.com>
10160
10161 PR threads/25478
10162 * infrun.c (stop_all_threads): Do NOT ignore
10163 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10164 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10165 received.
10166 (handle_no_resumed): Remove code handling a live inferior with no
10167 threads.
10168 * remote.c (has_single_non_exited_thread): New.
10169 (remote_target::update_thread_list): Do not delete a thread if is
10170 the last thread of the process.
10171 * thread.c (thread_select): Call delete_exited_threads instead of
10172 prune_threads.
10173
10174 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10175
10176 * infrun.c (stop_all_threads): Enable/disable thread events of all
10177 targets. Move a debug message denoting the end of the function
10178 into the SCOPED_EXIT block.
10179
10180 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10181
10182 * process-stratum-target.h: Include <set>.
10183 (all_non_exited_process_targets, switch_to_target_no_thread): New
10184 function declarations.
10185 * process-stratum-target.c (all_non_exited_process_targets)
10186 (switch_to_target_no_thread): New function implementations.
10187
10188 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10189
10190 * infrun.c (handle_inferior_event): Extract out a piece of code
10191 into...
10192 (mark_non_executing_threads): ...this new function.
10193
10194 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10195
10196 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10197 use.
10198
10199 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10200
10201 * regcache.c (regcache_read_pc_protected): New function
10202 implementation that returns 0 if the PC cannot read via
10203 'regcache_read_pc'.
10204 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10205 instead of 'regcache_read_pc'.
10206 (keep_going_pass_signal): Ditto.
10207
10208 2020-05-13 Tom Tromey <tromey@adacore.com>
10209
10210 * ada-lang.c (align_value): Remove.
10211 (ada_template_to_fixed_record_type_1): Use align_up.
10212
10213 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10214
10215 * async-event.c: Update the copyright year.
10216 * async-event.h: Update the copyright year.
10217
10218 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10219
10220 * objfiles.h (is_addr_in_objfile,
10221 shared_objfile_contains_address_p): Return bool.
10222 * objfile.c (is_addr_in_objfile,
10223 shared_objfile_contains_address_p): Return bool.
10224
10225 2020-05-11 Tom Tromey <tromey@adacore.com>
10226
10227 * cli/cli-cmds.c (info_command): Restore.
10228 (_initialize_cli_cmds): Use add_prefix_command for "info".
10229 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10230
10231 2020-05-11 Tom Tromey <tromey@adacore.com>
10232
10233 * ada-lang.c (ada_value_primitive_field): Now public.
10234 * ada-lang.h (ada_value_primitive_field): Declare.
10235 * ada-valprint.c (print_field_values): Use
10236 ada_value_primitive_field for wrapper fields.
10237
10238 2020-05-11 Tom de Vries <tdevries@suse.de>
10239
10240 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10241 MODULE_DOMAIN.
10242
10243 2020-05-11 Tom de Vries <tdevries@suse.de>
10244
10245 PR symtab/25941
10246 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10247 with length 0, if not gdb-produced.
10248 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10249
10250 2020-05-09 Tom de Vries <tdevries@suse.de>
10251
10252 PR gdb/25955
10253 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10254 calculation.
10255
10256 2020-05-09 Tom Tromey <tom@tromey.com>
10257
10258 * top.c (server_command): Now bool.
10259 * top.h (server_command): Now bool.
10260
10261 2020-05-08 Tom Tromey <tromey@adacore.com>
10262
10263 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10264 already being processed.
10265
10266 2020-05-08 Tom Tromey <tom@tromey.com>
10267
10268 * printcmd.c (struct display) <next>: Remove.
10269 <display>: New constructor.
10270 <exp_string>: Now a std::string.
10271 <enabled_p>: Now a bool.
10272 (display_number): Move definition earlier.
10273 (displays): Rename from display_chain. Now a std::vector.
10274 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10275 (display_command): Update.
10276 (do_one_display, disable_display)
10277 (enable_disable_display_command, do_enable_disable_display):
10278 Update.
10279 (free_display): Remove.
10280 (clear_displays): Rewrite.
10281 (delete_display): Update.
10282 (map_display_numbers): Use function_view. Remove "data"
10283 parameter. Update.
10284 (do_delete_display): Remove.
10285 (undisplay_command): Update.
10286 (do_one_display, do_displays, disable_display)
10287 (info_display_command): Update.
10288 (do_enable_disable_display): Remove.
10289 (enable_disable_display_command)
10290 (clear_dangling_display_expressions): Update.
10291
10292 2020-05-08 Tom Tromey <tom@tromey.com>
10293
10294 * symtab.c (set_symbol_cache_size)
10295 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10296 (maintenance_print_symbol_cache_statistics): Update.
10297 * symmisc.c (print_symbol_bcache_statistics)
10298 (print_objfile_statistics, maintenance_print_objfiles)
10299 (maintenance_info_symtabs, maintenance_check_symtabs)
10300 (maintenance_expand_symtabs, maintenance_info_line_tables):
10301 Update.
10302 * symfile-debug.c (set_debug_symfile): Update.
10303 * source.c (forget_cached_source_info): Update.
10304 * python/python.c (gdbpy_progspaces): Update.
10305 * psymtab.c (maintenance_info_psymtabs): Update.
10306 * probe.c (parse_probes): Update.
10307 * linespec.c (iterate_over_all_matching_symtabs)
10308 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10309 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10310 * exec.c (exec_target::close): Update.
10311 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10312 * breakpoint.c (print_one_breakpoint_location)
10313 (create_longjmp_master_breakpoint)
10314 (create_std_terminate_master_breakpoint): Update.
10315 * progspace.c (program_spaces): Now a std::vector.
10316 (maybe_new_address_space): Update.
10317 (add_program_space): Remove.
10318 (program_space::program_space): Update.
10319 (remove_program_space): Update.
10320 (number_of_program_spaces): Remove.
10321 (print_program_space, update_address_spaces): Update.
10322 * progspace.h (program_spaces): Change type.
10323 (ALL_PSPACES): Remove.
10324 (number_of_program_spaces): Don't declare.
10325 (struct program_space) <next>: Remove.
10326
10327 2020-05-08 Tom Tromey <tom@tromey.com>
10328
10329 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10330 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10331 (enable_break): Update.
10332 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10333 (frv_fdpic_find_canonical_descriptor): Update.
10334 (frv_fetch_objfile_link_map): Update.
10335 * progspace.c (program_space::free_all_objfiles): Update.
10336 (program_space::solibs): New method.
10337 * progspace.h (struct program_space) <solibs>: New method.
10338 * solist.h (master_so_list): Don't declare.
10339 (ALL_SO_LIBS): Remove.
10340 * solib.h (so_list_head): Remove.
10341 (update_solib_list): Update comment.
10342 * solib.c (master_so_list): Remove.
10343 (solib_used, update_solib_list, solib_add)
10344 (info_sharedlibrary_command, clear_solib)
10345 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10346
10347 2020-05-08 Tom Tromey <tom@tromey.com>
10348
10349 * extension.c (extension_languages): Now a std::array.
10350 (ALL_EXTENSION_LANGUAGES): Remove.
10351 (get_ext_lang_defn, get_ext_lang_of_file)
10352 (eval_ext_lang_from_control_command): Update.
10353 (finish_ext_lang_initialization)
10354 (auto_load_ext_lang_scripts_for_objfile)
10355 (ext_lang_type_printers::ext_lang_type_printers)
10356 (apply_ext_lang_type_printers)
10357 (ext_lang_type_printers::~ext_lang_type_printers)
10358 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10359 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10360 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10361 (get_matching_xmethod_workers, ext_lang_colorize)
10362 (ext_lang_before_prompt): Update.
10363 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10364
10365 2020-05-08 Tom Tromey <tom@tromey.com>
10366
10367 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10368 overload.
10369 <swap_string, m_string>: Remove.
10370 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10371 Update.
10372 * stabsread.c (define_symbol, read_type): Update.
10373 * linespec.c (find_linespec_symbols): Update.
10374 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10375 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10376 * dbxread.c (read_dbx_symtab): Update.
10377 * cp-support.h (cp_canonicalize_string_full)
10378 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10379 Return unique_xmalloc_ptr.
10380 * cp-support.c (inspect_type): Update.
10381 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10382 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10383 Likewise.
10384 * c-typeprint.c (print_name_maybe_canonical): Update.
10385 * break-catch-throw.c (check_status_exception_catchpoint):
10386 Update.
10387
10388 2020-05-08 Tom de Vries <tdevries@suse.de>
10389
10390 * infrun.c (follow_fork): Copy current_line and current_symtab to
10391 child thread.
10392
10393 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10394
10395 * async-event.c (struct async_signal_handler, struct
10396 async_event_handler): Reformat, remove typedef.
10397
10398 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10401 access thistype->main_type->dyn_prop_list directly.
10402
10403 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10404
10405 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10406 (remove_dyn_prop): Remove. Update all users to use
10407 type::remove_dyn_prop.
10408 * gdbtypes.c (remove_dyn_prop): Rename to...
10409 (type::remove_dyn_prop): ... this.
10410
10411 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10412
10413 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10414 (add_dyn_prop): Remove. Update all users to use
10415 type::add_dyn_prop.
10416 * gdbtypes.c (add_dyn_prop): Rename to...
10417 (type::add_dyn_prop): ... this.
10418
10419 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10420
10421 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10422 (get_dyn_prop): Remove. Update all users to use
10423 type::dyn_prop.
10424 * gdbtypes.c (get_dyn_prop): Rename to...
10425 (type::dyn_prop): ... this.
10426
10427 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10430
10431 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10434 instruction, skip it if it's there.
10435
10436 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10437
10438 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10439
10440 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10443 * gdbtypes.c (recursive_dump_type): Remove use of
10444 TYPE_INCOMPLETE.
10445
10446 2020-05-03 Tom Tromey <tom@tromey.com>
10447
10448 * breakpoint.c (catch_command, tcatch_command): Remove.
10449 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10452 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10453 Remove.
10454 (add_internal_problem_command): Use add_basic_prefix_cmd,
10455 add_show_prefix_cmd.
10456 * mips-tdep.c (set_mipsfpu_command): Remove.
10457 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10458 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10459 (_initialize_index_cache): Use add_basic_prefix_cmd.
10460 * memattr.c (dummy_cmd): Remove.
10461 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10462 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10463 (_initialize_tui_win): Use add_basic_prefix_cmd,
10464 add_show_prefix_cmd.
10465 * cli/cli-logging.c (set_logging_command): Remove.
10466 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10467 add_show_prefix_cmd.
10468 (show_logging_command): Remove.
10469 * target.c (target_command): Remove.
10470 (add_target): Use add_basic_prefix_cmd.
10471
10472 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10473
10474 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10475
10476 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10477
10478 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10479 info_command.
10480
10481 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10482
10483 * nbsd-nat.c (nbsd_enable_proc_events)
10484 (nbsd_nat_target::post_startup_inferior): Add.
10485 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10486 (nbsd_nat_target::update_thread_list): Rewrite.
10487 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10488 "PTRACE_LWP_CREATE".
10489 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10490
10491 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10492
10493 * stack.c (_initialize_stack): Remove duplicated creation
10494 of "frame" command and "f" alias.
10495
10496 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10497
10498 PR gdb/18706
10499 * gdbtypes.c (check_typedef): Calculate size of array of
10500 stubbed type.
10501
10502 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10503
10504 PR gdb/15559
10505 * i386-tdep.c (i386_push_dummy_call): Call
10506 i386_thiscall_push_dummy_call.
10507 (i386_thiscall_push_dummy_call): New function.
10508 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10509 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10510 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10511
10512 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * gdbarch.sh (do_read): Add shellcheck disable directive for
10515 warning SC2162.
10516
10517 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10518
10519 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10520 "referenced but not assigned" warning.
10521
10522 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10523
10524 * gdbarch.sh: Remove code that sets fallbackdefault.
10525
10526 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10527
10528 * gdbarch.sh: Use shell operators && and || instead of
10529 -a and -o.
10530
10531 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * gdbarch.sh: Use $(...) instead of `...`.
10534
10535 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10536
10537 * gdbarch.sh: Use double quotes around variables.
10538
10539 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * gdbarch.sh: Use %s with printf, instead of variables in the
10542 format string.
10543
10544 2020-04-29 Tom Tromey <tromey@adacore.com>
10545
10546 PR ada/25875:
10547 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10548 type fields here.
10549 (read_enumeration_type): Call
10550 update_enumeration_type_from_children later. Update comments.
10551 (process_enumeration_scope): Don't create type fields.
10552
10553 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10554
10555 * nbsd-tdep.c: Include "xml-syscall.h".
10556 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10557
10558 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10559
10560 * nbsd-nat.c: Include "sys/wait.h".
10561 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10562 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10563 (nbsd_nat_target::remove_exec_catchpoint)
10564 (nbsd_nat_target::set_syscall_catchpoint): Add.
10565 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10566 (nbsd_nat_target::insert_exec_catchpoint)
10567 (nbsd_nat_target::remove_exec_catchpoint)
10568 (nbsd_nat_target::set_syscall_catchpoint): Add.
10569 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10570 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10571 `nbsd_get_syscall_number'.
10572
10573 2020-04-29 Tom Tromey <tom@tromey.com>
10574
10575 * stack.c (print_block_frame_labels): Remove.
10576
10577 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
10578
10579 PR gdb/17320
10580 * ada-valprint.c (val_print_packed_array_elements): Move array
10581 end bracket to new line.
10582 (ada_val_print_string): Remove extra spaces before first array
10583 element.
10584 * c-valprint.c (c_value_print_array): Likewise.
10585 * m2-valprint.c (m2_print_array_contents): Likewise.
10586 (m2_value_print_inner): Likewise.
10587 * p-valprint.c (pascal_value_print_inner): Likewise.
10588 * valprint.c (generic_val_print_array): Likewise.
10589 (value_print_array_elements): Move first array element and array
10590 end bracket to new line.
10591
10592 2020-04-29 Tom de Vries <tdevries@suse.de>
10593
10594 PR symtab/25889
10595 * linespec.c (find_method): Fix ix calculation.
10596
10597 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10598
10599 * syscalls/update-netbsd.sh: New file.
10600 * syscalls/netbsd.xml: Regenerate.
10601 * data-directory/Makefile.in: Register `netbsd.xml' in
10602 `SYSCALLS_FILES'.
10603
10604 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10605
10606 * syscalls/update-freebsd.sh: Add double quotes.
10607
10608 2020-04-28 Tom Tromey <tom@tromey.com>
10609
10610 * NEWS: Update.
10611 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10612 (cmdpy_init): Allow class_tui.
10613
10614 2020-04-28 Mark Williams <mark@myosotissp.com>
10615
10616 PR gdb/24480
10617 * dwarf2read.c: Add missing assingments to list_in_scope when
10618 start_symtab was already called.
10619
10620 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10621
10622 PR gdb/25881
10623 * dwarf2/read.c (offset_map_type): Use
10624 gdb:hash_enum<sect_offset> as hash function.
10625
10626 2020-04-28 Tom de Vries <tdevries@suse.de>
10627
10628 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10629 with DW_AT_signature.
10630
10631 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10632
10633 * configure.ac: Remove check for fs_base/gs_base in
10634 user_regs_struct.
10635 * configure: Re-generate.
10636 * config.in: Re-generate.
10637 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10638 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10639 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10640
10641 2020-04-27 Luis Machado <luis.machado@linaro.org>
10642
10643 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10644 problematic inline frame unwinding situation.
10645 * frame.c (frame_id_computed_p): New function.
10646 * frame.h (frame_id_computed_p): New prototype.
10647
10648 2020-04-26 Tom Tromey <tom@tromey.com>
10649
10650 * command.h (enum command_class) <class_pseudo>: Remove.
10651
10652 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10653
10654 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10655 and whitespace.
10656
10657 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10658
10659 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10660 `PT_GET_PROCESS_STATE' block.
10661
10662 2020-04-24 Tom Tromey <tom@tromey.com>
10663
10664 * symtab.h (symbol_get_demangled_name): Don't declare.
10665 * symtab.c (symbol_get_demangled_name): Remove.
10666 (general_symbol_info::natural_name)
10667 (general_symbol_info::demangled_name): Update.
10668
10669 2020-04-24 Tom Tromey <tom@tromey.com>
10670
10671 PR rust/25025:
10672 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10673
10674 2020-04-24 Tom Tromey <tom@tromey.com>
10675
10676 PR symtab/12707:
10677 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10678 exists.
10679 (new_symbol): Likewise.
10680 * compile/compile-object-load.c (get_out_value_type): Use
10681 symbol_matches_search_name.
10682
10683 2020-04-24 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2/read.c (add_partial_symbol): Do not call
10686 compute_and_set_names.
10687
10688 2020-04-24 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10691 overload.
10692
10693 2020-04-24 Tom Tromey <tom@tromey.com>
10694
10695 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10696 (add_psymbol_to_list): New overload. Make old overload call new
10697 one.
10698 * psympriv.h (add_psymbol_to_list): New overload.
10699
10700 2020-04-24 Tom Tromey <tom@tromey.com>
10701
10702 * dwarf2/read.c (partial_die_info::read) <case
10703 DW_AT_linkage_name>: Use value_as_string.
10704 (dwarf2_string_attr): Use value_as_string.
10705 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10706 method.
10707 * dwarf2/attribute.c (attribute::value_as_string): New method.
10708
10709 2020-04-24 Tom Tromey <tom@tromey.com>
10710
10711 * symtab.c (general_symbol_info::natural_name)
10712 (general_symbol_info::demangled_name): Check for language_rust.
10713
10714 2020-04-24 Tom Tromey <tom@tromey.com>
10715
10716 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10717 (dwarf2_physname): ... from here.
10718 (partial_die_info::read): Add Rust "{" hack.
10719
10720 2020-04-24 Tom Tromey <tom@tromey.com>
10721
10722 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10723 method.
10724 (symbol_set_demangled_name): Don't declare.
10725 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10726 symbol_set_demangled_name.
10727 (general_symbol_info::set_language)
10728 (general_symbol_info::compute_and_set_names): Update.
10729 * minsyms.c (minimal_symbol_reader::install): Update.
10730 * dwarf2/read.c (new_symbol): Update.
10731
10732 2020-04-24 Tom Tromey <tromey@adacore.com>
10733
10734 PR python/23662:
10735 * python/py-type.c (convert_field): Handle
10736 FIELD_LOC_KIND_DWARF_BLOCK.
10737 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10738 (typy_get_dynamic): Nw function.
10739 (type_object_getset): Add "dynamic".
10740 * NEWS: Add entry.
10741
10742 2020-04-24 Tom Tromey <tromey@adacore.com>
10743
10744 * ada-typeprint.c (print_choices, print_variant_part)
10745 (print_record_field_types_dynamic): New functions.
10746 (print_record_field_types): Use print_record_field_types_dynamic.
10747
10748 2020-04-24 Tom Tromey <tromey@adacore.com>
10749
10750 * dwarf2/read.c (handle_data_member_location): New overload.
10751 (dwarf2_add_field): Use it.
10752 (decode_locdesc): Add "computed" parameter. Update comment.
10753 * gdbtypes.c (is_dynamic_type_internal): Also look for
10754 FIELD_LOC_KIND_DWARF_BLOCK.
10755 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10756 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10757 virtual base classes.
10758 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10759 FIELD_LOC_KIND_DWARF_BLOCK.
10760
10761 2020-04-24 Tom Tromey <tromey@adacore.com>
10762
10763 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10764 * gdbtypes.c (is_dynamic_type_internal): Check
10765 TYPE_HAS_DYNAMIC_LENGTH.
10766 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10767 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10768 New macros.
10769 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10770 constant.
10771
10772 2020-04-24 Tom Tromey <tromey@adacore.com>
10773
10774 * dwarf2/read.c (struct variant_field): Rewrite.
10775 (struct variant_part_builder): New.
10776 (struct nextfield): Remove "variant" field. Add "offset".
10777 (struct field_info): Add "current_variant_part" and
10778 "variant_parts".
10779 (alloc_discriminant_info): Remove.
10780 (alloc_rust_variant): New function.
10781 (quirk_rust_enum): Update.
10782 (dwarf2_add_field): Set "offset" member. Don't handle
10783 DW_TAG_variant_part.
10784 (offset_map_type): New typedef.
10785 (convert_variant_range, create_one_variant)
10786 (create_one_variant_part, create_variant_parts)
10787 (add_variant_property): New functions.
10788 (dwarf2_attach_fields_to_type): Call add_variant_property.
10789 (read_structure_type): Don't handle DW_TAG_variant_part.
10790 (handle_variant_part, handle_variant): New functions.
10791 (handle_struct_member_die): Use them.
10792 (process_structure_scope): Don't handle variant parts.
10793 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10794 (struct discriminant_info): Remove.
10795 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10796 (struct main_type) <flag_discriminated_union>: Remove.
10797 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10798 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10799 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10800 Update.
10801 * valops.c (value_union_variant): Remove.
10802 * value.h (value_union_variant): Don't declare.
10803
10804 2020-04-24 Tom Tromey <tromey@adacore.com>
10805
10806 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10807 (ada_value_primitive_packed_val): Update.
10808 * ada-valprint.c (ada_value_print_1): Update.
10809 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10810 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10811 just an address. Use evaluate_for_locexpr_baton.
10812 (dwarf2_evaluate_property): Update.
10813 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10814 array_view.
10815 * findvar.c (default_read_var_value): Update.
10816 * gdbtypes.c (compute_variant_fields_inner)
10817 (resolve_dynamic_type_internal): Update.
10818 (resolve_dynamic_type): Change type of valaddr parameter.
10819 * gdbtypes.h (resolve_dynamic_type): Update.
10820 * valarith.c (value_subscripted_rvalue): Update.
10821 * value.c (value_from_contents_and_address): Update.
10822
10823 2020-04-24 Tom Tromey <tromey@adacore.com>
10824
10825 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10826 "push_initial_value" parameter.
10827 (dwarf2_evaluate_property): Likewise.
10828 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10829
10830 2020-04-24 Tom Tromey <tromey@adacore.com>
10831
10832 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10833 (variant::matches, compute_variant_fields_recurse)
10834 (compute_variant_fields_inner, compute_variant_fields): New
10835 functions.
10836 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10837 Use resolved_type after type is made.
10838 (operator==): Add new cases.
10839 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10840 (struct discriminant_range, struct variant, struct variant_part):
10841 New.
10842 (union dynamic_prop_data) <variant_parts, original_type>: New
10843 members.
10844 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10845 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10846 constants.
10847 * value.c (unpack_bits_as_long): Now public.
10848 * value.h (unpack_bits_as_long): Declare.
10849
10850 2020-04-24 Tom Tromey <tromey@adacore.com>
10851
10852 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10853 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10854
10855 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10856
10857 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10858
10859 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10860
10861 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10862 (remove_fork_catchpoint, post_startup_inferior)
10863 (post_attach): Move...
10864 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10865 (remove_fork_catchpoint, post_startup_inferior)
10866 (post_attach): ...here.
10867 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10868 (remove_fork_catchpoint, post_startup_inferior)
10869 (post_attach): Move...
10870 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10871 (remove_fork_catchpoint, post_startup_inferior)
10872 (post_attach): ...here.
10873
10874 2020-04-24 Tom Tromey <tromey@adacore.com>
10875
10876 * nat/windows-nat.h (struct windows_thread_info)
10877 <pc_adjusted>: New member.
10878 * windows-nat.c (windows_fetch_one_register): Check
10879 pc_adjusted.
10880 (windows_nat_target::get_windows_debug_event)
10881 (windows_nat_target::wait): Set pc_adjusted.
10882
10883 2020-04-24 Tom de Vries <tdevries@suse.de>
10884
10885 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10886 Run gdb-add-index inside temp dir.
10887
10888 2020-04-23 Tom Tromey <tromey@adacore.com>
10889
10890 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10891 in loop.
10892
10893 2020-04-23 Luis Machado <luis.machado@linaro.org>
10894
10895 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10896 get_frame_register instead of gdbarch_unwind_pc.
10897
10898 2020-04-23 Tom de Vries <tdevries@suse.de>
10899
10900 * symtab.c (lookup_global_symbol): Prefer def over decl.
10901
10902 2020-04-23 Tom de Vries <tdevries@suse.de>
10903
10904 PR symtab/25807
10905 * block.c (best_symbol, better_symbol): Promote to external.
10906 * block.h (best_symbol, better_symbol): Declare.
10907 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10908 decl.
10909
10910 2020-04-23 Tom Tromey <tromey@adacore.com>
10911
10912 PR ada/25837:
10913 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10914 "const char *", not a "const std::string &".
10915 <name_and_matcher::operator==>: Update.
10916 * unittests/lookup_name_info-selftests.c: Change type of
10917 "result".
10918
10919 2020-04-23 Tom Tromey <tom@tromey.com>
10920
10921 * inferior.h (iterate_over_inferiors): Don't declare.
10922 * inferior.c (iterate_over_inferiors): Remove.
10923 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10924 Remove.
10925 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10926 use iterate_over_inferiors.
10927 (darwin_resume_inferior_it)
10928 (struct resume_inferior_threads_param)
10929 (darwin_resume_inferior_threads_it): Remove.
10930 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10931
10932 2020-04-23 Tom de Vries <tdevries@suse.de>
10933
10934 * blockframe.c (find_pc_partial_function): Use
10935 find_pc_sect_compunit_symtab rather than
10936 objfile->sf->qf->find_pc_sect_compunit_symtab.
10937
10938 2020-04-22 Tom de Vries <tdevries@suse.de>
10939
10940 PR symtab/25764
10941 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10942 in psymtabs.
10943
10944 2020-04-22 Tom de Vries <tdevries@suse.de>
10945
10946 PR symtab/25801
10947 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10948 symtabs.
10949
10950 2020-04-22 Tom de Vries <tdevries@suse.de>
10951
10952 PR symtab/25700
10953 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10954 CU if already created.
10955
10956 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10957
10958 * infrun.c (displaced_step_fixup): Switch to the event_thread
10959 before calling displaced_step_restore, not after.
10960
10961 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10962
10963 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10964 its inferior is not recorded by us.
10965 (record_btrace_target_open): Replace call to
10966 all_non_exited_threads () with call to current_inferior
10967 ()->non_exited_threads ().
10968 (record_btrace_target::stop_recording): Likewise.
10969 (record_btrace_target::close): Likewise.
10970 (record_btrace_target::wait): Likewise.
10971 (record_btrace_target::record_stop_replaying): Likewise.
10972
10973 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10974
10975 * btrace.c (btrace_enable): Throw an error on double enables and
10976 when enabling recording fails.
10977 (btrace_disable): Throw an error if the thread is not recorded.
10978
10979 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10980
10981 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10982 request if we do not have a thread_info.
10983
10984 2020-04-21 Tom de Vries <tdevries@suse.de>
10985
10986 PR gdb/25471
10987 * thread.c
10988 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10989 exception in get_frame_id.
10990
10991 2020-04-20 Tom Tromey <tromey@adacore.com>
10992
10993 * python/python.c (struct gdbpy_event): Mark move constructor as
10994 noexcept.
10995 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10996 constructor as noexcept.
10997 * completer.h (struct completion_result): Mark move constructor as
10998 noexcept.
10999 * completer.c (completion_result::completion_result): Use
11000 initialization style. Don't call reset_match_list.
11001
11002 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11003
11004 * MAINTAINERS (Write After Approval): Add myself.
11005
11006 2020-04-18 Tom Tromey <tom@tromey.com>
11007
11008 * windows-tdep.c (init_w32_command_list)
11009 (w32_prefix_command_valid): Restore.
11010 (_initialize_windows_tdep): Call init_w32_command_list.
11011
11012 2020-04-18 Tom Tromey <tom@tromey.com>
11013
11014 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11015 * value.c (value_fn_field): Update.
11016 * valops.c (find_function_in_inferior)
11017 (value_allocate_space_in_inferior): Update.
11018 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11019 Update.
11020 * tui/tui-source.c (tui_source_window::set_contents): Update.
11021 * symtab.c (lookup_global_or_static_symbol)
11022 (find_function_start_sal_1, skip_prologue_sal)
11023 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11024 * symmisc.c (dump_msymbols, dump_symtab_1)
11025 (maintenance_print_one_line_table): Update.
11026 * symfile.c (init_entry_point_info, section_is_mapped)
11027 (list_overlays_command, simple_read_overlay_table)
11028 (simple_overlay_update_1): Update.
11029 * stap-probe.c (handle_stap_probe): Update.
11030 * stabsread.c (dbx_init_float_type, define_symbol)
11031 (read_one_struct_field, read_enum_type, read_range_type): Update.
11032 * source.c (info_line_command): Update.
11033 * python/python.c (gdbpy_source_objfile_script)
11034 (gdbpy_execute_objfile_script): Update.
11035 * python/py-type.c (save_objfile_types): Update.
11036 * python/py-objfile.c (py_free_objfile): Update.
11037 * python/py-inferior.c (python_new_objfile): Update.
11038 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11039 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11040 (maintenance_check_psymtabs): Update.
11041 * printcmd.c (info_address_command): Update.
11042 * objfiles.h (struct objfile) <arch>: New method, from
11043 get_objfile_arch.
11044 (get_objfile_arch): Don't declare.
11045 * objfiles.c (get_objfile_arch): Remove.
11046 (filter_overlapping_sections): Update.
11047 * minsyms.c (msymbol_is_function): Update.
11048 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11049 (output_nondebug_symbol): Update.
11050 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11051 (mdebug_expand_psymtab): Update.
11052 * machoread.c (macho_add_oso_symfile): Update.
11053 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11054 Update.
11055 * linux-fork.c (checkpoint_command): Update.
11056 * linespec.c (convert_linespec_to_sals): Update.
11057 * jit.c (finalize_symtab): Update.
11058 * infrun.c (insert_exception_resume_from_probe): Update.
11059 * ia64-tdep.c (ia64_find_unwind_table): Update.
11060 * hppa-tdep.c (internalize_unwinds): Update.
11061 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11062 Update.
11063 * gcore.c (call_target_sbrk): Update.
11064 * elfread.c (record_minimal_symbol, elf_symtab_read)
11065 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11066 (elf_gnu_ifunc_resolve_by_got): Update.
11067 * dwarf2/read.c (create_addrmap_from_index)
11068 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11069 (read_debug_names_from_section)
11070 (process_psymtab_comp_unit_reader, add_partial_symbol)
11071 (add_partial_subprogram, process_full_comp_unit)
11072 (read_file_scope, read_func_scope, read_lexical_block_scope)
11073 (read_call_site_scope, dwarf2_ranges_read)
11074 (dwarf2_record_block_ranges, dwarf2_add_field)
11075 (mark_common_block_symbol_computed, read_tag_pointer_type)
11076 (read_tag_string_type, dwarf2_init_float_type)
11077 (dwarf2_init_complex_target_type, read_base_type)
11078 (partial_die_info::read, partial_die_info::read)
11079 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11080 (dwarf2_fetch_die_loc_sect_off): Update.
11081 * dwarf2/loc.c (dwarf2_find_location_expression)
11082 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11083 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11084 (dwarf2_loc_desc_get_symbol_read_needs)
11085 (locexpr_describe_location_piece, locexpr_describe_location_1)
11086 (loclist_describe_location): Update.
11087 * dwarf2/index-write.c (write_debug_names): Update.
11088 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11089 * dtrace-probe.c (dtrace_process_dof): Update.
11090 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11091 (process_one_symbol): Update.
11092 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11093 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11094 (coff_read_enum_type): Update.
11095 * cli/cli-cmds.c (edit_command, list_command): Update.
11096 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11097 * breakpoint.c (create_overlay_event_breakpoint)
11098 (create_longjmp_master_breakpoint)
11099 (create_std_terminate_master_breakpoint)
11100 (create_exception_master_breakpoint, get_sal_arch): Update.
11101 * block.c (block_gdbarch): Update.
11102 * annotate.c (annotate_source_line): Update.
11103
11104 2020-04-17 Tom Tromey <tromey@adacore.com>
11105
11106 * auto-load.c (show_auto_load_cmd): Remove.
11107 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11108 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11109 (maintenance_print_arc_command): Remove.
11110 * tui/tui-win.c (tui_command): Remove.
11111 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11112 * tui/tui-layout.c (tui_layout_command): Remove.
11113 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11114 * python/python.c (user_set_python, user_show_python): Remove.
11115 (_initialize_python): Use add_basic_prefix_cmd,
11116 add_show_prefix_cmd.
11117 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11118 (install_gdb_commands): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 (info_guile_command): Remove.
11121 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11122 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11123 add_show_prefix_cmd.
11124 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11125 Remove do_set and do_show parameters.
11126 * cli/cli-style.c (set_style, show_style): Remove.
11127 (_initialize_cli_style): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 (cli_style_option::add_setshow_commands): Remove do_set and
11130 do_show parameters.
11131 (cli_style_option::add_setshow_commands): Use
11132 add_basic_prefix_cmd, add_show_prefix_cmd.
11133 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11134 (set_style_name): Remove.
11135 * cli/cli-dump.c (dump_command, append_command): Remove.
11136 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11137 (tekhex_dump_command, binary_dump_command)
11138 (binary_append_command): Remove.
11139 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11140 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11141 (init_w32_command_list): Remove; move into ...
11142 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11143 * valprint.c (set_print, show_print, set_print_raw)
11144 (show_print_raw): Remove.
11145 (_initialize_valprint): Use add_basic_prefix_cmd,
11146 add_show_prefix_cmd.
11147 * typeprint.c (set_print_type, show_print_type): Remove.
11148 (_initialize_typeprint): Use add_basic_prefix_cmd,
11149 add_show_prefix_cmd.
11150 * record.c (set_record_command, show_record_command): Remove.
11151 (_initialize_record): Use add_basic_prefix_cmd,
11152 add_show_prefix_cmd.
11153 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11154 add_show_prefix_cmd.
11155 (info_command, show_command, set_debug, show_debug): Remove.
11156 * top.h (set_history, show_history): Don't declare.
11157 * top.c (set_history, show_history): Remove.
11158 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11159 (unset_tdesc_cmd): Remove.
11160 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11161 add_show_prefix_cmd.
11162 * symtab.c (info_module_command): Remove.
11163 (_initialize_symtab): Use add_basic_prefix_cmd.
11164 * symfile.c (overlay_command): Remove.
11165 (_initialize_symfile): Use add_basic_prefix_cmd.
11166 * sparc64-tdep.c (info_adi_command): Remove.
11167 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11168 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11169 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11170 add_show_prefix_cmd.
11171 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11172 (_initialize_serial): Use add_basic_prefix_cmd,
11173 add_show_prefix_cmd.
11174 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11175 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11176 add_show_prefix_cmd.
11177 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11178 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11179 add_show_prefix_cmd.
11180 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11181 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11182 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11183 add_show_prefix_cmd.
11184 * remote.c (remote_command, set_remote_cmd): Remove.
11185 (_initialize_remote): Use add_basic_prefix_cmd.
11186 * record-full.c (set_record_full_command)
11187 (show_record_full_command): Remove.
11188 (_initialize_record_full): Use add_basic_prefix_cmd,
11189 add_show_prefix_cmd.
11190 * record-btrace.c (cmd_set_record_btrace)
11191 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11192 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11193 (cmd_show_record_btrace_pt): Remove.
11194 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11195 add_show_prefix_cmd.
11196 * ravenscar-thread.c (set_ravenscar_command)
11197 (show_ravenscar_command): Remove.
11198 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11199 add_show_prefix_cmd.
11200 * mips-tdep.c (show_mips_command, set_mips_command)
11201 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11202 add_show_prefix_cmd.
11203 * maint.c (maintenance_command, maintenance_info_command)
11204 (maintenance_check_command, maintenance_print_command)
11205 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11206 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11207 add_show_prefix_cmd.
11208 (show_per_command_cmd): Remove.
11209 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11210 Remove.
11211 (maintenance_show_test_settings_cmd): Remove.
11212 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11213 add_show_prefix_cmd.
11214 * maint-test-options.c (maintenance_test_options_command):
11215 Remove.
11216 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11217 * macrocmd.c (macro_command): Remove
11218 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11219 * language.c (set_check, show_check): Remove.
11220 (_initialize_language): Use add_basic_prefix_cmd,
11221 add_show_prefix_cmd.
11222 * infcmd.c (unset_command): Remove.
11223 (_initialize_infcmd): Use add_basic_prefix_cmd.
11224 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11225 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11226 add_show_prefix_cmd.
11227 * go32-nat.c (go32_info_dos_command): Remove.
11228 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11229 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11230 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11231 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11232 (_initialize_frame): Use add_basic_prefix_cmd,
11233 add_show_prefix_cmd.
11234 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11235 (_initialize_dcache): Use add_basic_prefix_cmd,
11236 add_show_prefix_cmd.
11237 * cp-support.c (maint_cplus_command): Remove.
11238 (_initialize_cp_support): Use add_basic_prefix_cmd.
11239 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11240 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11241 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11242 add_basic_prefix_cmd, add_show_prefix_cmd.
11243 * breakpoint.c (save_command): Remove.
11244 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11245 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11246 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11247 add_show_prefix_cmd.
11248 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11249 (set_ada_command, show_ada_command): Remove.
11250 (_initialize_ada_language): Use add_basic_prefix_cmd,
11251 add_show_prefix_cmd.
11252 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11253
11254 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11255
11256 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11257 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11258
11259 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11260
11261 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11262 warning messages.
11263
11264 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11265
11266 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11267 import table is not at beginning of .idata section.
11268
11269 2020-04-16 Pedro Alves <palves@redhat.com>
11270
11271 * inferior.c (delete_inferior): Use delete operator directly
11272 instead of delete_program_space.
11273 * progspace.c (add_program_space): New, factored out from
11274 program_space::program_space.
11275 (remove_program_space): New, factored out from
11276 delete_program_space.
11277 (program_space::program_space): Remove intro comment. Rewrite.
11278 (program_space::~program_space): Remove intro comment. Call
11279 remove_program_space.
11280 (delete_program_space): Delete.
11281 * progspace.h (program_space::program_space): Make explicit. Move
11282 intro comment here, adjusted.
11283 (program_space::~program_space): Move intro comment here,
11284 adjusted.
11285 (delete_program_space): Remove.
11286
11287 2020-04-16 Tom Tromey <tromey@adacore.com>
11288
11289 * windows-nat.c (windows_nat::handle_access_violation): New
11290 function.
11291 * nat/windows-nat.h (handle_access_violation): Declare.
11292 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11293 windows-nat.c. Call handle_access_violation.
11294
11295 2020-04-16 Tom de Vries <tdevries@suse.de>
11296
11297 PR symtab/25791
11298 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11299 CUs without psymtab.
11300
11301 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11302
11303 * python/python.c (do_start_initialization): Don't call
11304 PyEval_InitThreads for Python 3.9 and beyond.
11305
11306 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11307
11308 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11309 thread functions.
11310 (obsd_nat_target::wait): Likewise.
11311
11312 2020-04-15 Tom Tromey <tromey@adacore.com>
11313
11314 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11315 (DEBUG_EXCEPT): Use debug_printf.
11316
11317 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11318
11319 * completer.c (class completion_tracker::completion_hash_entry)
11320 <hash_name>: New member function.
11321 (completion_tracker::discard_completions): New callback to hash a
11322 completion_hash_entry, pass this to htab_create_alloc.
11323
11324 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11325
11326 * windows-nat.c (windows_make_so): Warn rather than stopping with
11327 an error if realpath() fails.
11328
11329 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11330
11331 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11332 (nbsd_nat_target::info_proc): Add do_status.
11333
11334 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11335 Tom de Vries <tdevries@suse.de>
11336
11337 PR symtab/25718
11338 * psympriv.h (struct partial_symtab::read_symtab)
11339 (struct partial_symtab::expand_psymtab)
11340 (struct partial_symtab::read_dependencies): Update comments.
11341 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11342 read_symtab for includer.
11343 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11344 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11345 (struct dwarf2_include_psymtab::m_readin): Remove.
11346 (struct dwarf2_include_psymtab::includer): New member function.
11347 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11348
11349 2020-04-14 Tom de Vries <tdevries@suse.de>
11350
11351 PR symtab/25720
11352 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11353 with NULL symbol_matcher and lookup_name.
11354 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11355 and lookup_name.
11356 * dwarf2/read.c (dw2_expand_symtabs_matching)
11357 (dw2_debug_names_expand_symtabs_matching): Same.
11358 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11359 Make lookup_name a pointer. Update comment.
11360 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11361 lookup_name being a pointer.
11362 * symfile.c (expand_symtabs_matching): Same.
11363 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11364 * linespec.c (iterate_over_all_matching_symtabs): Same.
11365
11366 2020-04-13 Tom Tromey <tom@tromey.com>
11367
11368 * run-on-main-thread.c: Update include.
11369 * unittests/main-thread-selftests.c: Update include.
11370 * tui/tui-win.c: Update include.
11371 * tui/tui-io.c: Update include.
11372 * tui/tui-interp.c: Update include.
11373 * tui/tui-hooks.c: Update include.
11374 * top.h: Update include.
11375 * top.c: Update include.
11376 * ser-base.c: Update include.
11377 * remote.c: Update include.
11378 * remote-notif.c: Update include.
11379 * remote-fileio.c: Update include.
11380 * record-full.c: Update include.
11381 * record-btrace.c: Update include.
11382 * python/python.c: Update include.
11383 * posix-hdep.c: Update include.
11384 * mingw-hdep.c: Update include.
11385 * mi/mi-main.c: Update include.
11386 * mi/mi-interp.c: Update include.
11387 * main.c: Update include.
11388 * linux-nat.c: Update include.
11389 * interps.c: Update include.
11390 * infrun.c: Update include.
11391 * inf-loop.c: Update include.
11392 * event-top.c: Update include.
11393 * event-loop.c: Move to ../gdbsupport/.
11394 * event-loop.h: Move to ../gdbsupport/.
11395 * async-event.h: Update include.
11396 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11397
11398 2020-04-13 Tom Tromey <tom@tromey.com>
11399
11400 * tui/tui-win.c: Include async-event.h.
11401 * remote.c: Include async-event.h.
11402 * remote-notif.c: Include async-event.h.
11403 * record-full.c: Include async-event.h.
11404 * record-btrace.c: Include async-event.h.
11405 * infrun.c: Include async-event.h.
11406 * event-top.c: Include async-event.h.
11407 * event-loop.h: Move some declarations to async-event.h.
11408 * event-loop.c: Don't include ser-event.h or top.h. Move some
11409 code to async-event.c.
11410 * async-event.h: New file.
11411 * async-event.c: New file.
11412 * Makefile.in (COMMON_SFILES): Add async-event.c.
11413 (HFILES_NO_SRCDIR): Add async-event.h.
11414
11415 2020-04-13 Tom Tromey <tom@tromey.com>
11416
11417 * utils.c (flush_streams): New function.
11418 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11419
11420 2020-04-13 Tom Tromey <tom@tromey.com>
11421
11422 * event-loop.c (handle_file_event): Use warning, not
11423 printf_unfiltered.
11424
11425 2020-04-13 Tom Tromey <tom@tromey.com>
11426
11427 * event-loop.c: Include <chrono>.
11428
11429 2020-04-13 Tom Tromey <tom@tromey.com>
11430
11431 * gdb_select.h: Move to ../gdbsupport/.
11432 * event-loop.c: Update include path.
11433 * top.c: Update include path.
11434 * ser-base.c: Update include path.
11435 * ui-file.c: Update include path.
11436 * ser-tcp.c: Update include path.
11437 * guile/scm-ports.c: Update include path.
11438 * posix-hdep.c: Update include path.
11439 * ser-unix.c: Update include path.
11440 * gdb_usleep.c: Update include path.
11441 * mingw-hdep.c: Update include path.
11442 * inflow.c: Update include path.
11443 * infrun.c: Update include path.
11444 * event-top.c: Update include path.
11445
11446 2020-04-13 Tom Tromey <tom@tromey.com>
11447
11448 * configure: Rebuild.
11449 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11450
11451 2020-04-13 Tom Tromey <tom@tromey.com>
11452
11453 * event-loop.h (start_event_loop): Don't declare.
11454 * event-loop.c (start_event_loop): Move...
11455 * main.c (start_event_loop): ...here. Now static.
11456
11457 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11458
11459 * MAINTAINERS: Update my email address.
11460
11461 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11462
11463 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11464 IP_ALL.
11465
11466 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11467
11468 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11469 (nbsd_nat_target::info_proc): Add do_cmdline.
11470
11471 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11472
11473 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11474 (nbsd_nat_target::info_proc): Add do_cwd.
11475
11476 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11477
11478 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11479
11480 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11481
11482 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11483 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11484 (nbsd_nat_target::info_proc): New functions.
11485 * nbsd-nat.c (kinfo_get_vmmap): New function.
11486 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11487 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11488 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11489 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11490 functions.
11491 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11492 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11493 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11494 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11495 (KINFO_VME_FLAG_GROWS_DOWN): New.
11496
11497 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11498
11499 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11500 bit shift.
11501
11502 2020-04-10 Tom Tromey <tromey@adacore.com>
11503
11504 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11505
11506 2020-04-10 Tom Tromey <tromey@adacore.com>
11507
11508 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11509 separate debug files.
11510
11511 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11512
11513 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11514 Move to...
11515 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11516 ... here.
11517 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11518 Check for STATUS_WX86_BREAKPOINT.
11519 (windows_nat_target::wait): Same.
11520
11521 2020-04-10 Tom de Vries <tdevries@suse.de>
11522
11523 PR cli/25808
11524 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11525
11526 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11527
11528 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11529 (Write After Approval): Remove Tom de Vries.
11530
11531 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11532
11533 revert partially:
11534 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11535
11536 * buildsym.c (record_line): Fix undefined behavior and preserve
11537 lines at eof.
11538
11539 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11540
11541 * auxv.h (svr4_auxv_parse): New.
11542 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11543 and generic_auxv_parse.
11544 (svr4_auxv_parse): Add.
11545 * obsd-tdep.c: Include "auxv.h".
11546 (obsd_auxv_parse): Remove.
11547 (obsd_init_abi): Remove comment.
11548 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11549 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11550 * nbsd-tdep.c: Include "auxv.h".
11551 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11552
11553 2020-04-08 Tom Tromey <tromey@adacore.com>
11554
11555 * nat/windows-nat.h (last_wait_event): Don't declare.
11556 (wait_for_debug_event): Update comment.
11557 * nat/windows-nat.c (last_wait_event): Now static.
11558
11559 2020-04-08 Tom Tromey <tromey@adacore.com>
11560
11561 * windows-nat.c (wait_for_debug_event): Move to
11562 nat/windows-nat.c.
11563 * nat/windows-nat.h (wait_for_debug_event): Declare.
11564 * nat/windows-nat.c (wait_for_debug_event): Move from
11565 windows-nat.c. No longer static.
11566
11567 2020-04-08 Tom Tromey <tromey@adacore.com>
11568
11569 * windows-nat.c (get_windows_debug_event): Use
11570 fetch_pending_stop.
11571 * nat/windows-nat.h (fetch_pending_stop): Declare.
11572 * nat/windows-nat.c (fetch_pending_stop): New function.
11573
11574 2020-04-08 Tom Tromey <tromey@adacore.com>
11575
11576 * windows-nat.c (windows_continue): Use matching_pending_stop and
11577 continue_last_debug_event.
11578 * nat/windows-nat.h (matching_pending_stop)
11579 (continue_last_debug_event): Declare.
11580 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11581 (matching_pending_stop, continue_last_debug_event): New
11582 functions.
11583
11584 2020-04-08 Tom Tromey <tromey@adacore.com>
11585
11586 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11587 (handle_exception_result): Move to nat/windows-nat.h.
11588 (DEBUG_EXCEPTION_SIMPLE): Remove.
11589 (windows_nat::handle_ms_vc_exception): New function.
11590 (handle_exception): Move to nat/windows-nat.c.
11591 (get_windows_debug_event): Update.
11592 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11593 nat/windows-nat.c.
11594 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11595 (handle_exception_result): Move from windows-nat.c.
11596 (handle_exception): Declare.
11597 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11598 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11599 windows-nat.c.
11600
11601 2020-04-08 Tom Tromey <tromey@adacore.com>
11602
11603 * windows-nat.c (exception_count, event_count): Remove.
11604 (handle_exception, get_windows_debug_event)
11605 (do_initial_windows_stuff): Update.
11606
11607 2020-04-08 Tom Tromey <tromey@adacore.com>
11608
11609 * windows-nat.c (windows_nat::handle_load_dll)
11610 (windows_nat::handle_unload_dll): Rename. No longer static.
11611 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11612 Declare.
11613
11614 2020-04-08 Tom Tromey <tromey@adacore.com>
11615
11616 * complaints.h (stop_whining): Declare at top-level.
11617 (complaint): Don't declare stop_whining.
11618
11619 2020-04-08 Tom Tromey <tromey@adacore.com>
11620
11621 * windows-nat.c (windows_nat::handle_output_debug_string):
11622 Rename. No longer static.
11623 * nat/windows-nat.h (handle_output_debug_string): Declare.
11624
11625 2020-04-08 Tom Tromey <tromey@adacore.com>
11626
11627 * windows-nat.c (current_process_handle, current_process_id)
11628 (main_thread_id, last_sig, current_event, last_wait_event)
11629 (current_windows_thread, desired_stop_thread_id, pending_stops)
11630 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11631 (display_selectors, fake_create_process)
11632 (get_windows_debug_event): Update.
11633 * nat/windows-nat.h (current_process_handle, current_process_id)
11634 (main_thread_id, last_sig, current_event, last_wait_event)
11635 (current_windows_thread, desired_stop_thread_id, pending_stops)
11636 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11637 * nat/windows-nat.c (current_process_handle, current_process_id)
11638 (main_thread_id, last_sig, current_event, last_wait_event)
11639 (current_windows_thread, desired_stop_thread_id, pending_stops)
11640 (siginfo_er): New globals. Move from windows-nat.c.
11641
11642 2020-04-08 Tom Tromey <tromey@adacore.com>
11643
11644 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11645 (handle_load_dll): Update.
11646 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11647
11648 2020-04-08 Tom Tromey <tromey@adacore.com>
11649
11650 * windows-nat.c (enum thread_disposition_type): Move to
11651 nat/windows-nat.h.
11652 (windows_nat::thread_rec): Rename from thread_rec. No longer
11653 static.
11654 (windows_add_thread, windows_nat_target::fetch_registers)
11655 (windows_nat_target::store_registers, handle_exception)
11656 (windows_nat_target::resume, get_windows_debug_event)
11657 (windows_nat_target::get_tib_address)
11658 (windows_nat_target::thread_name)
11659 (windows_nat_target::thread_alive): Update.
11660 * nat/windows-nat.h (enum thread_disposition_type): Move from
11661 windows-nat.c.
11662 (thread_rec): Declare.
11663
11664 2020-04-08 Tom Tromey <tromey@adacore.com>
11665
11666 * windows-nat.c: Add "using namespace".
11667 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11668 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11669
11670 2020-04-08 Tom Tromey <tromey@adacore.com>
11671
11672 * nat/windows-nat.h (struct windows_thread_info): Declare
11673 destructor.
11674 * nat/windows-nat.c (~windows_thread_info): New.
11675
11676 2020-04-08 Tom Tromey <tromey@adacore.com>
11677
11678 PR gdb/22992
11679 * windows-nat.c (current_event): Update comment.
11680 (last_wait_event, desired_stop_thread_id): New globals.
11681 (struct pending_stop): New.
11682 (pending_stops): New global.
11683 (windows_nat_target) <stopped_by_sw_breakpoint>
11684 <supports_stopped_by_sw_breakpoint>: New methods.
11685 (windows_fetch_one_register): Add assertions. Adjust PC.
11686 (windows_continue): Handle pending stops. Suspend other threads
11687 when stepping. Use last_wait_event
11688 (wait_for_debug_event): New function.
11689 (get_windows_debug_event): Use wait_for_debug_event. Handle
11690 pending stops. Queue spurious stops.
11691 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11692 (windows_nat_target::kill): Use wait_for_debug_event.
11693 * nat/windows-nat.h (struct windows_thread_info)
11694 <stopped_at_software_breakpoint>: New field.
11695 * nat/windows-nat.c (windows_thread_info::resume): Clear
11696 stopped_at_software_breakpoint.
11697
11698 2020-04-08 Tom Tromey <tromey@adacore.com>
11699
11700 * windows-nat.c (enum thread_disposition_type): New.
11701 (thread_rec): Replace "get_context" parameter with "disposition";
11702 change type.
11703 (windows_add_thread, windows_nat_target::fetch_registers)
11704 (windows_nat_target::store_registers, handle_exception)
11705 (windows_nat_target::resume, get_windows_debug_event)
11706 (windows_nat_target::get_tib_address)
11707 (windows_nat_target::thread_name)
11708 (windows_nat_target::thread_alive): Update.
11709
11710 2020-04-08 Tom Tromey <tromey@adacore.com>
11711
11712 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11713 (windows_continue): Use windows_continue::resume.
11714 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11715 resume>: Declare new methods.
11716 * nat/windows-nat.c: New file.
11717 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11718
11719 2020-04-08 Tom Tromey <tromey@adacore.com>
11720
11721 * windows-nat.c (windows_add_thread, windows_delete_thread)
11722 (windows_nat_target::fetch_registers)
11723 (windows_nat_target::store_registers, fake_create_process)
11724 (windows_nat_target::resume, windows_nat_target::resume)
11725 (get_windows_debug_event, windows_nat_target::wait)
11726 (windows_nat_target::pid_to_str)
11727 (windows_nat_target::get_tib_address)
11728 (windows_nat_target::get_ada_task_ptid)
11729 (windows_nat_target::thread_name)
11730 (windows_nat_target::thread_alive): Use lwp, not tid.
11731
11732 2020-04-08 Tom Tromey <tromey@adacore.com>
11733
11734 * windows-nat.c (handle_exception)
11735 (windows_nat_target::thread_name): Update.
11736 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11737 <name>: Now unique_xmalloc_ptr.
11738
11739 2020-04-08 Tom Tromey <tromey@adacore.com>
11740
11741 * windows-nat.c (thread_rec)
11742 (windows_nat_target::fetch_registers): Update.
11743 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11744 Update comment.
11745 <debug_registers_changed, reload_context>: Now bool.
11746
11747 2020-04-08 Tom Tromey <tromey@adacore.com>
11748
11749 * windows-nat.c (windows_add_thread): Use new.
11750 (windows_init_thread_list, windows_delete_thread): Use delete.
11751 (get_windows_debug_event): Update.
11752 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11753 destructor, and initializers.
11754
11755 2020-04-08 Tom Tromey <tromey@adacore.com>
11756
11757 * windows-nat.c (struct windows_thread_info): Remove.
11758 * nat/windows-nat.h: New file.
11759
11760 2020-04-08 Tom Tromey <tromey@adacore.com>
11761
11762 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11763 (thread_rec, windows_add_thread, windows_delete_thread)
11764 (windows_continue): Update.
11765
11766 2020-04-08 Tom Tromey <tromey@adacore.com>
11767
11768 * windows-nat.c (struct windows_thread_info): Remove typedef.
11769 (thread_head): Remove.
11770 (thread_list): New global.
11771 (thread_rec, windows_add_thread, windows_init_thread_list)
11772 (windows_delete_thread, windows_continue): Update.
11773
11774 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11775
11776 * windows-tdep.h (windows_init_abi): Add comment.
11777 (cygwin_init_abi): New declaration.
11778 * windows-tdep.c: Split signal enumeration in two, one for
11779 Windows and one for Cygwin.
11780 (windows_gdb_signal_to_target): Only deal with signal of the
11781 Windows OS ABI.
11782 (cygwin_gdb_signal_to_target): New function.
11783 (windows_init_abi): Rename to windows_init_abi_common, don't set
11784 gdb_signal_to_target gdbarch method. Add new new function with
11785 this name.
11786 (cygwin_init_abi): New function.
11787 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11788 comment. Don't call windows_init_abi.
11789 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11790 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11791 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11792 i386_windows_init_abi_common, don't call windows_init_abi. Add
11793 a new function of this name.
11794 (i386_cygwin_init_abi): New function.
11795 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11796 OS ABI Cygwin.
11797
11798 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11799
11800 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11801 parameter.c.
11802 (dwarf2_read_gdb_index): Update.
11803
11804 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11805
11806 * nbsd-tdep.c: Include "objfiles.h".
11807 (nbsd_skip_solib_resolver): New.
11808 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11809
11810 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11811
11812 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11813 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11814 with DW_LLE_base_addressx are being emitted in DWARFv5.
11815 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11816 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11817 unsigned integer.
11818
11819 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11820
11821 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11822 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11823 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11824 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11825 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11826 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11827 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11828
11829
11830 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11831
11832 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11833 (read_loclist_index): New function definition.
11834 (lookup_loclist_base): New function definition.
11835 (read_loclist_header): New function definition.
11836 (dwarf2_cu): Add loclist_base and loclist_header field.
11837 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11838 (read_full_die_1): Read the value of DW_AT_loclists_base.
11839 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11840 (read_attribute_value): Handle DW_FORM_loclistx.
11841 (skip_one_die): Handle DW_FORM_loclistx.
11842 (loclist_header): New structure declaration.
11843 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11844
11845 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11846
11847 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11848 constructor. Remove `addr` parameter from other constructor and
11849 add `per_cu` parameter.
11850 * dwarf2/read.c (create_partial_symtab): Update.
11851
11852 2020-04-07 Tom de Vries <tdevries@suse.de>
11853
11854 PR symtab/25796
11855 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11856 (partial_die_info::fixup): Inherit has_const_value.
11857
11858 2020-04-07 Tom de Vries <tdevries@suse.de>
11859
11860 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11861 symbols without address.
11862
11863 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11864
11865 * nbsd-nat.h (struct thread_info): Add forward declaration.
11866 (nbsd_nat_target::thread_alive): Add.
11867 (nbsd_nat_target::thread_name): Likewise.
11868 (nbsd_nat_target::update_thread_list): Likewise.
11869 (update_thread_list::post_attach): Likewise.
11870 (post_attach::pid_to_str): Likewise.
11871 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11872 (nbsd_thread_lister): Add.
11873 (nbsd_nat_target::thread_alive): Likewise.
11874 (nbsd_nat_target::thread_name): Likewise.
11875 (nbsd_add_threads): Likewise.
11876 (update_thread_list::post_attach): Likewise.
11877 (nbsd_nat_target::update_thread_list): Likewise.
11878 (post_attach::pid_to_str): Likewise.
11879
11880 2020-04-06 Tom Tromey <tromey@adacore.com>
11881
11882 * ada-valprint.c (print_variant_part): Extract the variant field.
11883 (print_field_values): Use the field as the outer value when
11884 recursing.
11885
11886 2020-04-06 Tom Tromey <tromey@adacore.com>
11887
11888 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11889 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11890 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11891 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11892 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11893
11894 2020-04-06 Tom Tromey <tromey@adacore.com>
11895
11896 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11897 TYPE_CODE_ERROR.
11898
11899 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11900
11901 * nbsd-tdep.c: Include "gdbarch.h".
11902 Define enum with NetBSD signal numbers.
11903 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11904 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11905 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11906 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11907 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11908 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11909 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11910 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11911 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11912 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11913 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11914 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11915
11916 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11917
11918 PR gdb/25325
11919 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11920
11921 2020-04-03 Tom Tromey <tromey@adacore.com>
11922
11923 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11924 Read constant block.
11925
11926 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11927
11928 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11929 (gdb_bfd_get_full_section_contents): New declaration.
11930 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11931 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11932 gdb_bfd_get_full_section_contents.
11933
11934 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11935
11936 * exec.c (build_section_table): Replace internal_error with
11937 gdb_assert.
11938 (section_table_xfer_memory_partial): Likewise.
11939 * mdebugread.c (parse_partial_symbols): Likewise.
11940 * psymtab.c (lookup_partial_symbol): Likewise.
11941 * utils.c (wrap_here): Likewise.
11942
11943 2020-04-02 Tom Tromey <tromey@adacore.com>
11944
11945 * f-lang.c (build_fortran_types): Use arch_type to initialize
11946 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11947
11948 2020-04-02 Tom Tromey <tromey@adacore.com>
11949
11950 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11951 of attributes.
11952
11953 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11954 Bernd Edlinger <bernd.edlinger@hotmail.de>
11955 Tom Tromey <tromey@adacore.com>
11956
11957 * buildsym.c (buildsym_compunit::record_line): Remove
11958 deduplication code.
11959
11960 2020-04-02 Tom de Vries <tdevries@suse.de>
11961
11962 PR ada/24671
11963 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11964
11965 2020-04-02 Tom de Vries <tdevries@suse.de>
11966
11967 * dwarf2/read.c (dwarf2_gdb_index_functions,
11968 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11969 NULL.
11970 * psymtab.c (psym_lookup_global_symbol_language): New function.
11971 (psym_functions): Init psym_lookup_global_symbol_language with
11972 psym_lookup_global_symbol_language.
11973 * symfile-debug.c (debug_sym_quick_functions): Init
11974 lookup_global_symbol_language with NULL.
11975 * symfile.c (set_initial_language): Remove fixme comment.
11976 * symfile.h (struct quick_symbol_functions): Add
11977 lookup_global_symbol_language.
11978 * symtab.c (find_quick_global_symbol_language): New function.
11979 (find_main_name): Use find_quick_global_symbol_language.
11980
11981 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11982
11983 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11984
11985 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11986
11987 * buildsym.c (record_line): Fix undefined behavior and preserve
11988 lines at eof.
11989
11990 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11991
11992 * buildsym.c (record_line): Fix the resizing condition.
11993
11994 2020-04-01 Tom Tromey <tom@tromey.com>
11995
11996 * value.h (value_literal_complex): Add comment.
11997 * valops.c (value_literal_complex): Refer to value.h.
11998
11999 2020-04-01 Tom Tromey <tom@tromey.com>
12000
12001 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12002 (scalar_type): New rule, from typebase.
12003 (typebase): Use scalar_type. Recognize complex types.
12004 (field_name): Handle FLOAT_KEYWORD.
12005 (ident_tokens): Add _Complex and __complex__.
12006
12007 2020-04-01 Tom Tromey <tom@tromey.com>
12008
12009 PR exp/25299:
12010 * valarith.c (promotion_type, complex_binop): New functions.
12011 (scalar_binop): Handle complex numbers. Use promotion_type.
12012 (value_pos, value_neg, value_complement): Handle complex numbers.
12013
12014 2020-04-01 Tom Tromey <tom@tromey.com>
12015
12016 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12017 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12018 (parse_number): Handle complex numbers.
12019
12020 2020-04-01 Tom Tromey <tom@tromey.com>
12021
12022 * c-valprint.c (c_decorations): Change complex suffix to "i".
12023
12024 2020-04-01 Tom Tromey <tom@tromey.com>
12025
12026 * valprint.c (generic_value_print_complex): Use accessors.
12027 * value.h (value_real_part, value_imaginary_part): Declare.
12028 * valops.c (value_real_part, value_imaginary_part): New
12029 functions.
12030 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12031
12032 2020-04-01 Tom Tromey <tom@tromey.com>
12033
12034 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12035 (read_range_type): Update.
12036 * mdebugread.c (basic_type): Update.
12037 * go-lang.c (build_go_types): Use init_complex_type.
12038 * gdbtypes.h (struct main_type) <complex_type>: New member.
12039 (init_complex_type): Update.
12040 (arch_complex_type): Don't declare.
12041 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12042 Make name if none given. Use alloc_type_copy. Look for cached
12043 complex type.
12044 (arch_complex_type): Remove.
12045 (gdbtypes_post_init): Use init_complex_type.
12046 * f-lang.c (build_fortran_types): Use init_complex_type.
12047 * dwarf2/read.c (read_base_type): Update.
12048 * d-lang.c (build_d_types): Use init_complex_type.
12049 * ctfread.c (read_base_type): Update.
12050
12051 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12052
12053 * infrun.c (stop_all_threads): Update assertion, plus when
12054 stopping threads, take into account that we might be trying
12055 to stop an all-stop target.
12056 (stop_waiting): Call 'stop_all_threads' if there exists a
12057 non-stop target.
12058
12059 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12060
12061 * target.h (exists_non_stop_target): New function declaration.
12062 * target.c (exists_non_stop_target): New function.
12063
12064 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12065
12066 PR gdb/24789
12067 * eval.c (is_integral_or_integral_reference): New function.
12068 (evaluate_subexp_standard): Allow integer references in
12069 pointer arithmetic.
12070
12071 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12072
12073 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12074 check for no ptid in the stop reply when the target is non-stop.
12075
12076 2020-04-01 Tom Tromey <tromey@adacore.com>
12077
12078 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12079 "name" parameter to rvalue reference. Initialize m_name_holder.
12080 <lookup_name_info>: New overloads.
12081 <name>: Return gdb::string_view.
12082 <c_str>: New method.
12083 <make_ignore_params>: Update.
12084 <search_name_hash>: Update.
12085 <language_lookup_name>: Return const char *.
12086 <m_name>: Change type.
12087 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12088 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12089 (lookup_name_info::match_any): Update.
12090 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12091 Update.
12092 * minsyms.c (linkage_name_str): Update.
12093 * language.c (default_symbol_name_matcher): Update.
12094 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12095 Update.
12096 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12097 (ada_lookup_name_info::ada_lookup_name_info): Update.
12098 (literal_symbol_name_matcher): Update.
12099
12100 2020-04-01 Tom Tromey <tromey@adacore.com>
12101
12102 * psymtab.c (psymtab_search_name): Remove function.
12103 (psym_lookup_symbol): Create search name and lookup name here.
12104 (lookup_partial_symbol): Remove "name" parameter; add
12105 lookup_name.
12106 (psym_expand_symtabs_for_function): Update.
12107
12108 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12109
12110 PR tui/25597:
12111 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12112
12113 2020-03-31 Tom Tromey <tromey@adacore.com>
12114
12115 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12116 memcpy.
12117
12118 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12119
12120 * features/riscv/32bit-csr.xml: Regenerated.
12121 * features/riscv/64bit-csr.xml: Regenerated.
12122
12123 2020-03-30 Tom Tromey <tromey@adacore.com>
12124
12125 * ada-valprint.c (print_variant_part): Update.
12126 * ada-lang.h (ada_which_variant_applies): Update.
12127 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12128 outer_valaddr parameters; replace with "outer" value parameter.
12129 (to_fixed_variant_branch_type): Update.
12130
12131 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12132
12133 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12134 <list>. Remove inclusion of observable.h.
12135 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12136 (struct arch_lwp_info): New struct.
12137 (class ppc_linux_dreg_interface): New class.
12138 (struct ppc_linux_process_info): New struct.
12139 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12140 <low_new_clone, low_forget_process, low_prepare_to_resume>
12141 <copy_thread_dreg_state, mark_thread_stale>
12142 <mark_debug_registers_changed, register_hw_breakpoint>
12143 <clear_hw_breakpoint, register_wp, clear_wp>
12144 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12145 <num_memory_accesses, get_trigger_type>
12146 <create_watchpoint_request, hwdebug_point_cmp>
12147 <init_arch_lwp_info, get_arch_lwp_info>
12148 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12149 methods.
12150 <struct ptid_hash>: New inner struct.
12151 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12152 members.
12153 (saved_dabr_value, hwdebug_info, max_slots_number)
12154 (struct hw_break_tuple, struct thread_points, ppc_threads)
12155 (have_ptrace_hwdebug_interface)
12156 (hwdebug_find_thread_points_by_tid)
12157 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12158 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12159 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12160 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12161 use m_dreg_interface.
12162 (hwdebug_point_cmp): Change to...
12163 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12164 reference arguments instead of pointers.
12165 (ppc_linux_nat_target::ranged_break_num_registers): Use
12166 m_dreg_interface.
12167 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12168 m_dreg_interface. Call register_hw_breakpoint.
12169 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12170 m_dreg_interface. Call clear_hw_breakpoint.
12171 (get_trigger_type): Change to...
12172 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12173 comment.
12174 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12175 use m_dreg_interface. Call register_hw_breakpoint.
12176 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12177 use m_dreg_interface. Call clear_hw_breakpoint.
12178 (can_use_watchpoint_cond_accel): Change to...
12179 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12180 method. Update comment, use m_dreg_interface and
12181 m_process_info.
12182 (calculate_dvc): Change to...
12183 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12184 m_dreg_interface.
12185 (num_memory_accesses): Change to...
12186 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12187 (check_condition): Change to...
12188 (ppc_linux_nat_target::check_condition): ...this method.
12189 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12190 comment, use m_dreg_interface.
12191 (create_watchpoint_request): Change to...
12192 (ppc_linux_nat_target::create_watchpoint_request): ...this
12193 method. Use m_dreg_interface.
12194 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12195 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12196 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12197 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12198 (ppc_linux_nat_target::low_forget_process)
12199 (ppc_linux_nat_target::low_new_fork)
12200 (ppc_linux_nat_target::low_new_clone)
12201 (ppc_linux_nat_target::low_delete_thread)
12202 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12203 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12204 only call mark_thread_stale.
12205 (ppc_linux_thread_exit): Remove.
12206 (ppc_linux_nat_target::stopped_data_address): Change to...
12207 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12208 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12209 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12210 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12211 comment. Call low_stopped_data_address.
12212 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12213 m_dreg_interface.
12214 (ppc_linux_nat_target::masked_watch_num_registers): Use
12215 m_dreg_interface.
12216 (ppc_linux_nat_target::copy_thread_dreg_state)
12217 (ppc_linux_nat_target::mark_thread_stale)
12218 (ppc_linux_nat_target::mark_debug_registers_changed)
12219 (ppc_linux_nat_target::register_hw_breakpoint)
12220 (ppc_linux_nat_target::clear_hw_breakpoint)
12221 (ppc_linux_nat_target::register_wp)
12222 (ppc_linux_nat_target::clear_wp)
12223 (ppc_linux_nat_target::init_arch_lwp_info)
12224 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12225 (_initialize_ppc_linux_nat): Remove observer callback.
12226
12227 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12228
12229 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12230 (ppc_linux_nat_target::auxv_parse)
12231 (ppc_linux_nat_target::read_description)
12232 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12233 Move up.
12234
12235 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12236
12237 * linux-nat.h (low_new_clone): New method.
12238 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12239
12240 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12241
12242 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12243 (dbx_expand_psymtab): ... this.
12244 (start_psymtab): Update.
12245 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12246 (mdebug_expand_psymtab): ... this.
12247 (parse_partial_symbols): Update.
12248 (new_psymtab): Update.
12249 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12250 (xcoff_expand_psymtab): ... this.
12251 (xcoff_start_psymtab): Update.
12252
12253 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12254
12255 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12256 <expand_dependencies>: ... this.
12257 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12258 (partial_symtab::expand_dependencies): ... this.
12259 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12260 Update.
12261 (dwarf2_psymtab::expand_psymtab): Update.
12262 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12263 * mdebugread.c (psymtab_to_symtab_1): Update.
12264 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12265
12266 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12267
12268 * psympriv.h (discard_psymtab): Remove.
12269 * dbxread.c (dbx_end_psymtab): Update.
12270 * xcoffread.c (xcoff_end_psymtab): Update.
12271
12272 2020-03-28 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12275 comment.
12276
12277 2020-03-28 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12280
12281 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12282
12283 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12284
12285 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12286
12287 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12288
12289 2020-03-26 Tom Tromey <tom@tromey.com>
12290
12291 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12292 (mark_common_block_symbol_computed, read_tag_string_type)
12293 (attr_to_dynamic_prop, read_subrange_type): Update.
12294 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12295 to be methods on struct attribute.
12296 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12297 (read_call_site_scope, partial_die_info::read)
12298 (partial_die_info::read, lookup_die_type, follow_die_ref):
12299 Update.
12300 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12301 from dwarf2_get_ref_die_offset.
12302 (attribute::constant_value): New method, from
12303 dwarf2_get_attr_constant_value.
12304 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12305 Declare method.
12306 <constant_value>: New method.
12307
12308 2020-03-26 Tom Tromey <tom@tromey.com>
12309
12310 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12311 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12312 (dwarf_type_encoding_name): Move to stringify.c.
12313 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12314 * dwarf2/stringify.c: New file.
12315 * dwarf2/stringify.h: New file.
12316
12317 2020-03-26 Tom Tromey <tom@tromey.com>
12318
12319 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12320 Rewrite.
12321
12322 2020-03-26 Tom Tromey <tom@tromey.com>
12323
12324 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12325 methods.
12326 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12327 (lookup_ranges_base): Likewise.
12328 (read_cutu_die_from_dwo, read_full_die_1): Update.
12329
12330 2020-03-26 Tom Tromey <tom@tromey.com>
12331
12332 * dwarf2/read.c (read_import_statement, read_file_scope)
12333 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12334 (read_lexical_block_scope, read_call_site_scope)
12335 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12336 (handle_struct_member_die, process_structure_scope)
12337 (update_enumeration_type_from_children)
12338 (process_enumeration_scope, read_array_type, read_common_block)
12339 (read_namespace, read_module, read_subroutine_type): Update.
12340 (sibling_die): Remove.
12341
12342 2020-03-26 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12345 (build_type_psymtabs_reader, read_structure_type)
12346 (read_enumeration_type, read_full_die_1): Update.
12347 (dwarf2_attr_no_follow): Move to die.h.
12348 * dwarf2/die.h (struct die_info) <attr>: New method.
12349
12350 2020-03-26 Tom Tromey <tom@tromey.com>
12351
12352 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12353 <base_address>: Now an optional.
12354 (dwarf2_find_base_address, dwarf2_rnglists_process)
12355 (dwarf2_ranges_process, fill_in_loclist_baton)
12356 (dwarf2_symbol_mark_computed): Update.
12357
12358 2020-03-26 Tom Tromey <tom@tromey.com>
12359
12360 * dwarf2/read.c (struct die_info): Move to die.h.
12361 * dwarf2/die.h: New file.
12362
12363 2020-03-26 Tom Tromey <tom@tromey.com>
12364
12365 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12366 * dwarf2/read.c
12367 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12368 Move to line-header.c.
12369 (read_checked_initial_length_and_offset, read_formatted_entries):
12370 Likewise.
12371 (dwarf_decode_line_header): Split into two.
12372 * dwarf2/line-header.c
12373 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12374 Move from read.c.
12375 (read_checked_initial_length_and_offset, read_formatted_entries):
12376 Likewise.
12377 (dwarf_decode_line_header): New function, split from read.c.
12378
12379 2020-03-26 Tom Tromey <tom@tromey.com>
12380
12381 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12382 Declare method.
12383 * dwarf2/read.c (read_attribute_value): Update.
12384 (dwarf2_per_objfile::read_line_string): Rename from
12385 read_indirect_line_string.
12386 (read_formatted_entries): Update.
12387
12388 2020-03-26 Tom Tromey <tom@tromey.com>
12389
12390 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12391 variable.
12392
12393 2020-03-26 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12396 const.
12397 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12398 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12399 parameter const.
12400
12401 2020-03-26 Tom Tromey <tom@tromey.com>
12402
12403 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12404 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12405 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12406 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12407
12408 2020-03-26 Tom Tromey <tom@tromey.com>
12409
12410 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12411 file_names_size, file_full_name, file_file_name>: Use const.
12412 <file_name_at, file_names>: Add const overload.
12413 * dwarf2/line-header.c (line_header::file_file_name)
12414 (line_header::file_full_name): Update.
12415
12416 2020-03-26 Tom Tromey <tom@tromey.com>
12417
12418 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12419 (macro_start_file, consume_improper_spaces)
12420 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12421 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12422 (dwarf_decode_macros): Move to macro.c.
12423 * dwarf2/macro.c: New file.
12424 * dwarf2/macro.h: New file.
12425 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12426
12427 2020-03-26 Tom Tromey <tom@tromey.com>
12428
12429 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12430 method.
12431 * dwarf2/section.c: New method. From
12432 read_indirect_string_at_offset_from.
12433 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12434 (read_indirect_string_at_offset_from): Move to section.c.
12435 (read_indirect_string_at_offset): Rewrite.
12436 (read_indirect_line_string_at_offset): Remove.
12437 (read_indirect_string, read_indirect_line_string)
12438 (dwarf_decode_macro_bytes): Update.
12439
12440 2020-03-26 Tom Tromey <tom@tromey.com>
12441
12442 * dwarf2/section.h (struct dwarf2_section_info)
12443 <overload_complaint>: Declare.
12444 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12445 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12446 Rename from dwarf2_section_buffer_overflow_complaint.
12447 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12448 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12449
12450 2020-03-26 Tom Tromey <tom@tromey.com>
12451
12452 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12453 Declare.
12454 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12455 Move from read.c.
12456 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12457 to section.c.
12458
12459 2020-03-26 Tom Tromey <tom@tromey.com>
12460
12461 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12462
12463 2020-03-26 Tom Tromey <tom@tromey.com>
12464
12465 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12466 "builder".
12467 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12468 parameter.
12469 (dwarf_decode_macros): Update.
12470
12471 2020-03-26 Tom Tromey <tom@tromey.com>
12472
12473 * dwarf2/read.c (read_attribute_value): Update.
12474 (read_indirect_string_from_dwz): Move to dwz.c; change into
12475 method.
12476 (dwarf_decode_macro_bytes): Update.
12477 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12478 * dwarf2/dwz.c: New file.
12479 * Makefile.in (COMMON_SFILES): Add dwz.c.
12480
12481 2020-03-26 Tom Tromey <tom@tromey.com>
12482
12483 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12484 * dwarf2/read.c: Add include.
12485 * dwarf2/index-write.c: Add include.
12486 * dwarf2/index-cache.c: Add include.
12487 * dwarf2/dwz.h: New file.
12488
12489 2020-03-25 Tom Tromey <tom@tromey.com>
12490
12491 * compile/compile-object-load.c (get_out_value_type): Mention
12492 correct symbol name in error message.
12493
12494 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12495
12496 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12497
12498 2020-03-25 Tom de Vries <tdevries@suse.de>
12499
12500 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12501 * symmisc.c (dump_symtab_1): Print user and includes fields.
12502 (maintenance_info_symtabs): Same.
12503
12504 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12505
12506 PR gdb/25534
12507 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12508 (riscv_regcache_cooked_write): New function.
12509 (riscv_push_dummy_call): Use new function.
12510 (riscv_return_value): Likewise.
12511
12512 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12513
12514 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12515 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12516 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12517 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12518 * infrun.c (follow_fork): Likewise.
12519 (follow_fork_inferior): Likewise.
12520 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12521 * linux-nat.h (class linux_nat_target): Likewise.
12522 * remote.c (class remote_target) <follow_fork>: Likewise.
12523 (remote_target::follow_fork): Likewise.
12524 * target-delegates.c: Re-generate.
12525 * target.c (default_follow_fork): Likewise.
12526 (target_follow_fork): Likewise.
12527 * target.h (struct target_ops) <follow_fork>: Likewise.
12528 (target_follow_fork): Likewise.
12529
12530 2020-03-24 Tom de Vries <tdevries@suse.de>
12531
12532 * psymtab.c (maintenance_info_psymtabs): Print user field.
12533
12534 2020-03-20 Tom Tromey <tromey@adacore.com>
12535
12536 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12537 const.
12538 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12539 const.
12540
12541 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12542
12543 * ptrace.m4: Don't check for ptrace declaration.
12544 * config.in: Re-generate.
12545 * configure: Re-generate.
12546 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12547 not defined.
12548
12549 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12550
12551 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12552 `PTRACE_TYPE_RET'.
12553 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12554 * sparc-nat.c (gdb_ptrace): Likewise.
12555 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12556
12557 2020-03-20 Tom Tromey <tromey@adacore.com>
12558
12559 * c-exp.y (lex_one_token): Fix assert.
12560
12561 2020-03-20 Tom Tromey <tromey@adacore.com>
12562
12563 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12564 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12565 strncpy call.
12566
12567 2020-03-20 Tom Tromey <tromey@adacore.com>
12568
12569 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12570
12571 2020-03-20 Tom Tromey <tromey@adacore.com>
12572
12573 * ada-valprint.c (print_variant_part): Remove parameters; switch
12574 to value-based API.
12575 (print_field_values): Likewise.
12576 (ada_val_print_struct_union): Likewise.
12577 (ada_value_print_1): Update.
12578
12579 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12580
12581 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12582 nbsd_nat_target instead of inf_ptrace_target.
12583 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12584 nbsd_nat_target.
12585
12586 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12587
12588 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12589 it to the ptrace call.
12590 * (store_registers): Likewise.
12591
12592 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12593
12594 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12595 it to the ptrace call.
12596 * (store_registers): Likewise.
12597
12598 2020-03-19 Luis Machado <luis.machado@linaro.org>
12599
12600 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12601 valid, fetch vg value from ptrace.
12602
12603 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12604 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12605 * inf-ptrace.c: Likewise.
12606 * (gdb_ptrace): Add.
12607 * (inf_ptrace_target::resume): Update.
12608 * (inf_ptrace_target::xfer_partial): Likewise.
12609 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12610 * (inf_ptrace_peek_poke): Update.
12611
12612 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12613
12614 * x86-bsd-nat.c (gdb_ptrace): New.
12615 * (x86bsd_dr_set): Add new argument `ptid'.
12616 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12617 x86bsd_dr_set_addr): Update.
12618
12619 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12620
12621 * remote.c (remote_target::process_stop_reply): Handle events for
12622 all threads differently.
12623
12624 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12625
12626 * completer.c (completion_tracker::remove_completion): Define new
12627 function.
12628 * completer.h (completion_tracker::remove_completion): Declare new
12629 function.
12630 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12631 when adding a C++ function symbol.
12632
12633 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12634
12635 * completer.c (completion_tracker::completion_hash_entry): Define
12636 new class.
12637 (advance_to_filename_complete_word_point): Call
12638 recompute_lowest_common_denominator.
12639 (completion_tracker::completion_tracker): Call discard_completions
12640 to setup the hash table.
12641 (completion_tracker::discard_completions): Allow for being called
12642 from the constructor, pass new equal function, and element deleter
12643 when constructing the hash table. Initialise new class member
12644 variables.
12645 (completion_tracker::maybe_add_completion): Remove use of
12646 m_entries_vec, and store more information into m_entries_hash.
12647 (completion_tracker::recompute_lcd_visitor): New function, most
12648 content taken from...
12649 (completion_tracker::recompute_lowest_common_denominator):
12650 ...here, this now just visits each item in the hash calling the
12651 above visitor.
12652 (completion_tracker::build_completion_result): Remove use of
12653 m_entries_vec, call recompute_lowest_common_denominator.
12654 * completer.h (completion_tracker::have_completions): Remove use
12655 of m_entries_vec.
12656 (completion_tracker::completion_hash_entry): Declare new class.
12657 (completion_tracker::recompute_lowest_common_denominator): Change
12658 function signature.
12659 (completion_tracker::recompute_lcd_visitor): Declare new function.
12660 (completion_tracker::m_entries_vec): Delete.
12661 (completion_tracker::m_entries_hash): Initialize to NULL.
12662 (completion_tracker::m_lowest_common_denominator_valid): New
12663 member variable.
12664 (completion_tracker::m_lowest_common_denominator_max_length): New
12665 member variable.
12666
12667 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12668
12669 * regformats/regdef.h: Put reg in gdb namespace.
12670
12671 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12672
12673 * i386-bsd-nat.c (gdb_ptrace): New.
12674 * (i386bsd_fetch_inferior_registers,
12675 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12676 * (i386bsd_fetch_inferior_registers,
12677 i386bsd_store_inferior_registers) Use gdb_ptrace.
12678
12679 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12680
12681 * amd64-bsd-nat.c (gdb_ptrace): New.
12682 * (amd64bsd_fetch_inferior_registers,
12683 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12684 * (amd64bsd_fetch_inferior_registers,
12685 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12686
12687 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12688
12689 * user-regs.c (user_reg::read): Rename to...
12690 (user_reg::xread): ...this.
12691 * (append_user_reg): Rename argument `read' to `xread'.
12692 * (user_reg_add_builtin): Likewise.
12693 * (user_reg_add): Likewise.
12694 * (value_of_user_reg): Likewise.
12695
12696 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12697
12698 * sparc-nat.c (gdb_ptrace): New.
12699 * sparc-nat.c (sparc_fetch_inferior_registers)
12700 (sparc_store_inferior_registers) Remove obsolete comment.
12701 * sparc-nat.c (sparc_fetch_inferior_registers)
12702 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12703 * sparc-nat.c (sparc_fetch_inferior_registers)
12704 (sparc_store_inferior_registers) Use gdb_ptrace.
12705
12706 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12707
12708 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12709 it to the ptrace call.
12710 * sh-nbsd-nat.c (store_registers): Likewise.
12711
12712 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12713
12714 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12715 nbsd_nat_target instead of inf_ptrace_target.
12716 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12717 nbsd_nat_target.
12718
12719 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12720
12721 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12722
12723 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12724
12725 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12726 <sys/sysctl.h>.
12727 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12728
12729 2020-03-17 Tom de Vries <tdevries@suse.de>
12730
12731 PR gdb/23710
12732 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12733 fields.
12734 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12735 fields.
12736 (process_imported_unit_die): Skip import of c++ CUs.
12737
12738 2020-03-16 Tom Tromey <tom@tromey.com>
12739
12740 * p-valprint.c (pascal_object_print_value): Initialize
12741 base_value.
12742
12743 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12744 Shahab Vahedi <shahab@synopsys.com>
12745
12746 * Makefile.in: Add arch/arc.o
12747 * configure.tgt: Likewise.
12748 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12749 (_initialize_arc_tdep): Don't initialize old target descriptions.
12750 (arc_read_description): New function to cache target descriptions.
12751 * arc-tdep.h (arc_read_description): Add proto type.
12752 * arch/arc.c: New file.
12753 * arch/arc.h: Likewise.
12754 * features/Makefile: Replace old target descriptions with new.
12755 * features/arc-arcompact.c: Remove.
12756 * features/arc-arcompact.xml: Likewise.
12757 * features/arc-v2.c: Likewise
12758 * features/arc-v2.xml: Likewise
12759 * features/arc/aux-arcompact.xml: New file.
12760 * features/arc/aux-v2.xml: Likewise.
12761 * features/arc/core-arcompact.xml: Likewise.
12762 * features/arc/core-v2.xml: Likewise.
12763 * features/arc/aux-arcompact.c: Generate.
12764 * features/arc/aux-v2.c: Likewise.
12765 * features/arc/core-arcompact.c: Likewise.
12766 * features/arc/core-v2.c: Likewise.
12767 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12768
12769 2020-03-16 Tom Tromey <tromey@adacore.com>
12770
12771 PR gdb/25663:
12772 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12773 putting value into bcache.
12774
12775 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12776
12777 PR gdb/21500
12778 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12779 to...
12780 (amd64_windows_init_abi_common): ... this. Don't set size of
12781 long type.
12782 (amd64_windows_init_abi): New function.
12783 (amd64_cygwin_init_abi): New function.
12784 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12785 the Cygwin OS ABI.
12786 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12787 comment.
12788
12789 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12790
12791 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12792 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12793 (pe_import_directory_entry): New struct type.
12794 (is_linked_with_cygwin_dll): New function.
12795 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12796 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12797 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12798
12799 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12800
12801 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12802 i386_cygwin_core_osabi_sniffer.
12803
12804 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12805
12806 * i386-cygwin-tdep.c: Rename to...
12807 * i386-windows-tdep.c: ... this.
12808 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12809 i386-windows-tdep.c.
12810 * configure.tgt: Likewise.
12811
12812 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12813
12814 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12815 * osabi.c (gdb_osabi_names): Add "Windows".
12816 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12817 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12818 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12819 i386_cygwin_osabi_sniffer.
12820 (_initialize_i386_cygwin_tdep): Register OS ABI
12821 GDB_OSABI_WINDOWS for i386.
12822 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12823 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12824 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12825 for x86-64.
12826 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12827 when the target matches '*-*-mingw*'.
12828
12829 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12830
12831 * defs.h (enum gdb_osabi): Move to...
12832 * osabi.h (enum gdb_osabi): ... here.
12833 * gdbarch.sh: Include osabi.h in gdbarch.h.
12834 * gdbarch.h: Re-generate.
12835
12836 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12837
12838 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12839 function.
12840 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12841
12842 2020-03-14 Tom Tromey <tom@tromey.com>
12843
12844 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12845 for C++.
12846 (c_type_print_modifier): Likewise. Add "language" parameter.
12847 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12848 (c_type_print_base_1): Update.
12849 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12850 constants.
12851 * type-stack.c (type_stack::insert): Handle tp_atomic and
12852 tp_restrict.
12853 (type_stack::follow_type_instance_flags): Likewise.
12854 (type_stack::follow_types): Likewise. Merge type-following code.
12855 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12856 (space_identifier, cv_with_space_id)
12857 (const_or_volatile_or_space_identifier_noopt)
12858 (const_or_volatile_or_space_identifier): Remove.
12859 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12860 rules.
12861 (ptr_operator, typebase): Update.
12862 (enum token_flag) <FLAG_C>: New constant.
12863 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12864 "_Atomic".
12865 (lex_one_token): Handle FLAG_C.
12866
12867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12868
12869 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12870 it to the ptrace call.
12871 * m68k-bsd-nat.c (store_registers): Likewise.
12872
12873 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12874
12875 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12876 gdb_byte *.
12877 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12878 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12879 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12880
12881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12882
12883 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12884 nbsd_nat_target instead of inf_ptrace_target.
12885 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12886 nbsd_nat_target.
12887
12888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12889
12890 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12891 register_t.
12892
12893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12894
12895 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12896 it to the ptrace call.
12897 * alpha-bsd-nat.c (store_registers): Likewise.
12898
12899 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12900
12901 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12902 includes.
12903 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12904 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12905 fill_fpregset): Likewise.
12906
12907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12908
12909 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12910 nbsd_nat_target instead of inf_ptrace_target.
12911 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12912 nbsd_nat_target.
12913
12914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12915
12916 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12917 register_t.
12918
12919 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12920
12921 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12922 it to the ptrace call.
12923 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12924 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12925 * arm-nbsd-nat.c (store_register): Likewise.
12926 * arm-nbsd-nat.c (store_regs): Likewise.
12927 * arm-nbsd-nat.c (store_fp_register): Likewise.
12928 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12929
12930 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12931
12932 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12933 nbsd_nat_target instead of inf_ptrace_target.
12934 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12935 nbsd_nat_target.
12936
12937 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12938
12939 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12940 it to the ptrace call.
12941 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12942
12943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12944
12945 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12946 it to the ptrace call.
12947 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12948
12949 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12950
12951 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12952 gdb_byte *.
12953 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12954
12955 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12956
12957 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12958 instead of inf_ptrace_target.
12959 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12960 nbsd_nat_target.
12961
12962 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12963
12964 * mips-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 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12970 register_t.
12971
12972 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12973
12974 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12975 register_t.
12976
12977 2020-03-13 Tom Tromey <tom@tromey.com>
12978
12979 * value.h (val_print): Don't declare.
12980 * valprint.h (val_print_array_elements)
12981 (val_print_scalar_formatted, generic_val_print): Don't declare.
12982 * valprint.c (generic_val_print_array): Take a struct value.
12983 (generic_val_print_ptr, generic_val_print_memberptr)
12984 (generic_val_print_bool, generic_val_print_int)
12985 (generic_val_print_char, generic_val_print_complex)
12986 (generic_val_print): Remove.
12987 (generic_value_print): Update.
12988 (do_val_print): Remove unused parameters. Don't call
12989 la_val_print.
12990 (val_print): Remove.
12991 (common_val_print): Update. Don't call value_check_printable.
12992 (val_print_scalar_formatted, val_print_array_elements): Remove.
12993 * rust-lang.c (rust_val_print): Remove.
12994 (rust_language_defn): Update.
12995 * p-valprint.c (pascal_val_print): Remove.
12996 (pascal_value_print_inner): Update.
12997 (pascal_object_print_val_fields, pascal_object_print_val):
12998 Remove.
12999 (pascal_object_print_static_field): Update.
13000 * p-lang.h (pascal_val_print): Don't declare.
13001 * p-lang.c (pascal_language_defn): Update.
13002 * opencl-lang.c (opencl_language_defn): Update.
13003 * objc-lang.c (objc_language_defn): Update.
13004 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13005 * m2-lang.h (m2_val_print): Don't declare.
13006 * m2-lang.c (m2_language_defn): Update.
13007 * language.h (struct language_defn) <la_val_print>: Remove.
13008 * language.c (unk_lang_value_print_inner): Rename. Change
13009 argument types.
13010 (unknown_language_defn, auto_language_defn): Update.
13011 * go-valprint.c (go_val_print): Remove.
13012 * go-lang.h (go_val_print): Don't declare.
13013 * go-lang.c (go_language_defn): Update.
13014 * f-valprint.c (f_val_print): Remove.
13015 * f-lang.h (f_value_print): Don't declare.
13016 * f-lang.c (f_language_defn): Update.
13017 * d-valprint.c (d_val_print): Remove.
13018 * d-lang.h (d_value_print): Don't declare.
13019 * d-lang.c (d_language_defn): Update.
13020 * cp-valprint.c (cp_print_value_fields)
13021 (cp_print_value_fields_rtti, cp_print_value): Remove.
13022 (cp_print_static_field): Update.
13023 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13024 (c_val_print_struct, c_val_print_union, c_val_print_int)
13025 (c_val_print_memberptr, c_val_print): Remove.
13026 * c-lang.h (c_val_print_array, cp_print_value_fields)
13027 (cp_print_value_fields_rtti): Don't declare.
13028 * c-lang.c (c_language_defn, cplus_language_defn)
13029 (asm_language_defn, minimal_language_defn): Update.
13030 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13031 (ada_val_print_enum): Take a struct value.
13032 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13033 (ada_val_print): Remove.
13034 (ada_value_print_1): Update.
13035 (printable_val_type): Remove.
13036 * ada-lang.h (ada_val_print): Don't declare.
13037 * ada-lang.c (ada_language_defn): Update.
13038
13039 2020-03-13 Tom Tromey <tom@tromey.com>
13040
13041 * valprint.c (do_val_print): Update.
13042 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13043 a struct value.
13044 (value_to_value_object_no_release): Declare.
13045 * python/py-value.c (value_to_value_object_no_release): New
13046 function.
13047 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13048 struct value.
13049 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13050 function.
13051 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13052 a struct value.
13053 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13054 Declare.
13055 (gdbscm_apply_val_pretty_printer): Take a struct value.
13056 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13057 value.
13058 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13059 value.
13060 * extension-priv.h (struct extension_language_ops)
13061 <apply_val_pretty_printer>: Take a struct value.
13062 * cp-valprint.c (cp_print_value): Create a struct value.
13063 (cp_print_value): Update.
13064
13065 2020-03-13 Tom Tromey <tom@tromey.com>
13066
13067 * ada-valprint.c (print_field_values): Call common_val_print.
13068
13069 2020-03-13 Tom Tromey <tom@tromey.com>
13070
13071 * ada-valprint.c (val_print_packed_array_elements): Remove
13072 bitoffset and val parameters. Call common_val_print.
13073 (ada_val_print_string): Remove offset, address, and original_value
13074 parameters.
13075 (ada_val_print_array): Update.
13076 (ada_value_print_array): New function.
13077 (ada_value_print_1): Call it.
13078
13079 2020-03-13 Tom Tromey <tom@tromey.com>
13080
13081 * ada-valprint.c (ada_value_print): Use common_val_print.
13082
13083 2020-03-13 Tom Tromey <tom@tromey.com>
13084
13085 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13086
13087 2020-03-13 Tom Tromey <tom@tromey.com>
13088
13089 * ada-valprint.c (ada_value_print_num): New function.
13090 (ada_value_print_1): Use it.
13091
13092 2020-03-13 Tom Tromey <tom@tromey.com>
13093
13094 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13095
13096 2020-03-13 Tom Tromey <tom@tromey.com>
13097
13098 * ada-valprint.c (ada_value_print_ptr): New function.
13099 (ada_value_print_1): Use it.
13100
13101 2020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13104 call common_val_print.
13105 (ada_val_print_1): Update.
13106 (ada_value_print_1): New function.
13107 (ada_value_print_inner): Rewrite.
13108
13109 2020-03-13 Tom Tromey <tom@tromey.com>
13110
13111 * cp-valprint.c (cp_print_value_fields): Update.
13112 (cp_print_value): New function.
13113
13114 2020-03-13 Tom Tromey <tom@tromey.com>
13115
13116 * m2-valprint.c (m2_value_print_inner): Use
13117 cp_print_value_fields.
13118 * cp-valprint.c (cp_print_value_fields): New function.
13119 * c-valprint.c (c_value_print_struct): New function.
13120 (c_value_print_inner): Use c_value_print_struct.
13121 * c-lang.h (cp_print_value_fields): Declare.
13122
13123 2020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * c-valprint.c (c_value_print_array): 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_memberptr): 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_int): 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_ptr): New function.
13141 (c_value_print_inner): Use it.
13142
13143 2020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * c-valprint.c (c_value_print_inner): Rewrite.
13146
13147 2020-03-13 Tom Tromey <tom@tromey.com>
13148
13149 * valprint.c (generic_value_print_complex): New function.
13150 (generic_value_print): Use it.
13151
13152 2020-03-13 Tom Tromey <tom@tromey.com>
13153
13154 * valprint.c (generic_val_print_float): Don't call
13155 val_print_scalar_formatted.
13156 (generic_val_print, generic_value_print): Update.
13157
13158 2020-03-13 Tom Tromey <tom@tromey.com>
13159
13160 * valprint.c (generic_value_print_char): 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_int): New function.
13166 (generic_value_print): Use it.
13167
13168 2020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * valprint.c (generic_value_print_bool): New function.
13171 (generic_value_print): Use it.
13172
13173 2020-03-13 Tom Tromey <tom@tromey.com>
13174
13175 * valprint.c (generic_val_print_func): Simplify.
13176 (generic_val_print, generic_value_print): Update.
13177
13178 2020-03-13 Tom Tromey <tom@tromey.com>
13179
13180 * valprint.c (generic_val_print_flags): Remove.
13181 (generic_val_print, generic_value_print): Update.
13182 (val_print_type_code_flags): Add original_value parameter.
13183
13184 2020-03-13 Tom Tromey <tom@tromey.com>
13185
13186 * valprint.c (generic_val_print): Update.
13187 (generic_value_print): Update.
13188 * valprint.c (generic_val_print_enum): Don't call
13189 val_print_scalar_formatted.
13190
13191 2020-03-13 Tom Tromey <tom@tromey.com>
13192
13193 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13194 * valprint.c (generic_value_print_ptr): New function.
13195
13196 2020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * valprint.c (generic_value_print): Rewrite.
13199
13200 2020-03-13 Tom Tromey <tom@tromey.com>
13201
13202 * p-valprint.c (pascal_object_print_value_fields)
13203 (pascal_object_print_value): New functions.
13204
13205 2020-03-13 Tom Tromey <tom@tromey.com>
13206
13207 * p-valprint.c (pascal_value_print_inner): Rewrite.
13208
13209 2020-03-13 Tom Tromey <tom@tromey.com>
13210
13211 * f-valprint.c (f_value_print_innner): Rewrite.
13212
13213 2020-03-13 Tom Tromey <tom@tromey.com>
13214
13215 * m2-valprint.c (m2_print_unbounded_array): New overload.
13216 (m2_print_unbounded_array): Update.
13217 (m2_print_array_contents): Take a struct value.
13218 (m2_value_print_inner): Rewrite.
13219
13220 2020-03-13 Tom Tromey <tom@tromey.com>
13221
13222 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13223 (d_value_print_inner): New function.
13224 * d-lang.h (d_value_print_inner): Declare.
13225 * d-lang.c (d_language_defn): Use d_value_print_inner.
13226
13227 2020-03-13 Tom Tromey <tom@tromey.com>
13228
13229 * go-valprint.c (go_value_print_inner): New function.
13230 * go-lang.h (go_value_print_inner): Declare.
13231 * go-lang.c (go_language_defn): Use go_value_print_inner.
13232
13233 2020-03-13 Tom Tromey <tom@tromey.com>
13234
13235 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13236 API.
13237 (rust_val_print): Rewrite.
13238 (rust_value_print_inner): New function, from rust_val_print.
13239 (rust_language_defn): Use rust_value_print_inner.
13240
13241 2020-03-13 Tom Tromey <tom@tromey.com>
13242
13243 * ada-valprint.c (ada_value_print_inner): New function.
13244 * ada-lang.h (ada_value_print_inner): Declare.
13245 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13246
13247 2020-03-13 Tom Tromey <tom@tromey.com>
13248
13249 * f-valprint.c (f_value_print_innner): New function.
13250 * f-lang.h (f_value_print_innner): Declare.
13251 * f-lang.c (f_language_defn): Use f_value_print_innner.
13252
13253 2020-03-13 Tom Tromey <tom@tromey.com>
13254
13255 * p-valprint.c (pascal_value_print_inner): New function.
13256 * p-lang.h (pascal_value_print_inner): Declare.
13257 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13258
13259 2020-03-13 Tom Tromey <tom@tromey.com>
13260
13261 * m2-valprint.c (m2_value_print_inner): New function.
13262 * m2-lang.h (m2_value_print_inner): Declare.
13263 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13264
13265 2020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13268 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13269 * c-valprint.c (c_value_print_inner): New function.
13270 * c-lang.h (c_value_print_inner): Declare.
13271 * c-lang.c (c_language_defn, cplus_language_defn)
13272 (asm_language_defn, minimal_language_defn): Use
13273 c_value_print_inner.
13274
13275 2020-03-13 Tom Tromey <tom@tromey.com>
13276
13277 * p-valprint.c (pascal_object_print_value_fields): Now static.
13278 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13279
13280 2020-03-13 Tom Tromey <tom@tromey.com>
13281
13282 * c-valprint.c (c_val_print_array): Simplify.
13283
13284 2020-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * valprint.c (value_print_array_elements): New function.
13287 * valprint.h (value_print_array_elements): Declare.
13288
13289 2020-03-13 Tom Tromey <tom@tromey.com>
13290
13291 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13292 * mips-tdep.c (mips_print_register): Use
13293 value_print_scalar_formatted.
13294
13295 2020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * valprint.h (value_print_scalar_formatted): Declare.
13298 * valprint.c (value_print_scalar_formatted): New function.
13299
13300 2020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * valprint.h (generic_value_print): Declare.
13303 * valprint.c (generic_value_print): New function.
13304
13305 2020-03-13 Tom Tromey <tom@tromey.com>
13306
13307 * valprint.c (do_val_print): Call la_value_print_inner, if
13308 available.
13309 * rust-lang.c (rust_language_defn): Update.
13310 * p-lang.c (pascal_language_defn): Update.
13311 * opencl-lang.c (opencl_language_defn): Update.
13312 * objc-lang.c (objc_language_defn): Update.
13313 * m2-lang.c (m2_language_defn): Update.
13314 * language.h (struct language_defn) <la_value_print_inner>: New
13315 member.
13316 * language.c (unknown_language_defn, auto_language_defn): Update.
13317 * go-lang.c (go_language_defn): Update.
13318 * f-lang.c (f_language_defn): Update.
13319 * d-lang.c (d_language_defn): Update.
13320 * c-lang.c (c_language_defn, cplus_language_defn)
13321 (asm_language_defn, minimal_language_defn): Update.
13322 * ada-lang.c (ada_language_defn): Update.
13323
13324 2020-03-13 Tom Tromey <tom@tromey.com>
13325
13326 * c-valprint.c (c_value_print): Use common_val_print.
13327
13328 2020-03-13 Tom Tromey <tom@tromey.com>
13329
13330 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13331
13332 2020-03-13 Tom Tromey <tom@tromey.com>
13333
13334 * f-valprint.c (f77_print_array_1, f_val_print): Use
13335 common_val_print.
13336
13337 2020-03-13 Tom Tromey <tom@tromey.com>
13338
13339 * riscv-tdep.c (riscv_print_one_register_info): Use
13340 common_val_print.
13341
13342 2020-03-13 Tom Tromey <tom@tromey.com>
13343
13344 * mi/mi-main.c (output_register): Use common_val_print.
13345
13346 2020-03-13 Tom Tromey <tom@tromey.com>
13347
13348 * infcmd.c (default_print_one_register_info): Use
13349 common_val_print.
13350
13351 2020-03-13 Tom Tromey <tom@tromey.com>
13352
13353 * valprint.h (common_val_print_checked): Declare.
13354 * valprint.c (common_val_print_checked): New function.
13355 * stack.c (print_frame_arg): Use common_val_print_checked.
13356
13357 2020-03-13 Tom Tromey <tom@tromey.com>
13358
13359 * valprint.c (do_val_print): New function, from val_print.
13360 (val_print): Use do_val_print.
13361 (common_val_print): Use do_val_print.
13362
13363 2020-03-13 Tom Tromey <tom@tromey.com>
13364
13365 * valprint.c (value_print): Use scoped_value_mark.
13366
13367 2020-03-13 Tom de Vries <tdevries@suse.de>
13368
13369 PR symtab/25646
13370 * psymtab.c (partial_symtab::partial_symtab): Don't set
13371 globals_offset and statics_offset. Push element onto
13372 current_global_psymbols and current_static_psymbols stacks.
13373 (concat): New function.
13374 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13375 element from current_global_psymbols and current_static_psymbols
13376 stacks. Concat popped elements to global_psymbols and
13377 static_symbols.
13378 (add_psymbol_to_list): Use current_global_psymbols and
13379 current_static_psymbols stacks.
13380 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13381 current_static_psymbols fields.
13382
13383 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13384
13385 * corelow.c (sniff_core_bfd): Remove.
13386 (class core_target) <m_core_vec>: Remove.
13387 (core_target::core_target): Update.
13388 (core_file_fns): Remove.
13389 (deprecated_add_core_fns): Remove.
13390 (default_core_sniffer): Remove.
13391 (sniff_core_bfd): Remove.
13392 (default_check_format): Remove.
13393 (gdb_check_format): Remove.
13394 (core_target_open): Update.
13395 (core_target::get_core_register_section): Update.
13396 (get_core_registers_cb): Update.
13397 (core_target::fetch_registers): Update.
13398 * gdbcore.h (struct core_fns): Remove.
13399 (deprecated_add_core_fns): Remove.
13400 (default_core_sniffer): Remove.
13401 (default_check_format): Remove.
13402
13403 2020-03-12 Tom Tromey <tom@tromey.com>
13404
13405 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13406 CORE_ADDR.
13407 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13408
13409 2020-03-12 Tom Tromey <tom@tromey.com>
13410
13411 * remote.c (remote_target::download_tracepoint)
13412 (remote_target::enable_tracepoint)
13413 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13414 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13415 sprintf_vma.
13416
13417 2020-03-12 Tom Tromey <tom@tromey.com>
13418
13419 * symfile-mem.c: Update CORE_ADDR size assert.
13420
13421 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * selftest.m4: Move to gdbsupport/.
13424 * acinclude.m4: Update path to selftest.m4.
13425
13426 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13427
13428 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13429 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13430 gdbarch-selfselftests.c and selftest-arch.c.
13431 (SUBDIR_UNITTESTS_OBS): Rename to...
13432 (SELFTESTS_OBS): ... this.
13433 (COMMON_SFILES): Remove disasm-selftests.c and
13434 gdbarch-selftests.c.
13435 * configure.ac: Don't add selftest-arch.{c,o} to
13436 CONFIG_{SRCS,OBS}.
13437 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13438 preprocessor conditions.
13439
13440 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13441
13442 * configure.ac: Don't source bfd/development.sh.
13443 * selftest.m4: Modify comment.
13444 * configure: Re-generate.
13445
13446 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13447
13448 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13449 not "true" or "false".
13450 * configure: Re-generate.
13451
13452 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13453
13454 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13455 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13456 renamed to arm_nbsd_supply_gregset.
13457 (fetch_register): Update to call arm_nbsd_supply_gregset.
13458 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13459 (arm_netbsd_nat_target::fetch_registers): Update.
13460 (fetch_elfcore_registers): Removed.
13461 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13462 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13463 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13464 not require NetBSD system headers.
13465 (arm_nbsd_regset): New struct.
13466 (arm_nbsd_iterate_over_regset_sections): New function.
13467 (arm_netbsd_init_abi_common): Updated to call
13468 set_gdbarch_iterate_over_regset_sections.
13469 * arm-nbsd-tdep.h: New file.
13470
13471 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13472
13473 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13474 recursion.
13475
13476 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13477
13478 * configure: Re-generate.
13479
13480 2020-03-11 Tom Tromey <tromey@adacore.com>
13481
13482 * ada-typeprint.c (print_choices): Fix comment.
13483
13484 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13485
13486 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13487 previous item in the list, when the list has no items.
13488
13489 2020-03-11 Tom de Vries <tdevries@suse.de>
13490
13491 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13492 PROP_LOCLIST handling code.
13493
13494 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13495
13496 * buildsym-legacy.c (record_line): Pass extra parameter to
13497 record_line.
13498 * buildsym.c (buildsym_compunit::record_line): Take an extra
13499 parameter, reduce duplication in the line table, and record the
13500 is_stmt flag in the line table.
13501 * buildsym.h (buildsym_compunit::record_line): Add extra
13502 parameter.
13503 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13504 non-statement lines.
13505 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13506 this to the symtab builder.
13507 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13508 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13509 through to dwarf_record_line_1.
13510 * infrun.c (process_event_stop_test): When stepping, don't stop at
13511 a non-statement instruction, and only refresh the step info when
13512 we land in the middle of a line's range. Also add an extra
13513 comment.
13514 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13515 field.
13516 * record-btrace.c (btrace_find_line_range): Only record lines
13517 marked as is-statement.
13518 * stack.c (frame_show_address): Show the frame address if we are
13519 in a non-statement sal.
13520 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13521 (maintenance_print_one_line_table): Print a header for the is_stmt
13522 column, and include is_stmt information in the output.
13523 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13524 preference to non-statements.
13525 (find_pcs_for_symtab_line): Prefer is-statement entries.
13526 (find_line_common): Likewise.
13527 * symtab.h (struct linetable_entry): Add is_stmt field.
13528 (struct symtab_and_line): Likewise.
13529 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13530 arranging the line table.
13531
13532 2020-03-07 Tom de Vries <tdevries@suse.de>
13533
13534 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13535 DIE.
13536
13537 2020-03-07 Tom Tromey <tom@tromey.com>
13538
13539 * valops.c (value_literal_complex): Remove obsolete comment.
13540 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13541 comment.
13542
13543 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13544
13545 * infrun.h: Forward-declare thread_info.
13546 (set_step_info): Add thread_info parameter, add doc.
13547 * infrun.c (set_step_info): Add thread_info parameter, move doc
13548 to header.
13549 * infrun.c (process_event_stop_test): Pass thread to
13550 set_step_info call.
13551 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13552 set_step_info.
13553 (prepare_one_step): Add thread_info parameter, pass it to
13554 set_step_frame and prepare_one_step (recursive) call.
13555 (step_1): Pass thread to prepare_one_step call.
13556 (step_command_fsm::should_stop): Pass thread to
13557 prepare_one_step.
13558 (until_next_fsm): Pass thread to set_step_frame call.
13559 (finish_command): Pass thread to set_step_info call.
13560
13561 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13562
13563 * windows-tdep.c (windows_solib_create_inferior_hook):
13564 Check if inferior is running.
13565
13566 2020-03-06 Tom de Vries <tdevries@suse.de>
13567
13568 * NEWS: Fix "the the".
13569 * ctfread.c: Same.
13570
13571 2020-03-06 Tom de Vries <tdevries@suse.de>
13572
13573 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13574
13575 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13576
13577 * .dir-locals.el: Add a comment referencing the other copies of
13578 this file.
13579
13580 2020-03-05 John Baldwin <jhb@FreeBSD.org>
13581
13582 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13583 psargs.
13584
13585 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13586
13587 * .gitattributes: New file.
13588
13589 2020-03-04 Tom Tromey <tom@tromey.com>
13590
13591 * symmisc.c (print_symbol_bcache_statistics)
13592 (print_objfile_statistics): Update.
13593 * symfile.c (allocate_symtab): Use intern.
13594 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13595 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13596 macro_cache>: Remove.
13597 <string_cache>: New member.
13598 (struct objfile) <intern>: New methods.
13599 * elfread.c (elf_symtab_read): Use intern.
13600 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13601 (dwarf2_compute_name, dwarf2_physname)
13602 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13603 names.
13604 (guess_partial_die_structure_name): Update.
13605 (partial_die_info::fixup): Intern name.
13606 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13607 name.
13608 (dwarf2_name): Intern name. Update.
13609 * buildsym.c (buildsym_compunit::get_macro_table): Use
13610 string_cache.
13611
13612 2020-03-04 Tom Tromey <tom@tromey.com>
13613
13614 * jit.c (bfd_open_from_target_memory): Make "target" const.
13615 * corefile.c (gnutarget): Now const.
13616 * gdbcore.h (gnutarget): Now const.
13617
13618 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13619
13620 * NEWS: Mention support for WOW64 processes.
13621 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13622 (amd64_windows_segment_register_p): Remove static.
13623 (_initialize_amd64_windows_nat): Update.
13624 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13625 * i386-windows-nat.c (context_offset): Update.
13626 (i386_mappings): Rename and remove static.
13627 (i386_windows_segment_register_p): Remove static.
13628 (_initialize_i386_windows_nat): Update.
13629 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13630 (STATUS_WX86_SINGLE_STEP): New macro.
13631 (EnumProcessModulesEx): New macro.
13632 (Wow64SuspendThread): New macro.
13633 (Wow64GetThreadContext): New macro.
13634 (Wow64SetThreadContext): New macro.
13635 (Wow64GetThreadSelectorEntry): New macro.
13636 (windows_set_context_register_offsets): Add static.
13637 (windows_set_segment_register_p): Likewise.
13638 (windows_add_thread): Adapt for WOW64 processes.
13639 (windows_fetch_one_register): Likewise.
13640 (windows_nat_target::fetch_registers): Likewise.
13641 (windows_store_one_register): Likewise.
13642 (display_selector): Likewise.
13643 (display_selectors): Likewise.
13644 (handle_exception): Likewise.
13645 (windows_continue): Likewise.
13646 (windows_nat_target::resume): Likewise.
13647 (windows_add_all_dlls): Likewise.
13648 (do_initial_windows_stuff): Likewise.
13649 (windows_nat_target::attach): Likewise.
13650 (windows_get_exec_module_filename): Likewise.
13651 (windows_nat_target::create_inferior): Likewise.
13652 (windows_xfer_siginfo): Likewise.
13653 (_initialize_loadable): Initialize Wow64SuspendThread,
13654 Wow64GetThreadContext, Wow64SetThreadContext,
13655 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13656 * windows-nat.h (windows_set_context_register_offsets):
13657 Remove declaration.
13658 (windows_set_segment_register_p): Likewise.
13659 (i386_windows_segment_register_p): Add declaration.
13660 (amd64_windows_segment_register_p): Likewise.
13661
13662 2020-03-04 Luis Machado <luis.machado@linaro.org>
13663
13664 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13665 in "info registers" for AArch64/ARM.
13666
13667 The change caused "info registers" to not print GPR's.
13668
13669 gdb/ChangeLog:
13670
13671 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13672
13673 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13674 when reg->group is empty and reggroup is not.
13675
13676 2020-03-03 Tom Tromey <tromey@adacore.com>
13677
13678 * dwarf2/frame.c (struct dwarf2_frame_cache)
13679 <checked_tailcall_bottom, entry_cfa_sp_offset,
13680 entry_cfa_sp_offset_p>: Remove members.
13681 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13682 (dwarf2_frame_prev_register): Don't call
13683 dwarf2_tailcall_sniffer_first.
13684 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13685 * frame-unwind.c (add_unwinder): New fuction.
13686 (frame_unwind_init): Use it. Add tailcall unwinder.
13687
13688 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13689 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13690
13691 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13692 value should be printed as true.
13693
13694 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13695
13696 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13697 (windows_init_abi): Set and use windows_so_ops.
13698
13699 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13700
13701 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13702 when verifying if dealing with a convenience variable.
13703
13704 2020-03-03 Luis Machado <luis.machado@linaro.org>
13705
13706 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13707
13708 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13709
13710 * infrun.c (gdbarch_supports_displaced_stepping): New.
13711 (use_displaced_stepping): Break up conditions in smaller pieces.
13712 Use gdbarch_supports_displaced_stepping.
13713 (displaced_step_prepare_throw): Use
13714 gdbarch_supports_displaced_stepping.
13715
13716 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13717
13718 * NEWS: Mention new behaviour of the history filename.
13719 * top.c (write_history_p): Add comment.
13720 (show_write_history_p): Add header comment, give a different
13721 message when history writing is on, but the history filename is
13722 empty.
13723 (history_filename): Add comment.
13724 (history_filename_empty): New function.
13725 (show_history_filename): Add header comment, give a different
13726 message when the filename is empty.
13727 (init_history): Compare history_filename against nullptr, and only
13728 read history if the filename is not empty.
13729 (set_history_filename): Add header comment, and only make
13730 non-empty filenames absolute.
13731 (init_main): Make the filename argument to 'set history filename'
13732 optional.
13733
13734 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13735
13736 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13737 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13738 (fetch_fp_register): Update.
13739 (fetch_fp_regs): Update.
13740 (store_fp_register): Update.
13741 (store_fp_regs): Update.
13742 (arm_netbsd_nat_target::read_description): New function.
13743 (fetch_elfcore_registers): Update.
13744
13745 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13746
13747 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13748 general_thread if the stop reply is missing a thread-id.
13749 (remote_target::process_stop_reply): Use the first non-exited
13750 thread if the target didn't pass a thread-id.
13751 * infrun.c (do_target_wait): Move call to
13752 switch_to_inferior_no_thread to ....
13753 (do_target_wait_1): ... here.
13754
13755 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13756
13757 * debuginfod-support.c: Include defs.h first.
13758
13759 2020-02-28 Tom de Vries <tdevries@suse.de>
13760
13761 * symfile.c (set_initial_language): Use default language for lookup.
13762
13763 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13764
13765 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13766 reader variable, pass `this` to read_cutu_die_from_dwo.
13767
13768 2020-02-27 Aaron Merey <amerey@redhat.com>
13769
13770 * source.c (open_source_file): Check for nullptr when computing
13771 srcpath.
13772
13773 2020-02-27 Tom Tromey <tromey@adacore.com>
13774
13775 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13776 member.
13777 (dwarf2_add_field): Don't update nfields.
13778 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13779
13780 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13781
13782 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13783 abs.
13784
13785 2020-02-26 Tom Tromey <tom@tromey.com>
13786
13787 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13788 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13789 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13790 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13791 per_cu_data.
13792
13793 2020-02-26 Tom Tromey <tom@tromey.com>
13794
13795 * dwarf2/index-write.c (psym_index_map): Change type.
13796 (add_address_entry_worker, write_one_signatured_type)
13797 (recursively_count_psymbols, recursively_write_psymbols)
13798 (class debug_names, psyms_seen_size, write_gdbindex)
13799 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13800
13801 2020-02-26 Aaron Merey <amerey@redhat.com>
13802
13803 * Makefile.in: Handle optional debuginfod support.
13804 * NEWS: Update.
13805 * README: Add --with-debuginfod summary.
13806 * config.in: Regenerate.
13807 * configure: Regenerate.
13808 * configure.ac: Handle optional debuginfod support.
13809 * debuginfod-support.c: debuginfod helper functions.
13810 * debuginfod-support.h: Ditto.
13811 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13812 summary.
13813 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13814 when a dwz file cannot be found.
13815 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13816 debuginfo file cannot be found.
13817 * source.c (open_source_file): Query debuginfod servers when a
13818 source file cannot be found.
13819 * top.c (print_gdb_configuration): Include
13820 --{with,without}-debuginfod in the output.
13821
13822 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13823
13824 * thread.c (thr_try_catch_cmd): Print thread name.
13825
13826 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13827
13828 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13829 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13830 dwarf2_fetch_die_type_sect_off): Move to...
13831 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13832 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13833 dwarf2_fetch_die_type_sect_off): ... here.
13834 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13835 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13836 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13837
13838 2020-02-26 Tom de Vries <tdevries@suse.de>
13839
13840 PR gdb/25603
13841 * symfile.c (set_initial_language): Exit-early if
13842 language_mode == language_mode_manual.
13843
13844 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13845
13846 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13847 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13848 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13849
13850 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13851
13852 * gdbtypes.c (create_array_type_with_stride): Handle negative
13853 array strides.
13854 * valarith.c (value_subscripted_rvalue): Likewise.
13855
13856 2020-02-25 Luis Machado <luis.machado@linaro.org>
13857
13858 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13859
13860 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13861
13862 * loc.h (dwarf2_get_die_type): Move to...
13863 * read.h (dwarf2_get_die_type): ... here.
13864 * read.c (dwarf2_get_die_type): Move doc to header.
13865
13866 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13867
13868 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13869 'gnulib/Makefile.in' to the list.
13870
13871 2020-02-24 Tom Tromey <tom@tromey.com>
13872
13873 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13874 Remove.
13875 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13876 XOBNEWVEC.
13877
13878 2020-02-24 Tom Tromey <tom@tromey.com>
13879
13880 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13881 New method.
13882 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13883 (dw2_do_instantiate_symtab, dw2_get_file_names)
13884 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13885
13886 2020-02-24 Tom Tromey <tom@tromey.com>
13887
13888 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13889 make_scoped_restore.
13890 (dwarf2_psymtab::read_symtab): Don't clear
13891 reading_partial_symbols.
13892
13893 2020-02-24 Tom de Vries <tdevries@suse.de>
13894
13895 PR gdb/25592
13896 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13897
13898 2020-02-24 Tom de Vries <tdevries@suse.de>
13899
13900 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13901 commands layout next/prev/regs.
13902
13903 2020-02-22 Tom Tromey <tom@tromey.com>
13904
13905 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13906 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13907
13908 2020-02-22 Tom Tromey <tom@tromey.com>
13909
13910 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13911
13912 2020-02-22 Tom Tromey <tom@tromey.com>
13913
13914 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13915 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13916 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13917 * tui/tui.c (_initialize_tui): Add usage text.
13918
13919 2020-02-22 Tom Tromey <tom@tromey.com>
13920
13921 * tui/tui-win.c (tui_set_focus_command)
13922 (tui_set_win_height_command): Use error_no_arg.
13923 (_initialize_tui_win): Update help text.
13924 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13925
13926 2020-02-22 Tom Tromey <tom@tromey.com>
13927
13928 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13929 * tui/tui-disasm.h (struct tui_disasm_window)
13930 <display_start_addr>: Declare.
13931 * tui/tui-source.h (struct tui_source_window)
13932 <display_start_addr>: Declare.
13933 * tui/tui-winsource.h (struct tui_source_window_base)
13934 <show_source_line, display_start_addr>: New methods.
13935 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13936 Rename and move to protected section.
13937 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13938 (tui_source_window_base::do_erase_source_content): Update.
13939 (tui_source_window_base::show_source_line): Now a method.
13940 (tui_source_window_base::show_source_content)
13941 (tui_source_window_base::tui_source_window_base)
13942 (tui_source_window_base::rerender)
13943 (tui_source_window_base::refill)
13944 (tui_source_window_base::do_scroll_horizontal)
13945 (tui_source_window_base::set_is_exec_point_at)
13946 (tui_source_window_base::update_breakpoint_info)
13947 (tui_source_window_base::update_exec_info): Update.
13948 * tui/tui-source.c (tui_source_window::set_contents)
13949 (tui_source_window::showing_source_p)
13950 (tui_source_window::do_scroll_vertical)
13951 (tui_source_window::location_matches_p)
13952 (tui_source_window::line_is_displayed): Update.
13953 (tui_source_window::display_start_addr): New method.
13954 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13955 (tui_disasm_window::do_scroll_vertical)
13956 (tui_disasm_window::location_matches_p): Update.
13957 (tui_disasm_window::display_start_addr): New method.
13958
13959 2020-02-22 Tom Tromey <tom@tromey.com>
13960
13961 * NEWS: Add entry for gdb.register_window_type.
13962 * tui/tui-layout.h (window_factory): New typedef.
13963 (tui_register_window): Declare.
13964 * tui/tui-layout.c (saved_tui_windows): New global.
13965 (tui_apply_current_layout): Use it.
13966 (tui_register_window): New function.
13967 * python/python.c (do_start_initialization): Call
13968 gdbpy_initialize_tui.
13969 (python_GdbMethods): Add "register_window_type" function.
13970 * python/python-internal.h (gdbpy_register_tui_window)
13971 (gdbpy_initialize_tui): Declare.
13972 * python/py-tui.c: New file.
13973 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13974
13975 2020-02-22 Tom Tromey <tom@tromey.com>
13976
13977 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13978
13979 2020-02-22 Tom Tromey <tom@tromey.com>
13980
13981 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13982 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13983 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13984 (tui_set_win_focus_to): Move from tui-win.c.
13985
13986 2020-02-22 Tom Tromey <tom@tromey.com>
13987
13988 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13989 functions.
13990 (known_window_types): New global.
13991 (tui_get_window_by_name): Reimplement.
13992 (initialize_known_windows): New function.
13993 (validate_window_name): Rewrite.
13994 (_initialize_tui_layout): Call initialize_known_windows.
13995
13996 2020-02-22 Tom Tromey <tom@tromey.com>
13997
13998 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13999 Remove constants.
14000 * tui/tui-winsource.h (struct tui_source_window_base)
14001 <tui_source_window_base>: Remove parameter.
14002 * tui/tui-winsource.c
14003 (tui_source_window_base::tui_source_window_base): Remove
14004 parameter.
14005 (tui_source_window_base::refill): Update.
14006 * tui/tui-stack.h (struct tui_locator_window)
14007 <tui_locator_window>: Update.
14008 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14009 Default the constructor.
14010 * tui/tui-regs.h (struct tui_data_item_window)
14011 <tui_data_item_window>: Default the constructor.
14012 (struct tui_data_window) <tui_data_window>: Likewise.
14013 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14014 Default the constructor.
14015 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14016 Default the constructor.
14017 <type>: Remove.
14018 (struct tui_win_info) <tui_win_info>: Default the constructor.
14019 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14020 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14021 Default the constructor.
14022
14023 2020-02-22 Tom Tromey <tom@tromey.com>
14024
14025 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14026 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14027 * tui/tui-win.c (tui_resize_all): Don't call
14028 tui_delete_invisible_windows.
14029 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14030 done.
14031 (tui_set_layout): Update.
14032 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14033 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14034 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14035
14036 2020-02-22 Tom Tromey <tom@tromey.com>
14037
14038 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14039 correctly.
14040
14041 2020-02-22 Tom Tromey <tom@tromey.com>
14042
14043 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14044
14045 2020-02-22 Tom Tromey <tom@tromey.com>
14046
14047 * tui/tui-winsource.h (struct tui_source_window_iterator)
14048 <inner_iterator>: New etytypedef.
14049 <tui_source_window_iterator>: Take "end" parameter.
14050 <tui_source_window_iterator>: Take iterator.
14051 <operator*, advance>: Update.
14052 <m_iter>: Change type.
14053 <m_end>: New field.
14054 (struct tui_source_windows) <begin, end>: Update.
14055 * tui/tui-layout.c (tui_windows): New global.
14056 (tui_apply_current_layout): Clear tui_windows.
14057 (tui_layout_window::apply): Update tui_windows.
14058 * tui/tui-data.h (tui_windows): Declare.
14059 (all_tui_windows): Now inline function.
14060 (class tui_window_iterator, struct all_tui_windows): Remove.
14061
14062 2020-02-22 Tom Tromey <tom@tromey.com>
14063
14064 PR tui/17850:
14065 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14066 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14067 "height" argument.
14068 (class tui_layout_window) <get_sizes>: Likewise.
14069 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14070 argument.
14071 <get_sizes>: Add "height" argument.
14072 <m_vertical>: New field.
14073 * tui/tui-layout.c (tui_layout_split::clone): Update.
14074 (tui_layout_split::get_sizes): Add "height" argument.
14075 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14076 (tui_new_layout_command): Parse "-horizontal".
14077 (_initialize_tui_layout): Update help string.
14078 (tui_layout_split::specification): Add "-horizontal" when needed.
14079 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14080 argument.
14081 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14082 New methods.
14083
14084 2020-02-22 Tom Tromey <tom@tromey.com>
14085
14086 * tui/tui-layout.h (enum tui_adjust_result): New.
14087 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14088 (class tui_layout_window) <adjust_size>: Return
14089 tui_adjust_result. Rewrite.
14090 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14091 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14092
14093 2020-02-22 Tom Tromey <tom@tromey.com>
14094
14095 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14096 parameter and return types.
14097 (class tui_layout_base) <specification>: Add "depth".
14098 (class tui_layout_window) <specification>: Add "depth".
14099 (class tui_layout_split) <specification>: Add "depth".
14100 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14101 and return types.
14102 (tui_new_layout_command): Parse sub-layouts.
14103 (_initialize_tui_layout): Update help string.
14104 (tui_layout_window::specification): Add "depth".
14105 (add_layout_command): Update.
14106
14107 2020-02-22 Tom Tromey <tom@tromey.com>
14108
14109 * NEWS: Add "tui new-layout" item.
14110 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14111 Add new-layout command to help text.
14112 (validate_window_name): New function.
14113 (tui_new_layout_command): New function.
14114 (_initialize_tui_layout): Register "new-layout".
14115 (tui_layout_window::specification): New method.
14116 (tui_layout_window::specification): New method.
14117 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14118 method.
14119 (class tui_layout_window) <specification>: New method.
14120 (class tui_layout_split) <specification>: New method.
14121
14122 2020-02-22 Tom Tromey <tom@tromey.com>
14123
14124 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14125 * tui/tui-win.c (window_name_completer): Update comment.
14126 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14127 Declare method.
14128 (class tui_layout_window) <replace_window>: Likewise.
14129 (class tui_layout_split) <replace_window>: Likewise.
14130 (tui_set_layout): Don't declare.
14131 (tui_set_initial_layout): Declare function.
14132 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14133 (asm_regs_layout): New globals.
14134 (tui_current_layout, show_layout): Remove.
14135 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14136 (find_layout, tui_apply_layout): New function.
14137 (layout_completer): Remove.
14138 (tui_next_layout): Reimplement.
14139 (tui_next_layout_command): New function.
14140 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14141 (tui_regs_layout): Reimplement.
14142 (tui_regs_layout_command): New function.
14143 (extract_display_start_addr): Rewrite.
14144 (next_layout, prev_layout): Remove.
14145 (tui_layout_window::replace_window): New method.
14146 (tui_layout_split::replace_window): New method.
14147 (destroy_layout): New function.
14148 (layout_list): New global.
14149 (add_layout_command): New function.
14150 (initialize_layouts): Update.
14151 (tui_layout_command): New function.
14152 (_initialize_tui_layout): Install "layout" commands.
14153 * tui/tui-data.h (enum tui_layout_type): Remove.
14154 (tui_current_layout): Don't declare.
14155
14156 2020-02-22 Tom Tromey <tom@tromey.com>
14157
14158 * tui/tui-regs.c (tui_reg_layout): Remove.
14159 (tui_reg_command): Use tui_regs_layout.
14160 * tui/tui-layout.h (tui_reg_command): Declare.
14161 * tui/tui-layout.c (tui_reg_command): New function.
14162
14163 2020-02-22 Tom Tromey <tom@tromey.com>
14164
14165 * tui/tui.c (tui_rl_delete_other_windows): Call
14166 tui_remove_some_windows.
14167 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14168 Declare method.
14169 (class tui_layout_window) <remove_windows>: New method.
14170 (class tui_layout_split) <remove_windows>: Declare.
14171 (tui_remove_some_windows): Declare.
14172 * tui/tui-layout.c (tui_remove_some_windows): New function.
14173 (tui_layout_split::remove_windows): New method.
14174
14175 2020-02-22 Tom Tromey <tom@tromey.com>
14176
14177 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14178 * tui/tui-layout.h (tui_next_layout): Declare.
14179 * tui/tui-layout.c (tui_next_layout): New function.
14180
14181 2020-02-22 Tom Tromey <tom@tromey.com>
14182
14183 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14184 correct coordinates.
14185
14186 2020-02-22 Tom Tromey <tom@tromey.com>
14187
14188 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14189 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14190 DATA_WIN case.
14191
14192 2020-02-22 Tom Tromey <tom@tromey.com>
14193
14194 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14195 TUI_DISASM_WIN, not tui_win_list.
14196
14197 2020-02-22 Tom Tromey <tom@tromey.com>
14198
14199 * valprint.c (generic_val_print_enum_1)
14200 (val_print_type_code_flags): Style member names.
14201 * rust-lang.c (val_print_struct, rust_print_enum)
14202 (rust_print_struct_def, rust_internal_print_type): Style member
14203 names.
14204 * p-valprint.c (pascal_object_print_value_fields): Style member
14205 names. Only call fprintf_symbol_filtered for static members.
14206 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14207 * f-valprint.c (f_val_print): Style member names.
14208 * f-typeprint.c (f_type_print_base): Style member names.
14209 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14210 call fprintf_symbol_filtered for static members.
14211 (cp_print_class_member): Style member names.
14212 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14213 member names.
14214 * ada-valprint.c (ada_print_scalar): Style enum names.
14215 (ada_val_print_enum): Likewise.
14216 * ada-typeprint.c (print_enum_type): Style enum names.
14217
14218 2020-02-21 Tom Tromey <tom@tromey.com>
14219
14220 * psympriv.h (struct partial_symtab): Update comment.
14221
14222 2020-02-21 Tom Tromey <tromey@adacore.com>
14223
14224 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14225 type is CORE_ADDR.
14226
14227 2020-02-21 Tom de Vries <tdevries@suse.de>
14228
14229 PR gdb/25534
14230 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14231 if dependencies[i]->user != NULL.
14232
14233 2020-02-21 Ali Tamur <tamur@google.com>
14234
14235 * dwarf2/read.c (dwarf2_name): Add null check.
14236
14237 2020-02-20 Tom Tromey <tom@tromey.com>
14238
14239 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14240 ">=", in binary search.
14241 (dwarf2_find_containing_comp_unit): New overload.
14242 (run_test): New self-test.
14243 (_initialize_dwarf2_read): Register new test.
14244
14245 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14246
14247 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14248 * riscv-tdep.h: Likewise.
14249 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14250 rv32-only CSR.
14251 * features/riscv/64bit-csr.xml: Regenerated.
14252
14253 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14254 Tom Tromey <tom@tromey.com>
14255
14256 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14257 of 'fputc_unfiltered'.
14258 (putchar_unfiltered): Call 'fputc_unfiltered'.
14259 (fputc_unfiltered): Call 'fputs_unfiltered'.
14260
14261 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14262
14263 * config.in: Regenerate.
14264 * configure: Regenerate.
14265 * configure.ac: Add --with-python-libdir option.
14266 * main.c: Use WITH_PYTHON_LIBDIR.
14267
14268 2020-02-19 Tom Tromey <tom@tromey.com>
14269
14270 * symtab.c (general_symbol_info::compute_and_set_names): Use
14271 obstack_strndup. Simplify call to symbol_set_demangled_name.
14272
14273 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14274
14275 * dwarf2/read.c (allocate_signatured_type_table,
14276 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14277 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14278 Remove objfile parameter, update all callers.
14279
14280 2020-02-19 Doug Evans <dje@google.com>
14281
14282 PR rust/25535
14283 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14284 rust_enum_variant calculation.
14285
14286 2020-02-19 Tom Tromey <tromey@adacore.com>
14287
14288 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14289
14290 2020-02-19 Tom Tromey <tromey@adacore.com>
14291
14292 * ada-lang.c (cache_symbol): Use obstack_strdup.
14293
14294 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14295
14296 * configure: Regenerate.
14297
14298 2020-02-19 Tom Tromey <tromey@adacore.com>
14299
14300 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14301 NULL check.
14302
14303 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14304
14305 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14306
14307 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14308
14309 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14310 if GDBSERVER is not defined.
14311 (riscv_tdesc_cache): Likewise, also store const target_desc.
14312 (STATIC_IN_GDB): Define.
14313 (riscv_create_target_description): Update declaration with
14314 STATIC_IN_GDB.
14315 (riscv_lookup_target_description): New function, only define if
14316 GDBSERVER is not defined.
14317 * arch/riscv.h (riscv_create_target_description): Declare only
14318 when GDBSERVER is defined.
14319 (riscv_lookup_target_description): New declaration when GDBSERVER
14320 is not defined.
14321 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14322 (riscv_linux_read_features): ...this, and return
14323 riscv_gdbarch_features instead of target_desc.
14324 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14325 (riscv_linux_read_description): Rename to...
14326 (riscv_linux_read_features): ...this.
14327 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14328 Update to use riscv_gdbarch_features and
14329 riscv_lookup_target_description.
14330 * riscv-tdep.c (riscv_find_default_target_description): Use
14331 riscv_lookup_target_description instead of
14332 riscv_create_target_description.
14333
14334 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14335
14336 * valprint.c (generic_val_print_enum_1): When printing a flag
14337 enum with value 0 and there is no enumerator with value 0, print
14338 just "0" instead of "(unknown: 0x0)".
14339
14340 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14341
14342 * valprint.c (generic_val_print_enum_1): Print unknown part of
14343 flag enum in hex.
14344
14345 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14346
14347 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14348 flag enums to contain duplicate enumerators.
14349 * valprint.c (generic_val_print_enum_1): Update comment.
14350
14351 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14352
14353 * dwarf2/read.c: Include "count-one-bits.h".
14354 (update_enumeration_type_from_children): If an enumerator has
14355 multiple bits set, don't treat the enumeration as a "flag enum".
14356 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14357 of flag enums have 0 or 1 bit set.
14358
14359 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14360
14361 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14362 conversion.
14363 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14364 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14365 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14366 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14367 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14368
14369 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14370
14371 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14372
14373 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14374
14375 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14376 displaced_step_closure_up.
14377 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14378 (struct displaced_step_closure_up):
14379 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14380 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14381 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14382 Likewise.
14383 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14384 * gdbarch.c, gdbarch.h: Re-generate.
14385 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14386 displaced_step_closure_up.
14387 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14388 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14389 * infrun.h (displaced_step_closure_up): New type alias.
14390 (struct displaced_step_inferior_state) <step_closure>: Change
14391 type to displaced_step_closure_up.
14392 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14393 displaced_step_closure_up.
14394 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14395
14396 2020-02-14 Tom Tromey <tom@tromey.com>
14397
14398 * minidebug.c (gnu_debug_key): New global.
14399 (find_separate_debug_file_in_section): Use it.
14400
14401 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14402
14403 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14404 std::unique_ptr.
14405 * gdbarch.c: Re-generate.
14406 * gdbarch.h: Re-generate.
14407 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14408 change.
14409 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14410 type to std::unique_ptr.
14411 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14412 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14413 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14414 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14415 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14416 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14417 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14418 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14419 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14420
14421 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14422
14423 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14424 std::unique_ptr.
14425 (displaced_step_clear): Rename to...
14426 (displaced_step_reset): ... this. Just call displaced->reset ().
14427 (displaced_step_clear_cleanup): Rename to...
14428 (displaced_step_reset_cleanup): ... this.
14429 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14430 (displaced_step_fixup): Likewise.
14431 (resume_1): Likewise.
14432 (handle_inferior_event): Restore child's memory before calling
14433 displaced_step_fixup on the parent.
14434 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14435 to std::unique_ptr.
14436 <step_closure>: Change type to std::unique_ptr.
14437
14438 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14439
14440 * arm-tdep.c: Include count-one-bits.h.
14441 (cleanup_block_store_pc): Use count_one_bits.
14442 (cleanup_block_load_pc): Use count_one_bits.
14443 (arm_copy_block_xfer): Use count_one_bits.
14444 (thumb2_copy_block_xfer): Use count_one_bits.
14445 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14446 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14447 (thumb_get_next_pcs_raw): Use count_one_bits.
14448 (arm_get_next_pcs_raw): Use count_one_bits_l.
14449 * arch/arm.c (bitcount): Remove.
14450 * arch/arm.h (bitcount): Remove.
14451
14452 2020-02-14 Tom Tromey <tromey@adacore.com>
14453
14454 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14455 Update.
14456 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14457 * dwarf2/loc.c (call_site_find_chain_1): Return
14458 unique_xmalloc_ptr.
14459 (call_site_find_chain): Likewise.
14460
14461 2020-02-14 Richard Biener <rguenther@suse.de>
14462
14463 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14464 on expression with division operators.
14465
14466 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14467
14468 * MAINTAINERS (Write After Approval): Adding myself.
14469
14470 2020-02-12 Tom Tromey <tom@tromey.com>
14471
14472 * event-loop.c (event_data, gdb_event, event_handler_func):
14473 Remove.
14474
14475 2020-02-12 Tom Tromey <tom@tromey.com>
14476
14477 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14478 (dwarf2_frame_objfile_data): Add comment.
14479 (find_comp_unit, set_comp_unit): New functions.
14480 (dwarf2_frame_find_fde): Use find_comp_unit.
14481 (dwarf2_build_frame_info): Use set_comp_unit.
14482
14483 2020-02-12 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14486 (comp_unit): Don't initialize objfile.
14487 (execute_cfa_program): Add text_offset parameter.
14488 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14489 (dwarf2_frame_cache): Update.
14490 (dwarf2_build_frame_info): Don't set "objfile" member.
14491
14492 2020-02-12 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14495 (decode_frame_entry): Likewise.
14496 (dwarf2_build_frame_info): Update.
14497
14498 2020-02-12 Tom Tromey <tom@tromey.com>
14499
14500 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14501 (decode_frame_entry_1): Use the comp_unit obstack.
14502
14503 2020-02-12 Tom Tromey <tom@tromey.com>
14504
14505 * dwarf2/frame.c (struct comp_unit): Add initializers and
14506 constructor.
14507 (dwarf2_frame_objfile_data): Store a comp_unit.
14508 (dwarf2_frame_find_fde): Update.
14509 (dwarf2_build_frame_info): Use "new".
14510
14511 2020-02-12 Tom Tromey <tom@tromey.com>
14512
14513 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14514 (dwarf2_fde_table): Typedef for std::vector.
14515 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14516 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14517 (decode_frame_entry): Update.
14518 (dwarf2_build_frame_info): Use "new".
14519
14520 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14521
14522 * arm-tdep.c (arm_gdbarch_init): Update.
14523 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14524 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14525 have_neon, is_m>: Change to bool.
14526
14527 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14528
14529 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14530
14531 2020-02-12 Tom Tromey <tom@tromey.com>
14532
14533 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14534
14535 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14536
14537 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14538 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14539
14540 2020-02-11 Tom Tromey <tom@tromey.com>
14541
14542 * psymtab.h: Update comment.
14543
14544 2020-02-11 Tom Tromey <tom@tromey.com>
14545
14546 * gdb_obstack.h (struct auto_obstack): Use
14547 DISABLE_COPY_AND_ASSIGN.
14548
14549 2020-02-11 Tom Tromey <tom@tromey.com>
14550
14551 * dwarf2/frame.h (struct objfile): Don't forward declare.
14552
14553 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14554
14555 * cris-tdep.c (cris_supply_gregset): Change signature to match
14556 what struct regset expects.
14557 (cris_regset): New struct.
14558 (fetch_core_registers): Remove.
14559 (cris_iterate_over_regset_sections): New function.
14560 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14561 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14562
14563 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14564
14565 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14566 registers.
14567
14568 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14569
14570 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14571
14572 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14573
14574 * configure: Re-generate.
14575
14576 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14577
14578 * configure: Re-generate.
14579
14580 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
14581
14582 * acinclude: Update warning.m4 path.
14583 * warning.m4: Move to gdbsupport.
14584
14585 2020-02-11 Tom Tromey <tromey@adacore.com>
14586
14587 * remote.c (remote_console_output): Update.
14588 * printcmd.c (printf_command): Update.
14589 * event-loop.c (gdb_wait_for_event): Update.
14590 * linux-nat.c (sigchld_handler): Update.
14591 * remote-sim.c (gdb_os_write_stdout): Update.
14592 (gdb_os_flush_stdout): Update.
14593 (gdb_os_flush_stderr): Update.
14594 (gdb_os_write_stderr): Update.
14595 * exceptions.c (print_exception): Update.
14596 * remote-fileio.c (remote_fileio_func_read): Update.
14597 (remote_fileio_func_write): Update.
14598 * tui/tui.c (tui_enable): Update.
14599 * tui/tui-interp.c (tui_interp::init): Update.
14600 * utils.c (init_page_info): Update.
14601 (putchar_unfiltered, fputc_unfiltered): Update.
14602 (gdb_flush): Update.
14603 (emit_style_escape): Update.
14604 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14605 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14606 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14607 (stderr_file::write): Update.
14608 (stderr_file::puts): Update.
14609 * ui-file.h (ui_file_isatty, ui_file_write)
14610 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14611 (ui_file_puts): Don't declare.
14612
14613 2020-02-10 Tom de Vries <tdevries@suse.de>
14614
14615 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14616 sentinel to char *.
14617
14618 2020-02-09 Tom de Vries <tdevries@suse.de>
14619
14620 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14621 filename if it matches "<artificial>".
14622
14623 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14624
14625 * windows-tdep.c (struct enum_value_name): New struct.
14626 (create_enum): New function.
14627 (windows_get_siginfo_type): Create and use enum types.
14628
14629 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14630
14631 * NEWS: Mention $_siginfo support for Windows.
14632 * windows-nat.c (handle_exception): Set siginfo_er.
14633 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14634 (windows_xfer_siginfo): New function.
14635 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14636 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14637 (init_windows_gdbarch_data): New function.
14638 (get_windows_gdbarch_data): New function.
14639 (windows_get_siginfo_type): New function.
14640 (windows_init_abi): Register windows_get_siginfo_type.
14641 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14642
14643 2020-02-08 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14646 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14647 <keep>: Declare method.
14648 <m_keep>: Remove member.
14649 <~cutu_reader>: Remove.
14650 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14651 (cutu_reader::cutu_reader): Update.
14652 (cutu_reader::keep): Rename from ~cutu_reader.
14653 (process_psymtab_comp_unit, build_type_psymtabs_1)
14654 (process_skeletonless_type_unit, load_partial_comp_unit)
14655 (load_full_comp_unit, dwarf2_read_addr_index)
14656 (read_signatured_type): Update.
14657
14658 2020-02-08 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14661 "want_partial_unit" parameter.
14662 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14663 Inline check for DW_TAG_partial_unit.
14664 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14665
14666 2020-02-08 Tom Tromey <tom@tromey.com>
14667
14668 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14669 read.c.
14670 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14671 read.c.
14672
14673 2020-02-08 Tom Tromey <tom@tromey.com>
14674
14675 * dwarf2/read.c (read_address): Move to comp-unit.c.
14676 (dwarf2_rnglists_process, dwarf2_ranges_process)
14677 (read_attribute_value, dwarf_decode_lines_1)
14678 (var_decode_location, decode_locdesc): Update.
14679 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14680 read.c. Remove "cu" parameter.
14681 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14682 method.
14683
14684 2020-02-08 Tom Tromey <tom@tromey.com>
14685
14686 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14687 (read_indirect_line_string): Update.
14688 * dwarf2/comp-unit.c (read_offset): Remove.
14689 (read_comp_unit_head): Update.
14690 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14691 method.
14692 (read_offset): Don't declare.
14693
14694 2020-02-08 Tom Tromey <tom@tromey.com>
14695
14696 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14697 * dwarf2/read.c (struct comp_unit_head): Move to
14698 dwarf2/comp-unit.h.
14699 (enum class rcuh_kind): Move to comp-unit.h.
14700 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14701 (read_comp_unit_head, error_check_comp_unit_head)
14702 (read_and_check_comp_unit_head): Move to comp-unit.c.
14703 (read_offset, dwarf_unit_type_name): Likewise.
14704 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14705 (cutu_reader::cutu_reader, read_call_site_scope)
14706 (find_partial_die, follow_die_offset): Update.
14707 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14708
14709 2020-02-08 Tom Tromey <tom@tromey.com>
14710
14711 * dwarf2/read.c (read_offset_1): Move to leb.c.
14712 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14713 (dwarf_decode_macro_bytes): Update.
14714 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14715 * dwarf2/leb.h (read_offset): Declare.
14716
14717 2020-02-08 Tom Tromey <tom@tromey.com>
14718
14719 * dwarf2/read.c (dwarf2_section_size): Remove.
14720 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14721 Update.
14722 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14723
14724 2020-02-08 Tom Tromey <tom@tromey.com>
14725
14726 * dwarf2/read.c (read_initial_length): Move to leb.c.
14727 * dwarf2/leb.h (read_initial_length): Declare.
14728 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14729 handle_nonstd parameter.
14730 * dwarf2/frame.c (read_initial_length): Remove.
14731 (decode_frame_entry_1): Update.
14732
14733 2020-02-08 Tom Tromey <tom@tromey.com>
14734
14735 * dwarf2/loc.c (dwarf2_find_location_expression)
14736 (dwarf_evaluate_loc_desc::get_tls_address)
14737 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14738 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14739 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14740 (dwarf2_compile_property_to_c)
14741 (dwarf2_loc_desc_get_symbol_read_needs)
14742 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14743 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14744 (loclist_describe_location, loclist_tracepoint_var_ref)
14745 (loclist_generate_c_location): Update.
14746 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14747 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14748 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14749 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14750 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14751 (dwarf2_per_cu_data::addr_size)
14752 (dwarf2_per_cu_data::ref_addr_size)
14753 (dwarf2_per_cu_data::text_offset)
14754 (dwarf2_per_cu_data::addr_type): Now methods.
14755 (per_cu_header_read_in): Make per_cu "const".
14756 (dwarf2_version): Remove.
14757 (dwarf2_per_cu_data::int_type): Now a method.
14758 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14759 (set_die_type, read_array_type, read_subrange_index_type)
14760 (read_tag_string_type, read_subrange_type): Update.
14761 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14762 offset_size, ref_addr_size, text_offset, addr_type, version,
14763 objfile, int_type, addr_sized_int_type>: Declare methods.
14764
14765 2020-02-08 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14768 Move earlier.
14769
14770 2020-02-08 Tom Tromey <tom@tromey.com>
14771
14772 * dwarf2/read.h (dwarf_line_debug): Declare.
14773 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14774 * dwarf2/read.c: Move line_header code to new files.
14775 (dwarf_line_debug): No longer static.
14776 * dwarf2/line-header.c: New file.
14777 * dwarf2/line-header.h: New file.
14778
14779 2020-02-08 Tom Tromey <tom@tromey.com>
14780
14781 * dwarf2/read.c (struct line_header) <file_full_name,
14782 file_file_name>: Return unique_xmalloc_ptr.
14783 (line_header::file_file_name): Update.
14784 (line_header::file_full_name): Update.
14785 (dw2_get_file_names_reader): Update.
14786 (macro_start_file): Update.
14787
14788 2020-02-08 Tom Tromey <tom@tromey.com>
14789
14790 * dwarf2/read.c (struct line_header) <file_full_name,
14791 file_file_name>: Declare methods.
14792 (dw2_get_file_names_reader): Update.
14793 (file_file_name): Now a method.
14794 (file_full_name): Likewise.
14795 (macro_start_file): Update.
14796
14797 2020-02-08 Tom Tromey <tom@tromey.com>
14798
14799 * dwarf2/read.c (dwarf_always_disassemble)
14800 (show_dwarf_always_disassemble): Move to loc.c.
14801 (_initialize_dwarf2_read): Move "always-disassemble" registration
14802 to loc.c.
14803 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14804 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14805 static.
14806 (show_dwarf_always_disassemble): Move from read.c.
14807 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14808
14809 2020-02-08 Tom Tromey <tom@tromey.com>
14810
14811 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14812 (create_quick_file_names_table): Return htab_up.
14813 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14814 Update.
14815 * dwarf2/read.h (struct dwarf2_per_objfile)
14816 <quick_file_names_table>: Now htab_up.
14817
14818 2020-02-08 Tom Tromey <tom@tromey.com>
14819
14820 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14821
14822 2020-02-08 Tom Tromey <tom@tromey.com>
14823
14824 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14825 Rewrite.
14826 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14827 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14828 (abbrev_table::abbrev_table): No longer inline.
14829 (ABBREV_HASH_SIZE): Remove.
14830 (abbrev_table::m_abbrevs): Now an htab_up.
14831
14832 2020-02-08 Tom Tromey <tom@tromey.com>
14833
14834 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14835 (cutu_reader): Update.
14836 (build_type_psymtabs_1): Update.
14837 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14838 (abbrev_table::alloc_abbrev): Update.
14839 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14840 (abbrev_table::read): New static method, renamed from
14841 abbrev_table_read_table.
14842 (abbrev_table::alloc_abbrev)
14843 (abbrev_table::add_abbrev): Now private.
14844 (abbrev_table::abbrev_table): Now private.
14845 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14846
14847 2020-02-08 Tom Tromey <tom@tromey.com>
14848
14849 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14850 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14851 htab_up.
14852
14853 2020-02-08 Tom Tromey <tom@tromey.com>
14854
14855 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14856 htab_up.
14857 (lookup_dwo_unit_in_dwp): Update.
14858 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14859 on obstack.
14860
14861 2020-02-08 Tom Tromey <tom@tromey.com>
14862
14863 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14864 obstack.
14865
14866 2020-02-08 Tom Tromey <tom@tromey.com>
14867
14868 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14869 line_header_hash.
14870 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14871 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14872 Change type to htab_up.
14873
14874 2020-02-08 Tom Tromey <tom@tromey.com>
14875
14876 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14877 htab_up. Don't allocate on obstack.
14878 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14879 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14880 Change type to htab_up.
14881
14882 2020-02-08 Tom Tromey <tom@tromey.com>
14883
14884 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14885 Change type to htab_up.
14886 * dwarf2/read.c (create_signatured_type_table_from_index)
14887 (create_signatured_type_table_from_debug_names)
14888 (create_all_type_units, add_type_unit)
14889 (lookup_dwo_signatured_type, lookup_signatured_type)
14890 (process_skeletonless_type_unit): Update.
14891 (create_debug_type_hash_table, create_debug_types_hash_table):
14892 Change type of types_htab.
14893 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14894 htab_up. Don't allocate on obstack.
14895 (create_cus_hash_table): Change type of cus_htab parameter.
14896 (struct dwo_file) <cus, tus>: Now htab_up.
14897 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14898 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14899 (queue_and_load_all_dwo_tus): Update.
14900 * dwarf2/index-write.c (write_gdbindex): Update.
14901 (write_debug_names): Update.
14902
14903 2020-02-08 Tom Tromey <tom@tromey.com>
14904
14905 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14906 dwarf2/read.c. Remove "next" member. Add constructor ntad
14907 destructor.
14908 (struct dwarf2_per_objfile) <queue>: New member.
14909 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14910 dwarf2/read.h.
14911 (dwarf2_queue, dwarf2_queue_tail): Remove.
14912 (class dwarf2_queue_guard): Add parameter to constructor. Use
14913 DISABLE_COPY_AND_ASSIGN.
14914 <m_per_objfile>: New member.
14915 <~dwarf2_queue_guard>: Rewrite.
14916 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14917 Update.
14918 (~dwarf2_queue_item): New.
14919
14920 2020-02-08 Tom Tromey <tom@tromey.com>
14921
14922 * dwarf2/read.c (struct die_info) <has_children>: New member.
14923 (dw2_get_file_names_reader): Remove has_children.
14924 (dw2_get_file_names): Update.
14925 (read_cutu_die_from_dwo): Remove has_children.
14926 (cutu_reader::init_tu_and_read_dwo_dies)
14927 (cutu_reader::cutu_reader): Update.
14928 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14929 Remove has_children.
14930 (build_type_psymtabs_1, process_skeletonless_type_unit)
14931 (load_partial_comp_unit, load_full_comp_unit): Update.
14932 (create_dwo_cu_reader): Remove has_children.
14933 (create_cus_hash_table, read_die_and_children): Update.
14934 (read_full_die_1,read_full_die): Remove has_children.
14935 (read_signatured_type): Update.
14936 (class cutu_reader) <has_children>: Remove.
14937
14938 2020-02-08 Tom Tromey <tom@tromey.com>
14939
14940 * dwarf2/expr.c: Rename from dwarf2expr.c.
14941 * dwarf2/expr.h: Rename from dwarf2expr.h.
14942 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14943 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14944 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14945 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14946 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14947 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14948 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14949 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14950 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14951 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14952 * dwarf2/loc.c: Rename from dwarf2loc.c.
14953 * dwarf2/loc.h: Rename from dwarf2loc.h.
14954 * dwarf2/read.c: Rename from dwarf2read.c.
14955 * dwarf2/read.h: Rename from dwarf2read.h.
14956 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14957 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14958 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14959 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14960 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14961 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14962 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14963 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14964 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14965 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14966 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14967 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14968 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14969 Update.
14970 * Makefile.in (COMMON_SFILES): Update.
14971 (HFILES_NO_SRCDIR): Update.
14972
14973 2020-02-08 Tom Tromey <tom@tromey.com>
14974
14975 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14976 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14977
14978 2020-02-08 Tom Tromey <tom@tromey.com>
14979
14980 * dwarf2read.h (struct die_info): Don't declare.
14981
14982 2020-02-08 Tom Tromey <tom@tromey.com>
14983
14984 * dwarf2read.h (die_info_ptr): Remove typedef.
14985
14986 2020-02-08 Tom Tromey <tom@tromey.com>
14987
14988 * dwarf2read.c (read_call_site_scope)
14989 (handle_data_member_location, dwarf2_add_member_fn)
14990 (mark_common_block_symbol_computed, read_common_block)
14991 (attr_to_dynamic_prop, partial_die_info::read)
14992 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14993 (dwarf2_symbol_mark_computed, set_die_type): Update.
14994 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14995 method.
14996 (attr_form_is_block): Don't declare.
14997 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14998
14999 2020-02-08 Tom Tromey <tom@tromey.com>
15000
15001 * dwarf2read.c (dwarf2_find_base_address, )
15002 (read_call_site_scope, rust_containing_type)
15003 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15004 (handle_data_member_location, dwarf2_add_member_fn)
15005 (get_alignment, read_structure_type, process_structure_scope)
15006 (mark_common_block_symbol_computed, read_common_block)
15007 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15008 (partial_die_info::read, read_attribute_value, new_symbol)
15009 (lookup_die_type, dwarf2_get_ref_die_offset)
15010 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15011 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15012 (dwarf2_symbol_mark_computed): Update.
15013 * dwarf2/attribute.h (struct attribute) <value_as_address,
15014 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15015 methods.
15016 (value_as_address, attr_form_is_section_offset)
15017 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15018 * dwarf2/attribute.c (attribute::value_as_address)
15019 (attribute::form_is_section_offset, attribute::form_is_constant)
15020 (attribute::form_is_ref): Now methods.
15021
15022 2020-02-08 Tom Tromey <tom@tromey.com>
15023
15024 * dwarf2read.c (struct attribute, DW_STRING)
15025 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15026 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15027 (attr_form_is_block, attr_form_is_section_offset)
15028 (attr_form_is_constant, attr_form_is_ref): Move.
15029 * dwarf2/attribute.h: New file.
15030 * dwarf2/attribute.c: New file, from dwarf2read.c.
15031 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15032
15033 2020-02-08 Tom Tromey <tom@tromey.com>
15034
15035 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15036 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15037 Move.
15038 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15039 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15040 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15041 abbrev.c.
15042 * dwarf2/abbrev.h: New file.
15043 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15044 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15045
15046 2020-02-08 Tom Tromey <tom@tromey.com>
15047
15048 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15049 (dwarf2_section_size, dwarf2_get_section_info)
15050 (create_signatured_type_table_from_debug_names)
15051 (create_addrmap_from_aranges, read_debug_names_from_section)
15052 (get_gdb_index_contents_from_section, read_comp_unit_head)
15053 (error_check_comp_unit_head, read_abbrev_offset)
15054 (create_debug_type_hash_table, init_cu_die_reader)
15055 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15056 (read_comp_units_from_section, create_cus_hash_table)
15057 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15058 (create_dwp_v2_section, dwarf2_rnglists_process)
15059 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15060 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15061 (read_indirect_string_from_dwz, read_addr_index_1)
15062 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15063 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15064 (fill_in_loclist_baton): Update.
15065 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15066 get_containing_section, get_bfd_owner, get_bfd_section,
15067 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15068 (dwarf2_read_section, get_section_name, get_section_file_name)
15069 (get_containing_section, get_section_bfd_owner)
15070 (get_section_bfd_section, get_section_name, get_section_file_name)
15071 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15072 declare.
15073 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15074 (dwarf2_section_info::get_bfd_owner)
15075 (dwarf2_section_info::get_bfd_section)
15076 (dwarf2_section_info::get_name)
15077 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15078 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15079 (dwarf2_section_info::read): Now methods.
15080 * dwarf-index-write.c (class debug_names): Update.
15081
15082 2020-02-08 Tom Tromey <tom@tromey.com>
15083
15084 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15085 Move to dwarf2/section.h.
15086 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15087 (get_section_bfd_section, get_section_name)
15088 (get_section_file_name, get_section_id, get_section_flags)
15089 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15090 dwarf2/section.c.
15091 * dwarf2/section.h: New file.
15092 * dwarf2/section.c: New file, from dwarf2read.c.
15093 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15094
15095 2020-02-08 Tom Tromey <tom@tromey.com>
15096
15097 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15098 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15099 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15100 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15101 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15102 * dwarf2/leb.h: New file, from dwarf2read.c.
15103 * dwarf2/leb.c: New file, from dwarf2read.c.
15104 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15105 Remove.
15106 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15107 (COMMON_SFILES): Add dwarf2/leb.c.
15108
15109 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15110
15111 GDB 9.1 released.
15112
15113 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15114
15115 PR gdb/25190:
15116 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15117 * gdb/remote.c (remote_console_output): Update.
15118 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15119 (ui_file_puts): ...this.
15120 * gdb/ui-file.h (ui_file_puts): Add declaration.
15121 * gdb/utils.c (emit_style_escape): Update.
15122 (flush_wrap_buffer): Update.
15123 (fputs_maybe_filtered): Update.
15124 (fputs_unfiltered): Add function.
15125
15126 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15127
15128 * gdb/event-loop.c (gdb_wait_for_event): Update.
15129 * gdb/printcmd.c (printf_command): Update.
15130 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15131 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15132 (gdb_os_flush_stderr): Update.
15133 * gdb/remote.c (remote_console_output): Update.
15134 * gdb/ui-file.c (gdb_flush): Rename to...
15135 (ui_file_flush): ...this.
15136 (stderr_file::write): Update.
15137 (stderr_file::puts): Update.
15138 * gdb/ui-file.h (gdb_flush): Rename to...
15139 (ui_file_flush): ...this.
15140 * gdb/utils.c (gdb_flush): Add function.
15141 * gdb/utils.h (gdb_flush): Add declaration.
15142
15143 2020-02-07 Tom Tromey <tromey@adacore.com>
15144
15145 PR breakpoints/24915:
15146 * source.c (find_and_open_source): Do not check basenames_may_differ.
15147
15148 2020-02-07 Tom Tromey <tom@tromey.com>
15149
15150 * README: Update gdbserver documentation.
15151 * gdbserver: Move to top level.
15152 * configure.tgt (build_gdbserver): Remove.
15153 * configure.ac: Remove --enable-gdbserver.
15154 * configure: Rebuild.
15155 * Makefile.in (distclean): Don't mention gdbserver.
15156
15157 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15158
15159 * source-cache.c (source_cache::ensure): Surround
15160 get_plain_source_lines with a try/catch.
15161 (source_cache::get_line_charpos): Get rid of try/catch
15162 and only check for the return value of "ensure".
15163 * tui/tui-source.c (tui_source_window::set_contents):
15164 Simplify "nlines" calculation.
15165
15166 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15167
15168 * MAINTAINERS (Write After Approval): Add myself.
15169
15170 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15171
15172 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15173 function call.
15174
15175 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15176
15177 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15178
15179 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15180
15181 * nat/riscv-linux-tdesc.h: New file.
15182 * nat/riscv-linux-tdesc.c: New file, taking code from...
15183 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15184 ... here.
15185 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15186 NATDEPFILES.
15187
15188 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15189
15190 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15191 we don't set the fake simulator ptid to the null_ptid.
15192
15193 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15194
15195 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15196 * gdbthread.h (class thread_info) <resumed>: Likewise.
15197 * infrun.c (resume_1): Likewise.
15198 (proceed): Likewise.
15199 (infrun_thread_stop_requested): Likewise.
15200 (stop_all_threads): Likewise.
15201 (handle_inferior_event): Likewise.
15202 (restart_threads): Likewise.
15203 (finish_step_over): Likewise.
15204 (keep_going_stepped_thread): Likewise.
15205 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15206 (linux_handle_extended_wait): Likewise.
15207 * record-btrace.c (get_thread_current_frame_id): Likewise.
15208 * record-full.c (record_full_wait_1): Likewise.
15209 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15210 * target.c (target_resume): Likewise.
15211 * thread.c (set_running_thread): Likewise.
15212
15213 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15214
15215 * f-valprint.c (f77_print_array_1): Changed datatype of index
15216 variable to LONGEST from int to enable it to contain bound
15217 values correctly.
15218
15219 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15220
15221 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15222 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15223 offsets according to FLEN determined.
15224 (riscv_linux_nat_target::read_description): Determine FLEN
15225 dynamically.
15226 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15227 according to FLEN determined.
15228 (riscv_linux_nat_target::store_registers): Likewise.
15229
15230 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15231
15232 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15233 when reg->group is empty and reggroup is not.
15234
15235 2020-01-31 Tom Tromey <tromey@adacore.com>
15236
15237 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15238 Call beneath target's mourn_inferior after unpushing.
15239
15240 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15241
15242 PR tui/9765
15243 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15244 have enough lines to fill the screen, still return the lowest
15245 address we found.
15246
15247 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15248
15249 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15250 '-', '<', and '>' commands.
15251
15252 2020-01-29 Pedro Alves <palves@redhat.com>
15253 Sergio Durigan Junior <sergiodj@redhat.com>
15254
15255 * infcmd.c (construct_inferior_arguments): Assert that
15256 'argc' is greater than 0.
15257
15258 2020-01-29 Luis Machado <luis.machado@linaro.org>
15259
15260 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15261 (BRK_INSN_MASK): Define to 0xd4200000.
15262 (aarch64_program_breakpoint_here_p): New function.
15263 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15264 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15265 breakpoint.c.
15266 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15267 breakpoint.h
15268 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15269 call gdbarch_program_breakpoint_here_p.
15270 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15271 default_program_breakpoint_here_p, changed return type to bool and
15272 simplified.
15273 * breakpoint.h (program_breakpoint_here): Moved prototype to
15274 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15275 return type to bool.
15276 * gdbarch.c: Regenerate.
15277 * gdbarch.h: Regenerate.
15278 * gdbarch.sh (program_breakpoint_here_p): New method.
15279 * infrun.c (handle_signal_stop): Call
15280 gdbarch_program_breakpoint_here_p.
15281
15282 2020-01-26 Tom Tromey <tom@tromey.com>
15283
15284 * ctfread.c (struct ctf_fp_info): Reindent.
15285 (_initialize_ctfread): Remove.
15286
15287 2020-01-26 Tom Tromey <tom@tromey.com>
15288
15289 * psymtab.c (partial_map_expand_apply)
15290 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15291 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15292 (psym_print_stats, psym_expand_symtabs_for_function)
15293 (psym_map_symbol_filenames, psym_map_matching_symbols)
15294 (psym_expand_symtabs_matching)
15295 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15296 (maintenance_check_psymtabs): Use new methods.
15297 * psympriv.h (struct partial_symtab) <readin_p,
15298 get_compunit_symtab>: New methods.
15299 <readin, compunit_symtab>: Remove members.
15300 (struct standard_psymtab): New.
15301 (struct legacy_psymtab): Derive from standard_psymtab.
15302 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15303 standard_psymtab.
15304 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15305
15306 2020-01-26 Tom Tromey <tom@tromey.com>
15307
15308 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15309 read_dependencies. Add assert.
15310 * psymtab.c (partial_symtab::read_dependencies): New method.
15311 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15312 method.
15313 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15314 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15315 read_dependencies.
15316 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15317 Add assert.
15318
15319 2020-01-26 Tom Tromey <tom@tromey.com>
15320
15321 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15322 Call expand_psymtab.
15323 (xcoff_read_symtab): Call expand_psymtab.
15324 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15325 legacy_expand_psymtab.
15326 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15327 method.
15328 (struct legacy_psymtab) <expand_psymtab>: Implement.
15329 <legacy_expand_psymtab>: New member.
15330 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15331 (parse_partial_symbols): Set legacy_expand_psymtab.
15332 (psymtab_to_symtab_1): Change argument order. Call
15333 expand_psymtab.
15334 (new_psymtab): Set legacy_expand_psymtab.
15335 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15336 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15337 expand_psymtab.
15338 (dwarf2_psymtab::expand_psymtab): Rename from
15339 psymtab_to_symtab_1. Call expand_psymtab.
15340 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15341 (dbx_end_psymtab): Likewise.
15342 (dbx_psymtab_to_symtab_1): Change argument order. Call
15343 expand_psymtab.
15344 (dbx_read_symtab): Call expand_psymtab.
15345 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15346 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15347 (ctf_psymtab::read_symtab): Call expand_psymtab.
15348
15349 2020-01-26 Tom Tromey <tom@tromey.com>
15350
15351 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15352 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15353 messages.
15354 * mdebugread.c (mdebug_read_symtab): Remove prints.
15355 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15356 assert.
15357 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15358
15359 2020-01-26 Tom Tromey <tom@tromey.com>
15360
15361 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15362 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15363 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15364 legacy_symtab.
15365 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15366 * psymtab.c (psymtab_to_symtab): Call method.
15367 (dump_psymtab): Update.
15368 * psympriv.h (struct partial_symtab): Add virtual destructor.
15369 <read_symtab>: New method.
15370 (struct legacy_symtab): New.
15371 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15372 (struct pst_map) <pst>: Now a legacy_psymtab.
15373 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15374 (new_psymtab): Use legacy_psymtab.
15375 * dwarf2read.h (struct dwarf2_psymtab): New.
15376 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15377 * dwarf2read.c (dwarf2_create_include_psymtab)
15378 (dwarf2_build_include_psymtabs, create_type_unit_group)
15379 (create_partial_symtab, process_psymtab_comp_unit_reader)
15380 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15381 (set_partial_user): Use dwarf2_psymtab.
15382 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15383 (psymtab_to_symtab_1, process_full_comp_unit)
15384 (process_full_type_unit, dwarf2_ranges_read)
15385 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15386 (dwarf_decode_lines): Use dwarf2_psymtab.
15387 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15388 (add_address_entry_worker, write_one_signatured_type)
15389 (recursively_count_psymbols, recursively_write_psymbols)
15390 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15391 (write_debug_names): Likewise.
15392 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15393 <pst>: Now a legacy_psymtab.
15394 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15395 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15396 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15397 * ctfread.c (struct ctf_psymtab): New.
15398 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15399 ctf_psymtab.
15400 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15401 (create_partial_symtab): Return a ctf_psymtab.
15402 (scan_partial_symbols): Update.
15403
15404 2020-01-26 Tom Tromey <tom@tromey.com>
15405
15406 * xcoffread.c (xcoff_start_psymtab): Use new.
15407 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15408 renamed from start_psymtab_common.
15409 * psympriv.h (struct partial_symtab): Add new constructor.
15410 (start_psymtab_common): Don't declare.
15411 * mdebugread.c (parse_partial_symbols): Use new.
15412 * dwarf2read.c (create_partial_symtab): Use new.
15413 * dbxread.c (start_psymtab): Use new.
15414 * ctfread.c (create_partial_symtab): Use new.
15415
15416 2020-01-26 Tom Tromey <tom@tromey.com>
15417
15418 * xcoffread.c (xcoff_end_psymtab): Use new.
15419 * psymtab.c (start_psymtab_common): Use new.
15420 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15421 Update.
15422 * psympriv.h (struct partial_symtab): Add parameters to
15423 constructor. Don't inline.
15424 (allocate_psymtab): Don't declare.
15425 * mdebugread.c (new_psymtab): Use new.
15426 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15427 * dbxread.c (dbx_end_psymtab): Use new.
15428
15429 2020-01-26 Tom Tromey <tom@tromey.com>
15430
15431 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15432 allocate_psymtab. Update documentation.
15433 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15434 allocate_psymtab. Do not use new.
15435 (allocate_psymtab): Use new. Update.
15436
15437 2020-01-26 Tom Tromey <tom@tromey.com>
15438
15439 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15440 * psymtab.c (psym_print_stats): Update.
15441 * psympriv.h (struct partial_symtab) <readin,
15442 psymtabs_addrmap_supported, anonymous>: Now bool.
15443 * mdebugread.c (psymtab_to_symtab_1): Update.
15444 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15445 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15446 (process_full_comp_unit, process_full_type_unit): Update.
15447 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15448 * ctfread.c (psymtab_to_symtab): Update.
15449
15450 2020-01-26 Tom Tromey <tom@tromey.com>
15451
15452 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15453 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15454 * psymtab.c (psymtab_storage): Delete psymtabs.
15455 (psymtab_storage::allocate_psymtab): Use new.
15456 (psymtab_storage::discard_psymtab): Use delete.
15457 * psympriv.h (struct partial_symtab): Add constructor and
15458 initializers.
15459
15460 2020-01-26 Tom Tromey <tom@tromey.com>
15461
15462 * machoread.c: Do not include psympriv.h.
15463
15464 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15465
15466 * NEWS: Mention the new option and the set/show commands.
15467
15468 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15469
15470 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15471 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15472 (validate_exec_file): New variables, enums, functions.
15473 (exec_file_locate_attach, print_section_info): Style the filenames.
15474 (_initialize_exec): Install show_exec_file_mismatch_command and
15475 set_exec_file_mismatch_command.
15476 * gdbcore.h (validate_exec_file): Declare.
15477 * infcmd.c (attach_command): Call validate_exec_file.
15478 * remote.c ( remote_target::remote_add_inferior): Likewise.
15479
15480 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15481
15482 * frame.c (find_frame_sal): Move call to get_next_frame into more
15483 inner scope.
15484 * inline-frame.c (inilne_state) <inline_state>: Update argument
15485 types.
15486 (inilne_state) <skipped_symbol>: Rename to...
15487 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15488 (skip_inline_frames): Build vector of skipped symbols and use this
15489 to reate the inline_state.
15490 (inline_skipped_symbol): Add a comment and some assertions, fetch
15491 skipped symbol from the list.
15492
15493 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15494
15495 * buildsym.c (lte_is_less_than): Delete.
15496 (buildsym_compunit::end_symtab_with_blockvector): Create local
15497 lambda function to sort line table entries, and use
15498 std::stable_sort instead of std::sort.
15499 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15500 markers when looking for a previous line.
15501
15502 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15503
15504 * dwarf2read.c (lnp_state_machine::record_line): Include
15505 end_sequence parameter in debug print out. Record the line if we
15506 are at an end_sequence marker even if it's not the start of a
15507 statement.
15508 * symmisc.c (maintenance_print_one_line_table): Print end of
15509 sequence markers with 'END' not '0'.
15510
15511 2020-01-24 Pedro Alves <palves@redhat.com>
15512
15513 PR gdb/25410
15514 * thread.c (scoped_restore_current_thread::restore): Use
15515 switch_to_inferior_no_thread.
15516 * exec.c: Include "progspace-and-thread.h".
15517 (add_target_sections, remove_target_sections):
15518 scoped_restore_current_pspace_and_thread instead of
15519 scoped_restore_current_thread.
15520 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15521 and aspace to the inferior before calling clone_program_space.
15522 Remove stale comment.
15523
15524 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15525
15526 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15527 (arm_netbsd_nat_target::fetch_registers): ...this.
15528 (arm_nbsd_nat_target::store_registers): Rename to...
15529 (arm_netbsd_nat_target::store_registers): ...this.
15530
15531 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15532
15533 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15534 register_t.
15535
15536 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15537
15538 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15539 Update comment.
15540 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15541 Likewise.
15542 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15543 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15544 the correct replacement (iterate_over_regset_sections).
15545 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15546 Update comment.
15547
15548 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15549
15550 PR gdb/23718
15551 * gdb/python/python.c (execute_gdb_command): Call
15552 async_enable_stdin in catch block.
15553
15554 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15555
15556 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15557 SWITCH_THRU_ALL_UIS.
15558
15559 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15560
15561 PR tui/9765
15562 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15563 comment, add extra parameter, and update to store previous symbol
15564 when appropriate.
15565 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15566 add extra parameter.
15567 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15568 remove unneeded parameter, add try/catch around gdb_print_insn,
15569 rewrite to add items to asm_lines vector.
15570 (tui_find_backward_disassembly_start_address): New function.
15571 (tui_find_disassembly_address): Updated throughout.
15572 (tui_disasm_window::set_contents): Update for changes to
15573 tui_disassemble.
15574 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15575 number of lines to scroll.
15576
15577 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15578
15579 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15580 (SECT_OFF_DATA): Likewise.
15581 (SECT_OFF_RODATA): Likewise.
15582 (SECT_OFF_TEXT): Likewise.
15583 (SECT_OFF_BSS): Likewise.
15584 (struct objfile) <text_section_offset, data_section_offset>: New
15585 methods.
15586 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15587 objfile::text_section_offset.
15588 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15589 * coffread.c (coff_symtab_read): Likewise.
15590 (enter_linenos): Likewise.
15591 (process_coff_symbol): Likewise.
15592 * ctfread.c (get_objfile_text_range): Likewise.
15593 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15594 Use objfile::data_section_offset.
15595 * dwarf2-frame.c (execute_cfa_program): Use
15596 objfile::text_section_offset.
15597 (dwarf2_frame_find_fde): Likewise.
15598 * dwarf2read.c (create_addrmap_from_index): Likewise.
15599 (create_addrmap_from_aranges): Likewise.
15600 (dw2_find_pc_sect_compunit_symtab): Likewise.
15601 (process_psymtab_comp_unit_reader): Likewise.
15602 (add_partial_symbol): Likewise.
15603 (add_partial_subprogram): Likewise.
15604 (process_full_comp_unit): Likewise.
15605 (read_file_scope): Likewise.
15606 (read_func_scope): Likewise.
15607 (read_lexical_block_scope): Likewise.
15608 (read_call_site_scope): Likewise.
15609 (dwarf2_rnglists_process): Likewise.
15610 (dwarf2_ranges_process): Likewise.
15611 (dwarf2_ranges_read): Likewise.
15612 (dwarf_decode_lines_1): Likewise.
15613 (new_symbol): Likewise.
15614 (dwarf2_fetch_die_loc_sect_off): Likewise.
15615 (dwarf2_per_cu_text_offset): Likewise.
15616 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15617 * hppa-tdep.c (read_unwind_info): Likewise.
15618 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15619 * psympriv.h (struct partial_symtab): Likewise.
15620 * psymtab.c (find_pc_sect_psymtab): Likewise.
15621 * solib-svr4.c (enable_break): Likewise.
15622 * stap-probe.c (relocate_address): Use
15623 objfile::data_section_offset.
15624 * xcoffread.c (enter_line_range): Use
15625 objfile::text_section_offset.
15626 (read_xcoff_symtab): Likewise.
15627
15628 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15629
15630 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15631 declaration to narrower scopes.
15632
15633 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15634
15635 * darwin-nat.h (struct darwin_exception_msg, enum
15636 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15637 Move up.
15638 (class darwin_nat_target) <wait_1, check_new_threads,
15639 decode_exception_message, decode_message, stop_inferior,
15640 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15641 * darwin-nat.c (darwin_check_new_threads): Rename to...
15642 (darwin_nat_target::check_new_threads): ... this.
15643 (darwin_suspend_inferior_it): Remove.
15644 (darwin_decode_exception_message): Rename to...
15645 (darwin_nat_target::decode_exception_message): ... this.
15646 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15647 (darwin_decode_message): Rename to...
15648 (darwin_nat_target::decode_message): ... this.
15649 (cancel_breakpoint): Rename to...
15650 (darwin_nat_target::cancel_breakpoint): ... this.
15651 (darwin_wait): Rename to...
15652 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15653 instead of iterate_over_inferiors.
15654 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15655 (darwin_stop_inferior): Rename to...
15656 (darwin_nat_target::stop_inferior): ... this.
15657 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15658 (darwin_init_thread_list): Rename to...
15659 (darwin_nat_target::init_thread_list): ... this.
15660 (darwin_ptrace_him): Rename to...
15661 (darwin_nat_target::ptrace_him): ... this.
15662 (darwin_nat_target::create_inferior): Pass lambda function to
15663 fork_inferior.
15664 (darwin_nat_target::detach): Call stop_inferior instead of
15665 darwin_stop_inferior.
15666 * fork-inferior.h (fork_inferior): Change init_trace_fun
15667 parameter to gdb::function_view.
15668 * fork-inferior.c (fork_inferior): Likewise.
15669
15670 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15671
15672 * i386-cygwin-tdep.c (core_process_module_section): Update.
15673 * windows-nat.c (struct lm_info_windows): Add text_offset.
15674 (windows_xfer_shared_libraries): Update.
15675 * windows-tdep.c (windows_xfer_shared_library):
15676 Add text_offset_cached argument.
15677 * windows-tdep.h (windows_xfer_shared_library): Update.
15678
15679 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15680
15681 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15682
15683 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15684
15685 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15686 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15687 replace with range-based for.
15688 (gdbsim_interrupt_inferior): Remove.
15689 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15690 with a range-based for. Inline code from
15691 gdbsim_interrupt_inferior.
15692
15693 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15694
15695 * infrun.c (proceed): Fix indentation.
15696
15697 2020-01-21 Tom Tromey <tromey@adacore.com>
15698
15699 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15700 * python/python.c (python_extension_ops): Update.
15701 (gdbpy_colorize): New function.
15702 * python/lib/gdb/__init__.py (colorize): New function.
15703 * extension.h (ext_lang_colorize): Declare.
15704 * extension.c (ext_lang_colorize): New function.
15705 * extension-priv.h (struct extension_language_ops) <colorize>: New
15706 member.
15707 * cli/cli-style.c (_initialize_cli_style): Update help text.
15708
15709 2020-01-21 Luis Machado <luis.machado@linaro.org>
15710
15711 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15712 <cond>: Change type to bool.
15713 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15714 (aarch64_displaced_step_cb): Likewise.
15715 (aarch64_displaced_step_tb): Likewise.
15716
15717 2020-01-21 Luis Machado <luis.machado@linaro.org>
15718
15719 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15720 output.
15721
15722 2020-01-21 Luis Machado <luis.machado@linaro.org>
15723
15724 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15725 <pc_adjust>: Adjust the documentation.
15726 (aarch64_displaced_step_fixup): Check if PC really moved before
15727 adjusting it.
15728
15729 2020-01-19 Tom Tromey <tom@tromey.com>
15730
15731 * disasm.c (~gdb_disassembler): New destructor.
15732 (gdb_buffered_insn_length): Call disassemble_free_target.
15733 * disasm.h (class gdb_disassembler): Declare destructor. Use
15734 DISABLE_COPY_AND_ASSIGN.
15735
15736 2020-01-19 Tom Tromey <tom@tromey.com>
15737
15738 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15739 (die_reader_func_ftype): Remove.
15740 (cutu_reader): New class.
15741 (dw2_get_file_names_reader): Remove "data" parameter.
15742 (dw2_get_file_names): Use cutu_reader.
15743 (create_debug_type_hash_table): Update.
15744 (read_cutu_die_from_dwo): Update comment.
15745 (lookup_dwo_unit): Add dwo_name parameter.
15746 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15747 die_reader_func_ftype and data parameters.
15748 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15749 Remove die_reader_func_ftype and data parameters.
15750 (~cutu_reader): New; from init_cutu_and_read_dies.
15751 (cutu_reader::cutu_reader): Rename from
15752 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15753 and data parameters.
15754 (init_cutu_and_read_dies_simple): Remove.
15755 (struct process_psymtab_comp_unit_data): Remove.
15756 (process_psymtab_comp_unit_reader): Remove data parameter; add
15757 want_partial_unit and pretend_language parameters.
15758 (process_psymtab_comp_unit): Use cutu_reader.
15759 (build_type_psymtabs_reader): Remove data parameter.
15760 (build_type_psymtabs_1): Use cutu_reader.
15761 (process_skeletonless_type_unit): Likewise.
15762 (load_partial_comp_unit_reader): Remove.
15763 (load_partial_comp_unit): Use cutu_reader.
15764 (load_full_comp_unit_reader): Remove.
15765 (load_full_comp_unit): Use cutu_reader.
15766 (struct create_dwo_cu_data): Remove.
15767 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15768 dwo_unit parameters.
15769 (create_cus_hash_table): Use cutu_reader.
15770 (struct dwarf2_read_addr_index_data): Remove.
15771 (dwarf2_read_addr_index_reader): Remove.
15772 (dwarf2_read_addr_index): Use cutu_reader.
15773 (read_signatured_type_reader): Remove.
15774 (read_signatured_type): Use cutu_reader.
15775
15776 2020-01-19 Tom Tromey <tom@tromey.com>
15777
15778 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15779 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15780 (tui_wrefresh): Declare.
15781 * tui/tui-wingeneral.c (suppress_output): New global.
15782 (tui_suppress_output, ~tui_suppress_output): New constructor and
15783 destructor.
15784 (tui_wrefresh): New function.
15785 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15786 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15787 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15788 method.
15789 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15790 tui_wrefresh.
15791 (tui_data_window::no_refresh): New method.
15792 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15793 (tui_reg_command): Use tui_suppress_output
15794 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15795 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15796 method.
15797 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15798
15799 2020-01-19 Tom Tromey <tom@tromey.com>
15800
15801 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15802 Handle case where symtab is null.
15803
15804 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15805
15806 * linux-fork.c (one_fork_p): Simplify.
15807
15808 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15809
15810 * top.c (struct qt_args): Remove.
15811 (kill_or_detach): Change return type to void, replace `void *`
15812 parameter with a proper one.
15813 (print_inferior_quit_action): Likewise.
15814 (quit_confirm): Use range-based for loop to iterate over inferiors.
15815 (quit_force): Likewise.
15816
15817 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15818
15819 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15820 `void *` parameter with proper parameters.
15821 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15822 (print_one_inferior): Change return type to void, replace `void *`
15823 parameter with proper parameters.
15824 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15825 inferiors.
15826 (get_other_inferior): Remove.
15827 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15828 inferiors.
15829
15830 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15831
15832 * mi/mi-interp.c (report_initial_inferior): Remove.
15833 (mi_interp::init): Use range-based for to iterate over inferiors.
15834
15835 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15836
15837 * python/py-inferior.c (build_inferior_list): Remove.
15838 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15839
15840 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15841
15842 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15843 (btrace_stitch_trace): Likewise.
15844 * charset.c (intermediate_encoding): Likewise (vaild).
15845 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15846 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15847 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15848
15849 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15850
15851 * windows-tdep.c (windows_get_tlb_type):
15852 Add rtl_user_process_parameters type.
15853
15854 2020-01-16 Pedro Alves <palves@redhat.com>
15855 Norbert Lange <nolange79@gmail.com>
15856
15857 PR build/24805
15858 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15859 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15860 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15861 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15862 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15863 (ps_plog): Redeclare exported functions with default visibility.
15864
15865 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15866
15867 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15868 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15869
15870 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15871
15872 * infcmd.c (post_create_inferior): Use get_thread_regcache
15873 instead of get_current_regcache.
15874
15875 2020-01-14 Tom Tromey <tom@tromey.com>
15876
15877 PR symtab/12535:
15878 * python/python.c (gdbpy_decode_line): Treat empty string the same
15879 as no argument.
15880
15881 2020-01-14 Tom Tromey <tom@tromey.com>
15882
15883 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15884
15885 2020-01-14 Tom Tromey <tom@tromey.com>
15886
15887 * nat/linux-btrace.c: Don't include <config.h>.
15888 * nat/linux-ptrace.c: Don't include <config.h>.
15889 * nat/x86-linux-dregs.c: Don't include <config.h>.
15890
15891 2020-01-14 Tom Tromey <tom@tromey.com>
15892
15893 * configure: Rebuild.
15894 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15895
15896 2020-01-14 Tom Tromey <tom@tromey.com>
15897
15898 * nat/x86-linux-dregs.c: Include configh.h.
15899 * nat/linux-ptrace.c: Include configh.h.
15900 * nat/linux-btrace.c: Include configh.h.
15901 * defs.h: Include config.h, bfd.h.
15902 * configure.ac: Don't source common.host.
15903 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15904 * configure: Rebuild.
15905 * acinclude.m4: Update path.
15906 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15907 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15908 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15909 (CLIBS): Add LIBSUPPORT.
15910 (CDEPS): Likewise.
15911 (COMMON_SFILES): Remove gdbsupport files.
15912 (HFILES_NO_SRCDIR): Likewise.
15913 (stamp-version): Update path to create-version.sh.
15914 (ALLDEPFILES): Remove gdbsupport files.
15915
15916 2020-01-14 Tom Tromey <tom@tromey.com>
15917
15918 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15919 USE_WIN32API when needed.
15920 * configure.ac (USE_WIN32API): Don't define.
15921 (WIN32LIBS): Use WIN32APILIBS.
15922 * configure: Rebuild.
15923
15924 2020-01-14 Tom Tromey <tom@tromey.com>
15925
15926 * configure: Rebuild.
15927 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15928
15929 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15930
15931 * skip.c (skip_function_command): Make skip w/o arguments use the
15932 name of the inlined function if pc is inside any inlined function.
15933
15934 2020-01-14 Luis Machado <luis.machado@linaro.org>
15935
15936 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15937 * infrun.c (resume_1): Likewise.
15938 (handle_inferior_event): Remove stale comment.
15939 * linux-nat.c (linux_nat_target::resume): Update comments.
15940 (save_stop_reason): Likewise.
15941 (linux_nat_filter_event): Likewise.
15942 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15943
15944 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15945
15946 * elfread.c (record_minimal_symbol): Set section index to 0 for
15947 non-allocatable sections.
15948
15949
15950 2020-01-13 Ali Tamur <tamur@google.com>
15951
15952 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15953 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15954 to gdb::optional. Update comments.
15955 (dwo_file): Update comments.
15956 (read_attribute): Update API to take an additional out parameter,
15957 need_reprocess. This is used to mark attributes that need other
15958 attributes (e.g. str_offsets_base) for correct computation which may not
15959 have been read yet.
15960 (read_attribute_reprocess): New function declaration.
15961 (read_addr_index): Likewise.
15962 (read_dwo_str_index): Likewise.
15963 (read_stub_str_index): Likewise.
15964 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15965 (lookup_addr_base): New function definition.
15966 (lookup_ranges_base): Likewise.
15967 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15968 lookup_ranges_base.
15969 (init_cutu_and_read_dies): Update comments.
15970 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15971 unit. This is used to inherit parent's str_offsets_base and addr_base.
15972 Update comments.
15973 (init_cutu_and_read_dies_simple): Reflect API changes.
15974 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15975 (create_cus_hash_table): Change API to take parent compile unit.
15976 Reflect API changes.
15977 (open_and_init_dwo_file): Reflect API changes.
15978 (dwarf2_get_pc_bounds): Update comments.
15979 (dwarf2_record_block_ranges): Likewise.
15980 (read_full_die_1): Change implementation to reprocess attributes that
15981 need str_offsets_base and addr_base.
15982 (partial_die_info::read): Likewise.
15983 (read_attribute_reprocess): New function definition.
15984 (read_attribute_value): Change API to take an additional out parameter,
15985 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15986 when a non-dwo compile unit has index based attributes.
15987 (read_attribute): Reflect API changes.
15988 (read_addr_index_1): Reflect API changes. Update comments.
15989 (dwarf2_read_addr_index_data): Reflect API changes.
15990 (dwarf2_read_addr_index): Likewise.
15991 (read_str_index): Change API and implementation. This becomes a helper
15992 to be used by the new string index related methods. Update error
15993 message and comments.
15994 (read_dwo_str_index): New function definition.
15995 (read_stub_str_index): Likewise.
15996 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15997 * symfile.h (dwarf2_debug_sections): Likewise.
15998 * xcoffread.c (dwarf2_debug_sections): Likewise.
15999
16000 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16001
16002 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16003 core_reg_sect type to gdb_byte *.
16004 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16005 * cris-tdep.c (fetch_core_registers): Likewise.
16006 * corelow.c (core_target::get_core_register_section): Change
16007 type of `contents` to gdb::byte_vector.
16008
16009 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16010
16011 * tui/tui-wingeneral.c (box_win): Position the title in the center
16012 of the border.
16013
16014 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16015
16016 * corelow.c (core_target::get_core_register_section): Use
16017 std::vector instead of alloca.
16018
16019 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16020
16021 * warning.m4: Add -Wmissing-declarations to build_warnings.
16022 * configure: Re-generate.
16023
16024 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16025
16026 * python/python.c (init__gdb_module): Add declaration.
16027
16028 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16029
16030 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16031 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16032 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16033 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16034 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16035 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16036 * ada-exp.y (_initialize_ada_exp): Add declaration.
16037 * ada-lang.c (_initialize_ada_language): Add declaration.
16038 * ada-tasks.c (_initialize_tasks): Add declaration.
16039 * agent.c (_initialize_agent): Add declaration.
16040 * aix-thread.c (_initialize_aix_thread): Add declaration.
16041 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16042 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16043 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16044 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16045 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16046 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16047 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16048 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16049 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16050 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16051 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16052 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16053 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16054 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16055 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16056 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16057 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16058 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16059 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16060 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16061 * annotate.c (_initialize_annotate): Add declaration.
16062 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16063 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16064 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16065 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16066 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16067 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16068 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16069 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16070 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16071 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16072 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16073 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16074 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16075 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16076 * auto-load.c (_initialize_auto_load): Add declaration.
16077 * auxv.c (_initialize_auxv): Add declaration.
16078 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16079 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16080 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16081 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16082 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16083 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16084 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16085 * breakpoint.c (_initialize_breakpoint): Add declaration.
16086 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16087 * btrace.c (_initialize_btrace): Add declaration.
16088 * charset.c (_initialize_charset): Add declaration.
16089 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16090 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16091 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16092 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16093 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16094 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16095 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16096 * coffread.c (_initialize_coffread): Add declaration.
16097 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16098 * compile/compile.c (_initialize_compile): Add declaration.
16099 * complaints.c (_initialize_complaints): Add declaration.
16100 * completer.c (_initialize_completer): Add declaration.
16101 * copying.c (_initialize_copying): Add declaration.
16102 * corefile.c (_initialize_core): Add declaration.
16103 * corelow.c (_initialize_corelow): Add declaration.
16104 * cp-abi.c (_initialize_cp_abi): Add declaration.
16105 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16106 * cp-support.c (_initialize_cp_support): Add declaration.
16107 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16108 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16109 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16110 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16111 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16112 * ctfread.c (_initialize_ctfread): Add declaration.
16113 * d-lang.c (_initialize_d_language): Add declaration.
16114 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16115 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16116 * dbxread.c (_initialize_dbxread): Add declaration.
16117 * dcache.c (_initialize_dcache): Add declaration.
16118 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16119 * disasm.c (_initialize_disasm): Add declaration.
16120 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16121 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16122 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16123 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16124 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16125 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16126 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16127 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16128 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16129 * elfread.c (_initialize_elfread): Add declaration.
16130 * exec.c (_initialize_exec): Add declaration.
16131 * extension.c (_initialize_extension): Add declaration.
16132 * f-lang.c (_initialize_f_language): Add declaration.
16133 * f-valprint.c (_initialize_f_valprint): Add declaration.
16134 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16135 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16136 * filesystem.c (_initialize_filesystem): Add declaration.
16137 * findcmd.c (_initialize_mem_search): Add declaration.
16138 * findvar.c (_initialize_findvar): Add declaration.
16139 * fork-child.c (_initialize_fork_child): Add declaration.
16140 * frame-base.c (_initialize_frame_base): Add declaration.
16141 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16142 * frame.c (_initialize_frame): Add declaration.
16143 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16144 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16145 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16146 * gcore.c (_initialize_gcore): Add declaration.
16147 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16148 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16149 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16150 * gdbarch.c (_initialize_gdbarch): Add declaration.
16151 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16152 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16153 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16154 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16155 * go-lang.c (_initialize_go_language): Add declaration.
16156 * go32-nat.c (_initialize_go32_nat): Add declaration.
16157 * guile/guile.c (_initialize_guile): Add declaration.
16158 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16159 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16160 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16161 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16162 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16163 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16164 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16165 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16166 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16167 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16168 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16169 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16170 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16171 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16172 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16173 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16174 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16175 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16176 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16177 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16178 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16179 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16180 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16181 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16182 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16183 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16184 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16185 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16186 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16187 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16188 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16189 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16190 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16191 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16192 * infcall.c (_initialize_infcall): Add declaration.
16193 * infcmd.c (_initialize_infcmd): Add declaration.
16194 * inflow.c (_initialize_inflow): Add declaration.
16195 * infrun.c (_initialize_infrun): Add declaration.
16196 * interps.c (_initialize_interpreter): Add declaration.
16197 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16198 * jit.c (_initialize_jit): Add declaration.
16199 * language.c (_initialize_language): Add declaration.
16200 * linux-fork.c (_initialize_linux_fork): Add declaration.
16201 * linux-nat.c (_initialize_linux_nat): Add declaration.
16202 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16203 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16204 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16205 * m2-lang.c (_initialize_m2_language): Add declaration.
16206 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16207 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16208 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16209 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16210 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16211 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16212 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16213 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16214 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16215 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16216 * machoread.c (_initialize_machoread): Add declaration.
16217 * macrocmd.c (_initialize_macrocmd): Add declaration.
16218 * macroscope.c (_initialize_macroscope): Add declaration.
16219 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16220 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16221 * maint.c (_initialize_maint_cmds): Add declaration.
16222 * mdebugread.c (_initialize_mdebugread): Add declaration.
16223 * memattr.c (_initialize_mem): Add declaration.
16224 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16225 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16226 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16227 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16228 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16229 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16230 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16231 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16232 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16233 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16234 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16235 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16236 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16237 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16238 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16239 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16240 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16241 * mipsread.c (_initialize_mipsread): Add declaration.
16242 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16243 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16244 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16245 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16246 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16247 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16248 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16249 * nto-procfs.c (_initialize_procfs): Add declaration.
16250 * objc-lang.c (_initialize_objc_language): Add declaration.
16251 * observable.c (_initialize_observer): Add declaration.
16252 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16253 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16254 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16255 * osabi.c (_initialize_gdb_osabi): Add declaration.
16256 * osdata.c (_initialize_osdata): Add declaration.
16257 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16258 * parse.c (_initialize_parse): Add declaration.
16259 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16260 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16261 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16262 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16263 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16264 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16265 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16266 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16267 * printcmd.c (_initialize_printcmd): Add declaration.
16268 * probe.c (_initialize_probe): Add declaration.
16269 * proc-api.c (_initialize_proc_api): Add declaration.
16270 * proc-events.c (_initialize_proc_events): Add declaration.
16271 * proc-service.c (_initialize_proc_service): Add declaration.
16272 * procfs.c (_initialize_procfs): Add declaration.
16273 * producer.c (_initialize_producer): Add declaration.
16274 * psymtab.c (_initialize_psymtab): Add declaration.
16275 * python/python.c (_initialize_python): Add declaration.
16276 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16277 * record-btrace.c (_initialize_record_btrace): Add declaration.
16278 * record-full.c (_initialize_record_full): Add declaration.
16279 * record.c (_initialize_record): Add declaration.
16280 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16281 * regcache.c (_initialize_regcache): Add declaration.
16282 * reggroups.c (_initialize_reggroup): Add declaration.
16283 * remote-notif.c (_initialize_notif): Add declaration.
16284 * remote-sim.c (_initialize_remote_sim): Add declaration.
16285 * remote.c (_initialize_remote): Add declaration.
16286 * reverse.c (_initialize_reverse): Add declaration.
16287 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16288 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16289 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16290 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16291 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16292 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16293 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16294 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16295 Add declaration.
16296 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16297 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16298 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16299 * rust-exp.y (_initialize_rust_exp): Add declaration.
16300 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16301 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16302 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16303 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16304 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16305 * score-tdep.c (_initialize_score_tdep): Add declaration.
16306 * ser-go32.c (_initialize_ser_dos): Add declaration.
16307 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16308 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16309 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16310 * ser-uds.c (_initialize_ser_socket): Add declaration.
16311 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16312 * serial.c (_initialize_serial): Add declaration.
16313 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16314 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16315 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16316 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16317 * skip.c (_initialize_step_skip): Add declaration.
16318 * sol-thread.c (_initialize_sol_thread): Add declaration.
16319 * solib-aix.c (_initialize_solib_aix): Add declaration.
16320 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16321 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16322 * solib-frv.c (_initialize_frv_solib): Add declaration.
16323 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16324 * solib-target.c (_initialize_solib_target): Add declaration.
16325 * solib.c (_initialize_solib): Add declaration.
16326 * source-cache.c (_initialize_source_cache): Add declaration.
16327 * source.c (_initialize_source): Add declaration.
16328 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16329 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16330 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16331 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16332 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16333 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16334 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16335 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16336 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16337 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16338 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16339 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16340 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16341 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16342 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16343 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16344 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16345 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16346 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16347 * stabsread.c (_initialize_stabsread): Add declaration.
16348 * stack.c (_initialize_stack): Add declaration.
16349 * stap-probe.c (_initialize_stap_probe): Add declaration.
16350 * std-regs.c (_initialize_frame_reg): Add declaration.
16351 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16352 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16353 * symfile.c (_initialize_symfile): Add declaration.
16354 * symmisc.c (_initialize_symmisc): Add declaration.
16355 * symtab.c (_initialize_symtab): Add declaration.
16356 * target.c (_initialize_target): Add declaration.
16357 * target-connection.c (_initialize_target_connection): Add
16358 declaration.
16359 * target-dcache.c (_initialize_target_dcache): Add declaration.
16360 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16361 * thread.c (_initialize_thread): Add declaration.
16362 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16363 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16364 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16365 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16366 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16367 * tracectf.c (_initialize_ctf): Add declaration.
16368 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16369 * tracefile.c (_initialize_tracefile): Add declaration.
16370 * tracepoint.c (_initialize_tracepoint): Add declaration.
16371 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16372 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16373 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16374 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16375 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16376 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16377 * tui/tui.c (_initialize_tui): Add declaration.
16378 * typeprint.c (_initialize_typeprint): Add declaration.
16379 * ui-style.c (_initialize_ui_style): Add declaration.
16380 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16381 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16382 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16383 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16384 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16385 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16386 * unittests/filtered_iterator-selftests.c
16387 (_initialize_filtered_iterator_selftests): Add declaration.
16388 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16389 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16390 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16391 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16392 * unittests/main-thread-selftests.c
16393 (_initialize_main_thread_selftests): Add declaration.
16394 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16395 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16396 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16397 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16398 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16399 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16400 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16401 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16402 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16403 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16404 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16405 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16406 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16407 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16408 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16409 declaration.
16410 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16411 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16412 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16413 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16414 * user-regs.c (_initialize_user_regs): Add declaration.
16415 * utils.c (_initialize_utils): Add declaration.
16416 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16417 * valops.c (_initialize_valops): Add declaration.
16418 * valprint.c (_initialize_valprint): Add declaration.
16419 * value.c (_initialize_values): Add declaration.
16420 * varobj.c (_initialize_varobj): Add declaration.
16421 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16422 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16423 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16424 * windows-nat.c (_initialize_windows_nat): Add declaration.
16425 (_initialize_check_for_gdb_ini): Add declaration.
16426 (_initialize_loadable): Add declaration.
16427 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16428 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16429 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16430 * xcoffread.c (_initialize_xcoffread): Add declaration.
16431 * xml-support.c (_initialize_xml_support): Add declaration.
16432 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16433 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16434 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16435 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16436
16437 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16438
16439 * regformats/regdat.sh: Generate declaration for init function.
16440
16441 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16442
16443 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16444 up.
16445 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16446 close_one_inferior>: New methods.
16447 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16448 pass down target to find_inferior_pid.
16449 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16450 Pass down target to find_inferior_ptid.
16451 (gdbsim_target::create_inferior): Pass down target to
16452 add_thread_silent.
16453 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16454 target down to find_inferior_ptid and switch_to_thread.
16455 (gdbsim_target::close): Update to call close_one_inferior.
16456 (struct resume_data): Remove.
16457 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16458 directly, rather than through a void pointer.
16459 (gdbsim_target::resume): Update to call resume_one_inferior.
16460
16461 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16462
16463 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16464
16465 2020-01-12 Pedro Alves <palves@redhat.com>
16466
16467 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16468 directly for the current inferior instead of
16469 discard_all_inferiors.
16470 (discard_all_inferiors): Delete.
16471
16472 2020-01-11 Tom Tromey <tom@tromey.com>
16473
16474 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16475 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16476 deprecated_safe_get_selected_frame.
16477
16478 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16479
16480 * inferior.c (print_inferior): Switch inferior before printing it.
16481
16482 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16483 Pedro Alves <palves@redhat.com>
16484
16485 * progspace-and-thread.c (switch_to_program_space_and_thread):
16486 Assert there's an inferior for PSPACE. Use
16487 switch_to_inferior_no_thread to switch the inferior too.
16488 * progspace.c (program_space::~program_space): Call
16489 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16490 (program_space::free_all_objfiles): Don't call clear_symtab_users
16491 here.
16492 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16493
16494 2020-01-10 Pedro Alves <palves@redhat.com>
16495
16496 * NEWS: Mention multi-target debugging, "info connections", and
16497 "add-inferior -no-connection".
16498
16499 2020-01-10 Pedro Alves <palves@redhat.com>
16500
16501 * infrun.c: Include "target-connection.h".
16502 (check_multi_target_resumption): New.
16503 (proceed): Call it.
16504 * target-connection.c (make_target_connection_string): Make
16505 extern.
16506 * target-connection.h (make_target_connection_string): Declare.
16507
16508 2020-01-10 Pedro Alves <palves@redhat.com>
16509
16510 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16511 * inferior.c (uiout_field_connection): New function.
16512 (print_inferior): Add new "connection-id" column.
16513 (add_inferior_command): Show connection number/string of added
16514 inferior.
16515 * process-stratum-target.h
16516 (process_stratum_target::connection_string): New virtual method.
16517 (process_stratum_target::connection_number): New field.
16518 * remote.c (remote_target::connection_string): New override.
16519 * target-connection.c: New file.
16520 * target-connection.h: New file.
16521 * target.c (decref_target): Remove process_stratum targets from
16522 the connection list.
16523 (target_stack::push): Add process_stratum targets to the
16524 connection list.
16525
16526 2020-01-10 Pedro Alves <palves@redhat.com>
16527
16528 Revert:
16529 2016-04-12 Pedro Alves <palves@redhat.com>
16530 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16531 Remove references to name.
16532 * serial.h (struct serial) <name>: Delete.
16533
16534 2020-01-10 Pedro Alves <palves@redhat.com>
16535
16536 * gdbarch-selftests.c (register_to_value_test): Remove "target
16537 already pushed" check.
16538
16539 2020-01-10 Pedro Alves <palves@redhat.com>
16540 John Baldwin <jhb@FreeBSD.org>
16541
16542 * aarch64-linux-nat.c
16543 (aarch64_linux_nat_target::thread_architecture): Adjust.
16544 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16545 (task_command_1): Likewise.
16546 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16547 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16548 (aix_thread_target::store_registers)
16549 (aix_thread_target::thread_alive): Adjust.
16550 * amd64-fbsd-tdep.c: Include "inferior.h".
16551 (amd64fbsd_get_thread_local_address): Pass down target.
16552 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16553 thread's gdbarch instead of target_gdbarch.
16554 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16555 get_last_target_status.
16556 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16557 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16558 inferiors.
16559 (update_inserted_breakpoint_locations): Skip if inferiors with no
16560 execution.
16561 (update_global_location_list): When handling moribund locations,
16562 find representative inferior for location's pspace, and use thread
16563 count of its process_stratum target.
16564 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16565 * bsd-uthread.c (bsd_uthread_target::wait): Use
16566 as_process_stratum_target and adjust thread_change_ptid and
16567 add_thread calls.
16568 (bsd_uthread_target::update_thread_list): Use
16569 as_process_stratum_target and adjust find_thread_ptid,
16570 thread_change_ptid and add_thread calls.
16571 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16572 find_thread_ptid call.
16573 * corelow.c (add_to_thread_list): Adjust add_thread call.
16574 (core_target_open): Adjust add_thread_silent and thread_count
16575 calls.
16576 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16577 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16578 * event-top.c (async_disconnect): Pop targets from all inferiors.
16579 * exec.c (add_target_sections): Push exec target on all inferiors
16580 sharing the program space.
16581 (remove_target_sections): Remove the exec target from all
16582 inferiors sharing the program space.
16583 (exec_on_vfork): New.
16584 * exec.h (exec_on_vfork): Declare.
16585 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16586 Pass it down.
16587 (fbsd_nat_target::update_thread_list): Adjust.
16588 (fbsd_nat_target::resume): Adjust.
16589 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16590 down.
16591 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16592 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16593 get_thread_arch_regcache call.
16594 * fork-child.c (gdb_startup_inferior): Pass target down to
16595 startup_inferior and set_executing.
16596 * gdbthread.h (struct process_stratum_target): Forward declare.
16597 (add_thread, add_thread_silent, add_thread_with_info)
16598 (in_thread_list): Add process_stratum_target parameter.
16599 (find_thread_ptid(inferior*, ptid_t)): New overload.
16600 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16601 parameter.
16602 (all_threads()): Delete overload.
16603 (all_threads, all_non_exited_threads): Add process_stratum_target
16604 parameter.
16605 (all_threads_safe): Use brace initialization.
16606 (thread_count): Add process_stratum_target parameter.
16607 (set_resumed, set_running, set_stop_requested, set_executing)
16608 (threads_are_executing, finish_thread_state): Add
16609 process_stratum_target parameter.
16610 (switch_to_thread): Use is_current_thread.
16611 * i386-fbsd-tdep.c: Include "inferior.h".
16612 (i386fbsd_get_thread_local_address): Pass down target.
16613 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16614 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16615 have_inferiors check.
16616 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16617 (inf_ptrace_target::attach): Adjust.
16618 * infcall.c (run_inferior_call): Adjust.
16619 * infcmd.c (run_command_1): Pass target to
16620 scoped_finish_thread_state.
16621 (proceed_thread_callback): Skip inferiors with no execution.
16622 (continue_command): Rename 'all_threads' local to avoid hiding
16623 'all_threads' function. Adjust get_last_target_status call.
16624 (prepare_one_step): Adjust set_running call.
16625 (signal_command): Use user_visible_resume_target. Compare thread
16626 pointers instead of inferior_ptid.
16627 (info_program_command): Adjust to pass down target.
16628 (attach_command): Mark target's 'thread_executing' flag.
16629 (stop_current_target_threads_ns): New, factored out from ...
16630 (interrupt_target_1): ... this. Switch inferior before making
16631 target calls.
16632 * inferior-iter.h
16633 (struct all_inferiors_iterator, struct all_inferiors_range)
16634 (struct all_inferiors_safe_range)
16635 (struct all_non_exited_inferiors_range): Filter on
16636 process_stratum_target too. Remove explicit.
16637 * inferior.c (inferior::inferior): Push dummy target on target
16638 stack.
16639 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16640 Add process_stratum_target parameter, and pass it down.
16641 (have_live_inferiors): Adjust.
16642 (switch_to_inferior_and_push_target): New.
16643 (add_inferior_command, clone_inferior_command): Handle
16644 "-no-connection" parameter. Use
16645 switch_to_inferior_and_push_target.
16646 (_initialize_inferior): Mention "-no-connection" option in
16647 the help of "add-inferior" and "clone-inferior" commands.
16648 * inferior.h: Include "process-stratum-target.h".
16649 (interrupt_target_1): Use bool.
16650 (struct inferior) <push_target, unpush_target, target_is_pushed,
16651 find_target_beneath, top_target, process_target, target_at,
16652 m_stack>: New.
16653 (discard_all_inferiors): Delete.
16654 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16655 (all_inferiors, all_non_exited_inferiors): Add
16656 process_stratum_target parameter.
16657 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16658 (target_last_proc_target): New global.
16659 (follow_fork_inferior): Push target on new inferior. Pass target
16660 to add_thread_silent. Call exec_on_vfork. Handle target's
16661 reference count.
16662 (follow_fork): Adjust get_last_target_status call. Also consider
16663 target.
16664 (follow_exec): Push target on new inferior.
16665 (struct execution_control_state) <target>: New field.
16666 (user_visible_resume_target): New.
16667 (do_target_resume): Call target_async.
16668 (resume_1): Set target's threads_executing flag. Consider resume
16669 target.
16670 (commit_resume_all_targets): New.
16671 (proceed): Also consider resume target. Skip threads of inferiors
16672 with no execution. Commit resumtion in all targets.
16673 (start_remote): Pass current inferior to wait_for_inferior.
16674 (infrun_thread_stop_requested): Consider target as well. Pass
16675 thread_info pointer to clear_inline_frame_state instead of ptid.
16676 (infrun_thread_thread_exit): Consider target as well.
16677 (random_pending_event_thread): New inferior parameter. Use it.
16678 (do_target_wait): Rename to ...
16679 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16680 down.
16681 (threads_are_resumed_pending_p, do_target_wait): New.
16682 (prepare_for_detach): Adjust calls.
16683 (wait_for_inferior): New inferior parameter. Handle it. Use
16684 do_target_wait_1 instead of do_target_wait.
16685 (fetch_inferior_event): Adjust. Switch to representative
16686 inferior. Pass target down.
16687 (set_last_target_status): Add process_stratum_target parameter.
16688 Save target in global.
16689 (get_last_target_status): Add process_stratum_target parameter and
16690 handle it.
16691 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16692 (context_switch): Check inferior_ptid == null_ptid before calling
16693 inferior_thread().
16694 (get_inferior_stop_soon): Pass down target.
16695 (wait_one): Rename to ...
16696 (poll_one_curr_target): ... this.
16697 (struct wait_one_event): New.
16698 (wait_one): New.
16699 (stop_all_threads): Adjust.
16700 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16701 event's target.
16702 (switch_back_to_stepped_thread): Also consider target.
16703 (print_stop_event): Update.
16704 (normal_stop): Update. Also consider the resume target.
16705 * infrun.h (wait_for_inferior): Remove declaration.
16706 (user_visible_resume_target): New declaration.
16707 (get_last_target_status, set_last_target_status): New
16708 process_stratum_target parameter.
16709 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16710 process_stratum_target parameter, and use it.
16711 (clear_inline_frame_state (thread_info*)): New.
16712 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16713 process_stratum_target parameter.
16714 (clear_inline_frame_state (thread_info*)): Declare.
16715 * linux-fork.c (delete_checkpoint_command): Pass target down to
16716 find_thread_ptid.
16717 (checkpoint_command): Adjust.
16718 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16719 instead of just tweaking inferior_ptid.
16720 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16721 (exit_lwp): Pass target down to find_thread_ptid.
16722 (attach_proc_task_lwp_callback): Pass target down to
16723 add_thread/set_running/set_executing.
16724 (linux_nat_target::attach): Pass target down to
16725 thread_change_ptid.
16726 (get_detach_signal): Pass target down to find_thread_ptid.
16727 Consider last target status's target.
16728 (linux_resume_one_lwp_throw, resume_lwp)
16729 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16730 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16731 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16732 (linux_nat_target::async_wait_fd): New.
16733 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16734 target down.
16735 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16736 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16737 * linux-thread-db.c (struct thread_db_info::process_target): New
16738 field.
16739 (add_thread_db_info): Save target.
16740 (get_thread_db_info): New process_stratum_target parameter. Also
16741 match target.
16742 (delete_thread_db_info): New process_stratum_target parameter.
16743 Also match target.
16744 (thread_from_lwp): Adjust to pass down target.
16745 (thread_db_notice_clone): Pass down target.
16746 (check_thread_db_callback): Pass down target.
16747 (try_thread_db_load_1): Always push the thread_db target.
16748 (try_thread_db_load, record_thread): Pass target down.
16749 (thread_db_target::detach): Pass target down. Always unpush the
16750 thread_db target.
16751 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16752 target down. Always unpush the thread_db target.
16753 (find_new_threads_callback, thread_db_find_new_threads_2)
16754 (thread_db_target::update_thread_list): Pass target down.
16755 (thread_db_target::pid_to_str): Pass current inferior down.
16756 (thread_db_target::get_thread_local_address): Pass target down.
16757 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16758 target down.
16759 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16760 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16761 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16762 (procfs_init_inferior): Rename to ...
16763 (procfs_target::procfs_init_inferior): ... this and adjust.
16764 (procfs_target::create_inferior, procfs_notice_thread)
16765 (procfs_do_thread_registers): Adjust.
16766 * ppc-fbsd-tdep.c: Include "inferior.h".
16767 (ppcfbsd_get_thread_local_address): Pass down target.
16768 * proc-service.c (ps_xfer_memory): Switch current inferior and
16769 program space as well.
16770 (get_ps_regcache): Pass target down.
16771 * process-stratum-target.c
16772 (process_stratum_target::thread_address_space)
16773 (process_stratum_target::thread_architecture): Pass target down.
16774 * process-stratum-target.h
16775 (process_stratum_target::threads_executing): New field.
16776 (as_process_stratum_target): New.
16777 * ravenscar-thread.c
16778 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16779 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16780 down.
16781 * record-btrace.c (record_btrace_target::info_record): Adjust.
16782 (record_btrace_target::record_method)
16783 (record_btrace_target::record_is_replaying)
16784 (record_btrace_target::fetch_registers)
16785 (get_thread_current_frame_id, record_btrace_target::resume)
16786 (record_btrace_target::wait, record_btrace_target::stop): Pass
16787 target down.
16788 * record-full.c (record_full_wait_1): Switch to event thread.
16789 Pass target down.
16790 * regcache.c (regcache::regcache)
16791 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16792 process_stratum_target parameter and handle it.
16793 (current_thread_target): New global.
16794 (get_thread_regcache): Add process_stratum_target parameter and
16795 handle it. Switch inferior before calling target method.
16796 (get_thread_regcache): Pass target down.
16797 (get_thread_regcache_for_ptid): Pass target down.
16798 (registers_changed_ptid): Add process_stratum_target parameter and
16799 handle it.
16800 (registers_changed_thread, registers_changed): Pass target down.
16801 (test_get_thread_arch_aspace_regcache): New.
16802 (current_regcache_test): Define a couple local test_target_ops
16803 instances and use them for testing.
16804 (readwrite_regcache): Pass process_stratum_target parameter.
16805 (cooked_read_test, cooked_write_test): Pass mock_target down.
16806 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16807 (get_thread_arch_aspace_regcache): Add process_stratum_target
16808 parameter.
16809 (regcache::target): New method.
16810 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16811 (regcache::registers_changed_ptid): Add process_stratum_target
16812 parameter.
16813 (regcache::m_target): New field.
16814 (registers_changed_ptid): Add process_stratum_target parameter.
16815 * remote.c (remote_state::supports_vCont_probed): New field.
16816 (remote_target::async_wait_fd): New method.
16817 (remote_unpush_and_throw): Add remote_target parameter.
16818 (get_current_remote_target): Adjust.
16819 (remote_target::remote_add_inferior): Push target.
16820 (remote_target::remote_add_thread)
16821 (remote_target::remote_notice_new_inferior)
16822 (get_remote_thread_info): Pass target down.
16823 (remote_target::update_thread_list): Skip threads of inferiors
16824 bound to other targets. (remote_target::close): Don't discard
16825 inferiors. (remote_target::add_current_inferior_and_thread)
16826 (remote_target::process_initial_stop_replies)
16827 (remote_target::start_remote)
16828 (remote_target::remote_serial_quit_handler): Pass down target.
16829 (remote_target::remote_unpush_target): New remote_target
16830 parameter. Unpush the target from all inferiors.
16831 (remote_target::remote_unpush_and_throw): New remote_target
16832 parameter. Pass it down.
16833 (remote_target::open_1): Check whether the current inferior has
16834 execution instead of checking whether any inferior is live. Pass
16835 target down.
16836 (remote_target::remote_detach_1): Pass down target. Use
16837 remote_unpush_target.
16838 (extended_remote_target::attach): Pass down target.
16839 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16840 (remote_target::append_resumption): Pass down target.
16841 (remote_target::append_pending_thread_resumptions)
16842 (remote_target::remote_resume_with_hc, remote_target::resume)
16843 (remote_target::commit_resume): Pass down target.
16844 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16845 (remote_target::interrupt_query)
16846 (remote_target::remove_new_fork_children)
16847 (remote_target::check_pending_events_prevent_wildcard_vcont)
16848 (remote_target::remote_parse_stop_reply)
16849 (remote_target::process_stop_reply): Pass down target.
16850 (first_remote_resumed_thread): New remote_target parameter. Pass
16851 it down.
16852 (remote_target::wait_as): Pass down target.
16853 (unpush_and_perror): New remote_target parameter. Pass it down.
16854 (remote_target::readchar, remote_target::remote_serial_write)
16855 (remote_target::getpkt_or_notif_sane_1)
16856 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16857 down target.
16858 (remote_target::mourn_inferior): Pass down target. Use
16859 remote_unpush_target.
16860 (remote_target::core_of_thread)
16861 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16862 (remote_target::pid_to_exec_file)
16863 (remote_target::thread_handle_to_thread_info): Pass down target.
16864 (remote_target::async_wait_fd): New.
16865 * riscv-fbsd-tdep.c: Include "inferior.h".
16866 (riscv_fbsd_get_thread_local_address): Pass down target.
16867 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16868 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16869 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16870 Adjust.
16871 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16872 * solib-svr4.c (enable_break): Pass down target.
16873 * spu-multiarch.c (parse_spufs_run): Pass down target.
16874 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16875 * target-delegates.c: Regenerate.
16876 * target.c (g_target_stack): Delete.
16877 (current_top_target): Return the current inferior's top target.
16878 (target_has_execution_1): Refer to the passed-in inferior's top
16879 target.
16880 (target_supports_terminal_ours): Check whether the initial
16881 inferior was already created.
16882 (decref_target): New.
16883 (target_stack::push): Incref/decref the target.
16884 (push_target, push_target, unpush_target): Adjust.
16885 (target_stack::unpush): Defref target.
16886 (target_is_pushed): Return bool. Adjust to refer to the current
16887 inferior's target stack.
16888 (dispose_inferior): Delete, and inline parts ...
16889 (target_preopen): ... here. Only dispose of the current inferior.
16890 (target_detach): Hold strong target reference while detaching.
16891 Pass target down.
16892 (target_thread_name): Add assertion.
16893 (target_resume): Pass down target.
16894 (target_ops::beneath, find_target_at): Adjust to refer to the
16895 current inferior's target stack.
16896 (get_dummy_target): New.
16897 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16898 has a thread running.
16899 (initialize_targets): Rename to ...
16900 (_initialize_target): ... this.
16901 * target.h: Include "gdbsupport/refcounted-object.h".
16902 (struct target_ops): Inherit refcounted_object.
16903 (target_ops::shortname, target_ops::longname): Make const.
16904 (target_ops::async_wait_fd): New method.
16905 (decref_target): Declare.
16906 (struct target_ops_ref_policy): New.
16907 (target_ops_ref): New typedef.
16908 (get_dummy_target): Declare function.
16909 (target_is_pushed): Return bool.
16910 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16911 (all_matching_threads_iterator::all_matching_threads_iterator):
16912 Handle filter target.
16913 * thread-iter.h (struct all_matching_threads_iterator, struct
16914 all_matching_threads_range, class all_non_exited_threads_range):
16915 Filter by target too. Remove explicit.
16916 * thread.c (threads_executing): Delete.
16917 (inferior_thread): Pass down current inferior.
16918 (clear_thread_inferior_resources): Pass down thread pointer
16919 instead of ptid_t.
16920 (add_thread_silent, add_thread_with_info, add_thread): Add
16921 process_stratum_target parameter. Use it for thread and inferior
16922 searches.
16923 (is_current_thread): New.
16924 (thread_info::deletable): Use it.
16925 (find_thread_ptid, thread_count, in_thread_list)
16926 (thread_change_ptid, set_resumed, set_running): New
16927 process_stratum_target parameter. Pass it down.
16928 (set_executing): New process_stratum_target parameter. Pass it
16929 down. Adjust reference to 'threads_executing'.
16930 (threads_are_executing): New process_stratum_target parameter.
16931 Adjust reference to 'threads_executing'.
16932 (set_stop_requested, finish_thread_state): New
16933 process_stratum_target parameter. Pass it down.
16934 (switch_to_thread): Also match inferior.
16935 (switch_to_thread): New process_stratum_target parameter. Pass it
16936 down.
16937 (update_threads_executing): Reimplement.
16938 * top.c (quit_force): Pop targets from all inferior.
16939 (gdb_init): Don't call initialize_targets.
16940 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16941 Declare.
16942 (windows_add_thread, windows_delete_thread): Adjust.
16943 (get_windows_debug_event): Rename to ...
16944 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16945 * tracefile-tfile.c (tfile_target_open): Pass down target.
16946 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16947 Forward declare.
16948 (switch_to_thread): Add process_stratum_target parameter.
16949 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16950 parameter. Use it.
16951 (mi_on_resume): Pass target down.
16952 * nat/fork-inferior.c (startup_inferior): Add
16953 process_stratum_target parameter. Pass it down.
16954 * nat/fork-inferior.h (startup_inferior): Add
16955 process_stratum_target parameter.
16956 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16957
16958 2020-01-10 Pedro Alves <palves@redhat.com>
16959
16960 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16961 directly. Instead find the first thread in the thread list and
16962 use switch_to_thread.
16963
16964 2020-01-10 Pedro Alves <palves@redhat.com>
16965
16966 * remote.c (remote_target::remote_add_inferior): Don't bind a
16967 process to the current inferior if the current inferior is already
16968 bound to a process.
16969
16970 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16971 Pedro Alves <palves@redhat.com>
16972
16973 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16974 If no process is specified, return null_ptid instead of
16975 inferior_ptid.
16976 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16977 TARGET_WAITKIND_SIGNALLED with no pid.
16978
16979 2020-01-10 Pedro Alves <palves@redhat.com>
16980
16981 * remote.c (first_remote_resumed_thread): New.
16982 (remote_target::wait_as): Use it as default event_ptid instead of
16983 inferior_ptid.
16984
16985 2020-01-10 Pedro Alves <palves@redhat.com>
16986
16987 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16988
16989 2020-01-10 Pedro Alves <palves@redhat.com>
16990
16991 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16992 not -1.
16993
16994 2020-01-10 Pedro Alves <palves@redhat.com>
16995
16996 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16997 ptid to get_last_target_status.
16998 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16999 ptid to get_last_target_status.
17000 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17001 get_last_target_status.
17002 (info_program_command): Don't pass a target_waitstatus to
17003 get_last_target_status.
17004 * infrun.c (init_wait_for_inferior): Use
17005 nullify_last_target_wait_ptid.
17006 (get_last_target_status): Handle nullptr arguments.
17007 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17008 (print_stop_event): Don't pass a ptid to get_last_target_status.
17009 (normal_stop): Don't pass a ptid to get_last_target_status.
17010 * infrun.h (get_last_target_status, set_last_target_status): Move
17011 comments here and update.
17012 (nullify_last_target_wait_ptid): Declare.
17013 * linux-fork.c (fork_load_infrun_state): Remove local extern
17014 declaration of nullify_last_target_wait_ptid.
17015 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17016 to get_last_target_status.
17017
17018 2020-01-10 Pedro Alves <palves@redhat.com>
17019
17020 * gdbthread.h (scoped_restore_current_thread)
17021 <dont_restore, restore, m_dont_restore>: Declare.
17022 * thread.c (thread_alive): Add assertion. Return bool.
17023 (switch_to_thread_if_alive): New.
17024 (prune_threads): Switch inferior/thread.
17025 (print_thread_info_1): Switch thread before calling target methods.
17026 (scoped_restore_current_thread::restore): New, factored out from
17027 ...
17028 (scoped_restore_current_thread::~scoped_restore_current_thread):
17029 ... this.
17030 (scoped_restore_current_thread::scoped_restore_current_thread):
17031 Add assertion.
17032 (thread_apply_all_command, thread_select): Use
17033 switch_to_thread_if_alive.
17034 * infrun.c (proceed, restart_threads, handle_signal_stop)
17035 (switch_back_to_stepped_thread): Switch current thread before
17036 calling target methods.
17037
17038 2020-01-10 Pedro Alves <palves@redhat.com>
17039
17040 * inferior.c (switch_to_inferior_no_thread): New function,
17041 factored out from ...
17042 (inferior_command): ... here.
17043 * inferior.h (switch_to_inferior_no_thread): Declare.
17044 * mi/mi-main.c (run_one_inferior): Use
17045 switch_to_inferior_no_thread.
17046
17047 2020-01-10 Pedro Alves <palves@redhat.com>
17048
17049 * infcmd.c (kill_command): Remove dead code.
17050
17051 2020-01-10 Pedro Alves <palves@redhat.com>
17052
17053 * remote.c (remote_target::mourn_inferior): No longer check
17054 whether the target is running.
17055
17056 2020-01-10 Pedro Alves <palves@redhat.com>
17057
17058 * corelow.c (core_target::has_execution): Change parameter type to
17059 inferior pointer.
17060 * inferior.c (number_of_live_inferiors): Use
17061 inferior::has_execution instead of target_has_execution_1.
17062 * inferior.h (inferior::has_execution): New.
17063 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17064 inferior::has_execution instead of target_has_execution_1.
17065 * process-stratum-target.c
17066 (process_stratum_target::has_execution): Change parameter type to
17067 inferior pointer. Check the inferior's PID instead of
17068 inferior_ptid.
17069 * process-stratum-target.h
17070 (process_stratum_target::has_execution): Change parameter type to
17071 inferior pointer.
17072 * record-full.c (record_full_core_target::has_execution): Change
17073 parameter type to inferior pointer.
17074 * target.c (target_has_execution_1): Change parameter type to
17075 inferior pointer.
17076 (target_has_execution_current): Adjust.
17077 * target.h (target_ops::has_execution): Change parameter type to
17078 inferior pointer.
17079 (target_has_execution_1): Change parameter type to inferior
17080 pointer. Change return type to bool.
17081 * tracefile.h (tracefile_target::has_execution): Change parameter
17082 type to inferior pointer.
17083
17084 2020-01-10 Pedro Alves <palves@redhat.com>
17085
17086 * exceptions.c (print_flush): Remove current_top_target() check.
17087
17088 2020-01-10 Pedro Alves <palves@redhat.com>
17089
17090 * remote.c (show_remote_exec_file): Show the current inferior's
17091 exec-file instead of the command variable's value.
17092
17093 2020-01-10 Pedro Alves <palves@redhat.com>
17094
17095 * record-full.c (record_full_resume_ptid): New global.
17096 (record_full_target::resume): Set it.
17097 (record_full_wait_1): Use record_full_resume_ptid instead of
17098 inferior_ptid.
17099
17100 2020-01-10 Pedro Alves <palves@redhat.com>
17101
17102 * gdbthread.h (scoped_restore_current_thread)
17103 <dont_restore, restore, m_dont_restore>: Declare.
17104 * thread.c (thread_alive): Add assertion. Return bool.
17105 (switch_to_thread_if_alive): New.
17106 (prune_threads): Switch inferior/thread.
17107 (print_thread_info_1): Switch thread before calling target methods.
17108 (scoped_restore_current_thread::restore): New, factored out from
17109 ...
17110 (scoped_restore_current_thread::~scoped_restore_current_thread):
17111 ... this.
17112 (scoped_restore_current_thread::scoped_restore_current_thread):
17113 Add assertion.
17114 (thread_apply_all_command, thread_select): Use
17115 switch_to_thread_if_alive.
17116
17117 2020-01-10 George Barrett <bob@bob131.so>
17118
17119 * stap-probe.c (stap_modify_semaphore): Don't check for null
17120 semaphores.
17121 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17122 for null semaphores.
17123
17124 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17125
17126 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17127 all source windows, and maintain horizontal scroll status while
17128 doing so.
17129
17130 2020-01-09 Tom Tromey <tom@tromey.com>
17131
17132 PR tui/18932:
17133 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17134 update_source_window, not print_source_lines.
17135
17136 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17137
17138 * tui/tui.c (tui_enable): Register tui hooks after calling
17139 tui_display_main.
17140
17141 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17142
17143 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17144
17145 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17146
17147 * thread.c (print_thread_info_1): Fix indentation.
17148
17149 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17150
17151 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17152 unique_xmalloc_ptr outside the if to always free the demangled name.
17153
17154 2020-01-08 Tom Tromey <tromey@adacore.com>
17155
17156 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17157 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17158 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17159 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17160 Remove.
17161 (section_offsets): New typedef.
17162 * symtab.c (fixup_section, get_msymbol_address): Update.
17163 * symmisc.c (dump_msymbols): Update.
17164 * symfile.h (relative_addr_info_to_section_offsets)
17165 (symfile_map_offsets_to_segments): Update.
17166 * symfile.c (build_section_addr_info_from_objfile)
17167 (init_objfile_sect_indices): Update.
17168 (struct place_section_arg): Change type of "offsets".
17169 (place_section): Update.
17170 (relative_addr_info_to_section_offsets): Change type of
17171 "section_offsets". Remove "num_sections" parameter.
17172 (default_symfile_offsets, syms_from_objfile_1)
17173 (set_objfile_default_section_offset): Update.
17174 (reread_symbols): No need to preserve section offsets by hand.
17175 (symfile_map_offsets_to_segments): Change type of "offsets".
17176 * stap-probe.c (relocate_address): Update.
17177 * stabsread.h (process_one_symbol): Update.
17178 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17179 (solib_target_relocate_section_addresses): Update.
17180 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17181 Update.
17182 * solib-frv.c (frv_relocate_main_executable): Update.
17183 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17184 * solib-aix.c (solib_aix_get_section_offsets): Change return
17185 type.
17186 (solib_aix_solib_create_inferior_hook): Update.
17187 * remote.c (remote_target::get_offsets): Update.
17188 * psymtab.c (find_pc_sect_psymtab): Update.
17189 * psympriv.h (struct partial_symbol) <address, text_low,
17190 text_high>: Update.
17191 * objfiles.h (obj_section_offset): Update.
17192 (struct objfile) <section_offsets>: Change type.
17193 <num_sections>: Remove.
17194 (objfile_relocate): Update.
17195 * objfiles.c (entry_point_address_query): Update
17196 (relocate_one_symbol): Change type of "section_offsets".
17197 (objfile_relocate1, objfile_relocate1): Change type of
17198 "new_offsets".
17199 (objfile_rebase1): Update.
17200 * mipsread.c (mipscoff_symfile_read): Update.
17201 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17202 parameter.
17203 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17204 (parse_external, psymtab_to_symtab_1): Update.
17205 * machoread.c (macho_symfile_offsets): Update.
17206 * ia64-tdep.c (ia64_find_unwind_table): Update.
17207 * hppa-tdep.c (read_unwind_info): Update.
17208 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17209 * dwarf2read.c (create_addrmap_from_index)
17210 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17211 (process_psymtab_comp_unit_reader, add_partial_symbol)
17212 (add_partial_subprogram, process_full_comp_unit)
17213 (read_file_scope, read_func_scope, read_lexical_block_scope)
17214 (read_call_site_scope, dwarf2_rnglists_process)
17215 (dwarf2_ranges_process, dwarf2_ranges_read)
17216 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17217 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17218 Update.
17219 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17220 Update.
17221 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17222 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17223 (process_one_symbol): Change type of "section_offsets".
17224 * ctfread.c (get_objfile_text_range): Update.
17225 * coffread.c (coff_symtab_read, enter_linenos)
17226 (process_coff_symbol): Update.
17227 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17228 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17229
17230 2020-01-08 Tom Tromey <tromey@adacore.com>
17231
17232 * dwarf2read.c (parse_macro_definition): Use std::string.
17233 (parse_macro_definition): Likewise.
17234
17235 2020-01-08 Tom Tromey <tromey@adacore.com>
17236
17237 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17238 (ATTR_ALLOC_CHUNK): Remove.
17239
17240 2020-01-08 Tom Tromey <tromey@adacore.com>
17241
17242 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17243
17244 2020-01-08 Tom Tromey <tromey@adacore.com>
17245
17246 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17247 (dwarf2_compute_name, open_dwo_file): Likewise.
17248 (process_enumeration_scope): Use std::vector.
17249 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17250 (partial_die_info::fixup, dwarf2_start_subfile)
17251 (guess_full_die_structure_name, dwarf2_name): Likewise.
17252 (determine_prefix): Update.
17253 (guess_full_die_structure_name): Make return type const.
17254 (partial_die_full_name): Return unique_xmalloc_ptr.
17255 (DW_FIELD_ALLOC_CHUNK): Remove.
17256
17257 2020-01-07 Tom Tromey <tromey@adacore.com>
17258
17259 PR build/24937:
17260 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17261
17262 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17263
17264 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17265
17266 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17267
17268 * stack.c (print_frame_info): Move disassemble_next_line code
17269 inside source_print block.
17270
17271 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17272
17273 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17274 gdb/signals.h, as we are now using native signal symbols.
17275
17276 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17277
17278 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17279 overflow by an early check of content vs threshold.
17280 * tui/tui-source.c (tui_source_window::line_is_displayed):
17281 Likewise.
17282
17283 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17284
17285 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17286
17287 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17288
17289 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17290 export table if no section contains it's RVA.
17291
17292 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17293
17294 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17295
17296 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17297
17298 * source.c (print_source_lines_base): Set last_line_listed.
17299
17300 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17301
17302 * tui/tui-disasm.c: Remove trailing spaces.
17303
17304 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17305 Pedro Alves <palves@redhat.com>
17306
17307 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17308 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17309 (windows_gdb_signal_to_target): New function, uses the above
17310 enumeration to convert GDB internal signal codes to equivalent
17311 Windows codes.
17312 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17313 * windows-nat.c: Include "gdb_wait.h".
17314 (get_windows_debug_event): Extract the fatal exception from the
17315 exit status and convert to the equivalent Posix signal number.
17316 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17317 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17318 * gdbsupport/gdb_wait.c: New file, implements
17319 windows_status_to_termsig.
17320 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17321 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17322
17323 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17324
17325 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17326 show_layout.
17327
17328 2020-01-05 Luis Machado <luis.machado@linaro.org>
17329
17330 * aarch64-linux-nat.c
17331 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17332 and bfd_mach_aarch64.
17333
17334 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17335
17336 * ui-file.c (stdio_file::can_emit_style_escape)
17337 (tee_file::can_emit_style_escape): Ensure style is used also on
17338 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17339 to gdb_stdout.
17340 * main.c (set_gdb_data_directory): Use file style to output the
17341 warning that the given pathname is not a directory.
17342 * top.c (show_history_filename, gdb_safe_append_history)
17343 (show_gdb_datadir): Use file style.
17344
17345 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17346
17347 * solib-target.c (struct lm_info_target):
17348 Change offsets to be a unique_xmalloc_ptr.
17349 (solib_target_relocate_section_addresses): Update.
17350
17351 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17352
17353 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17354
17355 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17356
17357 * MAINTAINERS (Write After Approval): Add myself.
17358
17359 2020-01-02 Luis Machado <luis.machado@linaro.org>
17360
17361 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17362 Cell BE architecture.
17363 * target.h (struct target_ops) <thread_architecture>: Likewise.
17364
17365 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17366
17367 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17368
17369 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17370
17371 * MAINTAINERS (Write After Approval): Add myself.
17372
17373 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17374
17375 * gdbarch.sh: Update copyright year range of generated files.
17376
17377 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17378
17379 Update copyright year range in all GDB files.
17380
17381 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17382
17383 * copyright.py: Convert to Python 3.
17384
17385 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17386
17387 * copyright.py: Adapt after move of gnulib directory from gdb
17388 directory to toplevel directory.
17389
17390 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17391
17392 * copyright.py (main): Exit if run from the wrong directory.
17393
17394 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17395
17396 * top.c (print_gdb_version): Change copyright year to 2020.
17397
17398 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17399
17400 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17401
17402 For older changes see ChangeLog-2019.
17403 \f
17404 Local Variables:
17405 mode: change-log
17406 left-margin: 8
17407 fill-column: 74
17408 version-control: never
17409 coding: utf-8
17410 End:
This page took 0.409314 seconds and 4 git commands to generate.